ublo-lib 1.31.44 → 1.32.1
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 +2 -2
- package/es/common/components/admin-links/admin-links.d.ts.map +1 -0
- package/es/common/components/admin-links/admin-links.js +59 -0
- package/es/common/components/admin-links/index.d.ts +1 -0
- package/es/common/components/admin-links/index.d.ts.map +1 -0
- package/es/common/components/analytics.d.ts +1 -0
- package/es/common/components/analytics.d.ts.map +1 -0
- package/es/common/components/analytics.js +3 -12
- package/es/common/components/breadcrumb.d.ts +2 -2
- package/es/common/components/breadcrumb.d.ts.map +1 -0
- package/es/common/components/{breadcrumb.jsx → breadcrumb.js} +6 -11
- package/es/common/components/carousel-zone.d.ts +2 -2
- package/es/common/components/carousel-zone.d.ts.map +1 -0
- package/es/common/components/carousel-zone.js +5 -26
- package/es/common/components/carousel.d.ts +2 -1
- package/es/common/components/carousel.d.ts.map +1 -0
- package/es/common/components/carousel.js +15 -32
- package/es/common/components/cart-preview/api.d.ts +1 -0
- package/es/common/components/cart-preview/api.d.ts.map +1 -0
- package/es/common/components/cart-preview/api.js +3 -12
- package/es/common/components/cart-preview/cart-pill.d.ts +2 -2
- package/es/common/components/cart-preview/cart-pill.d.ts.map +1 -0
- package/es/common/components/cart-preview/cart-pill.js +2 -1
- package/es/common/components/cart-preview/cart-preview.d.ts +2 -2
- package/es/common/components/cart-preview/cart-preview.d.ts.map +1 -0
- package/es/common/components/cart-preview/cart-preview.js +14 -46
- package/es/common/components/cart-preview/index.d.ts +1 -0
- package/es/common/components/cart-preview/index.d.ts.map +1 -0
- package/es/common/components/cart-preview/utils.d.ts +1 -0
- package/es/common/components/cart-preview/utils.d.ts.map +1 -0
- package/es/common/components/collapsible/collapsible.d.ts +2 -1
- package/es/common/components/collapsible/collapsible.d.ts.map +1 -0
- package/es/common/components/collapsible/{collapsible.jsx → collapsible.js} +4 -10
- package/es/common/components/collapsible/index.d.ts +1 -0
- package/es/common/components/collapsible/index.d.ts.map +1 -0
- package/es/common/components/cookie-consent/cookie-consent.d.ts +1 -0
- package/es/common/components/cookie-consent/cookie-consent.d.ts.map +1 -0
- package/es/common/components/cookie-consent/cookie-consent.js +7 -39
- package/es/common/components/cookie-consent/index.d.ts +1 -0
- package/es/common/components/cookie-consent/index.d.ts.map +1 -0
- package/es/common/components/cookie-consent/messages.d.ts +1 -0
- package/es/common/components/cookie-consent/messages.d.ts.map +1 -0
- package/es/common/components/cookie-consent/utils.d.ts +1 -0
- package/es/common/components/cookie-consent/utils.d.ts.map +1 -0
- package/es/common/components/cookie-consent/utils.js +18 -29
- package/es/common/components/cross-selling-editor/cross-selling-editor.d.ts +2 -1
- 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.jsx → cross-selling-editor.js} +3 -9
- package/es/common/components/cross-selling-editor/editor.d.ts +2 -1
- package/es/common/components/cross-selling-editor/editor.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/{editor.jsx → editor.js} +5 -16
- package/es/common/components/cross-selling-editor/hooks/use-custom-offers.d.ts +1 -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 +6 -15
- package/es/common/components/cross-selling-editor/hooks/use-tunnel-offers.d.ts +1 -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 +4 -13
- package/es/common/components/cross-selling-editor/index.d.ts +1 -0
- package/es/common/components/cross-selling-editor/index.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/override-trigger-form.d.ts +2 -1
- 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 +54 -0
- package/es/common/components/cross-selling-editor/override.d.ts +2 -1
- package/es/common/components/cross-selling-editor/override.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/{override.jsx → override.js} +25 -26
- package/es/common/components/cross-selling-editor/overrides-list.d.ts +2 -1
- package/es/common/components/cross-selling-editor/overrides-list.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/overrides-list.js +55 -0
- package/es/common/components/cross-selling-editor/rule.d.ts +2 -1
- package/es/common/components/cross-selling-editor/rule.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/rule.js +74 -0
- package/es/common/components/cross-selling-editor/rules.d.ts +2 -1
- package/es/common/components/cross-selling-editor/rules.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/rules.js +31 -0
- package/es/common/components/cross-selling-editor/services/api.d.ts +1 -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 +10 -24
- package/es/common/components/cross-selling-editor/services/utils.d.ts +1 -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 +34 -48
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.d.ts +2 -2
- 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 +21 -0
- package/es/common/components/cross-selling-editor/tester.d.ts +2 -2
- package/es/common/components/cross-selling-editor/tester.d.ts.map +1 -0
- package/es/common/components/cross-selling-editor/{tester.jsx → tester.js} +12 -53
- package/es/common/components/cross-selling-editor/types.d.ts +1 -0
- package/es/common/components/cross-selling-editor/types.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/attachment.d.ts +2 -2
- package/es/common/components/custom-contact-form/attachment.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/attachment.js +15 -37
- package/es/common/components/custom-contact-form/custom-contact-form.d.ts +2 -1
- 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 +90 -0
- package/es/common/components/custom-contact-form/field.d.ts +2 -2
- package/es/common/components/custom-contact-form/field.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/field.js +30 -32
- package/es/common/components/custom-contact-form/icons.d.ts +5 -5
- package/es/common/components/custom-contact-form/icons.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/icons.js +7 -34
- package/es/common/components/custom-contact-form/index.d.ts +1 -0
- package/es/common/components/custom-contact-form/index.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/messages.d.ts +1 -0
- package/es/common/components/custom-contact-form/messages.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/utils.d.ts +1 -0
- package/es/common/components/custom-contact-form/utils.d.ts.map +1 -0
- package/es/common/components/custom-contact-form/utils.js +32 -35
- package/es/common/components/date-picker/calendar.d.ts +2 -2
- package/es/common/components/date-picker/calendar.d.ts.map +1 -0
- package/es/common/components/date-picker/calendar.js +13 -74
- package/es/common/components/date-picker/data.d.ts +1 -0
- package/es/common/components/date-picker/data.d.ts.map +1 -0
- package/es/common/components/date-picker/date-item.d.ts +2 -2
- package/es/common/components/date-picker/date-item.d.ts.map +1 -0
- package/es/common/components/date-picker/date-item.js +8 -11
- package/es/common/components/date-picker/date-picker.d.ts +2 -2
- package/es/common/components/date-picker/date-picker.d.ts.map +1 -0
- package/es/common/components/date-picker/date-picker.js +2 -7
- package/es/common/components/date-picker/helper.d.ts +2 -2
- package/es/common/components/date-picker/helper.d.ts.map +1 -0
- package/es/common/components/date-picker/helper.js +2 -19
- package/es/common/components/date-picker/index.d.ts +1 -0
- package/es/common/components/date-picker/index.d.ts.map +1 -0
- package/es/common/components/date-picker/messages.d.ts +1 -0
- package/es/common/components/date-picker/messages.d.ts.map +1 -0
- package/es/common/components/date-picker/month.d.ts +2 -2
- package/es/common/components/date-picker/month.d.ts.map +1 -0
- package/es/common/components/date-picker/month.js +6 -17
- package/es/common/components/date-picker/utils.d.ts +2 -1
- package/es/common/components/date-picker/utils.d.ts.map +1 -0
- package/es/common/components/date-picker/utils.js +2 -2
- package/es/common/components/editable-calendar/calendar-caption.d.ts +2 -2
- package/es/common/components/editable-calendar/calendar-caption.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-caption.js +37 -50
- package/es/common/components/editable-calendar/calendar-date.d.ts +2 -2
- package/es/common/components/editable-calendar/calendar-date.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-date.js +2 -5
- package/es/common/components/editable-calendar/calendar-editor.d.ts +2 -2
- package/es/common/components/editable-calendar/calendar-editor.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-editor.js +10 -21
- package/es/common/components/editable-calendar/calendar-header.d.ts +2 -2
- package/es/common/components/editable-calendar/calendar-header.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar-header.js +2 -11
- package/es/common/components/editable-calendar/calendar.d.ts +2 -2
- package/es/common/components/editable-calendar/calendar.d.ts.map +1 -0
- package/es/common/components/editable-calendar/calendar.js +3 -20
- package/es/common/components/editable-calendar/data.d.ts +1 -0
- package/es/common/components/editable-calendar/data.d.ts.map +1 -0
- package/es/common/components/editable-calendar/index.d.ts +1 -0
- package/es/common/components/editable-calendar/index.d.ts.map +1 -0
- package/es/common/components/editable-calendar/index.js +2 -1
- package/es/common/components/editable-calendar/utils.d.ts +2 -1
- package/es/common/components/editable-calendar/utils.d.ts.map +1 -0
- package/es/common/components/editable-map/cluster.d.ts +1 -0
- package/es/common/components/editable-map/cluster.d.ts.map +1 -0
- package/es/common/components/editable-map/cluster.js +2 -3
- package/es/common/components/editable-map/edit-form.d.ts +2 -2
- package/es/common/components/editable-map/edit-form.d.ts.map +1 -0
- package/es/common/components/editable-map/edit-form.js +3 -24
- package/es/common/components/editable-map/editable-map.d.ts +2 -2
- package/es/common/components/editable-map/editable-map.d.ts.map +1 -0
- package/es/common/components/editable-map/editable-map.js +6 -22
- package/es/common/components/editable-map/full-screen-button.d.ts +2 -2
- package/es/common/components/editable-map/full-screen-button.d.ts.map +1 -0
- package/es/common/components/editable-map/full-screen-button.js +2 -3
- package/es/common/components/editable-map/helper.d.ts +2 -2
- package/es/common/components/editable-map/helper.d.ts.map +1 -0
- package/es/common/components/editable-map/helper.js +2 -21
- package/es/common/components/editable-map/icon-picker.d.ts +2 -2
- package/es/common/components/editable-map/icon-picker.d.ts.map +1 -0
- package/es/common/components/editable-map/icon-picker.js +10 -25
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts +51 -51
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/esf-pralognan.js +57 -372
- package/es/common/components/editable-map/icons/esf.d.ts +39 -39
- package/es/common/components/editable-map/icons/esf.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/esf.js +45 -265
- package/es/common/components/editable-map/icons/index.d.ts +1 -0
- package/es/common/components/editable-map/icons/index.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/lavovelo.d.ts +5 -5
- package/es/common/components/editable-map/icons/lavovelo.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/lavovelo.js +7 -42
- package/es/common/components/editable-map/icons/sata-huez.d.ts +29 -29
- package/es/common/components/editable-map/icons/sata-huez.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/sata-huez.js +34 -169
- package/es/common/components/editable-map/icons/sedev-vars.d.ts +29 -29
- package/es/common/components/editable-map/icons/sedev-vars.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/sedev-vars.js +34 -169
- package/es/common/components/editable-map/icons/viarmonia.d.ts +3 -3
- package/es/common/components/editable-map/icons/viarmonia.d.ts.map +1 -0
- package/es/common/components/editable-map/icons/viarmonia.js +5 -25
- package/es/common/components/editable-map/index.d.ts +1 -0
- package/es/common/components/editable-map/index.d.ts.map +1 -0
- package/es/common/components/editable-map/index.js +7 -11
- package/es/common/components/editable-map/map-events.d.ts +1 -0
- package/es/common/components/editable-map/map-events.d.ts.map +1 -0
- package/es/common/components/editable-map/map-events.js +2 -3
- package/es/common/components/editable-map/marker-list.d.ts +2 -2
- package/es/common/components/editable-map/marker-list.d.ts.map +1 -0
- package/es/common/components/editable-map/marker-list.js +27 -37
- package/es/common/components/editable-map/markers.d.ts +1 -0
- package/es/common/components/editable-map/markers.d.ts.map +1 -0
- package/es/common/components/editable-map/markers.js +7 -11
- package/es/common/components/editable-map/popup-data.d.ts +2 -2
- package/es/common/components/editable-map/popup-data.d.ts.map +1 -0
- package/es/common/components/editable-map/popup-data.js +2 -7
- package/es/common/components/editable-map/slopes-toggle.d.ts +2 -2
- package/es/common/components/editable-map/slopes-toggle.d.ts.map +1 -0
- package/es/common/components/editable-map/slopes-toggle.js +2 -3
- package/es/common/components/error-404/error-404.d.ts +2 -2
- package/es/common/components/error-404/error-404.d.ts.map +1 -0
- package/es/common/components/error-404/error-404.js +2 -11
- package/es/common/components/error-404/index.d.ts +1 -0
- package/es/common/components/error-404/index.d.ts.map +1 -0
- package/es/common/components/error-404/messages.d.ts +1 -0
- package/es/common/components/error-404/messages.d.ts.map +1 -0
- package/es/common/components/error-404/messages.js +1 -2
- package/es/common/components/faq.d.ts +2 -1
- package/es/common/components/faq.d.ts.map +1 -0
- package/es/common/components/faq.js +2 -4
- package/es/common/components/gesco-contact-form/gesco-contact-form.d.ts +2 -2
- 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 +108 -0
- package/es/common/components/gesco-contact-form/hooks/use-params.d.ts +1 -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 +3 -12
- package/es/common/components/gesco-contact-form/index.d.ts +1 -0
- package/es/common/components/gesco-contact-form/index.d.ts.map +1 -0
- package/es/common/components/gesco-contact-form/phone-code-select.d.ts +2 -2
- 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.jsx → phone-code-select.js} +8 -8
- package/es/common/components/gesco-contact-form/services/api.d.ts +1 -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 +8 -22
- package/es/common/components/gesco-contact-form/services/form.d.ts +1 -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 +3 -6
- package/es/common/components/gesco-contact-form/services/messages.d.ts +1 -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 +1 -1
- package/es/common/components/gesco-contact-form/services/plausible.d.ts +1 -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 +2 -3
- package/es/common/components/gesco-contact-form/types.d.ts +1 -0
- package/es/common/components/gesco-contact-form/types.d.ts.map +1 -0
- package/es/common/components/info-buttons.d.ts +2 -1
- package/es/common/components/info-buttons.d.ts.map +1 -0
- package/es/common/components/info-buttons.js +7 -22
- package/es/common/components/information/index.d.ts +1 -0
- package/es/common/components/information/index.d.ts.map +1 -0
- package/es/common/components/information/information.d.ts +2 -2
- package/es/common/components/information/information.d.ts.map +1 -0
- package/es/common/components/information/{information.jsx → information.js} +6 -16
- package/es/common/components/instant-search/hooks/use-constant.d.ts +1 -0
- package/es/common/components/instant-search/hooks/use-constant.d.ts.map +1 -0
- package/es/common/components/instant-search/hooks/use-debounced-search.d.ts +1 -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 +1 -10
- package/es/common/components/instant-search/hooks/use-search.d.ts +1 -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 +2 -11
- package/es/common/components/instant-search/index.d.ts +1 -0
- package/es/common/components/instant-search/index.d.ts.map +1 -0
- package/es/common/components/instant-search/input.d.ts +2 -2
- package/es/common/components/instant-search/input.d.ts.map +1 -0
- package/es/common/components/instant-search/{input.jsx → input.js} +17 -25
- package/es/common/components/instant-search/instant-search.d.ts +2 -2
- package/es/common/components/instant-search/instant-search.d.ts.map +1 -0
- package/es/common/components/instant-search/{instant-search.jsx → instant-search.js} +3 -16
- package/es/common/components/instant-search/links.d.ts +2 -2
- package/es/common/components/instant-search/links.d.ts.map +1 -0
- package/es/common/components/instant-search/links.js +30 -0
- package/es/common/components/instant-search/no-product.d.ts +2 -2
- package/es/common/components/instant-search/no-product.d.ts.map +1 -0
- package/es/common/components/instant-search/no-product.js +4 -0
- package/es/common/components/instant-search/products.d.ts +2 -1
- package/es/common/components/instant-search/products.d.ts.map +1 -0
- package/es/common/components/instant-search/products.js +42 -0
- package/es/common/components/instant-search/results.d.ts +2 -2
- package/es/common/components/instant-search/results.d.ts.map +1 -0
- package/es/common/components/instant-search/results.js +41 -0
- package/es/common/components/instant-search/services/api.d.ts +1 -0
- package/es/common/components/instant-search/services/api.d.ts.map +1 -0
- package/es/common/components/instant-search/services/api.js +0 -1
- package/es/common/components/instant-search/services/dates.d.ts +1 -0
- package/es/common/components/instant-search/services/dates.d.ts.map +1 -0
- package/es/common/components/instant-search/services/dates.js +0 -3
- package/es/common/components/instant-search/services/messages.d.ts +1 -0
- package/es/common/components/instant-search/services/messages.d.ts.map +1 -0
- package/es/common/components/instant-search/services/utils.d.ts +1 -0
- package/es/common/components/instant-search/services/utils.d.ts.map +1 -0
- package/es/common/components/instant-search/services/utils.js +1 -2
- package/es/common/components/msem-preset-editor/components/facet-selector.d.ts +2 -2
- 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.jsx → facet-selector.js} +7 -4
- package/es/common/components/msem-preset-editor/components/form.d.ts +2 -2
- package/es/common/components/msem-preset-editor/components/form.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/components/form.js +9 -0
- package/es/common/components/msem-preset-editor/components/stay-picker.d.ts +2 -2
- 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.jsx → stay-picker.js} +5 -8
- package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts +2 -1
- 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 +55 -0
- package/es/common/components/msem-preset-editor/components/widget-list.d.ts +2 -1
- 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 +34 -0
- package/es/common/components/msem-preset-editor/editor-dialog.d.ts +2 -1
- package/es/common/components/msem-preset-editor/editor-dialog.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editor-dialog.js +27 -0
- package/es/common/components/msem-preset-editor/editors/elloha.d.ts +2 -1
- package/es/common/components/msem-preset-editor/editors/elloha.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/elloha.js +79 -0
- package/es/common/components/msem-preset-editor/editors/index.d.ts +1 -0
- package/es/common/components/msem-preset-editor/editors/index.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/lodgings.d.ts +2 -1
- package/es/common/components/msem-preset-editor/editors/lodgings.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/lodgings.js +192 -0
- package/es/common/components/msem-preset-editor/editors/ski-passes-jb.d.ts +2 -1
- 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 +85 -0
- package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts +2 -1
- 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 +198 -0
- package/es/common/components/msem-preset-editor/editors/standard-products.d.ts +2 -1
- 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.jsx → standard-products.js} +16 -21
- package/es/common/components/msem-preset-editor/editors/vakario.d.ts +2 -1
- package/es/common/components/msem-preset-editor/editors/vakario.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/editors/{vakario.jsx → vakario.js} +50 -48
- package/es/common/components/msem-preset-editor/index.d.ts +1 -0
- package/es/common/components/msem-preset-editor/index.d.ts.map +1 -0
- package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts +2 -1
- 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 +161 -0
- package/es/common/components/msem-preset-editor/services/api.d.ts +1 -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 +42 -79
- package/es/common/components/msem-preset-editor/services/offers.d.ts +1 -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 +35 -57
- package/es/common/components/msem-preset-editor/services/preset.d.ts +1 -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 +1 -1
- package/es/common/components/msem-preset-editor/services/url-params.d.ts +1 -0
- package/es/common/components/msem-preset-editor/services/url-params.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/components/actions.d.ts +2 -2
- package/es/common/components/msem-preset-linker/components/actions.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/components/{actions.jsx → actions.js} +7 -22
- package/es/common/components/msem-preset-linker/components/overlays.d.ts +2 -2
- package/es/common/components/msem-preset-linker/components/overlays.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/components/{overlays.jsx → overlays.js} +6 -13
- package/es/common/components/msem-preset-linker/components/resort-selector.d.ts +2 -2
- 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.jsx → resort-selector.js} +3 -3
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts +1 -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 +2 -3
- package/es/common/components/msem-preset-linker/index.d.ts +1 -0
- package/es/common/components/msem-preset-linker/index.d.ts.map +1 -0
- package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts +2 -1
- 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.jsx → msem-preset-linker.js} +11 -13
- package/es/common/components/msem-preset-linker/services/url-params.d.ts +1 -0
- package/es/common/components/msem-preset-linker/services/url-params.d.ts.map +1 -0
- package/es/common/components/packages-selector/index.d.ts +2 -2
- package/es/common/components/packages-selector/index.d.ts.map +1 -0
- package/es/common/components/packages-selector/index.js +13 -33
- package/es/common/components/plausible/hooks/use-plausible.d.ts +2 -1
- package/es/common/components/plausible/hooks/use-plausible.d.ts.map +1 -0
- package/es/common/components/plausible/hooks/use-plausible.js +6 -6
- package/es/common/components/plausible/index.d.ts +1 -0
- package/es/common/components/plausible/index.d.ts.map +1 -0
- package/es/common/components/plausible/plausible.d.ts +2 -2
- package/es/common/components/plausible/plausible.d.ts.map +1 -0
- package/es/{future/components/plausible/plausible.jsx → common/components/plausible/plausible.js} +2 -3
- package/es/common/components/plausible/services/callback.d.ts +1 -0
- package/es/common/components/plausible/services/callback.d.ts.map +1 -0
- package/es/common/components/plausible/services/callback.js +14 -20
- package/es/common/components/plausible/services/load.d.ts +1 -0
- package/es/common/components/plausible/services/load.d.ts.map +1 -0
- package/es/common/components/plausible/services/send-goal.d.ts +1 -0
- package/es/common/components/plausible/services/send-goal.d.ts.map +1 -0
- package/es/common/components/popup.d.ts +2 -2
- package/es/common/components/popup.d.ts.map +1 -0
- package/es/common/components/popup.js +5 -35
- package/es/common/components/scroll-spy.d.ts +2 -1
- package/es/common/components/scroll-spy.d.ts.map +1 -0
- package/es/common/components/{scroll-spy.jsx → scroll-spy.js} +10 -20
- package/es/common/components/scrolling-carousel/index.d.ts +1 -0
- package/es/common/components/scrolling-carousel/index.d.ts.map +1 -0
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts +2 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +1 -0
- package/es/common/components/scrolling-carousel/{scrolling-carousel.jsx → scrolling-carousel.js} +25 -23
- package/es/common/components/search-bar/hooks/use-constant.d.ts +1 -0
- package/es/common/components/search-bar/hooks/use-constant.d.ts.map +1 -0
- package/es/common/components/search-bar/hooks/use-debounced-search.d.ts +1 -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 +1 -10
- package/es/common/components/search-bar/hooks/use-search.d.ts +1 -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 +2 -11
- package/es/common/components/search-bar/index.d.ts +1 -0
- package/es/common/components/search-bar/index.d.ts.map +1 -0
- package/es/common/components/search-bar/messages.d.ts +1 -0
- package/es/common/components/search-bar/messages.d.ts.map +1 -0
- package/es/common/components/search-bar/search-bar.d.ts +2 -1
- package/es/common/components/search-bar/search-bar.d.ts.map +1 -0
- package/es/common/components/search-bar/search-bar.js +38 -51
- package/es/common/components/search-bar/utils/fetcher.d.ts +1 -0
- package/es/common/components/search-bar/utils/fetcher.d.ts.map +1 -0
- package/es/common/components/search-bar/utils/fetcher.js +3 -12
- package/es/common/components/search-bar/utils/keyboard-keys.d.ts +1 -0
- package/es/common/components/search-bar/utils/keyboard-keys.d.ts.map +1 -0
- package/es/common/components/search-bar/utils/params.d.ts +1 -0
- package/es/common/components/search-bar/utils/params.d.ts.map +1 -0
- package/es/common/components/tabbed-zones.d.ts +2 -2
- package/es/common/components/tabbed-zones.d.ts.map +1 -0
- package/es/common/components/tabbed-zones.js +50 -0
- package/es/common/components/video-player/controls.d.ts +2 -1
- package/es/common/components/video-player/controls.d.ts.map +1 -0
- package/es/common/components/video-player/controls.js +5 -39
- package/es/common/components/video-player/icons.d.ts +7 -7
- package/es/common/components/video-player/icons.d.ts.map +1 -0
- package/es/common/components/video-player/icons.js +8 -35
- package/es/common/components/video-player/index.d.ts +1 -0
- package/es/common/components/video-player/index.d.ts.map +1 -0
- package/es/common/components/video-player/utils.d.ts +1 -0
- package/es/common/components/video-player/utils.d.ts.map +1 -0
- package/es/common/components/video-player/video-player.d.ts +2 -1
- package/es/common/components/video-player/video-player.d.ts.map +1 -0
- package/es/common/components/video-player/video-player.js +3 -17
- package/es/common/hooks/use-account.d.ts +1 -0
- package/es/common/hooks/use-account.d.ts.map +1 -0
- package/es/common/hooks/use-account.js +8 -19
- package/es/common/hooks/use-faq.d.ts +1 -0
- package/es/common/hooks/use-faq.d.ts.map +1 -0
- package/es/common/hooks/use-in-view.d.ts +1 -0
- package/es/common/hooks/use-in-view.d.ts.map +1 -0
- package/es/common/hooks/use-in-view.js +1 -1
- package/es/common/hooks/use-injected-cms-markup.d.ts +1 -0
- package/es/common/hooks/use-injected-cms-markup.d.ts.map +1 -0
- package/es/common/hooks/use-injected-cms-markup.js +5 -14
- package/es/common/hooks/use-packages.d.ts +1 -0
- package/es/common/hooks/use-packages.d.ts.map +1 -0
- package/es/common/hooks/use-packages.js +5 -13
- package/es/common/hooks/use-scroll-direction.d.ts +1 -0
- package/es/common/hooks/use-scroll-direction.d.ts.map +1 -0
- package/es/common/hooks/use-stay.d.ts +1 -0
- package/es/common/hooks/use-stay.d.ts.map +1 -0
- package/es/common/hooks/use-sticky.d.ts +1 -0
- package/es/common/hooks/use-sticky.d.ts.map +1 -0
- package/es/common/hooks/use-tunnel.d.ts +1 -0
- package/es/common/hooks/use-tunnel.d.ts.map +1 -0
- package/es/common/hooks/use-tunnel.js +10 -22
- package/es/common/hooks/use-update-effect.d.ts +2 -1
- package/es/common/hooks/use-update-effect.d.ts.map +1 -0
- package/es/common/hooks/use-update-effect.js +2 -2
- package/es/common/hooks/use-window-sizes.d.ts +1 -0
- package/es/common/hooks/use-window-sizes.d.ts.map +1 -0
- package/es/common/hooks/use-youtube-popup.d.ts +1 -0
- package/es/common/hooks/use-youtube-popup.d.ts.map +1 -0
- package/es/common/hooks/use-youtube-popup.js +10 -12
- package/es/common/hooks/use-zone-sync.d.ts +1 -0
- package/es/common/hooks/use-zone-sync.d.ts.map +1 -0
- package/es/common/hooks/use-zone-sync.js +2 -4
- package/es/common/utils/cms.d.ts +1 -0
- package/es/common/utils/cms.d.ts.map +1 -0
- package/es/common/utils/cms.js +16 -29
- package/es/common/utils/cookies.d.ts +1 -0
- package/es/common/utils/cookies.d.ts.map +1 -0
- package/es/common/utils/copy.d.ts +1 -0
- package/es/common/utils/copy.d.ts.map +1 -0
- package/es/common/utils/dates.d.ts +1 -0
- package/es/common/utils/dates.d.ts.map +1 -0
- package/es/common/utils/elements.d.ts +1 -0
- package/es/common/utils/elements.d.ts.map +1 -0
- package/es/common/utils/elements.js +1 -2
- package/es/common/utils/events.d.ts +1 -0
- package/es/common/utils/events.d.ts.map +1 -0
- package/es/common/utils/events.js +0 -17
- package/es/common/utils/fetcher.d.ts +1 -0
- package/es/common/utils/fetcher.d.ts.map +1 -0
- package/es/common/utils/fetcher.js +5 -15
- package/es/common/utils/file-manager.d.ts +1 -0
- package/es/common/utils/file-manager.d.ts.map +1 -0
- package/es/common/utils/file-manager.js +3 -12
- package/es/common/utils/load-js.d.ts +1 -0
- package/es/common/utils/load-js.d.ts.map +1 -0
- package/es/common/utils/msem-widget.d.ts +2 -2
- package/es/common/utils/msem-widget.d.ts.map +1 -0
- package/es/common/utils/msem-widget.js +39 -0
- package/es/common/utils/scrollbar-size.d.ts +1 -0
- package/es/common/utils/scrollbar-size.d.ts.map +1 -0
- package/es/common/utils/touch-device.d.ts +1 -0
- package/es/common/utils/touch-device.d.ts.map +1 -0
- package/es/common/utils/url-parameters.d.ts +1 -0
- package/es/common/utils/url-parameters.d.ts.map +1 -0
- package/es/esf/components/account-button/account-button.d.ts +2 -2
- package/es/esf/components/account-button/account-button.d.ts.map +1 -0
- package/es/esf/components/account-button/{account-button.jsx → account-button.js} +2 -5
- package/es/esf/components/account-button/index.d.ts +1 -0
- package/es/esf/components/account-button/index.d.ts.map +1 -0
- package/es/esf/components/booking-form/booking-form.d.ts +2 -2
- package/es/esf/components/booking-form/booking-form.d.ts.map +1 -0
- package/es/esf/components/booking-form/booking-form.js +3 -10
- package/es/esf/components/booking-form/data.d.ts +1 -0
- package/es/esf/components/booking-form/data.d.ts.map +1 -0
- package/es/esf/components/booking-form/field.d.ts +2 -2
- package/es/esf/components/booking-form/field.d.ts.map +1 -0
- package/es/esf/components/booking-form/field.js +6 -5
- package/es/esf/components/booking-form/hooks/use-custom-fields.d.ts +1 -0
- package/es/esf/components/booking-form/hooks/use-custom-fields.d.ts.map +1 -0
- package/es/esf/components/booking-form/hooks/use-stay.d.ts +1 -0
- package/es/esf/components/booking-form/hooks/use-stay.d.ts.map +1 -0
- package/es/esf/components/booking-form/index.d.ts +1 -0
- package/es/esf/components/booking-form/index.d.ts.map +1 -0
- package/es/esf/components/booking-form/lesson.d.ts +2 -2
- package/es/esf/components/booking-form/lesson.d.ts.map +1 -0
- package/es/esf/components/booking-form/lesson.js +2 -15
- package/es/esf/components/booking-form/lessons.d.ts +2 -2
- package/es/esf/components/booking-form/lessons.d.ts.map +1 -0
- package/es/esf/components/booking-form/lessons.js +12 -22
- package/es/esf/components/booking-form/messages.d.ts +1 -0
- package/es/esf/components/booking-form/messages.d.ts.map +1 -0
- package/es/esf/components/booking-form/personal-data.d.ts +2 -2
- package/es/esf/components/booking-form/personal-data.d.ts.map +1 -0
- package/es/esf/components/booking-form/personal-data.js +3 -17
- package/es/esf/components/booking-form/progress-bar.d.ts +2 -2
- package/es/esf/components/booking-form/progress-bar.d.ts.map +1 -0
- package/es/esf/components/booking-form/progress-bar.js +9 -13
- package/es/esf/components/booking-form/steps.d.ts +2 -2
- package/es/esf/components/booking-form/steps.d.ts.map +1 -0
- package/es/esf/components/booking-form/steps.js +2 -7
- package/es/esf/components/booking-form/summary.d.ts +2 -2
- package/es/esf/components/booking-form/summary.d.ts.map +1 -0
- package/es/esf/components/booking-form/summary.js +42 -86
- package/es/esf/components/booking-form/utils.d.ts +1 -0
- package/es/esf/components/booking-form/utils.d.ts.map +1 -0
- package/es/esf/components/booking-form/utils.js +8 -17
- package/es/esf/components/covid-link/index.d.ts +1 -0
- package/es/esf/components/covid-link/index.d.ts.map +1 -0
- package/es/esf/components/covid-link/index.js +0 -131
- package/es/esf/components/covid-link/mask-icon.d.ts +2 -2
- package/es/esf/components/covid-link/mask-icon.d.ts.map +1 -0
- package/es/esf/components/covid-link/mask-icon.js +2 -4
- package/es/esf/components/covid-link/vax-pass-icon.d.ts +2 -2
- package/es/esf/components/covid-link/vax-pass-icon.d.ts.map +1 -0
- package/es/esf/components/covid-link/vax-pass-icon.js +2 -12
- package/es/esf/components/cp-form.d.ts +2 -1
- package/es/esf/components/cp-form.d.ts.map +1 -0
- package/es/esf/components/cp-form.js +5 -14
- package/es/esf/components/instructors-book/api.d.ts +1 -0
- package/es/esf/components/instructors-book/api.d.ts.map +1 -0
- package/es/esf/components/instructors-book/api.js +30 -41
- package/es/esf/components/instructors-book/book.d.ts +2 -2
- package/es/esf/components/instructors-book/book.d.ts.map +1 -0
- package/es/esf/components/instructors-book/book.js +7 -19
- package/es/esf/components/instructors-book/filters.d.ts +2 -2
- package/es/esf/components/instructors-book/filters.d.ts.map +1 -0
- package/es/esf/components/instructors-book/filters.js +2 -5
- package/es/esf/components/instructors-book/flags.d.ts +16 -16
- package/es/esf/components/instructors-book/flags.d.ts.map +1 -0
- package/es/esf/components/instructors-book/flags.js +17 -92
- package/es/esf/components/instructors-book/index.d.ts +1 -0
- package/es/esf/components/instructors-book/index.d.ts.map +1 -0
- package/es/esf/components/instructors-book/instructor.d.ts +2 -2
- package/es/esf/components/instructors-book/instructor.d.ts.map +1 -0
- package/es/esf/components/instructors-book/instructor.js +4 -34
- package/es/esf/components/instructors-book/list.d.ts +2 -2
- package/es/esf/components/instructors-book/list.d.ts.map +1 -0
- package/es/esf/components/instructors-book/list.js +5 -12
- package/es/esf/components/instructors-book/messages.d.ts +1 -0
- package/es/esf/components/instructors-book/messages.d.ts.map +1 -0
- package/es/esf/components/instructors-book/prefixes.d.ts +1 -0
- package/es/esf/components/instructors-book/prefixes.d.ts.map +1 -0
- package/es/esf/components/instructors-book/sheet.d.ts +2 -2
- package/es/esf/components/instructors-book/sheet.d.ts.map +1 -0
- package/es/esf/components/instructors-book/sheet.js +18 -76
- package/es/esf/components/instructors-book/suggestions.d.ts +2 -2
- package/es/esf/components/instructors-book/suggestions.d.ts.map +1 -0
- package/es/esf/components/instructors-book/suggestions.js +5 -23
- package/es/esf/components/instructors-book/utils.d.ts +1 -0
- package/es/esf/components/instructors-book/utils.d.ts.map +1 -0
- package/es/esf/components/levels/detail.d.ts +2 -2
- package/es/esf/components/levels/detail.d.ts.map +1 -0
- package/es/esf/components/levels/detail.js +2 -12
- package/es/esf/components/levels/index.d.ts +1 -0
- package/es/esf/components/levels/index.d.ts.map +1 -0
- package/es/esf/components/levels/levels.d.ts +2 -2
- package/es/esf/components/levels/levels.d.ts.map +1 -0
- package/es/esf/components/levels/levels.js +31 -70
- package/es/esf/components/loyal-customers/api.d.ts +1 -0
- package/es/esf/components/loyal-customers/api.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/api.js +10 -23
- package/es/esf/components/loyal-customers/components/bin-icon.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/bin-icon.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/bin-icon.js +2 -8
- package/es/esf/components/loyal-customers/components/customer-form.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/customer-form.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/customer-form.js +11 -35
- package/es/esf/components/loyal-customers/components/field.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/field.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/field.js +6 -6
- package/es/esf/components/loyal-customers/components/row.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/row.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/row.js +2 -23
- package/es/esf/components/loyal-customers/components/rows.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/rows.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/rows.js +8 -12
- package/es/esf/components/loyal-customers/components/stay.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/stay.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/stay.js +2 -13
- package/es/esf/components/loyal-customers/components/student-form.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/student-form.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/student-form.js +7 -37
- package/es/esf/components/loyal-customers/components/voucher.d.ts +2 -2
- package/es/esf/components/loyal-customers/components/voucher.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/components/voucher.js +2 -3
- package/es/esf/components/loyal-customers/content.d.ts +1 -0
- package/es/esf/components/loyal-customers/content.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/content.js +7 -7
- package/es/esf/components/loyal-customers/data.d.ts +1 -0
- package/es/esf/components/loyal-customers/data.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/hooks/use-stored-rows.d.ts +1 -0
- package/es/esf/components/loyal-customers/hooks/use-stored-rows.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/index.d.ts +1 -0
- package/es/esf/components/loyal-customers/index.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/loyal-customers.d.ts +2 -2
- package/es/esf/components/loyal-customers/loyal-customers.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/loyal-customers.js +3 -18
- package/es/esf/components/loyal-customers/messages.d.ts +1 -0
- package/es/esf/components/loyal-customers/messages.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/utils.d.ts +1 -0
- package/es/esf/components/loyal-customers/utils.d.ts.map +1 -0
- package/es/esf/components/loyal-customers/utils.js +2 -2
- package/es/esf/components/magic-box/booking.d.ts +2 -2
- package/es/esf/components/magic-box/booking.d.ts.map +1 -0
- package/es/esf/components/magic-box/booking.js +19 -30
- package/es/esf/components/magic-box/filter.d.ts +2 -2
- package/es/esf/components/magic-box/filter.d.ts.map +1 -0
- package/es/esf/components/magic-box/filter.js +3 -5
- package/es/esf/components/magic-box/filters.d.ts +2 -2
- package/es/esf/components/magic-box/filters.d.ts.map +1 -0
- package/es/esf/components/magic-box/filters.js +4 -5
- package/es/esf/components/magic-box/index.d.ts +1 -0
- package/es/esf/components/magic-box/index.d.ts.map +1 -0
- package/es/esf/components/magic-box/magic-box.d.ts +2 -1
- package/es/esf/components/magic-box/magic-box.d.ts.map +1 -0
- package/es/esf/components/magic-box/{magic-box.jsx → magic-box.js} +14 -34
- package/es/esf/components/magic-box/messages.d.ts +1 -0
- package/es/esf/components/magic-box/messages.d.ts.map +1 -0
- package/es/esf/components/magic-box/services/api.d.ts +1 -0
- package/es/esf/components/magic-box/services/api.d.ts.map +1 -0
- package/es/esf/components/magic-box/services/api.js +15 -29
- package/es/esf/components/magic-box/services/widgets.d.ts +1 -0
- package/es/esf/components/magic-box/services/widgets.d.ts.map +1 -0
- package/es/esf/components/magic-box/services/widgets.js +2 -14
- package/es/esf/components/parcours-esf/index.d.ts +1 -0
- package/es/esf/components/parcours-esf/index.d.ts.map +1 -0
- package/es/esf/components/parcours-esf/parcours-esf.d.ts +2 -2
- package/es/esf/components/parcours-esf/parcours-esf.d.ts.map +1 -0
- package/es/esf/components/parcours-esf/{parcours-esf.jsx → parcours-esf.js} +3 -11
- package/es/esf/components/period-picker/controls.d.ts +2 -2
- package/es/esf/components/period-picker/controls.d.ts.map +1 -0
- package/es/esf/components/period-picker/controls.js +2 -8
- package/es/esf/components/period-picker/date-display.d.ts +2 -2
- package/es/esf/components/period-picker/date-display.d.ts.map +1 -0
- package/es/esf/components/period-picker/date-display.js +5 -13
- package/es/esf/components/period-picker/days.d.ts +1 -0
- package/es/esf/components/period-picker/days.d.ts.map +1 -0
- package/es/esf/components/period-picker/days.js +4 -14
- package/es/esf/components/period-picker/extended-stay-picker.d.ts +2 -2
- package/es/esf/components/period-picker/extended-stay-picker.d.ts.map +1 -0
- package/es/esf/components/period-picker/extended-stay-picker.js +2 -11
- package/es/esf/components/period-picker/index.d.ts +1 -0
- package/es/esf/components/period-picker/index.d.ts.map +1 -0
- package/es/esf/components/period-picker/messages.d.ts +1 -0
- package/es/esf/components/period-picker/messages.d.ts.map +1 -0
- package/es/esf/components/period-picker/period-picker.d.ts +2 -2
- package/es/esf/components/period-picker/period-picker.d.ts.map +1 -0
- package/es/esf/components/period-picker/period-picker.js +7 -19
- package/es/esf/components/period-picker/popup.d.ts +1 -0
- package/es/esf/components/period-picker/popup.d.ts.map +1 -0
- package/es/esf/components/period-picker/popup.js +2 -7
- package/es/esf/components/period-picker/services/dates.d.ts +1 -0
- package/es/esf/components/period-picker/services/dates.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/dates.js +2 -5
- package/es/esf/components/period-picker/services/events.d.ts +1 -0
- package/es/esf/components/period-picker/services/events.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/motions.d.ts +1 -0
- package/es/esf/components/period-picker/services/motions.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/sections.d.ts +1 -0
- package/es/esf/components/period-picker/services/sections.d.ts.map +1 -0
- package/es/esf/components/period-picker/services/stay.d.ts +1 -0
- package/es/esf/components/period-picker/services/stay.d.ts.map +1 -0
- package/es/esf/components/period-picker/title.d.ts +2 -2
- package/es/esf/components/period-picker/title.d.ts.map +1 -0
- package/es/esf/components/period-picker/title.js +3 -4
- package/es/esf/components/period-picker/warning.d.ts +2 -2
- package/es/esf/components/period-picker/warning.d.ts.map +1 -0
- package/es/esf/components/period-picker/warning.js +2 -16
- package/es/esf/components/period-picker/weeks.d.ts +1 -0
- package/es/esf/components/period-picker/weeks.d.ts.map +1 -0
- package/es/esf/components/period-picker/weeks.js +7 -50
- package/es/esf/components/reviews.d.ts +2 -2
- package/es/esf/components/reviews.d.ts.map +1 -0
- package/es/esf/components/reviews.js +5 -13
- package/es/esf/components/village-maps/icons.d.ts +6 -6
- package/es/esf/components/village-maps/icons.d.ts.map +1 -0
- package/es/esf/components/village-maps/icons.js +7 -32
- package/es/esf/components/village-maps/index.d.ts +2 -1
- package/es/esf/components/village-maps/index.d.ts.map +1 -0
- package/es/esf/components/village-maps/index.js +21 -62
- package/es/esf/components/village-maps/messages.d.ts +1 -0
- package/es/esf/components/village-maps/messages.d.ts.map +1 -0
- package/es/esf/components/village-maps/utils.d.ts +1 -0
- package/es/esf/components/village-maps/utils.d.ts.map +1 -0
- package/es/esf/components/village-maps/utils.js +1 -2
- package/es/esf/components/week-picker/index.d.ts +2 -1
- package/es/esf/components/week-picker/index.d.ts.map +1 -0
- package/es/esf/components/week-picker/index.js +5 -54
- package/es/esf/components/week-picker/messages.d.ts +1 -0
- package/es/esf/components/week-picker/messages.d.ts.map +1 -0
- package/es/esf/components/week-picker/utils.d.ts +1 -0
- package/es/esf/components/week-picker/utils.d.ts.map +1 -0
- package/es/esf/components/week-picker/utils.js +0 -3
- package/es/esf/components/week-picker/week.d.ts +2 -2
- package/es/esf/components/week-picker/week.d.ts.map +1 -0
- package/es/esf/components/week-picker/week.js +2 -11
- package/es/esf/components/week-picker-2/index.d.ts +2 -1
- package/es/esf/components/week-picker-2/index.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/index.js +5 -56
- package/es/esf/components/week-picker-2/messages.d.ts +1 -0
- package/es/esf/components/week-picker-2/messages.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/utils.d.ts +1 -0
- package/es/esf/components/week-picker-2/utils.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/utils.js +0 -3
- package/es/esf/components/week-picker-2/week.d.ts +2 -2
- package/es/esf/components/week-picker-2/week.d.ts.map +1 -0
- package/es/esf/components/week-picker-2/week.js +2 -12
- package/es/esf/hooks/use-affiliation.d.ts +1 -0
- package/es/esf/hooks/use-affiliation.d.ts.map +1 -0
- package/es/esf/hooks/use-booking-links.d.ts +1 -0
- package/es/esf/hooks/use-booking-links.d.ts.map +1 -0
- package/es/esf/hooks/use-booking-links.js +6 -16
- package/es/esf/hooks/use-reviews.d.ts +1 -0
- package/es/esf/hooks/use-reviews.d.ts.map +1 -0
- package/es/esf/hooks/use-reviews.js +3 -12
- package/es/esf/hooks/use-season-products.d.ts +1 -0
- package/es/esf/hooks/use-season-products.d.ts.map +1 -0
- package/es/esf/hooks/use-season-products.js +3 -13
- package/es/future/components/msem/index.d.ts +1 -0
- package/es/future/components/msem/index.d.ts.map +1 -0
- package/es/future/components/msem/script.d.ts +2 -2
- package/es/future/components/msem/script.d.ts.map +1 -0
- package/es/future/components/msem/script.js +8 -0
- package/es/future/components/msem/tunnel.d.ts +1 -0
- package/es/future/components/msem/tunnel.d.ts.map +1 -0
- package/es/future/components/msem/{tunnel.jsx → tunnel.js} +9 -6
- package/es/future/components/msem/types.d.ts +1 -0
- package/es/future/components/msem/types.d.ts.map +1 -0
- package/es/future/components/msem/utils.d.ts +1 -0
- package/es/future/components/msem/utils.d.ts.map +1 -0
- package/es/future/components/msem/utils.js +1 -2
- package/es/future/components/plausible/hooks/use-plausible.d.ts +2 -1
- package/es/future/components/plausible/hooks/use-plausible.d.ts.map +1 -0
- package/es/future/components/plausible/hooks/use-plausible.js +6 -6
- package/es/future/components/plausible/index.d.ts +1 -0
- package/es/future/components/plausible/index.d.ts.map +1 -0
- package/es/future/components/plausible/plausible.d.ts +2 -2
- package/es/future/components/plausible/plausible.d.ts.map +1 -0
- package/es/{common/components/plausible/plausible.jsx → future/components/plausible/plausible.js} +2 -3
- package/es/future/components/plausible/services/callback.d.ts +1 -0
- package/es/future/components/plausible/services/callback.d.ts.map +1 -0
- package/es/future/components/plausible/services/callback.js +14 -20
- package/es/future/components/plausible/services/load.d.ts +1 -0
- package/es/future/components/plausible/services/load.d.ts.map +1 -0
- package/es/future/components/plausible/services/send-goal.d.ts +1 -0
- package/es/future/components/plausible/services/send-goal.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/api.d.ts +1 -0
- package/es/lbm/components/lumiplan/api.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/api.js +31 -57
- package/es/lbm/components/lumiplan/domain.d.ts +1 -0
- package/es/lbm/components/lumiplan/domain.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/domain.js +34 -0
- package/es/lbm/components/lumiplan/header.d.ts +2 -2
- package/es/lbm/components/lumiplan/header.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/{header.jsx → header.js} +2 -9
- package/es/lbm/components/lumiplan/i18n/translations.d.ts +2 -2
- package/es/lbm/components/lumiplan/i18n/translations.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/i18n/{translations.jsx → translations.js} +2 -2
- package/es/lbm/components/lumiplan/icons/alert.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/alert.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/alert.js +2 -4
- package/es/lbm/components/lumiplan/icons/avalanche-risk.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/avalanche-risk.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/avalanche-risk.js +2 -3
- package/es/lbm/components/lumiplan/icons/cabin.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/cabin.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/cabin.js +2 -3
- package/es/lbm/components/lumiplan/icons/check.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/check.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/check.js +2 -3
- package/es/lbm/components/lumiplan/icons/close.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/close.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/close.js +2 -4
- package/es/lbm/components/lumiplan/icons/cloud.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/cloud.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/cloud.js +2 -4
- package/es/lbm/components/lumiplan/icons/dawn.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/dawn.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/dawn.js +2 -4
- package/es/lbm/components/lumiplan/icons/fog.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/fog.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/fog.js +2 -5
- package/es/lbm/components/lumiplan/icons/heavy-snow.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/heavy-snow.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/heavy-snow.js +2 -8
- package/es/lbm/components/lumiplan/icons/information.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/information.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/information.js +2 -4
- package/es/lbm/components/lumiplan/icons/isothermal.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/isothermal.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/isothermal.js +2 -8
- package/es/lbm/components/lumiplan/icons/lifts/index.d.ts +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/tapis-roulant.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/lifts/tapis-roulant.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/tapis-roulant.js +2 -3
- package/es/lbm/components/lumiplan/icons/lifts/telecabine.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/lifts/telecabine.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/telecabine.js +2 -3
- package/es/lbm/components/lumiplan/icons/lifts/telesiege-debrayable.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/lifts/telesiege-debrayable.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/telesiege-debrayable.js +2 -6
- package/es/lbm/components/lumiplan/icons/lifts/telesiege.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/lifts/telesiege.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/telesiege.js +2 -3
- package/es/lbm/components/lumiplan/icons/lifts/teleski.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/lifts/teleski.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/lifts/teleski.js +2 -3
- package/es/lbm/components/lumiplan/icons/link.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/link.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/link.js +2 -4
- package/es/lbm/components/lumiplan/icons/night.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/night.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/night.js +2 -3
- package/es/lbm/components/lumiplan/icons/rain.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/rain.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/rain.js +2 -8
- package/es/lbm/components/lumiplan/icons/rainy-rainy.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/rainy-rainy.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/rainy-rainy.js +2 -4
- package/es/lbm/components/lumiplan/icons/rainy.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/rainy.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/rainy.js +2 -4
- package/es/lbm/components/lumiplan/icons/reload.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/reload.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/reload.js +2 -11
- package/es/lbm/components/lumiplan/icons/road-condition.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/road-condition.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/road-condition.js +2 -8
- package/es/lbm/components/lumiplan/icons/slopes.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/slopes.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/slopes.js +2 -3
- package/es/lbm/components/lumiplan/icons/snow-cover.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/snow-cover.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/snow-cover.js +2 -3
- package/es/lbm/components/lumiplan/icons/snow.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/snow.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/snow.js +2 -6
- package/es/lbm/components/lumiplan/icons/storm.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/storm.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/storm.js +2 -3
- package/es/lbm/components/lumiplan/icons/sun.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/sun.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/sun.js +2 -3
- package/es/lbm/components/lumiplan/icons/sunny.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/sunny.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/sunny.js +2 -5
- package/es/lbm/components/lumiplan/icons/time.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/time.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/time.js +2 -4
- package/es/lbm/components/lumiplan/icons/trails/accrobranche.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/accrobranche.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/accrobranche.js +2 -4
- package/es/lbm/components/lumiplan/icons/trails/boarder-cross.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/boarder-cross.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/boarder-cross.js +2 -5
- package/es/lbm/components/lumiplan/icons/trails/champ-de-bosse.d.ts +2 -2
- 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 +2 -4
- package/es/lbm/components/lumiplan/icons/trails/freeride.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/freeride.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/freeride.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/index.d.ts +1 -0
- package/es/lbm/components/lumiplan/icons/trails/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/luge-sur-rail.d.ts +2 -2
- 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 +2 -4
- package/es/lbm/components/lumiplan/icons/trails/luge.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/luge.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/luge.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/pieton.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/pieton.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/pieton.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/piste-eclairee.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/piste-eclairee.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/piste-eclairee.js +2 -4
- package/es/lbm/components/lumiplan/icons/trails/raquette.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/raquette.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/raquette.js +2 -15
- package/es/lbm/components/lumiplan/icons/trails/ski-alpin.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/ski-alpin.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/ski-alpin.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/ski-fond.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/ski-fond.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/ski-fond.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/snowpark.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/snowpark.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/snowpark.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/snowtubing.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/snowtubing.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/snowtubing.js +2 -5
- package/es/lbm/components/lumiplan/icons/trails/tyrolienne.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/tyrolienne.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/tyrolienne.js +2 -3
- package/es/lbm/components/lumiplan/icons/trails/vtt.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/vtt.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/vtt.js +2 -4
- package/es/lbm/components/lumiplan/icons/trails/zone-freeride.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/trails/zone-freeride.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/trails/zone-freeride.js +2 -3
- package/es/lbm/components/lumiplan/icons/variable-snow.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/variable-snow.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/variable-snow.js +2 -7
- package/es/lbm/components/lumiplan/icons/variable-storm.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/variable-storm.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/variable-storm.js +2 -4
- package/es/lbm/components/lumiplan/icons/variable.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/variable.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/variable.js +2 -4
- package/es/lbm/components/lumiplan/icons/warning.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/warning.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/warning.js +2 -4
- package/es/lbm/components/lumiplan/icons/wind.d.ts +2 -2
- package/es/lbm/components/lumiplan/icons/wind.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/icons/wind.js +2 -3
- package/es/lbm/components/lumiplan/index.d.ts +1 -0
- package/es/lbm/components/lumiplan/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/lumiplan.d.ts +2 -2
- package/es/lbm/components/lumiplan/lumiplan.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/{lumiplan.jsx → lumiplan.js} +20 -39
- package/es/lbm/components/lumiplan/opening.d.ts +1 -0
- package/es/lbm/components/lumiplan/opening.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/opening.js +56 -0
- package/es/lbm/components/lumiplan/pois.d.ts +1 -0
- package/es/lbm/components/lumiplan/pois.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/pois.js +184 -0
- package/es/lbm/components/lumiplan/print-button.d.ts +2 -2
- package/es/lbm/components/lumiplan/print-button.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/print-button.js +14 -0
- package/es/lbm/components/lumiplan/resort-selector.d.ts +2 -2
- package/es/lbm/components/lumiplan/resort-selector.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/{resort-selector.jsx → resort-selector.js} +10 -16
- package/es/lbm/components/lumiplan/road-condition.d.ts +1 -0
- package/es/lbm/components/lumiplan/road-condition.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/road-condition.js +27 -0
- package/es/lbm/components/lumiplan/signature.d.ts +2 -2
- package/es/lbm/components/lumiplan/signature.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/{signature.jsx → signature.js} +2 -3
- package/es/lbm/components/lumiplan/todays-tips.d.ts +1 -0
- package/es/lbm/components/lumiplan/todays-tips.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/todays-tips.js +23 -0
- package/es/lbm/components/lumiplan/toolbar.d.ts +2 -2
- package/es/lbm/components/lumiplan/toolbar.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/toolbar.js +8 -0
- package/es/lbm/components/lumiplan/types.d.ts +1 -0
- package/es/lbm/components/lumiplan/types.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts +2 -2
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/avalanche-risk.js +12 -0
- package/es/lbm/components/lumiplan/weather/index.d.ts +1 -0
- package/es/lbm/components/lumiplan/weather/index.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts +2 -2
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/snow-data.js +8 -0
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts +2 -2
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather-data.js +16 -0
- package/es/lbm/components/lumiplan/weather/weather-days.d.ts +2 -2
- package/es/lbm/components/lumiplan/weather/weather-days.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather-days.js +53 -0
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts +17 -17
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/{weather-icon.jsx → weather-icon.js} +2 -2
- package/es/lbm/components/lumiplan/weather/weather-zones.d.ts +2 -2
- package/es/lbm/components/lumiplan/weather/weather-zones.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/{weather-zones.jsx → weather-zones.js} +18 -27
- package/es/lbm/components/lumiplan/weather/weather.d.ts +1 -0
- package/es/lbm/components/lumiplan/weather/weather.d.ts.map +1 -0
- package/es/lbm/components/lumiplan/weather/weather.js +55 -0
- package/package.json +20 -20
- package/es/common/components/admin-links/admin-links.jsx +0 -65
- package/es/common/components/cross-selling-editor/override-trigger-form.jsx +0 -68
- package/es/common/components/cross-selling-editor/overrides-list.jsx +0 -74
- package/es/common/components/cross-selling-editor/rule.jsx +0 -55
- package/es/common/components/cross-selling-editor/rules.jsx +0 -53
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.jsx +0 -26
- package/es/common/components/custom-contact-form/custom-contact-form.jsx +0 -121
- package/es/common/components/gesco-contact-form/gesco-contact-form.jsx +0 -152
- package/es/common/components/instant-search/links.jsx +0 -45
- package/es/common/components/instant-search/no-product.jsx +0 -19
- package/es/common/components/instant-search/products.jsx +0 -67
- package/es/common/components/instant-search/results.jsx +0 -68
- package/es/common/components/msem-preset-editor/components/form.jsx +0 -28
- package/es/common/components/msem-preset-editor/components/widget-list-item.jsx +0 -97
- package/es/common/components/msem-preset-editor/components/widget-list.jsx +0 -46
- package/es/common/components/msem-preset-editor/editor-dialog.jsx +0 -45
- package/es/common/components/msem-preset-editor/editors/elloha.jsx +0 -95
- package/es/common/components/msem-preset-editor/editors/lodgings.jsx +0 -235
- package/es/common/components/msem-preset-editor/editors/ski-passes-jb.jsx +0 -89
- package/es/common/components/msem-preset-editor/editors/ski-passes.jsx +0 -215
- package/es/common/components/msem-preset-editor/msem-preset-editor.jsx +0 -176
- package/es/common/components/tabbed-zones.jsx +0 -68
- package/es/common/utils/msem-widget.jsx +0 -49
- package/es/future/components/msem/script.jsx +0 -7
- package/es/lbm/components/lumiplan/domain.jsx +0 -74
- package/es/lbm/components/lumiplan/opening.jsx +0 -108
- package/es/lbm/components/lumiplan/pois.jsx +0 -233
- package/es/lbm/components/lumiplan/print-button.jsx +0 -27
- package/es/lbm/components/lumiplan/road-condition.jsx +0 -59
- package/es/lbm/components/lumiplan/todays-tips.jsx +0 -28
- package/es/lbm/components/lumiplan/toolbar.jsx +0 -15
- package/es/lbm/components/lumiplan/weather/avalanche-risk.jsx +0 -22
- package/es/lbm/components/lumiplan/weather/snow-data.jsx +0 -44
- package/es/lbm/components/lumiplan/weather/weather-data.jsx +0 -85
- package/es/lbm/components/lumiplan/weather/weather-days.jsx +0 -60
- package/es/lbm/components/lumiplan/weather/weather.jsx +0 -80
- /package/es/common/components/admin-links/{index.jsx → index.js} +0 -0
- /package/es/common/components/collapsible/{index.jsx → index.js} +0 -0
- /package/es/common/components/cross-selling-editor/{index.jsx → index.js} +0 -0
- /package/es/common/components/instant-search/{index.jsx → index.js} +0 -0
- /package/es/common/components/msem-preset-editor/editors/{index.jsx → index.js} +0 -0
- /package/es/common/components/msem-preset-linker/{index.jsx → index.js} +0 -0
- /package/es/common/components/scrolling-carousel/{index.jsx → index.js} +0 -0
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
2
|
import * as React from "react";
|
|
11
3
|
import { memo, useEffect, useState, useRef } from "react";
|
|
12
4
|
import { useUbloContext } from "ublo/with-ublo";
|
|
@@ -24,11 +16,10 @@ const isLocalUrl = (href) => href !== null &&
|
|
|
24
16
|
const pdfRegex = /.*\.pdf$/;
|
|
25
17
|
const isPdfUrl = (href) => href !== null && href !== undefined && pdfRegex.exec(href) !== null;
|
|
26
18
|
const hasUrlTarget = (target) => target === "_blank";
|
|
27
|
-
const handleClick = (config, lang, section, zone, setContent, setModule, setClosed, e, setPopupClassName) =>
|
|
19
|
+
const handleClick = async (config, lang, section, zone, setContent, setModule, setClosed, e, setPopupClassName) => {
|
|
28
20
|
const anchor = section.querySelector("a");
|
|
29
21
|
const href = anchor.getAttribute("href");
|
|
30
22
|
const target = anchor.getAttribute("target");
|
|
31
|
-
// eslint-disable-next-line @next/next/no-assign-module-variable
|
|
32
23
|
const module = anchor.dataset.module;
|
|
33
24
|
const isLocal = isLocalUrl(href);
|
|
34
25
|
const isPdf = isPdfUrl(href);
|
|
@@ -43,20 +34,20 @@ const handleClick = (config, lang, section, zone, setContent, setModule, setClos
|
|
|
43
34
|
const Module = modules[module];
|
|
44
35
|
const menu = href === "" || href === null || href === undefined ? undefined : href;
|
|
45
36
|
setContent();
|
|
46
|
-
setModule(
|
|
37
|
+
setModule(_jsx(Module, { menu: menu }));
|
|
47
38
|
setClosed(false);
|
|
48
39
|
}
|
|
49
40
|
else {
|
|
50
41
|
const { ubloApi, site } = config;
|
|
51
42
|
const url = `${ubloApi}/api/zone?site=${site}&lang=${lang}&path=${href}&id=${zone}`;
|
|
52
|
-
const req =
|
|
53
|
-
const data =
|
|
43
|
+
const req = await fetch(url);
|
|
44
|
+
const data = await req.text();
|
|
54
45
|
setModule();
|
|
55
46
|
setContent(data);
|
|
56
47
|
setClosed(false);
|
|
57
48
|
}
|
|
58
49
|
setPopupClassName(className);
|
|
59
|
-
}
|
|
50
|
+
};
|
|
60
51
|
const InfoButtons = ({ zone = "contenu", selector = ".tool-button", children, }) => {
|
|
61
52
|
const ref = useRef();
|
|
62
53
|
const { cmsMode, config, lang } = useUbloContext();
|
|
@@ -70,7 +61,6 @@ const InfoButtons = ({ zone = "contenu", selector = ".tool-button", children, })
|
|
|
70
61
|
};
|
|
71
62
|
useEffect(() => {
|
|
72
63
|
if (window.location.hostname === "localhost") {
|
|
73
|
-
// eslint-disable-next-line no-console
|
|
74
64
|
console.warn("InfoButtons is deprecated, prefer useInfoButtons");
|
|
75
65
|
}
|
|
76
66
|
}, []);
|
|
@@ -93,11 +83,6 @@ const InfoButtons = ({ zone = "contenu", selector = ".tool-button", children, })
|
|
|
93
83
|
};
|
|
94
84
|
}
|
|
95
85
|
}, [count, cmsMode, config, lang, zone, selector]);
|
|
96
|
-
return (
|
|
97
|
-
{children}
|
|
98
|
-
{!closed && (<Popup close={close} html={content} className={popupClassName} backdrop>
|
|
99
|
-
{module}
|
|
100
|
-
</Popup>)}
|
|
101
|
-
</div>);
|
|
86
|
+
return (_jsxs("div", { className: "info-buttons", ref: ref, children: [children, !closed && (_jsx(Popup, { close: close, html: content, className: popupClassName, backdrop: true, children: module }))] }));
|
|
102
87
|
};
|
|
103
88
|
export default memo(InfoButtons);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/information/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
export default function Information({ source, zone, preventOpening, }: {
|
|
3
2
|
source?: string;
|
|
4
3
|
zone?: string;
|
|
5
4
|
preventOpening: any;
|
|
6
|
-
}):
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=information.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"information.d.ts","sourceRoot":"","sources":["../../../../src/common/components/information/information.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAiB,EACjB,IAAgB,EAChB,cAAc,GACf;;;;CAAA,2CA2CA"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
2
|
import * as React from "react";
|
|
11
3
|
import Router from "next/router";
|
|
12
4
|
import { useUbloContext } from "ublo/with-ublo";
|
|
@@ -22,15 +14,15 @@ export default function Information({ source = "/popup", zone = "content", preve
|
|
|
22
14
|
sessionStorage.setItem(STORAGE_KEY, "true");
|
|
23
15
|
setContent(undefined);
|
|
24
16
|
}, []);
|
|
25
|
-
const getContent = React.useCallback(() =>
|
|
26
|
-
const menus =
|
|
17
|
+
const getContent = React.useCallback(async () => {
|
|
18
|
+
const menus = await fetchMenus(ubloApi, site, lang, source, 1, true);
|
|
27
19
|
if (menus.length === 1) {
|
|
28
|
-
const content =
|
|
20
|
+
const content = await fetchZone(ubloApi, site, lang, source, zone);
|
|
29
21
|
if (!content)
|
|
30
22
|
return;
|
|
31
23
|
setContent(content);
|
|
32
24
|
}
|
|
33
|
-
}
|
|
25
|
+
}, [lang, site, source, ubloApi, zone]);
|
|
34
26
|
React.useEffect(() => {
|
|
35
27
|
const alreadySeen = sessionStorage.getItem(STORAGE_KEY) ||
|
|
36
28
|
sessionStorage.getItem("cms_token");
|
|
@@ -43,7 +35,5 @@ export default function Information({ source = "/popup", zone = "content", preve
|
|
|
43
35
|
close();
|
|
44
36
|
});
|
|
45
37
|
});
|
|
46
|
-
return (
|
|
47
|
-
<div className={styles.inner} dangerouslySetInnerHTML={{ __html: content }} data-information-popup=""/>
|
|
48
|
-
</Dialog>);
|
|
38
|
+
return (_jsx(Dialog, { className: styles.information, close: close, isOpened: !!content, children: _jsx("div", { className: styles.inner, dangerouslySetInnerHTML: { __html: content }, "data-information-popup": "" }) }));
|
|
49
39
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-constant.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-constant.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,EAAE,GAAG,OAQ1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-debounced-search.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-debounced-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC;;;;EAY/C"}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import * as React from "react";
|
|
11
2
|
import debouncePromise from "awesome-debounce-promise";
|
|
12
3
|
import { useAsync } from "react-async-hook";
|
|
@@ -15,6 +6,6 @@ const DEBOUNCE_AMOUNT = 400;
|
|
|
15
6
|
export default function useDebouncedSearch(searchFunction) {
|
|
16
7
|
const [text, setText] = React.useState("");
|
|
17
8
|
const debouncedSearchFunction = useConstant(() => debouncePromise(searchFunction, DEBOUNCE_AMOUNT));
|
|
18
|
-
const search = useAsync(() =>
|
|
9
|
+
const search = useAsync(async () => (text.length === 0 ? undefined : debouncedSearchFunction(text)), [debouncedSearchFunction, text], { setLoading: (state) => ({ ...state, loading: true }) });
|
|
19
10
|
return { text, setText, search };
|
|
20
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":";AAOA,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAW1E"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import getConfig from "next/config";
|
|
11
2
|
import useDebouncedSearch from "./use-debounced-search";
|
|
12
3
|
import * as API from "../services/api";
|
|
13
4
|
const { publicRuntimeConfig } = getConfig();
|
|
14
5
|
const { site } = publicRuntimeConfig;
|
|
15
6
|
export default function useSearch(lang, options = {}) {
|
|
16
|
-
return useDebouncedSearch((query) =>
|
|
7
|
+
return useDebouncedSearch(async (query) => {
|
|
17
8
|
return API.fetchResults(site, lang, query, options.groupLimit, options.queryBy, options.queryByWeights);
|
|
18
|
-
})
|
|
9
|
+
});
|
|
19
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
type Suggestions = {
|
|
3
2
|
fr?: string[];
|
|
4
3
|
en?: string[];
|
|
@@ -11,5 +10,6 @@ type Props = {
|
|
|
11
10
|
closeSearch: () => void;
|
|
12
11
|
suggestions?: Suggestions;
|
|
13
12
|
};
|
|
14
|
-
export default function SearchInput({ lang, text, setText, closeSearch, loading, suggestions, }: Props):
|
|
13
|
+
export default function SearchInput({ lang, text, setText, closeSearch, loading, suggestions, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export {};
|
|
15
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/input.tsx"],"names":[],"mappings":"AASA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,GACZ,EAAE,KAAK,2CA8EP"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import Input from "dt-design-system/es/input";
|
|
@@ -34,31 +35,22 @@ export default function SearchInput({ lang, text, setText, closeSearch, loading,
|
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
}, [enableSuggestion, suggestionsSet, text]);
|
|
37
|
-
return (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[css.buttonCurrent]: isCurrent,
|
|
49
|
-
[css.buttonPrev]: isPrev,
|
|
50
|
-
});
|
|
51
|
-
return (<button key={suggestion} className={classes} onClick={updateText(suggestion)} onMouseDown={createRipple}>
|
|
52
|
-
« {suggestion} »
|
|
53
|
-
</button>);
|
|
54
|
-
})}
|
|
55
|
-
</div>
|
|
56
|
-
</div>)}
|
|
57
|
-
<Button variant="transparent" className={css.close} onClick={closeSearch}>
|
|
58
|
-
<Icons.Cross />
|
|
59
|
-
</Button>
|
|
60
|
-
</div>);
|
|
38
|
+
return (_jsxs("div", { className: css.container, children: [_jsx(Input, { value: text, onValueChange: setText, icon: inputIcon, className: classes }), enableSuggestion && !text && (_jsxs("div", { className: css.suggestion, children: [message(lang, "try"), _jsx("div", { className: css.buttons, children: suggestionsSet.map((suggestion, i) => {
|
|
39
|
+
const isCurrent = i === currentSuggestion;
|
|
40
|
+
const isPrev = currentSuggestion === 0
|
|
41
|
+
? i === suggestionsSet.length - 1
|
|
42
|
+
: i === currentSuggestion - 1;
|
|
43
|
+
const classes = classNames(css.button, {
|
|
44
|
+
[css.buttonCurrent]: isCurrent,
|
|
45
|
+
[css.buttonPrev]: isPrev,
|
|
46
|
+
});
|
|
47
|
+
return (_jsxs("button", { className: classes, onClick: updateText(suggestion), onMouseDown: createRipple, children: ["\u00AB ", suggestion, " \u00BB"] }, suggestion));
|
|
48
|
+
}) })] })), _jsx(Button, { variant: "transparent", className: css.close, onClick: closeSearch, children: _jsx(Icons.Cross, {}) })] }));
|
|
61
49
|
}
|
|
62
50
|
function getSuggestions(suggestions = {}) {
|
|
63
|
-
return
|
|
51
|
+
return {
|
|
52
|
+
fr: ["cours de ski", "cours privés", "compétition", "cours débutants"],
|
|
53
|
+
en: ["ski lessons", "private lessons", "competition"],
|
|
54
|
+
...suggestions,
|
|
55
|
+
};
|
|
64
56
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { SearchOptions } from "./hooks/use-search";
|
|
3
2
|
type Props = {
|
|
4
3
|
lang: string;
|
|
@@ -15,5 +14,6 @@ type Props = {
|
|
|
15
14
|
};
|
|
16
15
|
options?: SearchOptions;
|
|
17
16
|
};
|
|
18
|
-
export default function InstantSearch({ lang, suggestions, className, ubloContext, options, }: Props):
|
|
17
|
+
export default function InstantSearch({ lang, suggestions, className, ubloContext, options, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export {};
|
|
19
|
+
//# sourceMappingURL=instant-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instant-search.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/instant-search.tsx"],"names":[],"mappings":"AAUA,OAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAK9D,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;QAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;KACf,CAAC;IACF,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,WAAW,EACX,SAAS,EACT,WAAW,EACX,OAAY,GACb,EAAE,KAAK,2CA6HP"}
|
|
@@ -1,15 +1,14 @@
|
|
|
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 classNames from "classnames";
|
|
3
4
|
import Router from "next/router";
|
|
4
5
|
import Button from "dt-design-system/es/button";
|
|
5
6
|
import * as Icons from "dt-design-system/es/icons";
|
|
6
7
|
import Dialog from "dt-design-system/es/dialog";
|
|
7
|
-
// import PeriodPicker from "ublo-lib/es/esf/components/period-picker";
|
|
8
8
|
import PeriodPicker from "../../../esf/components/period-picker";
|
|
9
9
|
import Input from "./input";
|
|
10
10
|
import Results from "./results";
|
|
11
11
|
import useSearch from "./hooks/use-search";
|
|
12
|
-
// import * as Plausible from "ublo-lib/es/common/components/plausible";
|
|
13
12
|
import * as Plausible from "../plausible";
|
|
14
13
|
import css from "./instant-search.module.css";
|
|
15
14
|
export default function InstantSearch({ lang, suggestions, className, ubloContext, options = {}, }) {
|
|
@@ -22,12 +21,11 @@ export default function InstantSearch({ lang, suggestions, className, ubloContex
|
|
|
22
21
|
setOpened(true);
|
|
23
22
|
};
|
|
24
23
|
const closeSearch = (skipEvent) => {
|
|
25
|
-
var _a;
|
|
26
24
|
setOpened(false);
|
|
27
25
|
setText("");
|
|
28
26
|
document.body.style.removeProperty("overflow");
|
|
29
27
|
if (!skipEvent) {
|
|
30
|
-
const event =
|
|
28
|
+
const event = search?.result?.length === 0 ? "Search failed" : "Search canceled";
|
|
31
29
|
if (text.length > 0) {
|
|
32
30
|
Plausible.sendGoal(event, {
|
|
33
31
|
Terms: text,
|
|
@@ -83,16 +81,5 @@ export default function InstantSearch({ lang, suggestions, className, ubloContex
|
|
|
83
81
|
window.removeEventListener("keydown", handleKeyPresses);
|
|
84
82
|
};
|
|
85
83
|
}, [handleKeyPresses]);
|
|
86
|
-
return (
|
|
87
|
-
<Button className={classes} onClick={openSearch}>
|
|
88
|
-
<Icons.Search className={css.searchIcon}/>
|
|
89
|
-
</Button>
|
|
90
|
-
<Dialog className={css.dialog} isOpened={opened} showCloseButton={false} close={closeSearch} container="body">
|
|
91
|
-
<Input lang={lang} text={text} setText={setText} closeSearch={closeSearch} loading={search.loading === true} suggestions={suggestions}/>
|
|
92
|
-
<Results lang={lang} text={text} results={search.result} weekNumber={weekNumber} openPeriodPicker={openPeriodPicker} loading={search.loading === true && search.result === undefined} sendPlausibleGoal={sendPlausibleGoal}/>
|
|
93
|
-
</Dialog>
|
|
94
|
-
<Dialog isOpened={periodPickerOpened} close={closePeriodPicker} container="body">
|
|
95
|
-
<PeriodPicker onChange={updateWeek} ubloContext={ubloContext}/>
|
|
96
|
-
</Dialog>
|
|
97
|
-
</>);
|
|
84
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { className: classes, onClick: openSearch, children: _jsx(Icons.Search, { className: css.searchIcon }) }), _jsxs(Dialog, { className: css.dialog, isOpened: opened, showCloseButton: false, close: closeSearch, container: "body", children: [_jsx(Input, { lang: lang, text: text, setText: setText, closeSearch: closeSearch, loading: search.loading === true, suggestions: suggestions }), _jsx(Results, { lang: lang, text: text, results: search.result, weekNumber: weekNumber, openPeriodPicker: openPeriodPicker, loading: search.loading === true && search.result === undefined, sendPlausibleGoal: sendPlausibleGoal })] }), _jsx(Dialog, { isOpened: periodPickerOpened, close: closePeriodPicker, container: "body", children: _jsx(PeriodPicker, { onChange: updateWeek, ubloContext: ubloContext }) })] }));
|
|
98
85
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import type { Hit } from "./results";
|
|
3
2
|
type Props = {
|
|
4
3
|
linksTitle: string;
|
|
@@ -8,5 +7,6 @@ type Props = {
|
|
|
8
7
|
loading: boolean;
|
|
9
8
|
sendPlausibleGoal: (path: string) => void;
|
|
10
9
|
};
|
|
11
|
-
export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }: Props):
|
|
10
|
+
export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loading, sendPlausibleGoal, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export {};
|
|
12
|
+
//# sourceMappingURL=links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/instant-search/links.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGrC,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,iBAAiB,GAClB,EAAE,KAAK,2CAmEP"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Link from "ublo/link";
|
|
3
|
+
import Loader from "dt-design-system/es/loader";
|
|
4
|
+
import * as Icons from "dt-design-system/es/icons";
|
|
5
|
+
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
|
+
import * as Utils from "./services/utils";
|
|
7
|
+
import css from "./links.module.css";
|
|
8
|
+
const PLACEHOLDERS = [...new Array(3)];
|
|
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
type Props = {
|
|
3
2
|
className?: string;
|
|
4
3
|
};
|
|
5
|
-
export default function NoProduct({ className }: Props):
|
|
4
|
+
export default function NoProduct({ className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
6
|
+
//# sourceMappingURL=no-product.d.ts.map
|
|
@@ -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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
}
|
|
@@ -9,5 +9,6 @@ type Props = {
|
|
|
9
9
|
otherResultsRef: React.RefObject<HTMLDivElement>;
|
|
10
10
|
isOtherResultsEmpty: boolean;
|
|
11
11
|
};
|
|
12
|
-
export default function Products({ lang, products, weekNumber, loading, sendPlausibleGoal, otherResultsRef, isOtherResultsEmpty, }: Props):
|
|
12
|
+
export default function Products({ lang, products, weekNumber, loading, sendPlausibleGoal, otherResultsRef, isOtherResultsEmpty, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import Image from "next/image";
|
|
3
|
+
import Link from "ublo/link";
|
|
4
|
+
import Loader from "dt-design-system/es/loader";
|
|
5
|
+
import Button from "dt-design-system/es/button";
|
|
6
|
+
import * as Icons from "dt-design-system/es/icons";
|
|
7
|
+
import * as Ripple from "dt-design-system/es/ripple";
|
|
8
|
+
import * as Utils from "./services/utils";
|
|
9
|
+
import message from "./services/messages";
|
|
10
|
+
import NoProduct from "./no-product";
|
|
11
|
+
import css from "./products.module.css";
|
|
12
|
+
const PLACEHOLDERS = [...new Array(5)];
|
|
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
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
type Document = {
|
|
3
2
|
id: string;
|
|
4
3
|
image?: string;
|
|
@@ -72,5 +71,6 @@ type Props = {
|
|
|
72
71
|
sendPlausibleGoal: (path: string) => void;
|
|
73
72
|
loading: boolean;
|
|
74
73
|
};
|
|
75
|
-
export default function Results({ lang, text, results, weekNumber, openPeriodPicker, loading, sendPlausibleGoal, }: Props):
|
|
74
|
+
export default function Results({ lang, text, results, weekNumber, openPeriodPicker, loading, sendPlausibleGoal, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
76
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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import getConfig from "next/config";
|
|
4
|
+
import Button from "dt-design-system/es/button";
|
|
5
|
+
import * as Icons from "dt-design-system/es/icons";
|
|
6
|
+
import Links from "./links";
|
|
7
|
+
import Products from "./products";
|
|
8
|
+
import * as Dates from "./services/dates";
|
|
9
|
+
import message from "./services/messages";
|
|
10
|
+
import css from "./results.module.css";
|
|
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"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// import * as Fetcher from "ublo-lib/es/common/utils/fetcher";
|
|
2
1
|
import * as Fetcher from "../../../utils/fetcher";
|
|
3
2
|
const api = "https://search.ublo.app/api";
|
|
4
3
|
export function fetchResults(site, lang, query, groupLimit = 8, queryBy = "title,text,pageTitle,seoKeywords,parentTitle,seoTitle", queryByWeights) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/services/dates.js"],"names":[],"mappings":"AAsDA,wFAMC"}
|
|
@@ -25,9 +25,6 @@ function addDays(date, days) {
|
|
|
25
25
|
clone.setDate(clone.getDate() + days);
|
|
26
26
|
return clone;
|
|
27
27
|
}
|
|
28
|
-
// on calcule d'abord l'année du précédent Noël, et la date de la semaine 0 de ce Noël.
|
|
29
|
-
// on regarde la fin de saison par rapport à cette date.
|
|
30
|
-
// on considère cette date, ou celle du Noël suivant, si la date now est avant ou après la date de fin de saison
|
|
31
28
|
function christmasWeek(endWeek, forceSeasonSwitch) {
|
|
32
29
|
const now = createDate();
|
|
33
30
|
const year = now.getFullYear();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/services/messages.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAGvD"}
|