@sonic-equipment/ui 0.0.119 → 120.0.0
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/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/algolia/algolia-active-categories.js +38 -0
- package/dist/algolia/algolia-active-filters.js +33 -0
- package/dist/algolia/algolia-categories-filters.js +29 -0
- package/dist/algolia/algolia-dummy-refinement-list-consumer.js +20 -0
- package/dist/algolia/algolia-filter-panel.js +42 -0
- package/dist/algolia/algolia-filter-panel.module.css.js +3 -0
- package/dist/algolia/algolia-hit-type.js +6 -0
- package/dist/algolia/algolia-hits-provider.js +17 -0
- package/dist/algolia/algolia-index-config.js +175 -0
- package/dist/algolia/algolia-insight-instant-search-provider.js +14 -0
- package/dist/algolia/algolia-insights-provider.js +18 -0
- package/dist/algolia/algolia-instant-search-state-provider.js +16 -0
- package/dist/algolia/algolia-intialization.js +26 -0
- package/dist/algolia/algolia-multi-select-filter-section.js +27 -0
- package/dist/algolia/algolia-pagination.js +18 -0
- package/dist/algolia/algolia-provider.js +34 -0
- package/dist/algolia/algolia-query-string-routing.js +106 -0
- package/dist/algolia/algolia-results-count.js +14 -0
- package/dist/algolia/algolia-search-provider.js +139 -0
- package/dist/algolia/algolia-searchclient-offline.js +25 -0
- package/dist/algolia/algolia-sonic-searchclient.js +25 -0
- package/dist/algolia/algolia-sort-by.js +29 -0
- package/dist/algolia/filter-section.js +33 -0
- package/dist/algolia/filter-section.module.css.js +3 -0
- package/dist/algolia/use-algolia-hits.js +19 -0
- package/dist/algolia/use-algolia-insights-provider-global-state.js +9 -0
- package/dist/algolia/use-algolia-insights.js +181 -0
- package/dist/algolia/use-algolia-instant-search-state.js +25 -0
- package/dist/algolia/use-algolia-search.js +41 -0
- package/dist/background-overlay/background-overlay.js +36 -0
- package/dist/background-overlay/background-overlay.module.css.js +3 -0
- package/dist/badges/badge/badge.js +22 -0
- package/dist/badges/badge/badge.module.css.js +3 -0
- package/dist/badges/badge/icon-with-badge/icon-with-badge.js +8 -0
- package/dist/badges/badge/icon-with-badge/icon-with-badge.module.css.js +3 -0
- package/dist/badges/tag/tag.js +10 -0
- package/dist/badges/tag/tag.module.css.js +3 -0
- package/dist/breadcrumbs/breadcrumb.js +35 -0
- package/dist/breadcrumbs/breadcrumb.module.css.js +3 -0
- package/dist/buttons/add-to-cart-button/add-to-cart-button.js +113 -0
- package/dist/buttons/add-to-cart-button/add-to-cart-button.module.css.js +3 -0
- package/dist/buttons/add-to-cart-button/connected-add-to-cart-button.js +92 -0
- package/dist/buttons/button/button.js +21 -0
- package/dist/buttons/button/button.module.css.js +3 -0
- package/dist/buttons/favorite/connected-favorite-button.js +64 -0
- package/dist/buttons/favorite/favorite-button.js +15 -0
- package/dist/buttons/favorite/favorite-button.module.css.js +3 -0
- package/dist/buttons/icon-button/icon-button.js +15 -0
- package/dist/buttons/icon-button/icon-button.module.css.js +3 -0
- package/dist/buttons/link/link.js +10 -0
- package/dist/buttons/link/link.module.css.js +3 -0
- package/dist/buttons/print-button/print-button.js +9 -0
- package/dist/cards/category-card/category-card.js +15 -0
- package/dist/cards/category-card/category-card.module.css.js +3 -0
- package/dist/cards/orderline-card/connected-orderline-card.js +13 -0
- package/dist/cards/orderline-card/connected-remove-button.js +19 -0
- package/dist/cards/orderline-card/orderline-card.js +17 -0
- package/dist/cards/orderline-card/orderline-card.module.css.js +3 -0
- package/dist/cards/product-card/connected-product-card.js +11 -0
- package/dist/cards/product-card/product-card.js +15 -0
- package/dist/cards/product-card/product-card.module.css.js +3 -0
- package/dist/carousel/card-carousel/card-carousel.js +23 -0
- package/dist/carousel/card-carousel/card-carousel.module.css.js +3 -0
- package/dist/carousel/carousel-navigation-button.js +13 -0
- package/dist/carousel/carousel-navigation-button.module.css.js +3 -0
- package/dist/carousel/carousel.js +69 -0
- package/dist/carousel/carousel.module.css.js +3 -0
- package/dist/carousel/category-carousel/category-carousel.js +9 -0
- package/dist/carousel/category-carousel/category-carousel.module.css.js +3 -0
- package/dist/carousel/pagination/pagination.js +40 -0
- package/dist/carousel/pagination/pagination.module.css.js +3 -0
- package/dist/carousel/pagination/transitions.js +144 -0
- package/dist/carousel/usp-carousel/product-usp-carousel-slide.js +10 -0
- package/dist/carousel/usp-carousel/product-usp-carousel.js +9 -0
- package/dist/carousel/usp-carousel/usp-carousel.js +47 -0
- package/dist/carousel/usp-carousel/usp-carousel.module.css.js +3 -0
- package/dist/cart-totals/cart-totals-summary.js +11 -0
- package/dist/cart-totals/cart-totals-summary.module.css.js +3 -0
- package/dist/cart-totals/cart-totals.js +10 -0
- package/dist/cart-totals/cart-totals.module.css.js +3 -0
- package/dist/collapsables/accordion/accordion-item.js +18 -0
- package/dist/collapsables/accordion/accordion.js +15 -0
- package/dist/collapsables/accordion/accordion.module.css.js +3 -0
- package/dist/collapsables/show-all/show-all.js +33 -0
- package/dist/collapsables/show-all/show-all.module.css.js +3 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +82 -0
- package/dist/country-selector/connected-country-selector.js +37 -0
- package/dist/country-selector/country-selector-dialog/country-selector-dialog.js +42 -0
- package/dist/country-selector/country-selector-dialog/country-selector-dialog.module.css.js +3 -0
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.js +16 -0
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.module.css.js +3 -0
- package/dist/country-selector/use-countries-languages.js +72 -0
- package/dist/delivery-time/delivery-time.js +18 -0
- package/dist/delivery-time/delivery-time.module.css.js +3 -0
- package/dist/display/product-price/product-price.js +19 -0
- package/dist/display/product-price/product-price.module.css.js +3 -0
- package/dist/display/product-price/product-total-price.js +16 -0
- package/dist/display/product-price/product-total-price.module.css.js +3 -0
- package/dist/display/product-sku/product-sku.js +8 -0
- package/dist/display/product-sku/product-sku.module.css.js +3 -0
- package/dist/exports.d.ts +4 -4
- package/dist/filters/active-filters/active-filters.js +20 -0
- package/dist/filters/active-filters/active-filters.module.css.js +3 -0
- package/dist/filters/multi-select/multi-select.js +20 -0
- package/dist/filters/multi-select/multi-select.module.css.js +3 -0
- package/dist/filters/pagination/pagination.js +14 -0
- package/dist/filters/pagination/pagination.module.css.js +3 -0
- package/dist/forms/checkbox/checkbox.js +11 -0
- package/dist/forms/checkbox/checkbox.module.css.js +3 -0
- package/dist/forms/color-checkbox/color-checkbox.js +13 -0
- package/dist/forms/field-error/field-error.js +10 -0
- package/dist/forms/field-error/field-error.module.css.js +3 -0
- package/dist/forms/input/input.js +31 -0
- package/dist/forms/input/input.module.css.js +3 -0
- package/dist/forms/label/label.js +12 -0
- package/dist/forms/label/label.module.css.js +3 -0
- package/dist/forms/number-field/number-field.js +29 -0
- package/dist/forms/number-field/number-field.module.css.js +3 -0
- package/dist/forms/select/select.js +31 -0
- package/dist/forms/select/select.module.css.js +3 -0
- package/dist/forms/text-field/text-field.js +22 -0
- package/dist/forms/text-field/text-field.module.css.js +3 -0
- package/dist/forms/textarea/textarea.js +54 -0
- package/dist/forms/textarea/textarea.module.css.js +3 -0
- package/dist/global-search/categories-grid/categories-grid.js +14 -0
- package/dist/global-search/categories-grid/categories-grid.module.css.js +3 -0
- package/dist/global-search/global-search-provider/global-search-provider.js +15 -0
- package/dist/global-search/global-search-provider/use-search-disclosure.js +13 -0
- package/dist/global-search/global-search.js +43 -0
- package/dist/global-search/global-search.module.css.js +3 -0
- package/dist/global-search/plugins/categories-plugin.js +35 -0
- package/dist/global-search/plugins/popular-categories-plugin.js +32 -0
- package/dist/global-search/plugins/popular-searches-plugin.js +23 -0
- package/dist/global-search/plugins/query-suggestions-plugin.js +21 -0
- package/dist/global-search/plugins/quick-access-plugin.js +34 -0
- package/dist/global-search/plugins/recent-searches-plugin.js +16 -0
- package/dist/global-search/search-highlight/highlight.js +13 -0
- package/dist/global-search/search-input/connected-search-input.js +22 -0
- package/dist/global-search/search-input/search-input.js +29 -0
- package/dist/global-search/search-input/search-input.module.css.js +3 -0
- package/dist/global-search/search-result-panel/panel-content.js +13 -0
- package/dist/global-search/search-result-panel/search-result-panel.js +17 -0
- package/dist/global-search/search-result-panel/search-result-panel.module.css.js +3 -0
- package/dist/global-search/search-result-panel/sections/no-search-results.js +30 -0
- package/dist/global-search/search-result-panel/sections/no-search.js +56 -0
- package/dist/global-search/search-result-panel/sections/search-content.module.css.js +3 -0
- package/dist/global-search/search-result-panel/sections/section-container.js +8 -0
- package/dist/global-search/search-result-panel/sections/with-results.js +101 -0
- package/dist/global-search/search-section/search-list-item.js +25 -0
- package/dist/global-search/search-section/search-list-item.module.css.js +3 -0
- package/dist/global-search/search-section/search-list.js +9 -0
- package/dist/global-search/search-section/search-list.module.css.js +3 -0
- package/dist/global-search/search-section/search-section.js +9 -0
- package/dist/global-search/search-section/search-section.module.css.js +3 -0
- package/dist/header/cart-icon/connected-cart-icon.js +14 -0
- package/dist/icons/glyph/glyphs-arrow-boldcaps-left-icon.js +7 -0
- package/dist/icons/glyph/glyphs-arrow-boldcaps-right-icon.js +7 -0
- package/dist/icons/glyph/glyphs-arrow-semibold-right-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-bold-down-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-down-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-left-icon.js +7 -0
- package/dist/icons/glyph/glyphs-chevrons-slim-right-icon.js +7 -0
- package/dist/icons/solid/solid-attention-icon.js +7 -0
- package/dist/icons/solid/solid-cart-icon.js +7 -0
- package/dist/icons/solid/solid-close-icon.js +7 -0
- package/dist/icons/solid/solid-event-icon.js +7 -0
- package/dist/icons/solid/solid-favorite-icon.js +7 -0
- package/dist/icons/solid/solid-home-icon.js +7 -0
- package/dist/icons/solid/solid-information-icon.js +7 -0
- package/dist/icons/solid/solid-news-icon.js +7 -0
- package/dist/icons/solid/solid-notice-icon.js +7 -0
- package/dist/icons/solid/solid-okay-icon.js +7 -0
- package/dist/icons/solid/solid-sale-icon.js +7 -0
- package/dist/icons/solid/solid-tag-icon.js +7 -0
- package/dist/icons/stroke/stroke-categories-icon.js +7 -0
- package/dist/icons/stroke/stroke-checkmark-icon.js +7 -0
- package/dist/icons/stroke/stroke-closebox-icon.js +7 -0
- package/dist/icons/stroke/stroke-collapse-icon.js +7 -0
- package/dist/icons/stroke/stroke-download-icon.js +7 -0
- package/dist/icons/stroke/stroke-expand-icon.js +7 -0
- package/dist/icons/stroke/stroke-favorite-icon.js +7 -0
- package/dist/icons/stroke/stroke-filter-icon.js +7 -0
- package/dist/icons/stroke/stroke-recent-icon.js +7 -0
- package/dist/icons/stroke/stroke-search-icon.js +7 -0
- package/dist/icons/stroke/stroke-trash-icon.js +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +254 -12972
- package/dist/intl/formatted-message.js +6 -0
- package/dist/intl/intl-context.js +10 -0
- package/dist/intl/intl-provider.js +15 -0
- package/dist/intl/types.js +17 -0
- package/dist/intl/use-culture-code.js +14 -0
- package/dist/intl/use-formatted-message.js +17 -0
- package/dist/intl/use-language-code.js +11 -0
- package/dist/intl/utils.js +29 -0
- package/dist/lists/download-document-list/download-document-list.js +16 -0
- package/dist/lists/download-document-list/download-document-list.module.css.js +3 -0
- package/dist/lists/feature-list/feature-list.js +22 -0
- package/dist/lists/feature-list/feature-list.module.css.js +3 -0
- package/dist/lists/orderline-list/orderline-list.js +25 -0
- package/dist/lists/orderline-list/orderline-list.module.css.js +3 -0
- package/dist/lists/product-overview-grid/product-overview-grid.js +10 -0
- package/dist/lists/product-overview-grid/product-overview-grid.module.css.js +3 -0
- package/dist/lists/ul/list.js +11 -0
- package/dist/lists/ul/list.module.css.js +3 -0
- package/dist/loading/blank-page-spacer.js +8 -0
- package/dist/loading/blank-page-spacer.module.css.js +3 -0
- package/dist/loading/loading-overlay.js +9 -0
- package/dist/loading/loading-overlay.module.css.js +3 -0
- package/dist/loading/progress-circle.js +9 -0
- package/dist/loading/progress-circle.module.css.js +3 -0
- package/dist/media/image/image.js +46 -0
- package/dist/media/image/image.module.css.js +3 -0
- package/dist/media/image-grid/images-grid.js +32 -0
- package/dist/media/image-grid/images-grid.module.css.js +3 -0
- package/dist/media/image-lightbox/image-lightbox.js +35 -0
- package/dist/media/image-lightbox/image-lightbox.module.css.js +3 -0
- package/dist/media/zoom-image/zoom-image.js +33 -0
- package/dist/media/zoom-image/zoom-image.module.css.js +3 -0
- package/dist/modals/confirmation/confirmation-dialog.js +12 -0
- package/dist/modals/confirmation/confirmation-dialog.module.css.js +3 -0
- package/dist/modals/dialog/dialog.js +30 -0
- package/dist/modals/dialog/dialog.module.css.js +3 -0
- package/dist/modals/favorite/add-to-favorite-dialog.js +60 -0
- package/dist/modals/favorite/add-to-favorite-dialog.module.css.js +3 -0
- package/dist/modals/modal/modal.js +34 -0
- package/dist/modals/modal/modal.module.css.js +3 -0
- package/dist/modals/signin/sign-in-dialog.js +22 -0
- package/dist/modals/signin/sign-in-dialog.module.css.js +3 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.75.4_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/routers/history.js +341 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.75.4_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/stateMappings/simple.js +36 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.75.4_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/documentation.js +8 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.75.4_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/logger.js +32 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.75.4_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/noop.js +3 -0
- package/dist/node_modules/.pnpm/instantsearch.js@4.75.4_algoliasearch@4.24.0/node_modules/instantsearch.js/es/lib/utils/safelyRunOnBrowser.js +24 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/formats.js +33 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/index.js +25 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/parse.js +269 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/stringify.js +300 -0
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/utils.js +264 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/modules/free-mode.js +237 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/modules/navigation.js +200 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/modules/thumbs.js +193 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/shared/create-element-if-not-defined.js +21 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/shared/ssr-window.esm.js +145 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/shared/swiper-core.js +3912 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/shared/update-on-virtual-data.js +130 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/shared/update-swiper.js +230 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/shared/utils.js +287 -0
- package/dist/node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/swiper-react.js +389 -0
- package/dist/notifications/announcements/announcement-provider.js +32 -0
- package/dist/notifications/announcements/announcement-provider.module.css.js +3 -0
- package/dist/notifications/announcements/announcement.js +30 -0
- package/dist/notifications/announcements/announcement.module.css.js +3 -0
- package/dist/notifications/announcements/connected-announcement.js +27 -0
- package/dist/observers/intersection-observer.js +18 -0
- package/dist/pages/cart-page/cart-page.js +114 -0
- package/dist/pages/error-page/error-page.js +22 -0
- package/dist/pages/layouts/checkout-page-layout/checkout-page-layout.js +30 -0
- package/dist/pages/layouts/checkout-page-layout/checkout-page-layout.module.css.js +3 -0
- package/dist/pages/layouts/product-details-page-layout/product-details-page-layout.js +8 -0
- package/dist/pages/layouts/product-details-page-layout/product-details-page-layout.module.css.js +3 -0
- package/dist/pages/loading-page/loading-page.js +9 -0
- package/dist/pages/page/page.js +18 -0
- package/dist/pages/page/page.module.css.js +3 -0
- package/dist/pages/page-container/page-container.js +9 -0
- package/dist/pages/page-container/page-container.module.css.js +3 -0
- package/dist/pages/product-details-page/components/product-details-images/product-detail-images.js +35 -0
- package/dist/pages/product-details-page/components/product-details-images/product-detail-images.module.css.js +3 -0
- package/dist/pages/product-details-page/components/product-details-panel/product-details-panel.d.ts +3 -2
- package/dist/pages/product-details-page/components/product-details-panel/product-details-panel.js +35 -0
- package/dist/pages/product-details-page/components/product-details-panel/product-details-panel.module.css.js +3 -0
- package/dist/pages/product-details-page/components/product-details-recently-viewed/product-details-recently-viewed.d.ts +4 -0
- package/dist/pages/product-details-page/components/product-details-recently-viewed/product-details-recently-viewed.js +15 -0
- package/dist/pages/product-details-page/product-details-page.js +22 -0
- package/dist/pages/product-details-page/product-details.d.ts +6 -0
- package/dist/pages/product-details-page/product-details.js +25 -0
- package/dist/pages/product-listing-page/no-results/no-results.js +14 -0
- package/dist/pages/product-listing-page/no-results/no-results.module.css.js +3 -0
- package/dist/pages/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.js +22 -0
- package/dist/pages/product-listing-page/product-listing-page-provider/product-listing-page-context.js +8 -0
- package/dist/pages/product-listing-page/product-listing-page-provider/product-listing-page-provider.js +13 -0
- package/dist/pages/product-listing-page/product-listing-page.js +29 -0
- package/dist/pages/product-listing-page/product-listing-page.module.css.js +3 -0
- package/dist/pages/product-listing-page/product-listing-product-overview/product-listing-product-overview.js +36 -0
- package/dist/pages/product-listing-page/product-listing.d.ts +6 -0
- package/dist/pages/product-listing-page/product-listing.js +42 -0
- package/dist/pages/search-result-page/search-result-product-overview/search-result-product-overview.js +38 -0
- package/dist/pages/search-result-page/search-results-page-category-carousel/search-results-page-category-carousel.js +22 -0
- package/dist/pages/search-result-page/search-results-page.js +49 -0
- package/dist/pages/search-result-page/search-results-page.module.css.js +3 -0
- package/dist/promos/promo-banner/promo-banner.js +11 -0
- package/dist/promos/promo-banner/promo-banner.module.css.js +3 -0
- package/dist/promos/promo-banners/promo-banners.js +16 -0
- package/dist/promos/promo-banners/promo-banners.module.css.js +3 -0
- package/dist/promos/promo-card/promo-card.js +11 -0
- package/dist/promos/promo-card/promo-card.module.css.js +3 -0
- package/dist/shared/api/bff/hooks/use-fetch-announcements.js +15 -0
- package/dist/shared/api/bff/hooks/use-fetch-product-details-page-data.js +14 -0
- package/dist/shared/api/bff/hooks/use-fetch-product-listing-page-data.js +14 -0
- package/dist/shared/api/bff/model/bff.model.d.ts +1 -1
- package/dist/shared/api/bff/model/bff.model.js +1 -0
- package/dist/shared/api/bff/services/bff-service.js +76 -0
- package/dist/shared/api/storefront/hooks/authentication/use-fetch-session.js +18 -0
- package/dist/shared/api/storefront/hooks/authentication/use-invalidate-session.js +9 -0
- package/dist/shared/api/storefront/hooks/authentication/use-is-authenticated.js +8 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-in.js +21 -0
- package/dist/shared/api/storefront/hooks/authentication/use-sign-out.js +25 -0
- package/dist/shared/api/storefront/hooks/cart/use-add-product-to-current-cart.js +31 -0
- package/dist/shared/api/storefront/hooks/cart/use-delete-cart-line-by-id.js +23 -0
- package/dist/shared/api/storefront/hooks/cart/use-delete-current-cart.js +18 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-checkout-atp.js +15 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-count.js +8 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines-with-atp.js +11 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-lines.js +11 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-product-atp.js +15 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-promotions.js +15 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart-with-atp.js +26 -0
- package/dist/shared/api/storefront/hooks/cart/use-fetch-current-cart.js +17 -0
- package/dist/shared/api/storefront/hooks/cart/use-invalidate-current-cart.js +9 -0
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart.js +15 -0
- package/dist/shared/api/storefront/hooks/cart/use-place-order.js +15 -0
- package/dist/shared/api/storefront/hooks/cart/use-save-cart-for-later.js +17 -0
- package/dist/shared/api/storefront/hooks/cart/use-update-cart-line-by-id.js +30 -0
- package/dist/shared/api/storefront/hooks/translation/use-fetch-translations.js +15 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-languages.js +15 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries-with-languages.js +15 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-countries.js +14 -0
- package/dist/shared/api/storefront/hooks/website/use-fetch-settings.js +18 -0
- package/dist/shared/api/storefront/hooks/website/use-update-locale.js +11 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-add-wishlist-item-to-current-wishlist.js +34 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-add-wishlist-item-to-wishlist.js +33 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-create-wishlist.js +17 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-delete-wishlist-item-from-wishlist.js +21 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-fetch-all-wishlists-items.js +36 -0
- package/dist/shared/api/storefront/hooks/wishlist/use-fetch-wishlists.js +14 -0
- package/dist/shared/api/storefront/model/shop.model.js +42 -0
- package/dist/shared/api/storefront/services/authentication-service.js +80 -0
- package/dist/shared/api/storefront/services/cart-service.js +128 -0
- package/dist/shared/api/storefront/services/translation-service.js +16 -0
- package/dist/shared/api/storefront/services/website-service.js +83 -0
- package/dist/shared/api/storefront/services/wishlist-service.js +72 -0
- package/dist/shared/feature-flags/use-feature-flags.js +45 -0
- package/dist/shared/fetch/request.d.ts +5 -0
- package/dist/shared/fetch/request.js +263 -0
- package/dist/shared/hooks/use-breakpoint.js +24 -0
- package/dist/shared/hooks/use-cookie.js +27 -0
- package/dist/shared/hooks/use-debounced-callback.js +18 -0
- package/dist/shared/hooks/use-disclosure.js +24 -0
- package/dist/shared/hooks/use-enable-mobile-zoom.js +36 -0
- package/dist/shared/hooks/use-intersection-observer.js +66 -0
- package/dist/shared/hooks/use-is-breakpoint.js +19 -0
- package/dist/shared/hooks/use-local-storage.js +19 -0
- package/dist/shared/hooks/use-resize-observer.d.ts +2 -2
- package/dist/shared/hooks/use-resize-observer.js +30 -0
- package/dist/shared/hooks/use-scroll-lock.js +11 -0
- package/dist/shared/hooks/use-scroll-to.js +19 -0
- package/dist/shared/hooks/use-session-storage.js +19 -0
- package/dist/shared/hooks/use-watch-css-property.d.ts +1 -0
- package/dist/shared/hooks/use-watch-css-property.js +29 -0
- package/dist/shared/model/announcement.js +18 -0
- package/dist/shared/model/category.js +25 -0
- package/dist/shared/model/currency.js +29 -0
- package/dist/shared/model/hit.js +45 -0
- package/dist/shared/model/image.js +5 -0
- package/dist/shared/providers/cart-provider.js +13 -0
- package/dist/shared/providers/favorite-provider.js +33 -0
- package/dist/shared/providers/global-state-provider.js +83 -0
- package/dist/shared/providers/react-query-container.js +20 -0
- package/dist/shared/routing/route-button.js +7 -0
- package/dist/shared/routing/route-icon-button.js +7 -0
- package/dist/shared/routing/route-link.js +7 -0
- package/dist/shared/routing/route-provider.d.ts +3 -1
- package/dist/shared/routing/route-provider.js +48 -0
- package/dist/shared/routing/with-routing.js +36 -0
- package/dist/shared/utils/array.js +5 -0
- package/dist/shared/utils/breakpoints.js +33 -0
- package/dist/shared/utils/date.js +58 -0
- package/dist/shared/utils/environment.d.ts +2 -2
- package/dist/shared/utils/environment.js +61 -0
- package/dist/shared/utils/event-emitter.js +34 -0
- package/dist/shared/utils/local-storage.js +108 -0
- package/dist/shared/utils/merge.js +70 -0
- package/dist/shared/utils/price.js +6 -0
- package/dist/shared/utils/time.js +9 -0
- package/dist/shared/utils/uuid.js +15 -0
- package/dist/shared/utils/wait.js +5 -0
- package/dist/sidebar/sidebar-provider.js +46 -0
- package/dist/sidebar/sidebar-provider.module.css.js +3 -0
- package/dist/sidebar/sidebar.js +23 -0
- package/dist/sidebar/sidebar.module.css.js +3 -0
- package/dist/sidebar/toggle-sidebar-button.js +13 -0
- package/dist/sidebar/use-sidebar.js +38 -0
- package/dist/styles.css +5 -16
- package/dist/toast/toast-provider.js +9 -0
- package/dist/toast/toast-provider.module.css.js +3 -0
- package/dist/toast/toast.js +24 -0
- package/dist/toast/toast.module.css.js +3 -0
- package/dist/toast/use-toast.js +21 -0
- package/dist/tokens/tokens.js +8 -0
- package/dist/typography/heading/heading.js +27 -0
- package/dist/typography/heading/heading.module.css.js +3 -0
- package/package.json +3 -2
- package/dist/pages/product-listing-page/product-listing-page-provider/use-subcategories.d.ts +0 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useFormattedMessage } from './use-formatted-message.js';
|
|
3
|
+
|
|
4
|
+
const FormattedMessage = ({ fallbackValue, id, optional, replacementValues, }) => useFormattedMessage()(id, { fallbackValue, optional, replacementValues });
|
|
5
|
+
|
|
6
|
+
export { FormattedMessage };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { IntlContext } from './intl-context.js';
|
|
5
|
+
|
|
6
|
+
function IntlProvider({ children, cultureCode: _cultureCode, formattedMessage, }) {
|
|
7
|
+
const [cultureCode, updateCultureCode] = useState(_cultureCode);
|
|
8
|
+
return (jsx(IntlContext.Provider, { value: {
|
|
9
|
+
cultureCode,
|
|
10
|
+
formattedMessage,
|
|
11
|
+
updateCultureCode,
|
|
12
|
+
}, children: children }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { IntlProvider };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function isCountryCode(value) {
|
|
2
|
+
if (typeof value !== 'string')
|
|
3
|
+
return false;
|
|
4
|
+
return /^[A-Z]{2}$/.test(value);
|
|
5
|
+
}
|
|
6
|
+
function isLanguageCode(value) {
|
|
7
|
+
if (typeof value !== 'string')
|
|
8
|
+
return false;
|
|
9
|
+
return /^[A-Z]{2}$/.test(value);
|
|
10
|
+
}
|
|
11
|
+
function isCultureCode(value) {
|
|
12
|
+
if (typeof value !== 'string')
|
|
13
|
+
return false;
|
|
14
|
+
return /^[a-z]{2}-[A-Z]{2}$/.test(value);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { isCountryCode, isCultureCode, isLanguageCode };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import { IntlContext } from './intl-context.js';
|
|
4
|
+
|
|
5
|
+
function useCultureCode() {
|
|
6
|
+
const { cultureCode } = useContext(IntlContext);
|
|
7
|
+
return cultureCode;
|
|
8
|
+
}
|
|
9
|
+
function useUpdateCultureCode() {
|
|
10
|
+
const { updateCultureCode } = useContext(IntlContext);
|
|
11
|
+
return updateCultureCode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { useCultureCode, useUpdateCultureCode };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import { IntlContext } from './intl-context.js';
|
|
4
|
+
|
|
5
|
+
function useFormattedMessage() {
|
|
6
|
+
const { formattedMessage } = useContext(IntlContext);
|
|
7
|
+
const formatFunction = (id, options) => formattedMessage(id, options);
|
|
8
|
+
function pluralize(translationIdOrPrefix, translationIdOrCount, count) {
|
|
9
|
+
return formatFunction((typeof translationIdOrCount === 'number'
|
|
10
|
+
? `${translationIdOrPrefix}.${translationIdOrCount === 1 ? 'singular' : 'plural'}`
|
|
11
|
+
: `${translationIdOrPrefix}.${translationIdOrCount}.${count === 1 ? 'singular' : 'plural'}`));
|
|
12
|
+
}
|
|
13
|
+
formatFunction.pluralize = pluralize;
|
|
14
|
+
return formatFunction;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { useFormattedMessage };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import { IntlContext } from './intl-context.js';
|
|
4
|
+
import { getLanguageCodeFromCultureCode } from './utils.js';
|
|
5
|
+
|
|
6
|
+
function useLanguageCode() {
|
|
7
|
+
const { cultureCode } = useContext(IntlContext);
|
|
8
|
+
return getLanguageCodeFromCultureCode(cultureCode);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { useLanguageCode };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isLanguageCode } from './types.js';
|
|
2
|
+
|
|
3
|
+
function getLanguageCodeFromCultureCode(cultureCode) {
|
|
4
|
+
const languageCode = cultureCode.split('-')[0]?.toUpperCase();
|
|
5
|
+
if (!isLanguageCode(languageCode))
|
|
6
|
+
throw new Error('Language code is not found');
|
|
7
|
+
return languageCode;
|
|
8
|
+
}
|
|
9
|
+
function spireTranslateAdapter(translate) {
|
|
10
|
+
return (id, { fallbackValue, optional, replacementValues } = {}) => {
|
|
11
|
+
const message = translate(id, ...(replacementValues
|
|
12
|
+
? Object.keys(replacementValues)
|
|
13
|
+
.map(Number.parseFloat)
|
|
14
|
+
.filter(index => !Number.isNaN(index))
|
|
15
|
+
.reduce((acc, index) => {
|
|
16
|
+
const replacementValue = replacementValues[index];
|
|
17
|
+
if (replacementValue === undefined)
|
|
18
|
+
return acc;
|
|
19
|
+
acc[index] = replacementValue;
|
|
20
|
+
return acc;
|
|
21
|
+
}, [])
|
|
22
|
+
: []));
|
|
23
|
+
if (optional && message === undefined)
|
|
24
|
+
console.warn(`Missing translation with id: ${id}`);
|
|
25
|
+
return message || fallbackValue || id;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { getLanguageCodeFromCultureCode, spireTranslateAdapter };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { StrokeDownloadIcon } from '../../icons/stroke/stroke-download-icon.js';
|
|
3
|
+
import { FeatureList } from '../feature-list/feature-list.js';
|
|
4
|
+
import styles from './download-document-list.module.css.js';
|
|
5
|
+
|
|
6
|
+
function DownloadDocumentList({ className, documents, }) {
|
|
7
|
+
return (jsx(FeatureList, { className: className, features: documents.map(document => ({
|
|
8
|
+
id: `${document.id}`,
|
|
9
|
+
value: jsx(DownloadListItem, { document: document }, document.id),
|
|
10
|
+
})), style: { valueAlignment: 'left' } }));
|
|
11
|
+
}
|
|
12
|
+
function DownloadListItem({ document: { href, name }, }) {
|
|
13
|
+
return (jsxs("div", { className: styles['download-list-item'], children: [jsx(StrokeDownloadIcon, {}), jsx("a", { href: href, rel: "noreferrer", target: "_blank", children: name })] }));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { DownloadDocumentList };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { SolidCloseIcon } from '../../icons/solid/solid-close-icon.js';
|
|
4
|
+
import { SolidOkayIcon } from '../../icons/solid/solid-okay-icon.js';
|
|
5
|
+
import styles from './feature-list.module.css.js';
|
|
6
|
+
|
|
7
|
+
function FeatureKey({ label }) {
|
|
8
|
+
return label;
|
|
9
|
+
}
|
|
10
|
+
function FeatureValue({ value }) {
|
|
11
|
+
if (typeof value === 'boolean' ||
|
|
12
|
+
(typeof value === 'string' &&
|
|
13
|
+
(value.toLowerCase() === 'true' || value.toLowerCase() === 'false'))) {
|
|
14
|
+
return (jsx(Fragment, { children: String(value).toLowerCase() === 'true' ? (jsx(SolidOkayIcon, { className: styles['icon-true'] })) : (jsx(SolidCloseIcon, { className: styles['icon-false'] })) }));
|
|
15
|
+
}
|
|
16
|
+
return jsx("div", { className: styles.value, children: value });
|
|
17
|
+
}
|
|
18
|
+
function FeatureList({ className, features, style }) {
|
|
19
|
+
return (jsx("div", { className: clsx(styles['feature-list'], className), children: features.map(({ id, key, value }) => (jsxs("div", { className: styles.row, children: [jsx("div", { className: clsx(styles.column, styles['column-label'], styles[`alignment-${style?.keyAlignment || 'left'}`]), children: key && jsx(FeatureKey, { ...key }) }), jsx("div", { className: clsx(styles.column, styles['column-value'], styles[`alignment-${style?.valueAlignment || 'right'}`]), children: Array.isArray(value) ? (value.map((value, index) => (jsx(FeatureValue, { value: value }, `${id}-${index}`)))) : (jsx(FeatureValue, { value: value })) })] }, id))) }));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { FeatureList };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"feature-list":"feature-list-module-cxc8U","row":"feature-list-module-tTJ2r","column":"feature-list-module-Tw0KD","column-label":"feature-list-module-J6Xfj","alignment-right":"feature-list-module-deI1-","column-value":"feature-list-module-CqSj1","icon-true":"feature-list-module-ojZvf","icon-false":"feature-list-module-4IjrA"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React, { Children } from 'react';
|
|
4
|
+
import { Link } from '../../buttons/link/link.js';
|
|
5
|
+
import { StrokeTrashIcon } from '../../icons/stroke/stroke-trash-icon.js';
|
|
6
|
+
import { FormattedMessage } from '../../intl/formatted-message.js';
|
|
7
|
+
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
8
|
+
import { ConfirmationDialog } from '../../modals/confirmation/confirmation-dialog.js';
|
|
9
|
+
import { useDisclosure } from '../../shared/hooks/use-disclosure.js';
|
|
10
|
+
import styles from './orderline-list.module.css.js';
|
|
11
|
+
|
|
12
|
+
function OrderLineList({ children, onRemoveAll }) {
|
|
13
|
+
const t = useFormattedMessage();
|
|
14
|
+
const { close, isOpen, open } = useDisclosure();
|
|
15
|
+
const count = React.Children.count(children);
|
|
16
|
+
const productString = count === 1 ? t('Product') : t('Products');
|
|
17
|
+
function handleRemoveAll() {
|
|
18
|
+
if (!onRemoveAll)
|
|
19
|
+
return;
|
|
20
|
+
open();
|
|
21
|
+
}
|
|
22
|
+
return (jsxs(Fragment, { children: [jsxs("div", { className: styles['orderline-list'], children: [jsxs("div", { className: styles.header, children: [jsx("p", { className: styles.count, children: `${count} ${productString.toLowerCase()}` }), onRemoveAll && (jsxs(Link, { className: styles['lnk-remove-all'], "data-test-selector": "cartlineHeader_removeAll", onClick: handleRemoveAll, children: [jsx(StrokeTrashIcon, {}), jsx(FormattedMessage, { id: "Remove all" })] }))] }), jsx("div", { className: styles.items, children: Children.map(children, (child, index) => (jsx("div", { className: styles.item, children: child }, index))) })] }), onRemoveAll && (jsx(ConfirmationDialog, { isOpen: isOpen, onCancel: close, onConfirm: onRemoveAll, title: t('Are you sure you want to remove all items from your cart?') }))] }));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { OrderLineList };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"orderline-list":"orderline-list-module-v-FqO","header":"orderline-list-module-JTZK3","count":"orderline-list-module-SMPUR","lnk-remove-all":"orderline-list-module-2WpLl","items":"orderline-list-module-5COK6","item":"orderline-list-module-2p-Jd"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Children } from 'react';
|
|
3
|
+
import { ProgressCircle } from '../../loading/progress-circle.js';
|
|
4
|
+
import styles from './product-overview-grid.module.css.js';
|
|
5
|
+
|
|
6
|
+
function ProductOverviewGrid({ children, isLoading, }) {
|
|
7
|
+
return (jsxs("div", { className: styles['product-grid'], children: [Children.map(children, (child, index) => (jsx("div", { className: styles['grid-item'], children: child }, index))), isLoading && (jsx("div", { className: styles['loading-panel'], children: jsx(ProgressCircle, { className: styles['progress-circle'] }) }))] }));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { ProductOverviewGrid };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"product-grid":"product-overview-grid-module-bzys-","loading-panel":"product-overview-grid-module-XikkF","fade-in":"product-overview-grid-module-A6CS7","progress-circle":"product-overview-grid-module-DWnnI","fade-in-spinner":"product-overview-grid-module-r-wvY","grid-item":"product-overview-grid-module-MlUVA"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import styles from './list.module.css.js';
|
|
3
|
+
|
|
4
|
+
function List({ children }) {
|
|
5
|
+
return jsx("ul", { className: styles.list, children: children });
|
|
6
|
+
}
|
|
7
|
+
function ListItem({ icon, text }) {
|
|
8
|
+
return (jsxs("li", { className: styles['list-item'], children: [icon && jsx("span", { className: styles.icon, children: icon }), text] }));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { List, ListItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ProgressCircle } from './progress-circle.js';
|
|
3
|
+
import styles from './loading-overlay.module.css.js';
|
|
4
|
+
|
|
5
|
+
function LoadingOverlay() {
|
|
6
|
+
return (jsx("div", { className: styles['loading-overlay'], children: jsx(ProgressCircle, {}) }));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { LoadingOverlay };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import styles from './progress-circle.module.css.js';
|
|
4
|
+
|
|
5
|
+
function ProgressCircle({ className }) {
|
|
6
|
+
return (jsxs("svg", { className: clsx(styles['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" }) })] }));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { ProgressCircle };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { isResponsiveImage } from '../../shared/model/image.js';
|
|
6
|
+
import styles from './image.module.css.js';
|
|
7
|
+
|
|
8
|
+
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, }) {
|
|
9
|
+
const [hasError, setHasError] = useState(false);
|
|
10
|
+
const handleError = () => {
|
|
11
|
+
setHasError(true);
|
|
12
|
+
};
|
|
13
|
+
const props = {
|
|
14
|
+
className,
|
|
15
|
+
fallbackSrc,
|
|
16
|
+
fit,
|
|
17
|
+
height,
|
|
18
|
+
loading,
|
|
19
|
+
onError: handleError,
|
|
20
|
+
title,
|
|
21
|
+
width,
|
|
22
|
+
};
|
|
23
|
+
if (isResponsiveImage(image)) {
|
|
24
|
+
return jsx(PictureComponent, { ...props, hasError: hasError, image: image });
|
|
25
|
+
}
|
|
26
|
+
return jsx(ImageComponent, { ...props, hasError: hasError, image: image });
|
|
27
|
+
}
|
|
28
|
+
function ImageComponent({ className, fallbackSrc, fit = 'cover', hasError, image, ...rest }) {
|
|
29
|
+
if (!image)
|
|
30
|
+
return (jsx("img", { alt: "Missing", className: clsx(styles.image, className, styles[fit], styles['has-error']), src: fallbackSrc, ...rest }));
|
|
31
|
+
const srcSet = hasError
|
|
32
|
+
? undefined
|
|
33
|
+
: `${image[1]} 1x, ${image[2]} 2x, ${image[3]} 3x`;
|
|
34
|
+
return (jsx("img", { alt: image.altText, className: clsx(styles.image, className, styles[fit], {
|
|
35
|
+
[styles['has-error']]: hasError,
|
|
36
|
+
}), src: hasError ? fallbackSrc : image[3], srcSet: srcSet, ...rest }));
|
|
37
|
+
}
|
|
38
|
+
function PictureComponent({ className, fallbackSrc, fit = 'cover', hasError, image, ...rest }) {
|
|
39
|
+
if (!image)
|
|
40
|
+
return (jsx("picture", { className: clsx(styles.picture, className), children: jsx("img", { alt: "Missing", className: clsx(styles.image, styles[fit], styles['has-error']), src: fallbackSrc, ...rest }) }));
|
|
41
|
+
return (jsxs("picture", { className: clsx(styles.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", { alt: image.altText, className: clsx(styles.image, styles[fit], {
|
|
42
|
+
[styles['has-error']]: hasError,
|
|
43
|
+
}), src: hasError ? fallbackSrc : image.lg[3], ...rest })] }));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { Image };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { Image } from '../image/image.js';
|
|
5
|
+
import styles from './images-grid.module.css.js';
|
|
6
|
+
|
|
7
|
+
const mainImagePosition = {
|
|
8
|
+
1: 0,
|
|
9
|
+
2: 0,
|
|
10
|
+
3: 0,
|
|
11
|
+
4: 0,
|
|
12
|
+
5: 2,
|
|
13
|
+
};
|
|
14
|
+
function ImagesGrid({ images, onSelectImage }) {
|
|
15
|
+
const positionIndex = mainImagePosition[images.length] || 0;
|
|
16
|
+
const imageList = [
|
|
17
|
+
...images.slice(1, positionIndex + 1),
|
|
18
|
+
images[0],
|
|
19
|
+
...images.slice(positionIndex + 1),
|
|
20
|
+
];
|
|
21
|
+
function handleKeydown(event, image) {
|
|
22
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
23
|
+
event.preventDefault();
|
|
24
|
+
onSelectImage?.(image, images.indexOf(image));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return (jsx("div", { className: styles['images-grid'], "data-count": images.length, children: imageList.map((image, index) => image && (jsx("div", { "aria-label": `Open image ${index}`, className: clsx(styles['grid-item'], {
|
|
28
|
+
[styles.clickable]: Boolean(onSelectImage),
|
|
29
|
+
}), onClick: () => onSelectImage?.(image, index), onKeyDown: event => handleKeydown(event, image), role: "button", tabIndex: 0, children: jsx(Image, { className: styles.image, fit: "contain", image: image, title: image.altText }) }, index))) }));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ImagesGrid };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useRef } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import Navigation from '../../node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/modules/navigation.js';
|
|
6
|
+
import Thumb from '../../node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/modules/thumbs.js';
|
|
7
|
+
import { Swiper, SwiperSlide } from '../../node_modules/.pnpm/swiper@11.1.14/node_modules/swiper/swiper-react.js';
|
|
8
|
+
import { CarouselNavigationButton } from '../../carousel/carousel-navigation-button.js';
|
|
9
|
+
import { CarouselPagination } from '../../carousel/pagination/pagination.js';
|
|
10
|
+
import { Image } from '../image/image.js';
|
|
11
|
+
import styles from './image-lightbox.module.css.js';
|
|
12
|
+
|
|
13
|
+
function ImageLightbox({ images, initialSelectedIndex = 0, onZoom, variant = 'sm', }) {
|
|
14
|
+
const [thumbsSwiper, setThumbsSwiper] = useState();
|
|
15
|
+
const [currentIndex, setCurrentIndex] = useState(initialSelectedIndex);
|
|
16
|
+
const nextEl = useRef(null);
|
|
17
|
+
const prevEl = useRef(null);
|
|
18
|
+
const mainSwiperRef = useRef(null);
|
|
19
|
+
function handleZoom(e) {
|
|
20
|
+
const target = e.target;
|
|
21
|
+
const clientRect = target?.getBoundingClientRect();
|
|
22
|
+
if (!clientRect)
|
|
23
|
+
return;
|
|
24
|
+
const height = clientRect.height;
|
|
25
|
+
const clientY = e.clientY - clientRect.top;
|
|
26
|
+
const scrollPercentage = clientY / height;
|
|
27
|
+
onZoom?.({ index: currentIndex, scrollPercentage });
|
|
28
|
+
}
|
|
29
|
+
return (jsxs("div", { className: clsx(styles['image-lightbox'], styles[variant]), children: [jsx(Swiper, { watchSlidesProgress: true, className: styles['thumbs-swiper'], direction: variant === 'sm' ? 'horizontal' : 'vertical', modules: [Thumb], onSwiper: swiper => setThumbsSwiper(swiper), slidesPerView: "auto", spaceBetween: 8, children: images.map((image, index) => (jsx(SwiperSlide, { className: styles.slide, children: jsx("div", { className: styles.thumb, children: jsx(Image, { className: styles.image, fit: "contain", height: 80, image: image, title: "Image", width: 80 }) }) }, index))) }), jsxs("div", { className: styles['main-swiper'], children: [jsx(Swiper, { initialSlide: initialSelectedIndex, modules: [Thumb, Navigation], navigation: {
|
|
30
|
+
nextEl: nextEl.current,
|
|
31
|
+
prevEl: prevEl.current,
|
|
32
|
+
}, onActiveIndexChange: swiper => setCurrentIndex(swiper.activeIndex), onBeforeInit: swiper => (mainSwiperRef.current = swiper), slidesPerView: 1, thumbs: { swiper: thumbsSwiper }, children: images.map((image, index) => (jsx(SwiperSlide, { className: styles.slide, children: jsx("button", { className: styles['active-image'], onClick: handleZoom, type: "button", children: jsx(Image, { className: styles.image, fit: "contain", image: image, title: "Image" }) }) }, index))) }), jsx("div", { className: styles.pagination, children: jsx(CarouselPagination, { contained: true, currentPage: currentIndex + 1, numberOfPages: images.length, onChange: pageNumber => mainSwiperRef.current?.slideTo(pageNumber - 1) }) }), variant === 'lg' && (jsxs(Fragment, { children: [jsx(CarouselNavigationButton, { ref: prevEl, className: clsx(styles['navigation-button'], styles['navigation-button-prev']), direction: "previous" }), jsx(CarouselNavigationButton, { ref: nextEl, className: clsx(styles['navigation-button'], styles['navigation-button-next']), direction: "next" })] }))] })] }));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ImageLightbox };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"image-lightbox":"image-lightbox-module-9k3oJ","slide":"image-lightbox-module-K5Gd0","active-image":"image-lightbox-module-UNPOi","thumb":"image-lightbox-module-PUOMT","image":"image-lightbox-module-4RKLg","main-swiper":"image-lightbox-module-hAy3O","pagination":"image-lightbox-module-nN1Kr","sm":"image-lightbox-module-1idAN","thumbs-swiper":"image-lightbox-module-Xbxcn","lg":"image-lightbox-module--V8Xo","navigation-button":"image-lightbox-module-RP7KS","navigation-button-prev":"image-lightbox-module-wOPYF","navigation-button-next":"image-lightbox-module-knizp"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Modal } from '../../modals/modal/modal.js';
|
|
3
|
+
import { Image } from '../image/image.js';
|
|
4
|
+
import styles from './zoom-image.module.css.js';
|
|
5
|
+
|
|
6
|
+
function ZoomImage({ currentImage, isZoomed = false, onClose, scrollFromTopPercentage = 0.5, }) {
|
|
7
|
+
// TODO: Fix pinch-and-zoom on mobile
|
|
8
|
+
// This feature is currently disabled on mobile devices,
|
|
9
|
+
// because the react-aria modal internally const the hook
|
|
10
|
+
// 'usePreventScroll' which prevents the pinch-and-zoom.
|
|
11
|
+
// To fix this the fullscreen image should not use a modal,
|
|
12
|
+
// but a custom container that allows pinch-and-zoom.
|
|
13
|
+
// Once this is fixed the hook useEnableMobileZoom can be enabled
|
|
14
|
+
// to remove the viewport meta tag temporarily.
|
|
15
|
+
// //useEnableMobileZoom({ isEnabled: isZoomed })
|
|
16
|
+
if (!isZoomed || !currentImage)
|
|
17
|
+
return null;
|
|
18
|
+
return (jsx(Modal, { className: { modal: styles.modal, overlay: styles['zoomed-overlay'] }, hasCloseButton: true, isDismissable: true, isFullScreen: true, isKeyboardDismissDisabled: false, isOpen: isZoomed, onOpenChange: onClose, children: jsx("div", { ref: element => {
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
if (!element)
|
|
21
|
+
return;
|
|
22
|
+
element.scrollTo(0, element.scrollHeight * scrollFromTopPercentage -
|
|
23
|
+
element.clientHeight / 2);
|
|
24
|
+
}, 100);
|
|
25
|
+
}, className: styles['zoomed-container'], onClick: onClose, onKeyUp: () => {
|
|
26
|
+
// Accessibility rules prescribe that an element with a click
|
|
27
|
+
// handler must also be keyboardd accessible.
|
|
28
|
+
// In this case the modal already handles the escape key.
|
|
29
|
+
// This is a no-op at the moment.
|
|
30
|
+
}, role: "link", tabIndex: 0, children: jsx(Image, { className: styles['zoomed-image'], image: currentImage, title: currentImage.altText }) }) }));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ZoomImage };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
4
|
+
import { Dialog } from '../dialog/dialog.js';
|
|
5
|
+
import styles from './confirmation-dialog.module.css.js';
|
|
6
|
+
|
|
7
|
+
function ConfirmationDialog({ cancelLabel = 'Cancel', isOpen, onCancel, onConfirm, submitLabel = 'Continue', title, }) {
|
|
8
|
+
const t = useFormattedMessage();
|
|
9
|
+
return (jsx(Dialog, { isDismissable: true, cancelLabel: t(cancelLabel), className: { dialog: styles['confirmation-dialog'] }, isOpen: isOpen, onOpenChange: onCancel, onSubmit: onConfirm, submitLabel: t(submitLabel), title: title }));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { ConfirmationDialog };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { Dialog as Dialog$1, Form } from 'react-aria-components';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { Button } from '../../buttons/button/button.js';
|
|
6
|
+
import { IconButton } from '../../buttons/icon-button/icon-button.js';
|
|
7
|
+
import { StrokeCloseboxIcon } from '../../icons/stroke/stroke-closebox-icon.js';
|
|
8
|
+
import { FormattedMessage } from '../../intl/formatted-message.js';
|
|
9
|
+
import { Heading } from '../../typography/heading/heading.js';
|
|
10
|
+
import { Modal } from '../modal/modal.js';
|
|
11
|
+
import styles from './dialog.module.css.js';
|
|
12
|
+
|
|
13
|
+
function Footer({ cancelLabel, close, submitLabel }) {
|
|
14
|
+
return (jsxs(Fragment, { children: [jsx(Button, { withArrow: true, color: "primary", size: "md", type: "submit", children: jsx(FormattedMessage, { id: submitLabel }) }), jsx(Button, { color: "secondary", onClick: close, size: "md", variant: "outline", children: jsx(FormattedMessage, { id: cancelLabel }) })] }));
|
|
15
|
+
}
|
|
16
|
+
function Dialog({ allowClose = true, cancelLabel = 'Close', children, className, footer = Footer, hasCloseButton = true, hideTitle, isDismissable, isFullScreen, isKeyboardDismissDisabled, isOpen, onOpenChange, onSubmit, shouldCloseOnInteractOutside, submitLabel = 'Submit', title, validationErrors, }) {
|
|
17
|
+
return (jsx(Modal, { className: clsx(styles['modal-overlay'], typeof className === 'string' ? className : className?.modal), hasCloseButton: false, isDismissable: isDismissable, isFullScreen: isFullScreen, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isOpen: isOpen, onOpenChange: onOpenChange, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside, children: jsx(Dialog$1, { "aria-label": title, className: clsx(styles.dialog, typeof className === 'string' ? undefined : className?.dialog), children: ({ close }) => (jsxs(Form, { className: clsx(styles.form, typeof className === 'string' ? undefined : className?.form), onSubmit: e => {
|
|
18
|
+
e.preventDefault();
|
|
19
|
+
e.stopPropagation();
|
|
20
|
+
onSubmit?.(e);
|
|
21
|
+
}, validationErrors: validationErrors, children: [jsxs("header", { className: clsx(styles.header, typeof className === 'string' ? undefined : className?.header), children: [!hideTitle && (jsx(Heading, { className: clsx(styles.heading, typeof className === 'string'
|
|
22
|
+
? undefined
|
|
23
|
+
: className?.heading), size: "xs", children: title })), hasCloseButton && (jsx("div", { className: clsx(styles.close, typeof className === 'string'
|
|
24
|
+
? undefined
|
|
25
|
+
: className?.close), children: jsx(IconButton, { color: "secondary", isDisabled: !allowClose, onClick: close, children: jsx(StrokeCloseboxIcon, {}) }) }))] }), jsx("div", { className: clsx(styles.content, typeof className === 'string' ? undefined : className?.content), children: children instanceof Function ? children({ close }) : children }), jsx("footer", { className: clsx(styles.footer, typeof className === 'string' ? undefined : className?.footer), children: footer instanceof Function
|
|
26
|
+
? footer({ cancelLabel, close, submitLabel })
|
|
27
|
+
: footer })] })) }) }));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { Dialog };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
|
+
import { Button } from '../../buttons/button/button.js';
|
|
5
|
+
import { Select } from '../../forms/select/select.js';
|
|
6
|
+
import { TextField } from '../../forms/text-field/text-field.js';
|
|
7
|
+
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
8
|
+
import { ProgressCircle } from '../../loading/progress-circle.js';
|
|
9
|
+
import { useCreateWishList } from '../../shared/api/storefront/hooks/wishlist/use-create-wishlist.js';
|
|
10
|
+
import { useFetchWishLists } from '../../shared/api/storefront/hooks/wishlist/use-fetch-wishlists.js';
|
|
11
|
+
import { WishListNameAlreadyExistsError } from '../../shared/api/storefront/services/wishlist-service.js';
|
|
12
|
+
import { Dialog } from '../dialog/dialog.js';
|
|
13
|
+
import styles from './add-to-favorite-dialog.module.css.js';
|
|
14
|
+
|
|
15
|
+
function InnerAddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
16
|
+
const t = useFormattedMessage();
|
|
17
|
+
const { data: newWishListId, error: addWishListError, isPending, isSuccess, mutate: addWishList, } = useCreateWishList();
|
|
18
|
+
const { data: wishLists, error: fetchWishListError, isFetching, } = useFetchWishLists();
|
|
19
|
+
const [selectedWishListid, setSelectedWishListId] = useState();
|
|
20
|
+
const [isCreatingNewList, setIsCreatingNewList] = useState(false);
|
|
21
|
+
const [newWishListName, setNewWishListName] = useState('');
|
|
22
|
+
const isLoading = isPending || isFetching;
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (!isSuccess || !newWishListId || !isOpen)
|
|
25
|
+
return;
|
|
26
|
+
onSubmit(newWishListId);
|
|
27
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
28
|
+
}, [isSuccess]);
|
|
29
|
+
const wishListOptions = wishLists?.wishListCollection?.reduce((options, list) => ({ ...options, [list.id]: list.name }), { new: t('Create new list') }) || { new: t('Create new list') };
|
|
30
|
+
const allowSubmit = Boolean(!isLoading && (isCreatingNewList ? newWishListName : selectedWishListid));
|
|
31
|
+
const allowCancel = !isLoading;
|
|
32
|
+
function handleOnSubmit() {
|
|
33
|
+
if (isCreatingNewList) {
|
|
34
|
+
return addWishList({ name: newWishListName.trim() });
|
|
35
|
+
}
|
|
36
|
+
if (selectedWishListid)
|
|
37
|
+
onSubmit(selectedWishListid);
|
|
38
|
+
}
|
|
39
|
+
return (jsx(Dialog, { allowClose: !isLoading, footer: jsxs("div", { className: styles['footer-button-panel'], children: [jsx(Button, { isDisabled: !allowSubmit, onClick: handleOnSubmit, type: "submit", children: t('Submit') }), jsx(Button, { color: "secondary", isDisabled: !allowCancel, onClick: onCancel, variant: "outline", children: t('Cancel') })] }), isDismissable: true, isKeyboardDismissDisabled: false, isOpen: isOpen, onOpenChange: onCancel, onSubmit: handleOnSubmit, title: t('Add to list'), validationErrors: addWishListError
|
|
40
|
+
? {
|
|
41
|
+
wishListName: addWishListError instanceof WishListNameAlreadyExistsError
|
|
42
|
+
? t('List name already exists')
|
|
43
|
+
: t('An unexpected error occured'),
|
|
44
|
+
}
|
|
45
|
+
: undefined, children: isFetching ? (jsxs("div", { className: styles['loading-panel'], children: [jsx("p", { children: "Loading..." }), jsx(ProgressCircle, {})] })) : fetchWishListError ? (jsx("div", { children: t('An unexpected error occured') })) : (jsxs("div", { className: styles.content, children: [jsx(Select, { isDisabled: isLoading, label: t('Select a list'), onChange: wishListId => {
|
|
46
|
+
const isCreateNewList = wishListId === 'new';
|
|
47
|
+
setIsCreatingNewList(isCreateNewList);
|
|
48
|
+
setSelectedWishListId(isCreateNewList ? undefined : wishListId);
|
|
49
|
+
}, 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 }))] })) }));
|
|
50
|
+
}
|
|
51
|
+
function AddToFavoriteDialog({ isOpen, onCancel, onSubmit, }) {
|
|
52
|
+
/* The inner component is explicitly unmounted to
|
|
53
|
+
* clear out all state between opening and closing
|
|
54
|
+
* of the dialog*/
|
|
55
|
+
if (!isOpen)
|
|
56
|
+
return null;
|
|
57
|
+
return (jsx(InnerAddToFavoriteDialog, { isOpen: isOpen, onCancel: onCancel, onSubmit: onSubmit }));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { AddToFavoriteDialog };
|