ublo-lib 1.31.43 → 1.32.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/es/common/components/admin-links/admin-links.d.ts +11 -0
- package/es/common/components/admin-links/admin-links.d.ts.map +1 -0
- package/es/common/components/admin-links/admin-links.js +52 -95
- package/es/common/components/admin-links/index.d.ts +3 -0
- package/es/common/components/admin-links/index.d.ts.map +1 -0
- package/es/common/components/admin-links/index.js +1 -1
- package/es/common/components/analytics.d.ts +6 -0
- package/es/common/components/analytics.d.ts.map +1 -0
- package/es/common/components/analytics.js +27 -34
- package/es/common/components/breadcrumb.d.ts +16 -0
- package/es/common/components/breadcrumb.d.ts.map +1 -0
- package/es/common/components/breadcrumb.js +24 -79
- package/es/common/components/carousel-zone.d.ts +7 -0
- package/es/common/components/carousel-zone.d.ts.map +1 -0
- package/es/common/components/carousel-zone.js +15 -55
- package/es/common/components/carousel.d.ts +15 -0
- package/es/common/components/carousel.d.ts.map +1 -0
- package/es/common/components/carousel.js +271 -343
- package/es/common/components/cart-preview/api.d.ts +2 -0
- package/es/common/components/cart-preview/api.d.ts.map +1 -0
- package/es/common/components/cart-preview/api.js +13 -18
- package/es/common/components/cart-preview/cart-pill.d.ts +5 -0
- package/es/common/components/cart-preview/cart-pill.d.ts.map +1 -0
- package/es/common/components/cart-preview/cart-pill.js +6 -10
- package/es/common/components/cart-preview/cart-preview.d.ts +6 -0
- package/es/common/components/cart-preview/cart-preview.d.ts.map +1 -0
- package/es/common/components/cart-preview/cart-preview.js +41 -102
- package/es/common/components/cart-preview/index.d.ts +3 -0
- package/es/common/components/cart-preview/index.d.ts.map +1 -0
- package/es/common/components/cart-preview/index.js +1 -1
- package/es/common/components/cart-preview/utils.d.ts +3 -0
- package/es/common/components/cart-preview/utils.d.ts.map +1 -0
- package/es/common/components/cart-preview/utils.js +23 -13
- package/es/common/components/collapsible/collapsible.d.ts +10 -0
- package/es/common/components/collapsible/collapsible.d.ts.map +1 -0
- package/es/common/components/collapsible/collapsible.js +35 -59
- package/es/common/components/collapsible/index.d.ts +3 -0
- package/es/common/components/collapsible/index.d.ts.map +1 -0
- package/es/common/components/collapsible/index.js +1 -1
- package/es/common/components/cookie-consent/cookie-consent.d.ts +8 -0
- package/es/common/components/cookie-consent/cookie-consent.d.ts.map +1 -0
- package/es/common/components/cookie-consent/cookie-consent.js +67 -112
- package/es/common/components/cookie-consent/index.d.ts +5 -0
- package/es/common/components/cookie-consent/index.d.ts.map +1 -0
- package/es/common/components/cookie-consent/index.js +1 -1
- package/es/common/components/cookie-consent/messages.d.ts +2 -0
- package/es/common/components/cookie-consent/messages.d.ts.map +1 -0
- package/es/common/components/cookie-consent/messages.js +27 -27
- package/es/common/components/cookie-consent/utils.d.ts +2 -0
- package/es/common/components/cookie-consent/utils.d.ts.map +1 -0
- package/es/common/components/cookie-consent/utils.js +18 -20
- package/es/common/components/cross-selling-editor/cross-selling-editor.d.ts +19 -0
- package/es/common/components/cross-selling-editor/cross-selling-editor.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/cross-selling-editor.js +22 -53
- package/es/common/components/cross-selling-editor/editor.d.ts +9 -0
- package/es/common/components/cross-selling-editor/editor.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/editor.js +64 -95
- package/es/common/components/cross-selling-editor/hooks/use-custom-offers.d.ts +7 -0
- package/es/common/components/cross-selling-editor/hooks/use-custom-offers.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/hooks/use-custom-offers.js +47 -51
- package/es/common/components/cross-selling-editor/hooks/use-tunnel-offers.d.ts +2 -0
- package/es/common/components/cross-selling-editor/hooks/use-tunnel-offers.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/hooks/use-tunnel-offers.js +30 -31
- package/es/common/components/cross-selling-editor/index.d.ts +3 -0
- package/es/common/components/cross-selling-editor/index.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/index.js +1 -1
- package/es/common/components/cross-selling-editor/override-trigger-form.d.ts +11 -0
- package/es/common/components/cross-selling-editor/override-trigger-form.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/override-trigger-form.js +48 -160
- package/es/common/components/cross-selling-editor/override.d.ts +17 -0
- package/es/common/components/cross-selling-editor/override.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/override.js +89 -155
- package/es/common/components/cross-selling-editor/overrides-list.d.ts +14 -0
- package/es/common/components/cross-selling-editor/overrides-list.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/overrides-list.js +47 -123
- package/es/common/components/cross-selling-editor/rule.d.ts +14 -0
- package/es/common/components/cross-selling-editor/rule.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/rule.js +66 -97
- package/es/common/components/cross-selling-editor/rules.d.ts +12 -0
- package/es/common/components/cross-selling-editor/rules.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/rules.js +21 -76
- package/es/common/components/cross-selling-editor/services/api.d.ts +3 -0
- package/es/common/components/cross-selling-editor/services/api.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/services/api.js +11 -25
- package/es/common/components/cross-selling-editor/services/utils.d.ts +62 -0
- package/es/common/components/cross-selling-editor/services/utils.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/services/utils.js +161 -173
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.d.ts +13 -0
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.js +15 -59
- package/es/common/components/cross-selling-editor/tester.d.ts +10 -0
- package/es/common/components/cross-selling-editor/tester.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/tester.js +83 -187
- package/es/common/components/cross-selling-editor/types.d.ts +30 -0
- package/es/common/components/cross-selling-editor/types.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/types.js +1 -1
- package/es/common/components/custom-contact-form/attachment.d.ts +9 -0
- package/es/common/components/custom-contact-form/attachment.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/attachment.js +109 -201
- package/es/common/components/custom-contact-form/custom-contact-form.d.ts +25 -0
- package/es/common/components/custom-contact-form/custom-contact-form.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/custom-contact-form.js +73 -147
- package/es/common/components/custom-contact-form/field.d.ts +10 -0
- package/es/common/components/custom-contact-form/field.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/field.js +113 -218
- package/es/common/components/custom-contact-form/icons.d.ts +5 -0
- package/es/common/components/custom-contact-form/icons.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/icons.js +8 -50
- package/es/common/components/custom-contact-form/index.d.ts +3 -0
- package/es/common/components/custom-contact-form/index.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/index.js +1 -1
- package/es/common/components/custom-contact-form/messages.d.ts +2 -0
- package/es/common/components/custom-contact-form/messages.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/messages.js +78 -77
- package/es/common/components/custom-contact-form/utils.d.ts +30 -0
- package/es/common/components/custom-contact-form/utils.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/utils.js +96 -122
- package/es/common/components/date-picker/calendar.d.ts +14 -0
- package/es/common/components/date-picker/calendar.d.ts.map +1 -0
- package/es/common/components/date-picker/calendar.js +111 -250
- package/es/common/components/date-picker/data.d.ts +87 -0
- package/es/common/components/date-picker/data.d.ts.map +1 -0
- package/es/common/components/date-picker/data.js +72 -78
- package/es/common/components/date-picker/date-item.d.ts +21 -0
- package/es/common/components/date-picker/date-item.d.ts.map +1 -0
- package/es/common/components/date-picker/date-item.js +120 -117
- package/es/common/components/date-picker/date-picker.d.ts +16 -0
- package/es/common/components/date-picker/date-picker.d.ts.map +1 -0
- package/es/common/components/date-picker/date-picker.js +23 -56
- package/es/common/components/date-picker/helper.d.ts +9 -0
- package/es/common/components/date-picker/helper.d.ts.map +1 -0
- package/es/common/components/date-picker/helper.js +20 -51
- package/es/common/components/date-picker/index.d.ts +4 -0
- package/es/common/components/date-picker/index.d.ts.map +1 -0
- package/es/common/components/date-picker/index.js +1 -1
- package/es/common/components/date-picker/messages.d.ts +2 -0
- package/es/common/components/date-picker/messages.d.ts.map +1 -0
- package/es/common/components/date-picker/messages.js +47 -46
- package/es/common/components/date-picker/month.d.ts +20 -0
- package/es/common/components/date-picker/month.d.ts.map +1 -0
- package/es/common/components/date-picker/month.js +16 -72
- package/es/common/components/date-picker/utils.d.ts +25 -0
- package/es/common/components/date-picker/utils.d.ts.map +1 -0
- package/es/common/components/date-picker/utils.js +104 -88
- package/es/common/components/editable-calendar/calendar-caption.d.ts +5 -0
- package/es/common/components/editable-calendar/calendar-caption.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-caption.js +80 -144
- package/es/common/components/editable-calendar/calendar-date.d.ts +12 -0
- package/es/common/components/editable-calendar/calendar-date.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-date.js +61 -79
- package/es/common/components/editable-calendar/calendar-editor.d.ts +7 -0
- package/es/common/components/editable-calendar/calendar-editor.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-editor.js +38 -83
- package/es/common/components/editable-calendar/calendar-header.d.ts +8 -0
- package/es/common/components/editable-calendar/calendar-header.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-header.js +4 -26
- package/es/common/components/editable-calendar/calendar.d.ts +6 -0
- package/es/common/components/editable-calendar/calendar.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar.js +64 -115
- package/es/common/components/editable-calendar/data.d.ts +132 -0
- package/es/common/components/editable-calendar/data.d.ts.map +1 -0
- package/es/common/components/editable-calendar/data.js +95 -101
- package/es/common/components/editable-calendar/index.d.ts +2 -0
- package/es/common/components/editable-calendar/index.d.ts.map +1 -0
- package/es/common/components/editable-calendar/index.js +38 -49
- package/es/common/components/editable-calendar/utils.d.ts +19 -0
- package/es/common/components/editable-calendar/utils.d.ts.map +1 -0
- package/es/common/components/editable-calendar/utils.js +58 -52
- package/es/common/components/editable-map/cluster.d.ts +5 -0
- package/es/common/components/editable-map/cluster.d.ts.map +1 -0
- package/es/common/components/editable-map/cluster.js +6 -12
- package/es/common/components/editable-map/edit-form.d.ts +7 -0
- package/es/common/components/editable-map/edit-form.d.ts.map +1 -0
- package/es/common/components/editable-map/edit-form.js +22 -97
- package/es/common/components/editable-map/editable-map.d.ts +6 -0
- package/es/common/components/editable-map/editable-map.d.ts.map +1 -0
- package/es/common/components/editable-map/editable-map.js +40 -111
- package/es/common/components/editable-map/full-screen-button.d.ts +6 -0
- package/es/common/components/editable-map/full-screen-button.d.ts.map +1 -0
- package/es/common/components/editable-map/full-screen-button.js +60 -59
- package/es/common/components/editable-map/helper.d.ts +2 -0
- package/es/common/components/editable-map/helper.d.ts.map +1 -0
- package/es/common/components/editable-map/helper.js +3 -23
- package/es/common/components/editable-map/icon-picker.d.ts +6 -0
- package/es/common/components/editable-map/icon-picker.d.ts.map +1 -0
- package/es/common/components/editable-map/icon-picker.js +26 -63
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts +51 -0
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/esf-pralognan.js +54 -1085
- package/es/common/components/editable-map/icons/esf.d.ts +39 -0
- package/es/common/components/editable-map/icons/esf.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/esf.js +43 -755
- package/es/common/components/editable-map/icons/index.d.ts +7 -0
- package/es/common/components/editable-map/icons/index.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/index.js +1 -1
- package/es/common/components/editable-map/icons/lavovelo.d.ts +5 -0
- package/es/common/components/editable-map/icons/lavovelo.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/lavovelo.js +8 -84
- package/es/common/components/editable-map/icons/sata-huez.d.ts +29 -0
- package/es/common/components/editable-map/icons/sata-huez.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/sata-huez.js +32 -466
- package/es/common/components/editable-map/icons/sedev-vars.d.ts +29 -0
- package/es/common/components/editable-map/icons/sedev-vars.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/sedev-vars.js +32 -466
- package/es/common/components/editable-map/icons/viarmonia.d.ts +3 -0
- package/es/common/components/editable-map/icons/viarmonia.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/viarmonia.js +6 -40
- package/es/common/components/editable-map/index.d.ts +5 -0
- package/es/common/components/editable-map/index.d.ts.map +1 -0
- package/es/common/components/editable-map/index.js +62 -74
- package/es/common/components/editable-map/map-events.d.ts +10 -0
- package/es/common/components/editable-map/map-events.d.ts.map +1 -0
- package/es/common/components/editable-map/map-events.js +32 -40
- package/es/common/components/editable-map/marker-list.d.ts +7 -0
- package/es/common/components/editable-map/marker-list.d.ts.map +1 -0
- package/es/common/components/editable-map/marker-list.js +54 -87
- package/es/common/components/editable-map/markers.d.ts +7 -0
- package/es/common/components/editable-map/markers.d.ts.map +1 -0
- package/es/common/components/editable-map/markers.js +35 -88
- package/es/common/components/editable-map/popup-data.d.ts +4 -0
- package/es/common/components/editable-map/popup-data.d.ts.map +1 -0
- package/es/common/components/editable-map/popup-data.js +9 -35
- package/es/common/components/editable-map/slopes-toggle.d.ts +5 -0
- package/es/common/components/editable-map/slopes-toggle.d.ts.map +1 -0
- package/es/common/components/editable-map/slopes-toggle.js +8 -18
- package/es/common/components/error-404/error-404.d.ts +6 -0
- package/es/common/components/error-404/error-404.d.ts.map +1 -0
- package/es/common/components/error-404/error-404.js +13 -42
- package/es/common/components/error-404/index.d.ts +3 -0
- package/es/common/components/error-404/index.d.ts.map +1 -0
- package/es/common/components/error-404/index.js +1 -1
- package/es/common/components/error-404/messages.d.ts +2 -0
- package/es/common/components/error-404/messages.d.ts.map +1 -0
- package/es/common/components/error-404/messages.js +13 -13
- package/es/common/components/faq.d.ts +7 -0
- package/es/common/components/faq.d.ts.map +1 -0
- package/es/common/components/faq.js +43 -49
- package/es/common/components/gesco-contact-form/gesco-contact-form.d.ts +18 -0
- package/es/common/components/gesco-contact-form/gesco-contact-form.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/gesco-contact-form.js +93 -247
- package/es/common/components/gesco-contact-form/hooks/use-params.d.ts +15 -0
- package/es/common/components/gesco-contact-form/hooks/use-params.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/hooks/use-params.js +20 -35
- package/es/common/components/gesco-contact-form/index.d.ts +3 -0
- package/es/common/components/gesco-contact-form/index.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/index.js +1 -1
- package/es/common/components/gesco-contact-form/phone-code-select.d.ts +7 -0
- package/es/common/components/gesco-contact-form/phone-code-select.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/phone-code-select.js +56 -76
- package/es/common/components/gesco-contact-form/services/api.d.ts +30 -0
- package/es/common/components/gesco-contact-form/services/api.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/services/api.js +7 -7
- package/es/common/components/gesco-contact-form/services/form.d.ts +31 -0
- package/es/common/components/gesco-contact-form/services/form.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/services/form.js +22 -39
- package/es/common/components/gesco-contact-form/services/messages.d.ts +34 -0
- package/es/common/components/gesco-contact-form/services/messages.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/services/messages.js +65 -68
- package/es/common/components/gesco-contact-form/services/plausible.d.ts +3 -0
- package/es/common/components/gesco-contact-form/services/plausible.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/services/plausible.js +9 -8
- package/es/common/components/gesco-contact-form/types.d.ts +34 -0
- package/es/common/components/gesco-contact-form/types.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/types.js +1 -1
- package/es/common/components/info-buttons.d.ts +8 -0
- package/es/common/components/info-buttons.d.ts.map +1 -0
- package/es/common/components/info-buttons.js +75 -94
- package/es/common/components/information/index.d.ts +3 -0
- package/es/common/components/information/index.d.ts.map +1 -0
- package/es/common/components/information/index.js +1 -1
- package/es/common/components/information/information.d.ts +6 -0
- package/es/common/components/information/information.d.ts.map +1 -0
- package/es/common/components/information/information.js +31 -50
- package/es/common/components/instant-search/hooks/use-constant.d.ts +2 -0
- package/es/common/components/instant-search/hooks/use-constant.d.ts.map +1 -0
- package/es/common/components/instant-search/hooks/use-constant.js +6 -8
- package/es/common/components/instant-search/hooks/use-debounced-search.d.ts +7 -0
- package/es/common/components/instant-search/hooks/use-debounced-search.d.ts.map +1 -0
- package/es/common/components/instant-search/hooks/use-debounced-search.js +5 -14
- package/es/common/components/instant-search/hooks/use-search.d.ts +16 -0
- package/es/common/components/instant-search/hooks/use-search.d.ts.map +1 -0
- package/es/common/components/instant-search/hooks/use-search.js +6 -10
- package/es/common/components/instant-search/index.d.ts +3 -0
- package/es/common/components/instant-search/index.d.ts.map +1 -0
- package/es/common/components/instant-search/index.js +1 -1
- package/es/common/components/instant-search/input.d.ts +15 -0
- package/es/common/components/instant-search/input.d.ts.map +1 -0
- package/es/common/components/instant-search/input.js +45 -75
- package/es/common/components/instant-search/instant-search.d.ts +19 -0
- package/es/common/components/instant-search/instant-search.d.ts.map +1 -0
- package/es/common/components/instant-search/instant-search.js +71 -124
- package/es/common/components/instant-search/links.d.ts +12 -0
- package/es/common/components/instant-search/links.d.ts.map +1 -0
- package/es/common/components/instant-search/links.js +23 -74
- package/es/common/components/instant-search/no-product.d.ts +6 -0
- package/es/common/components/instant-search/no-product.d.ts.map +1 -0
- package/es/common/components/instant-search/no-product.js +4 -81
- package/es/common/components/instant-search/products.d.ts +14 -0
- package/es/common/components/instant-search/products.d.ts.map +1 -0
- package/es/common/components/instant-search/products.js +31 -118
- package/es/common/components/instant-search/results.d.ts +76 -0
- package/es/common/components/instant-search/results.d.ts.map +1 -0
- package/es/common/components/instant-search/results.js +32 -121
- package/es/common/components/instant-search/services/api.d.ts +2 -0
- package/es/common/components/instant-search/services/api.d.ts.map +1 -0
- package/es/common/components/instant-search/services/api.js +9 -12
- package/es/common/components/instant-search/services/dates.d.ts +2 -0
- package/es/common/components/instant-search/services/dates.d.ts.map +1 -0
- package/es/common/components/instant-search/services/dates.js +38 -36
- package/es/common/components/instant-search/services/messages.d.ts +2 -0
- package/es/common/components/instant-search/services/messages.d.ts.map +1 -0
- package/es/common/components/instant-search/services/messages.js +3 -3
- package/es/common/components/instant-search/services/utils.d.ts +4 -0
- package/es/common/components/instant-search/services/utils.d.ts.map +1 -0
- package/es/common/components/instant-search/services/utils.js +34 -34
- package/es/common/components/msem-preset-editor/components/facet-selector.d.ts +6 -0
- package/es/common/components/msem-preset-editor/components/facet-selector.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/components/facet-selector.js +22 -39
- package/es/common/components/msem-preset-editor/components/form.d.ts +8 -0
- package/es/common/components/msem-preset-editor/components/form.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/components/form.js +5 -54
- package/es/common/components/msem-preset-editor/components/stay-picker.d.ts +14 -0
- package/es/common/components/msem-preset-editor/components/stay-picker.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/components/stay-picker.js +33 -72
- package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts +12 -0
- package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/components/widget-list-item.js +49 -131
- package/es/common/components/msem-preset-editor/components/widget-list.d.ts +17 -0
- package/es/common/components/msem-preset-editor/components/widget-list.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/components/widget-list.js +29 -54
- package/es/common/components/msem-preset-editor/editor-dialog.d.ts +30 -0
- package/es/common/components/msem-preset-editor/editor-dialog.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editor-dialog.js +21 -68
- package/es/common/components/msem-preset-editor/editors/elloha.d.ts +15 -0
- package/es/common/components/msem-preset-editor/editors/elloha.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/elloha.js +68 -102
- package/es/common/components/msem-preset-editor/editors/index.d.ts +16 -0
- package/es/common/components/msem-preset-editor/editors/index.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/index.js +7 -7
- package/es/common/components/msem-preset-editor/editors/lodgings.d.ts +17 -0
- package/es/common/components/msem-preset-editor/editors/lodgings.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/lodgings.js +175 -316
- package/es/common/components/msem-preset-editor/editors/ski-passes-jb.d.ts +16 -0
- package/es/common/components/msem-preset-editor/editors/ski-passes-jb.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/ski-passes-jb.js +74 -119
- package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts +16 -0
- package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/ski-passes.js +180 -267
- package/es/common/components/msem-preset-editor/editors/standard-products.d.ts +16 -0
- package/es/common/components/msem-preset-editor/editors/standard-products.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/standard-products.js +55 -84
- package/es/common/components/msem-preset-editor/editors/vakario.d.ts +15 -0
- package/es/common/components/msem-preset-editor/editors/vakario.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/vakario.js +167 -240
- package/es/common/components/msem-preset-editor/index.d.ts +3 -0
- package/es/common/components/msem-preset-editor/index.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/index.js +1 -1
- package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts +28 -0
- package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/msem-preset-editor.js +137 -227
- package/es/common/components/msem-preset-editor/services/api.d.ts +15 -0
- package/es/common/components/msem-preset-editor/services/api.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/services/api.js +40 -69
- package/es/common/components/msem-preset-editor/services/offers.d.ts +23 -0
- package/es/common/components/msem-preset-editor/services/offers.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/services/offers.js +45 -76
- package/es/common/components/msem-preset-editor/services/preset.d.ts +32 -0
- package/es/common/components/msem-preset-editor/services/preset.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/services/preset.js +18 -26
- package/es/common/components/msem-preset-editor/services/url-params.d.ts +3 -0
- package/es/common/components/msem-preset-editor/services/url-params.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/services/url-params.js +24 -24
- package/es/common/components/msem-preset-linker/components/actions.d.ts +11 -0
- package/es/common/components/msem-preset-linker/components/actions.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/components/actions.js +40 -52
- package/es/common/components/msem-preset-linker/components/overlays.d.ts +8 -0
- package/es/common/components/msem-preset-linker/components/overlays.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/components/overlays.js +44 -60
- package/es/common/components/msem-preset-linker/components/resort-selector.d.ts +6 -0
- package/es/common/components/msem-preset-linker/components/resort-selector.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/components/resort-selector.js +11 -21
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts +5 -0
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.js +31 -48
- package/es/common/components/msem-preset-linker/index.d.ts +3 -0
- package/es/common/components/msem-preset-linker/index.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/index.js +1 -1
- package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts +30 -0
- package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/msem-preset-linker.js +42 -72
- package/es/common/components/msem-preset-linker/services/url-params.d.ts +2 -0
- package/es/common/components/msem-preset-linker/services/url-params.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/services/url-params.js +13 -10
- package/es/common/components/packages-selector/index.d.ts +7 -0
- package/es/common/components/packages-selector/index.d.ts.map +1 -0
- package/es/common/components/packages-selector/index.js +21 -49
- package/es/common/components/plausible/hooks/use-plausible.d.ts +12 -0
- package/es/common/components/plausible/hooks/use-plausible.d.ts.map +1 -0
- package/es/common/components/plausible/hooks/use-plausible.js +18 -22
- package/es/common/components/plausible/index.d.ts +8 -0
- package/es/common/components/plausible/index.d.ts.map +1 -0
- package/es/common/components/plausible/index.js +1 -1
- package/es/common/components/plausible/plausible.d.ts +7 -0
- package/es/common/components/plausible/plausible.d.ts.map +1 -0
- package/es/common/components/plausible/plausible.js +13 -23
- package/es/common/components/plausible/services/callback.d.ts +24 -0
- package/es/common/components/plausible/services/callback.d.ts.map +1 -0
- package/es/common/components/plausible/services/callback.js +117 -186
- package/es/common/components/plausible/services/load.d.ts +2 -0
- package/es/common/components/plausible/services/load.d.ts.map +1 -0
- package/es/common/components/plausible/services/load.js +6 -4
- package/es/common/components/plausible/services/send-goal.d.ts +7 -0
- package/es/common/components/plausible/services/send-goal.d.ts.map +1 -0
- package/es/common/components/plausible/services/send-goal.js +3 -6
- package/es/common/components/popup.d.ts +6 -0
- package/es/common/components/popup.d.ts.map +1 -0
- package/es/common/components/popup.js +21 -80
- package/es/common/components/scroll-spy.d.ts +14 -0
- package/es/common/components/scroll-spy.d.ts.map +1 -0
- package/es/common/components/scroll-spy.js +43 -56
- package/es/common/components/scrolling-carousel/index.d.ts +3 -0
- package/es/common/components/scrolling-carousel/index.d.ts.map +1 -0
- package/es/common/components/scrolling-carousel/index.js +1 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts +8 -0
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +1 -0
- package/es/common/components/scrolling-carousel/scrolling-carousel.js +55 -94
- package/es/common/components/search-bar/hooks/use-constant.d.ts +2 -0
- package/es/common/components/search-bar/hooks/use-constant.d.ts.map +1 -0
- package/es/common/components/search-bar/hooks/use-constant.js +6 -8
- package/es/common/components/search-bar/hooks/use-debounced-search.d.ts +7 -0
- package/es/common/components/search-bar/hooks/use-debounced-search.d.ts.map +1 -0
- package/es/common/components/search-bar/hooks/use-debounced-search.js +5 -14
- package/es/common/components/search-bar/hooks/use-search.d.ts +12 -0
- package/es/common/components/search-bar/hooks/use-search.d.ts.map +1 -0
- package/es/common/components/search-bar/hooks/use-search.js +5 -11
- package/es/common/components/search-bar/index.d.ts +3 -0
- package/es/common/components/search-bar/index.d.ts.map +1 -0
- package/es/common/components/search-bar/index.js +1 -1
- package/es/common/components/search-bar/messages.d.ts +15 -0
- package/es/common/components/search-bar/messages.d.ts.map +1 -0
- package/es/common/components/search-bar/messages.js +16 -16
- package/es/common/components/search-bar/search-bar.d.ts +13 -0
- package/es/common/components/search-bar/search-bar.d.ts.map +1 -0
- package/es/common/components/search-bar/search-bar.js +134 -204
- package/es/common/components/search-bar/utils/fetcher.d.ts +2 -0
- package/es/common/components/search-bar/utils/fetcher.d.ts.map +1 -0
- package/es/common/components/search-bar/utils/fetcher.js +6 -12
- package/es/common/components/search-bar/utils/keyboard-keys.d.ts +6 -0
- package/es/common/components/search-bar/utils/keyboard-keys.d.ts.map +1 -0
- package/es/common/components/search-bar/utils/keyboard-keys.js +1 -1
- package/es/common/components/search-bar/utils/params.d.ts +2 -0
- package/es/common/components/search-bar/utils/params.d.ts.map +1 -0
- package/es/common/components/search-bar/utils/params.js +11 -8
- package/es/common/components/tabbed-zones.d.ts +12 -0
- package/es/common/components/tabbed-zones.d.ts.map +1 -0
- package/es/common/components/tabbed-zones.js +47 -100
- package/es/common/components/video-player/controls.d.ts +17 -0
- package/es/common/components/video-player/controls.d.ts.map +1 -0
- package/es/common/components/video-player/controls.js +37 -114
- package/es/common/components/video-player/icons.d.ts +7 -0
- package/es/common/components/video-player/icons.d.ts.map +1 -0
- package/es/common/components/video-player/icons.js +8 -48
- package/es/common/components/video-player/index.d.ts +2 -0
- package/es/common/components/video-player/index.d.ts.map +1 -0
- package/es/common/components/video-player/index.js +1 -1
- package/es/common/components/video-player/utils.d.ts +5 -0
- package/es/common/components/video-player/utils.d.ts.map +1 -0
- package/es/common/components/video-player/utils.js +42 -34
- package/es/common/components/video-player/video-player.d.ts +10 -0
- package/es/common/components/video-player/video-player.d.ts.map +1 -0
- package/es/common/components/video-player/video-player.js +63 -101
- package/es/common/hooks/use-account.d.ts +7 -0
- package/es/common/hooks/use-account.d.ts.map +1 -0
- package/es/common/hooks/use-account.js +22 -25
- package/es/common/hooks/use-faq.d.ts +3 -0
- package/es/common/hooks/use-faq.d.ts.map +1 -0
- package/es/common/hooks/use-faq.js +36 -37
- package/es/common/hooks/use-in-view.d.ts +5 -0
- package/es/common/hooks/use-in-view.d.ts.map +1 -0
- package/es/common/hooks/use-in-view.js +74 -74
- package/es/common/hooks/use-injected-cms-markup.d.ts +3 -0
- package/es/common/hooks/use-injected-cms-markup.d.ts.map +1 -0
- package/es/common/hooks/use-injected-cms-markup.js +37 -39
- package/es/common/hooks/use-packages.d.ts +3 -0
- package/es/common/hooks/use-packages.d.ts.map +1 -0
- package/es/common/hooks/use-packages.js +90 -97
- package/es/common/hooks/use-scroll-direction.d.ts +11 -0
- package/es/common/hooks/use-scroll-direction.d.ts.map +1 -0
- package/es/common/hooks/use-scroll-direction.js +32 -37
- package/es/common/hooks/use-stay.d.ts +4 -0
- package/es/common/hooks/use-stay.d.ts.map +1 -0
- package/es/common/hooks/use-stay.js +13 -16
- package/es/common/hooks/use-sticky.d.ts +4 -0
- package/es/common/hooks/use-sticky.d.ts.map +1 -0
- package/es/common/hooks/use-sticky.js +35 -35
- package/es/common/hooks/use-tunnel.d.ts +11 -0
- package/es/common/hooks/use-tunnel.d.ts.map +1 -0
- package/es/common/hooks/use-tunnel.js +44 -51
- package/es/common/hooks/use-update-effect.d.ts +2 -0
- package/es/common/hooks/use-update-effect.d.ts.map +1 -0
- package/es/common/hooks/use-update-effect.js +9 -9
- package/es/common/hooks/use-window-sizes.d.ts +7 -0
- package/es/common/hooks/use-window-sizes.d.ts.map +1 -0
- package/es/common/hooks/use-window-sizes.js +28 -29
- package/es/common/hooks/use-youtube-popup.d.ts +3 -0
- package/es/common/hooks/use-youtube-popup.d.ts.map +1 -0
- package/es/common/hooks/use-youtube-popup.js +44 -53
- package/es/common/hooks/use-zone-sync.d.ts +3 -0
- package/es/common/hooks/use-zone-sync.d.ts.map +1 -0
- package/es/common/hooks/use-zone-sync.js +52 -52
- package/es/common/utils/cms.d.ts +4 -0
- package/es/common/utils/cms.d.ts.map +1 -0
- package/es/common/utils/cms.js +17 -15
- package/es/common/utils/cookies.d.ts +2 -0
- package/es/common/utils/cookies.d.ts.map +1 -0
- package/es/common/utils/cookies.js +11 -10
- package/es/common/utils/copy.d.ts +2 -0
- package/es/common/utils/copy.d.ts.map +1 -0
- package/es/common/utils/copy.js +11 -11
- package/es/common/utils/dates.d.ts +2 -0
- package/es/common/utils/dates.d.ts.map +1 -0
- package/es/common/utils/dates.js +10 -8
- package/es/common/utils/elements.d.ts +5 -0
- package/es/common/utils/elements.d.ts.map +1 -0
- package/es/common/utils/elements.js +15 -14
- package/es/common/utils/events.d.ts +4 -0
- package/es/common/utils/events.d.ts.map +1 -0
- package/es/common/utils/events.js +2 -4
- package/es/common/utils/fetcher.d.ts +5 -0
- package/es/common/utils/fetcher.d.ts.map +1 -0
- package/es/common/utils/fetcher.js +37 -27
- package/es/common/utils/file-manager.d.ts +13 -0
- package/es/common/utils/file-manager.d.ts.map +1 -0
- package/es/common/utils/file-manager.js +10 -12
- package/es/common/utils/load-js.d.ts +3 -0
- package/es/common/utils/load-js.d.ts.map +1 -0
- package/es/common/utils/load-js.js +11 -10
- package/es/common/utils/msem-widget.d.ts +16 -0
- package/es/common/utils/msem-widget.d.ts.map +1 -0
- package/es/common/utils/msem-widget.js +30 -36
- package/es/common/utils/scrollbar-size.d.ts +2 -0
- package/es/common/utils/scrollbar-size.d.ts.map +1 -0
- package/es/common/utils/scrollbar-size.js +1 -1
- package/es/common/utils/touch-device.d.ts +2 -0
- package/es/common/utils/touch-device.d.ts.map +1 -0
- package/es/common/utils/touch-device.js +3 -1
- package/es/common/utils/url-parameters.d.ts +2 -0
- package/es/common/utils/url-parameters.d.ts.map +1 -0
- package/es/common/utils/url-parameters.js +7 -11
- package/es/esf/components/account-button/account-button.d.ts +14 -0
- package/es/esf/components/account-button/account-button.d.ts.map +1 -0
- package/es/esf/components/account-button/account-button.js +8 -35
- package/es/esf/components/account-button/index.d.ts +3 -0
- package/es/esf/components/account-button/index.d.ts.map +1 -0
- package/es/esf/components/account-button/index.js +1 -1
- package/es/esf/components/booking-form/booking-form.d.ts +3 -0
- package/es/esf/components/booking-form/booking-form.d.ts.map +1 -0
- package/es/esf/components/booking-form/booking-form.js +24 -65
- package/es/esf/components/booking-form/data.d.ts +335 -0
- package/es/esf/components/booking-form/data.d.ts.map +1 -0
- package/es/esf/components/booking-form/data.js +212 -206
- package/es/esf/components/booking-form/field.d.ts +10 -0
- package/es/esf/components/booking-form/field.d.ts.map +1 -0
- package/es/esf/components/booking-form/field.js +80 -102
- package/es/esf/components/booking-form/hooks/use-custom-fields.d.ts +3 -0
- package/es/esf/components/booking-form/hooks/use-custom-fields.d.ts.map +1 -0
- package/es/esf/components/booking-form/hooks/use-custom-fields.js +17 -23
- package/es/esf/components/booking-form/hooks/use-stay.d.ts +3 -0
- package/es/esf/components/booking-form/hooks/use-stay.d.ts.map +1 -0
- package/es/esf/components/booking-form/hooks/use-stay.js +9 -9
- package/es/esf/components/booking-form/index.d.ts +3 -0
- package/es/esf/components/booking-form/index.d.ts.map +1 -0
- package/es/esf/components/booking-form/index.js +1 -1
- package/es/esf/components/booking-form/lesson.d.ts +9 -0
- package/es/esf/components/booking-form/lesson.d.ts.map +1 -0
- package/es/esf/components/booking-form/lesson.js +18 -48
- package/es/esf/components/booking-form/lessons.d.ts +12 -0
- package/es/esf/components/booking-form/lessons.d.ts.map +1 -0
- package/es/esf/components/booking-form/lessons.js +41 -77
- package/es/esf/components/booking-form/messages.d.ts +2 -0
- package/es/esf/components/booking-form/messages.d.ts.map +1 -0
- package/es/esf/components/booking-form/messages.js +51 -50
- package/es/esf/components/booking-form/personal-data.d.ts +10 -0
- package/es/esf/components/booking-form/personal-data.d.ts.map +1 -0
- package/es/esf/components/booking-form/personal-data.js +17 -55
- package/es/esf/components/booking-form/progress-bar.d.ts +6 -0
- package/es/esf/components/booking-form/progress-bar.d.ts.map +1 -0
- package/es/esf/components/booking-form/progress-bar.js +12 -29
- package/es/esf/components/booking-form/steps.d.ts +14 -0
- package/es/esf/components/booking-form/steps.d.ts.map +1 -0
- package/es/esf/components/booking-form/steps.js +33 -70
- package/es/esf/components/booking-form/summary.d.ts +11 -0
- package/es/esf/components/booking-form/summary.d.ts.map +1 -0
- package/es/esf/components/booking-form/summary.js +60 -134
- package/es/esf/components/booking-form/utils.d.ts +6 -0
- package/es/esf/components/booking-form/utils.d.ts.map +1 -0
- package/es/esf/components/booking-form/utils.js +41 -55
- package/es/esf/components/covid-link/index.d.ts +3 -0
- package/es/esf/components/covid-link/index.d.ts.map +1 -0
- package/es/esf/components/covid-link/index.js +2 -2
- package/es/esf/components/covid-link/mask-icon.d.ts +3 -0
- package/es/esf/components/covid-link/mask-icon.d.ts.map +1 -0
- package/es/esf/components/covid-link/mask-icon.js +3 -15
- package/es/esf/components/covid-link/vax-pass-icon.d.ts +3 -0
- package/es/esf/components/covid-link/vax-pass-icon.d.ts.map +1 -0
- package/es/esf/components/covid-link/vax-pass-icon.js +3 -32
- package/es/esf/components/cp-form.d.ts +15 -0
- package/es/esf/components/cp-form.d.ts.map +1 -0
- package/es/esf/components/cp-form.js +50 -58
- package/es/esf/components/instructors-book/api.d.ts +4 -0
- package/es/esf/components/instructors-book/api.d.ts.map +1 -0
- package/es/esf/components/instructors-book/api.js +51 -53
- package/es/esf/components/instructors-book/book.d.ts +5 -0
- package/es/esf/components/instructors-book/book.d.ts.map +1 -0
- package/es/esf/components/instructors-book/book.js +54 -75
- package/es/esf/components/instructors-book/filters.d.ts +9 -0
- package/es/esf/components/instructors-book/filters.d.ts.map +1 -0
- package/es/esf/components/instructors-book/filters.js +20 -56
- package/es/esf/components/instructors-book/flags.d.ts +34 -0
- package/es/esf/components/instructors-book/flags.d.ts.map +1 -0
- package/es/esf/components/instructors-book/flags.js +33 -246
- package/es/esf/components/instructors-book/index.d.ts +7 -0
- package/es/esf/components/instructors-book/index.d.ts.map +1 -0
- package/es/esf/components/instructors-book/index.js +1 -1
- package/es/esf/components/instructors-book/instructor.d.ts +8 -0
- package/es/esf/components/instructors-book/instructor.d.ts.map +1 -0
- package/es/esf/components/instructors-book/instructor.js +34 -103
- package/es/esf/components/instructors-book/list.d.ts +10 -0
- package/es/esf/components/instructors-book/list.d.ts.map +1 -0
- package/es/esf/components/instructors-book/list.js +14 -40
- package/es/esf/components/instructors-book/messages.d.ts +2 -0
- package/es/esf/components/instructors-book/messages.d.ts.map +1 -0
- package/es/esf/components/instructors-book/messages.js +38 -38
- package/es/esf/components/instructors-book/prefixes.d.ts +6 -0
- package/es/esf/components/instructors-book/prefixes.d.ts.map +1 -0
- package/es/esf/components/instructors-book/prefixes.js +3 -3
- package/es/esf/components/instructors-book/sheet.d.ts +8 -0
- package/es/esf/components/instructors-book/sheet.d.ts.map +1 -0
- package/es/esf/components/instructors-book/sheet.js +37 -161
- package/es/esf/components/instructors-book/suggestions.d.ts +7 -0
- package/es/esf/components/instructors-book/suggestions.d.ts.map +1 -0
- package/es/esf/components/instructors-book/suggestions.js +25 -51
- package/es/esf/components/instructors-book/utils.d.ts +14 -0
- package/es/esf/components/instructors-book/utils.d.ts.map +1 -0
- package/es/esf/components/instructors-book/utils.js +42 -39
- package/es/esf/components/levels/detail.d.ts +5 -0
- package/es/esf/components/levels/detail.d.ts.map +1 -0
- package/es/esf/components/levels/detail.js +4 -34
- package/es/esf/components/levels/index.d.ts +3 -0
- package/es/esf/components/levels/index.d.ts.map +1 -0
- package/es/esf/components/levels/index.js +1 -1
- package/es/esf/components/levels/levels.d.ts +5 -0
- package/es/esf/components/levels/levels.d.ts.map +1 -0
- package/es/esf/components/levels/levels.js +199 -324
- package/es/esf/components/loyal-customers/api.d.ts +5 -0
- package/es/esf/components/loyal-customers/api.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/api.js +10 -18
- package/es/esf/components/loyal-customers/components/bin-icon.d.ts +3 -0
- package/es/esf/components/loyal-customers/components/bin-icon.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/bin-icon.js +3 -25
- package/es/esf/components/loyal-customers/components/customer-form.d.ts +18 -0
- package/es/esf/components/loyal-customers/components/customer-form.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/customer-form.js +29 -88
- package/es/esf/components/loyal-customers/components/field.d.ts +9 -0
- package/es/esf/components/loyal-customers/components/field.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/field.js +67 -91
- package/es/esf/components/loyal-customers/components/row.d.ts +10 -0
- package/es/esf/components/loyal-customers/components/row.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/row.js +10 -66
- package/es/esf/components/loyal-customers/components/rows.d.ts +9 -0
- package/es/esf/components/loyal-customers/components/rows.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/rows.js +10 -30
- package/es/esf/components/loyal-customers/components/stay.d.ts +5 -0
- package/es/esf/components/loyal-customers/components/stay.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/stay.js +13 -30
- package/es/esf/components/loyal-customers/components/student-form.d.ts +10 -0
- package/es/esf/components/loyal-customers/components/student-form.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/student-form.js +28 -105
- package/es/esf/components/loyal-customers/components/voucher.d.ts +7 -0
- package/es/esf/components/loyal-customers/components/voucher.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/voucher.js +4 -19
- package/es/esf/components/loyal-customers/content.d.ts +18 -0
- package/es/esf/components/loyal-customers/content.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/content.js +43 -46
- package/es/esf/components/loyal-customers/data.d.ts +167 -0
- package/es/esf/components/loyal-customers/data.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/data.js +62 -113
- package/es/esf/components/loyal-customers/hooks/use-stored-rows.d.ts +4 -0
- package/es/esf/components/loyal-customers/hooks/use-stored-rows.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/hooks/use-stored-rows.js +9 -8
- package/es/esf/components/loyal-customers/index.d.ts +3 -0
- package/es/esf/components/loyal-customers/index.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/index.js +1 -1
- package/es/esf/components/loyal-customers/loyal-customers.d.ts +17 -0
- package/es/esf/components/loyal-customers/loyal-customers.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/loyal-customers.js +47 -120
- package/es/esf/components/loyal-customers/messages.d.ts +2 -0
- package/es/esf/components/loyal-customers/messages.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/messages.js +57 -56
- package/es/esf/components/loyal-customers/utils.d.ts +21 -0
- package/es/esf/components/loyal-customers/utils.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/utils.js +42 -67
- package/es/esf/components/magic-box/booking.d.ts +11 -0
- package/es/esf/components/magic-box/booking.d.ts.map +1 -0
- package/es/esf/components/magic-box/booking.js +86 -90
- package/es/esf/components/magic-box/filter.d.ts +8 -0
- package/es/esf/components/magic-box/filter.d.ts.map +1 -0
- package/es/esf/components/magic-box/filter.js +14 -38
- package/es/esf/components/magic-box/filters.d.ts +7 -0
- package/es/esf/components/magic-box/filters.d.ts.map +1 -0
- package/es/esf/components/magic-box/filters.js +6 -18
- package/es/esf/components/magic-box/index.d.ts +3 -0
- package/es/esf/components/magic-box/index.d.ts.map +1 -0
- package/es/esf/components/magic-box/index.js +1 -1
- package/es/esf/components/magic-box/magic-box.d.ts +28 -0
- package/es/esf/components/magic-box/magic-box.d.ts.map +1 -0
- package/es/esf/components/magic-box/magic-box.js +105 -169
- package/es/esf/components/magic-box/messages.d.ts +2 -0
- package/es/esf/components/magic-box/messages.d.ts.map +1 -0
- package/es/esf/components/magic-box/messages.js +27 -26
- package/es/esf/components/magic-box/services/api.d.ts +19 -0
- package/es/esf/components/magic-box/services/api.d.ts.map +1 -0
- package/es/esf/components/magic-box/services/api.js +24 -47
- package/es/esf/components/magic-box/services/widgets.d.ts +2 -0
- package/es/esf/components/magic-box/services/widgets.d.ts.map +1 -0
- package/es/esf/components/magic-box/services/widgets.js +2 -2
- package/es/esf/components/parcours-esf/index.d.ts +3 -0
- package/es/esf/components/parcours-esf/index.d.ts.map +1 -0
- package/es/esf/components/parcours-esf/index.js +1 -1
- package/es/esf/components/parcours-esf/parcours-esf.d.ts +14 -0
- package/es/esf/components/parcours-esf/parcours-esf.d.ts.map +1 -0
- package/es/esf/components/parcours-esf/parcours-esf.js +27 -45
- package/es/esf/components/period-picker/controls.d.ts +5 -0
- package/es/esf/components/period-picker/controls.d.ts.map +1 -0
- package/es/esf/components/period-picker/controls.js +16 -38
- package/es/esf/components/period-picker/date-display.d.ts +4 -0
- package/es/esf/components/period-picker/date-display.d.ts.map +1 -0
- package/es/esf/components/period-picker/date-display.js +32 -59
- package/es/esf/components/period-picker/days.d.ts +4 -0
- package/es/esf/components/period-picker/days.d.ts.map +1 -0
- package/es/esf/components/period-picker/days.js +58 -102
- package/es/esf/components/period-picker/extended-stay-picker.d.ts +12 -0
- package/es/esf/components/period-picker/extended-stay-picker.d.ts.map +1 -0
- package/es/esf/components/period-picker/extended-stay-picker.js +14 -48
- package/es/esf/components/period-picker/index.d.ts +3 -0
- package/es/esf/components/period-picker/index.d.ts.map +1 -0
- package/es/esf/components/period-picker/index.js +1 -1
- package/es/esf/components/period-picker/messages.d.ts +2 -0
- package/es/esf/components/period-picker/messages.d.ts.map +1 -0
- package/es/esf/components/period-picker/messages.js +87 -87
- package/es/esf/components/period-picker/period-picker.d.ts +8 -0
- package/es/esf/components/period-picker/period-picker.d.ts.map +1 -0
- package/es/esf/components/period-picker/period-picker.js +113 -183
- package/es/esf/components/period-picker/popup.d.ts +8 -0
- package/es/esf/components/period-picker/popup.d.ts.map +1 -0
- package/es/esf/components/period-picker/popup.js +11 -33
- package/es/esf/components/period-picker/services/dates.d.ts +16 -0
- package/es/esf/components/period-picker/services/dates.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/dates.js +67 -68
- package/es/esf/components/period-picker/services/events.d.ts +2 -0
- package/es/esf/components/period-picker/services/events.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/events.js +3 -6
- package/es/esf/components/period-picker/services/motions.d.ts +51 -0
- package/es/esf/components/period-picker/services/motions.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/motions.js +8 -33
- package/es/esf/components/period-picker/services/sections.d.ts +3 -0
- package/es/esf/components/period-picker/services/sections.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/sections.js +39 -31
- package/es/esf/components/period-picker/services/stay.d.ts +3 -0
- package/es/esf/components/period-picker/services/stay.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/stay.js +20 -21
- package/es/esf/components/period-picker/title.d.ts +5 -0
- package/es/esf/components/period-picker/title.d.ts.map +1 -0
- package/es/esf/components/period-picker/title.js +8 -22
- package/es/esf/components/period-picker/warning.d.ts +8 -0
- package/es/esf/components/period-picker/warning.d.ts.map +1 -0
- package/es/esf/components/period-picker/warning.js +10 -43
- package/es/esf/components/period-picker/weeks.d.ts +4 -0
- package/es/esf/components/period-picker/weeks.d.ts.map +1 -0
- package/es/esf/components/period-picker/weeks.js +55 -137
- package/es/esf/components/reviews.d.ts +7 -0
- package/es/esf/components/reviews.d.ts.map +1 -0
- package/es/esf/components/reviews.js +19 -25
- package/es/esf/components/village-maps/icons.d.ts +6 -0
- package/es/esf/components/village-maps/icons.d.ts.map +1 -0
- package/es/esf/components/village-maps/icons.js +7 -38
- package/es/esf/components/village-maps/index.d.ts +9 -0
- package/es/esf/components/village-maps/index.d.ts.map +1 -0
- package/es/esf/components/village-maps/index.js +59 -193
- package/es/esf/components/village-maps/messages.d.ts +3 -0
- package/es/esf/components/village-maps/messages.d.ts.map +1 -0
- package/es/esf/components/village-maps/messages.js +13 -13
- package/es/esf/components/village-maps/utils.d.ts +5 -0
- package/es/esf/components/village-maps/utils.d.ts.map +1 -0
- package/es/esf/components/village-maps/utils.js +19 -19
- package/es/esf/components/week-picker/index.d.ts +15 -0
- package/es/esf/components/week-picker/index.d.ts.map +1 -0
- package/es/esf/components/week-picker/index.js +133 -222
- package/es/esf/components/week-picker/messages.d.ts +28 -0
- package/es/esf/components/week-picker/messages.d.ts.map +1 -0
- package/es/esf/components/week-picker/messages.js +31 -30
- package/es/esf/components/week-picker/utils.d.ts +6 -0
- package/es/esf/components/week-picker/utils.d.ts.map +1 -0
- package/es/esf/components/week-picker/utils.js +49 -47
- package/es/esf/components/week-picker/week.d.ts +10 -0
- package/es/esf/components/week-picker/week.d.ts.map +1 -0
- package/es/esf/components/week-picker/week.js +22 -46
- package/es/esf/components/week-picker-2/index.d.ts +15 -0
- package/es/esf/components/week-picker-2/index.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/index.js +156 -259
- package/es/esf/components/week-picker-2/messages.d.ts +32 -0
- package/es/esf/components/week-picker-2/messages.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/messages.js +29 -29
- package/es/esf/components/week-picker-2/utils.d.ts +6 -0
- package/es/esf/components/week-picker-2/utils.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/utils.js +49 -47
- package/es/esf/components/week-picker-2/week.d.ts +10 -0
- package/es/esf/components/week-picker-2/week.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/week.js +22 -49
- package/es/esf/hooks/use-affiliation.d.ts +2 -0
- package/es/esf/hooks/use-affiliation.d.ts.map +1 -0
- package/es/esf/hooks/use-affiliation.js +12 -16
- package/es/esf/hooks/use-booking-links.d.ts +2 -0
- package/es/esf/hooks/use-booking-links.d.ts.map +1 -0
- package/es/esf/hooks/use-booking-links.js +42 -34
- package/es/esf/hooks/use-reviews.d.ts +3 -0
- package/es/esf/hooks/use-reviews.d.ts.map +1 -0
- package/es/esf/hooks/use-reviews.js +18 -22
- package/es/esf/hooks/use-season-products.d.ts +2 -0
- package/es/esf/hooks/use-season-products.d.ts.map +1 -0
- package/es/esf/hooks/use-season-products.js +73 -79
- package/es/future/components/msem/index.d.ts +4 -0
- package/es/future/components/msem/index.d.ts.map +1 -0
- package/es/future/components/msem/index.js +1 -1
- package/es/future/components/msem/script.d.ts +6 -0
- package/es/future/components/msem/script.d.ts.map +1 -0
- package/es/future/components/msem/script.js +7 -13
- package/es/future/components/msem/tunnel.d.ts +42 -0
- package/es/future/components/msem/tunnel.d.ts.map +1 -0
- package/es/future/components/msem/tunnel.js +17 -30
- package/es/future/components/msem/types.d.ts +16 -0
- package/es/future/components/msem/types.d.ts.map +1 -0
- package/es/future/components/msem/types.js +1 -1
- package/es/future/components/msem/utils.d.ts +4 -0
- package/es/future/components/msem/utils.d.ts.map +1 -0
- package/es/future/components/msem/utils.js +18 -16
- package/es/future/components/plausible/hooks/use-plausible.d.ts +12 -0
- package/es/future/components/plausible/hooks/use-plausible.d.ts.map +1 -0
- package/es/future/components/plausible/hooks/use-plausible.js +18 -22
- package/es/future/components/plausible/index.d.ts +8 -0
- package/es/future/components/plausible/index.d.ts.map +1 -0
- package/es/future/components/plausible/index.js +1 -1
- package/es/future/components/plausible/plausible.d.ts +7 -0
- package/es/future/components/plausible/plausible.d.ts.map +1 -0
- package/es/future/components/plausible/plausible.js +13 -23
- package/es/future/components/plausible/services/callback.d.ts +24 -0
- package/es/future/components/plausible/services/callback.d.ts.map +1 -0
- package/es/future/components/plausible/services/callback.js +117 -186
- package/es/future/components/plausible/services/load.d.ts +2 -0
- package/es/future/components/plausible/services/load.d.ts.map +1 -0
- package/es/future/components/plausible/services/load.js +6 -4
- package/es/future/components/plausible/services/send-goal.d.ts +7 -0
- package/es/future/components/plausible/services/send-goal.d.ts.map +1 -0
- package/es/future/components/plausible/services/send-goal.js +3 -6
- package/es/lbm/components/lumiplan/api.d.ts +9 -0
- package/es/lbm/components/lumiplan/api.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/api.js +19 -39
- package/es/lbm/components/lumiplan/domain.d.ts +8 -0
- package/es/lbm/components/lumiplan/domain.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/domain.js +21 -105
- package/es/lbm/components/lumiplan/header.d.ts +8 -0
- package/es/lbm/components/lumiplan/header.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/header.js +15 -36
- package/es/lbm/components/lumiplan/i18n/translations.d.ts +7 -0
- package/es/lbm/components/lumiplan/i18n/translations.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/i18n/translations.js +15 -24
- package/es/lbm/components/lumiplan/icons/alert.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/alert.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/alert.js +4 -21
- package/es/lbm/components/lumiplan/icons/avalanche-risk.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/avalanche-risk.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/avalanche-risk.js +4 -14
- package/es/lbm/components/lumiplan/icons/cabin.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/cabin.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/cabin.js +4 -14
- package/es/lbm/components/lumiplan/icons/check.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/check.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/check.js +4 -16
- package/es/lbm/components/lumiplan/icons/close.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/close.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/close.js +4 -21
- package/es/lbm/components/lumiplan/icons/cloud.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/cloud.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/cloud.js +4 -20
- package/es/lbm/components/lumiplan/icons/dawn.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/dawn.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/dawn.js +4 -19
- package/es/lbm/components/lumiplan/icons/fog.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/fog.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/fog.js +4 -23
- package/es/lbm/components/lumiplan/icons/heavy-snow.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/heavy-snow.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/heavy-snow.js +4 -32
- package/es/lbm/components/lumiplan/icons/information.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/information.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/information.js +4 -21
- package/es/lbm/components/lumiplan/icons/isothermal.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/isothermal.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/isothermal.js +4 -25
- package/es/lbm/components/lumiplan/icons/lifts/index.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/lifts/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/index.js +1 -1
- package/es/lbm/components/lumiplan/icons/lifts/tapis-roulant.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/lifts/tapis-roulant.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/tapis-roulant.js +4 -16
- package/es/lbm/components/lumiplan/icons/lifts/telecabine.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/lifts/telecabine.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/telecabine.js +4 -16
- package/es/lbm/components/lumiplan/icons/lifts/telesiege-debrayable.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/lifts/telesiege-debrayable.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/telesiege-debrayable.js +4 -27
- package/es/lbm/components/lumiplan/icons/lifts/telesiege.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/lifts/telesiege.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/telesiege.js +4 -16
- package/es/lbm/components/lumiplan/icons/lifts/teleski.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/lifts/teleski.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/teleski.js +4 -16
- package/es/lbm/components/lumiplan/icons/link.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/link.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/link.js +4 -17
- package/es/lbm/components/lumiplan/icons/night.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/night.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/night.js +4 -14
- package/es/lbm/components/lumiplan/icons/rain.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/rain.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/rain.js +4 -24
- package/es/lbm/components/lumiplan/icons/rainy-rainy.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/rainy-rainy.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/rainy-rainy.js +4 -20
- package/es/lbm/components/lumiplan/icons/rainy.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/rainy.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/rainy.js +4 -20
- package/es/lbm/components/lumiplan/icons/reload.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/reload.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/reload.js +4 -30
- package/es/lbm/components/lumiplan/icons/road-condition.d.ts +7 -0
- package/es/lbm/components/lumiplan/icons/road-condition.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/road-condition.js +4 -28
- package/es/lbm/components/lumiplan/icons/slopes.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/slopes.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/slopes.js +4 -14
- package/es/lbm/components/lumiplan/icons/snow-cover.d.ts +7 -0
- package/es/lbm/components/lumiplan/icons/snow-cover.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/snow-cover.js +4 -16
- package/es/lbm/components/lumiplan/icons/snow.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/snow.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/snow.js +4 -26
- package/es/lbm/components/lumiplan/icons/storm.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/storm.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/storm.js +4 -15
- package/es/lbm/components/lumiplan/icons/sun.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/sun.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/sun.js +4 -16
- package/es/lbm/components/lumiplan/icons/sunny.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/sunny.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/sunny.js +4 -23
- package/es/lbm/components/lumiplan/icons/time.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/time.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/time.js +4 -21
- package/es/lbm/components/lumiplan/icons/trails/accrobranche.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/accrobranche.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/accrobranche.js +4 -17
- package/es/lbm/components/lumiplan/icons/trails/boarder-cross.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/boarder-cross.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/boarder-cross.js +4 -21
- package/es/lbm/components/lumiplan/icons/trails/champ-de-bosse.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/champ-de-bosse.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/champ-de-bosse.js +4 -19
- package/es/lbm/components/lumiplan/icons/trails/freeride.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/freeride.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/freeride.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/index.d.ts +17 -0
- package/es/lbm/components/lumiplan/icons/trails/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/index.js +1 -1
- package/es/lbm/components/lumiplan/icons/trails/luge-sur-rail.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/luge-sur-rail.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/luge-sur-rail.js +4 -19
- package/es/lbm/components/lumiplan/icons/trails/luge.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/luge.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/luge.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/pieton.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/pieton.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/pieton.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/piste-eclairee.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/piste-eclairee.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/piste-eclairee.js +4 -19
- package/es/lbm/components/lumiplan/icons/trails/raquette.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/raquette.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/raquette.js +4 -65
- package/es/lbm/components/lumiplan/icons/trails/ski-alpin.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/ski-alpin.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/ski-alpin.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/ski-fond.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/ski-fond.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/ski-fond.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/snowpark.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/snowpark.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/snowpark.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/snowtubing.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/snowtubing.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/snowtubing.js +4 -23
- package/es/lbm/components/lumiplan/icons/trails/tyrolienne.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/tyrolienne.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/tyrolienne.js +4 -16
- package/es/lbm/components/lumiplan/icons/trails/vtt.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/vtt.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/vtt.js +4 -19
- package/es/lbm/components/lumiplan/icons/trails/zone-freeride.d.ts +5 -0
- package/es/lbm/components/lumiplan/icons/trails/zone-freeride.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/zone-freeride.js +4 -16
- package/es/lbm/components/lumiplan/icons/variable-snow.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/variable-snow.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/variable-snow.js +4 -29
- package/es/lbm/components/lumiplan/icons/variable-storm.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/variable-storm.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/variable-storm.js +4 -22
- package/es/lbm/components/lumiplan/icons/variable.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/variable.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/variable.js +4 -20
- package/es/lbm/components/lumiplan/icons/warning.d.ts +6 -0
- package/es/lbm/components/lumiplan/icons/warning.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/warning.js +4 -21
- package/es/lbm/components/lumiplan/icons/wind.d.ts +7 -0
- package/es/lbm/components/lumiplan/icons/wind.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/wind.js +12 -26
- package/es/lbm/components/lumiplan/index.d.ts +3 -0
- package/es/lbm/components/lumiplan/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/index.js +1 -1
- package/es/lbm/components/lumiplan/lumiplan.d.ts +2 -0
- package/es/lbm/components/lumiplan/lumiplan.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/lumiplan.js +138 -167
- package/es/lbm/components/lumiplan/opening.d.ts +9 -0
- package/es/lbm/components/lumiplan/opening.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/opening.js +40 -131
- package/es/lbm/components/lumiplan/pois.d.ts +8 -0
- package/es/lbm/components/lumiplan/pois.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/pois.js +160 -275
- package/es/lbm/components/lumiplan/print-button.d.ts +9 -0
- package/es/lbm/components/lumiplan/print-button.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/print-button.js +11 -26
- package/es/lbm/components/lumiplan/resort-selector.d.ts +12 -0
- package/es/lbm/components/lumiplan/resort-selector.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/resort-selector.js +35 -58
- package/es/lbm/components/lumiplan/road-condition.d.ts +8 -0
- package/es/lbm/components/lumiplan/road-condition.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/road-condition.js +19 -100
- package/es/lbm/components/lumiplan/signature.d.ts +7 -0
- package/es/lbm/components/lumiplan/signature.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/signature.js +8 -21
- package/es/lbm/components/lumiplan/todays-tips.d.ts +8 -0
- package/es/lbm/components/lumiplan/todays-tips.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/todays-tips.js +16 -45
- package/es/lbm/components/lumiplan/toolbar.d.ts +7 -0
- package/es/lbm/components/lumiplan/toolbar.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/toolbar.js +4 -27
- package/es/lbm/components/lumiplan/types.d.ts +292 -0
- package/es/lbm/components/lumiplan/types.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/types.js +1 -1
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts +4 -0
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/avalanche-risk.js +8 -33
- package/es/lbm/components/lumiplan/weather/index.d.ts +3 -0
- package/es/lbm/components/lumiplan/weather/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/index.js +1 -1
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts +8 -0
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/snow-data.js +5 -71
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts +9 -0
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather-data.js +13 -128
- package/es/lbm/components/lumiplan/weather/weather-days.d.ts +7 -0
- package/es/lbm/components/lumiplan/weather/weather-days.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather-days.js +47 -76
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts +68 -0
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather-icon.js +20 -23
- package/es/lbm/components/lumiplan/weather/weather-zones.d.ts +6 -0
- package/es/lbm/components/lumiplan/weather/weather-zones.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather-zones.js +41 -71
- package/es/lbm/components/lumiplan/weather/weather.d.ts +8 -0
- package/es/lbm/components/lumiplan/weather/weather.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather.js +39 -123
- package/package.json +13 -29
|
@@ -1,81 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "ublo/link";
|
|
3
3
|
import Loader from "dt-design-system/es/loader";
|
|
4
4
|
import * as Icons from "dt-design-system/es/icons";
|
|
5
5
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
6
|
import * as Utils from "./services/utils";
|
|
7
7
|
import css from "./links.module.css";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
8
|
const PLACEHOLDERS = [...new Array(3)];
|
|
11
|
-
export default function Links({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return _jsx("div", {
|
|
34
|
-
className: css.loaderContainer,
|
|
35
|
-
children: _jsx(Loader, {
|
|
36
|
-
className: css.loader,
|
|
37
|
-
variant: "overlay"
|
|
38
|
-
})
|
|
39
|
-
}, i);
|
|
40
|
-
}), !loading && links.map(link => {
|
|
41
|
-
const {
|
|
42
|
-
id,
|
|
43
|
-
text,
|
|
44
|
-
parentTitle,
|
|
45
|
-
path
|
|
46
|
-
} = link.document;
|
|
47
|
-
const decodedPath = decodeURIComponent(path);
|
|
48
|
-
const titleProperty = pageTitleAsTitle ? "pageTitle" : "title";
|
|
49
|
-
const linkTitle = Utils.getHighlight(titleProperty, link.highlight) || link.document[titleProperty];
|
|
50
|
-
const linkText = Utils.getHighlight("text", link.highlight, true) || text;
|
|
51
|
-
return _jsxs(Link, {
|
|
52
|
-
href: decodedPath,
|
|
53
|
-
className: css.link,
|
|
54
|
-
onClick: sendPlausibleGoal(decodedPath),
|
|
55
|
-
onMouseDown: createRipple,
|
|
56
|
-
children: [_jsx(Icon, {
|
|
57
|
-
className: css.linkIcon
|
|
58
|
-
}), _jsxs("div", {
|
|
59
|
-
className: css.linkContent,
|
|
60
|
-
children: [parentTitle && _jsx("div", {
|
|
61
|
-
className: css.linkParent,
|
|
62
|
-
dangerouslySetInnerHTML: {
|
|
63
|
-
__html: parentTitle
|
|
64
|
-
}
|
|
65
|
-
}), _jsx("div", {
|
|
66
|
-
className: css.linkTitle,
|
|
67
|
-
dangerouslySetInnerHTML: {
|
|
68
|
-
__html: linkTitle
|
|
69
|
-
}
|
|
70
|
-
}), linkText && _jsx("div", {
|
|
71
|
-
className: css.linkText,
|
|
72
|
-
dangerouslySetInnerHTML: {
|
|
73
|
-
__html: linkText
|
|
74
|
-
}
|
|
75
|
-
})]
|
|
76
|
-
})]
|
|
77
|
-
}, id);
|
|
78
|
-
})]
|
|
79
|
-
})]
|
|
80
|
-
});
|
|
81
|
-
}
|
|
9
|
+
export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }) {
|
|
10
|
+
const Icon = Icons[icon];
|
|
11
|
+
const noResult = !loading && !links.length;
|
|
12
|
+
const createRipple = (e) => {
|
|
13
|
+
Ripple.create(e);
|
|
14
|
+
};
|
|
15
|
+
if (noResult)
|
|
16
|
+
return null;
|
|
17
|
+
return (_jsxs("div", { className: css.linksSection, children: [_jsx("div", { className: css.linksTitle, children: linksTitle }), _jsxs("div", { className: css.links, children: [loading &&
|
|
18
|
+
PLACEHOLDERS.map((_, i) => {
|
|
19
|
+
return (_jsx("div", { className: css.loaderContainer, children: _jsx(Loader, { className: css.loader, variant: "overlay" }) }, i));
|
|
20
|
+
}), !loading &&
|
|
21
|
+
links.map((link) => {
|
|
22
|
+
const { id, text, parentTitle, path } = link.document;
|
|
23
|
+
const decodedPath = decodeURIComponent(path);
|
|
24
|
+
const titleProperty = pageTitleAsTitle ? "pageTitle" : "title";
|
|
25
|
+
const linkTitle = Utils.getHighlight(titleProperty, link.highlight) ||
|
|
26
|
+
link.document[titleProperty];
|
|
27
|
+
const linkText = Utils.getHighlight("text", link.highlight, true) || text;
|
|
28
|
+
return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
29
|
+
})] })] }));
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-product.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/no-product.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,KAAK,2CA2FrD"}
|
|
@@ -1,81 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
className
|
|
6
|
-
}) {
|
|
7
|
-
return _jsxs("svg", {
|
|
8
|
-
width: "200",
|
|
9
|
-
height: "200",
|
|
10
|
-
viewBox: "0 0 200 200",
|
|
11
|
-
fill: "none",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
className: className,
|
|
14
|
-
children: [_jsx("path", {
|
|
15
|
-
d: "M100.5 184.3a85.8 85.8 0 1 0 0-171.5 85.8 85.8 0 0 0 0 171.5Z",
|
|
16
|
-
fill: "#EDEDED"
|
|
17
|
-
}), _jsx("path", {
|
|
18
|
-
fillRule: "evenodd",
|
|
19
|
-
clipRule: "evenodd",
|
|
20
|
-
d: "M100.5 11a87.5 87.5 0 1 0 0 175 87.5 87.5 0 0 0 0-175Zm0 3.5a84 84 0 1 1 0 168 84 84 0 0 1 0-168Z",
|
|
21
|
-
fill: "#D7D7D7"
|
|
22
|
-
}), _jsx("path", {
|
|
23
|
-
fillRule: "evenodd",
|
|
24
|
-
clipRule: "evenodd",
|
|
25
|
-
d: "M161.4 61.5c1 0 1.8-.8 1.8-1.8V46.1a4.7 4.7 0 0 0-4.7-4.7H26a4.7 4.7 0 0 0-4.7 4.7v34.3c0 1 .8 1.8 1.8 1.8h61.5c.4 0 .8-.1 1.1-.4l26.4-20.3h49.3Z",
|
|
26
|
-
fill: "#D7D7D7"
|
|
27
|
-
}), _jsx("path", {
|
|
28
|
-
fillRule: "evenodd",
|
|
29
|
-
clipRule: "evenodd",
|
|
30
|
-
d: "M138.4 59.7h-25.5L84.6 80.4H45.3V25.7a3 3 0 0 1 2.9-2.9h64.7l25.5 27.5v9.4Z",
|
|
31
|
-
fill: "#fff"
|
|
32
|
-
}), _jsx("path", {
|
|
33
|
-
fillRule: "evenodd",
|
|
34
|
-
clipRule: "evenodd",
|
|
35
|
-
d: "M112.9 21H48.2a4.7 4.7 0 0 0-4.7 4.7v54.7c0 1 .8 1.8 1.8 1.8h39.3c.4 0 .8-.1 1-.3l27.8-20.4h25c1 0 1.8-.8 1.8-1.8V50l-.1-.3-.2-.3v-.2l-.2-.1L114 21.6l-.1-.2-.4-.2h-.1l-.3-.1H113Zm-1.8 3.6H48.2c-.6 0-1.2.5-1.2 1.1v53h37l27.8-20.4c.3-.2.7-.3 1-.3h23.8v-6H113c-1 0-1.8-.8-1.8-1.7V24.6Zm-51 44.8h25.7a1.8 1.8 0 0 0 0-3.5H60.2a1.8 1.8 0 0 0 0 3.5Zm0-16h22a1.8 1.8 0 0 0 0-3.5H60a1.8 1.8 0 0 0 0 3.5Zm0-8.4h37.4a1.8 1.8 0 0 0 0-3.6H60.2a1.8 1.8 0 0 0 0 3.6Z",
|
|
36
|
-
fill: "#D7D7D7"
|
|
37
|
-
}), _jsx("path", {
|
|
38
|
-
fillRule: "evenodd",
|
|
39
|
-
clipRule: "evenodd",
|
|
40
|
-
d: "M4.8 84a3 3 0 0 1 2.9-3.6h76.5a3 3 0 0 0 1.7-.5l26.4-19.6a3 3 0 0 1 1.8-.6h64.7a3 3 0 0 1 3 3.5c-2.9 16-14.4 83-16.8 96.7a3 3 0 0 1-2.9 2.4H25.4a3 3 0 0 1-2.9-2.2L4.8 84Z",
|
|
41
|
-
fill: "#EDEDED"
|
|
42
|
-
}), _jsx("path", {
|
|
43
|
-
fillRule: "evenodd",
|
|
44
|
-
clipRule: "evenodd",
|
|
45
|
-
d: "m3.1 84.4 17.7 76a4.7 4.7 0 0 0 4.6 3.7h136.7c2.3 0 4.2-1.7 4.6-4l16.7-96.6a4.7 4.7 0 0 0-4.6-5.5h-64.7c-1 0-2 .3-2.8.9a1130716.6 1130716.6 0 0 1-27.1 19.8H7.7a4.7 4.7 0 0 0-4.6 5.7Zm3.5-.8a1.2 1.2 0 0 1 1.1-1.4h76.5c1 0 2-.3 2.8-1a724489.6 724489.6 0 0 1 27-19.7h64.8a1.2 1.2 0 0 1 1.2 1.4l-16.7 96.7c-.1.6-.6 1-1.2 1H25.4c-.5 0-1-.4-1.1-1l-17.7-76Z",
|
|
46
|
-
fill: "#D7D7D7"
|
|
47
|
-
}), _jsx("path", {
|
|
48
|
-
fillRule: "evenodd",
|
|
49
|
-
clipRule: "evenodd",
|
|
50
|
-
d: "M159.7 161a36.5 36.5 0 0 1-46.5-4 36.6 36.6 0 0 1 .4-51.8 36.6 36.6 0 0 1 51.7-.4 36.5 36.5 0 0 1 4 46.5l25 24.9c2.6 2.6 2.6 7 0 9.6a6.8 6.8 0 0 1-9.7 0l-25-24.9Z",
|
|
51
|
-
fill: "#fff"
|
|
52
|
-
}), _jsx("path", {
|
|
53
|
-
fillRule: "evenodd",
|
|
54
|
-
clipRule: "evenodd",
|
|
55
|
-
d: "m159.5 163.2 23.8 23.9a8.6 8.6 0 0 0 12.2 0 8.6 8.6 0 0 0 0-12.2L171.6 151a38.2 38.2 0 0 0-5-47.4 38.3 38.3 0 0 0-54.2.4 38.3 38.3 0 0 0-.4 54.2 38.2 38.2 0 0 0 47.5 5Zm1.4-3.5c-.6-.6-1.5-.7-2.2-.2a34.7 34.7 0 0 1-44.2-3.8 34.8 34.8 0 0 1 .4-49.2 34.8 34.8 0 0 1 49.2-.4c12 11.9 13.1 30.5 3.8 44.2-.5.7-.4 1.6.2 2.2l24.9 25c2 1.9 2 5.1 0 7a5 5 0 0 1-7.2 0L161 159.8Z",
|
|
56
|
-
fill: "#D7D7D7"
|
|
57
|
-
}), _jsx("path", {
|
|
58
|
-
d: "M163.5 130.8a24.4 24.4 0 0 0-24.2-24.6c-13.4 0-24.3 11-24.3 24.6a24.4 24.4 0 0 0 24.3 24.6c13.3 0 24.2-11 24.2-24.6Z",
|
|
59
|
-
fill: "#EDEDED"
|
|
60
|
-
}), _jsx("path", {
|
|
61
|
-
fillRule: "evenodd",
|
|
62
|
-
clipRule: "evenodd",
|
|
63
|
-
d: "M113.3 130.8a26.2 26.2 0 0 0 26 26.4c14.3 0 26-11.8 26-26.4a26.2 26.2 0 0 0-26-26.4c-14.4 0-26 11.8-26 26.4Zm3.5 0c0-12.6 10-22.8 22.5-22.8a22.7 22.7 0 0 1 22.4 22.8c0 12.6-10 22.9-22.4 22.9a22.7 22.7 0 0 1-22.5-22.9Z",
|
|
64
|
-
fill: "#D7D7D7"
|
|
65
|
-
}), _jsx("path", {
|
|
66
|
-
opacity: ".7",
|
|
67
|
-
fillRule: "evenodd",
|
|
68
|
-
clipRule: "evenodd",
|
|
69
|
-
d: "M117 121c.7-1.4 13.9 1.6 22.3 9.9 8.1 8 11.4 21.4 10.2 22-9.1 4.3-20.2 2.7-27.6-4.7-7.4-7.3-9-18.3-4.8-27.3Z",
|
|
70
|
-
fill: "#fff"
|
|
71
|
-
}), _jsx("path", {
|
|
72
|
-
fillRule: "evenodd",
|
|
73
|
-
clipRule: "evenodd",
|
|
74
|
-
d: "M120.9 112.5a26.2 26.2 0 0 0-.3 37 26.2 26.2 0 0 0 37-.2 26.2 26.2 0 0 0 .3-37 26.2 26.2 0 0 0-37 .2Zm2.5 2.5c9-9 23.3-9 32-.3a22.7 22.7 0 0 1-.2 32c-9 9-23.3 9.1-32 .3a22.7 22.7 0 0 1 .2-32Z",
|
|
75
|
-
fill: "#D7D7D7"
|
|
76
|
-
}), _jsx("path", {
|
|
77
|
-
d: "M140.2 142.1c1.4 0 2.4 1 2.4 2.4 0 1.3-1 2.3-2.4 2.3-1.3 0-2.3-1-2.3-2.3 0-1.3 1-2.4 2.3-2.4Zm.1-20.5V117a9.5 9.5 0 0 0-9.4 6.8v.2l4.5 1v.1l-4.6-1.1c-.3 1.2.5 2.5 1.8 2.8 1.2.3 2.5-.5 2.8-1.7l.2-.5.7-1.2c.7-.8 1.8-1.7 4-1.7Zm9.4 5.1a9.3 9.3 0 0 0-9.4-9.8v4.7c.6 0 1.8.2 2.9 1 .9.6 1.8 1.7 1.8 4.1 0 .5-.2 1-.7 1.6-.5.6-1.3 1.2-2.2 1.7a18.4 18.4 0 0 1-3.4 1.5h-.3c-1.2.4-2 1.8-1.6 3 .4 1.3 1.7 2 3 1.6l-.7-2.2-.4-1.4-.2-.6V131.6l.6 2.3.6 2.2h.2a11.6 11.6 0 0 0 1.3-.5c.9-.3 2-.8 3.2-1.5 1.2-.6 2.4-1.5 3.4-2.7a7 7 0 0 0 2-4.7Z",
|
|
78
|
-
fill: "#D7D7D7"
|
|
79
|
-
})]
|
|
80
|
-
});
|
|
81
|
-
}
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export default function NoProduct({ className }) {
|
|
3
|
+
return (_jsxs("svg", { width: "200", height: "200", viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: [_jsx("path", { d: "M100.5 184.3a85.8 85.8 0 1 0 0-171.5 85.8 85.8 0 0 0 0 171.5Z", fill: "#EDEDED" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M100.5 11a87.5 87.5 0 1 0 0 175 87.5 87.5 0 0 0 0-175Zm0 3.5a84 84 0 1 1 0 168 84 84 0 0 1 0-168Z", fill: "#D7D7D7" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M161.4 61.5c1 0 1.8-.8 1.8-1.8V46.1a4.7 4.7 0 0 0-4.7-4.7H26a4.7 4.7 0 0 0-4.7 4.7v34.3c0 1 .8 1.8 1.8 1.8h61.5c.4 0 .8-.1 1.1-.4l26.4-20.3h49.3Z", fill: "#D7D7D7" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M138.4 59.7h-25.5L84.6 80.4H45.3V25.7a3 3 0 0 1 2.9-2.9h64.7l25.5 27.5v9.4Z", fill: "#fff" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M112.9 21H48.2a4.7 4.7 0 0 0-4.7 4.7v54.7c0 1 .8 1.8 1.8 1.8h39.3c.4 0 .8-.1 1-.3l27.8-20.4h25c1 0 1.8-.8 1.8-1.8V50l-.1-.3-.2-.3v-.2l-.2-.1L114 21.6l-.1-.2-.4-.2h-.1l-.3-.1H113Zm-1.8 3.6H48.2c-.6 0-1.2.5-1.2 1.1v53h37l27.8-20.4c.3-.2.7-.3 1-.3h23.8v-6H113c-1 0-1.8-.8-1.8-1.7V24.6Zm-51 44.8h25.7a1.8 1.8 0 0 0 0-3.5H60.2a1.8 1.8 0 0 0 0 3.5Zm0-16h22a1.8 1.8 0 0 0 0-3.5H60a1.8 1.8 0 0 0 0 3.5Zm0-8.4h37.4a1.8 1.8 0 0 0 0-3.6H60.2a1.8 1.8 0 0 0 0 3.6Z", fill: "#D7D7D7" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.8 84a3 3 0 0 1 2.9-3.6h76.5a3 3 0 0 0 1.7-.5l26.4-19.6a3 3 0 0 1 1.8-.6h64.7a3 3 0 0 1 3 3.5c-2.9 16-14.4 83-16.8 96.7a3 3 0 0 1-2.9 2.4H25.4a3 3 0 0 1-2.9-2.2L4.8 84Z", fill: "#EDEDED" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m3.1 84.4 17.7 76a4.7 4.7 0 0 0 4.6 3.7h136.7c2.3 0 4.2-1.7 4.6-4l16.7-96.6a4.7 4.7 0 0 0-4.6-5.5h-64.7c-1 0-2 .3-2.8.9a1130716.6 1130716.6 0 0 1-27.1 19.8H7.7a4.7 4.7 0 0 0-4.6 5.7Zm3.5-.8a1.2 1.2 0 0 1 1.1-1.4h76.5c1 0 2-.3 2.8-1a724489.6 724489.6 0 0 1 27-19.7h64.8a1.2 1.2 0 0 1 1.2 1.4l-16.7 96.7c-.1.6-.6 1-1.2 1H25.4c-.5 0-1-.4-1.1-1l-17.7-76Z", fill: "#D7D7D7" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M159.7 161a36.5 36.5 0 0 1-46.5-4 36.6 36.6 0 0 1 .4-51.8 36.6 36.6 0 0 1 51.7-.4 36.5 36.5 0 0 1 4 46.5l25 24.9c2.6 2.6 2.6 7 0 9.6a6.8 6.8 0 0 1-9.7 0l-25-24.9Z", fill: "#fff" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m159.5 163.2 23.8 23.9a8.6 8.6 0 0 0 12.2 0 8.6 8.6 0 0 0 0-12.2L171.6 151a38.2 38.2 0 0 0-5-47.4 38.3 38.3 0 0 0-54.2.4 38.3 38.3 0 0 0-.4 54.2 38.2 38.2 0 0 0 47.5 5Zm1.4-3.5c-.6-.6-1.5-.7-2.2-.2a34.7 34.7 0 0 1-44.2-3.8 34.8 34.8 0 0 1 .4-49.2 34.8 34.8 0 0 1 49.2-.4c12 11.9 13.1 30.5 3.8 44.2-.5.7-.4 1.6.2 2.2l24.9 25c2 1.9 2 5.1 0 7a5 5 0 0 1-7.2 0L161 159.8Z", fill: "#D7D7D7" }), _jsx("path", { d: "M163.5 130.8a24.4 24.4 0 0 0-24.2-24.6c-13.4 0-24.3 11-24.3 24.6a24.4 24.4 0 0 0 24.3 24.6c13.3 0 24.2-11 24.2-24.6Z", fill: "#EDEDED" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M113.3 130.8a26.2 26.2 0 0 0 26 26.4c14.3 0 26-11.8 26-26.4a26.2 26.2 0 0 0-26-26.4c-14.4 0-26 11.8-26 26.4Zm3.5 0c0-12.6 10-22.8 22.5-22.8a22.7 22.7 0 0 1 22.4 22.8c0 12.6-10 22.9-22.4 22.9a22.7 22.7 0 0 1-22.5-22.9Z", fill: "#D7D7D7" }), _jsx("path", { opacity: ".7", fillRule: "evenodd", clipRule: "evenodd", d: "M117 121c.7-1.4 13.9 1.6 22.3 9.9 8.1 8 11.4 21.4 10.2 22-9.1 4.3-20.2 2.7-27.6-4.7-7.4-7.3-9-18.3-4.8-27.3Z", fill: "#fff" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M120.9 112.5a26.2 26.2 0 0 0-.3 37 26.2 26.2 0 0 0 37-.2 26.2 26.2 0 0 0 .3-37 26.2 26.2 0 0 0-37 .2Zm2.5 2.5c9-9 23.3-9 32-.3a22.7 22.7 0 0 1-.2 32c-9 9-23.3 9.1-32 .3a22.7 22.7 0 0 1 .2-32Z", fill: "#D7D7D7" }), _jsx("path", { d: "M140.2 142.1c1.4 0 2.4 1 2.4 2.4 0 1.3-1 2.3-2.4 2.3-1.3 0-2.3-1-2.3-2.3 0-1.3 1-2.4 2.3-2.4Zm.1-20.5V117a9.5 9.5 0 0 0-9.4 6.8v.2l4.5 1v.1l-4.6-1.1c-.3 1.2.5 2.5 1.8 2.8 1.2.3 2.5-.5 2.8-1.7l.2-.5.7-1.2c.7-.8 1.8-1.7 4-1.7Zm9.4 5.1a9.3 9.3 0 0 0-9.4-9.8v4.7c.6 0 1.8.2 2.9 1 .9.6 1.8 1.7 1.8 4.1 0 .5-.2 1-.7 1.6-.5.6-1.3 1.2-2.2 1.7a18.4 18.4 0 0 1-3.4 1.5h-.3c-1.2.4-2 1.8-1.6 3 .4 1.3 1.7 2 3 1.6l-.7-2.2-.4-1.4-.2-.6V131.6l.6 2.3.6 2.2h.2a11.6 11.6 0 0 0 1.3-.5c.9-.3 2-.8 3.2-1.5 1.2-.6 2.4-1.5 3.4-2.7a7 7 0 0 0 2-4.7Z", fill: "#D7D7D7" })] }));
|
|
4
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Hit } from "./results";
|
|
3
|
+
type Props = {
|
|
4
|
+
lang: string;
|
|
5
|
+
products: Hit[];
|
|
6
|
+
weekNumber: number | null;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
sendPlausibleGoal: (path: string) => void;
|
|
9
|
+
otherResultsRef: React.RefObject<HTMLDivElement>;
|
|
10
|
+
isOtherResultsEmpty: boolean;
|
|
11
|
+
};
|
|
12
|
+
export default function Products({ lang, products, weekNumber, loading, sendPlausibleGoal, otherResultsRef, isOtherResultsEmpty, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/products.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,EAAE,KAAK,2CA4HP"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import Image from "next/image";
|
|
3
3
|
import Link from "ublo/link";
|
|
4
4
|
import Loader from "dt-design-system/es/loader";
|
|
@@ -9,121 +9,34 @@ import * as Utils from "./services/utils";
|
|
|
9
9
|
import message from "./services/messages";
|
|
10
10
|
import NoProduct from "./no-product";
|
|
11
11
|
import css from "./products.module.css";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
12
|
const PLACEHOLDERS = [...new Array(5)];
|
|
16
|
-
export default function Products({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
className: css.loaderContainer,
|
|
47
|
-
children: _jsx(Loader, {
|
|
48
|
-
className: css.loader,
|
|
49
|
-
variant: "overlay"
|
|
50
|
-
})
|
|
51
|
-
}, i);
|
|
52
|
-
}), !loading && filteredProducts.map(product => {
|
|
53
|
-
const {
|
|
54
|
-
id,
|
|
55
|
-
pageTitle,
|
|
56
|
-
title,
|
|
57
|
-
parentTitle,
|
|
58
|
-
image = "",
|
|
59
|
-
imagePlaceholder,
|
|
60
|
-
price,
|
|
61
|
-
time,
|
|
62
|
-
text,
|
|
63
|
-
path
|
|
64
|
-
} = product.document;
|
|
65
|
-
const decodedPath = decodeURIComponent(path);
|
|
66
|
-
const productPageTitle = Utils.getHighlight("pageTitle", product.highlight) || pageTitle;
|
|
67
|
-
const productTitle = Utils.getHighlight("title", product.highlight) || title;
|
|
68
|
-
const productTime = Utils.getHighlight("time", product.highlight) || time;
|
|
69
|
-
const productText = Utils.getHighlight("text", product.highlight) || text;
|
|
70
|
-
const showPrice = price !== undefined && weekNumber !== null;
|
|
71
|
-
const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
|
|
72
|
-
return _jsxs(Link, {
|
|
73
|
-
className: css.product,
|
|
74
|
-
href: decodedPath,
|
|
75
|
-
onClick: sendPlausibleGoal(decodedPath),
|
|
76
|
-
onMouseDown: createRipple,
|
|
77
|
-
children: [_jsx(Image, {
|
|
78
|
-
className: css.productImage,
|
|
79
|
-
src: image,
|
|
80
|
-
alt: title,
|
|
81
|
-
width: 220,
|
|
82
|
-
height: 180,
|
|
83
|
-
placeholder: imagePlaceholderStategy,
|
|
84
|
-
blurDataURL: imagePlaceholder
|
|
85
|
-
}), _jsxs("div", {
|
|
86
|
-
className: css.productContent,
|
|
87
|
-
children: [parentTitle && _jsx("div", {
|
|
88
|
-
className: css.productParent,
|
|
89
|
-
dangerouslySetInnerHTML: {
|
|
90
|
-
__html: parentTitle
|
|
91
|
-
}
|
|
92
|
-
}), _jsx("div", {
|
|
93
|
-
className: css.productPageTitle,
|
|
94
|
-
dangerouslySetInnerHTML: {
|
|
95
|
-
__html: productPageTitle
|
|
96
|
-
}
|
|
97
|
-
}), _jsx("div", {
|
|
98
|
-
className: css.productTitle,
|
|
99
|
-
dangerouslySetInnerHTML: {
|
|
100
|
-
__html: productTitle
|
|
101
|
-
}
|
|
102
|
-
}), _jsx("div", {
|
|
103
|
-
className: css.productTime,
|
|
104
|
-
dangerouslySetInnerHTML: {
|
|
105
|
-
__html: productTime
|
|
106
|
-
}
|
|
107
|
-
}), _jsx("div", {
|
|
108
|
-
className: css.productText,
|
|
109
|
-
dangerouslySetInnerHTML: {
|
|
110
|
-
__html: productText
|
|
111
|
-
}
|
|
112
|
-
}), showPrice && _jsx("div", {
|
|
113
|
-
className: css.productPrice,
|
|
114
|
-
dangerouslySetInnerHTML: {
|
|
115
|
-
__html: price
|
|
116
|
-
}
|
|
117
|
-
})]
|
|
118
|
-
})]
|
|
119
|
-
}, id);
|
|
120
|
-
}), !noProduct && !isOtherResultsEmpty && _jsx("div", {
|
|
121
|
-
className: css.otherProducts,
|
|
122
|
-
children: _jsxs(Button, {
|
|
123
|
-
className: css.otherProductsButton,
|
|
124
|
-
onClick: scrollToOtherResults,
|
|
125
|
-
children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})]
|
|
126
|
-
})
|
|
127
|
-
})]
|
|
128
|
-
});
|
|
129
|
-
}
|
|
13
|
+
export default function Products({ lang, products, weekNumber, loading, sendPlausibleGoal, otherResultsRef, isOtherResultsEmpty, }) {
|
|
14
|
+
const filteredProducts = Utils.filterProducts(products, weekNumber);
|
|
15
|
+
const noProduct = !loading && !filteredProducts.length;
|
|
16
|
+
const scrollToOtherResults = () => {
|
|
17
|
+
if (otherResultsRef.current) {
|
|
18
|
+
otherResultsRef.current.scrollIntoView({
|
|
19
|
+
behavior: "smooth",
|
|
20
|
+
block: "start",
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const createRipple = (e) => {
|
|
25
|
+
Ripple.create(e);
|
|
26
|
+
};
|
|
27
|
+
return (_jsxs(_Fragment, { children: [noProduct && (_jsxs("div", { className: css.noProduct, children: [_jsx(NoProduct, { className: css.noProductIcon }), message(lang, "noProducts")] })), loading &&
|
|
28
|
+
PLACEHOLDERS.map((_, i) => {
|
|
29
|
+
return (_jsx("div", { className: css.loaderContainer, children: _jsx(Loader, { className: css.loader, variant: "overlay" }) }, i));
|
|
30
|
+
}), !loading &&
|
|
31
|
+
filteredProducts.map((product) => {
|
|
32
|
+
const { id, pageTitle, title, parentTitle, image = "", imagePlaceholder, price, time, text, path, } = product.document;
|
|
33
|
+
const decodedPath = decodeURIComponent(path);
|
|
34
|
+
const productPageTitle = Utils.getHighlight("pageTitle", product.highlight) || pageTitle;
|
|
35
|
+
const productTitle = Utils.getHighlight("title", product.highlight) || title;
|
|
36
|
+
const productTime = Utils.getHighlight("time", product.highlight) || time;
|
|
37
|
+
const productText = Utils.getHighlight("text", product.highlight) || text;
|
|
38
|
+
const showPrice = price !== undefined && weekNumber !== null;
|
|
39
|
+
const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
|
|
40
|
+
return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
41
|
+
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
|
|
42
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
type Document = {
|
|
2
|
+
id: string;
|
|
3
|
+
image?: string;
|
|
4
|
+
imagePlaceholder?: string;
|
|
5
|
+
lang: string;
|
|
6
|
+
pageTitle?: string;
|
|
7
|
+
parentTitle?: string;
|
|
8
|
+
path: string;
|
|
9
|
+
price?: string;
|
|
10
|
+
site: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
time?: string;
|
|
13
|
+
title: string;
|
|
14
|
+
type: "page" | "product" | "information" | "faq";
|
|
15
|
+
weeks?: number[];
|
|
16
|
+
shortTitle?: string;
|
|
17
|
+
seoKeywords?: string[];
|
|
18
|
+
seoTitle?: string;
|
|
19
|
+
};
|
|
20
|
+
type Text = {
|
|
21
|
+
matched_tokens: string[];
|
|
22
|
+
snippet: string;
|
|
23
|
+
};
|
|
24
|
+
export type PurpleHighlight = {
|
|
25
|
+
text?: Text;
|
|
26
|
+
title?: Text;
|
|
27
|
+
};
|
|
28
|
+
type HighlightElement = {
|
|
29
|
+
field: string;
|
|
30
|
+
matched_tokens: string[];
|
|
31
|
+
snippet: string;
|
|
32
|
+
};
|
|
33
|
+
type TextMatchInfo = {
|
|
34
|
+
best_field_score: string;
|
|
35
|
+
best_field_weight: number;
|
|
36
|
+
fields_matched: number;
|
|
37
|
+
score: string;
|
|
38
|
+
tokens_matched: number;
|
|
39
|
+
};
|
|
40
|
+
export type Hit = {
|
|
41
|
+
document: Document;
|
|
42
|
+
highlight: PurpleHighlight;
|
|
43
|
+
highlights: HighlightElement[];
|
|
44
|
+
text_match: number;
|
|
45
|
+
text_match_info: TextMatchInfo;
|
|
46
|
+
};
|
|
47
|
+
type GroupedHit = {
|
|
48
|
+
group_key: string[];
|
|
49
|
+
hits: Hit[];
|
|
50
|
+
};
|
|
51
|
+
type RequestParams = {
|
|
52
|
+
collection_name: string;
|
|
53
|
+
per_page: number;
|
|
54
|
+
q: string;
|
|
55
|
+
};
|
|
56
|
+
type Props = {
|
|
57
|
+
lang: string;
|
|
58
|
+
text: string;
|
|
59
|
+
results: {
|
|
60
|
+
facet_counts?: any[];
|
|
61
|
+
found?: number;
|
|
62
|
+
grouped_hits?: GroupedHit[];
|
|
63
|
+
out_of?: number;
|
|
64
|
+
page?: number;
|
|
65
|
+
request_params?: RequestParams;
|
|
66
|
+
search_cutoff?: boolean;
|
|
67
|
+
search_time_ms?: number;
|
|
68
|
+
};
|
|
69
|
+
weekNumber: number | null;
|
|
70
|
+
openPeriodPicker: () => void;
|
|
71
|
+
sendPlausibleGoal: (path: string) => void;
|
|
72
|
+
loading: boolean;
|
|
73
|
+
};
|
|
74
|
+
export default function Results({ lang, text, results, weekNumber, openPeriodPicker, loading, sendPlausibleGoal, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/results.tsx"],"names":[],"mappings":"AAaA,KAAK,QAAQ,GAAG;IACd,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,IAAI,GAAG;IACV,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,aAAa,CAAC;CAChC,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,GAAG,EAAE,CAAC;CACb,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,iBAAiB,GAClB,EAAE,KAAK,2CA0HP"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import getConfig from "next/config";
|
|
3
4
|
import Button from "dt-design-system/es/button";
|
|
@@ -7,124 +8,34 @@ import Products from "./products";
|
|
|
7
8
|
import * as Dates from "./services/dates";
|
|
8
9
|
import message from "./services/messages";
|
|
9
10
|
import css from "./results.module.css";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
|
|
41
|
-
[type]: [...acc[type], hit]
|
|
42
|
-
};
|
|
43
|
-
}, {
|
|
44
|
-
page: [],
|
|
45
|
-
product: [],
|
|
46
|
-
information: [],
|
|
47
|
-
faq: [],
|
|
48
|
-
instructor: []
|
|
49
|
-
});
|
|
50
|
-
const {
|
|
51
|
-
page: pages,
|
|
52
|
-
product: products,
|
|
53
|
-
information,
|
|
54
|
-
faq: faqs,
|
|
55
|
-
instructor: instructors
|
|
56
|
-
} = sortedHits;
|
|
57
|
-
const filteredFaqs = faqs.reduce((acc, faq) => {
|
|
58
|
-
const isAlreadyInAcc = acc.some(item => {
|
|
59
|
-
const hasSameTitle = item.document.title === faq.document.title;
|
|
60
|
-
const hasSameParentTitle = item.document.parentTitle === faq.document.parentTitle;
|
|
61
|
-
return hasSameTitle && hasSameParentTitle;
|
|
62
|
-
});
|
|
63
|
-
if (isAlreadyInAcc) return acc;
|
|
64
|
-
return [...acc, faq];
|
|
65
|
-
}, []);
|
|
66
|
-
const weekSystemEnabled = Boolean(season);
|
|
67
|
-
const showProductsTitle = weekNumber !== null;
|
|
68
|
-
const isOtherResultsEmpty = !(pages.length || instructors.length || filteredFaqs.length || information.length);
|
|
69
|
-
return _jsx("div", {
|
|
70
|
-
className: css.results,
|
|
71
|
-
children: (loading || text.length > 0) && _jsxs("div", {
|
|
72
|
-
className: css.inner,
|
|
73
|
-
children: [_jsxs("div", {
|
|
74
|
-
ref: ref,
|
|
75
|
-
className: css.left,
|
|
76
|
-
children: [_jsx(Links, {
|
|
77
|
-
linksTitle: message(lang, "pages"),
|
|
78
|
-
icon: "FileText",
|
|
79
|
-
links: pages,
|
|
80
|
-
loading: loading,
|
|
81
|
-
sendPlausibleGoal: sendPlausibleGoal
|
|
82
|
-
}), _jsx(Links, {
|
|
83
|
-
linksTitle: message(lang, "instructors"),
|
|
84
|
-
icon: "User",
|
|
85
|
-
links: instructors,
|
|
86
|
-
loading: loading,
|
|
87
|
-
sendPlausibleGoal: sendPlausibleGoal
|
|
88
|
-
}), _jsx(Links, {
|
|
89
|
-
linksTitle: message(lang, "faqs"),
|
|
90
|
-
icon: "Question",
|
|
91
|
-
links: filteredFaqs,
|
|
92
|
-
loading: loading,
|
|
93
|
-
sendPlausibleGoal: sendPlausibleGoal
|
|
94
|
-
}), _jsx(Links, {
|
|
95
|
-
linksTitle: message(lang, "information"),
|
|
96
|
-
icon: "Info",
|
|
97
|
-
links: information,
|
|
98
|
-
loading: loading,
|
|
99
|
-
sendPlausibleGoal: sendPlausibleGoal,
|
|
100
|
-
pageTitleAsTitle: true
|
|
101
|
-
})]
|
|
102
|
-
}), _jsxs("div", {
|
|
103
|
-
className: css.right,
|
|
104
|
-
children: [!loading && products.length > 0 && weekSystemEnabled && _jsx(_Fragment, {
|
|
105
|
-
children: showProductsTitle ? _jsxs("div", {
|
|
106
|
-
className: css.resultsWithWeekTitle,
|
|
107
|
-
children: [message(lang, "productTitleWithWeek"), Dates.weekToLongDate(weekNumber, season.end, season.forceSeasonSwitch), _jsxs(Button, {
|
|
108
|
-
onClick: openPeriodPicker,
|
|
109
|
-
children: [_jsx(Icons.Calendar, {}), message(lang, "updateWeek")]
|
|
110
|
-
})]
|
|
111
|
-
}) : _jsxs("div", {
|
|
112
|
-
className: css.resultsWithoutWeekTitle,
|
|
113
|
-
children: [message(lang, "productTitleWithoutWeek"), _jsxs(Button, {
|
|
114
|
-
onClick: openPeriodPicker,
|
|
115
|
-
children: [_jsx(Icons.Calendar, {}), message(lang, "chooseWeek")]
|
|
116
|
-
})]
|
|
117
|
-
})
|
|
118
|
-
}), _jsx(Products, {
|
|
119
|
-
lang: lang,
|
|
120
|
-
products: products,
|
|
121
|
-
weekNumber: weekNumber,
|
|
122
|
-
loading: loading,
|
|
123
|
-
sendPlausibleGoal: sendPlausibleGoal,
|
|
124
|
-
otherResultsRef: ref,
|
|
125
|
-
isOtherResultsEmpty: isOtherResultsEmpty
|
|
126
|
-
})]
|
|
127
|
-
})]
|
|
128
|
-
})
|
|
129
|
-
});
|
|
130
|
-
}
|
|
11
|
+
const { publicRuntimeConfig } = getConfig();
|
|
12
|
+
const { season } = publicRuntimeConfig;
|
|
13
|
+
export default function Results({ lang, text, results, weekNumber, openPeriodPicker, loading, sendPlausibleGoal, }) {
|
|
14
|
+
const ref = React.useRef(null);
|
|
15
|
+
const { grouped_hits: groupedHits = [] } = results || {};
|
|
16
|
+
const flattenedHits = groupedHits.reduce((acc, group) => {
|
|
17
|
+
return [...acc, ...group.hits];
|
|
18
|
+
}, []);
|
|
19
|
+
const sortedHits = flattenedHits.reduce((acc, hit) => {
|
|
20
|
+
const { type } = hit.document;
|
|
21
|
+
return { ...acc, [type]: [...acc[type], hit] };
|
|
22
|
+
}, { page: [], product: [], information: [], faq: [], instructor: [] });
|
|
23
|
+
const { page: pages, product: products, information, faq: faqs, instructor: instructors, } = sortedHits;
|
|
24
|
+
const filteredFaqs = faqs.reduce((acc, faq) => {
|
|
25
|
+
const isAlreadyInAcc = acc.some((item) => {
|
|
26
|
+
const hasSameTitle = item.document.title === faq.document.title;
|
|
27
|
+
const hasSameParentTitle = item.document.parentTitle === faq.document.parentTitle;
|
|
28
|
+
return hasSameTitle && hasSameParentTitle;
|
|
29
|
+
});
|
|
30
|
+
if (isAlreadyInAcc)
|
|
31
|
+
return acc;
|
|
32
|
+
return [...acc, faq];
|
|
33
|
+
}, []);
|
|
34
|
+
const weekSystemEnabled = Boolean(season);
|
|
35
|
+
const showProductsTitle = weekNumber !== null;
|
|
36
|
+
const isOtherResultsEmpty = !(pages.length ||
|
|
37
|
+
instructors.length ||
|
|
38
|
+
filteredFaqs.length ||
|
|
39
|
+
information.length);
|
|
40
|
+
return (_jsx("div", { className: css.results, children: (loading || text.length > 0) && (_jsxs("div", { className: css.inner, children: [_jsxs("div", { ref: ref, className: css.left, children: [_jsx(Links, { linksTitle: message(lang, "pages"), icon: "FileText", links: pages, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "instructors"), icon: "User", links: instructors, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "faqs"), icon: "Question", links: filteredFaqs, loading: loading, sendPlausibleGoal: sendPlausibleGoal }), _jsx(Links, { linksTitle: message(lang, "information"), icon: "Info", links: information, loading: loading, sendPlausibleGoal: sendPlausibleGoal, pageTitleAsTitle: true })] }), _jsxs("div", { className: css.right, children: [!loading && products.length > 0 && weekSystemEnabled && (_jsx(_Fragment, { children: showProductsTitle ? (_jsxs("div", { className: css.resultsWithWeekTitle, children: [message(lang, "productTitleWithWeek"), Dates.weekToLongDate(weekNumber, season.end, season.forceSeasonSwitch), _jsxs(Button, { onClick: openPeriodPicker, children: [_jsx(Icons.Calendar, {}), message(lang, "updateWeek")] })] })) : (_jsxs("div", { className: css.resultsWithoutWeekTitle, children: [message(lang, "productTitleWithoutWeek"), _jsxs(Button, { onClick: openPeriodPicker, children: [_jsx(Icons.Calendar, {}), message(lang, "chooseWeek")] })] })) })), _jsx(Products, { lang: lang, products: products, weekNumber: weekNumber, loading: loading, sendPlausibleGoal: sendPlausibleGoal, otherResultsRef: ref, isOtherResultsEmpty: isOtherResultsEmpty })] })] })) }));
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/services/api.ts"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAAU,EACtB,OAAO,GAAE,MAAgE,EACzE,cAAc,CAAC,EAAE,MAAM,gBAcxB"}
|