@sonic-equipment/ui 0.0.53 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -2
- package/dist/index.js +151 -134
- package/dist/src/index.d.ts +1 -0
- package/dist/src/intl/translation-id.d.ts +1 -1
- package/dist/src/shared/fetch/request.d.ts +3 -2
- package/dist/styles.css +78 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3899,7 +3899,7 @@ interface TextFieldProps {
|
|
|
3899
3899
|
*/
|
|
3900
3900
|
declare function TextField({ autoFocus, autoGrow, defaultValue, isDisabled, isInvalid, isMultiline, isReadOnly, isRequired, label, maxLength, name, onChange, onInput, onKeyUp, placeholder, rows, showLabel, size, value, }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
3901
3901
|
|
|
3902
|
-
type TranslationId = "'{0}' in all products" | '
|
|
3902
|
+
type TranslationId = "'{0}' in all products" | ' to your account to manage your lists.' | 'Add to list' | 'An unexpected error occured' | 'Cancel' | 'Create new list' | 'Chosen filters' | 'Clear filters' | 'Clear' | 'Double check your spelling' | 'Excl. VAT' | 'Explore by categories' | 'Exploring our products by category' | 'Hide filters' | 'Incl. VAT' | 'List name already exists' | 'New list name' | 'Please Sign In' | 'Popular searches' | 'Products' | 'Quick access' | 'Recent searches' | 'Searching again using more general terms' | 'Select a list' | 'Show all' | 'Show filters' | 'Show less' | 'Show' | 'Sorry, we could not find matches for' | 'Sort by' | 'Submit' | 'Suggestions' | 'Use fewer keywords' | 'You could try' | 'You must ' | 'article' | 'articles' | 'facet.categories' | 'facet.height' | 'facet.weight' | 'of' | 'sign in' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc' | 'sort.relevance' | 'tag.limited' | 'tag.new';
|
|
3903
3903
|
|
|
3904
3904
|
interface FormattedMessageProps {
|
|
3905
3905
|
fallbackValue?: string;
|
|
@@ -3973,6 +3973,18 @@ interface ProductListingPageProps {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
declare function ProductListingPage({ pageUrl, searchClient: _searchClient, }: ProductListingPageProps): react_jsx_runtime.JSX.Element;
|
|
3975
3975
|
|
|
3976
|
+
interface Location {
|
|
3977
|
+
hash?: string;
|
|
3978
|
+
pathname: string;
|
|
3979
|
+
search: string;
|
|
3980
|
+
state?: unknown;
|
|
3981
|
+
}
|
|
3982
|
+
interface SearchResultsPageProps {
|
|
3983
|
+
location: Location;
|
|
3984
|
+
searchClient: SearchClient;
|
|
3985
|
+
}
|
|
3986
|
+
declare function SearchResultsPage({ location, searchClient, }: SearchResultsPageProps): react_jsx_runtime.JSX.Element;
|
|
3987
|
+
|
|
3976
3988
|
interface SidebarProps {
|
|
3977
3989
|
children: React.ReactNode;
|
|
3978
3990
|
}
|
|
@@ -4266,4 +4278,4 @@ declare const useGlobalSearchDisclosure: () => {
|
|
|
4266
4278
|
toggle: VoidFunction;
|
|
4267
4279
|
};
|
|
4268
4280
|
|
|
4269
|
-
export { Accordion, type AccountCollectionModel, type AccountModel, type AccountPaymentProfileCollectionModel, type AccountPaymentProfileModel, type AccountSettingsModel, type AccountShipToCollectionModel, type AccountShipToModel, type AccountsReceivableDto, type AddProductToCurrentCartParams, AddToCartButton, type AddressFieldCollectionModel, type AddressFieldDisplayCollectionModel, type AddressFieldDisplayModel, type AgingBucketDto, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, type AlgoliaFilterPanelProps, AlgoliaInsightInstantSearchProvider, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, type AlgoliaInsightsProviderState, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, type AttributeTypeDto, type AttributeTypeFacetModel, type AttributeTypeModel, type AttributeValueDto, type AttributeValueFacetModel, type AttributeValueModel, type AutocompleteItemModel, type AutocompleteModel, type AutocompleteProductCollectionModel, type AutocompleteProductModel, type AutocompleteProps$1 as AutocompleteProps, type AvailabilityDto$2 as AvailabilityDto, AvailabilityMessageType$2 as AvailabilityMessageType, BadgeImagePlacementValues, type BadgeModel, BadgeStyleValues, BadgeTypeValues, type BaseAddressModel, type BaseModel$1 as BaseModel, type BillToCollectionModel, type BillToModel, type BrandAlphabetLetterModel, type BrandAlphabetModel, type BrandAutocompleteModel, type BrandCategoryCollectionModel, type BrandCategoryModel, type BrandCollectionModel, type BrandDto$2 as BrandDto, type BrandModel, type BrandProductLineCollectionModel, type BrandProductLineModel, type BreadCrumb, type BreadCrumbModel, Breadcrumb, type BreadcrumbProps, type BreakPriceDto$2 as BreakPriceDto, type BreakPriceRfqModel, type BudgetCalendarCollectionModel, type BudgetCalendarModel, type BudgetCollectionModel, type BudgetLineModel, type BudgetModel, Button, type ButtonProps, type CalculationMethod, type CarrierDto, type CartCollectionModel, type CartLineCollectionModel, type CartLineModel$2 as CartLineModel, type CartModel, CartProvider, type CartSettingsModel, type CatalogPageModel, type Category$1 as Category, CategoryCarousel, type CategoryCarouselProps, type CategoryCollectionModel, type CategoryFacetModel, type CategoryModel, Checkbox, type CheckboxProps$1 as CheckboxProps, type ChildTraitValueModel, ColorCheckbox, type ColorCheckboxProps, type ConfigSectionDto, type ConfigSectionModel, type ConfigSectionOptionDto, type ConfigurationModel, ConnectedAddToCartButton, type ContactUsModel, type ContentModel, type CostCodeDto, type CostCodeModel, type CountryCollectionModel, type CountryModel, type CreditCardBillingAddressDto, type CreditCardDto, type CrossSellCollectionModel, type CurrencyCollectionModel, type CurrencyModel, CurrencyPositioningType, type CustomerCostCodeDto, type CustomerOrderTaxDto, type CustomerSettingsModel, type CustomerValidationDto, type DashboardPanelCollectionModel, type DashboardPanelModel, type DealerCollectionModel, type DealerModel, type DetailModel, type DocumentDto, type DocumentModel, type ECheckDto, type FacetModel, FavoriteButton, type FavoriteButtonProps, FavoriteProvider, type FetchProductListingPageDataArgs, type FieldScoreDetailedDto, type FieldScoreDetailedModel, type FieldScoreDto, type FieldScoreModel, type FieldValidationDto, type FilterOption, FilterSection, type Filters, FormattedMessage, type FormattedMessageFunction, type FormattedMessageProps, GlobalSearch, GlobalSearchContainer, GlobalSearchDisclosureContext, GlobalStateProvider, GlobalStateProviderContext, IconButton, type IconButtonProps, Image, type ImageModel, IntlProvider, type InventoryAvailabilityDto, type InventoryWarehousesDto, type InvoiceCollectionModel, type InvoiceHistoryTaxDto, type InvoiceLineModel, type InvoiceModel, type InvoiceSettingsModel, type JobQuoteCollectionModel, type JobQuoteLineModel, type JobQuoteModel, type LanguageCollectionModel, type LanguageModel, type LegacyConfigurationDto, type Link$1 as Link, LinkButton, type LinkButtonProps, LoadingOverlay, type MessageCollectionModel, type MessageModel, type MobileAppSettingsModel, type MobileContentModel, type MobilePageDto, type MobileWidgetDto, MultiSelect, type MultiSelectProps, type NavigateFn, type NavigateOptions$1 as NavigateOptions, NumberField, type NumberFieldSize, type OrderApprovalCollectionModel, type OrderCollectionModel, type OrderHistoryTaxDto, type OrderLineModel, type OrderModel, type OrderPromotionModel, type OrderRequestModel, type OrderSettingsModel, type OrderStatusMappingCollectionModel, type OrderStatusMappingModel, Page, PageContainer, type PageProps, type PaginationModel, type PaymentMethodDto, type PaymentOptionsDto, type PersonaModel, type PoRequisitionModel, type PriceFacetModel, type PriceRangeModel, type PricingRfqModel, type ProductAutocompleteItemModel, type ProductAvailabilityModel, ProductCard, type ProductCardProps, type ProductCollectionModel, type ProductDto, type ProductHit$1 as ProductHit, type ProductImageDto, type ProductInventoryDto, type ProductLineDto, type ProductLineModel, ProductListingPage, type ProductListingPageDataResponse, type ProductListingPageProps, type ProductModel, ProductOverviewGrid, type ProductOverviewGridProps, ProductPrice, type ProductPriceDto$2 as ProductPriceDto, type ProductPriceModel, type ProductPriceProps, type ProductSettingsModel, ProductSku, type ProductSkuProps, type ProductSubscriptionDto$2 as ProductSubscriptionDto, type ProductSubscriptionModel, type ProductUnitOfMeasureDto, type ProfileTransactionRequestModel, ProgressCircle, type ProgressCircleProps, type PromoCard$1 as PromoCard, type PromoCards, type PromotionCollectionModel, type PromotionModel, type QuoteCollectionModel, type QuoteLineModel, type QuoteModel, type QuoteSettingsModel, type RealTimeCartInventoryModel, type RealTimeInventoryModel, type RealTimePricingModel, type RefinementListItem, type RelatedProductDto, type RequisitionCollectionModel, type RequisitionLineCollectionModel, type RequisitionLineModel, type RequisitionModel, type RmaLineDto, type RmaModel, RouteButton, RouteLink, RouteProvider, type RouteProviderProps, type SalespersonModel, type ScoreExplanationDto, type ScoreExplanationModel, type SectionOptionDto$2 as SectionOptionDto, type SectionOptionModel, Select, type SelectProps, type SessionModel, type SessionRequestModel, type SettingsCollectionModel, type SetupRequestModel, type ShareEntityModel, type ShareOrderModel, type ShipToCollectionModel, type ShipToModel, type ShipViaDto, type ShipmentPackageDto, type ShipmentPackageLineDto, ShowAll, type ShowAllProps, Sidebar, SidebarDetectBreakpoint, type SidebarProps, SidebarProvider, type SiteMessageCollectionModel, type SiteMessageModel, type SortOptionModel, type SpecificationDto, type SpecificationModel, type StateCollectionModel, type StateModel, type StyleTraitDto, type StyleValueDto, type StyledProductDto, type SuggestionModel, type TellAFriendModel, TextField, type TraitValueModel, type TranslationDictionaryCollectionModel, type TranslationDictionaryModel, type TranslationId, type UnitOfMeasureModel, type UpdateCartLineParams, type UpdateGlobalState$1 as UpdateGlobalState, type UpdateWishListLineCollectionModel, VariantDisplayTypeValues, type VariantTraitModel, type VmiBinCollectionModel, type VmiBinCountModel, type VmiBinModel, type VmiCountCollectionModel, type VmiCountModel, type VmiLocationCollectionModel, type VmiLocationModel, type VmiNoteCollectionModel, type VmiNoteModel, type VmiUserImportCollectionModel, type VmiUserImportModel, type VmiUserModel, type WarehouseCollectionModel, type WarehouseDto, type WarehouseModel, type WebsiteModel, type WebsiteSettingsModel, type WishListCollectionModel, type WishListEmailScheduleModel, type WishListLineCollectionModel, type WishListLineModel, type WishListModel, type WishListSettingsModel, type WishListShareModel, config, configPerEnvironment, createSonicSearchClient, transformAlgoliaProductHitToProductHit, useAddProductToCurrentCart, useAlgolia, useAlgoliaSearch, useBreakpoint, useCartEvents, useDebouncedCallback, useDeleteCartLineById, useDisclosure, useFavorite, useFavoriteProduct, useFetchCurrentCartLines, useFetchProductListingPageData, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useNavigate, useScrollLock, useUpdateCartLineById, userToken, userTokenEventEmitter };
|
|
4281
|
+
export { Accordion, type AccountCollectionModel, type AccountModel, type AccountPaymentProfileCollectionModel, type AccountPaymentProfileModel, type AccountSettingsModel, type AccountShipToCollectionModel, type AccountShipToModel, type AccountsReceivableDto, type AddProductToCurrentCartParams, AddToCartButton, type AddressFieldCollectionModel, type AddressFieldDisplayCollectionModel, type AddressFieldDisplayModel, type AgingBucketDto, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, type AlgoliaFilterPanelProps, AlgoliaInsightInstantSearchProvider, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, type AlgoliaInsightsProviderState, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, type AttributeTypeDto, type AttributeTypeFacetModel, type AttributeTypeModel, type AttributeValueDto, type AttributeValueFacetModel, type AttributeValueModel, type AutocompleteItemModel, type AutocompleteModel, type AutocompleteProductCollectionModel, type AutocompleteProductModel, type AutocompleteProps$1 as AutocompleteProps, type AvailabilityDto$2 as AvailabilityDto, AvailabilityMessageType$2 as AvailabilityMessageType, BadgeImagePlacementValues, type BadgeModel, BadgeStyleValues, BadgeTypeValues, type BaseAddressModel, type BaseModel$1 as BaseModel, type BillToCollectionModel, type BillToModel, type BrandAlphabetLetterModel, type BrandAlphabetModel, type BrandAutocompleteModel, type BrandCategoryCollectionModel, type BrandCategoryModel, type BrandCollectionModel, type BrandDto$2 as BrandDto, type BrandModel, type BrandProductLineCollectionModel, type BrandProductLineModel, type BreadCrumb, type BreadCrumbModel, Breadcrumb, type BreadcrumbProps, type BreakPriceDto$2 as BreakPriceDto, type BreakPriceRfqModel, type BudgetCalendarCollectionModel, type BudgetCalendarModel, type BudgetCollectionModel, type BudgetLineModel, type BudgetModel, Button, type ButtonProps, type CalculationMethod, type CarrierDto, type CartCollectionModel, type CartLineCollectionModel, type CartLineModel$2 as CartLineModel, type CartModel, CartProvider, type CartSettingsModel, type CatalogPageModel, type Category$1 as Category, CategoryCarousel, type CategoryCarouselProps, type CategoryCollectionModel, type CategoryFacetModel, type CategoryModel, Checkbox, type CheckboxProps$1 as CheckboxProps, type ChildTraitValueModel, ColorCheckbox, type ColorCheckboxProps, type ConfigSectionDto, type ConfigSectionModel, type ConfigSectionOptionDto, type ConfigurationModel, ConnectedAddToCartButton, type ContactUsModel, type ContentModel, type CostCodeDto, type CostCodeModel, type CountryCollectionModel, type CountryModel, type CreditCardBillingAddressDto, type CreditCardDto, type CrossSellCollectionModel, type CurrencyCollectionModel, type CurrencyModel, CurrencyPositioningType, type CustomerCostCodeDto, type CustomerOrderTaxDto, type CustomerSettingsModel, type CustomerValidationDto, type DashboardPanelCollectionModel, type DashboardPanelModel, type DealerCollectionModel, type DealerModel, type DetailModel, type DocumentDto, type DocumentModel, type ECheckDto, type FacetModel, FavoriteButton, type FavoriteButtonProps, FavoriteProvider, type FetchProductListingPageDataArgs, type FieldScoreDetailedDto, type FieldScoreDetailedModel, type FieldScoreDto, type FieldScoreModel, type FieldValidationDto, type FilterOption, FilterSection, type Filters, FormattedMessage, type FormattedMessageFunction, type FormattedMessageProps, GlobalSearch, GlobalSearchContainer, GlobalSearchDisclosureContext, GlobalStateProvider, GlobalStateProviderContext, IconButton, type IconButtonProps, Image, type ImageModel, IntlProvider, type InventoryAvailabilityDto, type InventoryWarehousesDto, type InvoiceCollectionModel, type InvoiceHistoryTaxDto, type InvoiceLineModel, type InvoiceModel, type InvoiceSettingsModel, type JobQuoteCollectionModel, type JobQuoteLineModel, type JobQuoteModel, type LanguageCollectionModel, type LanguageModel, type LegacyConfigurationDto, type Link$1 as Link, LinkButton, type LinkButtonProps, LoadingOverlay, type MessageCollectionModel, type MessageModel, type MobileAppSettingsModel, type MobileContentModel, type MobilePageDto, type MobileWidgetDto, MultiSelect, type MultiSelectProps, type NavigateFn, type NavigateOptions$1 as NavigateOptions, NumberField, type NumberFieldSize, type OrderApprovalCollectionModel, type OrderCollectionModel, type OrderHistoryTaxDto, type OrderLineModel, type OrderModel, type OrderPromotionModel, type OrderRequestModel, type OrderSettingsModel, type OrderStatusMappingCollectionModel, type OrderStatusMappingModel, Page, PageContainer, type PageProps, type PaginationModel, type PaymentMethodDto, type PaymentOptionsDto, type PersonaModel, type PoRequisitionModel, type PriceFacetModel, type PriceRangeModel, type PricingRfqModel, type ProductAutocompleteItemModel, type ProductAvailabilityModel, ProductCard, type ProductCardProps, type ProductCollectionModel, type ProductDto, type ProductHit$1 as ProductHit, type ProductImageDto, type ProductInventoryDto, type ProductLineDto, type ProductLineModel, ProductListingPage, type ProductListingPageDataResponse, type ProductListingPageProps, type ProductModel, ProductOverviewGrid, type ProductOverviewGridProps, ProductPrice, type ProductPriceDto$2 as ProductPriceDto, type ProductPriceModel, type ProductPriceProps, type ProductSettingsModel, ProductSku, type ProductSkuProps, type ProductSubscriptionDto$2 as ProductSubscriptionDto, type ProductSubscriptionModel, type ProductUnitOfMeasureDto, type ProfileTransactionRequestModel, ProgressCircle, type ProgressCircleProps, type PromoCard$1 as PromoCard, type PromoCards, type PromotionCollectionModel, type PromotionModel, type QuoteCollectionModel, type QuoteLineModel, type QuoteModel, type QuoteSettingsModel, type RealTimeCartInventoryModel, type RealTimeInventoryModel, type RealTimePricingModel, type RefinementListItem, type RelatedProductDto, type RequisitionCollectionModel, type RequisitionLineCollectionModel, type RequisitionLineModel, type RequisitionModel, type RmaLineDto, type RmaModel, RouteButton, RouteLink, RouteProvider, type RouteProviderProps, type SalespersonModel, type ScoreExplanationDto, type ScoreExplanationModel, SearchResultsPage, type SectionOptionDto$2 as SectionOptionDto, type SectionOptionModel, Select, type SelectProps, type SessionModel, type SessionRequestModel, type SettingsCollectionModel, type SetupRequestModel, type ShareEntityModel, type ShareOrderModel, type ShipToCollectionModel, type ShipToModel, type ShipViaDto, type ShipmentPackageDto, type ShipmentPackageLineDto, ShowAll, type ShowAllProps, Sidebar, SidebarDetectBreakpoint, type SidebarProps, SidebarProvider, type SiteMessageCollectionModel, type SiteMessageModel, type SortOptionModel, type SpecificationDto, type SpecificationModel, type StateCollectionModel, type StateModel, type StyleTraitDto, type StyleValueDto, type StyledProductDto, type SuggestionModel, type TellAFriendModel, TextField, type TraitValueModel, type TranslationDictionaryCollectionModel, type TranslationDictionaryModel, type TranslationId, type UnitOfMeasureModel, type UpdateCartLineParams, type UpdateGlobalState$1 as UpdateGlobalState, type UpdateWishListLineCollectionModel, VariantDisplayTypeValues, type VariantTraitModel, type VmiBinCollectionModel, type VmiBinCountModel, type VmiBinModel, type VmiCountCollectionModel, type VmiCountModel, type VmiLocationCollectionModel, type VmiLocationModel, type VmiNoteCollectionModel, type VmiNoteModel, type VmiUserImportCollectionModel, type VmiUserImportModel, type VmiUserModel, type WarehouseCollectionModel, type WarehouseDto, type WarehouseModel, type WebsiteModel, type WebsiteSettingsModel, type WishListCollectionModel, type WishListEmailScheduleModel, type WishListLineCollectionModel, type WishListLineModel, type WishListModel, type WishListSettingsModel, type WishListShareModel, config, configPerEnvironment, createSonicSearchClient, transformAlgoliaProductHitToProductHit, useAddProductToCurrentCart, useAlgolia, useAlgoliaSearch, useBreakpoint, useCartEvents, useDebouncedCallback, useDeleteCartLineById, useDisclosure, useFavorite, useFavoriteProduct, useFetchCurrentCartLines, useFetchProductListingPageData, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useNavigate, useScrollLock, useUpdateCartLineById, userToken, userTokenEventEmitter };
|
package/dist/index.js
CHANGED
|
@@ -302,7 +302,7 @@ const request = async (options) => {
|
|
|
302
302
|
throw error;
|
|
303
303
|
}
|
|
304
304
|
finally {
|
|
305
|
-
request._afterHandlers.forEach(handler => handler({ body, error, response }));
|
|
305
|
+
request._afterHandlers.forEach(handler => handler({ body, error, options, response }));
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
request.headers = {};
|
|
@@ -881,22 +881,22 @@ function SolidHomeIcon(props) {
|
|
|
881
881
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M15.039782,22 C14.6690193,22 14.3684378,21.6994185 14.3684378,21.3286559 L14.3684378,15.6029043 L9.34495251,15.6029043 L9.34495251,21.3286559 C9.34495251,21.6994185 9.04437101,22 8.67345678,22 L3.67134415,22 C3.3005815,22 3,21.6994185 3,21.3286559 L3,9.79560307 C3,9.60127857 3.08412644,9.41665514 3.23055192,9.28917706 L11.4158271,2.16495603 C11.6686612,1.94501466 12.0447291,1.94501466 12.2975632,2.16495603 L20.4828384,9.28917706 C20.6292639,9.41665514 20.7133903,9.60127857 20.7133903,9.79560307 L20.7133903,21.3286559 C20.7133903,21.6994185 20.4128088,22 20.0418946,22 L15.039782,22 Z", fillRule: "evenodd" }) }));
|
|
882
882
|
}
|
|
883
883
|
|
|
884
|
-
var styles$
|
|
884
|
+
var styles$S = {"breadcrumbs":"breadcrumb-module-CQGse","breadcrumb":"breadcrumb-module-hxhDY","link":"breadcrumb-module-fp2Q6","icon":"breadcrumb-module-uIn3w","previous-icon":"breadcrumb-module-K-wMJ"};
|
|
885
885
|
|
|
886
886
|
function BreadcrumbShort({ links }) {
|
|
887
887
|
const homeLink = links[0];
|
|
888
888
|
const previousLink = links[links.length - 2];
|
|
889
|
-
return (jsx(Breadcrumbs, { className: styles$
|
|
889
|
+
return (jsx(Breadcrumbs, { className: styles$S.breadcrumbs, children: jsx(Breadcrumb$1, { className: styles$S.breadcrumb, children: jsxs(RouteLink, { className: styles$S.link, isDisabled: false, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: styles$S.icon }), previousLink === undefined || previousLink === homeLink ? (jsx(SolidHomeIcon, { className: styles$S.icon })) : (jsx("span", { children: previousLink.label }))] }) }) }));
|
|
890
890
|
}
|
|
891
891
|
function BreadcrumbLongItem({ index, isDisabled, link, }) {
|
|
892
|
-
return (jsx(Breadcrumb$1, { className: styles$
|
|
892
|
+
return (jsx(Breadcrumb$1, { className: styles$S.breadcrumb, children: jsxs(RouteLink, { className: styles$S.link, href: link.href, isDisabled: isDisabled, children: [jsx(GlyphsChevronsSlimLeftIcon, { className: clsx(styles$S['previous-icon'], styles$S.icon) }), link.label] }) }, index));
|
|
893
893
|
}
|
|
894
894
|
function BreadcrumbLong({ links }) {
|
|
895
895
|
const linksWithoutFirst = links.slice(1);
|
|
896
896
|
const homeLink = links[0];
|
|
897
897
|
if (!homeLink)
|
|
898
898
|
return null;
|
|
899
|
-
return (jsxs(Breadcrumbs, { className: styles$
|
|
899
|
+
return (jsxs(Breadcrumbs, { className: styles$S.breadcrumbs, children: [jsx(Breadcrumb$1, { className: styles$S.breadcrumb, children: jsx(RouteLink, { className: styles$S.link, href: homeLink.href, children: jsx(SolidHomeIcon, { className: clsx(styles$S['home-icon'], styles$S.icon) }) }) }), linksWithoutFirst.map((link, index) => (jsx(BreadcrumbLongItem, { index: index, isDisabled: linksWithoutFirst.length - 1 === index, link: link }, index)))] }));
|
|
900
900
|
}
|
|
901
901
|
function Breadcrumb({ links }) {
|
|
902
902
|
const { lg } = useBreakpoint();
|
|
@@ -909,20 +909,20 @@ function GlyphsArrowBoldCapsRightIcon(props) {
|
|
|
909
909
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "11", viewBox: "0 0 11 11", width: "11", children: jsx("path", { d: "M2.31124163,11 C2.06716529,11 1.91839241,10.7730596 2.04771379,10.5980857 L6.08820761,5.13116556 C6.42092595,4.68081431 6.37243043,4.10595375 5.96732409,3.70073526 L2.70240329,0.432177991 C2.53178078,0.261409485 2.67540212,0 2.93972934,0 L5.48361239,0 C5.57518542,0 5.6619622,0.0340936243 5.72102726,0.0931942463 L8.14882304,2.52367916 C9.1607451,3.53657521 9.28198389,4.9729381 8.45036569,6.09787751 L4.91836426,10.876542 C4.86160851,10.9533653 4.7620417,11 4.65492523,11 L2.31124163,11 Z", fillRule: "evenodd" }) }));
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
var styles$
|
|
912
|
+
var styles$R = {"button":"button-module-V4meK","icon":"button-module-XaNWz","sm":"button-module-Pbwz7","md":"button-module-GVTEW","condensed":"button-module-GKHQc","lg":"button-module-nyNY8","primary":"button-module-tmyk8","outline":"button-module-vq9GI","solid":"button-module-AjvlY","hover":"button-module-YzPAr","focus":"button-module--xzsY","active":"button-module-XMFzj","ghost":"button-module-f4UVe","right-arrow-icon":"button-module-ydQAo","secondary":"button-module--1bCH"};
|
|
913
913
|
|
|
914
914
|
function Button({ _pseudo = 'none', children, className, color = 'primary', condensed, icon, iconPosition = 'left', isDisabled, onPress, size = 'lg', type = 'button', variant = 'solid', withArrow = false, }) {
|
|
915
|
-
return (jsxs(Button$1, { className: clsx(className, styles$
|
|
915
|
+
return (jsxs(Button$1, { className: clsx(className, styles$R.button, styles$R[variant], styles$R[size], styles$R[color], { [styles$R.condensed]: condensed }, { [styles$R.icon]: icon }, styles$R[_pseudo]), isDisabled: isDisabled,
|
|
916
916
|
// Workaround for adobe/react-spectrum #963
|
|
917
917
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
918
918
|
// @ts-ignore
|
|
919
|
-
onClick: e => e.preventDefault(), onPress: onPress, type: type, children: [icon && iconPosition === 'left' && (jsx("span", { className: styles$
|
|
919
|
+
onClick: e => e.preventDefault(), onPress: onPress, type: type, children: [icon && iconPosition === 'left' && (jsx("span", { className: styles$R.icon, children: icon })), children, withArrow && (jsx(GlyphsArrowBoldCapsRightIcon, { className: styles$R['right-arrow-icon'] })), icon && iconPosition === 'right' && (jsx("span", { className: styles$R.icon, children: icon }))] }));
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
var styles$
|
|
922
|
+
var styles$Q = {"icon-button":"icon-button-module-4PDK-","md":"icon-button-module-k3s9J","lg":"icon-button-module-agk6Y","primary":"icon-button-module-fTeP4","secondary":"icon-button-module-dM0eo"};
|
|
923
923
|
|
|
924
924
|
function IconButton({ children, className, color = 'primary', isDisabled, onPress, size = 'md', type = 'button', }) {
|
|
925
|
-
return (jsx(Button$1, { className: clsx(styles$
|
|
925
|
+
return (jsx(Button$1, { className: clsx(styles$Q['icon-button'], styles$Q[size], styles$Q[color], className), isDisabled: isDisabled,
|
|
926
926
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
927
927
|
// @ts-expect-error
|
|
928
928
|
onClick: e => e.preventDefault(), onPress: onPress, type: type, children: children }));
|
|
@@ -936,34 +936,34 @@ function StrokeFavoriteIcon(props) {
|
|
|
936
936
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M7.33319295,3.33090958 C5.12714802,3.33090958 3.33232058,5.12348359 3.33232058,7.32679321 C3.33232058,8.18447047 3.64878056,9.03643889 4.29989998,9.93107334 L11.9997744,20.2227497 L19.7053643,9.92401241 C20.351069,9.03643889 20.6673786,8.1846207 20.6673786,7.32679321 C20.6673786,5.12348359 18.8727016,3.33090958 16.6666566,3.33090958 C14.8537801,3.33090958 13.1222748,4.56251549 12.6388611,6.19569283 C12.5552338,6.47843037 12.2951771,6.67253074 11.9999248,6.67253074 C11.7046724,6.67253074 11.4447662,6.47843037 11.3609885,6.19569283 C10.8775748,4.56251549 9.14606944,3.33090958 7.33319295,3.33090958 M11.9997744,22 L11.9997744,22 C11.7898038,22 11.5918659,21.9008466 11.4662746,21.7327364 L3.22718487,10.720545 C2.41106707,9.59905954 2,8.45954615 2,7.32679321 C2,4.3895979 4.39240135,2 7.33319295,2 C9.22488362,2 11.0018124,2.98206975 11.9999248,4.46786903 C12.9978868,2.98206975 14.774966,2 16.6666566,2 C19.6072978,2 22,4.3895979 22,7.32679321 C22,8.45969638 21.5887825,9.59920978 20.777929,10.7136343 L12.5334246,21.7327364 C12.4076829,21.9008466 12.2098954,22 11.9997744,22", fillRule: "evenodd" }) }));
|
|
937
937
|
}
|
|
938
938
|
|
|
939
|
-
var styles$
|
|
939
|
+
var styles$P = {"favorite-button":"favorite-button-module-tXSS3","is-favorite":"favorite-button-module-l557q","favorite-on":"favorite-button-module-6Tsmy","favorite-off":"favorite-button-module-LQauU"};
|
|
940
940
|
|
|
941
941
|
function FavoriteButton({ isDisabled, isFavorite, onPress, }) {
|
|
942
|
-
return (jsx(IconButton, { className: clsx(styles$
|
|
943
|
-
[styles$
|
|
942
|
+
return (jsx(IconButton, { className: clsx(styles$P['favorite-button'], {
|
|
943
|
+
[styles$P['is-favorite']]: isFavorite,
|
|
944
944
|
}), color: "secondary", isDisabled: isDisabled, onPress: onPress, children: isFavorite ? jsx(SolidFavoriteIcon, {}) : jsx(StrokeFavoriteIcon, {}) }));
|
|
945
945
|
}
|
|
946
946
|
|
|
947
|
-
var styles$
|
|
947
|
+
var styles$O = {"link-button":"link-button-module-6i75g"};
|
|
948
948
|
|
|
949
949
|
function LinkButton({ children, className, href, isDisabled, onPress, route, target, type = href ? 'link' : 'button', }) {
|
|
950
950
|
if (type === 'link') {
|
|
951
|
-
return (jsx(RouteLink, { className: clsx(styles$
|
|
951
|
+
return (jsx(RouteLink, { className: clsx(styles$O['link-button'], className), href: href, isDisabled: isDisabled, onPress: onPress, route: route, target: target, children: children }));
|
|
952
952
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
953
953
|
}
|
|
954
954
|
else if (type === 'button') {
|
|
955
|
-
return (jsx(RouteButton, { className: clsx(styles$
|
|
955
|
+
return (jsx(RouteButton, { className: clsx(styles$O['link-button'], className), href: href, isDisabled: isDisabled, onPress: onPress, route: route, type: "button", children: children }));
|
|
956
956
|
}
|
|
957
957
|
throw new Error('Invalid type ${type} for LinkButton component');
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
var styles$
|
|
960
|
+
var styles$N = {"field-error":"field-error-module-FXnIg"};
|
|
961
961
|
|
|
962
962
|
function FieldError({ children }) {
|
|
963
|
-
return (jsx(FieldError$1, { className: styles$
|
|
963
|
+
return (jsx(FieldError$1, { className: styles$N['field-error'], children: children }));
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
-
var styles$
|
|
966
|
+
var styles$M = {"input-container":"input-module-2woJR","shadow-input":"input-module-pNKEt","lg":"input-module-Dx2qC","md":"input-module-sH6e7","focus":"input-module-hEEuy","growing-input":"input-module-6HwY4"};
|
|
967
967
|
|
|
968
968
|
/**
|
|
969
969
|
* This component is used to create an input that grows as the user types.
|
|
@@ -978,20 +978,20 @@ const Input = forwardRef(({ _pseudo = 'none', autoGrow, size = 'lg', ...inputPro
|
|
|
978
978
|
const handleChange = (event) => isControlled
|
|
979
979
|
? onChange?.(event)
|
|
980
980
|
: setUncontrolledValue(event.target.value);
|
|
981
|
-
return (jsx("div", { className: clsx(styles$
|
|
981
|
+
return (jsx("div", { className: clsx(styles$M['input-container'], styles$M[size], styles$M[_pseudo]), children: jsxs("div", { className: clsx({ [styles$M['growing-input']]: autoGrow }), children: [jsx(Input$1, { size: autoGrow ? 1 : undefined, ...props, ref: ref, onChange: handleChange, onClick: e => {
|
|
982
982
|
e.preventDefault();
|
|
983
983
|
e.stopPropagation();
|
|
984
984
|
e.target.focus();
|
|
985
|
-
} }), autoGrow && jsx("span", { className: styles$
|
|
985
|
+
} }), autoGrow && jsx("span", { className: styles$M['shadow-input'], children: value })] }) }));
|
|
986
986
|
});
|
|
987
987
|
Input.displayName = 'Input';
|
|
988
988
|
|
|
989
|
-
var styles$
|
|
989
|
+
var styles$L = {"label":"label-module-LGfJt","required":"label-module-oTWaS"};
|
|
990
990
|
|
|
991
991
|
function Label({ children, isRequired }) {
|
|
992
992
|
if (!children)
|
|
993
993
|
return null;
|
|
994
|
-
return (jsxs(Label$1, { className: styles$
|
|
994
|
+
return (jsxs(Label$1, { className: styles$L.label, children: [children, isRequired && jsx("span", { className: styles$L.required, children: "*" })] }));
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
function StrokeCollapseIcon(props) {
|
|
@@ -1006,7 +1006,7 @@ function StrokeTrashIcon(props) {
|
|
|
1006
1006
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M7.77273912,6.04398453 L9.07201126,6.04398453 L9.07201126,4.11757519 C9.07201126,3.84748949 9.15880324,3.63104347 9.33238719,3.46823712 C9.50597114,3.30543077 9.73570292,3.22402759 10.0215825,3.22402759 L13.3263825,3.22402759 C13.6186194,3.22402759 13.850313,3.30543077 14.0214633,3.46823712 C14.1926136,3.63104347 14.2781888,3.84748949 14.2781888,4.11757519 L14.2781888,6.04398453 L15.5846129,6.04398453 L15.5846129,4.04352264 C15.5846129,3.40769382 15.3900697,2.90814951 15.0009834,2.5448897 C14.6118971,2.1816299 14.0799703,2 13.405203,2 L9.942762,2 C9.26869007,2 8.73850162,2.1816299 8.35219662,2.5448897 C7.96589162,2.90814951 7.77273912,3.40769382 7.77273912,4.04352264 L7.77273912,6.04398453 Z M3.60955531,6.6940676 L19.7561406,6.6940676 C19.9248076,6.6940676 20.0683931,6.6332263 20.186897,6.51154371 C20.305401,6.38986111 20.3646529,6.242352 20.3646529,6.06901638 C20.3646529,5.9003494 20.3052023,5.75537328 20.186301,5.63408801 C20.0673997,5.51280275 19.9240129,5.45216011 19.7561406,5.45216011 L3.60955531,5.45216011 C3.44734496,5.45216011 3.30519982,5.51300141 3.18311989,5.63468401 C3.06103996,5.75636661 3,5.90114406 3,6.06901638 C3,6.24314666 3.06103996,6.39085444 3.18311989,6.5121397 C3.30519982,6.63342497 3.44734496,6.6940676 3.60955531,6.6940676 Z M7.56920636,22 L15.8049825,22 C16.4210441,22 16.9252074,21.8108208 17.3174724,21.4324624 C17.7097373,21.0541041 17.9209684,20.5545101 17.9511655,19.9336805 L18.6066126,6.5283806 L17.2870766,6.5283806 L16.6578534,19.8059883 C16.6444435,20.0808419 16.5455825,20.3084381 16.3612707,20.4887766 C16.1769588,20.6691152 15.9469787,20.7592845 15.6713303,20.7592845 L7.68497866,20.7592845 C7.41479362,20.7592845 7.18757,20.6677246 7.00330778,20.4846047 C6.81904556,20.3014848 6.72015983,20.0752793 6.70665057,19.8059883 L6.05358753,6.5295726 L4.76996029,6.5295726 L5.41587138,19.9420245 C5.4468632,20.562854 5.65806942,21.0610573 6.04949005,21.4366344 C6.44091068,21.8122115 6.94748278,22 7.56920636,22 Z M9.00213069,19.1375783 C9.15957307,19.1375783 9.2862223,19.0920591 9.38207839,19.0010206 C9.47793448,18.9099822 9.5230812,18.7917017 9.51751857,18.6461793 L9.2314403,8.86811345 C9.22587767,8.72338566 9.17618647,8.60729053 9.0823667,8.51982806 C8.98854694,8.43236558 8.86649184,8.38863435 8.71620142,8.38863435 C8.55945437,8.38863435 8.43436962,8.43395491 8.34094719,8.52459603 C8.24752475,8.61523714 8.20081354,8.73371626 8.20081354,8.88003338 L8.48555081,18.6485633 C8.49121278,18.7988537 8.54055631,18.9179288 8.63358142,19.0057886 C8.72660652,19.0936484 8.84945628,19.1375783 9.00213069,19.1375783 Z M11.6876904,19.1375783 C11.8451328,19.1375783 11.9717821,19.0922578 12.0676381,19.0016166 C12.1634942,18.9109755 12.2114223,18.7924964 12.2114223,18.6461793 L12.2114223,8.88003338 C12.2114223,8.73451092 12.1634942,8.61623047 12.0676381,8.52519202 C11.9717821,8.43415357 11.8451328,8.38863435 11.6876904,8.38863435 C11.5310427,8.38863435 11.4032015,8.43415357 11.3041668,8.52519202 C11.205132,8.61623047 11.1556147,8.73451092 11.1556147,8.88003338 L11.1556147,18.6461793 C11.1556147,18.7924964 11.205132,18.9109755 11.3041668,19.0016166 C11.4032015,19.0922578 11.5310427,19.1375783 11.6876904,19.1375783 Z M14.3635653,19.1387703 C14.516339,19.1387703 14.6392384,19.0948404 14.7322635,19.0069806 C14.8252886,18.9191208 14.8745825,18.802827 14.8801451,18.6580992 L15.1662234,8.88122537 C15.1662234,8.73490825 15.1194873,8.6166278 15.0260152,8.52638402 C14.9325431,8.43614023 14.8070859,8.39101833 14.6496435,8.39101833 C14.4993531,8.39101833 14.3772732,8.4345509 14.2834037,8.52161604 C14.1895343,8.60868118 14.1398183,8.7277563 14.1342556,8.87884138 L13.8483264,18.6485633 C13.8483264,18.7932911 13.8948389,18.9111742 13.987864,19.0022126 C14.0808891,19.0932511 14.2061229,19.1387703 14.3635653,19.1387703 Z" }) }));
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
var styles$
|
|
1009
|
+
var styles$K = {"field":"number-field-module-gmnog","button-input-container":"number-field-module-8Lvgh","zoom-in-text":"number-field-module-OlEoa"};
|
|
1010
1010
|
|
|
1011
1011
|
/**
|
|
1012
1012
|
* This component is used to create a number field.
|
|
@@ -1014,7 +1014,7 @@ var styles$J = {"field":"number-field-module-gmnog","button-input-container":"nu
|
|
|
1014
1014
|
*/
|
|
1015
1015
|
function NumberField({ autoFocus, autoGrow, defaultValue, formatOptions = { style: 'decimal', useGrouping: false }, isDisabled, isInvalid, isReadOnly, isRequired, label, maxLength, maxValue, minValue, name, onChange, onInput, onKeyUp, placeholder, showLabel = false, size = 'lg', value, withButtons, }) {
|
|
1016
1016
|
const inputRef = useRef(null);
|
|
1017
|
-
return (jsxs(NumberField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$
|
|
1017
|
+
return (jsxs(NumberField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$K.field, styles$K[size]), defaultValue: defaultValue, formatOptions: formatOptions, isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, isRequired: isRequired, maxValue: maxValue, minValue: minValue, name: name, onChange: onChange, onInput: onInput, value: value, children: [showLabel && jsx(Label, { isRequired: isRequired, children: label }), jsxs("div", { className: styles$K['button-input-container'], children: [withButtons && (jsx(Button$1, { isDisabled: isDisabled,
|
|
1018
1018
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1019
1019
|
// @ts-expect-error
|
|
1020
1020
|
onClick: e => e.preventDefault(), onPressStart: e => e.target.focus(), slot: "decrement", children: (value || 0) <= 1 ? jsx(StrokeTrashIcon, {}) : jsx(StrokeCollapseIcon, {}) })), jsx(Input, { ref: inputRef, autoGrow: autoGrow, maxLength: maxLength, onFocus: e => (e.target.selectionStart = e.target.value.length || 0), onKeyUp: e => onKeyUp?.(e), placeholder: placeholder, size: size }), withButtons && (jsx(Button$1, { isDisabled: isDisabled,
|
|
@@ -1027,7 +1027,7 @@ function SolidCartIcon(props) {
|
|
|
1027
1027
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M7.89619008,16.6656848 C9.33405626,16.6656848 10.4996925,17.831321 10.4996925,19.2690253 C10.4996925,20.7068915 9.33405626,21.8725278 7.89619008,21.8725278 C6.45832389,21.8725278 5.29268766,20.7068915 5.29268766,19.2690253 C5.29268766,17.831321 6.45832389,16.6656848 7.89619008,16.6656848 Z M16.8207199,16.6656848 C18.2585861,16.6656848 19.4242223,17.831321 19.4242223,19.2690253 C19.4242223,20.7068915 18.2585861,21.8725278 16.8207199,21.8725278 C15.3828537,21.8725278 14.2172175,20.7068915 14.2172175,19.2690253 C14.2172175,17.831321 15.3828537,16.6656848 16.8207199,16.6656848 Z M7.89619008,18.0995047 C7.25122196,18.0995047 6.72650762,18.6242191 6.72650762,19.2690253 C6.72650762,19.9139935 7.25122196,20.4387078 7.89619008,20.4387078 C8.54115819,20.4387078 9.06587253,19.9139935 9.06587253,19.2690253 C9.06587253,18.6242191 8.54115819,18.0995047 7.89619008,18.0995047 Z M16.8207199,18.0995047 C16.1757518,18.0995047 15.6510375,18.6242191 15.6510375,19.2690253 C15.6510375,19.9139935 16.1757518,20.4387078 16.8207199,20.4387078 C17.465688,20.4387078 17.9904024,19.9139935 17.9904024,19.2690253 C17.9904024,18.6242191 17.465688,18.0995047 16.8207199,18.0995047 Z M4.58909785,3 C4.6054446,3 4.6206584,3.00372253 4.63668145,3.00485547 C4.65869291,3.00631211 4.68038067,3.0079306 4.70174473,3.01132943 C4.72958275,3.0158612 4.75628783,3.02233516 4.78299291,3.02994206 C4.8001489,3.03479753 4.81698119,3.03949115 4.83365164,3.04564141 C4.8622989,3.05616159 4.88948953,3.06862396 4.91619461,3.08254297 L4.956495,3.10439258 C4.98287638,3.12025378 5.00763927,3.13789532 5.03175477,3.15699349 L5.06736154,3.18645 C5.08921115,3.20603373 5.10911857,3.22707409 5.1283786,3.2492474 C5.13986987,3.26251902 5.1511993,3.27562878 5.16171948,3.28970964 C5.17806623,3.31155925 5.19230894,3.33421811 5.2060661,3.35768621 C5.21626258,3.37500405 5.22597352,3.39216004 5.23455152,3.41028712 C5.24555725,3.43326967 5.25462079,3.45706147 5.26319878,3.48150066 C5.27032014,3.50205548 5.27711779,3.52244845 5.28245881,3.54381251 C5.28860907,3.56825171 5.29249345,3.59317645 5.29605412,3.61858673 C5.29799631,3.63299129 5.30252808,3.64642476 5.30382287,3.66115301 L5.510504,6.30738355 L21.2869744,6.30772748 C21.3139222,6.30835464 21.3370666,6.31256272 21.3603729,6.3151523 C21.3861069,6.31790373 21.4120027,6.31936037 21.4369275,6.32486324 C21.4591008,6.32923316 21.4726961,6.33603082 21.4875862,6.34056259 C21.5163953,6.34914058 21.5452044,6.35723303 21.5722332,6.36920985 C21.5918169,6.37778785 21.6092966,6.38911728 21.6275855,6.39931376 C21.6497588,6.41145243 21.6722559,6.42278186 21.6928107,6.43718642 C21.711747,6.45029618 21.7280937,6.46583368 21.7455734,6.48072379 C21.763215,6.49577574 21.7815039,6.51001845 21.7976888,6.52668889 C21.8132263,6.54287379 21.8261742,6.56067718 21.8400932,6.57815686 C21.8551452,6.59676949 21.8706827,6.61473473 21.8836306,6.634804 C21.8954456,6.65293108 21.9043473,6.67251481 21.9145437,6.69161299 C21.9258732,6.71330075 21.9381737,6.73434111 21.9473991,6.75716182 C21.9559771,6.77868773 21.9614799,6.80134658 21.9679539,6.82368174 C21.9744279,6.8456932 21.9820348,6.86705726 21.9864047,6.89003981 C21.9915839,6.91658304 21.9925549,6.94393552 21.994659,6.97128799 C21.9959538,6.98909138 22,7.00608552 22,7.0242126 C21.9988671,7.05496391 21.994659,7.07794646 21.9922312,7.10109086 C21.9894798,7.1269867 21.9880232,7.15320623 21.9825203,7.17813097 L20.5915903,13.2322533 L20.587706,13.2487619 C20.5797754,13.2835594 20.5681222,13.3164147 20.555498,13.3486227 C20.5524229,13.3567151 20.5499951,13.3651313 20.5465963,13.3730619 C20.5299259,13.4117438 20.5096948,13.4483216 20.4870359,13.4827955 C20.4797527,13.4938012 20.4710129,13.5031884 20.4632441,13.5137086 C20.445117,13.5381478 20.4265044,13.5619396 20.4056259,13.5836274 C20.3944583,13.5952805 20.3823196,13.605477 20.3705046,13.6163208 C20.3505972,13.6344479 20.3302043,13.6517658 20.3083546,13.6674651 C20.2941119,13.6778235 20.2795455,13.6872107 20.2646554,13.6964361 C20.2424821,13.7101932 20.2198233,13.7223319 20.1963552,13.7334995 L20.148286,13.7550254 C20.1214191,13.7655456 20.0935811,13.7734762 20.0654194,13.7807594 C20.0513385,13.7843201 20.037905,13.7888518 20.0235005,13.7916033 C19.9798012,13.8000194 19.9351309,13.8053604 19.8898132,13.8053604 L6.09623539,13.8051986 L6.20774933,15.2317353 L19.411064,15.2317353 C19.8069466,15.2317353 20.1278931,15.5528437 20.1278931,15.9487262 C20.1278931,16.3446088 19.8069466,16.6657172 19.411064,16.6657172 L5.54384488,16.6657172 C5.49593759,16.6657172 5.44932509,16.660538 5.40384553,16.6514744 C5.38863173,16.6483993 5.37471272,16.6425728 5.35998446,16.6386884 C5.33052795,16.6307578 5.30090959,16.6231509 5.27290972,16.6116596 C5.25543003,16.6043764 5.23940699,16.5945036 5.22257469,16.5859256 C5.19910659,16.5741106 5.17547665,16.5627812 5.15362704,16.5485385 C5.13711844,16.5376946 5.12255203,16.5249086 5.10701453,16.5127699 C5.08694526,16.4972324 5.06687599,16.4821804 5.04874891,16.4647007 C5.03434435,16.4509436 5.02204383,16.4357298 5.00893406,16.4208397 C4.99226362,16.4019033 4.97575503,16.3834526 4.96118862,16.3628977 C4.94937364,16.3463891 4.93966271,16.3285858 4.92930437,16.3111061 C4.91668015,16.2899039 4.90437963,16.2688635 4.8940213,16.2462046 C4.88511961,16.2267828 4.87832195,16.2065516 4.87103875,16.1861587 C4.86310815,16.163338 4.8553394,16.1406791 4.84967468,16.1168873 C4.84433367,16.0950377 4.84109669,16.0728644 4.83785971,16.0502055 L4.82992911,16.0045641 L3.92600265,4.43381996 L2.7169909,4.43381996 C2.32110834,4.43381996 2,4.11287347 2,3.7169909 C2,3.32094649 2.32110834,3 2.7169909,3 Z", fillRule: "evenodd" }) }));
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
|
-
var styles$
|
|
1030
|
+
var styles$J = {"manual-input-container":"add-to-cart-button-module-AWFvQ","left-button-spacer":"add-to-cart-button-module-SS7WM"};
|
|
1031
1031
|
|
|
1032
1032
|
function AddToCartButton({ initialState = 'initial', isDisabled = false, onChange, quantity, }) {
|
|
1033
1033
|
const [currentState, setState] = useState(initialState);
|
|
@@ -1115,7 +1115,7 @@ function ManualInputState({ isDisabled, onCancel, onConfirm, quantity, }) {
|
|
|
1115
1115
|
e.key === 'Enter' && onConfirm(ensureNumber(updatedQuantity));
|
|
1116
1116
|
e.key === 'Escape' && onCancel();
|
|
1117
1117
|
};
|
|
1118
|
-
return (jsxs("div", { className: styles$
|
|
1118
|
+
return (jsxs("div", { className: styles$J['manual-input-container'], children: [jsx("div", { className: styles$J['left-button-spacer'] }), jsx(NumberField, { autoFocus: true, autoGrow: true, defaultValue: quantity ? ensureNumber(quantity) : undefined, formatOptions: {
|
|
1119
1119
|
maximumFractionDigits: 0,
|
|
1120
1120
|
style: 'decimal',
|
|
1121
1121
|
useGrouping: false,
|
|
@@ -1165,12 +1165,12 @@ const ConnectedAddToCartButton = ({ onAddToCart, productId }) => {
|
|
|
1165
1165
|
return (jsx(AddToCartButton, { isDisabled: isPendingDeleteCartLine || isLoadingCartLines || isPendingAddToCart, onChange: handleChange, quantity: quantity }));
|
|
1166
1166
|
};
|
|
1167
1167
|
|
|
1168
|
-
var styles$
|
|
1168
|
+
var styles$I = {"tag":"tag-module-B7r15","body":"tag-module-4cfCf","shape":"tag-module-c7CRb"};
|
|
1169
1169
|
|
|
1170
1170
|
function Tag({ children }) {
|
|
1171
1171
|
if (!children)
|
|
1172
1172
|
return null;
|
|
1173
|
-
return (jsxs("div", { className: styles$
|
|
1173
|
+
return (jsxs("div", { className: styles$I.tag, children: [jsx("div", { className: styles$I.body, children: children }), jsx("svg", { className: styles$I.shape, height: "16", viewBox: "0 0 9 16", width: "9", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M1.92461763,0 L0,0 L0,16 L1.92461763,16 L6.4117887,16 L8.87489381,7.57121588 C9.23711515,6.3325062 8.79482383,4.99454094 7.78060408,4.2560794 L1.92461763,0 Z", fill: "currentColor" }) })] }));
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
1176
|
const IntlContext = createContext({
|
|
@@ -1206,7 +1206,7 @@ function useFormattedMessage() {
|
|
|
1206
1206
|
|
|
1207
1207
|
const FormattedMessage = ({ fallbackValue, id, optional, replacementValues, }) => useFormattedMessage()(id, { fallbackValue, optional, replacementValues });
|
|
1208
1208
|
|
|
1209
|
-
var styles$
|
|
1209
|
+
var styles$H = {"product-price":"product-price-module-oIU1K","original-price":"product-price-module-til0s","is-hidden":"product-price-module-V1NCf","current-price-wrapper":"product-price-module-FfVhl","current-price":"product-price-module-pvy2w","wholes":"product-price-module-GCw07","dot":"product-price-module-N56iV","decimals":"product-price-module-eWOOF","vat":"product-price-module-96DoG"};
|
|
1210
1210
|
|
|
1211
1211
|
const formatPrice = (price) => new Intl.NumberFormat('en-US', {
|
|
1212
1212
|
maximumFractionDigits: 2,
|
|
@@ -1219,22 +1219,22 @@ function ProductPrice({ className, isVatIncluded, originalPrice, price, }) {
|
|
|
1219
1219
|
const priceWithCurrency = formatPrice(price);
|
|
1220
1220
|
const [wholes, decimals] = priceWithCurrency.split('.');
|
|
1221
1221
|
const showOriginalPrice = priceWithCurrency !== originalPriceWithCurrency;
|
|
1222
|
-
return (jsxs("div", { className: clsx(className, styles$
|
|
1223
|
-
[styles$
|
|
1224
|
-
}), children: originalPriceWithCurrency }), jsxs("div", { className: styles$
|
|
1222
|
+
return (jsxs("div", { className: clsx(className, styles$H['product-price']), children: [jsx("span", { className: clsx(styles$H['original-price'], {
|
|
1223
|
+
[styles$H['is-hidden']]: !showOriginalPrice,
|
|
1224
|
+
}), children: originalPriceWithCurrency }), jsxs("div", { className: styles$H['current-price-wrapper'], children: [jsxs("div", { className: styles$H['current-price'], children: [jsx("span", { className: styles$H.wholes, children: wholes }), jsx("span", { className: styles$H.dot, children: "." }), jsx("span", { className: styles$H.decimals, children: decimals })] }), jsx("span", { className: styles$H.vat, children: isVatIncluded ? (jsx(FormattedMessage, { id: "Incl. VAT" })) : (jsx(FormattedMessage, { id: "Excl. VAT" })) })] })] }));
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
|
-
var styles$
|
|
1227
|
+
var styles$G = {"product-sku":"product-sku-module-ITb8x"};
|
|
1228
1228
|
|
|
1229
1229
|
function ProductSku({ sku }) {
|
|
1230
|
-
return jsx("p", { className: styles$
|
|
1230
|
+
return jsx("p", { className: styles$G['product-sku'], children: sku });
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
1233
|
function isResponsiveImage(image) {
|
|
1234
1234
|
return Boolean(image.lg);
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
|
-
var styles$
|
|
1237
|
+
var styles$F = {"image":"image-module-lg7Kj","contain":"image-module-KFEgG","cover":"image-module-tVKFe","has-error":"image-module-LM93B","picture":"image-module-pNYjR"};
|
|
1238
1238
|
|
|
1239
1239
|
function Image({ className, fallbackSrc = 'https://res.cloudinary.com/dkz9eknwh/image/upload/v1716545808/images/product-card/fallback_p6ngjz.svg', fit = 'cover', height, image, loading = 'eager', title, width, }) {
|
|
1240
1240
|
const [hasError, setHasError] = useState(false);
|
|
@@ -1261,22 +1261,22 @@ function ImageComponent({ className, fallbackSrc, fit = 'cover', hasError, image
|
|
|
1261
1261
|
const srcSet = !hasError
|
|
1262
1262
|
? `${image[1]} 1x, ${image[2]} 2x, ${image[3]} 3x`
|
|
1263
1263
|
: undefined;
|
|
1264
|
-
return (jsx("img", { alt: image.altText, className: clsx(styles$
|
|
1265
|
-
[styles$
|
|
1264
|
+
return (jsx("img", { alt: image.altText, className: clsx(styles$F.image, className, styles$F[fit], {
|
|
1265
|
+
[styles$F['has-error']]: hasError,
|
|
1266
1266
|
}), src: !hasError ? image[3] : fallbackSrc, srcSet: srcSet, ...rest }));
|
|
1267
1267
|
}
|
|
1268
1268
|
function PictureComponent({ className, fallbackSrc, fit = 'cover', hasError, image, ...rest }) {
|
|
1269
1269
|
if (!isResponsiveImage(image))
|
|
1270
1270
|
return null;
|
|
1271
|
-
return (jsxs("picture", { className: clsx(styles$
|
|
1272
|
-
[styles$
|
|
1271
|
+
return (jsxs("picture", { className: clsx(styles$F.picture, className), children: [jsx("source", { media: "(max-width: 768px)", srcSet: `${image.sm[1]} 1x, ${image.sm[2]} 2x, ${image.sm[3]} 3x` }), jsx("source", { media: "(max-width: 1439px)", srcSet: `${image.md[1]} 1x, ${image.md[2]} 2x, ${image.md[3]} 3x` }), jsx("source", { media: "(min-width: 1440px)", srcSet: `${image.lg[1]} 1x, ${image.lg[2]} 2x, ${image.lg[3]} 3x` }), jsx("img", { className: clsx(styles$F[fit], {
|
|
1272
|
+
[styles$F['has-error']]: hasError,
|
|
1273
1273
|
}), src: !hasError ? image.lg[3] : fallbackSrc, ...rest })] }));
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
|
-
var styles$
|
|
1276
|
+
var styles$E = {"product-card":"product-card-module-pLaiB","favorite-button":"product-card-module-tvEdz","content":"product-card-module-e0kMu","top":"product-card-module-Q0VvF","tag":"product-card-module-HkWBE","title":"product-card-module-CStNi","bottom":"product-card-module-kD2tU","image":"product-card-module-p-zoi","price":"product-card-module-irW0D","add-to-cart-button":"product-card-module-SnCvX"};
|
|
1277
1277
|
|
|
1278
1278
|
function ProductCard({ addToCartButton: AddToCartButton, areaSelected, favoriteButton: FavoriteButton, href, id, image, onClick, onMouseDown, onMouseMove, onPress, price, role, sku, tags, title, }) {
|
|
1279
|
-
return (jsxs(RouteLink, { "aria-selected": areaSelected, className: styles$
|
|
1279
|
+
return (jsxs(RouteLink, { "aria-selected": areaSelected, className: styles$E['product-card'], href: href, id: id, onClick: onClick, onMouseDown: onMouseDown, onMouseMove: onMouseMove, onPress: onPress, role: role, children: [jsx("div", { className: styles$E.image, children: jsx(Image, { ...image }) }), jsx("div", { className: styles$E['favorite-button'], children: FavoriteButton && FavoriteButton }), jsxs("div", { className: styles$E.content, children: [jsxs("div", { className: styles$E.top, children: [jsx("div", { className: styles$E.tag, children: tags?.map(tag => (jsx(Tag, { children: jsx(FormattedMessage, { optional: true, fallbackValue: tag, id: `tag.${tag.toLowerCase()}` }) }, tag))) }), jsx("h2", { className: styles$E.title, children: title }), jsx(ProductSku, { sku: sku })] }), jsxs("div", { className: styles$E.bottom, children: [jsx("div", { className: styles$E.price, children: jsx(ProductPrice, { isVatIncluded: price.isVatIncluded, originalPrice: price.originalPrice, price: price.price }) }), jsx("div", { className: styles$E['add-to-cart-button'], children: AddToCartButton })] })] })] }));
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
1282
|
/**
|
|
@@ -6586,7 +6586,7 @@ function GlyphsArrowBoldCapsLeftIcon(props) {
|
|
|
6586
6586
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "11", viewBox: "0 0 11 11", width: "11", children: jsx("path", { d: "M2.31124163,11 C2.06716529,11 1.91839241,10.7730596 2.04771379,10.5980857 L6.08820761,5.13116556 C6.42092595,4.68081431 6.37243043,4.10595375 5.96732409,3.70073526 L2.70240329,0.432177991 C2.53178078,0.261409485 2.67540212,0 2.93972934,0 L5.48361239,0 C5.57518542,0 5.6619622,0.0340936243 5.72102726,0.0931942463 L8.14882304,2.52367916 C9.1607451,3.53657521 9.28198389,4.9729381 8.45036569,6.09787751 L4.91836426,10.876542 C4.86160851,10.9533653 4.7620417,11 4.65492523,11 L2.31124163,11 Z", fillRule: "evenodd", transform: "matrix(-1 0 0 1 11 0)" }) }));
|
|
6587
6587
|
}
|
|
6588
6588
|
|
|
6589
|
-
var styles$
|
|
6589
|
+
var styles$D = {"carousel":"carousel-module-ealh-","swiper":"carousel-module-IftbN","has-overflow":"carousel-module-tPg7k","slide":"carousel-module-bUMlb","navigation-button":"carousel-module-kcqEE","is-locked":"carousel-module-uCrOA","navigation-button-next":"carousel-module-T7bTr","is-dragging":"carousel-module-34OWD","navigation-button-prev":"carousel-module-984Rr","navigation-buttons":"carousel-module-k7Z4S","navigation-button-wrapper":"carousel-module-Hi-0z","top":"carousel-module-nL-O8","center":"carousel-module-5SGYn"};
|
|
6590
6590
|
|
|
6591
6591
|
function CarouselNavigationButton({ direction, isDisabled = false, }) {
|
|
6592
6592
|
const swiper = useSwiper();
|
|
@@ -6598,8 +6598,8 @@ function CarouselNavigationButton({ direction, isDisabled = false, }) {
|
|
|
6598
6598
|
swiper.slidePrev();
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
|
-
return (jsx(Button$1, { className: clsx(styles$
|
|
6602
|
-
[styles$
|
|
6601
|
+
return (jsx(Button$1, { className: clsx(styles$D['navigation-button'], {
|
|
6602
|
+
[styles$D['is-locked']]: swiper.isLocked,
|
|
6603
6603
|
}), isDisabled: isDisabled, onPress: handleNavigation, children: direction === 'previous' ? (jsx(GlyphsArrowBoldCapsLeftIcon, {})) : (jsx(GlyphsArrowBoldCapsRightIcon, {})) }));
|
|
6604
6604
|
}
|
|
6605
6605
|
|
|
@@ -6614,13 +6614,13 @@ function Carousel({ breakpoints, className, hasNavigation = true, hasOverflow =
|
|
|
6614
6614
|
setIsBeginning(swiper.activeIndex === 0);
|
|
6615
6615
|
}
|
|
6616
6616
|
const showNavigation = hasNavigation && !isLocked;
|
|
6617
|
-
return (jsx("div", { className: clsx(styles$
|
|
6618
|
-
[styles$
|
|
6619
|
-
[styles$
|
|
6617
|
+
return (jsx("div", { className: clsx(styles$D.carousel, className), children: jsxs(Swiper, { breakpoints: breakpoints, className: clsx(styles$D.swiper, {
|
|
6618
|
+
[styles$D['is-dragging']]: isDragging,
|
|
6619
|
+
[styles$D['has-overflow']]: hasOverflow,
|
|
6620
6620
|
}), freeMode: {
|
|
6621
6621
|
enabled: true,
|
|
6622
6622
|
sticky: true,
|
|
6623
|
-
}, modules: [freeMode], onSlideChange: swiper => handleSlideChange(swiper), onSwiper: swiper => setIsLocked(swiper.isLocked), onTouchEnd: () => setIsDragging(false), onTouchStart: () => setIsDragging(true), onUpdate: swiper => handleSlideChange(swiper), slidesPerView: slidesPerView, spaceBetween: spaceBetween, children: [slides.map((slide, index) => (jsx(SwiperSlide, { className: clsx(styles$
|
|
6623
|
+
}, modules: [freeMode], onSlideChange: swiper => handleSlideChange(swiper), onSwiper: swiper => setIsLocked(swiper.isLocked), onTouchEnd: () => setIsDragging(false), onTouchStart: () => setIsDragging(true), onUpdate: swiper => handleSlideChange(swiper), slidesPerView: slidesPerView, spaceBetween: spaceBetween, children: [slides.map((slide, index) => (jsx(SwiperSlide, { className: clsx(styles$D.slide, slideClasses), children: slide }, index))), showNavigation && (jsxs("div", { className: clsx(styles$D['navigation-buttons'], styles$D[navigationButtonsPosition]), children: [jsx("div", { className: clsx(styles$D['navigation-button-wrapper'], styles$D['navigation-button-prev']), children: jsx(CarouselNavigationButton, { direction: "previous", isDisabled: isBeginning }) }), jsx("div", { className: clsx(styles$D['navigation-button-wrapper'], styles$D['navigation-button-next']), children: jsx(CarouselNavigationButton, { direction: "next", isDisabled: isEnd }) })] }))] }) }));
|
|
6624
6624
|
}
|
|
6625
6625
|
|
|
6626
6626
|
function CategoryCarousel({ categoryCards }) {
|
|
@@ -6634,10 +6634,10 @@ function CategoryCarousel({ categoryCards }) {
|
|
|
6634
6634
|
}, slides: categoryCards, spaceBetween: 8 }));
|
|
6635
6635
|
}
|
|
6636
6636
|
|
|
6637
|
-
var styles$
|
|
6637
|
+
var styles$C = {"accordion":"accordion-module-9WvAH","white":"accordion-module-CaVdG","accordion-item":"accordion-module-lf9d-","lg":"accordion-module-0qnae","with-seperators":"accordion-module-yOLrW","indented":"accordion-module-6CcEH","button":"accordion-module--Rwpb","icon":"accordion-module-Y50uq","focus":"accordion-module-M4BZs","panel":"accordion-module-KZjMo","content":"accordion-module-ejMH3","is-open":"accordion-module-W0F1z"};
|
|
6638
6638
|
|
|
6639
6639
|
function Accordion({ children, color = 'black', hasLineSeparator = true, indented, size = 'md', }) {
|
|
6640
|
-
return (jsx("div", { className: clsx({ [styles$
|
|
6640
|
+
return (jsx("div", { className: clsx({ [styles$C.indented]: indented }, styles$C.accordion, styles$C[color], styles$C[size], hasLineSeparator && styles$C['with-seperators']), children: children &&
|
|
6641
6641
|
Children.map(children, child => {
|
|
6642
6642
|
return cloneElement(child, { size });
|
|
6643
6643
|
}) }));
|
|
@@ -6647,7 +6647,7 @@ function GlyphsChevronsSlimDownIcon(props) {
|
|
|
6647
6647
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "12", viewBox: "0 0 12 12", width: "12", children: jsx("path", { d: "M6,9 L1,4.06645029 C1.08169007,3.87890406 1.19817561,3.69487412 1.34945663,3.51436046 C1.50073764,3.3338468 1.68216803,3.16239331 1.89374779,3 L5.98800959,7.08347812 L9.9960307,3 C10.2121071,3.16649238 10.4031847,3.33794587 10.5692635,3.51436046 C10.7353424,3.69077505 10.8789212,3.87480499 11,4.06645029 L6,9 Z", fillRule: "evenodd" }) }));
|
|
6648
6648
|
}
|
|
6649
6649
|
|
|
6650
|
-
var styles$
|
|
6650
|
+
var styles$B = {"show-all":"show-all-module-BDp21","panel":"show-all-module-bEdda","content":"show-all-module-RF--F","has-transparency":"show-all-module-30y7l","button":"show-all-module-58e7Q","icon":"show-all-module-fqncI","is-open":"show-all-module-hQeGI"};
|
|
6651
6651
|
|
|
6652
6652
|
const ShowAll = ({ children, hasTransparency = true, initialHeight = 0, isOpen, onToggle, }) => {
|
|
6653
6653
|
const showAllRef = useRef(null);
|
|
@@ -6656,14 +6656,14 @@ const ShowAll = ({ children, hasTransparency = true, initialHeight = 0, isOpen,
|
|
|
6656
6656
|
return;
|
|
6657
6657
|
showAllRef.current.style.setProperty('--initital-height', `${initialHeight}px`);
|
|
6658
6658
|
}, [initialHeight]);
|
|
6659
|
-
return (jsxs("div", { ref: showAllRef, className: clsx(styles$
|
|
6660
|
-
[styles$
|
|
6661
|
-
}), children: [jsx("div", { className: styles$
|
|
6662
|
-
[styles$
|
|
6663
|
-
}), children: children }) }), jsxs(LinkButton, { className: styles$
|
|
6659
|
+
return (jsxs("div", { ref: showAllRef, className: clsx(styles$B['show-all'], {
|
|
6660
|
+
[styles$B['is-open']]: isOpen,
|
|
6661
|
+
}), children: [jsx("div", { className: styles$B.panel, children: jsx("div", { className: clsx(styles$B.content, {
|
|
6662
|
+
[styles$B['has-transparency']]: hasTransparency,
|
|
6663
|
+
}), children: children }) }), jsxs(LinkButton, { className: styles$B.button, onPress: () => onToggle(!isOpen), children: [jsx(GlyphsChevronsSlimDownIcon, { className: styles$B.icon }), isOpen ? (jsx(FormattedMessage, { id: "Show less" })) : (jsx(FormattedMessage, { id: "Show all" }))] })] }));
|
|
6664
6664
|
};
|
|
6665
6665
|
|
|
6666
|
-
var styles$
|
|
6666
|
+
var styles$A = {"multi-select":"multi-select-module-DC7Ix","filter-items":"multi-select-module-cwVFb","hidden":"multi-select-module-o7yHU","filter-item":"multi-select-module-OW-NK"};
|
|
6667
6667
|
|
|
6668
6668
|
function MultiSelect({ amountShown = 3, onChange, options, render, }) {
|
|
6669
6669
|
const shownOptions = options.slice(0, amountShown);
|
|
@@ -6674,28 +6674,28 @@ function MultiSelect({ amountShown = 3, onChange, options, render, }) {
|
|
|
6674
6674
|
options.filter(option => option.isSelected).length === 0) {
|
|
6675
6675
|
return null;
|
|
6676
6676
|
}
|
|
6677
|
-
return (jsxs("div", { className: styles$
|
|
6677
|
+
return (jsxs("div", { className: styles$A['multi-select'], children: [jsx("div", { className: styles$A['filter-items'], children: shownOptions
|
|
6678
6678
|
.concat(isOpen ? [] : hiddenSelectedOptions)
|
|
6679
|
-
.map(option => (jsxs("div", { className: styles$
|
|
6679
|
+
.map(option => (jsxs("div", { className: styles$A['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }), hiddenOptions.length > 0 && (jsx(ShowAll, { hasTransparency: false, isOpen: isOpen, onToggle: toggle, children: jsx("div", { className: clsx(styles$A['filter-items'], styles$A['hidden']), children: hiddenOptions.map(option => (jsxs("div", { className: styles$A['filter-item'], children: [render({ onChange: () => onChange(option), option }), jsxs("span", { children: ["(", option.amount, ")"] })] }, option.value))) }) }))] }));
|
|
6680
6680
|
}
|
|
6681
6681
|
|
|
6682
|
-
var styles$
|
|
6682
|
+
var styles$z = {"checkbox":"checkbox-module-YNVdd","box":"checkbox-module-UKoyf","checkmark":"checkbox-module-pHIwh","focus":"checkbox-module-v23jy","active":"checkbox-module-7UG-b","color-checkbox":"checkbox-module-nEhvW"};
|
|
6683
6683
|
|
|
6684
6684
|
function Checkbox({ _pseudo = 'none', children, className, isDisabled, isSelected, onChange, value, }) {
|
|
6685
|
-
return (jsxs(Checkbox$1, { className: clsx(className, styles$
|
|
6685
|
+
return (jsxs(Checkbox$1, { className: clsx(className, styles$z.checkbox, styles$z[_pseudo]), isDisabled: isDisabled, isSelected: isSelected, onChange: onChange, value: value, children: [jsx("div", { className: styles$z.box, children: jsx("svg", { "aria-hidden": "true", className: styles$z.checkmark, viewBox: "0 0 18 18", children: jsx("polyline", { points: "1 9 7 14 15 4" }) }) }), children] }));
|
|
6686
6686
|
}
|
|
6687
6687
|
|
|
6688
6688
|
function ColorCheckbox({ _pseudo = 'none', children, className, color, isDisabled, isSelected, onChange, value, }) {
|
|
6689
|
-
return (jsxs(Checkbox$1, { className: clsx(className, styles$
|
|
6689
|
+
return (jsxs(Checkbox$1, { className: clsx(className, styles$z.checkbox, styles$z['color-checkbox'], styles$z[_pseudo]), isDisabled: isDisabled, isSelected: isSelected, onChange: onChange, style: {
|
|
6690
6690
|
'--selected-color': color,
|
|
6691
|
-
}, value: value, children: [jsx("div", { className: styles$
|
|
6691
|
+
}, value: value, children: [jsx("div", { className: styles$z.box }), children] }));
|
|
6692
6692
|
}
|
|
6693
6693
|
|
|
6694
6694
|
function StrokeCheckmarkIcon(props) {
|
|
6695
6695
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M10.8641425,17 C10.6636971,17 10.4855234,16.9548533 10.3296214,16.8645598 C10.1737194,16.7742664 10.0252413,16.6388262 9.88418708,16.4582393 L6.27839644,12.2189616 C6.09279881,11.9857035 6,11.744921 6,11.496614 C6,11.2332581 6.08723088,11.0094056 6.26169265,10.8250564 C6.43615442,10.6407073 6.65330364,10.5485327 6.91314031,10.5485327 C7.06904232,10.5485327 7.21195249,10.5823928 7.34187082,10.6501129 C7.47178916,10.717833 7.59985152,10.8382242 7.72605791,11.0112867 L10.8195991,14.7200903 L16.2405345,6.53047404 C16.4558278,6.17682468 16.7230883,6 17.0423163,6 C17.2873051,6 17.5081663,6.08088789 17.7048998,6.24266366 C17.9016333,6.40443943 18,6.61700527 18,6.88036117 C18,7.00075245 17.9721604,7.12302483 17.9164811,7.24717833 C17.8608018,7.37133183 17.7958426,7.48984199 17.7216036,7.6027088 L11.7884187,16.4469526 C11.5582777,16.8156509 11.2501856,17 10.8641425,17 Z", fillRule: "evenodd" }) }));
|
|
6696
6696
|
}
|
|
6697
6697
|
|
|
6698
|
-
var styles$
|
|
6698
|
+
var styles$y = {"select":"select-module-ui-Wc","sm":"select-module-44a1l","md":"select-module-QUm-8","solid":"select-module-IRd4F","button":"select-module-aMQIQ","chevron":"select-module-00uRU","focus":"select-module-XMc0P","popover":"select-module-z8cWq","listbox":"select-module-S21ba","header":"select-module-4Bm2j","item":"select-module-LgEJO","check":"select-module-lQFw3"};
|
|
6699
6699
|
|
|
6700
6700
|
function Select({ isDisabled = false, label, onChange, options, placeholder, selectedOption, showLabel = true, size = 'md', variant = 'outline', }) {
|
|
6701
6701
|
const selectRef = useRef(null);
|
|
@@ -6712,12 +6712,12 @@ function Select({ isDisabled = false, label, onChange, options, placeholder, sel
|
|
|
6712
6712
|
window.addEventListener('resize', updateWidth);
|
|
6713
6713
|
return () => window.removeEventListener('resize', updateWidth);
|
|
6714
6714
|
}, []);
|
|
6715
|
-
return (jsxs(Select$1, { ref: selectRef, "aria-label": label, className: clsx(styles$
|
|
6715
|
+
return (jsxs(Select$1, { ref: selectRef, "aria-label": label, className: clsx(styles$y.select, styles$y[size], styles$y[variant]), isDisabled: isDisabled, onSelectionChange: selected => onChange(selected), placeholder: placeholder || label, selectedKey: String(selectedOption), children: [showLabel && jsx(Label, { children: label }), jsxs(Button$1, { className: styles$y.button, children: [jsx(SelectValue, {}), jsx(GlyphsChevronsSlimDownIcon, { "aria-hidden": "true", className: styles$y.chevron })] }), jsx(Popover, { ref: ref =>
|
|
6716
6716
|
// Workaround for react/react-aria #1513
|
|
6717
|
-
ref?.addEventListener('touchend', e => e.preventDefault()), className: clsx(styles$
|
|
6717
|
+
ref?.addEventListener('touchend', e => e.preventDefault()), className: clsx(styles$y.popover, styles$y[variant]), placement: "bottom left", triggerRef: selectRef, children: jsx(ListBox, { className: styles$y.listbox, children: jsxs(Section, { children: [jsx(Header, { className: styles$y.header, children: placeholder || label }), Object.entries(options).map(([key, value]) => (jsxs(ListBoxItem, { "aria-label": value, className: styles$y.item, id: key, textValue: value, children: [selectedOption === key && (jsx("span", { slot: "description", children: jsx(StrokeCheckmarkIcon, { className: styles$y.check }) })), jsx("span", { slot: "label", children: value })] }, key)))] }) }) })] }));
|
|
6718
6718
|
}
|
|
6719
6719
|
|
|
6720
|
-
var styles$
|
|
6720
|
+
var styles$x = {"input-container":"textarea-module-C6Xr1","lg":"textarea-module-vksG-","md":"textarea-module-6JrQJ"};
|
|
6721
6721
|
|
|
6722
6722
|
/**
|
|
6723
6723
|
* This component is used to create a textarea that can grow as the user types.
|
|
@@ -6752,7 +6752,7 @@ const TextArea = forwardRef(({ autoGrow, size, ...textAreaProps }, _ref) => {
|
|
|
6752
6752
|
}
|
|
6753
6753
|
updateHeight();
|
|
6754
6754
|
}, [ref, autoGrow, updateHeight, size]);
|
|
6755
|
-
return (jsx("div", { className: styles$
|
|
6755
|
+
return (jsx("div", { className: styles$x['input-container'], children: jsx(TextArea$1, { ...textAreaProps, ref: node => {
|
|
6756
6756
|
ref.current =
|
|
6757
6757
|
node;
|
|
6758
6758
|
textAreaRef.current = node;
|
|
@@ -6763,7 +6763,7 @@ const TextArea = forwardRef(({ autoGrow, size, ...textAreaProps }, _ref) => {
|
|
|
6763
6763
|
});
|
|
6764
6764
|
TextArea.displayName = 'TextArea';
|
|
6765
6765
|
|
|
6766
|
-
var styles$
|
|
6766
|
+
var styles$w = {"field":"text-field-module-JeaK0"};
|
|
6767
6767
|
|
|
6768
6768
|
/**
|
|
6769
6769
|
* This component is used to create a text field.
|
|
@@ -6771,7 +6771,7 @@ var styles$v = {"field":"text-field-module-JeaK0"};
|
|
|
6771
6771
|
* This field can also grow when a user types in text.
|
|
6772
6772
|
*/
|
|
6773
6773
|
function TextField({ autoFocus, autoGrow, defaultValue, isDisabled, isInvalid, isMultiline, isReadOnly, isRequired, label, maxLength, name, onChange, onInput, onKeyUp, placeholder, rows, showLabel = false, size = 'lg', value, }) {
|
|
6774
|
-
return (jsxs(TextField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$
|
|
6774
|
+
return (jsxs(TextField$1, { "aria-label": label, autoFocus: autoFocus, className: clsx(styles$w.field, styles$w[size]), defaultValue: defaultValue, isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, isRequired: isRequired, maxLength: maxLength, name: name, onChange: value => {
|
|
6775
6775
|
onChange?.(value);
|
|
6776
6776
|
}, onInput: onInput, onKeyUp: e => onKeyUp?.(e), value: value, children: [showLabel && jsx(Label, { isRequired: isRequired, children: label }), isMultiline ? (jsx(TextArea, { autoGrow: autoGrow, placeholder: placeholder, rows: rows, size: size })) : (jsx(Input, { autoGrow: autoGrow, placeholder: placeholder, size: size })), jsx(FieldError, {})] }));
|
|
6777
6777
|
}
|
|
@@ -6781,31 +6781,31 @@ function IntlProvider({ children, formatMessage, languageCode: _languageCode, })
|
|
|
6781
6781
|
return (jsx(IntlContext.Provider, { value: { formatMessage, languageCode, updateLanguageCode }, children: children }));
|
|
6782
6782
|
}
|
|
6783
6783
|
|
|
6784
|
-
var styles$
|
|
6784
|
+
var styles$v = {"product-grid":"product-overview-grid-module-bzys-","grid-item":"product-overview-grid-module-MlUVA"};
|
|
6785
6785
|
|
|
6786
6786
|
function ProductOverviewGrid({ children }) {
|
|
6787
|
-
return (jsx("div", { className: styles$
|
|
6787
|
+
return (jsx("div", { className: styles$v['product-grid'], children: Children.map(children, (child, index) => (jsx("div", { className: styles$v['grid-item'], children: child }, index))) }));
|
|
6788
6788
|
}
|
|
6789
6789
|
|
|
6790
|
-
var styles$
|
|
6790
|
+
var styles$u = {"progress-circle":"progress-circle-module-4nweP","spin":"progress-circle-module-kCf7K"};
|
|
6791
6791
|
|
|
6792
6792
|
function ProgressCircle({ className }) {
|
|
6793
|
-
return (jsxs("svg", { className: clsx(styles$
|
|
6793
|
+
return (jsxs("svg", { className: clsx(styles$u['progress-circle'], className), viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", children: [jsx("title", { children: "Spinner" }), jsxs("defs", { children: [jsx("pattern", { height: "100%", id: "pattern-1", patternUnits: "objectBoundingBox", width: "100%", children: jsx("use", { xlinkHref: "#image-2" }) }), jsx("image", { height: "24", id: "image-2", width: "24", xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAAB7UlEQVRIDZ2VSaoCQQyG01rOoBtBr+YZXXsFL+BGEHcqDuCE89SPL480hdpiGYil3an/S1KDUavViq/Xq1wul8RPp5Ocz2dhPB6PiR8OB42RAHO5XE7D4zgW/PF4CM/u97tks1n1TCYjURSpB2hraALglw8BQGXOuQQSKk68y+fzL9lRBQAqAUIlVkUoxBUKBZ3sC1irbrdbUoX/PgTyAqDXmFVBBVRCFfYuGMBk67UvRCUA2FFAfgKUSiWhFTgQA9ESjLVgC7NWwEPNFYtFFUEICJnigAxCFbvd7jcAFVi/gbDoCALmOzCMAzebzUILEFculxVgOwcIDqRSqaiTBDadToMhziYDwBgNRmW0rdFoSLPZ1PeDwUDHbz+iTqejyv5VYHuekbVggavVqkLq9fq32hqnLTJxdgmijPQeYSqs1Woa3G63g8QJ1haZKMJkjDgLjLi/Nbvd7m8ARCxry9x2jyn2ej2ZTCb28+tRK/Azpy3vrN/vy2azeffq4zM9aLTFP1jPM4bDoWbPH06o6WXn9/lZgDMxGo1kuVwG/5uhlfkkTsB4PJb5fC7b7VYPH89C7P9GS5nBLYr4er2W/X6vhy4lNPXxR8BisdDWkD13Ee0KtVQAgqvVSncO2XNlc3WEWirAxLmmgf0K+ANZ6DTlvO5jwwAAAABJRU5ErkJggg==" })] }), jsx("g", { fill: "none", fillRule: "evenodd", id: "Page-1", stroke: "none", strokeWidth: "1", children: jsx("path", { d: "M12,0 C18.627417,0 24,5.372583 24,12 C24,14.7277828 23.0855773,17.3196292 21.4324752,19.4188392 C19.1717866,22.2895997 15.7255176,24 12,24 C11.2636203,24 10.6666667,23.4030463 10.6666667,22.6666667 C10.6666667,21.930287 11.2636203,21.3333333 12,21.3333333 C14.8994206,21.3333333 17.5771113,20.0043823 19.3374325,17.7690188 C20.6234737,16.1359252 21.3333333,14.1238938 21.3333333,12 C21.3333333,6.84534234 17.1546577,2.66666667 12,2.66666667 C6.84534234,2.66666667 2.66666667,6.84534234 2.66666667,12 C2.66666667,14.4546154 3.61656005,16.756214 5.28844833,18.485859 C5.80023235,19.015323 5.78589988,19.8594213 5.25643588,20.3712053 C4.72697187,20.8829893 3.88287357,20.8686569 3.37108955,20.3391928 C1.22326178,18.1171666 0,15.1531945 0,12 C0,5.372583 5.372583,0 12,0 Z", fill: "url(#pattern-1)", fillRule: "nonzero", id: "Spinner" }) })] }));
|
|
6794
6794
|
}
|
|
6795
6795
|
|
|
6796
|
-
var styles$
|
|
6796
|
+
var styles$t = {"loading-overlay":"loading-overlay-module-L67Gy"};
|
|
6797
6797
|
|
|
6798
6798
|
function LoadingOverlay() {
|
|
6799
|
-
return (jsx("div", { className: styles$
|
|
6799
|
+
return (jsx("div", { className: styles$t['loading-overlay'], children: jsx(ProgressCircle, {}) }));
|
|
6800
6800
|
}
|
|
6801
6801
|
|
|
6802
|
-
var styles$
|
|
6802
|
+
var styles$s = {"page-container":"page-container-module-PYmbC","inner-page-container":"page-container-module-uD8GF"};
|
|
6803
6803
|
|
|
6804
6804
|
function PageContainer({ children, className, }) {
|
|
6805
|
-
return (jsx("div", { className: styles$
|
|
6805
|
+
return (jsx("div", { className: styles$s['page-container'], children: jsx("div", { className: clsx(styles$s['inner-page-container'], className), children: children }) }));
|
|
6806
6806
|
}
|
|
6807
6807
|
|
|
6808
|
-
var styles$
|
|
6808
|
+
var styles$r = {"heading":"heading-module-pMC65","uppercase":"heading-module-6spgX","italic":"heading-module-XXMDM","xxl":"heading-module-Kn3ZN","xl":"heading-module--hZs-","l":"heading-module-WrJRY","m":"heading-module-hTexc","s":"heading-module-7W29m","xs":"heading-module-SgaLB","xxs":"heading-module-33en7"};
|
|
6809
6809
|
|
|
6810
6810
|
const sizeToTag = {
|
|
6811
6811
|
l: 'h3',
|
|
@@ -6818,21 +6818,21 @@ const sizeToTag = {
|
|
|
6818
6818
|
};
|
|
6819
6819
|
function Heading({ children, className, italic, size = 'xxl', tag, uppercase, }) {
|
|
6820
6820
|
return createElement$1(tag || sizeToTag[size], {
|
|
6821
|
-
className: clsx(className, styles$
|
|
6822
|
-
[styles$
|
|
6823
|
-
[styles$
|
|
6821
|
+
className: clsx(className, styles$r.heading, styles$r[size], {
|
|
6822
|
+
[styles$r.uppercase]: uppercase,
|
|
6823
|
+
[styles$r.italic]: italic,
|
|
6824
6824
|
}),
|
|
6825
6825
|
}, children);
|
|
6826
6826
|
}
|
|
6827
6827
|
|
|
6828
|
-
var styles$
|
|
6828
|
+
var styles$q = {"page":"page-module-XtZ9Y","breadcrumb":"page-module-ohh9z","title":"page-module-TEmve"};
|
|
6829
6829
|
|
|
6830
6830
|
function PageTitle({ children }) {
|
|
6831
6831
|
const { lg, xxl } = useBreakpoint();
|
|
6832
|
-
return (jsx(Heading, { italic: true, uppercase: true, className: styles$
|
|
6832
|
+
return (jsx(Heading, { italic: true, uppercase: true, className: styles$q.title, size: xxl ? 'xl' : lg ? 'm' : 's', tag: "h1", children: children }));
|
|
6833
6833
|
}
|
|
6834
6834
|
function Page({ breadCrumb, children, className, title }) {
|
|
6835
|
-
return (jsxs(PageContainer, { className: clsx(styles$
|
|
6835
|
+
return (jsxs(PageContainer, { className: clsx(styles$q.page, className), children: [jsx("div", { className: styles$q.breadcrumb, children: jsx(Breadcrumb, { links: breadCrumb }) }), title && jsx(PageTitle, { children: title }), children] }));
|
|
6836
6836
|
}
|
|
6837
6837
|
|
|
6838
6838
|
const useSidebar = () => {
|
|
@@ -6874,12 +6874,12 @@ function GlyphsChevronsBoldDownIcon(props) {
|
|
|
6874
6874
|
function AccordionItem({ _pseudo = 'none', children, className, id, initialIsOpen = false, isDisabled = false, size, title, }) {
|
|
6875
6875
|
const { isOpen, toggle } = useDisclosure(initialIsOpen);
|
|
6876
6876
|
const panelId = `panel-${id}`;
|
|
6877
|
-
return (jsxs("div", { className: clsx(className, styles$
|
|
6878
|
-
[styles$
|
|
6879
|
-
}), children: [jsx("h3", { children: jsxs("button", { "aria-controls": panelId, "aria-expanded": isOpen, className: clsx(styles$
|
|
6877
|
+
return (jsxs("div", { className: clsx(className, styles$C['accordion-item'], {
|
|
6878
|
+
[styles$C['is-open']]: isOpen,
|
|
6879
|
+
}), children: [jsx("h3", { children: jsxs("button", { "aria-controls": panelId, "aria-expanded": isOpen, className: clsx(styles$C.button, styles$C[_pseudo]), disabled: isDisabled, id: id, onClick: toggle, type: "button", children: [title, jsx("span", { className: styles$C.icon, children: size === 'lg' ? (jsx(GlyphsChevronsBoldDownIcon, {})) : (jsx(GlyphsChevronsSlimDownIcon, {})) })] }) }), jsx("div", { "aria-labelledby": id, className: styles$C.panel, id: panelId, role: "region", children: jsx("div", { className: styles$C.content, children: children }) })] }));
|
|
6880
6880
|
}
|
|
6881
6881
|
|
|
6882
|
-
var styles$
|
|
6882
|
+
var styles$p = {"filter-section":"filter-section-module-q1Ob8","default":"filter-section-module-JkP09","with-action":"filter-section-module-9qc6L","header":"filter-section-module-zi2ZE","title":"filter-section-module-hWVv-","content":"filter-section-module-15-YW"};
|
|
6883
6883
|
|
|
6884
6884
|
function FilterSection({ ...props }) {
|
|
6885
6885
|
const variant = props.variant;
|
|
@@ -6897,16 +6897,16 @@ function FilterSection({ ...props }) {
|
|
|
6897
6897
|
/* eslint-enable @typescript-eslint/no-unnecessary-condition */
|
|
6898
6898
|
}
|
|
6899
6899
|
function CollapsibleFilterSection({ children, initialIsOpen = true, title, variant, }) {
|
|
6900
|
-
return (jsx("section", { className: clsx(styles$
|
|
6900
|
+
return (jsx("section", { className: clsx(styles$p['filter-section'], styles$p[variant]), children: jsx(Accordion, { children: jsx(AccordionItem, { id: title, initialIsOpen: initialIsOpen, title: jsx("span", { className: styles$p['accordion-title'], children: jsx(FormattedMessage, { optional: true, fallbackValue: title, id: `facet.${title.toLowerCase()}` }) }), children: children }) }) }));
|
|
6901
6901
|
}
|
|
6902
6902
|
function WithActionFilterSection({ button, children, title, variant, }) {
|
|
6903
|
-
return (jsxs("section", { className: clsx(styles$
|
|
6903
|
+
return (jsxs("section", { className: clsx(styles$p['filter-section'], styles$p[variant]), children: [jsxs("div", { className: styles$p.header, children: [jsx("h3", { className: styles$p.title, children: title }), jsx("div", { children: button })] }), jsx("div", { className: styles$p.content, children: children })] }));
|
|
6904
6904
|
}
|
|
6905
6905
|
function DefaultFilterSection({ children, title, variant, }) {
|
|
6906
|
-
return (jsxs("section", { className: clsx(styles$
|
|
6906
|
+
return (jsxs("section", { className: clsx(styles$p['filter-section'], styles$p[variant]), children: [jsx("h3", { className: styles$p.title, children: title }), jsx("div", { className: styles$p.content, children: children })] }));
|
|
6907
6907
|
}
|
|
6908
6908
|
|
|
6909
|
-
var styles$
|
|
6909
|
+
var styles$o = {"filter-panel":"algolia-filter-panel-module-GfhOO","scroll-container":"algolia-filter-panel-module-4ubB1","category":"algolia-filter-panel-module-LKet3","is-active":"algolia-filter-panel-module-yf8kI","count":"algolia-filter-panel-module-uAHPx","button":"algolia-filter-panel-module-ABOYv"};
|
|
6910
6910
|
|
|
6911
6911
|
function AlgoliaActiveCategories() {
|
|
6912
6912
|
const { items: categories } = useHierarchicalMenu({
|
|
@@ -6927,8 +6927,8 @@ function Categories({ categories, path: _path, }) {
|
|
|
6927
6927
|
.map(category => {
|
|
6928
6928
|
const path = _path + '/' + category.label;
|
|
6929
6929
|
const isActive = !category.data || !category.data.some(c => c.isRefined);
|
|
6930
|
-
return (jsxs(Fragment, { children: [jsx(RouteLink, { className: clsx(styles$
|
|
6931
|
-
[styles$
|
|
6930
|
+
return (jsxs(Fragment, { children: [jsx(RouteLink, { className: clsx(styles$o.category, {
|
|
6931
|
+
[styles$o['is-active']]: isActive,
|
|
6932
6932
|
}), href: path, isDisabled: isActive, children: category.label }), category.data && (jsx(Categories, { categories: category.data, path: path }))] }, category.value));
|
|
6933
6933
|
});
|
|
6934
6934
|
}
|
|
@@ -6937,12 +6937,12 @@ function StrokeCloseboxIcon(props) {
|
|
|
6937
6937
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, height: "24", viewBox: "0 0 24 24", width: "24", children: jsx("path", { d: "M8,8 L16,16 M16,8 L8,16", fill: "currentColor", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.4" }) }));
|
|
6938
6938
|
}
|
|
6939
6939
|
|
|
6940
|
-
var styles$
|
|
6940
|
+
var styles$n = {"active-filter-item":"active-filters-module-Rrmhy","category":"active-filters-module-u9TTE","active-filter-value":"active-filters-module-CIuPU"};
|
|
6941
6941
|
|
|
6942
6942
|
const ActiveFilters = ({ onClearAllFilters, onClearFilter, selectedFilterCategories, }) => {
|
|
6943
6943
|
if (selectedFilterCategories.length === 0)
|
|
6944
6944
|
return null;
|
|
6945
|
-
return (jsx(FilterSection, { button: jsx(LinkButton, { onPress: onClearAllFilters, children: jsx(FormattedMessage, { id: "Clear filters" }) }), title: "Chosen filters", variant: "with-action", children: selectedFilterCategories.map((category, index) => (jsx("section", { className: styles$
|
|
6945
|
+
return (jsx(FilterSection, { button: jsx(LinkButton, { onPress: onClearAllFilters, children: jsx(FormattedMessage, { id: "Clear filters" }) }), title: "Chosen filters", variant: "with-action", children: selectedFilterCategories.map((category, index) => (jsx("section", { className: styles$n.category, children: category.filters.map(filter => (jsxs("div", { className: styles$n['active-filter-item'], children: [jsxs("span", { children: [jsxs("span", { children: [category.label, ": "] }), jsx("span", { className: styles$n['active-filter-value'], children: filter.label })] }), jsx(IconButton, { color: "secondary", onPress: () => onClearFilter(category.label, filter), children: jsx(StrokeCloseboxIcon, {}) })] }, `${category.label}-${filter.value}`))) }, `${category.label}-${index}`))) }));
|
|
6946
6946
|
};
|
|
6947
6947
|
|
|
6948
6948
|
function AlgoliaActiveFilters() {
|
|
@@ -6981,9 +6981,9 @@ function AlgoliaCategoriesFilters() {
|
|
|
6981
6981
|
const t = useFormattedMessage();
|
|
6982
6982
|
if (categories.length <= 0)
|
|
6983
6983
|
return null;
|
|
6984
|
-
return (jsx(FilterSection, { title: t('facet.categories'), variant: "default", children: categories.map(({ count, isRefined, value }) => (jsxs("button", { className: clsx(styles$
|
|
6985
|
-
[styles$
|
|
6986
|
-
}), onClick: () => refine(value), type: "button", children: [jsx("span", { children: value }), " ", jsxs("span", { className: styles$
|
|
6984
|
+
return (jsx(FilterSection, { title: t('facet.categories'), variant: "default", children: categories.map(({ count, isRefined, value }) => (jsxs("button", { className: clsx(styles$o.category, {
|
|
6985
|
+
[styles$o['is-active']]: isRefined,
|
|
6986
|
+
}), onClick: () => refine(value), type: "button", children: [jsx("span", { children: value }), " ", jsxs("span", { className: styles$o.count, children: ["(", count, ")"] })] }, value))) }));
|
|
6987
6987
|
}
|
|
6988
6988
|
|
|
6989
6989
|
function AlgoliaMultiSelectFilterSection({ attribute, }) {
|
|
@@ -7015,23 +7015,23 @@ function AlgoliaResultsCount() {
|
|
|
7015
7015
|
|
|
7016
7016
|
function PanelCloseButton() {
|
|
7017
7017
|
const { toggle } = useSidebarActions();
|
|
7018
|
-
return (jsx("div", { className: styles$
|
|
7018
|
+
return (jsx("div", { className: styles$o.button, children: jsxs(Button, { withArrow: true, onPress: toggle, size: "md", children: [jsx(FormattedMessage, { id: "Show" }), " ", jsx(AlgoliaResultsCount, {})] }) }));
|
|
7019
7019
|
}
|
|
7020
7020
|
function AlgoliaFilterPanel({ showActiveCategories = false, showCategoriesFilters = false, }) {
|
|
7021
7021
|
const { attributesToRender } = useDynamicWidgets({
|
|
7022
7022
|
maxValuesPerFacet: 100,
|
|
7023
7023
|
});
|
|
7024
|
-
return (jsx("div", { className: styles$
|
|
7024
|
+
return (jsx("div", { className: styles$o['filter-panel'], children: jsxs("div", { className: styles$o['scroll-container'], children: [showActiveCategories && jsx(AlgoliaActiveCategories, {}), showCategoriesFilters && jsx(AlgoliaCategoriesFilters, {}), jsx(AlgoliaActiveFilters, {}), attributesToRender.length > 0 && (jsx("section", { children: attributesToRender.map((attribute, index) => (jsx(AlgoliaMultiSelectFilterSection, { attribute: attribute }, `attribute-${index}`))) })), jsx(PanelCloseButton, {})] }) }));
|
|
7025
7025
|
}
|
|
7026
7026
|
|
|
7027
7027
|
function GlyphsChevronsSlimRightIcon(props) {
|
|
7028
7028
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", ...props, fill: "currentColor", height: "12", viewBox: "0 0 12 12", width: "12", children: jsx("path", { d: "M9,6 L4.06645029,1 C3.87890406,1.08169007 3.69487412,1.19817561 3.51436046,1.34945663 C3.3338468,1.50073764 3.16239331,1.68216803 3,1.89374779 L7.08347812,5.98800959 L3,9.9960307 C3.16649238,10.2121071 3.33794587,10.4031847 3.51436046,10.5692635 C3.69077505,10.7353424 3.87480499,10.8789212 4.06645029,11 L9,6 Z", fillRule: "evenodd" }) }));
|
|
7029
7029
|
}
|
|
7030
7030
|
|
|
7031
|
-
var styles$
|
|
7031
|
+
var styles$m = {"pagination":"pagination-module-k4OgY","page-number-container":"pagination-module-oq89A"};
|
|
7032
7032
|
|
|
7033
7033
|
function Pagination({ currentPage, onChange, totalPages, }) {
|
|
7034
|
-
return (jsxs("div", { className: styles$
|
|
7034
|
+
return (jsxs("div", { className: styles$m.pagination, children: [jsx(IconButton, { isDisabled: currentPage === 1, onPress: () => onChange(currentPage - 1), children: jsx(GlyphsChevronsSlimLeftIcon, {}) }), jsxs("div", { className: styles$m['page-number-container'], children: [jsx(NumberField, { autoGrow: true, label: "current-page", maxValue: totalPages, minValue: 1, onChange: onChange, value: currentPage }), jsx(FormattedMessage, { id: "of" }), jsx("div", { children: totalPages })] }), jsx(IconButton, { isDisabled: currentPage >= totalPages, onPress: () => onChange(currentPage + 1), children: jsx(GlyphsChevronsSlimRightIcon, {}) })] }));
|
|
7035
7035
|
}
|
|
7036
7036
|
|
|
7037
7037
|
function AlgoliaPagination({ onChange }) {
|
|
@@ -7192,19 +7192,19 @@ function useAlgoliaInsights() {
|
|
|
7192
7192
|
sendEvents: Parameters<ReturnType<typeof makeSendEvents>>;
|
|
7193
7193
|
*/
|
|
7194
7194
|
|
|
7195
|
-
var styles$
|
|
7195
|
+
var styles$l = {"modal-overlay":"modal-module-rVFJc","modal-fade":"modal-module-63Uyl","modal":"modal-module-6vlFt","modal-zoom":"modal-module-aPJ7X"};
|
|
7196
7196
|
|
|
7197
7197
|
function Modal({ children, className, isDismissable, isKeyboardDismissDisabled, isOpen, onOpenChange, }) {
|
|
7198
|
-
return (jsx(ModalOverlay, { className: clsx(styles$
|
|
7198
|
+
return (jsx(ModalOverlay, { className: clsx(styles$l['modal-overlay'], className), isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, onOpenChange: onOpenChange, children: jsx(Modal$1, { className: styles$l.modal, children: children }) }));
|
|
7199
7199
|
}
|
|
7200
7200
|
|
|
7201
|
-
var styles$
|
|
7201
|
+
var styles$k = {"header":"dialog-module-ZnsAe","heading":"dialog-module-SwpuZ","close":"dialog-module-Y7Tqg","content":"dialog-module-Koqia","footer":"dialog-module-y7Axm"};
|
|
7202
7202
|
|
|
7203
7203
|
function Footer({ close }) {
|
|
7204
7204
|
return (jsx(Button, { onPress: close, size: "md", children: "Close" }));
|
|
7205
7205
|
}
|
|
7206
7206
|
function Dialog({ allowClose = true, children, className, footer = Footer, hideTitle, isDismissable, isKeyboardDismissDisabled, isOpen, onOpenChange, onSubmit, title, validationErrors, }) {
|
|
7207
|
-
return (jsx(Modal, { className: clsx(styles$
|
|
7207
|
+
return (jsx(Modal, { className: clsx(styles$k['modal-overlay'], className), isDismissable: isDismissable, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, onOpenChange: onOpenChange, children: jsx(Dialog$1, { "aria-label": title, children: ({ close }) => (jsxs(Form, { onSubmit: onSubmit || (e => e.preventDefault), validationErrors: validationErrors, children: [jsxs("header", { className: styles$k.header, children: [!hideTitle && (jsx(Heading, { className: styles$k.heading, size: "xs", children: title })), jsx("div", { className: styles$k.close, children: jsx(IconButton, { color: "secondary", isDisabled: !allowClose, onPress: close, children: jsx(StrokeCloseboxIcon, {}) }) })] }), jsx("div", { className: styles$k.content, children: children instanceof Function ? children({ close }) : children }), jsx("footer", { className: styles$k.footer, children: footer instanceof Function ? footer({ close }) : footer })] })) }) }));
|
|
7208
7208
|
}
|
|
7209
7209
|
|
|
7210
7210
|
class WishListNameAlreadyExistsError extends Error {
|
|
@@ -7255,7 +7255,7 @@ function useFetchWishLists() {
|
|
|
7255
7255
|
});
|
|
7256
7256
|
}
|
|
7257
7257
|
|
|
7258
|
-
var styles$
|
|
7258
|
+
var styles$j = {"content":"add-to-favorite-dialog-module-WJYMb","footer-button-panel":"add-to-favorite-dialog-module--0-Ln","loading-panel":"add-to-favorite-dialog-module-ZAuzE"};
|
|
7259
7259
|
|
|
7260
7260
|
function InnerAddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
7261
7261
|
const t = useFormattedMessage();
|
|
@@ -7271,7 +7271,7 @@ function InnerAddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
|
7271
7271
|
onSubmit(newWishListId);
|
|
7272
7272
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7273
7273
|
}, [isSuccess]);
|
|
7274
|
-
const wishListOptions = wishLists?.wishListCollection?.reduce((options, list) => ({ ...options, [list.id]: list.name }), { new: 'Create new list' }) || { new: 'Create new list' };
|
|
7274
|
+
const wishListOptions = wishLists?.wishListCollection?.reduce((options, list) => ({ ...options, [list.id]: list.name }), { new: t('Create new list') }) || { new: t('Create new list') };
|
|
7275
7275
|
const allowSubmit = Boolean(!isLoading && (isCreatingNewList ? newWishListName : selectedWishListid));
|
|
7276
7276
|
const allowCancel = !isLoading;
|
|
7277
7277
|
function handleOnSubmit() {
|
|
@@ -7280,17 +7280,17 @@ function InnerAddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
|
7280
7280
|
}
|
|
7281
7281
|
selectedWishListid && onSubmit(selectedWishListid);
|
|
7282
7282
|
}
|
|
7283
|
-
return (jsx(Dialog, { allowClose: !isLoading, footer: jsxs("div", { className: styles$
|
|
7283
|
+
return (jsx(Dialog, { allowClose: !isLoading, footer: jsxs("div", { className: styles$j['footer-button-panel'], children: [jsx(Button, { isDisabled: !allowSubmit, onPress: handleOnSubmit, type: "submit", children: t('Submit') }), jsx(Button, { color: "secondary", isDisabled: !allowCancel, onPress: onCancel, variant: "outline", children: t('Cancel') })] }), isDismissable: true, isKeyboardDismissDisabled: false, isOpen: isOpen, onOpenChange: onCancel, onSubmit: handleOnSubmit, title: t('Add to list'), validationErrors: addWishListError
|
|
7284
7284
|
? {
|
|
7285
7285
|
wishListName: addWishListError instanceof WishListNameAlreadyExistsError
|
|
7286
7286
|
? t('List name already exists')
|
|
7287
7287
|
: t('An unexpected error occured'),
|
|
7288
7288
|
}
|
|
7289
|
-
: undefined, children: isFetching ? (jsxs("div", { className: styles$
|
|
7289
|
+
: undefined, children: isFetching ? (jsxs("div", { className: styles$j['loading-panel'], children: [jsx("p", { children: "Loading..." }), jsx(ProgressCircle, {})] })) : fetchWishListError ? (jsx("div", { children: t('An unexpected error occured') })) : (jsxs("div", { className: styles$j.content, children: [jsx(Select, { isDisabled: isLoading, label: t('Select a list'), onChange: wishListId => {
|
|
7290
7290
|
const isCreateNewList = wishListId === 'new';
|
|
7291
7291
|
setIsCreatingNewList(isCreateNewList);
|
|
7292
7292
|
setSelectedWishListId(isCreateNewList ? undefined : wishListId);
|
|
7293
|
-
}, options: wishListOptions, selectedOption: selectedWishListid, variant: "solid" }), isCreatingNewList && (jsx(TextField, { autoFocus: true, isRequired: true, showLabel: true, isDisabled: isLoading, label: t('New list name'), maxLength: 100, name: "wishListName", onChange: setNewWishListName, placeholder:
|
|
7293
|
+
}, options: wishListOptions, selectedOption: selectedWishListid, variant: "solid" }), isCreatingNewList && (jsx(TextField, { autoFocus: true, isRequired: true, showLabel: true, isDisabled: isLoading, label: t('New list name'), maxLength: 100, name: "wishListName", onChange: setNewWishListName, placeholder: t('New list name'), value: newWishListName }))] })) }));
|
|
7294
7294
|
}
|
|
7295
7295
|
function AddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
7296
7296
|
/* The inner component is explicitly unmounted to
|
|
@@ -7304,7 +7304,7 @@ function AddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
|
7304
7304
|
function SignInDialog({ isOpen, onOpenChange }) {
|
|
7305
7305
|
const t = useFormattedMessage();
|
|
7306
7306
|
const { signInUrl } = useFavorite();
|
|
7307
|
-
return (jsxs(Dialog, { isDismissable: true, isOpen: isOpen, onOpenChange: onOpenChange, title: t('Please Sign In'), children: [
|
|
7307
|
+
return (jsxs(Dialog, { isDismissable: true, isOpen: isOpen, onOpenChange: onOpenChange, title: t('Please Sign In'), children: [t('You must '), jsx(LinkButton, { href: `${signInUrl}?returnUrl=${encodeURIComponent(window.location.pathname + window.location.search)}`, onPress: () => onOpenChange(false), type: "link", children: t('sign in') }), t(' to your account to manage your lists.')] }));
|
|
7308
7308
|
}
|
|
7309
7309
|
|
|
7310
7310
|
function useAddWishListItemToWishList() {
|
|
@@ -7610,12 +7610,12 @@ function AlgoliaSortBy() {
|
|
|
7610
7610
|
return (jsx(Select, { label: t('Sort by'), onChange: value => refine(String(value)), options: options, selectedOption: currentRefinement, showLabel: false, size: "sm" }));
|
|
7611
7611
|
}
|
|
7612
7612
|
|
|
7613
|
-
var styles$
|
|
7613
|
+
var styles$i = {"category-card":"category-card-module-4NUjH","title":"category-card-module-LEhh3","arrow":"category-card-module-hL4-A","is-selected":"category-card-module-vJ7vB","image-container":"category-card-module-oNTrK"};
|
|
7614
7614
|
|
|
7615
7615
|
function CategoryCard({ href, image, isSelected = false, title, withArrow = false, }) {
|
|
7616
7616
|
return (jsxs(RouteLink, { className: clsx({
|
|
7617
|
-
[styles$
|
|
7618
|
-
}, styles$
|
|
7617
|
+
[styles$i['is-selected']]: isSelected,
|
|
7618
|
+
}, styles$i['category-card']), href: href, children: [jsx("div", { className: styles$i['image-container'], children: jsx(Image, { ...image, fit: "contain" }) }), jsxs("p", { className: styles$i.title, children: [jsx("span", { children: title }), withArrow && jsx(GlyphsArrowBoldCapsRightIcon, { className: styles$i.arrow })] })] }));
|
|
7619
7619
|
}
|
|
7620
7620
|
|
|
7621
7621
|
const ProductListingPageContext = createContext({
|
|
@@ -7644,20 +7644,20 @@ function ConnectedCategoryCarousel() {
|
|
|
7644
7644
|
}, title: category.title }, index))) }));
|
|
7645
7645
|
}
|
|
7646
7646
|
|
|
7647
|
-
var styles$
|
|
7647
|
+
var styles$h = {"promo-card":"promo-card-module-e2oii","sm":"promo-card-module-1-jT0","lg":"promo-card-module-zIYDh"};
|
|
7648
7648
|
|
|
7649
7649
|
function PromoCard({ href, image, variant }) {
|
|
7650
|
-
return (jsx(RouteLink, { className: clsx(styles$
|
|
7650
|
+
return (jsx(RouteLink, { className: clsx(styles$h['promo-card'], styles$h[variant]), href: href, children: jsx(Image, { fit: "cover", image: image, title: image.altText }) }));
|
|
7651
7651
|
}
|
|
7652
7652
|
|
|
7653
|
-
var styles$
|
|
7653
|
+
var styles$g = {"promos":"promo-cards-module-Dy4p3"};
|
|
7654
7654
|
|
|
7655
7655
|
function PromoCards({ promoCardsData = [], }) {
|
|
7656
7656
|
const { lg } = useBreakpoint();
|
|
7657
7657
|
const promoCards = promoCardsData.map((promoCard, index) => (jsx(PromoCard, { href: promoCard.href, image: promoCard.image, variant: index % 2 === 0 ? 'lg' : 'sm' }, `promo-card-${index}`)));
|
|
7658
7658
|
if (promoCardsData.length === 0)
|
|
7659
7659
|
return null;
|
|
7660
|
-
return (jsx("div", { className: styles$
|
|
7660
|
+
return (jsx("div", { className: styles$g.promos, children: lg ? (jsx(Fragment, { children: promoCards })) : (jsx(Carousel, { hasNavigation: false, hasOverflow: false, slides: promoCards, spaceBetween: 16 })) }));
|
|
7661
7661
|
}
|
|
7662
7662
|
|
|
7663
7663
|
const scrollToTop = (scrollOptions) => {
|
|
@@ -7667,17 +7667,17 @@ const scrollToTop = (scrollOptions) => {
|
|
|
7667
7667
|
});
|
|
7668
7668
|
};
|
|
7669
7669
|
|
|
7670
|
-
var styles$
|
|
7670
|
+
var styles$f = {"sidebar":"sidebar-module-fSa9Q","is-docked":"sidebar-module-AIq0M","transition":"sidebar-module-LEZgg","is-open":"sidebar-module-lV7wp","is-closed":"sidebar-module-dGDrr","close":"sidebar-module-2puGC","is-not-docked":"sidebar-module-Scw7D"};
|
|
7671
7671
|
|
|
7672
7672
|
function InnerSidebar({ children }) {
|
|
7673
7673
|
const { isDocked, isOpen, toggle, transition } = useSidebar();
|
|
7674
|
-
return (jsxs("aside", { className: clsx(styles$
|
|
7675
|
-
[styles$
|
|
7676
|
-
[styles$
|
|
7677
|
-
[styles$
|
|
7678
|
-
[styles$
|
|
7679
|
-
[styles$
|
|
7680
|
-
}), children: [jsx("div", { className: styles$
|
|
7674
|
+
return (jsxs("aside", { className: clsx(styles$f.sidebar, {
|
|
7675
|
+
[styles$f['transition']]: transition,
|
|
7676
|
+
[styles$f['is-open']]: isOpen,
|
|
7677
|
+
[styles$f['is-closed']]: !isOpen,
|
|
7678
|
+
[styles$f['is-docked']]: isDocked,
|
|
7679
|
+
[styles$f['is-not-docked']]: !isDocked,
|
|
7680
|
+
}), children: [jsx("div", { className: styles$f.close, children: jsx(IconButton, { color: "secondary", onPress: toggle, children: jsx(StrokeCloseboxIcon, {}) }) }), children] }));
|
|
7681
7681
|
}
|
|
7682
7682
|
function Sidebar({ children }) {
|
|
7683
7683
|
return jsx(InnerSidebar, { children: children });
|
|
@@ -7692,7 +7692,7 @@ const ToggleSidebarButton = () => {
|
|
|
7692
7692
|
return (jsx(Button, { color: "secondary", icon: jsx(StrokeFilterIcon, {}), onPress: toggle, size: "sm", variant: "outline", children: isOpen ? (jsx(FormattedMessage, { id: "Hide filters" })) : (jsx(FormattedMessage, { id: "Show filters" })) }));
|
|
7693
7693
|
};
|
|
7694
7694
|
|
|
7695
|
-
var styles$
|
|
7695
|
+
var styles$e = {"product-listing":"product-listing-page-module-dmIHF","header":"product-listing-page-module-Oz76Z","promos":"product-listing-page-module-iY1yj","action-bar":"product-listing-page-module-XxGrr","sidebar-toggle":"product-listing-page-module-F7bxy","sort":"product-listing-page-module-aQzHr","count":"product-listing-page-module-zx79v","categories":"product-listing-page-module-R4aOl","product-grid-container":"product-listing-page-module-ICkKg","product-grid":"product-listing-page-module-LHE7z","pagination":"product-listing-page-module-xsRaj"};
|
|
7696
7696
|
|
|
7697
7697
|
function ProductListingPage({ pageUrl, searchClient: _searchClient, }) {
|
|
7698
7698
|
const languageCode = useLanguageCode();
|
|
@@ -7717,10 +7717,27 @@ function ProductListingPage({ pageUrl, searchClient: _searchClient, }) {
|
|
|
7717
7717
|
return jsx(LoadingOverlay, {});
|
|
7718
7718
|
}
|
|
7719
7719
|
const category = data.breadCrumb.slice(1).map(breadCrumb => breadCrumb.label);
|
|
7720
|
-
return (jsx(ProductListingPageProvider, { data: data, error: error, isError: isError, isLoading: isFetching, children: jsx(AlgoliaProvider, { categoryPages: data.categoryPages, languageCode: languageCode, offlineSearchClient: offlineSearchClient, searchClient: searchClient, children: jsx(Page, { breadCrumb: data.breadCrumb, className: styles$
|
|
7720
|
+
return (jsx(ProductListingPageProvider, { data: data, error: error, isError: isError, isLoading: isFetching, children: jsx(AlgoliaProvider, { categoryPages: data.categoryPages, languageCode: languageCode, offlineSearchClient: offlineSearchClient, searchClient: searchClient, children: jsx(Page, { breadCrumb: data.breadCrumb, className: styles$e['product-listing'], title: category.slice().pop(), children: jsx(ProductListingPageContent, { promoCards: data.promoCards?.top }) }) }) }));
|
|
7721
7721
|
}
|
|
7722
7722
|
function ProductListingPageContent({ promoCards, }) {
|
|
7723
|
-
return (jsxs(Fragment, { children: [promoCards?.length && (jsx("section", { className: styles$
|
|
7723
|
+
return (jsxs(Fragment, { children: [promoCards?.length && (jsx("section", { className: styles$e.promos, children: jsx(PromoCards, { promoCardsData: promoCards }) })), jsx("section", { className: styles$e.categories, children: jsx(ConnectedCategoryCarousel, {}) }), jsxs("section", { className: styles$e['action-bar'], children: [jsx("div", { className: styles$e['sidebar-toggle'], children: jsx(ToggleSidebarButton, {}) }), jsx("span", { className: styles$e.count, children: jsx(AlgoliaResultsCount, {}) }), jsx("div", { className: styles$e.sort, children: jsx(AlgoliaSortBy, {}) })] }), jsx("section", { children: jsxs("div", { className: styles$e['product-grid-container'], children: [jsx(Sidebar, { children: jsx(AlgoliaFilterPanel, { showActiveCategories: true }) }), jsxs("div", { className: styles$e['product-grid'], children: [jsx(ProductOverview, {}), jsx("div", { className: styles$e.pagination, children: jsx(AlgoliaPagination, { onChange: () => scrollToTop() }) })] })] }) })] }));
|
|
7724
|
+
}
|
|
7725
|
+
|
|
7726
|
+
var styles$d = {"search-results":"search-results-page-module-M7SIu","header":"search-results-page-module-DpNT-","action-bar":"search-results-page-module-RJoMk","sidebar-toggle":"search-results-page-module-SzLQb","sort":"search-results-page-module-cgonp","count":"search-results-page-module-hunZp","categories":"search-results-page-module-n2lSj","product-grid-container":"search-results-page-module-TK-iE","product-grid":"search-results-page-module-HWUnk","pagination":"search-results-page-module-SZYiA"};
|
|
7727
|
+
|
|
7728
|
+
function SearchResultsPage({ location, searchClient, }) {
|
|
7729
|
+
const languageCode = useLanguageCode();
|
|
7730
|
+
const t = useFormattedMessage();
|
|
7731
|
+
const keywords = qs.parse(location.search).keyword;
|
|
7732
|
+
const keyword = Array.isArray(keywords) ? keywords.join(' ') : keywords;
|
|
7733
|
+
if (!keyword)
|
|
7734
|
+
return jsx("h1", { children: "No search results...." });
|
|
7735
|
+
return (jsx(AlgoliaProvider, { languageCode: languageCode, query: keyword, searchClient: searchClient, children: jsx(Page, { breadCrumb: [], className: styles$d['search-results'], title: t("'{0}' in all products", {
|
|
7736
|
+
replacementValues: { 0: keyword },
|
|
7737
|
+
}), children: jsx(SearchResultsPageContent, {}) }) }));
|
|
7738
|
+
}
|
|
7739
|
+
function SearchResultsPageContent() {
|
|
7740
|
+
return (jsxs(Fragment, { children: [jsxs("section", { className: styles$d['action-bar'], children: [jsx("div", { className: styles$d['sidebar-toggle'], children: jsx(ToggleSidebarButton, {}) }), jsx("span", { className: styles$d.count, children: jsx(AlgoliaResultsCount, {}) }), jsx("div", { className: styles$d.sort, children: jsx(AlgoliaSortBy, {}) })] }), jsx("section", { children: jsxs("div", { className: styles$d['product-grid-container'], children: [jsx(Sidebar, { children: jsx(AlgoliaFilterPanel, { showCategoriesFilters: true }) }), jsxs("div", { className: styles$d['product-grid'], children: [jsx(ProductOverview, {}), jsx("div", { className: styles$d.pagination, children: jsx(AlgoliaPagination, { onChange: () => scrollToTop() }) })] })] }) })] }));
|
|
7724
7741
|
}
|
|
7725
7742
|
|
|
7726
7743
|
var styles$c = {"overlay-background":"overlay-background-module-j7R7T","open":"overlay-background-module-DZWsP","close":"overlay-background-module-8pcWN"};
|
|
@@ -8393,4 +8410,4 @@ function GlobalSearch({ children, searchClient }) {
|
|
|
8393
8410
|
return (jsx(GlobalSearchContainer, { children: jsx(AlgoliaSearchProvider, { searchClient: searchClient, children: jsxs("div", { className: styles$a['search-wrapper'], children: [children, jsx("div", { className: styles$a['search-root'], children: jsx(SearchRoot, {}) })] }) }) }));
|
|
8394
8411
|
}
|
|
8395
8412
|
|
|
8396
|
-
export { Accordion, AddToCartButton, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, AlgoliaInsightInstantSearchProvider, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, AvailabilityMessageType, BadgeImagePlacementValues, BadgeStyleValues, BadgeTypeValues, Breadcrumb, Button, CartProvider, CategoryCarousel, Checkbox, ColorCheckbox, ConnectedAddToCartButton, CurrencyPositioningType, FavoriteButton, FavoriteProvider, FilterSection, FormattedMessage, GlobalSearch, GlobalSearchContainer, GlobalSearchDisclosureContext, GlobalStateProvider, GlobalStateProviderContext, IconButton, Image, IntlProvider, LinkButton, LoadingOverlay, MultiSelect, NumberField, Page, PageContainer, ProductCard, ProductListingPage, ProductOverviewGrid, ProductPrice, ProductSku, ProgressCircle, RouteButton, RouteLink, RouteProvider, Select, ShowAll, Sidebar, SidebarDetectBreakpoint, SidebarProvider, TextField, VariantDisplayTypeValues, config, configPerEnvironment, createSonicSearchClient, transformAlgoliaProductHitToProductHit, useAddProductToCurrentCart, useAlgolia, useAlgoliaSearch, useBreakpoint, useCartEvents, useDebouncedCallback, useDeleteCartLineById, useDisclosure, useFavorite, useFavoriteProduct, useFetchCurrentCartLines, useFetchProductListingPageData, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useNavigate, useScrollLock, useUpdateCartLineById, userToken, userTokenEventEmitter };
|
|
8413
|
+
export { Accordion, AddToCartButton, AlgoliaActiveCategories, AlgoliaCategoriesFilters, AlgoliaFilterPanel, AlgoliaInsightInstantSearchProvider, AlgoliaInsightsProvider, AlgoliaInsightsProviderContext, AlgoliaMultiSelectFilterSection, AlgoliaPagination, AlgoliaProvider, AlgoliaResultsCount, AlgoliaSortBy, AvailabilityMessageType, BadgeImagePlacementValues, BadgeStyleValues, BadgeTypeValues, Breadcrumb, Button, CartProvider, CategoryCarousel, Checkbox, ColorCheckbox, ConnectedAddToCartButton, CurrencyPositioningType, FavoriteButton, FavoriteProvider, FilterSection, FormattedMessage, GlobalSearch, GlobalSearchContainer, GlobalSearchDisclosureContext, GlobalStateProvider, GlobalStateProviderContext, IconButton, Image, IntlProvider, LinkButton, LoadingOverlay, MultiSelect, NumberField, Page, PageContainer, ProductCard, ProductListingPage, ProductOverviewGrid, ProductPrice, ProductSku, ProgressCircle, RouteButton, RouteLink, RouteProvider, SearchResultsPage, Select, ShowAll, Sidebar, SidebarDetectBreakpoint, SidebarProvider, TextField, VariantDisplayTypeValues, config, configPerEnvironment, createSonicSearchClient, transformAlgoliaProductHitToProductHit, useAddProductToCurrentCart, useAlgolia, useAlgoliaSearch, useBreakpoint, useCartEvents, useDebouncedCallback, useDeleteCartLineById, useDisclosure, useFavorite, useFavoriteProduct, useFetchCurrentCartLines, useFetchProductListingPageData, useFormattedMessage, useGlobalSearchDisclosure, useGlobalState, useNavigate, useScrollLock, useUpdateCartLineById, userToken, userTokenEventEmitter };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './media/image/image';
|
|
|
48
48
|
export * from './pages/page-container/page-container';
|
|
49
49
|
export * from './pages/page/page';
|
|
50
50
|
export * from './pages/product-listing-page/product-listing-page';
|
|
51
|
+
export * from './pages/search-result-page/search-results-page';
|
|
51
52
|
export * from './sidebar/sidebar';
|
|
52
53
|
export * from './sidebar/sidebar-provider';
|
|
53
54
|
export * from './algolia/algolia-intialization';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TranslationId = "'{0}' in all products" | '
|
|
1
|
+
export type TranslationId = "'{0}' in all products" | ' to your account to manage your lists.' | 'Add to list' | 'An unexpected error occured' | 'Cancel' | 'Create new list' | 'Chosen filters' | 'Clear filters' | 'Clear' | 'Double check your spelling' | 'Excl. VAT' | 'Explore by categories' | 'Exploring our products by category' | 'Hide filters' | 'Incl. VAT' | 'List name already exists' | 'New list name' | 'Please Sign In' | 'Popular searches' | 'Products' | 'Quick access' | 'Recent searches' | 'Searching again using more general terms' | 'Select a list' | 'Show all' | 'Show filters' | 'Show less' | 'Show' | 'Sorry, we could not find matches for' | 'Sort by' | 'Submit' | 'Suggestions' | 'Use fewer keywords' | 'You could try' | 'You must ' | 'article' | 'articles' | 'facet.categories' | 'facet.height' | 'facet.weight' | 'of' | 'sign in' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc' | 'sort.relevance' | 'tag.limited' | 'tag.new';
|
|
@@ -76,14 +76,15 @@ type RequestOptions = RequestOptionsWithBody | RequestOptionsWithoutBody | Reque
|
|
|
76
76
|
type AfterRequestHandler<T> = (args: {
|
|
77
77
|
body: T | undefined;
|
|
78
78
|
error?: RequestError;
|
|
79
|
+
options: RequestOptions;
|
|
79
80
|
response?: Response;
|
|
80
81
|
}) => void;
|
|
81
82
|
type BeforeRequestHandler = (options?: RequestOptions) => RequestOptions | void;
|
|
82
83
|
interface Request {
|
|
83
84
|
<T>(options: RequestOptions): Promise<T>;
|
|
84
|
-
_afterHandlers: AfterRequestHandler<
|
|
85
|
+
_afterHandlers: AfterRequestHandler<any>[];
|
|
85
86
|
_beforeHandlers: BeforeRequestHandler[];
|
|
86
|
-
after<T =
|
|
87
|
+
after<T = any>(handler: AfterRequestHandler<T>): void;
|
|
87
88
|
before(handler: BeforeRequestHandler): void;
|
|
88
89
|
headers: Omit<RequestHeaders, 'Content-Type'>;
|
|
89
90
|
}
|
package/dist/styles.css
CHANGED
|
@@ -2624,6 +2624,84 @@
|
|
|
2624
2624
|
}
|
|
2625
2625
|
}
|
|
2626
2626
|
|
|
2627
|
+
.search-results-page-module-M7SIu .search-results-page-module-DpNT- {
|
|
2628
|
+
margin-bottom: 44px;
|
|
2629
|
+
}
|
|
2630
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk {
|
|
2631
|
+
display: grid;
|
|
2632
|
+
gap: var(--space-16);
|
|
2633
|
+
justify-items: center;
|
|
2634
|
+
}
|
|
2635
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-SzLQb,
|
|
2636
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-cgonp {
|
|
2637
|
+
width: 100%;
|
|
2638
|
+
}
|
|
2639
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-SzLQb > *, .search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-cgonp > * {
|
|
2640
|
+
display: flex;
|
|
2641
|
+
width: 100%;
|
|
2642
|
+
justify-content: center;
|
|
2643
|
+
}
|
|
2644
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-hunZp {
|
|
2645
|
+
order: 2;
|
|
2646
|
+
}
|
|
2647
|
+
.search-results-page-module-M7SIu .search-results-page-module-n2lSj {
|
|
2648
|
+
margin-bottom: var(--space-44);
|
|
2649
|
+
}
|
|
2650
|
+
.search-results-page-module-M7SIu .search-results-page-module-TK-iE {
|
|
2651
|
+
display: grid;
|
|
2652
|
+
grid-template-columns: 1fr;
|
|
2653
|
+
}
|
|
2654
|
+
.search-results-page-module-M7SIu .search-results-page-module-HWUnk {
|
|
2655
|
+
display: flex;
|
|
2656
|
+
flex-direction: column;
|
|
2657
|
+
}
|
|
2658
|
+
.search-results-page-module-M7SIu .search-results-page-module-SZYiA {
|
|
2659
|
+
margin-top: var(--space-24);
|
|
2660
|
+
grid-column: span 2;
|
|
2661
|
+
}
|
|
2662
|
+
@media (width >= 768px) {
|
|
2663
|
+
.search-results-page-module-M7SIu .search-results-page-module-n2lSj {
|
|
2664
|
+
margin-bottom: var(--space-64);
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk {
|
|
2668
|
+
display: grid;
|
|
2669
|
+
align-items: center;
|
|
2670
|
+
justify-content: space-between;
|
|
2671
|
+
margin-bottom: var(--space-24);
|
|
2672
|
+
grid-template-columns: repeat(3, 1fr);
|
|
2673
|
+
row-gap: var(--space-8);
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-SzLQb,
|
|
2677
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-cgonp {
|
|
2678
|
+
width: initial;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-SzLQb > *, .search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-cgonp > * {
|
|
2682
|
+
width: initial;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-SzLQb {
|
|
2686
|
+
justify-self: flex-start;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-cgonp {
|
|
2690
|
+
display: flex;
|
|
2691
|
+
justify-self: flex-end;
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
.search-results-page-module-M7SIu .search-results-page-module-RJoMk .search-results-page-module-hunZp {
|
|
2695
|
+
order: initial;
|
|
2696
|
+
margin: auto;
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
@media (width >= 1440px) {
|
|
2700
|
+
.search-results-page-module-M7SIu .search-results-page-module-TK-iE {
|
|
2701
|
+
grid-template-columns: auto 1fr;
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2627
2705
|
.overlay-background-module-j7R7T {
|
|
2628
2706
|
position: fixed;
|
|
2629
2707
|
z-index: calc(var(--sidebar-layer) - 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonic-equipment/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"react-aria-components": "^1.2.1",
|
|
130
130
|
"react-instantsearch": "^7.12.1",
|
|
131
131
|
"react-transition-group": "^4.4.5",
|
|
132
|
-
"search-insights": "
|
|
132
|
+
"search-insights": "2.15.0",
|
|
133
133
|
"swiper": "^11.1.4"
|
|
134
134
|
},
|
|
135
135
|
"publishConfig": {
|