diff --git a/.gitignore b/.gitignore index 9f295c3..9e9ce84 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ bin packages *.user .idea +**/appsettings.Development.json /src/Svea.WebPay.SDK.Tests/appsettings.Development.json src/.DS_Store .DS_Store diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/Credentials.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/Credentials.cs new file mode 100644 index 0000000..57c37f3 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/Credentials.cs @@ -0,0 +1,9 @@ +namespace Sample.Testshop.Server.Configurations +{ + public class Credentials + { + public string MarketId { get; set; } + public string MerchantId { get; set; } + public string Secret { get; set; } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/MarketSettings.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/MarketSettings.cs new file mode 100644 index 0000000..57a4c74 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/MarketSettings.cs @@ -0,0 +1,11 @@ +namespace Sample.Testshop.Server.Configurations +{ + public class MarketSettings + { + public string Id { get; set; } + public IEnumerable Languages { get; set; } + public IEnumerable Currencies { get; set; } + public IEnumerable Countries { get; set; } + + } +} \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/MerchantSettings.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/MerchantSettings.cs new file mode 100644 index 0000000..ff4901e --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/MerchantSettings.cs @@ -0,0 +1,12 @@ +namespace Sample.Testshop.Server.Configurations +{ + public class MerchantSettings + { + public Uri PushUri { get; set; } + public Uri TermsUri { get; set; } + public Uri CheckoutUri { get; set; } + public Uri ConfirmationUri { get; set; } + public Uri CheckoutValidationCallbackUri { get; set; } + public Uri WebhookUri { get; set; } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/SveaApiUrls.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/SveaApiUrls.cs new file mode 100644 index 0000000..2380527 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Configurations/SveaApiUrls.cs @@ -0,0 +1,10 @@ +namespace Sample.Testshop.Server.Configurations +{ + using System; + + public class SveaApiUrls + { + public Uri CheckoutApiUri { get; set; } + public Uri PaymentAdminApiUri { get; set; } + } +} \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Extensions/StartupExtensions.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Extensions/StartupExtensions.cs new file mode 100644 index 0000000..f5ee799 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Extensions/StartupExtensions.cs @@ -0,0 +1,81 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Options; +using Sample.Testshop.Server.Configurations; +using System.Globalization; +using System.Runtime.ConstrainedExecution; +namespace Sample.Testshop.Server.Extensions +{ + public static class StartupExtensions + { + public static WebApplicationBuilder ConfigureServices(this WebApplicationBuilder builder) + { + + var sveaApiUrlsSettings = builder.Configuration.GetSection("SveaApiUrls"); + builder.Services.Configure(sveaApiUrlsSettings); + var sveaApiUrls = sveaApiUrlsSettings.Get(); + var checkoutUri = new Uri(builder.Configuration.GetValue("SveaApiUrls:CheckoutApiUri") ?? ""); + var paymentAdminUri = new Uri(builder.Configuration.GetValue("SveaApiUrls:PaymentAdminApiUri") ?? ""); + + // We can later add retry Policy like in the old sample testshop + builder.Services.AddHttpClient("checkoutApi", client => client.BaseAddress = checkoutUri) + .ConfigurePrimaryHttpMessageHandler(() => RedirectHandler); + + builder.Services.AddHttpClient("paymentAdminApi", client => client.BaseAddress = paymentAdminUri) + .ConfigurePrimaryHttpMessageHandler(() => RedirectHandler); + var credentialsSettings = builder.Configuration.GetSection("Credentials"); + builder.Services.Configure>(credentialsSettings); + var credentials = credentialsSettings.Get>(); + var credential = credentials?.FirstOrDefault(); + + var merchantSettingsSettings = builder.Configuration.GetSection("MerchantSettings"); + builder.Services.Configure(sveaApiUrlsSettings); + var merchantSettings = merchantSettingsSettings.Get(); + + builder.Services.AddTransient(); + + + builder.Services.Configure>(builder.Configuration.GetSection("Markets")); + + builder.Services.AddSveaClient(checkoutUri, paymentAdminUri, credential?.MerchantId, credential?.Secret); + + + return builder; + + } + public static IServiceCollection AddSveaClient(this IServiceCollection services, Uri checkoutUri, Uri paymentAdminUri, string merchantId, string secret) + { + services.AddHttpClient("checkoutApi", client => client.BaseAddress = checkoutUri) + .ConfigurePrimaryHttpMessageHandler(() => RedirectHandler); + + services.AddHttpClient("paymentAdminApi", client => client.BaseAddress = paymentAdminUri) + .ConfigurePrimaryHttpMessageHandler(() => RedirectHandler); + + services.AddTransient(s => + { + + var httpContextAccessor = s.GetService(); + var currentMarket = httpContextAccessor.HttpContext.Request.Headers["merchantId"].FirstOrDefault() ?? "SE"; + var credentials = s.GetService>>()?.Value; + var credential = credentials?.FirstOrDefault(x => x.MerchantId.Equals(currentMarket, StringComparison.InvariantCultureIgnoreCase)); + var httpClientFactory = s.GetService(); + var checkoutApiHttpClient = httpClientFactory.CreateClient("checkoutApi"); + var paymentAdminApiHttpClient = httpClientFactory.CreateClient("paymentAdminApi"); + return new Svea.WebPay.SDK.SveaWebPayClient(checkoutApiHttpClient, paymentAdminApiHttpClient, new Svea.WebPay.SDK.Credentials(credential?.MerchantId ?? merchantId, credential?.Secret ?? secret), s.GetService()); + }); + //services.AddTransient(s => + //{ + + // var httpContextAccessor = s.GetService(); + // var currentMarket = httpContextAccessor.HttpContext.Request.Headers["merchantId"].FirstOrDefault() ?? "SE"; + // var credentials = s.GetService>>()?.Value; + // var credential = credentials?.FirstOrDefault(x => x.MerchantId.Equals(currentMarket, StringComparison.InvariantCultureIgnoreCase)); + // var httpClientFactory = s.GetService(); + // return new Svea.WebPay.SDK.SveaHttpClient(httpClientFactory.CreateClient("checkoutApi"), new Svea.WebPay.SDK.Credentials(credential?.MerchantId ?? merchantId, credential?.Secret ?? secret), s.GetService())č + //}); + + return services; + } + + private static HttpClientHandler RedirectHandler => new HttpClientHandler { AllowAutoRedirect = false }; + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/ChangePaymentMethodHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/ChangePaymentMethodHandler.cs new file mode 100644 index 0000000..e4acdce --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/ChangePaymentMethodHandler.cs @@ -0,0 +1,14 @@ +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi.Recurring; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public static class ChangePaymentMethodHandler + { + public static async Task Handle(string token, ChangepaymentMethodModel request, SveaWebPayClient sveaWebPayClient) + { + var response = await sveaWebPayClient.Checkout.Recurring.ChangePaymentMethodAsync(request, token); + return response; + } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/CreateOrderHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/CreateOrderHandler.cs new file mode 100644 index 0000000..5d92365 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/CreateOrderHandler.cs @@ -0,0 +1,156 @@ +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi; +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public static class CreateOrderHandler + { + + public static async Task Handle(CreateOrderRequestModel createOrderModel, SveaWebPayClient sveaClient) + { + if (string.IsNullOrWhiteSpace(createOrderModel?.ClientOrderNumber)) + { + createOrderModel.ClientOrderNumber = Guid.NewGuid().ToString().Replace("-", ""); + createOrderModel.Currency = "SEK"; + } + + + var response = await sveaClient.Checkout.CreateOrder(new CreateOrderModel(new RegionInfo(createOrderModel.CountryCode), new CurrencyCode(createOrderModel.Currency), new Language(createOrderModel.Locale), + createOrderModel.ClientOrderNumber, createOrderModel.MerchantSettings?.ToSDKModel(), createOrderModel.Cart.ToSDKModel(), + createOrderModel.RequireElectronicIdAuthentication, + createOrderModel.PresetValues?.Select(x => new Presetvalue(x.TypeName, x.Value, x.IsReadonly)).ToList(), null, null, createOrderModel.MerchantData, null)); + + return response; + + } + public class CreateOrderRequestModel + { + public string CountryCode { get; set; } = string.Empty; + public string Currency { get; set; } = string.Empty; + public string Locale { get; set; } = string.Empty; + public string ClientOrderNumber { get; set; } = string.Empty; + public MerchantSettings MerchantSettings { get; set; } = new MerchantSettings() + { + + CheckoutUri = "https://loalhost:3000/checkoutPage", + ConfirmationUri = "https://localhost:3000/confirmationPage/clientOrderNumber", + TermsUri = "https://localhost:3000/legalterms", + PushUri = "https://localhost:3000/pushUri" + + }; + public Cart Cart { get; set; } = new Cart(); + public ShippingInformation? ShippingInformation { get; set; } + public List? PresetValues { get; set; } + public Validation Validation { get; set; } = new Validation(); + public IdentityFlags? IdentityFlags { get; set; } + public bool RequireElectronicIdAuthentication { get; set; } + public string? PartnerKey { get; set; } + public string? MerchantData { get; set; } + public bool Recurring { get; set; } + } + + public class MerchantSettings + { + public string? CheckoutValidationCallBackUri { get; set; } = string.Empty; + public string PushUri { get; set; } = string.Empty; + public string TermsUri { get; set; } = string.Empty; + public string CheckoutUri { get; set; } = string.Empty; + public string ConfirmationUri { get; set; } = string.Empty; + public List? ActivePartPaymentCampaigns { get; set; } + public long? PromotedPartPaymentCampaign { get; set; } + + public Svea.WebPay.SDK.CheckoutApi.MerchantSettings ToSDKModel() + { + return new Svea.WebPay.SDK.CheckoutApi.MerchantSettings(new Uri(PushUri), + new Uri(TermsUri), + new Uri(CheckoutUri), + new Uri(ConfirmationUri), + !string.IsNullOrEmpty(CheckoutValidationCallBackUri) ? new Uri(CheckoutValidationCallBackUri) : null, + null, + ActivePartPaymentCampaigns ?? new List(), + PromotedPartPaymentCampaign); + } + } + + public class Cart + { + public List Items { get; set; } = new List(); + public Svea.WebPay.SDK.CheckoutApi.Cart ToSDKModel() + { + return new Svea.WebPay.SDK.CheckoutApi.Cart( + Items.Select(x => new Svea.WebPay.SDK.CheckoutApi.OrderRow( + x.ArticleNumber, + x.Name, + x.Quantity, + x.UnitPrice, + x.DiscountPercent, + x.DiscountAmount, + x.VatPercent, + x.Unit, + x.TemporaryReference, + x.RowNumber, + x.MerchantData, + x.RowType)).ToList()); + } + } + + public class OrderRow + { + public string? ArticleNumber { get; set; } + public string Name { get; set; } = string.Empty; + public long Quantity { get; set; } + public long UnitPrice { get; set; } + public long DiscountPercent { get; set; } + public long DiscountAmount { get; set; } + public long VatPercent { get; set; } + public string Unit { get; set; } = string.Empty; + public string? TemporaryReference { get; set; } + public int RowNumber { get; set; } + public string? MerchantData { get; set; } + public string? RowType { get; set; } + } + + public class ShippingInformation + { + public bool EnableShipping { get; set; } + public bool EnforceFallback { get; set; } + public double Weight { get; set; } + public Dictionary? Tags { get; set; } + public List? FallbackOptions { get; set; } + public bool ShouldRejectShippingSession { get; set; } + } + + public class FallbackOption + { + public string Id { get; set; } = string.Empty; + public string Carrier { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; + public long ShippingFee { get; set; } + public List? Addons { get; set; } + public List? Fields { get; set; } + } + + public class PresetValue + { + public string TypeName { get; set; } = string.Empty; + public string Value { get; set; } = string.Empty; + public bool IsReadonly { get; set; } + } + + public class Validation + { + int? MinAge { get; set; } + } + + public class IdentityFlags + { + public bool HideNotYou { get; set; } + public bool HideChangeAddress { get; set; } + public bool HideAnonymous { get; set; } + } + + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/CreateRecurringOrderHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/CreateRecurringOrderHandler.cs new file mode 100644 index 0000000..29e1f9a --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/CreateRecurringOrderHandler.cs @@ -0,0 +1,48 @@ +using Sample.Testshop.Server.Modules.Checkout.Models; +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi; +using Svea.WebPay.SDK.CheckoutApi.Recurring; +using System.Globalization; +using Cart = Sample.Testshop.Server.Modules.Checkout.Models.Cart; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public static class CreateRecurringOrderHandler + { + public static async Task Handle(CreateRecurringOrderRequest createRecurringOrderModel, string token, SveaWebPayClient sveaClient) + { + if (string.IsNullOrWhiteSpace(createRecurringOrderModel?.ClientOrderNumber)) + { + createRecurringOrderModel.ClientOrderNumber = Guid.NewGuid().ToString().Replace("-", ""); + createRecurringOrderModel.Currency = "SEK"; + } + + + var response = await sveaClient.Checkout.Recurring.CreateRecurringOrderAsync(new CreateRecurringOrderModel(createRecurringOrderModel.ClientOrderNumber, createRecurringOrderModel.Currency, + createRecurringOrderModel.MerchantSettings.ToSDKModel(), createRecurringOrderModel.Cart.ToSDKModel()), token); + + return response; + + } + public class CreateRecurringOrderRequest + { + public string ClientOrderNumber { get; set; } + public string Currency { get; set; } + public Cart Cart { get; set; } + public RecurringMerchantSettingsRequest MerchantSettings { get; set; } + } + public class RecurringMerchantSettingsRequest + { + public string CheckoutValidationCallBackUri { get; set; } + public string PushUri { get; set; } + public RecurringMerchantSettings ToSDKModel() + { + return new RecurringMerchantSettings() + { + PushUri = new Uri(PushUri), + CheckoutValidationCallBackUri = !string.IsNullOrEmpty(CheckoutValidationCallBackUri) ? new Uri(CheckoutValidationCallBackUri) : null, + }; + } + } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetAvailableCampaignsHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetAvailableCampaignsHandler.cs new file mode 100644 index 0000000..8916fda --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetAvailableCampaignsHandler.cs @@ -0,0 +1,30 @@ +using Microsoft.AspNetCore.Mvc; +using Svea.WebPay.SDK; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public static class GetAvailableCampaignsHandler + { + //public static Task Handle(SveaWebPayClient sveaClient, [FromQuery] bool isCompany, [FromQuery] int amount) + //{ + // //sveaClient.Checkout. + //} + public class AvailableCampaigns + { + public int CampaignCode { get; set; } + public string Description { get; set; } + public int PaymentPlanType { get; set; } + public int ContractLengthInMonths { get; set; } + public double MonthlyAnnuityFactor { get; set; } + public double InitialFee { get; set; } + public double NotificationFee { get; set; } + public double InterestRatePercent { get; set; } + public int NumberOfInterestFreeMonths { get; set; } + public int NumberOfPaymentFreeMonths { get; set; } + public decimal FromAmount { get; set; } + public decimal ToAmount { get; set; } + public decimal MonthlyAmount { get; set; } + } + + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetMerchantsHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetMerchantsHandler.cs new file mode 100644 index 0000000..9a4d91e --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetMerchantsHandler.cs @@ -0,0 +1,16 @@ + +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Options; +using Sample.Testshop.Server.Configurations; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public class GetMerchantsHandler + { + public static dynamic Handle(IOptions> options ) + { + var credentials = options?.Value; + return credentials?.Select(x => new { Market = x.MarketId, MerchantId = x.MerchantId }); + } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetOrderHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetOrderHandler.cs new file mode 100644 index 0000000..9a96f43 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetOrderHandler.cs @@ -0,0 +1,15 @@ +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public class GetOrderHandler + { + public static async Task Handle(int orderId, SveaWebPayClient sveaClient) + { + var response = await sveaClient.Checkout.GetOrder(orderId); + return response; + + } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetRecurringOrder.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetRecurringOrder.cs new file mode 100644 index 0000000..f4d15c3 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetRecurringOrder.cs @@ -0,0 +1,15 @@ +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi; +using Svea.WebPay.SDK.CheckoutApi.Recurring; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public static class GetRecurringOrder + { + public static async Task Handle(string token, long orderId, SveaWebPayClient sveaWebPayClient) + { + var response = await sveaWebPayClient.Checkout.Recurring.GetRecurringOrderAsync(token, orderId); + return response; + } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetRecurringToken.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetRecurringToken.cs new file mode 100644 index 0000000..e7855fc --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/GetRecurringToken.cs @@ -0,0 +1,15 @@ +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi.Recurring; + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public static class GetRecurringToken + { + public static async Task Handle(string token, SveaWebPayClient sveaWebPayClient) + { + var response = await sveaWebPayClient.Checkout.Recurring.GetRecurringTokenAsync(token); + return response; + + } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/Models/CreateOrderRequestModel.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/Models/CreateOrderRequestModel.cs new file mode 100644 index 0000000..5f00b48 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/Models/CreateOrderRequestModel.cs @@ -0,0 +1,28 @@ +namespace Sample.Testshop.Server.Modules.Checkout.Models +{ + public class CreateOrderRequestModel + { + public string CountryCode { get; set; } = string.Empty; + public string Currency { get; set; } = string.Empty; + public string Locale { get; set; } = string.Empty; + public string ClientOrderNumber { get; set; } = string.Empty; + public MerchantSettings MerchantSettings { get; set; } = new MerchantSettings() + { + + CheckoutUri = "https://loalhost:3000/checkoutPage", + ConfirmationUri = "https://localhost:3000/confirmationPage/clientOrderNumber", + TermsUri = "https://localhost:3000/legalterms", + PushUri = "https://localhost:3000/pushUri" + + }; + public Cart Cart { get; set; } = new Cart(); + public ShippingInformation? ShippingInformation { get; set; } + public List? PresetValues { get; set; } + public Validation Validation { get; set; } = new Validation(); + public IdentityFlags? IdentityFlags { get; set; } + public bool RequireElectronicIdAuthentication { get; set; } + public string? PartnerKey { get; set; } + public string? MerchantData { get; set; } + public bool Recurring { get; set; } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/Models/OrderModels.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/Models/OrderModels.cs new file mode 100644 index 0000000..fca7d97 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/Models/OrderModels.cs @@ -0,0 +1,103 @@ +namespace Sample.Testshop.Server.Modules.Checkout.Models +{ + + public class MerchantSettings + { + public string? CheckoutValidationCallBackUri { get; set; } = string.Empty; + public string PushUri { get; set; } = string.Empty; + public string TermsUri { get; set; } = string.Empty; + public string CheckoutUri { get; set; } = string.Empty; + public string ConfirmationUri { get; set; } = string.Empty; + public List? ActivePartPaymentCampaigns { get; set; } + public long? PromotedPartPaymentCampaign { get; set; } + + public Svea.WebPay.SDK.CheckoutApi.MerchantSettings ToSDKModel() + { + return new Svea.WebPay.SDK.CheckoutApi.MerchantSettings(new Uri(PushUri), + new Uri(TermsUri), + new Uri(CheckoutUri), + new Uri(ConfirmationUri), + !string.IsNullOrEmpty(CheckoutValidationCallBackUri) ? new Uri(CheckoutValidationCallBackUri) : null, + null, + ActivePartPaymentCampaigns ?? new List(), + PromotedPartPaymentCampaign); + } + } + + public class Cart + { + public List Items { get; set; } = new List(); + public Svea.WebPay.SDK.CheckoutApi.Cart ToSDKModel() + { + return new Svea.WebPay.SDK.CheckoutApi.Cart( + Items.Select(x => new Svea.WebPay.SDK.CheckoutApi.OrderRow( + x.ArticleNumber, + x.Name, + x.Quantity, + x.UnitPrice, + x.DiscountPercent, + x.DiscountAmount, + x.VatPercent, + x.Unit, + x.TemporaryReference, + x.RowNumber, + x.MerchantData, + x.RowType)).ToList()); + } + } + + public class OrderRow + { + public string? ArticleNumber { get; set; } + public string Name { get; set; } = string.Empty; + public long Quantity { get; set; } + public long UnitPrice { get; set; } + public long DiscountPercent { get; set; } + public long DiscountAmount { get; set; } + public long VatPercent { get; set; } + public string Unit { get; set; } = string.Empty; + public string? TemporaryReference { get; set; } + public int RowNumber { get; set; } + public string? MerchantData { get; set; } + public string? RowType { get; set; } + } + + public class ShippingInformation + { + public bool EnableShipping { get; set; } + public bool EnforceFallback { get; set; } + public double Weight { get; set; } + public Dictionary? Tags { get; set; } + public List? FallbackOptions { get; set; } + public bool ShouldRejectShippingSession { get; set; } + } + + public class FallbackOption + { + public string Id { get; set; } = string.Empty; + public string Carrier { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; + public long ShippingFee { get; set; } + public List? Addons { get; set; } + public List? Fields { get; set; } + } + + public class PresetValue + { + public string TypeName { get; set; } = string.Empty; + public string Value { get; set; } = string.Empty; + public bool IsReadonly { get; set; } + } + + public class Validation + { + int? MinAge { get; set; } + } + + public class IdentityFlags + { + public bool HideNotYou { get; set; } + public bool HideChangeAddress { get; set; } + public bool HideAnonymous { get; set; } + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/UpdateOrderHandler.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/UpdateOrderHandler.cs new file mode 100644 index 0000000..5917fb9 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Modules/Checkout/UpdateOrderHandler.cs @@ -0,0 +1,81 @@ +using Microsoft.AspNetCore.Http.HttpResults; +using Svea.WebPay.SDK; +using Svea.WebPay.SDK.CheckoutApi; +using System.Globalization; + + +namespace Sample.Testshop.Server.Modules.Checkout +{ + public class UpdateOrderHandler + { + public static async Task, BadRequest>> Handle(long orderId, UpdateOrderRequestModel updateOrderModel, SveaWebPayClient sveaClient) + { + if (orderId == 0) + { + return TypedResults.BadRequest(new { Message = "OrderId must be provided" }); + } + var response = await sveaClient.Checkout.UpdateOrder(orderId, new UpdateOrderModel(updateOrderModel.Cart.ToSDKModel())); + + return TypedResults.Ok(response); + + } + + public class UpdateOrderRequestModel + { + public Cart Cart { get; set; } = new Cart(); + public string MerchantData { get; set; } = string.Empty; + public ShippingInformation? ShippingInformation { get; set; } + public Validation? Validation { get; set; } + } + public class Cart + { + public List Items { get; set; } = new List(); + public Svea.WebPay.SDK.CheckoutApi.Cart ToSDKModel() + { + return new Svea.WebPay.SDK.CheckoutApi.Cart( + Items.Select(x => new Svea.WebPay.SDK.CheckoutApi.OrderRow( + x.ArticleNumber, + x.Name, + new MinorUnit(x.Quantity), + new MinorUnit(x.UnitPrice), + new MinorUnit(x.DiscountPercent), + new MinorUnit(x.DiscountAmount), + new MinorUnit(x.VatPercent), + x.Unit, + x.TemporaryReference, + x.RowNumber, + x.MerchantData, + x.RowType)).ToList()); + } + } + + public class OrderRow + { + public string? ArticleNumber { get; set; } + public string Name { get; set; } = string.Empty; + public long Quantity { get; set; } + public long UnitPrice { get; set; } + public long DiscountPercent { get; set; } + public long DiscountAmount { get; set; } + public long VatPercent { get; set; } + public string Unit { get; set; } = string.Empty; + public string? TemporaryReference { get; set; } + public int RowNumber { get; set; } + public string? MerchantData { get; set; } + public string? RowType { get; set; } + } + public class Validation + { + } + public class ShippingInformation + { + public bool EnableShipping { get; set; } + public bool EnforceFallback { get; set; } + public double Weight { get; set; } + public Dictionary? Tags { get; set; } + public List? FallbackOptions { get; set; } + public bool ShouldRejectShippingSession { get; set; } + } + + } +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Program.cs b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Program.cs new file mode 100644 index 0000000..b597f20 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Program.cs @@ -0,0 +1,61 @@ +using Microsoft.AspNetCore.Builder; +using Sample.Testshop.Server.Extensions; +using Sample.Testshop.Server.Modules.Checkout; + +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); +builder.ConfigureServices(); + +var app = builder.Build(); + +app.UseDefaultFiles(); +app.UseStaticFiles(); + +// Configure the HTTP request pipeline. +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseHttpsRedirection(); + + +app.MapPost("/api/orders", CreateOrderHandler.Handle) +.WithName("Create Checkout Order") +.WithOpenApi(); + +app.MapPatch("/api/orders/{orderId}", UpdateOrderHandler.Handle) +.WithName("Update Checkout Order") +.WithOpenApi(); + + +app.MapGet("/api/orders/{orderId}", GetOrderHandler.Handle) +.WithName("Get Checkout Order") +.WithOpenApi(); + +// Recurring Orders +app.MapPost("/api/recurring/{token}/orders", CreateRecurringOrderHandler.Handle).WithName("Create Recurring Order") +.WithOpenApi(); ; +app.MapGet("/api/recurring/{token}/orders/{orderId}", GetRecurringOrder.Handle).WithName("Get Recurring Order") +.WithOpenApi(); ; + +app.MapGet("/api/recurring/{token}", GetRecurringToken.Handle).WithName("Get Recurring Token") +.WithOpenApi(); ; + +app.MapPost("/api/recurring/{token}/payment-method", ChangePaymentMethodHandler.Handle).WithName("Change Payment Method").WithOpenApi(); + +app.MapGet("/api/utils/merchants", GetMerchantsHandler.Handle).WithName("Get Available Merchants").WithOpenApi(); + +app.MapFallbackToFile("/index.html"); + +app.Run(); + +internal record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary) +{ + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); +} diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Properties/launchSettings.json b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Properties/launchSettings.json new file mode 100644 index 0000000..158892c --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Properties/launchSettings.json @@ -0,0 +1,45 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:21465", + "sslPort": 44342 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5008", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7097;http://localhost:5008", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.SpaProxy" + } + } + } +} + diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Sample.Testshop.Server.csproj b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Sample.Testshop.Server.csproj new file mode 100644 index 0000000..95af49a --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Sample.Testshop.Server.csproj @@ -0,0 +1,27 @@ + + + + net8.0 + enable + enable + ..\sample.testshop.client + npm run dev + https://localhost:5173 + + + + + + 8.*-* + + + + + + + + false + + + + diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/Sample.Testshop.Server.http b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Sample.Testshop.Server.http new file mode 100644 index 0000000..b0fbe75 --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/Sample.Testshop.Server.http @@ -0,0 +1,6 @@ +@Sample.Testshop.Server_HostAddress = http://localhost:5008 + +GET {{Sample.Testshop.Server_HostAddress}}/weatherforecast/ +Accept: application/json + +### diff --git a/src/Samples/Sample.Testshop/Sample.Testshop.Server/appsettings.json b/src/Samples/Sample.Testshop/Sample.Testshop.Server/appsettings.json new file mode 100644 index 0000000..25a24df --- /dev/null +++ b/src/Samples/Sample.Testshop/Sample.Testshop.Server/appsettings.json @@ -0,0 +1,85 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*", + "SveaApiUrls": { + "CheckoutApiUri": "https://checkoutapistage.svea.com", + "PaymentAdminApiUri": "https://paymentadminapistage.svea.com" + }, + "Markets": [ + { + "Id": "SE", + "Languages": [ + "sv-SE" + ], + "Countries": [ + "SE" + ], + "Currencies": [ + "SEK" + ] + }, + { + "Id": "NO", + "Languages": [ + "nn-NO" + ], + "Countries": [ + "NO" + ], + "Currencies": [ + "NOK" + ] + }, + { + "Id": "FI", + "Languages": [ + "fi-FI" + ], + "Countries": [ + "BE", + "EE", + "FR", + "NL", + "IT", + "LV", + "LT", + "ES", + "DE", + "AT" + ], + "Currencies": [ + "EUR" + ] + } + ], + "Credentials": [ + { + "MarketId": "SE", + "MerchantId": "201663", + "Secret": "" + }, + { + "MarketId": "NO", + "MerchantId": "203362", + "Secret": "" + }, + { + "MarketId": "FI", + "MerchantId": "203968", + "Secret": "" + } + ], + "MerchantSettings": { + "PushUri": "https://svea-sample.ngrok.io/api/svea/push/{checkout.order.uri}/?marketId={marketId}", + "TermsUri": "https://svea-sample.ngrok.io/terms", + "CheckoutUri": "https://localhost:44345/CheckOut/LoadPaymentMenu", + "ConfirmationUri": "https://localhost:44345/checkout/thankyou", + "CheckoutValidationCallbackUri": "https://svea-sample.ngrok.io/api/svea/validation/{checkout.order.uri}/?marketId={marketId}", + "WebhookUri": "https://svea-sample.ngrok.io/api/svea/shippingvalidation/?marketId={marketId}" + } +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/.eslintrc.cjs b/src/Samples/Sample.Testshop/sample.testshop.client/.eslintrc.cjs new file mode 100644 index 0000000..d6c9537 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/.gitignore b/src/Samples/Sample.Testshop/sample.testshop.client/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/README.md b/src/Samples/Sample.Testshop/sample.testshop.client/README.md new file mode 100644 index 0000000..e1cdc89 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/README.md @@ -0,0 +1,30 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: + +- Configure the top-level `parserOptions` property like this: + +```js +export default { + // other rules... + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: __dirname, + }, +} +``` + +- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` +- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` +- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/index.html b/src/Samples/Sample.Testshop/sample.testshop.client/index.html new file mode 100644 index 0000000..e4b78ea --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite + React + TS + + +
+ + + diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/nuget.config b/src/Samples/Sample.Testshop/sample.testshop.client/nuget.config new file mode 100644 index 0000000..6548586 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/nuget.config @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/package-lock.json b/src/Samples/Sample.Testshop/sample.testshop.client/package-lock.json new file mode 100644 index 0000000..c3f1f58 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/package-lock.json @@ -0,0 +1,4732 @@ +{ + "name": "sample.testshop.client", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "sample.testshop.client", + "version": "0.0.0", + "dependencies": { + "@emotion/react": "^11.13.0", + "@emotion/styled": "^11.13.0", + "@mui/icons-material": "^5.16.6", + "@mui/material": "^5.16.6", + "axios": "^1.7.3", + "react": "^18.3.1", + "react-cookie": "^7.2.0", + "react-dom": "^18.3.1", + "react-hook-form": "^7.52.2", + "react-router-dom": "^6.26.0", + "uuid": "^10.0.0" + }, + "devDependencies": { + "@types/node": "^22.0.2", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@types/uuid": "^10.0.0", + "@typescript-eslint/eslint-plugin": "^7.15.0", + "@typescript-eslint/parser": "^7.15.0", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^8.57.0", + "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-react-refresh": "^0.4.7", + "typescript": "^5.5.4", + "vite": "^5.3.4", + "vite-plugin-svgr": "^4.2.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "license": "MIT", + "dependencies": { + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.2.tgz", + "integrity": "sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.0.tgz", + "integrity": "sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.25.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.0.tgz", + "integrity": "sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz", + "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.25.2" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.24.7.tgz", + "integrity": "sha512-fOPQYbGSgH0HUp4UJO4sMBFjY6DuWq+2i8rixyUMb3CdGixs/gccURvYOAhajBdKDoGajFr3mUq5rH3phtkGzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.24.7.tgz", + "integrity": "sha512-J2z+MWzZHVOemyLweMqngXrgGC42jQ//R0KdxqkIz/OrbVIIlhFI3WigZ5fO+nwFvBlncr4MGapd8vTyc7RPNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz", + "integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.3.tgz", + "integrity": "sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/parser": "^7.25.3", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.2", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", + "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emotion/babel-plugin": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.12.0.tgz", + "integrity": "sha512-y2WQb+oP8Jqvvclh8Q55gLUyb7UFvgv7eJfsj7td5TToBrIUtPay2kMrZi4xjq9qw2vD0ZR5fSho0yqoFgX7Rw==", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.2", + "@emotion/memoize": "^0.9.0", + "@emotion/serialize": "^1.2.0", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.2.0" + } + }, + "node_modules/@emotion/babel-plugin/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "license": "MIT" + }, + "node_modules/@emotion/babel-plugin/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@emotion/cache": { + "version": "11.13.1", + "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.13.1.tgz", + "integrity": "sha512-iqouYkuEblRcXmylXIwwOodiEK5Ifl7JcX7o6V4jI3iW4mLXX3dmt5xwBtIkJiQEXFAI+pC8X0i67yiPkH9Ucw==", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.9.0", + "@emotion/sheet": "^1.4.0", + "@emotion/utils": "^1.4.0", + "@emotion/weak-memoize": "^0.4.0", + "stylis": "4.2.0" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz", + "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==", + "license": "MIT" + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.3.0.tgz", + "integrity": "sha512-SHetuSLvJDzuNbOdtPVbq6yMMMlLoW5Q94uDqJZqy50gcmAjxFkVqmzqSGEFq9gT2iMuIeKV1PXVWmvUhuZLlQ==", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.9.0" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz", + "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==", + "license": "MIT" + }, + "node_modules/@emotion/react": { + "version": "11.13.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.13.0.tgz", + "integrity": "sha512-WkL+bw1REC2VNV1goQyfxjx1GYJkcc23CRQkXX+vZNLINyfI7o+uUn/rTGPt/xJ3bJHd5GcljgnxHf4wRw5VWQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.12.0", + "@emotion/cache": "^11.13.0", + "@emotion/serialize": "^1.3.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.1.0", + "@emotion/utils": "^1.4.0", + "@emotion/weak-memoize": "^0.4.0", + "hoist-non-react-statics": "^3.3.1" + }, + "peerDependencies": { + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/serialize": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.0.tgz", + "integrity": "sha512-jACuBa9SlYajnpIVXB+XOXnfJHyckDfe6fOpORIM6yhBDlqGuExvDdZYHDQGoDf3bZXGv7tNr+LpLjJqiEQ6EA==", + "license": "MIT", + "dependencies": { + "@emotion/hash": "^0.9.2", + "@emotion/memoize": "^0.9.0", + "@emotion/unitless": "^0.9.0", + "@emotion/utils": "^1.4.0", + "csstype": "^3.0.2" + } + }, + "node_modules/@emotion/sheet": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz", + "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==", + "license": "MIT" + }, + "node_modules/@emotion/styled": { + "version": "11.13.0", + "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.13.0.tgz", + "integrity": "sha512-tkzkY7nQhW/zC4hztlwucpT8QEZ6eUzpXDRhww/Eej4tFfO0FxQYWRyg/c5CCXa4d/f174kqeXYjuQRnhzf6dA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.12.0", + "@emotion/is-prop-valid": "^1.3.0", + "@emotion/serialize": "^1.3.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.1.0", + "@emotion/utils": "^1.4.0" + }, + "peerDependencies": { + "@emotion/react": "^11.0.0-rc.0", + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/unitless": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.9.0.tgz", + "integrity": "sha512-TP6GgNZtmtFaFcsOgExdnfxLLpRDla4Q66tnenA9CktvVSdNKDvMVuUah4QvWPIpNjrWsGg3qeGo9a43QooGZQ==", + "license": "MIT" + }, + "node_modules/@emotion/use-insertion-effect-with-fallbacks": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.1.0.tgz", + "integrity": "sha512-+wBOcIV5snwGgI2ya3u99D7/FJquOIniQT1IKyDsBmEgwvpxMNeS65Oib7OnE2d2aY+3BU4OiH+0Wchf8yk3Hw==", + "license": "MIT", + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@emotion/utils": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.0.tgz", + "integrity": "sha512-spEnrA1b6hDR/C68lC2M7m6ALPUHZC0lIY7jAS/B/9DuuO1ZP04eov8SMv/6fwRd8pzmsn2AuJEznRREWlQrlQ==", + "license": "MIT" + }, + "node_modules/@emotion/weak-memoize": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz", + "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==", + "license": "MIT" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", + "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", + "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@mui/core-downloads-tracker": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.16.6.tgz", + "integrity": "sha512-kytg6LheUG42V8H/o/Ptz3olSO5kUXW9zF0ox18VnblX6bO2yif1FPItgc3ey1t5ansb1+gbe7SatntqusQupg==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + } + }, + "node_modules/@mui/icons-material": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.16.6.tgz", + "integrity": "sha512-ceNGjoXheH9wbIFa1JHmSc9QVjJUvh18KvHrR4/FkJCSi9HXJ+9ee1kUhCOEFfuxNF8UB6WWVrIUOUgRd70t0A==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@mui/material": "^5.0.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.16.6.tgz", + "integrity": "sha512-0LUIKBOIjiFfzzFNxXZBRAyr9UQfmTAFzbt6ziOU2FDXhorNN2o3N9/32mNJbCA8zJo2FqFU6d3dtoqUDyIEfA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9", + "@mui/core-downloads-tracker": "^5.16.6", + "@mui/system": "^5.16.6", + "@mui/types": "^7.2.15", + "@mui/utils": "^5.16.6", + "@popperjs/core": "^2.11.8", + "@types/react-transition-group": "^4.4.10", + "clsx": "^2.1.0", + "csstype": "^3.1.3", + "prop-types": "^15.8.1", + "react-is": "^18.3.1", + "react-transition-group": "^4.4.5" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/private-theming": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.16.6.tgz", + "integrity": "sha512-rAk+Rh8Clg7Cd7shZhyt2HGTTE5wYKNSJ5sspf28Fqm/PZ69Er9o6KX25g03/FG2dfpg5GCwZh/xOojiTfm3hw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9", + "@mui/utils": "^5.16.6", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/styled-engine": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.16.6.tgz", + "integrity": "sha512-zaThmS67ZmtHSWToTiHslbI8jwrmITcN93LQaR2lKArbvS7Z3iLkwRoiikNWutx9MBs8Q6okKvbZq1RQYB3v7g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9", + "@emotion/cache": "^11.11.0", + "csstype": "^3.1.3", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/react": "^11.4.1", + "@emotion/styled": "^11.3.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + } + } + }, + "node_modules/@mui/system": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.16.6.tgz", + "integrity": "sha512-5xgyJjBIMPw8HIaZpfbGAaFYPwImQn7Nyh+wwKWhvkoIeDosQ1ZMVrbTclefi7G8hNmqhip04duYwYpbBFnBgw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9", + "@mui/private-theming": "^5.16.6", + "@mui/styled-engine": "^5.16.6", + "@mui/types": "^7.2.15", + "@mui/utils": "^5.16.6", + "clsx": "^2.1.0", + "csstype": "^3.1.3", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/types": { + "version": "7.2.15", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.15.tgz", + "integrity": "sha512-nbo7yPhtKJkdf9kcVOF8JZHPZTmqXjJ/tI0bdWgHg5tp9AnIN4Y7f7wm9T+0SyGYJk76+GYZ8Q5XaTYAsUHN0Q==", + "license": "MIT", + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/utils": { + "version": "5.16.6", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.16.6.tgz", + "integrity": "sha512-tWiQqlhxAt3KENNiSRL+DIn9H5xNVK6Jjf70x3PnfQPz1MPBdh7yyIcAyVBT9xiw7hP3SomRhPR7hzBMBCjqEA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9", + "@mui/types": "^7.2.15", + "@types/prop-types": "^15.7.12", + "clsx": "^2.1.1", + "prop-types": "^15.8.1", + "react-is": "^18.3.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@remix-run/router": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.0.tgz", + "integrity": "sha512-zDICCLKEwbVYTS6TjYaWtHXxkdoUvD/QXvyVZjGCsWz5vyH7aFeONlPffPdW+Y/t6KT0MgXb2Mfjun9YpWN1dA==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", + "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.19.2.tgz", + "integrity": "sha512-OHflWINKtoCFSpm/WmuQaWW4jeX+3Qt3XQDepkkiFTsoxFc5BpF3Z5aDxFZgBqRjO6ATP5+b1iilp4kGIZVWlA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.19.2.tgz", + "integrity": "sha512-k0OC/b14rNzMLDOE6QMBCjDRm3fQOHAL8Ldc9bxEWvMo4Ty9RY6rWmGetNTWhPo+/+FNd1lsQYRd0/1OSix36A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.19.2.tgz", + "integrity": "sha512-IIARRgWCNWMTeQH+kr/gFTHJccKzwEaI0YSvtqkEBPj7AshElFq89TyreKNFAGh5frLfDCbodnq+Ye3dqGKPBw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.19.2.tgz", + "integrity": "sha512-52udDMFDv54BTAdnw+KXNF45QCvcJOcYGl3vQkp4vARyrcdI/cXH8VXTEv/8QWfd6Fru8QQuw1b2uNersXOL0g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.19.2.tgz", + "integrity": "sha512-r+SI2t8srMPYZeoa1w0o/AfoVt9akI1ihgazGYPQGRilVAkuzMGiTtexNZkrPkQsyFrvqq/ni8f3zOnHw4hUbA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.19.2.tgz", + "integrity": "sha512-+tYiL4QVjtI3KliKBGtUU7yhw0GMcJJuB9mLTCEauHEsqfk49gtUBXGtGP3h1LW8MbaTY6rSFIQV1XOBps1gBA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.19.2.tgz", + "integrity": "sha512-OR5DcvZiYN75mXDNQQxlQPTv4D+uNCUsmSCSY2FolLf9W5I4DSoJyg7z9Ea3TjKfhPSGgMJiey1aWvlWuBzMtg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.19.2.tgz", + "integrity": "sha512-Hw3jSfWdUSauEYFBSFIte6I8m6jOj+3vifLg8EU3lreWulAUpch4JBjDMtlKosrBzkr0kwKgL9iCfjA8L3geoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.19.2.tgz", + "integrity": "sha512-rhjvoPBhBwVnJRq/+hi2Q3EMiVF538/o9dBuj9TVLclo9DuONqt5xfWSaE6MYiFKpo/lFPJ/iSI72rYWw5Hc7w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.19.2.tgz", + "integrity": "sha512-EAz6vjPwHHs2qOCnpQkw4xs14XJq84I81sDRGPEjKPFVPBw7fwvtwhVjcZR6SLydCv8zNK8YGFblKWd/vRmP8g==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.19.2.tgz", + "integrity": "sha512-IJSUX1xb8k/zN9j2I7B5Re6B0NNJDJ1+soezjNojhT8DEVeDNptq2jgycCOpRhyGj0+xBn7Cq+PK7Q+nd2hxLA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.19.2.tgz", + "integrity": "sha512-OgaToJ8jSxTpgGkZSkwKE+JQGihdcaqnyHEFOSAU45utQ+yLruE1dkonB2SDI8t375wOKgNn8pQvaWY9kPzxDQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.19.2.tgz", + "integrity": "sha512-5V3mPpWkB066XZZBgSd1lwozBk7tmOkKtquyCJ6T4LN3mzKENXyBwWNQn8d0Ci81hvlBw5RoFgleVpL6aScLYg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.19.2.tgz", + "integrity": "sha512-ayVstadfLeeXI9zUPiKRVT8qF55hm7hKa+0N1V6Vj+OTNFfKSoUxyZvzVvgtBxqSb5URQ8sK6fhwxr9/MLmxdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.19.2.tgz", + "integrity": "sha512-Mda7iG4fOLHNsPqjWSjANvNZYoW034yxgrndof0DwCy0D3FvTjeNo+HGE6oGWgvcLZNLlcp0hLEFcRs+UGsMLg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.19.2.tgz", + "integrity": "sha512-DPi0ubYhSow/00YqmG1jWm3qt1F8aXziHc/UNy8bo9cpCacqhuWu+iSq/fp2SyEQK7iYTZ60fBU9cat3MXTjIQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@svgr/babel-plugin-add-jsx-attribute": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz", + "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz", + "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz", + "integrity": "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-svg-dynamic-title": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz", + "integrity": "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-svg-em-dimensions": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz", + "integrity": "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-transform-react-native-svg": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz", + "integrity": "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-plugin-transform-svg-component": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz", + "integrity": "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/babel-preset": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-8.1.0.tgz", + "integrity": "sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@svgr/babel-plugin-add-jsx-attribute": "8.0.0", + "@svgr/babel-plugin-remove-jsx-attribute": "8.0.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "8.0.0", + "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", + "@svgr/babel-plugin-svg-dynamic-title": "8.0.0", + "@svgr/babel-plugin-svg-em-dimensions": "8.0.0", + "@svgr/babel-plugin-transform-react-native-svg": "8.1.0", + "@svgr/babel-plugin-transform-svg-component": "8.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@svgr/core": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-8.1.0.tgz", + "integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.21.3", + "@svgr/babel-preset": "8.1.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^8.1.3", + "snake-case": "^3.0.4" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core/node_modules/cosmiconfig": { + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz", + "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0", + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@svgr/hast-util-to-babel-ast": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz", + "integrity": "sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.21.3", + "entities": "^4.4.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-jsx": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz", + "integrity": "sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.21.3", + "@svgr/babel-preset": "8.1.0", + "@svgr/hast-util-to-babel-ast": "8.0.0", + "svg-parser": "^2.0.4" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "@svgr/core": "*" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/cookie": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==" + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.5.tgz", + "integrity": "sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg==", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, + "node_modules/@types/node": { + "version": "22.0.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.0.2.tgz", + "integrity": "sha512-yPL6DyFwY5PiMVEwymNeqUTKsDczQBJ/5T7W/46RwLU/VH+AA8aT5TZkvBviLKLbbm0hlfftEkGrNzfRk/fofQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.11.1" + } + }, + "node_modules/@types/parse-json": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", + "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==", + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.12", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", + "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.3", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", + "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz", + "integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-transition-group": { + "version": "4.4.10", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz", + "integrity": "sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", + "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz", + "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz", + "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz", + "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz", + "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz", + "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz", + "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz", + "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.1.tgz", + "integrity": "sha512-m/V2syj5CuVnaxcUJOQRel/Wr31FFXRFlnOoq1TVtkCxsY5veGMTEmpWHndrhB2U8ScHtCQB1e+4hWYExQc6Lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.5", + "@babel/plugin-transform-react-jsx-self": "^7.24.5", + "@babel/plugin-transform-react-jsx-source": "^7.24.1", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.14.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0" + } + }, + "node_modules/acorn": { + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", + "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001646", + "electron-to-chromium": "^1.5.4", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001646", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001646.tgz", + "integrity": "sha512-dRg00gudiBDDTmUhClSdv3hqRfpbOnU28IpI1T6PBTLWa+kOj0681C8uML3PifYfREuBrVjDGhL3adYpBT6spw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-helpers": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", + "integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==", + "dev": true, + "license": "ISC" + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.57.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", + "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.0", + "@humanwhocodes/config-array": "^0.11.14", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz", + "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.9.tgz", + "integrity": "sha512-QK49YrBAo5CLNLseZ7sZgvgTy21E6NEw22eZqc4teZfH8pxV3yXc9XXOYfUI6JNpw7mfHNkAeWtBxrTyykB6HA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=7" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true, + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", + "license": "BSD-3-Clause", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hoist-non-react-statics/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "license": "MIT" + }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz", + "integrity": "sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-releases": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "dev": true, + "license": "MIT" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.4.40", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.40.tgz", + "integrity": "sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.1", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-cookie": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/react-cookie/-/react-cookie-7.2.0.tgz", + "integrity": "sha512-mqhPERUyfOljq5yJ4woDFI33bjEtigsl8JDJdPPeNhr0eSVZmBc/2Vdf8mFxOUktQxhxTR1T+uF0/FRTZyBEgw==", + "dependencies": { + "@types/hoist-non-react-statics": "^3.3.5", + "hoist-non-react-statics": "^3.3.2", + "universal-cookie": "^7.0.0" + }, + "peerDependencies": { + "react": ">= 16.3.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-hook-form": { + "version": "7.52.2", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.52.2.tgz", + "integrity": "sha512-pqfPEbERnxxiNMPd0bzmt1tuaPcVccywFDpyk2uV5xCIBphHV5T8SVnX9/o3kplPE1zzKt77+YIoq+EMwJp56A==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/react-hook-form" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17 || ^18 || ^19" + } + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "license": "MIT" + }, + "node_modules/react-refresh": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", + "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-router": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.0.tgz", + "integrity": "sha512-wVQq0/iFYd3iZ9H2l3N3k4PL8EEHcb0XlU2Na8nEwmiXgIUElEH6gaJDtUQxJ+JFzmIXaQjfdpcGWaM6IoQGxg==", + "license": "MIT", + "dependencies": { + "@remix-run/router": "1.19.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.0.tgz", + "integrity": "sha512-RRGUIiDtLrkX3uYcFiCIxKFWMcWQGMojpYZfcstc63A1+sSnVgILGIm9gNUA6na3Fm1QuPGSBQH2EMbAZOnMsQ==", + "license": "MIT", + "dependencies": { + "@remix-run/router": "1.19.0", + "react-router": "6.26.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", + "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.19.2.tgz", + "integrity": "sha512-6/jgnN1svF9PjNYJ4ya3l+cqutg49vOZ4rVgsDKxdl+5gpGPnByFXWGyfH9YGx9i3nfBwSu1Iyu6vGwFFA0BdQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.19.2", + "@rollup/rollup-android-arm64": "4.19.2", + "@rollup/rollup-darwin-arm64": "4.19.2", + "@rollup/rollup-darwin-x64": "4.19.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.19.2", + "@rollup/rollup-linux-arm-musleabihf": "4.19.2", + "@rollup/rollup-linux-arm64-gnu": "4.19.2", + "@rollup/rollup-linux-arm64-musl": "4.19.2", + "@rollup/rollup-linux-powerpc64le-gnu": "4.19.2", + "@rollup/rollup-linux-riscv64-gnu": "4.19.2", + "@rollup/rollup-linux-s390x-gnu": "4.19.2", + "@rollup/rollup-linux-x64-gnu": "4.19.2", + "@rollup/rollup-linux-x64-musl": "4.19.2", + "@rollup/rollup-win32-arm64-msvc": "4.19.2", + "@rollup/rollup-win32-ia32-msvc": "4.19.2", + "@rollup/rollup-win32-x64-msvc": "4.19.2", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", + "dev": true, + "license": "MIT", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stylis": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", + "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-parser": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", + "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", + "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/tslib": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", + "dev": true, + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.11.1", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.11.1.tgz", + "integrity": "sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/universal-cookie": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/universal-cookie/-/universal-cookie-7.2.0.tgz", + "integrity": "sha512-PvcyflJAYACJKr28HABxkGemML5vafHmiL4ICe3e+BEKXRMt0GaFLZhAwgv637kFFnnfiSJ8e6jknrKkMrU+PQ==", + "dependencies": { + "@types/cookie": "^0.6.0", + "cookie": "^0.6.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", + "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vite": { + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.3.5.tgz", + "integrity": "sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.39", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-svgr": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-svgr/-/vite-plugin-svgr-4.2.0.tgz", + "integrity": "sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.0.5", + "@svgr/core": "^8.1.0", + "@svgr/plugin-jsx": "^8.1.0" + }, + "peerDependencies": { + "vite": "^2.6.0 || 3 || 4 || 5" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/package.json b/src/Samples/Sample.Testshop/sample.testshop.client/package.json new file mode 100644 index 0000000..c1b6015 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/package.json @@ -0,0 +1,40 @@ +{ + "name": "sample.testshop.client", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "@emotion/react": "^11.13.0", + "@emotion/styled": "^11.13.0", + "@mui/icons-material": "^5.16.6", + "@mui/material": "^5.16.6", + "axios": "^1.7.3", + "react": "^18.3.1", + "react-cookie": "^7.2.0", + "react-dom": "^18.3.1", + "react-hook-form": "^7.52.2", + "react-router-dom": "^6.26.0", + "uuid": "^10.0.0" + }, + "devDependencies": { + "@types/node": "^22.0.2", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@types/uuid": "^10.0.0", + "@typescript-eslint/eslint-plugin": "^7.15.0", + "@typescript-eslint/parser": "^7.15.0", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^8.57.0", + "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-react-refresh": "^0.4.7", + "typescript": "^5.5.4", + "vite": "^5.3.4", + "vite-plugin-svgr": "^4.2.0" + } +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/public/vite.svg b/src/Samples/Sample.Testshop/sample.testshop.client/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/sample.testshop.client.esproj b/src/Samples/Sample.Testshop/sample.testshop.client/sample.testshop.client.esproj new file mode 100644 index 0000000..54f5f9d --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/sample.testshop.client.esproj @@ -0,0 +1,11 @@ + + + npm run dev + src\ + Jest + + false + + $(MSBuildProjectDirectory)\dist + + \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/App.css b/src/Samples/Sample.Testshop/sample.testshop.client/src/App.css new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/App.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/App.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/App.tsx new file mode 100644 index 0000000..bfbe56f --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/App.tsx @@ -0,0 +1,31 @@ +import { useMemo } from "react"; +import { BrowserRouter } from "react-router-dom"; +import { + createTheme, + CssBaseline, + StyledEngineProvider, + ThemeProvider, +} from "@mui/material"; +import { themeSettings } from "./shared/theme/theme"; +import "./App.css"; +import AppRouter from "./AppRouter"; +import { CookiesProvider } from "react-cookie"; + +function App() { + const theme = useMemo(() => createTheme(themeSettings()), []); + + return ( + + + + + + + + + + + ); +} + +export default App; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/AppRouter.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/AppRouter.tsx new file mode 100644 index 0000000..8975e4c --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/AppRouter.tsx @@ -0,0 +1,53 @@ +import { Route, Routes } from "react-router-dom"; +import MainLayout from "./layouts/MainLayout"; +import React from "react"; +import Home from "./views/Home"; +import CreateOrderPage from "./views/CheckoutPage/CreateOrderPage"; +import CheckoutPage from "./views/CheckoutPage"; +import DisplayOrderPage from "./views/CheckoutPage/DIsplayOrderPage"; +import CreateRecurringOrderPage from "./views/CheckoutPage/CreateRecurringOrderPage"; +import TokenManagementPage from "./views/CheckoutPage/TokenManagmentPage"; + +const routes = [ + { + path: "/", + component: Home, + }, + { + path: "checkout", + component: CheckoutPage, + }, + { + path: "checkout/create-order", + component: CreateOrderPage, + }, + { + path: "checkout/display-order/:id", + component: DisplayOrderPage, + }, + { + path: "checkout/recurring/create", + component: CreateRecurringOrderPage, + }, + { + path: "/checkout/recurring/management", + component: TokenManagementPage, + }, +]; + +const AppRouter: React.FC = () => { + return ( + + }> + {routes.map((route, i: number) => { + const { component: Component, path } = route; + return ( + } key={`route-${i}`} /> + ); + })} + + + ); +}; + +export default AppRouter; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/assets/logolight.svg b/src/Samples/Sample.Testshop/sample.testshop.client/src/assets/logolight.svg new file mode 100644 index 0000000..0353535 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/assets/logolight.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/components/MainAppBar/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/MainAppBar/index.tsx new file mode 100644 index 0000000..04c37ca --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/MainAppBar/index.tsx @@ -0,0 +1,25 @@ +import { AppBar, Box, Toolbar } from "@mui/material"; +import LogoLight from "../../assets/logolight.svg?react"; +import { useNavigate } from "react-router"; + +const MainAppBar = () => { + const navigate = useNavigate(); + return ( + + ({ + position: "relative", + background: theme.palette.common.white, + color: theme.palette.primary.dark, + })} + > + + navigate("home")} cursor="pointer" /> + + + + ); +}; + +export default MainAppBar; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/components/PageContainer/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/PageContainer/index.tsx new file mode 100644 index 0000000..8173f05 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/PageContainer/index.tsx @@ -0,0 +1,22 @@ +import { Box, BoxProps } from "@mui/material"; +import { themeColors } from "../../shared/theme/colors"; + +export const PageContainer = (props: BoxProps) => ( + +); diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/InputField.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/InputField.tsx new file mode 100644 index 0000000..af3ffac --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/InputField.tsx @@ -0,0 +1,46 @@ +import React, { FC } from "react"; +import { TextField, Grid, Typography } from "@mui/material"; +import { Controller, useFormContext } from "react-hook-form"; + +interface InputFieldProps { + id?: string; + label?: string; + width?: string | number; + textInputFormPath: string; +} + +const InputField: FC = ({ + id, + label, + width, + textInputFormPath, +}) => { + const { control } = useFormContext(); + const inputId = `${id}`; + return ( + + {label && ( + + {label} + + )} + + ( + + )} + /> + + + ); +}; + +export default InputField; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/LockField.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/LockField.tsx new file mode 100644 index 0000000..be20ad5 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/LockField.tsx @@ -0,0 +1,33 @@ +import React, { FC } from "react"; +import { FormControlLabel, Switch, Grid } from "@mui/material"; +import { Controller, useFormContext } from "react-hook-form"; + +interface LockFieldProps { + id?: string; + label?: string; + switchFormPath: string; +} + +const LockField: React.FC = ({ id, label, switchFormPath }) => { + const switchId = `${id}-switch`; + const { control } = useFormContext(); + + return ( + + + ( + } + label={label} + /> + )} + /> + + + ); +}; + +export default LockField; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/SelectOption.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/SelectOption.tsx new file mode 100644 index 0000000..3202384 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/SelectOption.tsx @@ -0,0 +1,73 @@ +import React, { FC } from "react"; +import { + FormControl, + InputLabel, + MenuItem, + Select, + SelectChangeEvent, + Grid, +} from "@mui/material"; +import { Controller, useFormContext } from "react-hook-form"; +import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; + +interface SelectOptionProps { + id?: string; + width?: string; + label?: string; + value?: string; + options: { value: string | number; label: string }[]; + selectFormPath: string; + onChange?: (event: SelectChangeEvent) => void; +} + +const SelectOption: FC = ({ + id, + width, + label, + value, + options, + selectFormPath, + onChange, +}) => { + const { control } = useFormContext(); + const selectId = `${id}-select`; + + return ( + + + + {label} + ( + + )} + /> + + + + ); +}; + +export default SelectOption; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/SwitchInputField.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/SwitchInputField.tsx new file mode 100644 index 0000000..d941e10 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/components/form-components/SwitchInputField.tsx @@ -0,0 +1,58 @@ +import React, { FC } from "react"; +import { FormControlLabel, Switch, TextField, Grid } from "@mui/material"; +import { Controller, useFormContext } from "react-hook-form"; + +interface SwitchInputFieldProps { + label: string; + width?: string | number; + switchFormPath: string; + textInputFormPath: string; + id?: string; +} + +const SwitchInputField: FC = ({ + label, + width, + id, + switchFormPath, + textInputFormPath, +}) => { + const switchId = `${id}-switch`; + const textFieldId = `${id}-textField`; + const { control } = useFormContext(); + + return ( + + + ( + } + label={label} + /> + )} + /> + + + ( + + )} + /> + + + ); +}; + +export default SwitchInputField; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/index.css b/src/Samples/Sample.Testshop/sample.testshop.client/src/index.css new file mode 100644 index 0000000..034d319 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/index.css @@ -0,0 +1,17 @@ +html, +body, +#root { + height: 100%; +} + +body { + font-family: Asap, Helvetica, Arial, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + overflow-y: hidden; +} + +#root { + display: flex; + flex-direction: column; +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/layouts/MainLayout/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/layouts/MainLayout/index.tsx new file mode 100644 index 0000000..3a121e1 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/layouts/MainLayout/index.tsx @@ -0,0 +1,16 @@ +import { Outlet } from "react-router-dom"; +import { PageContainer } from "../../components/PageContainer"; +import MainAppBar from "../../components/MainAppBar"; + +const MainLayout = () => { + return ( + <> + + + + + + ); +}; + +export default MainLayout; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/main.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/main.tsx new file mode 100644 index 0000000..3d7150d --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/main.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import ReactDOM from 'react-dom/client' +import App from './App.tsx' +import './index.css' + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/services/checkout.service.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/services/checkout.service.ts new file mode 100644 index 0000000..733f7de --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/services/checkout.service.ts @@ -0,0 +1,124 @@ +import CreateOrderModel from "../shared/models/checkout/CreateOrderModel"; +import { OrderResponse } from "../shared/models/checkout/OrderResponse"; +import axios, { AxiosResponse } from "axios"; +import UpdateOrderModel from "../shared/models/checkout/UpdateOrderModel"; +import { Data, OrderData, OrderRow, RecurringToken } from "../shared/models/checkout/shared"; +import { + ChangePaymentMethodRequest, + ChangePaymentMethodResponse, + CreateRecurringOrderRequest, +} from "../shared/models/checkout/RecurringOrder"; +export const CheckoutService = { + createOrder: async ( + data: CreateOrderModel, + merchantId: number + ): Promise> => { + return axios.post("/api/orders", data, { + headers: { + "Content-Type": "application/json", + merchantId: `${merchantId}`, + }, + }); + }, + updateOrder: async ( + data: UpdateOrderModel, + orderId: number, + merchantId: number + ): Promise> => { + return axios.patch(`/api/orders/${orderId}`, data, { + headers: { + "Content-Type": "application/json", + merchantId: `${merchantId}`, + }, + }); + }, + + getOrder: async (orderId: number, merchantId: number): Promise => { + const response = await axios.get(`/api/orders/${orderId}`, { + headers: { + merchantId: `${merchantId}`, + }, + }); + + const orderResponse: Data = { + ...response.data, + cart: { + items: response.data.cart.items.map((x) => ({ + ...x, + discountAmount: x.discountAmount?.inLowestMonetaryUnit, + discountPercent: x.discountPercent?.inLowestMonetaryUnit, + discountValue: x.discountValue?.inLowestMonetaryUnit, + vatPercent: x.vatPercent.inLowestMonetaryUnit, + quantity: x.quantity?.inLowestMonetaryUnit, + unitPrice: x.unitPrice.inLowestMonetaryUnit, + })), + }, + }; + return orderResponse; + }, + + recurring: { + createRecurringOrder: async ( + body: CreateRecurringOrderRequest, + token: string, + merchantId: number + ): Promise> => { + const response = await axios.post( + `/api/recurring/${token}/orders`, + body, + { + headers: { + "Content-Type": "application/json", + merchantId: `${merchantId}`, + }, + } + ); + return response; + }, + changePaymentMethods: async ( + body: ChangePaymentMethodRequest, + token: string, + merchantId: number + ) => { + const response = await axios.post( + `/api/recurring/${token}/payment-method`, + body, + { + headers: { + "Content-Type": "application/json", + merchantId: `${merchantId}`, + }, + } + ); + return response; + }, + getRecurringOrder: async ( + token: string, + orderId: number, + merchantId: number + ) => { + const response = await axios.get( + `/api/recurring/${token}/orders/${orderId}`, + { + headers: { + "Content-Type": "application/json", + merchantId: `${merchantId}`, + }, + } + ); + return response; + }, + getRecurringToken: async (token: string, merchantId: number) => { + const response = await axios.get( + `/api/recurring/${token}`, + { + headers: { + "Content-Type": "application/json", + merchantId: `${merchantId}`, + }, + } + ); + return response; + }, + }, +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/services/merchant.service.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/services/merchant.service.ts new file mode 100644 index 0000000..de56a88 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/services/merchant.service.ts @@ -0,0 +1,8 @@ +import axios, { AxiosResponse } from "axios"; +import { GetMerchantsResponse } from "../shared/models/merchant/Merchant"; + +export const MerchantService = { + getMerchants: async (): Promise> => { + return axios.get("/api/utils/merchants"); + }, +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/constants/cart.constants.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/constants/cart.constants.ts new file mode 100644 index 0000000..17ca4fe --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/constants/cart.constants.ts @@ -0,0 +1,86 @@ +import { RequestCart } from "../models/checkout/CreateOrderModel"; + +export const defaultCart: RequestCart = { + items: [ + { + articleNumber: "1234", + name: "Article 1", + quantity: 100, + unitPrice: 10000, + discountPercent: 0, + vatPercent: 0, + unit: "st", + rowNumber: 1, + discountValue: 0, + shippingInfo: "", + }, + { + articleNumber: "1235", + name: "Article 2", + quantity: 200, + unitPrice: 20000, + discountPercent: 0, + vatPercent: 0, + unit: "st", + rowNumber: 2, + discountValue: 0, + shippingInfo: "", + }, + ], +}; + +export const leasingCart: RequestCart = { + items: [ + { + articleNumber: "L-1001", + name: "Leasing Item 1", + quantity: 100, + unitPrice: 6000000, + discountPercent: 0, + vatPercent: 2500, + unit: "st", + rowNumber: 1, + discountValue: 0, + shippingInfo: "", + }, + ], +}; +export const zeroSumCart: RequestCart = { + items: [ + { + articleNumber: "Z-1001", + name: "Item", + quantity: 1, + unitPrice: 1, + discountPercent: 0, + vatPercent: 0, + unit: "st", + rowNumber: 1, + discountValue: 0, + shippingInfo: "", + }, + { + articleNumber: "Z-1002", + name: "Presentkort", + quantity: 1, + unitPrice: -1, + discountPercent: 0, + vatPercent: 0, + unit: "st", + rowNumber: 2, + discountValue: 0, + shippingInfo: "", + }, + ], +}; + +export interface CartOption { + label: string; + id: number; + cart: RequestCart; +} +export const cartOptions = [ + { label: "Default Cart", id: 1, cart: defaultCart }, + { label: "Leasing Cart", id: 2, cart: leasingCart }, + { label: "ZeroSum Cart", id: 3, cart: zeroSumCart }, +]; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/constants/countries.constants.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/constants/countries.constants.ts new file mode 100644 index 0000000..c810ad0 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/constants/countries.constants.ts @@ -0,0 +1,209 @@ +export interface Country { + isoCode: string; + name: string; +} + +const countries: Country[] = [ + { isoCode: "AF", name: "Afghanistan" }, + { isoCode: "AL", name: "Albania" }, + { isoCode: "DZ", name: "Algeria" }, + { isoCode: "AS", name: "American Samoa" }, + { isoCode: "AD", name: "Andorra" }, + { isoCode: "AO", name: "Angola" }, + { isoCode: "AI", name: "Anguilla" }, + { isoCode: "AQ", name: "Antarctica" }, + { isoCode: "AG", name: "Antigua and Barbuda" }, + { isoCode: "AR", name: "Argentina" }, + { isoCode: "AM", name: "Armenia" }, + { isoCode: "AW", name: "Aruba" }, + { isoCode: "AU", name: "Australia" }, + { isoCode: "AT", name: "Austria" }, + { isoCode: "AZ", name: "Azerbaijan" }, + { isoCode: "BS", name: "Bahamas" }, + { isoCode: "BH", name: "Bahrain" }, + { isoCode: "BD", name: "Bangladesh" }, + { isoCode: "BB", name: "Barbados" }, + { isoCode: "BY", name: "Belarus" }, + { isoCode: "BE", name: "Belgium" }, + { isoCode: "BZ", name: "Belize" }, + { isoCode: "BJ", name: "Benin" }, + { isoCode: "BM", name: "Bermuda" }, + { isoCode: "BT", name: "Bhutan" }, + { isoCode: "BO", name: "Bolivia" }, + { isoCode: "BA", name: "Bosnia and Herzegovina" }, + { isoCode: "BW", name: "Botswana" }, + { isoCode: "BR", name: "Brazil" }, + { isoCode: "BN", name: "Brunei" }, + { isoCode: "BG", name: "Bulgaria" }, + { isoCode: "BF", name: "Burkina Faso" }, + { isoCode: "BI", name: "Burundi" }, + { isoCode: "KH", name: "Cambodia" }, + { isoCode: "CM", name: "Cameroon" }, + { isoCode: "CA", name: "Canada" }, + { isoCode: "CV", name: "Cape Verde" }, + { isoCode: "KY", name: "Cayman Islands" }, + { isoCode: "CF", name: "Central African Republic" }, + { isoCode: "TD", name: "Chad" }, + { isoCode: "CL", name: "Chile" }, + { isoCode: "CN", name: "China" }, + { isoCode: "CO", name: "Colombia" }, + { isoCode: "KM", name: "Comoros" }, + { isoCode: "CD", name: "Congo, Democratic Republic of the" }, + { isoCode: "CG", name: "Congo, Republic of the" }, + { isoCode: "CR", name: "Costa Rica" }, + { isoCode: "CI", name: "Côte d'Ivoire" }, + { isoCode: "HR", name: "Croatia" }, + { isoCode: "CU", name: "Cuba" }, + { isoCode: "CY", name: "Cyprus" }, + { isoCode: "CZ", name: "Czech Republic" }, + { isoCode: "DK", name: "Denmark" }, + { isoCode: "DJ", name: "Djibouti" }, + { isoCode: "DM", name: "Dominica" }, + { isoCode: "DO", name: "Dominican Republic" }, + { isoCode: "EC", name: "Ecuador" }, + { isoCode: "EG", name: "Egypt" }, + { isoCode: "SV", name: "El Salvador" }, + { isoCode: "GQ", name: "Equatorial Guinea" }, + { isoCode: "ER", name: "Eritrea" }, + { isoCode: "EE", name: "Estonia" }, + { isoCode: "ET", name: "Ethiopia" }, + { isoCode: "FJ", name: "Fiji" }, + { isoCode: "FI", name: "Finland" }, + { isoCode: "FR", name: "France" }, + { isoCode: "GA", name: "Gabon" }, + { isoCode: "GM", name: "Gambia" }, + { isoCode: "GE", name: "Georgia" }, + { isoCode: "DE", name: "Germany" }, + { isoCode: "GH", name: "Ghana" }, + { isoCode: "GR", name: "Greece" }, + { isoCode: "GD", name: "Grenada" }, + { isoCode: "GT", name: "Guatemala" }, + { isoCode: "GN", name: "Guinea" }, + { isoCode: "GW", name: "Guinea-Bissau" }, + { isoCode: "GY", name: "Guyana" }, + { isoCode: "HT", name: "Haiti" }, + { isoCode: "HN", name: "Honduras" }, + { isoCode: "HU", name: "Hungary" }, + { isoCode: "IS", name: "Iceland" }, + { isoCode: "IN", name: "India" }, + { isoCode: "ID", name: "Indonesia" }, + { isoCode: "IR", name: "Iran" }, + { isoCode: "IQ", name: "Iraq" }, + { isoCode: "IE", name: "Ireland" }, + { isoCode: "IL", name: "Israel" }, + { isoCode: "IT", name: "Italy" }, + { isoCode: "JM", name: "Jamaica" }, + { isoCode: "JP", name: "Japan" }, + { isoCode: "JO", name: "Jordan" }, + { isoCode: "KZ", name: "Kazakhstan" }, + { isoCode: "KE", name: "Kenya" }, + { isoCode: "KI", name: "Kiribati" }, + { isoCode: "KP", name: "Korea, North" }, + { isoCode: "KR", name: "Korea, South" }, + { isoCode: "KW", name: "Kuwait" }, + { isoCode: "KG", name: "Kyrgyzstan" }, + { isoCode: "LA", name: "Laos" }, + { isoCode: "LV", name: "Latvia" }, + { isoCode: "LB", name: "Lebanon" }, + { isoCode: "LS", name: "Lesotho" }, + { isoCode: "LR", name: "Liberia" }, + { isoCode: "LY", name: "Libya" }, + { isoCode: "LI", name: "Liechtenstein" }, + { isoCode: "LT", name: "Lithuania" }, + { isoCode: "LU", name: "Luxembourg" }, + { isoCode: "MG", name: "Madagascar" }, + { isoCode: "MW", name: "Malawi" }, + { isoCode: "MY", name: "Malaysia" }, + { isoCode: "MV", name: "Maldives" }, + { isoCode: "ML", name: "Mali" }, + { isoCode: "MT", name: "Malta" }, + { isoCode: "MH", name: "Marshall Islands" }, + { isoCode: "MR", name: "Mauritania" }, + { isoCode: "MU", name: "Mauritius" }, + { isoCode: "MX", name: "Mexico" }, + { isoCode: "FM", name: "Micronesia" }, + { isoCode: "MD", name: "Moldova" }, + { isoCode: "MC", name: "Monaco" }, + { isoCode: "MN", name: "Mongolia" }, + { isoCode: "ME", name: "Montenegro" }, + { isoCode: "MA", name: "Morocco" }, + { isoCode: "MZ", name: "Mozambique" }, + { isoCode: "MM", name: "Myanmar" }, + { isoCode: "NA", name: "Namibia" }, + { isoCode: "NR", name: "Nauru" }, + { isoCode: "NP", name: "Nepal" }, + { isoCode: "NL", name: "Netherlands" }, + { isoCode: "NZ", name: "New Zealand" }, + { isoCode: "NI", name: "Nicaragua" }, + { isoCode: "NE", name: "Niger" }, + { isoCode: "NG", name: "Nigeria" }, + { isoCode: "NO", name: "Norway" }, + { isoCode: "OM", name: "Oman" }, + { isoCode: "PK", name: "Pakistan" }, + { isoCode: "PW", name: "Palau" }, + { isoCode: "PA", name: "Panama" }, + { isoCode: "PG", name: "Papua New Guinea" }, + { isoCode: "PY", name: "Paraguay" }, + { isoCode: "PE", name: "Peru" }, + { isoCode: "PH", name: "Philippines" }, + { isoCode: "PL", name: "Poland" }, + { isoCode: "PT", name: "Portugal" }, + { isoCode: "QA", name: "Qatar" }, + { isoCode: "RO", name: "Romania" }, + { isoCode: "RU", name: "Russia" }, + { isoCode: "RW", name: "Rwanda" }, + { isoCode: "KN", name: "Saint Kitts and Nevis" }, + { isoCode: "LC", name: "Saint Lucia" }, + { isoCode: "VC", name: "Saint Vincent and the Grenadines" }, + { isoCode: "WS", name: "Samoa" }, + { isoCode: "SM", name: "San Marino" }, + { isoCode: "ST", name: "Sao Tome and Principe" }, + { isoCode: "SA", name: "Saudi Arabia" }, + { isoCode: "SN", name: "Senegal" }, + { isoCode: "RS", name: "Serbia" }, + { isoCode: "SC", name: "Seychelles" }, + { isoCode: "SL", name: "Sierra Leone" }, + { isoCode: "SG", name: "Singapore" }, + { isoCode: "SK", name: "Slovakia" }, + { isoCode: "SI", name: "Slovenia" }, + { isoCode: "SB", name: "Solomon Islands" }, + { isoCode: "SO", name: "Somalia" }, + { isoCode: "ZA", name: "South Africa" }, + { isoCode: "SS", name: "South Sudan" }, + { isoCode: "ES", name: "Spain" }, + { isoCode: "LK", name: "Sri Lanka" }, + { isoCode: "SD", name: "Sudan" }, + { isoCode: "SR", name: "Suriname" }, + { isoCode: "SZ", name: "Swaziland" }, + { isoCode: "SE", name: "Sweden" }, + { isoCode: "CH", name: "Switzerland" }, + { isoCode: "SY", name: "Syria" }, + { isoCode: "TW", name: "Taiwan" }, + { isoCode: "TJ", name: "Tajikistan" }, + { isoCode: "TZ", name: "Tanzania" }, + { isoCode: "TH", name: "Thailand" }, + { isoCode: "TL", name: "Timor-Leste" }, + { isoCode: "TG", name: "Togo" }, + { isoCode: "TO", name: "Tonga" }, + { isoCode: "TT", name: "Trinidad and Tobago" }, + { isoCode: "TN", name: "Tunisia" }, + { isoCode: "TR", name: "Turkey" }, + { isoCode: "TM", name: "Turkmenistan" }, + { isoCode: "TV", name: "Tuvalu" }, + { isoCode: "UG", name: "Uganda" }, + { isoCode: "UA", name: "Ukraine" }, + { isoCode: "AE", name: "United Arab Emirates" }, + { isoCode: "GB", name: "United Kingdom" }, + { isoCode: "US", name: "United States" }, + { isoCode: "UY", name: "Uruguay" }, + { isoCode: "UZ", name: "Uzbekistan" }, + { isoCode: "VU", name: "Vanuatu" }, + { isoCode: "VA", name: "Vatican City" }, + { isoCode: "VE", name: "Venezuela" }, + { isoCode: "VN", name: "Vietnam" }, + { isoCode: "YE", name: "Yemen" }, + { isoCode: "ZM", name: "Zambia" }, + { isoCode: "ZW", name: "Zimbabwe" }, +] as const; + +export default countries; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/CreateOrderModel.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/CreateOrderModel.ts new file mode 100644 index 0000000..53c4590 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/CreateOrderModel.ts @@ -0,0 +1,91 @@ +import { OrderRow } from "./shared"; + +interface CreateOrderModel { + countryCode: string; + currency: string; + locale: string; + clientOrderNumber: string; + merchantSettings: MerchantSettings; + cart: RequestCart; + presetValues?: PresetValue[]; + identityFlags?: IdentityFlags; + requireElectronicIdAuthentication?: boolean; + partnerKey?: string; + merchantData?: string; + shippingInformation?: ShippingInformation; + validation: OrderValidation; + recurring?: boolean; + validationCallback?: ValidationCallback; + checkoutPushData: CheckoutPushData; + merchantId: number; +} + +export interface PartPayment { + campaignCode: string; + description: string; +} + +export interface RequestCart { + items: OrderRow[]; +} + +export interface MerchantSettings { + webhookUri?: string; + checkoutUri: string; + confirmationUri: string; + termsUri: string; + pushUri: string; + checkoutValidationCallBackUri?: string; + activePartPaymentCampaigns?: number[]; + promotedPartPaymentCampaign?: number; +} + +interface IdentityFlags { + hideNotYou: boolean; + hideChangeAddress: boolean; + hideAnonymous: boolean; +} + +interface ShippingInformation { + enableShipping: boolean; + enforceFallback?: boolean; + weight?: number; + // tags?: { [key: string]: boolean }; + // fallbackOptions: FallbackOptions; + // shouldRejectShippingSession?: boolean; +} +export interface Country { + name?: string; + isoCode: string; + vats?: []; +} +export interface PresetValue { + typeName: string; + value: string | boolean; + isReadonly: boolean; +} + +export interface FallbackOptions { + id: string; + carrier: string; + name: string; + price: number; + shippingFee: number; + description: string; +} + +export interface OrderValidation { + minAge: number; + paymentFailureResiliency: boolean; +} + +export interface ValidationCallback { + useValidationCallback: boolean; + validate: boolean; + errorMessage: string; +} +export interface CheckoutPushData { + responseDelay: number; + responseStatusCode: number; +} +export default CreateOrderModel; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/OrderResponse.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/OrderResponse.ts new file mode 100644 index 0000000..027119f --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/OrderResponse.ts @@ -0,0 +1,18 @@ +import { Customer, Gui, OrderRowResponse } from "./shared"; + +//Order model +export interface OrderResponse { + orderId: number; + clientOrderNumber: string; + gui: Gui; + status: string; + cart: { items: OrderRowResponse[] }; + currency: string; + locale: string; + customer: Customer; + countryCode: string; + emailAddress: string; + phoneNumber: string; +} + +export type { OrderRowResponse }; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/RecurringOrder.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/RecurringOrder.ts new file mode 100644 index 0000000..38f6e1a --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/RecurringOrder.ts @@ -0,0 +1,21 @@ +import { OrderRow } from "./shared"; + +export interface CreateRecurringOrderRequest { + currency: string; + clientOrderNumber: string; + cart: { items: OrderRow[] }; + merchantSettings: RecurringMerchantSettings; +} + +export interface RecurringMerchantSettings { + pushUri: string; + checkoutValidationCallBackUri?: string; +} + +export interface ChangePaymentMethodRequest { + termsUrl: string; +} +export interface ChangePaymentMethodResponse { + snippet: string; + expiration: string; +} \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/UpdateOrderModel.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/UpdateOrderModel.ts new file mode 100644 index 0000000..f629b5a --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/UpdateOrderModel.ts @@ -0,0 +1,5 @@ +import { RequestCart } from "./CreateOrderModel"; + +export default interface UpdateOrderModel { + cart: RequestCart; +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/shared.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/shared.ts new file mode 100644 index 0000000..226ce1c --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/checkout/shared.ts @@ -0,0 +1,103 @@ +export interface OrderRowBase { + articleNumber: string; + name: string; + unit: string; + merchantData?: string; + shippingInfo?: string; + temporaryReference?: string; + rowNumber: number; + rowType?: string; +} + +export interface OrderRowResponse extends OrderRowBase { + quantity: MinorUnit; + unitPrice: MinorUnit; + discountAmount?: MinorUnit; + discountPercent?: MinorUnit; + discountValue?: MinorUnit; + vatPercent: MinorUnit; +} +export interface OrderRow extends OrderRowBase { + quantity: number; + unitPrice: number; + discountAmount?: number; + discountPercent?: number; + discountValue?: number; + vatPercent: number; +} + +export interface MinorUnit { + inLowestMonetaryUnit: number; +} +export enum DiscountType { + Percentage, + Amount, +} + +export interface AdmittanceDetails { + retreiveDate: string; + cached: string; + merchantId: string; + merchantName: string; + companyAdminInvoiceClientId: string; + companyInvoiceClientId: string; + individualAccountClientId: string; + individualAdminInvoiceClientId: string; + individualPartPaymentClientId: string; + paymentGatewayMerchantId: string; +} + +export interface Gui { + snippet: string; +} + +export interface Customer { + Id: number; + NationalId: string; + Country: string; + IsCompany: boolean; + VatNumber: string; + IsVerified: boolean; +} + +export interface Address { + FullName: string; + FirstName: string; + LastName: string; + StreetAddress: string; + StreetAddress2: string; + StreetAddress3: string; + CoAddress: string; + PostalCode: string; + CountryCode: string; +} +/// Checkout order data without minor currency +export interface Data extends OrderData { + gui: Gui; +} + +export interface OrderData { + orderId: number; + clientOrderNumber: string; + status: string; + cart: { items: OrderRow[] }; + currency: string; + locale: string; + customer: Customer; + countryCode: string; + emailAddress: string; + phoneNumber: string; +} + +export interface RecurringToken { + token: string; + status: string; + currency: string; + paymentMethod: string; + paymentMethodDetails: RecurringPaymentMethodDetails; +} + +export interface RecurringPaymentMethodDetails { + expiryMonth: number; + expiryYear: number; +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/merchant/Merchant.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/merchant/Merchant.ts new file mode 100644 index 0000000..3bfff4b --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/models/merchant/Merchant.ts @@ -0,0 +1,5 @@ +export interface GetMerchantsResponse { + market: string; + merchantId: number; + name:string; // Currently not used but in plan :) +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/colors.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/colors.ts new file mode 100644 index 0000000..05c695c --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/colors.ts @@ -0,0 +1,195 @@ +import { IThemeColors } from "./types/theme.types"; + +const transparent = "rgba(0,0,0,0)"; + +const aqua = "#00aece"; +const marine = "#00325c"; +const turquoise = "#00699a"; + +const black = { + 0: "#616161", + 1: "#434343", + 2: "#898989", + 3: "rgba(0, 0, 0, 0.04)", +}; + +const orange = { + 0: "#fef4e5", + 1: "#f29200", + 2: "#fff2e2", +}; + +const yellow = "#fdc500"; +const purple = "#9972c6"; + +const green = { + 0: "#e4f6d1", + 1: "#7acf1c", + 2: "#f5feec", + 3: "#406d0d", + 4: "#dbf2c6", + 5: "#6fa560", +}; + +const red = { + 0: "#f9eaea", + 1: "#c73535", + 2: "#ffe9e9", + 3: "#c6605a", + 4: "#f1a2a9", +}; + +const blue = { + 1: "#e4f6f9", + 2: "#cceff5", + 3: "#bbdde3", + 4: "#e5f7fa", + 5: "#0077dc", + 6: "#cdeff5", + 7: "#e8f6f9", + 8: "#a6cee3", + 9: "#00699a", + 10: "rgba(208,227,233,0.4)", +}; + +const solnaWhite = { + 0: "#ffffff", + 1: "#f1f0eb", + 2: "#eeede6", + 3: "#f6f6f1", + 4: "#dedad3", + 5: "#d1cdc4", + 6: "#cbcbcb", + 7: "#aba59b", + 8: "#928c82", + 9: "#787269", + 10: "#707070", +}; + +export const themeColors: IThemeColors = { + transparent, + aqua, + turquoise, + marine, + black, + orange, + green, + yellow, + purple, + red, + blue, + solnaWhite, + alert: { + error: { + background: red[2], + border: "#c73535", + color: "#6f1010", + }, + warning: { + background: orange[2], + border: orange[1], + color: black[1], + }, + info: { + background: blue[7], + border: marine, + color: marine, + }, + success: { + background: green[4], + border: green[3], + color: green[3], + }, + pending: { + background: solnaWhite[1], + border: black[0], + color: black[0], + }, + }, + buttons: { + primary: { + focus: "#115475", + hover: "#146790", + disabled: "#d4d2cb", + label: solnaWhite[0], + main: turquoise, + ripple: "", + pressed: "#105c6a", + }, + secondary: { + focus: solnaWhite[2], + hover: "#146790", + disabled: "#d4d2cb", + label: turquoise, + main: solnaWhite[0], + ripple: "", + pressed: solnaWhite[3], + }, + }, + textButtons: (variant: string) => { + switch (variant) { + case "lightblue": + return { + focus: "#b7e8f0", + hover: "#d2f1f6", + disabled: "", + label: turquoise, + main: "", + ripple: turquoise, + pressed: "#bfebf2", + }; + case "white": + return { + focus: "#efeeed", + hover: "#fbfbf9", + disabled: "", + label: turquoise, + main: "", + ripple: solnaWhite[5], + pressed: solnaWhite[2], + }; + case "solnawhite1": + case "solnawhite2": + default: + return { + focus: "#e9e9e4", + hover: "#f1f0ec", + disabled: "", + label: turquoise, + main: "", + ripple: solnaWhite[5], + pressed: solnaWhite[3], + }; + } + }, + avatar: (variant: string) => { + switch (variant) { + case "lightblue": + return { + background: turquoise, + border: turquoise, + text: "white", + }; + default: + return { + background: solnaWhite[0], + border: solnaWhite[2], + text: turquoise, + }; + } + }, + cards: (variant: string) => { + switch (variant) { + case "lightblue": + return { background: blue[1] }; + case "solnawhite1": + return { background: solnaWhite[1] }; + case "solnawhite2": + return { background: solnaWhite[2] }; + default: + return { + background: solnaWhite[0], + }; + } + }, +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/components.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/components.ts new file mode 100644 index 0000000..d008d9e --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/components.ts @@ -0,0 +1,169 @@ +import { Components, Theme } from "@mui/material"; + +export const components: Components> = { + MuiAppBar: { + styleOverrides: { + root: { + boxShadow: "none", + }, + }, + }, + + MuiTypography: { + styleOverrides: { + root: { + display: "flex", + alignItems: "center", + "& .MuiSvgIcon-root": { + marginRight: "8px", + }, + "& strong": { + marginRight: "5px", + }, + }, + }, + }, + + MuiButton: { + styleOverrides: { + root: { + textTransform: "none", + borderRadius: "8px", + }, + }, + }, + + MuiGrid: { + styleOverrides: { + root: { + padding: "0", + marginBottom: 3, + }, + }, + }, + MuiDivider: { + styleOverrides: { + root: { + deviderColor: "#", + borderBottomWidth: "1px", + margin: 0, + }, + }, + }, + + MuiIcon: { + styleOverrides: { + root: { + marginLeft: 1, + h6: { + marginRight: 1, + alignItems: "center", + }, + }, + }, + }, + + MuiTextField: { + styleOverrides: { + root: { + "& .MuiOutlinedInput-root": { + borderRadius: "8px", + }, + }, + }, + }, + + MuiOutlinedInput: { + styleOverrides: { + root: { + borderRadius: "8px", + }, + }, + }, + MuiSelect: { + styleOverrides: { + icon: { + color: "#0a5588", + }, + }, + }, + MuiCheckbox: { + styleOverrides: { + root: { + color: "#0a5588", + "&.Mui-checked": { + color: "#0a5588", + }, + }, + }, + }, + MuiIconButton: { + styleOverrides: { + root: { + color: "#0a5588", + fontSize: "0.8rem", + fontWeight: 700, + fontFamily: "Calibri, Arial, Sans-serif", + }, + }, + }, + MuiSvgIcon: { + styleOverrides: { + root: { + color: "#0a5588", + }, + }, + }, + + MuiToggleButtonGroup: { + styleOverrides: { + root: { + height: 35, + }, + }, + }, + + MuiToggleButton: { + styleOverrides: { + root: { + borderColor: "#C4C4C4", + borderRadius: 8, + color: "#333333", + "&.Mui-selected": { + color: "#ffffff", + backgroundColor: "#115293", + borderColor: "#115293", + "&:hover": { + backgroundColor: "#115293", + }, + }, + }, + }, + }, + + MuiAccordion: { + styleOverrides: { + root: { + marginTop: 10, + border: "none", + borderTop: "1px solid #E0E0E0", + boxShadow: "none", + borderRadius: "0 !important", + }, + }, + }, + MuiAccordionSummary: { + styleOverrides: { + root: { + padding: 0, + }, + }, + }, + MuiAccordionDetails: { + styleOverrides: { + root: { + padding: 0, + }, + }, + }, +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/palette.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/palette.ts new file mode 100644 index 0000000..031ad9a --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/palette.ts @@ -0,0 +1,27 @@ +import { PaletteOptions } from "@mui/material/styles"; + +import { themeColors } from "./colors"; + +export const paletteOptions: PaletteOptions = { + mode: "light", + primary: { + contrastText: themeColors.solnaWhite[0], + dark: themeColors.marine, + light: themeColors.blue[1], + main: themeColors.turquoise, + }, + secondary: { + main: themeColors.turquoise, + }, + background: { + default: themeColors.transparent, + paper: themeColors.solnaWhite[0], + }, + text: { + primary: themeColors.black[1], + secondary: themeColors.black[2], + }, + error: { + main: themeColors.red[1], + }, +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/theme.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/theme.ts new file mode 100644 index 0000000..ac3eb8e --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/theme.ts @@ -0,0 +1,16 @@ +import { ThemeOptions } from "@mui/material" +import { paletteOptions } from "./palette" +import { typographyOptions } from './typography'; +import { components } from './components'; + +// mui theme settings +export const themeSettings = (): ThemeOptions => { + return { + palette: paletteOptions, + shape: { + borderRadius: 6, + }, + typography:typographyOptions, + components + }; +}; \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/types/theme.types.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/types/theme.types.ts new file mode 100644 index 0000000..506da49 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/types/theme.types.ts @@ -0,0 +1,82 @@ +export interface IThemeColors { + transparent: string; + aqua: string; + turquoise: string; + marine: string; + orange: IColorVariants; + green: IColorVariants; + yellow: string; + purple: string; + red: IColorVariants; + blue: IColorVariants; + solnaWhite: IColorVariants; + black: IColorVariants; + buttons: ISveaButtonColors; + alert: IAlertTypes; + textButtons(variant: CardTheme): IButtonColors; + avatar(variant: CardTheme): IPanelColors; + cards(variant: CardTheme): ICardColors; +} +type CardTheme = 'lightblue' | 'white' | 'solnawhite1' | 'solnawhite2'; +interface IColorVariants { + [key: number]: string; +} + +interface ICardColors { + background: string; +} + +interface IPanelColors { + text: string; + border: string; + background: string; +} + +interface IButtonColors { + disabled: string; + focus: string; + hover: string; + label: string; + main: string; + pressed: string; + ripple: string; +} + +interface ISveaButtonColors { + primary: IButtonColors; + secondary: IButtonColors; +} + +interface IAlertProps { + color: string; + background: string; + border: string; +} + +interface IAlertTypes { + error: IAlertProps; + info: IAlertProps; + success: IAlertProps; + warning: IAlertProps; + pending: IAlertProps; +} + +export interface IThemeColors { + transparent: string; + aqua: string; + turquoise: string; + marine: string; + orange: IColorVariants; + green: IColorVariants; + yellow: string; + purple: string; + red: IColorVariants; + blue: IColorVariants; + solnaWhite: IColorVariants; + black: IColorVariants; + buttons: ISveaButtonColors; + alert: IAlertTypes; + textButtons(variant: CardTheme): IButtonColors; + avatar(variant: CardTheme): IPanelColors; + cards(variant: CardTheme): ICardColors; +} \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/typography.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/typography.ts new file mode 100644 index 0000000..0e2b581 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/shared/theme/typography.ts @@ -0,0 +1,24 @@ +import { themeColors } from "./colors"; + +export const typographyOptions = { + fontFamily: "Asap, sans-serif", + h6: { + fontSize: "1rem", + fontWeight: 600, + color: themeColors.marine, + padding: 10, + }, + h5: { + fontWeight: 600, + color: themeColors.marine, + margin: 10, + }, + body1: { + fontSize: "0.8rem", + color: themeColors.black[1], + }, + + subtitle1: { + color: themeColors.marine, + }, +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ActivePartPaymentCampaign.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ActivePartPaymentCampaign.tsx new file mode 100644 index 0000000..2125e41 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ActivePartPaymentCampaign.tsx @@ -0,0 +1,94 @@ +import React, { useEffect, useState } from "react"; +import { + Box, + Checkbox, + Chip, + FormControl, + Grid, + InputLabel, + ListItemText, + MenuItem, + OutlinedInput, + Select, + Typography, +} from "@mui/material"; +import { Controller, useFormContext } from "react-hook-form"; +import { PartPayment } from "../../../../shared/models/checkout/CreateOrderModel"; + +interface ActivePartPaymentCampaignProps { + isCompany: boolean; +} + +const ActivePartPaymentCampaign: React.FC = ({ + isCompany, +}) => { + const [options, setOptions] = useState([]); + const [loading, setLoading] = useState(true); + const [error, setError] = useState(null); + const { control } = useFormContext(); + + useEffect(() => { + const fetchPaymentOptions = async () => {}; + + void fetchPaymentOptions(); + }, []); + + if (error) { + return ( + + No Active part payment campaign available for merchant + + ); + } + + return ( + + + Active part payment campaigns + + + ( + + + + )} + /> + + + ); +}; + +export default ActivePartPaymentCampaign; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/BasicPresets.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/BasicPresets.tsx new file mode 100644 index 0000000..0dd6df3 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/BasicPresets.tsx @@ -0,0 +1,58 @@ +import React from "react"; +import { Divider, Grid, Typography } from "@mui/material"; +import ToggleOffOutlinedIcon from "@mui/icons-material/ToggleOffOutlined"; +import IsCompanySwitch from "./IsCompanySwitch"; +import EmailAddress from "./EmailAddress"; +import HideAnonymous from "./HideAnonymous"; +import PostalCode from "./PostalCode"; +import NationalId from "./NationalId"; +import PhoneNumber from "./PhoneNumber"; +import InternationalMarketSelection from "./InternationalMarketSelection"; +import HideNotYou from "./HideNotYou"; +import HideChangeAddress from "./HideChangeAddress"; +import RequireElectronicAuthentication from "./RequireElectronicAuthentication"; +import Recurring from "./Recurring"; +import ReloadOrderManually from "./ReloadOrderManually"; + +interface BasicPresetsProps {} + +const BasicPresets: React.FC = () => { + return ( + <> + + + Locks & Toggles + + + + + + + Lock + + + + + + + + + + + + + + + + + + + ); +}; + +export default BasicPresets; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/CartPresetSelector.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/CartPresetSelector.tsx new file mode 100644 index 0000000..698a70d --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/CartPresetSelector.tsx @@ -0,0 +1,27 @@ +import React from "react"; +import { Divider, Grid, Typography } from "@mui/material"; +import SelectOption from "../../../../components/form-components/SelectOption"; +import { cartOptions } from "../../../../shared/constants/cart.constants"; +import ShoppingCartOutlinedIcon from '@mui/icons-material/ShoppingCartOutlined'; + +const CartPresetSelector: React.FC = () => { + return ( + <> + + + Cart Preset + + + + ({ label: x.label, value: x.id }))} + selectFormPath="cartPreset" + /> + + + ); +}; + +export default CartPresetSelector; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/CartType.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/CartType.tsx new file mode 100644 index 0000000..3b020e8 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/CartType.tsx @@ -0,0 +1,25 @@ +import React from "react"; +import { Box } from "@mui/material"; +import SelectOption from "../../../../components/form-components/SelectOption"; + +const CartType = () => { + const options = [ + { value: "default", label: "Default cart" }, + { value: "zeroAmount", label: "Zero amount" }, + { value: "leasing", label: "Leasing" }, + ]; + + return ( + + + + ); +}; + +export default CartType; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ClientOrderNumber.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ClientOrderNumber.tsx new file mode 100644 index 0000000..a3d2ef4 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ClientOrderNumber.tsx @@ -0,0 +1,15 @@ +import React from "react"; +import InputField from "../../../../components/form-components/InputField"; + +const ClientOrderNumber = () => { + return ( + + ); +}; + +export default ClientOrderNumber; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/EmailAddress.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/EmailAddress.tsx new file mode 100644 index 0000000..ae17bb6 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/EmailAddress.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import SwitchInputField from "../../../../components/form-components/SwitchInputField"; +import { Box } from "@mui/material"; + +const EmailAddress: React.FC = () => { + return ( + + + + ); +}; + +export default EmailAddress; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/EnableShipping.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/EnableShipping.tsx new file mode 100644 index 0000000..13aa2c7 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/EnableShipping.tsx @@ -0,0 +1,70 @@ +import { + Accordion, + AccordionDetails, + AccordionSummary, + Divider, + Grid, + Typography, +} from "@mui/material"; +import LocalShippingOutlinedIcon from "@mui/icons-material/LocalShippingOutlined"; +import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; +import LockField from "../../../../components/form-components/LockField"; +import InputField from "../../../../components/form-components/InputField"; + +const EnableShipping = () => { + return ( + <> + + + Shipping + + + + + + + } + aria-controls="panel1a-content" + id="panel1a-header" + > + Additional options + + + + + + + + + + + + + + + ); +}; + +export default EnableShipping; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideAnonymous.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideAnonymous.tsx new file mode 100644 index 0000000..36d2433 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideAnonymous.tsx @@ -0,0 +1,17 @@ +import React from "react"; +import { Box } from "@mui/material"; +import LockField from "../../../../components/form-components/LockField"; + +const HideAnonymous = () => { + return ( + + + + ); +}; + +export default HideAnonymous; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideChangeAddress.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideChangeAddress.tsx new file mode 100644 index 0000000..2da7488 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideChangeAddress.tsx @@ -0,0 +1,18 @@ +import LockField from "../../../../components/form-components/LockField"; +import { Box } from "@mui/material"; + +const HideChangeAddress = () => { + return ( + + + + + + ); +}; + +export default HideChangeAddress; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideNotYou.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideNotYou.tsx new file mode 100644 index 0000000..1fd5ec4 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/HideNotYou.tsx @@ -0,0 +1,17 @@ +import React from "react"; +import LockField from "../../../../components/form-components/LockField"; +import { Box } from "@mui/material"; + +const HideNotYou: React.FC = () => { + return ( + + + + ); +}; + +export default HideNotYou; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/InternationalMarketSelection.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/InternationalMarketSelection.tsx new file mode 100644 index 0000000..1ec81da --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/InternationalMarketSelection.tsx @@ -0,0 +1,27 @@ +import React from "react"; +import SelectOption from "../../../../components/form-components/SelectOption"; +import { Grid } from "@mui/material"; +import countries from "../../../../shared/constants/countries.constants"; + +const InternationalMarketSelection: React.FC = () => { + return ( + + +

Selected market for the current merchant

+
+ + ({ + value: x.isoCode, + label: `${x.isoCode}-${x.name}`, + }))} + selectFormPath="countryCode" + width="100%" + /> + +
+ ); +}; + +export default InternationalMarketSelection; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/IsCompanySwitch.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/IsCompanySwitch.tsx new file mode 100644 index 0000000..36bef9b --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/IsCompanySwitch.tsx @@ -0,0 +1,58 @@ +import React from "react"; +import { + Box, + FormControlLabel, + Grid, + Switch, + ToggleButton, + ToggleButtonGroup, +} from "@mui/material"; +import { Controller, useFormContext } from "react-hook-form"; + +const IsCompanySwitch: React.FC = () => { + const switchId = `isCompany-switch`; + const textFieldId = `isCompant-textField`; + const { control } = useFormContext(); + return ( + + + + ( + } + label={"Is company"} + /> + )} + /> + + + ( + + + B2C + + None + B2B + + )} + /> + + + + ); +}; + +export default IsCompanySwitch; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MerchantData.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MerchantData.tsx new file mode 100644 index 0000000..f68d756 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MerchantData.tsx @@ -0,0 +1,17 @@ +import InputField from "../../../../components/form-components/InputField"; +import { Box } from "@mui/material"; + +const MerchantData = () => { + return ( + + + + ); +}; + +export default MerchantData; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MerchantSelector.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MerchantSelector.tsx new file mode 100644 index 0000000..87b1b62 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MerchantSelector.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import { Box, Divider, Typography } from "@mui/material"; +import SelectOption from "../../../../components/form-components/SelectOption"; +import { GetMerchantsResponse } from "../../../../shared/models/merchant/Merchant"; +import { StoreOutlined } from "@mui/icons-material"; + +interface MerchantSelectorProps { + merchants: GetMerchantsResponse[]; +} + +const MerchantSelector: React.FC = ({ merchants }) => { + return ( + <> + + + Select a merchant + + + ({ + value: x.merchantId, + label: x.market, + }))} + selectFormPath="merchantId" + width="50%" + /> + + + + ); +}; + +export default MerchantSelector; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MinimalAge.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MinimalAge.tsx new file mode 100644 index 0000000..85a81ce --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MinimalAge.tsx @@ -0,0 +1,23 @@ +import InputField from "../../../../components/form-components/InputField"; +import { Box } from "@mui/material"; +import LockField from "../../../../components/form-components/LockField"; + +const MinimalAge = () => { + return ( + + + + + ); +}; + +export default MinimalAge; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MiscSettings.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MiscSettings.tsx new file mode 100644 index 0000000..a1cce12 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/MiscSettings.tsx @@ -0,0 +1,25 @@ +import { Divider, Grid, Typography } from "@mui/material"; +import ListAltOutlinedIcon from "@mui/icons-material/ListAltOutlined"; +import MerchantData from "./MerchantData"; +import PartnerKey from "./PartnerKey"; +import PushResponse from "./PushResponse"; + +const MiscSettings = () => { + return ( + <> + + + Miscellaneous + + + + + + + + + + ); +}; + +export default MiscSettings; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/NationalId.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/NationalId.tsx new file mode 100644 index 0000000..1274f1f --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/NationalId.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import SwitchInputField from "../../../../components/form-components/SwitchInputField"; +import { Box } from "@mui/material"; + +const NationalId: React.FC = () => { + return ( + + + + ); +}; + +export default NationalId; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PartnerKey.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PartnerKey.tsx new file mode 100644 index 0000000..26b3151 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PartnerKey.tsx @@ -0,0 +1,17 @@ +import InputField from "../../../../components/form-components/InputField"; +import { Box } from "@mui/material"; + +const PartnerKey = () => { + return ( + + + + ); +}; + +export default PartnerKey; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PaymentOptionsPresets.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PaymentOptionsPresets.tsx new file mode 100644 index 0000000..e8ace9d --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PaymentOptionsPresets.tsx @@ -0,0 +1,25 @@ + +import { Divider, Grid, Typography } from "@mui/material"; +import CreditCardOutlinedIcon from "@mui/icons-material/CreditCardOutlined"; +import ClientOrderNumber from "./ClientOrderNumber"; +import PromotedPartPaymentCampaign from "./PromotedPartPayment"; +import ActivePartPaymentCampaign from "./ActivePartPaymentCampaign"; + +const PaymentOptionsPresets = () => { + return ( + <> + + + Payment + + + + + + + + + ); +}; + +export default PaymentOptionsPresets; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PhoneNumber.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PhoneNumber.tsx new file mode 100644 index 0000000..44806fc --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PhoneNumber.tsx @@ -0,0 +1,18 @@ +import SwitchInputField from "../../../../components/form-components/SwitchInputField"; +import { Box } from "@mui/material"; + +const PhoneNumber = () => { + return ( + + + + ); +}; + +export default PhoneNumber; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PostalCode.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PostalCode.tsx new file mode 100644 index 0000000..78f10be --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PostalCode.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import SwitchInputField from "../../../../components/form-components/SwitchInputField"; +import { Box } from "@mui/material"; + +const PostalCode: React.FC = () => { + return ( + + + + ); +}; + +export default PostalCode; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PromotedPartPayment.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PromotedPartPayment.tsx new file mode 100644 index 0000000..e144bc7 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PromotedPartPayment.tsx @@ -0,0 +1,51 @@ +import React, { useEffect, useState } from "react"; +import { Grid, InputLabel, Typography } from "@mui/material"; +import SelectOption from "../../../../components/form-components/SelectOption"; + +interface PromotedPaymentCampaignProps { + isCompany: boolean; +} + +const PromotedPartPaymentCampaign: React.FC = ({ + isCompany, +}) => { + const [options, setOptions] = useState([]); + const [error, setError] = useState(null); + + useEffect(() => { + const fetchPaymentOptions = async () => {}; + + fetchPaymentOptions(); + }, []); + + if (error) { + return ( + + No Promoted part payment available for merchant + + ); + } + + return ( + <> + + + Promoted part payment campaigns + + + + + + ); +}; + +export default PromotedPartPaymentCampaign; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PushResponse.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PushResponse.tsx new file mode 100644 index 0000000..19b8511 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/PushResponse.tsx @@ -0,0 +1,23 @@ +import InputField from "../../../../components/form-components/InputField"; +import { Box } from "@mui/material"; + +const PushResponse = () => { + return ( + + + + + ); +}; + +export default PushResponse; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/Recurring.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/Recurring.tsx new file mode 100644 index 0000000..493189f --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/Recurring.tsx @@ -0,0 +1,17 @@ +import React from "react"; +import LockField from "../../../../components/form-components/LockField"; +import { Box } from "@mui/material"; + +const Recurring: React.FC = () => { + return ( + + + + ); +}; + +export default Recurring; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ReloadOrderManually.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ReloadOrderManually.tsx new file mode 100644 index 0000000..a582a3b --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ReloadOrderManually.tsx @@ -0,0 +1,16 @@ +import LockField from "../../../../components/form-components/LockField"; +import { Box } from "@mui/material"; + +const ReloadOrderManually = () => { + return ( + + + + ); +}; + +export default ReloadOrderManually; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/RequireElectronicAuthentication.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/RequireElectronicAuthentication.tsx new file mode 100644 index 0000000..22ada03 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/RequireElectronicAuthentication.tsx @@ -0,0 +1,19 @@ +import React from "react"; +import LockField from "../../../../components/form-components/LockField"; +import { Grid } from "@mui/material"; + +const RequireElectronicAuthentication: React.FC = () => { + return ( + + + + + + ); +}; + +export default RequireElectronicAuthentication; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/Validate.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/Validate.tsx new file mode 100644 index 0000000..6804fdb --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/Validate.tsx @@ -0,0 +1,16 @@ +import LockField from "../../../../components/form-components/LockField"; +import { Box } from "@mui/material"; + +const Validate = () => { + return ( + + + + ); +}; + +export default Validate; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidateCallbackErrorMessage.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidateCallbackErrorMessage.tsx new file mode 100644 index 0000000..c689c03 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidateCallbackErrorMessage.tsx @@ -0,0 +1,16 @@ +import InputField from "../../../../components/form-components/InputField"; + +const ValidateCallbackErrorMessage = () => { + return ( + <> + + + ); +}; + +export default ValidateCallbackErrorMessage; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationCallback.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationCallback.tsx new file mode 100644 index 0000000..8a55e76 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationCallback.tsx @@ -0,0 +1,29 @@ +import { Grid, Typography } from "@mui/material"; +import Divider from "@mui/material/Divider"; +import VerifiedUserOutlinedIcon from "@mui/icons-material/VerifiedUserOutlined"; +import ValidationCallbackToggle from "./ValidationCallbackToggle"; +import Validate from "./Validate"; +import ValidateCallbackErrorMessage from "./ValidateCallbackErrorMessage"; +import MinimalAge from "./MinimalAge"; + +const ValidationCallback = () => { + return ( + <> + + + Validation + + + + + + + + + + + + ); +}; + +export default ValidationCallback; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationCallbackToggle.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationCallbackToggle.tsx new file mode 100644 index 0000000..3fc3763 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationCallbackToggle.tsx @@ -0,0 +1,16 @@ +import LockField from "../../../../components/form-components/LockField"; +import { Box } from "@mui/material"; + +const ValidationCallbackToggle = () => { + return ( + + + + ); +}; + +export default ValidationCallbackToggle; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationFields.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationFields.tsx new file mode 100644 index 0000000..8dc1243 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/Components/ValidationFields.tsx @@ -0,0 +1,5 @@ +const ValidationFields = () => { + return <>{/* */}; +}; + +export default ValidationFields; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/forms/CreateOrderForm.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/forms/CreateOrderForm.ts new file mode 100644 index 0000000..c85c6f6 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/forms/CreateOrderForm.ts @@ -0,0 +1,162 @@ +import { cartOptions } from "../../../../shared/constants/cart.constants"; +import CreateOrderModel, { + MerchantSettings, + PresetValue, + RequestCart, +} from "../../../../shared/models/checkout/CreateOrderModel"; + +export interface CreateOrderForm { + emailPresetValue: FormPresetValue; + companyPresetValue: FormPresetValue; + postalCodePresetValue: FormPresetValue; + nationalIdPresetValue: FormPresetValue; + phoneNumberPresetValue: FormPresetValue; + cart: RequestCart; + identityFlags: FormIdentityFlags; + requireElectronicAuthentication: boolean; + recurring: boolean; + merchantId: number; + reloadOrderManually: boolean; + validationCallback: ValidationCallback; + validation: OrderValidation; + shippingInformation: ShippingInformation; + merchantData: string; + partnerKey?: string; + clientOrderNumber: string; + merchantSettings?: MerchantSettings; + checkoutPushData?: CheckoutPushData; + cartPreset: number; + currency: string; + locale: string; + countryCode: string; +} + +export interface FormPresetValue { + value: string; + isLocked: boolean; +} + +interface CheckoutPushData { + responseDelay: number; + responseStatusCode: number; +} + +interface FormIdentityFlags { + hideNotYou: boolean; + hideChangeAddress: boolean; + hideAnonymous: boolean; +} + +interface ValidationCallback { + useValidationCallback: boolean; + validate: boolean; + errorMessage: string; +} + +interface OrderValidation { + minAge: number; + paymentFailureResiliency: boolean; +} + +interface ShippingInformation { + enableShipping: boolean; + enforceFallback: boolean; + weight: number; + // tags: { [key: string]: boolean }; + // fallbackOptions: FallbackOptions; + // shouldRejectShippingSession: boolean; +} + +// interface FallbackOptions { +// id: string; +// carrier: string; +// name: string; +// price: number; +// shippingFee: number; +// description: string; +// } + +export const FormDataToCreateOrderModel = ( + data: CreateOrderForm +): CreateOrderModel => { + const checkoutPresetValue: PresetValue[] = []; + + // ----- PresetValues mapping ----- + if (data.emailPresetValue?.value?.trim() !== "") { + checkoutPresetValue.push({ + typeName: "EmailAddress", + isReadonly: data.emailPresetValue.isLocked, + value: data.emailPresetValue.value, + }); + } + if (data.nationalIdPresetValue?.value?.trim() !== "") { + checkoutPresetValue.push({ + typeName: "NationalId", + isReadonly: data.nationalIdPresetValue.isLocked, + value: data.nationalIdPresetValue.value, + }); + } + if (data.postalCodePresetValue?.value?.trim() !== "") { + checkoutPresetValue.push({ + typeName: "PostalCode", + isReadonly: data.postalCodePresetValue.isLocked, + value: data.postalCodePresetValue.value, + }); + } + if (data.phoneNumberPresetValue?.value?.trim() !== "") { + checkoutPresetValue.push({ + typeName: "PhoneNumber", + isReadonly: data.phoneNumberPresetValue.isLocked, + value: data.phoneNumberPresetValue.value, + }); + } + + if (data.companyPresetValue?.value?.trim() !== "") { + checkoutPresetValue.push({ + typeName: "IsCompany", + isReadonly: data.companyPresetValue.isLocked, + value: data.companyPresetValue.value, + }); + } + + const createOrderModel: CreateOrderModel = { + countryCode: data.countryCode, + currency: data.currency, + locale: data.locale, + clientOrderNumber: data.clientOrderNumber, + merchantSettings: { + ...data.merchantSettings!, + ...{ + checkoutUri: "https://localhost:3000", + confirmationUri: "https://localhost:3000", + pushUri: "https://localhost:3000", + termsUri: "https://localhost:3000", + }, + }, + cart: cartOptions.find((x) => x.id === data.cartPreset)?.cart ?? { + items: [], + }, + presetValues: checkoutPresetValue, + identityFlags: data.identityFlags, + requireElectronicIdAuthentication: data.requireElectronicAuthentication, + partnerKey: data.partnerKey, + merchantData: data.merchantData, + shippingInformation: { + enableShipping: data.shippingInformation.enableShipping, + weight: data.shippingInformation.weight, + enforceFallback: data.shippingInformation.enforceFallback, + }, + validation: { + minAge: data.validation.minAge, + paymentFailureResiliency: data.validation.paymentFailureResiliency, + }, + recurring: data.recurring, + validationCallback: data.validationCallback, + checkoutPushData: data.checkoutPushData ?? { + responseDelay: 0, + responseStatusCode: 200, + }, + merchantId: data.merchantId, + }; + return createOrderModel; +}; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/index.tsx new file mode 100644 index 0000000..7dcff2a --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateOrderPage/index.tsx @@ -0,0 +1,172 @@ +import { FormProvider, useForm } from "react-hook-form"; +import { Box, Button, Grid, Paper, Typography } from "@mui/material"; +import { + CreateOrderForm, + FormDataToCreateOrderModel, +} from "./forms/CreateOrderForm"; +import BasicPresets from "./Components/BasicPresets"; +import ValidationFields from "./Components/ValidationFields"; +import EnableShipping from "./Components/EnableShipping"; +import MiscSettings from "./Components/MiscSettings"; +import PaymentOptionsPresets from "./Components/PaymentOptionsPresets"; +import ValidationCallback from "./Components/ValidationCallback"; +import { CheckoutService } from "../../../services/checkout.service"; +import MerchantSelector from "./Components/MerchantSelector"; +import { useEffect, useState } from "react"; +import { GetMerchantsResponse } from "../../../shared/models/merchant/Merchant"; +import { MerchantService } from "../../../services/merchant.service"; +import CartPresetSelector from "./Components/CartPresetSelector"; +import { Cookies } from "react-cookie"; +import { useNavigate } from "react-router-dom"; +import { cartOptions } from "../../../shared/constants/cart.constants"; + +const CreateOrderPage: React.FC = () => { + const [merchantOptions, setMerchantOptions] = useState< + GetMerchantsResponse[] + >([]); + + useEffect(() => { + const loadMerchants = async () => { + const response = await MerchantService.getMerchants(); + console.log(response, response.data); + if (response.status == 200) { + setMerchantOptions(response?.data ?? []); + } + }; + void loadMerchants(); + }, [setMerchantOptions]); + + const methods = useForm({ + defaultValues: { + emailPresetValue: { isLocked: false, value: "" }, + companyPresetValue: { isLocked: false, value: "" }, + postalCodePresetValue: { isLocked: false, value: "" }, + nationalIdPresetValue: { isLocked: false, value: "" }, + phoneNumberPresetValue: { isLocked: false, value: "" }, + identityFlags: { + hideAnonymous: false, + hideChangeAddress: false, + hideNotYou: false, + }, + requireElectronicAuthentication: false, + recurring: false, + reloadOrderManually: false, + validationCallback: { + useValidationCallback: false, + validate: false, + errorMessage: "", + }, + validation: { minAge: undefined, paymentFailureResiliency: false }, + merchantData: "", + partnerKey: undefined, + checkoutPushData: { + responseDelay: 0, + responseStatusCode: undefined, + }, + shippingInformation: { + enableShipping: false, + weight: undefined, + }, + clientOrderNumber: "", + merchantSettings: { + activePartPaymentCampaigns: [], + promotedPartPaymentCampaign: 0, + checkoutUri: "https://localhost:3000", + confirmationUri: "https://localhost:3000", + pushUri: "https://localhost:3000", + termsUri: "https://localhost:3000", + }, + locale: "sv-SE", + currency: "", + countryCode: "", + cart: { items: [] }, + merchantId: 0, + }, + }); + + const navigate = useNavigate(); + + const merchantIdWatch = methods.watch("merchantId"); + const cartPresetWatch = methods.watch("cartPreset"); + + useEffect(() => { + console.log(merchantIdWatch); + methods.setValue( + "countryCode", + merchantOptions.find((x) => x.merchantId === merchantIdWatch)?.market ?? + "" + ); + }, [merchantIdWatch, methods, merchantOptions]); + + useEffect(() => { + methods.setValue( + "cart", + cartOptions.find((x) => x.id === cartPresetWatch)?.cart ?? { items: [] } + ); + }, [cartPresetWatch, methods]); + + const onSubmit = async (formData: CreateOrderForm) => { + console.log(formData); + const request = FormDataToCreateOrderModel(formData); + console.log(request); + const response = await CheckoutService.createOrder( + request, + formData.merchantId + ); + const cookies = new Cookies(); + cookies.set(response.data.orderId.toString(), formData.merchantId); + navigate({ + pathname: `/checkout/display-order/${response.data.orderId.toString()}`, + }); + }; + return ( + +
+ Preset + + + + + + + + + + + + + + + + + + + + + +
+
+ ); +}; + +export default CreateOrderPage; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateRecurringOrderPage/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateRecurringOrderPage/index.tsx new file mode 100644 index 0000000..f4132b1 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/CreateRecurringOrderPage/index.tsx @@ -0,0 +1,245 @@ +import { useEffect, useState } from "react"; +import { useForm, Controller } from "react-hook-form"; +import { + TextField, + Button, + Grid, + Box, + Typography, + Divider, + Select, + MenuItem, + Card, +} from "@mui/material"; +import CartEditor from "../components/CartEditor"; +import { v4 as uuidv4 } from "uuid"; +import { CreateRecurringOrderRequest } from "../../../shared/models/checkout/RecurringOrder"; +import { CheckoutService } from "../../../services/checkout.service"; +import { OrderData } from "../../../shared/models/checkout/shared"; +import { KeyOutlined, StoreOutlined } from "@mui/icons-material"; +import { GetMerchantsResponse } from "../../../shared/models/merchant/Merchant"; +import { MerchantService } from "../../../services/merchant.service"; +import { defaultCart } from "../../../shared/constants/cart.constants"; + +const CreateRecurringOrderPage: React.FC = () => { + const { control, handleSubmit } = useForm({ + defaultValues: { + currency: "SEK", + clientOrderNumber: uuidv4().replaceAll("-", ""), + merchantSettings: { + pushUri: "", + checkoutValidationCallBackUri: "", + }, + cart: { + items: defaultCart.items, // Cart items from CartEditor + }, + }, + }); + const [token, setToken] = useState(""); + const [orderResponse, setOrderResponse] = useState(); + const [merchants, setMerchants] = useState([]); + const [merchantId, setMerchantId] = useState(); + useEffect(() => { + const loadMerchants = async () => { + const response = await MerchantService.getMerchants(); + console.log(response, response.data); + if (response.status == 200) { + setMerchants(response?.data ?? []); + } + }; + void loadMerchants(); + }, [setMerchants]); + + const onSubmit = async (data: CreateRecurringOrderRequest) => { + try { + const response = await CheckoutService.recurring.createRecurringOrder( + data, + token, + merchantId! + ); + setOrderResponse(response.data); + alert("Order submitted successfully"); + } catch (error) { + console.error("Error submitting order:", error); + } + }; + + return ( + <> + + + + + + + + Recurring Token + + { + setToken(e.target.value); + }} + /> + + + + + Select a merchant + + + {merchants.length == 0 ? ( + + + Merchant is loading... + + + ) : ( + + + + )} + + + + + + + + ( + + )} + /> + + + ( + + )} + /> + + + + + + ( + + )} + /> + + + ( + + )} + /> + + + + + + + + + + + + Order Response + {orderResponse ? ( +
+ + Order ID: {orderResponse.orderId} + + + Client Order Number:{" "} + {orderResponse.clientOrderNumber} + + + Status: {orderResponse.status} + + + Currency: {orderResponse.currency} + + + Locale: {orderResponse.locale} + + + Country Code: {orderResponse.countryCode} + + + Email: {orderResponse.emailAddress} + + + Phone: {orderResponse.phoneNumber} + + + Cart Items: + + {orderResponse.cart.items.map((item, index) => ( +
+ + Item {index + 1} + + + Article Number: {item.articleNumber} + + Name: {item.name} + Quantity: {item.quantity} + Unit Price: {item.unitPrice} +
+ ))} +
+ ) : ( + No order response yet. + )} +
+
+
+
+ + ); +}; + +export default CreateRecurringOrderPage; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/DIsplayOrderPage/components/OrderDetails.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/DIsplayOrderPage/components/OrderDetails.tsx new file mode 100644 index 0000000..43695d8 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/DIsplayOrderPage/components/OrderDetails.tsx @@ -0,0 +1,71 @@ +import { useEffect, useState } from "react"; +import { Cookies } from "react-cookie"; +import { Divider, Typography } from "@mui/material"; +import InfoIcon from "@mui/icons-material/Info"; +import { Data } from "../../../../shared/models/checkout/shared"; + +interface OrderDetailsProps { + orderDetails: Data; +} +const OrderDetails: React.FC = (props) => { + const [error, setError] = useState(null); + const { orderId, status, locale, currency, countryCode, clientOrderNumber } = + props.orderDetails; + useEffect(() => { + const fetchCountryIdentificationData = async () => { + try { + setError(null); + const cookies = new Cookies(); + const merchantId = cookies.get(orderId.toString()); + if (!merchantId) { + throw new Error("No active merchant selected."); + } + } catch (error: unknown) { + if (error instanceof Error) { + setError(error.message); + } else { + setError("Unknown error occurred!"); + } + } + }; + fetchCountryIdentificationData(); + }); + useEffect(() => { + console.log(error); + }, [error]); + + if (error) { + + Error has occurred, please check the console: {error} + ; + } + return ( + <> + + + Order Information + + + + Order ID: {orderId} + + + Status: {status} + + + Locale: {locale} + + + Currency: {currency} + + + Market: {countryCode} + + + Client Order Number: {clientOrderNumber} + + + ); +}; + +export default OrderDetails; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/DIsplayOrderPage/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/DIsplayOrderPage/index.tsx new file mode 100644 index 0000000..fa60977 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/DIsplayOrderPage/index.tsx @@ -0,0 +1,89 @@ +import { useEffect, useRef, useState } from "react"; +import { useParams } from "react-router-dom"; +import { CheckoutService } from "../../../services/checkout.service"; +import { Cookies } from "react-cookie"; +import { Box, Card, CardContent, Container, Grid } from "@mui/material"; +import OrderDetails from "./components/OrderDetails"; +import CartEditor from "../components/CartEditor"; +import { Data } from "../../../shared/models/checkout/shared"; + +const DisplayOrderPage: React.FC = () => { + const [orderData, setOrderData] = useState(null); + const { id: orderId } = useParams(); + const divRef = useRef(null); + const [checkoutSnippet, setCheckoutOrderSnippet] = useState(""); + useEffect(() => { + if (!orderId) { + // Log something + return; + } + const cookies = new Cookies(); + const merchantId = cookies.get(orderId); + const fetchOrder = async () => { + const response = await CheckoutService.getOrder( + Number.parseInt(orderId!), + merchantId + ); + setOrderData(response); + }; + void fetchOrder(); + }, [orderId]); + + useEffect(() => { + if (orderData) { + setCheckoutOrderSnippet(orderData.gui.snippet); + } + }, [orderData, setCheckoutOrderSnippet]); + + useEffect(() => { + console.log("HELP"); + const fragment = document + .createRange() + .createContextualFragment(checkoutSnippet); + divRef.current?.replaceChildren(fragment); + }, [checkoutSnippet]); + + if (!orderData) { + return <>Loading checkout order; + } + + return ( + + + + + + + + + + + {orderData && ( + + )} + + + + + + + + + + + ); +}; + +export default DisplayOrderPage; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/TokenManagmentPage/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/TokenManagmentPage/index.tsx new file mode 100644 index 0000000..a2ffeef --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/TokenManagmentPage/index.tsx @@ -0,0 +1,190 @@ +import { useState } from "react"; +import { TextField, Button, Grid, Box, Typography, Card } from "@mui/material"; +import { + OrderData, + RecurringToken, +} from "../../../shared/models/checkout/shared"; +import { CheckoutService } from "../../../services/checkout.service"; +import { ChangePaymentMethodResponse } from "../../../shared/models/checkout/RecurringOrder"; + +const TokenManagementPage: React.FC = () => { + const [recurringToken, setRecurringToken] = useState(""); + const [orderId, setOrderId] = useState(""); + const [tokenDetails, setTokenDetails] = useState(); + const [orderDetails, setOrderDetails] = useState(); + const [paymentMethodChangeResponse, setPaymentMethodChangeResponse] = + useState(); + const merchantId = 100001; + // Get Recurring Token Details + const handleGetTokenDetails = async () => { + try { + const response = await CheckoutService.recurring.getRecurringToken( + recurringToken, + merchantId + ); + setTokenDetails(response.data); + } catch (error) { + console.error("Error fetching token details:", error); + } + }; + + // Get Recurring Order Details + const handleGetRecurringOrder = async () => { + try { + const response = await CheckoutService.recurring.getRecurringOrder( + recurringToken, + Number.parseInt(orderId), + merchantId + ); + setOrderDetails(response.data); + } catch (error) { + console.error("Error fetching recurring order:", error); + } + }; + + // Change Payment Method + const handleChangePaymentMethod = async () => { + try { + const response = await CheckoutService.recurring.changePaymentMethods( + { termsUrl: "https://svea.com" }, + recurringToken, + merchantId + ); + setPaymentMethodChangeResponse(response.data); + console.log(response.data) + } catch (error) { + console.error("Error changing payment method:", error); + } + }; + + return ( + + Test Recurring Token Operations + + + {/* Input for Recurring Token */} + + + setRecurringToken(e.target.value)} + fullWidth + /> + + + + {/* Input for Order ID */} + + + setOrderId(e.target.value)} + fullWidth + /> + + + {/* Buttons for Token Operations */} + + + + + + + + + {/* Display Recurring Token Details */} + {tokenDetails && ( + + + + Recurring Token Details + + Token: {tokenDetails.token} + + + Status: {tokenDetails.status} + + + Currency: {tokenDetails.currency} + + + Payment Method: {tokenDetails.paymentMethod} + + + Payment expiry at: Month:{" "} + {tokenDetails.paymentMethodDetails?.expiryMonth}; Year:{" "} + {tokenDetails.paymentMethodDetails?.expiryYear} + + {/* Add more token fields as necessary */} + + + + )} + + {/* Display Recurring Order Details */} + {orderDetails && ( + + + + Recurring Order Details + + Order ID: {orderDetails.orderId} + + + Status: {orderDetails.status} + + + Currency: {orderDetails.currency} + + {/* Add more order fields as necessary */} + + + + )} + + {/* Display Change Payment Method Response */} + {paymentMethodChangeResponse && ( + + + + + Payment Method Change Response + + + Expiration:{" "} + {paymentMethodChangeResponse.expiration} + Snippet: {paymentMethodChangeResponse.snippet} + + {/* Add more response fields as necessary */} + + + + )} + + + ); +}; + +export default TokenManagementPage; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/components/CartEditor.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/components/CartEditor.tsx new file mode 100644 index 0000000..01ad960 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/components/CartEditor.tsx @@ -0,0 +1,227 @@ +import React, { useEffect } from "react"; +import { useForm, useFieldArray } from "react-hook-form"; +import { + Table, + TableBody, + TableCell, + TableContainer, + TableHead, + TableRow, + Paper, + TextField, + IconButton, + Button, +} from "@mui/material"; +import { OrderRow } from "../../../shared/models/checkout/shared"; +import { AddOutlined, Delete } from "@mui/icons-material"; + +interface CartEditorProps { + initialItems: OrderRow[]; +} + +const CartEditor: React.FC = ({ initialItems }) => { + const { control, register, handleSubmit, setValue } = useForm({ + defaultValues: { + items: initialItems || [], + }, + }); + const { fields, append, remove } = useFieldArray({ + control, + name: "items", + }); + + useEffect(() => { + if (initialItems && initialItems.length > 0) { + console.log(initialItems); + initialItems.forEach((item, index) => { + setValue(`items.${index}`, item); + }); + } + }, [initialItems, setValue]); + + const onSubmit = (data: { items: OrderRow[] }) => { + console.log(data); + }; + + const handleAddRow = () => { + append({ + articleNumber: "", + name: "", + quantity: 100, + unitPrice: 0, + unit: "", + vatPercent: 0, + rowNumber: fields.length + 1, + }); + }; + + return ( +
+ + + + + Article Number + Name + Quantity + Unit Price + Unit + Discount Amount + Discount Percent + Discount Value + Merchant Data + Shipping Info + Temporary Reference + VAT Percent + Row Number + Row Type + Actions + + + + {fields.map((item, index) => ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + remove(index)}> + + + + + ))} + +
+
+ + +
+ ); +}; + +export default CartEditor; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/index.tsx new file mode 100644 index 0000000..d517a5d --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/CheckoutPage/index.tsx @@ -0,0 +1,163 @@ +import { useCallback, useEffect, useState } from "react"; +import { + Button, + Typography, + Box, + MenuItem, + FormControl, + InputLabel, + Select, + SelectChangeEvent, + TextField, + Paper, +} from "@mui/material"; +import { MerchantService } from "../../services/merchant.service"; +import { GetMerchantsResponse } from "../../shared/models/merchant/Merchant"; +import { useNavigate } from "react-router-dom"; +import { Cookies } from "react-cookie"; + +const CheckoutPage: React.FC = () => { + const [merchants, setMerchants] = useState([]); + const [selectedMerchant, setSelectedMerchant] = useState(""); + const [orderId, setOrderId] = useState(""); + const navigate = useNavigate(); + + useEffect(() => { + const loadMerchants = async () => { + try { + const response = await MerchantService.getMerchants(); + console.log(response, response.data); + if (response.status === 200) { + setMerchants(response?.data ?? []); + } + } catch (error) { + console.error("Error loading merchants:", error); + } + }; + + void loadMerchants(); + }, []); + + const handleMerchantChange = useCallback( + (event: SelectChangeEvent) => { + setSelectedMerchant(event.target.value as string); + }, + [setSelectedMerchant] + ); + + const handleFetchOnClick = useCallback(async () => { + const cookies = new Cookies(); + cookies.set(orderId, selectedMerchant); + navigate(`/checkout/display-order/${orderId}`); + }, [orderId, navigate, selectedMerchant]); + + return ( + + + + Svea Checkout Demo + + + + + + Select Merchant + + + + { + setOrderId(event.target.value); + }} + sx={{ m: 1 }} + /> + + + + OR + + + + + + + + + + + + Part Payment Widget Demo + + + Svea + Delbetalning från{" "} + + 98 kr + + /månad + + + + + ); +}; + +export default CheckoutPage; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/Home/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/Home/index.tsx new file mode 100644 index 0000000..0f77e47 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/Home/index.tsx @@ -0,0 +1,21 @@ +import { Button } from "@mui/material"; +import React from "react"; +import { useNavigate } from "react-router-dom"; + +const Home = () => { + const navigate = useNavigate(); + return ( + <> +

Home page template

+ + + ); +}; + +export default Home; diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/views/SettingsPage/index.tsx b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/SettingsPage/index.tsx new file mode 100644 index 0000000..600187b --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/views/SettingsPage/index.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +const SettingsPage = () => { + return ( +
SettingsPage
+ ) +} + +export default SettingsPage \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/src/vite-env.d.ts b/src/Samples/Sample.Testshop/sample.testshop.client/src/vite-env.d.ts new file mode 100644 index 0000000..fa3e1b9 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// \ No newline at end of file diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.app.json b/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.app.json new file mode 100644 index 0000000..e6b0d35 --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.app.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "target": "ESNext", + "useDefineForClassFields": true, + "lib": ["ESNext", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.json b/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.json new file mode 100644 index 0000000..ea9d0cd --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.json @@ -0,0 +1,11 @@ +{ + "files": [], + "references": [ + { + "path": "./tsconfig.app.json" + }, + { + "path": "./tsconfig.node.json" + } + ] +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.node.json b/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.node.json new file mode 100644 index 0000000..3afdd6e --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/tsconfig.node.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true, + "strict": true, + "noEmit": true + }, + "include": ["vite.config.ts"] +} diff --git a/src/Samples/Sample.Testshop/sample.testshop.client/vite.config.ts b/src/Samples/Sample.Testshop/sample.testshop.client/vite.config.ts new file mode 100644 index 0000000..a0dea8c --- /dev/null +++ b/src/Samples/Sample.Testshop/sample.testshop.client/vite.config.ts @@ -0,0 +1,76 @@ +import { fileURLToPath, URL } from "node:url"; + +import { defineConfig } from "vite"; +import plugin from "@vitejs/plugin-react"; +import fs from "fs"; +import path from "path"; +import child_process from "child_process"; +import svgr from "vite-plugin-svgr"; + +const baseFolder = + process.env.APPDATA !== undefined && process.env.APPDATA !== "" + ? `${process.env.APPDATA}/ASP.NET/https` + : `${process.env.HOME}/.aspnet/https`; + +const certificateArg = process.argv + .map((arg) => { + const match = arg.match(/--name=(.+)/i); + return match ? match[1] : null; + }) + .filter(Boolean)[0]; + +const certificateName = certificateArg || "sample.testshop.client"; + +if (!certificateName) { + console.error( + "Invalid certificate name. Run this script in the context of an npm/yarn script or pass --name=<> explicitly." + ); + process.exit(-1); +} + +const certFilePath = path.join(baseFolder, `${certificateName}.pem`); +const keyFilePath = path.join(baseFolder, `${certificateName}.key`); + +if (!fs.existsSync(certFilePath) || !fs.existsSync(keyFilePath)) { + if ( + 0 !== + child_process.spawnSync( + "dotnet", + [ + "dev-certs", + "https", + "--export-path", + certFilePath, + "--format", + "Pem", + "--no-password", + ], + { stdio: "inherit" } + ).status + ) { + throw new Error("Could not create certificate."); + } +} + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [plugin(), svgr()], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, + server: { + proxy: { + "^/api/*": { + target: "https://localhost:7097", + secure: false, + }, + }, + port: 5173, + https: { + key: fs.readFileSync(keyFilePath), + cert: fs.readFileSync(certFilePath), + }, + }, +}); diff --git a/src/Svea.WebPay.SDK.sln b/src/Svea.WebPay.SDK.sln index ab393ed..25f159a 100644 --- a/src/Svea.WebPay.SDK.sln +++ b/src/Svea.WebPay.SDK.sln @@ -26,6 +26,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ..\.github\workflows\uat.yml = ..\.github\workflows\uat.yml EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Testshop.Server", "Samples\Sample.Testshop\Sample.Testshop.Server\Sample.Testshop.Server.csproj", "{61F611BF-5D07-4FD0-A0B7-55768155C860}" +EndProject +Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "sample.testshop.client", "Samples\Sample.Testshop\sample.testshop.client\sample.testshop.client.esproj", "{A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -48,6 +52,16 @@ Global {F2EC41C0-CD08-477D-9192-669855B298BB}.Debug|Any CPU.Build.0 = Debug|Any CPU {F2EC41C0-CD08-477D-9192-669855B298BB}.Release|Any CPU.ActiveCfg = Release|Any CPU {F2EC41C0-CD08-477D-9192-669855B298BB}.Release|Any CPU.Build.0 = Release|Any CPU + {61F611BF-5D07-4FD0-A0B7-55768155C860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {61F611BF-5D07-4FD0-A0B7-55768155C860}.Debug|Any CPU.Build.0 = Debug|Any CPU + {61F611BF-5D07-4FD0-A0B7-55768155C860}.Release|Any CPU.ActiveCfg = Release|Any CPU + {61F611BF-5D07-4FD0-A0B7-55768155C860}.Release|Any CPU.Build.0 = Release|Any CPU + {A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}.Release|Any CPU.Build.0 = Release|Any CPU + {A8A4B917-A67F-4D09-9B04-6DA45C28D1EF}.Release|Any CPU.Deploy.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs index ede4824..da87469 100644 --- a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs +++ b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/CheckoutRecurring.cs @@ -12,10 +12,10 @@ public CheckoutRecurring(SveaHttpClient sveaHttpClient) _sveaHttpClient = sveaHttpClient; } - public async Task CreateRecurringOrderAsync(CreateRecurringOrderModel createRecurringOrder, string recurringToken, bool configureAwait = false) + public async Task CreateRecurringOrderAsync(CreateRecurringOrderModel createRecurringOrder, string recurringToken, bool configureAwait = false) { var url = new Uri($"/api/tokens/{recurringToken}/orders", UriKind.Relative); - var data = await _sveaHttpClient.HttpPost(url, createRecurringOrder, configureAwait); + var data = await _sveaHttpClient.HttpPost(url, createRecurringOrder, configureAwait); return data; } @@ -25,10 +25,10 @@ public async Task GetRecurringTokenAsync(string recurringToken, var data = await _sveaHttpClient.HttpGet(url, configureAwait); return data; } - public async Task GetRecurringOrderAsync(string recurringToken, long orderId, bool configureAwait = false) + public async Task GetRecurringOrderAsync(string recurringToken, long orderId, bool configureAwait = false) { var url = new Uri($"/api/tokens/{recurringToken}/orders/{orderId}", UriKind.Relative); - var data = await _sveaHttpClient.HttpGet(url, configureAwait); + var data = await _sveaHttpClient.HttpGet(url, configureAwait); return data; } public async Task ChangePaymentMethodAsync(ChangepaymentMethodModel changePaymentMethodModel, string recurringToken, bool configureAwait = false) diff --git a/src/Svea.WebPay.SDK/CheckoutApi/Recurring/RecurringOrder.cs b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/RecurringOrder.cs new file mode 100644 index 0000000..441c5af --- /dev/null +++ b/src/Svea.WebPay.SDK/CheckoutApi/Recurring/RecurringOrder.cs @@ -0,0 +1,149 @@ +using System.Text.Json.Serialization; + +namespace Svea.WebPay.SDK.CheckoutApi.Recurring +{ + public class RecurringOrder + { + /// + /// Specific merchant URIs + /// + /// Required. + [JsonInclude] + public RecurringMerchantSettings MerchantSettings { get; set; } + + /// + /// Order rows. + /// + [JsonInclude] + public Cart Cart { get; set; } + + /// + /// Identified customer of the order. + /// + [JsonInclude] + public Customer Customer { get; set; } + + /// + /// Shipping address of identified customer. + /// + [JsonInclude] + public Address ShippingAddress { get; set; } + + /// + /// Billing address of identified customer. + /// + [JsonInclude] + public Address BillingAddress { get; set; } + + + /// + /// The current locale of the checkout, i.e.sv-SE etc. + /// + /// Required. + [JsonInclude] + public string Locale { get; set; } + + /// + /// The current currency as defined by ISO 4217, i.e. SEK, NOK etc. + /// + /// Required. + [JsonInclude] + public string Currency { get; set; } + + /// + /// Defined by two-letter ISO 3166-1 alpha-2, i.e. SE, DE, FI etc. + /// + [JsonInclude] + public string CountryCode { get; set; } + + /// + /// A list containing the preset values, if any. + /// + [JsonInclude] + public Presetvalue[] PresetValues { get; set; } + + [JsonInclude] + public string ClientOrderNumber { get; set; } + + [JsonInclude] + public long OrderId { get; set; } + + [JsonInclude] + public string EmailAddress { get; set; } + + /// + /// The customer’s phone number + /// + [JsonInclude] + public string PhoneNumber { get; set; } + + /// + /// The final payment method for the order. Will only have a value when the order is finalized, otherwise unknown. + /// + [JsonInclude] + public PaymentType? PaymentType { get; set; } + + /// + /// The current state of the order + /// + [JsonInclude] + public CheckoutOrderStatus Status { get; set; } + + /// + /// B2B Customer reference + /// + [JsonInclude] + public object CustomerReference { get; set; } + + /// + /// True = Svea will buy this invoice. False = Svea will not buy this invoice. null = Selected payment method is not Invoice. + /// + [JsonInclude] + public bool? SveaWillBuyOrder { get; set; } + + [JsonInclude] + public IdentityFlags IdentityFlags { get; set; } + + /// + /// Metadata visible to the store + /// + /// Optional. Cleaned up from Checkout database after 45 days. + [JsonInclude] + public object MerchantData { get; set; } + + /// + /// The final payment method for the order. Will only have a value when the order is finalized, otherwise null. + /// + [JsonInclude] + public PaymentInfo Payment { get; set; } + + /// + /// A company’s ID in the PEPPOL network, which allows the company to receive PEPPOL invoices. A PEPPOL ID can be entered when placing a B2B order using the payment method invoice. + /// + [JsonInclude] + public string PeppolId { get; set; } + + [JsonInclude] + public GetOrderShippingInformation ShippingInformation { get; set; } + + /// + /// Indicates if the order is recurring order and will create a recurring token when order is finalized. Only applicable if merchant has recurring orders enabled. + /// + [JsonInclude] + public bool? Recurring { get; set; } + + + /// + /// Recurring token to be used for subsequent recurring orders. Only available when order is finalized. Only applicable if merchant has recurring orders enabled. + /// + [JsonInclude] + public string RecurringToken { get; set; } + + /// + /// Order validations such as minimum age requirement. + /// Apply it in order to have order validation such as minimum age. + /// + [JsonInclude] + public OrderValidation Validation { get; set; } + } +}