ublo-lib 1.24.4 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/components/admin-links/admin-links.js +95 -52
- package/es/common/components/admin-links/index.js +1 -1
- package/es/common/components/breadcrumb.js +78 -21
- package/es/common/components/cross-selling-editor/cross-selling-editor.js +52 -0
- package/es/common/components/cross-selling-editor/cross-selling-editor.module.css +6 -0
- package/es/common/components/cross-selling-editor/editor.js +98 -0
- package/es/common/components/cross-selling-editor/editor.module.css +23 -0
- package/es/common/components/cross-selling-editor/hooks/use-custom-offers.js +52 -0
- package/es/common/components/cross-selling-editor/hooks/use-tunnel-offers.js +35 -0
- package/es/common/components/cross-selling-editor/index.js +2 -0
- package/es/common/components/cross-selling-editor/override-trigger-form.js +156 -0
- package/es/common/components/cross-selling-editor/override-trigger-form.module.css +58 -0
- package/es/common/components/cross-selling-editor/override.js +124 -0
- package/es/common/components/cross-selling-editor/override.module.css +65 -0
- package/es/common/components/cross-selling-editor/overrides-list.js +111 -0
- package/es/common/components/cross-selling-editor/overrides-list.module.css +56 -0
- package/es/common/components/cross-selling-editor/rule.js +105 -0
- package/es/common/components/cross-selling-editor/rule.module.css +37 -0
- package/es/common/components/cross-selling-editor/rules.js +84 -0
- package/es/common/components/cross-selling-editor/rules.module.css +39 -0
- package/es/common/components/cross-selling-editor/services/api.js +36 -0
- package/es/common/components/cross-selling-editor/services/utils.js +199 -0
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.js +53 -0
- package/es/common/components/cross-selling-editor/tester-tunnel-offer.module.css +18 -0
- package/es/common/components/cross-selling-editor/tester.js +188 -0
- package/es/common/components/cross-selling-editor/tester.module.css +106 -0
- package/es/common/components/cross-selling-editor/types.js +1 -0
- package/es/common/components/custom-contact-form/custom-contact-form.js +147 -75
- package/es/common/components/date-picker/calendar.js +1 -1
- package/es/common/components/gesco-contact-form/gesco-contact-form.js +243 -91
- package/es/common/components/gesco-contact-form/hooks/use-params.js +35 -20
- package/es/common/components/gesco-contact-form/index.js +1 -1
- package/es/common/components/gesco-contact-form/phone-code-select.js +76 -56
- package/es/common/components/gesco-contact-form/services/api.js +7 -8
- package/es/common/components/gesco-contact-form/services/form.js +39 -25
- package/es/common/components/gesco-contact-form/services/messages.js +68 -65
- package/es/common/components/gesco-contact-form/services/plausible.js +8 -10
- package/es/common/components/gesco-contact-form/types.js +1 -1
- package/es/common/components/instant-search/hooks/use-constant.js +8 -6
- package/es/common/components/instant-search/hooks/use-debounced-search.js +14 -5
- package/es/common/components/instant-search/hooks/use-search.js +10 -6
- package/es/common/components/instant-search/index.js +1 -1
- package/es/common/components/instant-search/input.js +75 -45
- package/es/common/components/instant-search/instant-search.js +124 -73
- package/es/common/components/instant-search/links.js +74 -23
- package/es/common/components/instant-search/no-product.js +81 -4
- package/es/common/components/instant-search/products.js +118 -31
- package/es/common/components/instant-search/results.js +121 -32
- package/es/common/components/instant-search/services/api.js +12 -10
- package/es/common/components/instant-search/services/messages.js +3 -3
- package/es/common/components/instant-search/services/utils.js +34 -34
- package/es/common/components/msem-preset-editor/components/facet-selector.js +39 -22
- package/es/common/components/msem-preset-editor/components/form.js +54 -5
- package/es/common/components/msem-preset-editor/components/stay-picker.js +72 -33
- package/es/common/components/msem-preset-editor/components/widget-list-item.js +130 -42
- package/es/common/components/msem-preset-editor/components/widget-list.js +54 -29
- package/es/common/components/msem-preset-editor/editor-dialog.js +68 -21
- package/es/common/components/msem-preset-editor/editors/elloha.js +102 -69
- package/es/common/components/msem-preset-editor/editors/index.js +6 -6
- package/es/common/components/msem-preset-editor/editors/lodgings.js +316 -184
- package/es/common/components/msem-preset-editor/editors/ski-passes.js +267 -180
- package/es/common/components/msem-preset-editor/editors/standard-products.js +84 -56
- package/es/common/components/msem-preset-editor/editors/vakario.js +239 -171
- package/es/common/components/msem-preset-editor/msem-preset-editor.js +215 -129
- package/es/common/components/msem-preset-editor/services/api.js +69 -42
- package/es/common/components/msem-preset-editor/services/offers.js +61 -35
- package/es/common/components/msem-preset-editor/services/preset.js +22 -14
- package/es/common/components/msem-preset-editor/services/url-params.js +24 -24
- package/es/common/components/msem-preset-linker/components/actions.js +52 -40
- package/es/common/components/msem-preset-linker/components/overlays.js +57 -41
- package/es/common/components/msem-preset-linker/components/resort-selector.js +21 -11
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.js +43 -31
- package/es/common/components/msem-preset-linker/index.js +1 -1
- package/es/common/components/msem-preset-linker/msem-preset-linker.js +71 -42
- package/es/common/components/msem-preset-linker/services/url-params.js +10 -13
- package/es/common/components/plausible/hooks/use-plausible.js +22 -18
- package/es/common/components/plausible/index.js +1 -1
- package/es/common/components/plausible/plausible.js +23 -14
- package/es/common/components/plausible/services/callback.js +164 -115
- package/es/common/components/plausible/services/load.js +4 -6
- package/es/common/components/plausible/services/send-goal.js +6 -3
- package/es/common/components/scroll-spy.js +56 -43
- package/es/common/components/scrolling-carousel/index.js +1 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.js +94 -55
- package/es/common/components/tabbed-zones.js +100 -47
- package/es/common/hooks/use-faq.js +37 -36
- package/es/common/hooks/use-in-view.js +74 -74
- package/es/common/hooks/use-scroll-direction.js +37 -32
- package/es/common/hooks/use-stay.js +16 -13
- package/es/common/hooks/use-sticky.js +35 -35
- package/es/common/hooks/use-tunnel.js +42 -30
- package/es/common/hooks/use-update-effect.js +9 -9
- package/es/common/hooks/use-window-sizes.js +27 -28
- package/es/common/utils/cms.js +15 -17
- package/es/common/utils/cookies.js +10 -11
- package/es/common/utils/copy.js +11 -11
- package/es/common/utils/dates.js +8 -10
- package/es/common/utils/elements.js +14 -15
- package/es/common/utils/events.js +4 -19
- package/es/common/utils/file-manager.js +12 -10
- package/es/common/utils/load-js.js +10 -11
- package/es/common/utils/msem-widget.js +30 -23
- package/es/common/utils/url-parameters.js +11 -7
- package/es/esf/components/magic-box/index.js +1 -1
- package/es/esf/components/magic-box/magic-box.js +164 -102
- package/es/esf/components/parcours-esf/index.js +1 -1
- package/es/esf/components/parcours-esf/parcours-esf.js +45 -30
- package/es/esf/components/period-picker/period-picker.js +5 -5
- package/es/lbm/components/lumiplan/api.js +35 -18
- package/es/lbm/components/lumiplan/domain.js +96 -20
- package/es/lbm/components/lumiplan/i18n/translations.js +24 -15
- package/es/lbm/components/lumiplan/index.js +1 -1
- package/es/lbm/components/lumiplan/lumiplan.js +130 -102
- package/es/lbm/components/lumiplan/opening.js +116 -38
- package/es/lbm/components/lumiplan/pois.js +270 -161
- package/es/lbm/components/lumiplan/resort-selector.js +58 -36
- package/es/lbm/components/lumiplan/road-condition.js +100 -19
- package/es/lbm/components/lumiplan/todays-tips.js +45 -16
- package/es/lbm/components/lumiplan/types.js +1 -1
- package/es/lbm/components/lumiplan/weather/avalanche-risk.js +33 -8
- package/es/lbm/components/lumiplan/weather/index.js +1 -1
- package/es/lbm/components/lumiplan/weather/snow-data.js +71 -5
- package/es/lbm/components/lumiplan/weather/weather-data.js +126 -7
- package/es/lbm/components/lumiplan/weather/weather-days.js +76 -48
- package/es/lbm/components/lumiplan/weather/weather-icon.js +23 -20
- package/es/lbm/components/lumiplan/weather/weather-zones.js +71 -42
- package/es/lbm/components/lumiplan/weather/weather.js +90 -28
- package/package.json +4 -10
- package/es/common/components/admin-links/admin-links.d.ts +0 -11
- package/es/common/components/admin-links/admin-links.d.ts.map +0 -1
- package/es/common/components/admin-links/index.d.ts +0 -3
- package/es/common/components/admin-links/index.d.ts.map +0 -1
- package/es/common/components/breadcrumb.d.ts +0 -16
- package/es/common/components/breadcrumb.d.ts.map +0 -1
- package/es/common/components/custom-contact-form/custom-contact-form.d.ts +0 -25
- package/es/common/components/custom-contact-form/custom-contact-form.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/gesco-contact-form.d.ts +0 -17
- package/es/common/components/gesco-contact-form/gesco-contact-form.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/hooks/use-params.d.ts +0 -15
- package/es/common/components/gesco-contact-form/hooks/use-params.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/index.d.ts +0 -3
- package/es/common/components/gesco-contact-form/index.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/phone-code-select.d.ts +0 -7
- package/es/common/components/gesco-contact-form/phone-code-select.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/services/api.d.ts +0 -30
- package/es/common/components/gesco-contact-form/services/api.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/services/form.d.ts +0 -31
- package/es/common/components/gesco-contact-form/services/form.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/services/messages.d.ts +0 -34
- package/es/common/components/gesco-contact-form/services/messages.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/services/plausible.d.ts +0 -3
- package/es/common/components/gesco-contact-form/services/plausible.d.ts.map +0 -1
- package/es/common/components/gesco-contact-form/types.d.ts +0 -34
- package/es/common/components/gesco-contact-form/types.d.ts.map +0 -1
- package/es/common/components/instant-search/hooks/use-constant.d.ts +0 -2
- package/es/common/components/instant-search/hooks/use-constant.d.ts.map +0 -1
- package/es/common/components/instant-search/hooks/use-debounced-search.d.ts +0 -7
- package/es/common/components/instant-search/hooks/use-debounced-search.d.ts.map +0 -1
- package/es/common/components/instant-search/hooks/use-search.d.ts +0 -16
- package/es/common/components/instant-search/hooks/use-search.d.ts.map +0 -1
- package/es/common/components/instant-search/index.d.ts +0 -3
- package/es/common/components/instant-search/index.d.ts.map +0 -1
- package/es/common/components/instant-search/input.d.ts +0 -15
- package/es/common/components/instant-search/input.d.ts.map +0 -1
- package/es/common/components/instant-search/instant-search.d.ts +0 -14
- package/es/common/components/instant-search/instant-search.d.ts.map +0 -1
- package/es/common/components/instant-search/links.d.ts +0 -12
- package/es/common/components/instant-search/links.d.ts.map +0 -1
- package/es/common/components/instant-search/no-product.d.ts +0 -6
- package/es/common/components/instant-search/no-product.d.ts.map +0 -1
- package/es/common/components/instant-search/products.d.ts +0 -14
- package/es/common/components/instant-search/products.d.ts.map +0 -1
- package/es/common/components/instant-search/results.d.ts +0 -76
- package/es/common/components/instant-search/results.d.ts.map +0 -1
- package/es/common/components/instant-search/services/api.d.ts +0 -2
- package/es/common/components/instant-search/services/api.d.ts.map +0 -1
- package/es/common/components/instant-search/services/messages.d.ts +0 -2
- package/es/common/components/instant-search/services/messages.d.ts.map +0 -1
- package/es/common/components/instant-search/services/utils.d.ts +0 -4
- package/es/common/components/instant-search/services/utils.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/components/facet-selector.d.ts +0 -6
- package/es/common/components/msem-preset-editor/components/facet-selector.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/components/form.d.ts +0 -8
- package/es/common/components/msem-preset-editor/components/form.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/components/stay-picker.d.ts +0 -14
- package/es/common/components/msem-preset-editor/components/stay-picker.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts +0 -12
- package/es/common/components/msem-preset-editor/components/widget-list-item.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/components/widget-list.d.ts +0 -17
- package/es/common/components/msem-preset-editor/components/widget-list.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editor-dialog.d.ts +0 -30
- package/es/common/components/msem-preset-editor/editor-dialog.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editors/elloha.d.ts +0 -15
- package/es/common/components/msem-preset-editor/editors/elloha.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editors/index.d.ts +0 -14
- package/es/common/components/msem-preset-editor/editors/index.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editors/lodgings.d.ts +0 -17
- package/es/common/components/msem-preset-editor/editors/lodgings.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts +0 -16
- package/es/common/components/msem-preset-editor/editors/ski-passes.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editors/standard-products.d.ts +0 -16
- package/es/common/components/msem-preset-editor/editors/standard-products.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/editors/vakario.d.ts +0 -15
- package/es/common/components/msem-preset-editor/editors/vakario.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts +0 -28
- package/es/common/components/msem-preset-editor/msem-preset-editor.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/services/api.d.ts +0 -15
- package/es/common/components/msem-preset-editor/services/api.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/services/offers.d.ts +0 -47
- package/es/common/components/msem-preset-editor/services/offers.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/services/preset.d.ts +0 -40
- package/es/common/components/msem-preset-editor/services/preset.d.ts.map +0 -1
- package/es/common/components/msem-preset-editor/services/url-params.d.ts +0 -3
- package/es/common/components/msem-preset-editor/services/url-params.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/components/actions.d.ts +0 -11
- package/es/common/components/msem-preset-linker/components/actions.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/components/overlays.d.ts +0 -8
- package/es/common/components/msem-preset-linker/components/overlays.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/components/resort-selector.d.ts +0 -6
- package/es/common/components/msem-preset-linker/components/resort-selector.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts +0 -4
- package/es/common/components/msem-preset-linker/hooks/use-msem-presets.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/index.d.ts +0 -3
- package/es/common/components/msem-preset-linker/index.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts +0 -30
- package/es/common/components/msem-preset-linker/msem-preset-linker.d.ts.map +0 -1
- package/es/common/components/msem-preset-linker/services/url-params.d.ts +0 -2
- package/es/common/components/msem-preset-linker/services/url-params.d.ts.map +0 -1
- package/es/common/components/plausible/hooks/use-plausible.d.ts +0 -12
- package/es/common/components/plausible/hooks/use-plausible.d.ts.map +0 -1
- package/es/common/components/plausible/index.d.ts +0 -8
- package/es/common/components/plausible/index.d.ts.map +0 -1
- package/es/common/components/plausible/plausible.d.ts +0 -7
- package/es/common/components/plausible/plausible.d.ts.map +0 -1
- package/es/common/components/plausible/services/callback.d.ts +0 -24
- package/es/common/components/plausible/services/callback.d.ts.map +0 -1
- package/es/common/components/plausible/services/load.d.ts +0 -2
- package/es/common/components/plausible/services/load.d.ts.map +0 -1
- package/es/common/components/plausible/services/send-goal.d.ts +0 -7
- package/es/common/components/plausible/services/send-goal.d.ts.map +0 -1
- package/es/common/components/scroll-spy.d.ts +0 -14
- package/es/common/components/scroll-spy.d.ts.map +0 -1
- package/es/common/components/scrolling-carousel/index.d.ts +0 -3
- package/es/common/components/scrolling-carousel/index.d.ts.map +0 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts +0 -8
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +0 -1
- package/es/common/components/tabbed-zones.d.ts +0 -12
- package/es/common/components/tabbed-zones.d.ts.map +0 -1
- package/es/common/hooks/use-faq.d.ts +0 -3
- package/es/common/hooks/use-faq.d.ts.map +0 -1
- package/es/common/hooks/use-in-view.d.ts +0 -5
- package/es/common/hooks/use-in-view.d.ts.map +0 -1
- package/es/common/hooks/use-scroll-direction.d.ts +0 -11
- package/es/common/hooks/use-scroll-direction.d.ts.map +0 -1
- package/es/common/hooks/use-stay.d.ts +0 -4
- package/es/common/hooks/use-stay.d.ts.map +0 -1
- package/es/common/hooks/use-sticky.d.ts +0 -4
- package/es/common/hooks/use-sticky.d.ts.map +0 -1
- package/es/common/hooks/use-tunnel.d.ts +0 -8
- package/es/common/hooks/use-tunnel.d.ts.map +0 -1
- package/es/common/hooks/use-update-effect.d.ts +0 -2
- package/es/common/hooks/use-update-effect.d.ts.map +0 -1
- package/es/common/hooks/use-window-sizes.d.ts +0 -7
- package/es/common/hooks/use-window-sizes.d.ts.map +0 -1
- package/es/common/utils/cms.d.ts +0 -4
- package/es/common/utils/cms.d.ts.map +0 -1
- package/es/common/utils/cookies.d.ts +0 -2
- package/es/common/utils/cookies.d.ts.map +0 -1
- package/es/common/utils/copy.d.ts +0 -2
- package/es/common/utils/copy.d.ts.map +0 -1
- package/es/common/utils/dates.d.ts +0 -2
- package/es/common/utils/dates.d.ts.map +0 -1
- package/es/common/utils/elements.d.ts +0 -5
- package/es/common/utils/elements.d.ts.map +0 -1
- package/es/common/utils/events.d.ts +0 -4
- package/es/common/utils/events.d.ts.map +0 -1
- package/es/common/utils/file-manager.d.ts +0 -13
- package/es/common/utils/file-manager.d.ts.map +0 -1
- package/es/common/utils/load-js.d.ts +0 -3
- package/es/common/utils/load-js.d.ts.map +0 -1
- package/es/common/utils/msem-widget.d.ts +0 -16
- package/es/common/utils/msem-widget.d.ts.map +0 -1
- package/es/common/utils/url-parameters.d.ts +0 -2
- package/es/common/utils/url-parameters.d.ts.map +0 -1
- package/es/esf/components/magic-box/index.d.ts +0 -3
- package/es/esf/components/magic-box/index.d.ts.map +0 -1
- package/es/esf/components/magic-box/magic-box.d.ts +0 -22
- package/es/esf/components/magic-box/magic-box.d.ts.map +0 -1
- package/es/esf/components/parcours-esf/index.d.ts +0 -3
- package/es/esf/components/parcours-esf/index.d.ts.map +0 -1
- package/es/esf/components/parcours-esf/parcours-esf.d.ts +0 -14
- package/es/esf/components/parcours-esf/parcours-esf.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/api.d.ts +0 -8
- package/es/lbm/components/lumiplan/api.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/domain.d.ts +0 -8
- package/es/lbm/components/lumiplan/domain.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/i18n/translations.d.ts +0 -7
- package/es/lbm/components/lumiplan/i18n/translations.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/index.d.ts +0 -3
- package/es/lbm/components/lumiplan/index.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/lumiplan.d.ts +0 -2
- package/es/lbm/components/lumiplan/lumiplan.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/opening.d.ts +0 -9
- package/es/lbm/components/lumiplan/opening.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/pois.d.ts +0 -8
- package/es/lbm/components/lumiplan/pois.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/resort-selector.d.ts +0 -12
- package/es/lbm/components/lumiplan/resort-selector.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/road-condition.d.ts +0 -8
- package/es/lbm/components/lumiplan/road-condition.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/todays-tips.d.ts +0 -8
- package/es/lbm/components/lumiplan/todays-tips.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/types.d.ts +0 -285
- package/es/lbm/components/lumiplan/types.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts +0 -4
- package/es/lbm/components/lumiplan/weather/avalanche-risk.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/index.d.ts +0 -3
- package/es/lbm/components/lumiplan/weather/index.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts +0 -8
- package/es/lbm/components/lumiplan/weather/snow-data.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts +0 -9
- package/es/lbm/components/lumiplan/weather/weather-data.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/weather-days.d.ts +0 -7
- package/es/lbm/components/lumiplan/weather/weather-days.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts +0 -23
- package/es/lbm/components/lumiplan/weather/weather-icon.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/weather-zones.d.ts +0 -6
- package/es/lbm/components/lumiplan/weather/weather-zones.d.ts.map +0 -1
- package/es/lbm/components/lumiplan/weather/weather.d.ts +0 -8
- package/es/lbm/components/lumiplan/weather/weather.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import CloudIcon from "../icons/cloud";
|
|
3
3
|
import FogIcon from "../icons/fog";
|
|
4
4
|
import VariableIcon from "../icons/variable";
|
|
@@ -11,24 +11,27 @@ import StormIcon from "../icons/storm";
|
|
|
11
11
|
import VariableStormIcon from "../icons/variable-storm";
|
|
12
12
|
import SunIcon from "../icons/sun";
|
|
13
13
|
import SunnyIcon from "../icons/sunny";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
15
|
export const weatherIcons = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
UNDEF: SunIcon,
|
|
17
|
+
SUNNY: SunIcon,
|
|
18
|
+
MOSTLY_SUNNY: SunnyIcon,
|
|
19
|
+
FAIR_WEATHER_PARTLY_CLOUDY: SunnyIcon,
|
|
20
|
+
MOSTLY_CLOUDY_SOME_SUN: CloudIcon,
|
|
21
|
+
CLOUDY: CloudIcon,
|
|
22
|
+
CLOUDY_LIGHT_RAIN: RainyIcon,
|
|
23
|
+
MOSTLY_CLOUDY_LIGHT_RAIN: VariableIcon,
|
|
24
|
+
CLOUDY_MODERATE_HEAVY_RAIN: RainyRainyIcon,
|
|
25
|
+
VARIABLE_SKY_LIGHT_SNOWFALL: VariableSnowIcon,
|
|
26
|
+
CLOUDY_LIGHT_SNOWFALL: SnowIcon,
|
|
27
|
+
CLOUDY_MODERATE_HEAVY_SNOWFALL: HeavySnowIcon,
|
|
28
|
+
FOG: FogIcon,
|
|
29
|
+
THUNDERSTORMS: StormIcon,
|
|
30
|
+
VARIABLE_SKY_SCATTERED_THUNDERSTORMS: VariableStormIcon
|
|
30
31
|
};
|
|
31
|
-
export default function WeatherIcon({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
export default function WeatherIcon({
|
|
33
|
+
sky
|
|
34
|
+
}) {
|
|
35
|
+
const Icon = weatherIcons[sky] || weatherIcons.UNDEF;
|
|
36
|
+
return _jsx(Icon, {});
|
|
37
|
+
}
|
|
@@ -1,48 +1,77 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import classNames from "classnames";
|
|
4
|
-
// import useWindowSizes from "ublo-lib/es/common/hooks/use-window-sizes";
|
|
5
3
|
import useWindowSizes from "../../../../common/hooks/use-window-sizes";
|
|
6
4
|
import Button from "dt-design-system/es/button";
|
|
7
5
|
import T from "../i18n/translations";
|
|
8
6
|
import css from "./weather-zones.module.css";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export default function Zones({
|
|
10
|
+
weatherZones,
|
|
11
|
+
currentZoneIndex,
|
|
12
|
+
setCurrentZoneIndex
|
|
13
|
+
}) {
|
|
14
|
+
const [showLeftShadow, setShowLeftShadow] = React.useState(false);
|
|
15
|
+
const [showRightShadow, setShowRightShadow] = React.useState(false);
|
|
16
|
+
const containerRef = React.useRef(null);
|
|
17
|
+
const scrollerRef = React.useRef(null);
|
|
18
|
+
const {
|
|
19
|
+
width,
|
|
20
|
+
height
|
|
21
|
+
} = useWindowSizes();
|
|
22
|
+
const refreshShadows = React.useCallback(() => {
|
|
23
|
+
const container = containerRef.current;
|
|
24
|
+
const scroller = scrollerRef.current;
|
|
25
|
+
if (container && scroller) {
|
|
26
|
+
setShowLeftShadow(scroller.scrollLeft > 50);
|
|
27
|
+
const maxScroll = Math.round(scroller.scrollWidth) - Math.round(scroller.clientWidth);
|
|
28
|
+
setShowRightShadow(scroller.scrollLeft < maxScroll - 50);
|
|
29
|
+
}
|
|
30
|
+
}, []);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
refreshShadows();
|
|
33
|
+
}, [refreshShadows, width, height]);
|
|
34
|
+
const zonesClasses = classNames(css.zones, {
|
|
35
|
+
[css.leftShadow]: showLeftShadow,
|
|
36
|
+
[css.rightShadow]: showRightShadow
|
|
37
|
+
});
|
|
38
|
+
return _jsx("div", {
|
|
39
|
+
ref: containerRef,
|
|
40
|
+
className: zonesClasses,
|
|
41
|
+
children: _jsx("div", {
|
|
42
|
+
ref: scrollerRef,
|
|
43
|
+
onScroll: refreshShadows,
|
|
44
|
+
className: css.content,
|
|
45
|
+
children: weatherZones.map((zone, i) => {
|
|
46
|
+
const hasData = Boolean(zone.weatherInfos.length > 0 && zone.weatherInfos[0].am && zone.weatherInfos[0].pm);
|
|
47
|
+
if (!hasData) return null;
|
|
48
|
+
const {
|
|
49
|
+
name,
|
|
50
|
+
altitude
|
|
51
|
+
} = zone;
|
|
52
|
+
const {
|
|
53
|
+
value,
|
|
54
|
+
unit
|
|
55
|
+
} = altitude;
|
|
56
|
+
const isSelected = i === currentZoneIndex;
|
|
57
|
+
const updateCurrentZone = () => {
|
|
58
|
+
setCurrentZoneIndex(i);
|
|
59
|
+
};
|
|
60
|
+
const classes = classNames(css.zone, {
|
|
61
|
+
[css.zoneSelected]: isSelected
|
|
62
|
+
});
|
|
63
|
+
return _jsxs(Button, {
|
|
64
|
+
className: classes,
|
|
65
|
+
onClick: updateCurrentZone,
|
|
66
|
+
children: [_jsx("b", {
|
|
67
|
+
children: name
|
|
68
|
+
}), " ", value, _jsx("span", {
|
|
69
|
+
children: _jsx(T, {
|
|
70
|
+
id: unit
|
|
71
|
+
})
|
|
72
|
+
})]
|
|
73
|
+
}, name);
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { useUbloContext } from "ublo/with-ublo";
|
|
4
3
|
import Button from "dt-design-system/es/button";
|
|
@@ -12,32 +11,95 @@ import { t } from "../i18n/translations";
|
|
|
12
11
|
import css from "./weather.module.css";
|
|
13
12
|
import Days from "./weather-days";
|
|
14
13
|
import Zones from "./weather-zones";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const Weather = React.forwardRef(({
|
|
17
|
+
weather
|
|
18
|
+
}, ref) => {
|
|
19
|
+
const {
|
|
20
|
+
lang
|
|
21
|
+
} = useUbloContext();
|
|
22
|
+
const [currentZoneIndex, setCurrentZoneIndex] = React.useState(0);
|
|
23
|
+
const [currentDayIndex, setCurrentDayIndex] = React.useState(0);
|
|
24
|
+
const [expanded, setExpanded] = React.useState(true);
|
|
25
|
+
React.useEffect(() => {
|
|
26
|
+
setCurrentZoneIndex(0);
|
|
27
|
+
setCurrentDayIndex(0);
|
|
28
|
+
}, [weather]);
|
|
29
|
+
if (weather === undefined) {
|
|
30
|
+
return _jsx("div", {
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: css.loader,
|
|
33
|
+
"data-tags": t(lang, "weather.title"),
|
|
34
|
+
children: _jsx(Loader, {
|
|
35
|
+
variant: "overlay"
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (!weather) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const {
|
|
43
|
+
weatherZones
|
|
44
|
+
} = weather.weather;
|
|
45
|
+
const {
|
|
46
|
+
snowZones
|
|
47
|
+
} = weather.snow;
|
|
48
|
+
const {
|
|
49
|
+
weatherInfos
|
|
50
|
+
} = weatherZones[currentZoneIndex] || {};
|
|
51
|
+
const days = weatherInfos.slice(0, 4);
|
|
52
|
+
const {
|
|
53
|
+
am,
|
|
54
|
+
pm
|
|
55
|
+
} = days[currentDayIndex] || {};
|
|
56
|
+
const snowData = snowZones[currentZoneIndex] || {};
|
|
57
|
+
const ExpandIcon = expanded ? Icons.MinusCircle : Icons.PlusCircle;
|
|
58
|
+
const toggleExpanded = () => {
|
|
59
|
+
setExpanded(!expanded);
|
|
60
|
+
};
|
|
61
|
+
return _jsxs("div", {
|
|
62
|
+
ref: ref,
|
|
63
|
+
className: css.weather,
|
|
64
|
+
"data-tags": t(lang, "weather.title"),
|
|
65
|
+
children: [_jsx(Zones, {
|
|
66
|
+
weatherZones: weatherZones,
|
|
67
|
+
currentZoneIndex: currentZoneIndex,
|
|
68
|
+
setCurrentZoneIndex: setCurrentZoneIndex
|
|
69
|
+
}), _jsx(Days, {
|
|
70
|
+
days: days,
|
|
71
|
+
currentDayIndex: currentDayIndex,
|
|
72
|
+
setCurrentDayIndex: setCurrentDayIndex,
|
|
73
|
+
lang: lang
|
|
74
|
+
}), _jsxs("div", {
|
|
75
|
+
className: css.info,
|
|
76
|
+
children: [_jsx(AvalancheRisk, {
|
|
77
|
+
avalancheRisk: snowData.avalancheRisk
|
|
78
|
+
}), _jsxs("div", {
|
|
79
|
+
className: css.infoBottom,
|
|
80
|
+
children: [_jsx(SnowData, {
|
|
81
|
+
data: snowData,
|
|
82
|
+
expanded: expanded
|
|
83
|
+
}), _jsx(WeatherData, {
|
|
84
|
+
kind: "am",
|
|
85
|
+
data: am,
|
|
86
|
+
expanded: expanded
|
|
87
|
+
}), _jsx(WeatherData, {
|
|
88
|
+
kind: "pm",
|
|
89
|
+
data: pm,
|
|
90
|
+
expanded: expanded
|
|
91
|
+
})]
|
|
92
|
+
}), _jsx(Tooltip, {
|
|
93
|
+
content: t(lang, expanded ? "see-less" : "see-more"),
|
|
94
|
+
children: _jsx(Button, {
|
|
95
|
+
className: css.expandButton,
|
|
96
|
+
variant: "transparent",
|
|
97
|
+
onClick: toggleExpanded,
|
|
98
|
+
children: _jsx(ExpandIcon, {})
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
})]
|
|
102
|
+
});
|
|
41
103
|
});
|
|
42
104
|
Weather.displayName = "Weather";
|
|
43
|
-
export default Weather;
|
|
105
|
+
export default Weather;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ublo-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"dt-design-system": "^3.1.5",
|
|
6
6
|
"leaflet": "^1.9.1",
|
|
@@ -39,20 +39,14 @@
|
|
|
39
39
|
"@types/css-modules": "1.0.5",
|
|
40
40
|
"@types/react": "18.2.48",
|
|
41
41
|
"@types/react-dom": "18.2.18",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "6.20.0",
|
|
43
|
+
"@typescript-eslint/parser": "6.20.0",
|
|
42
44
|
"classnames": "2.5.1",
|
|
43
45
|
"cors": "2.8.5",
|
|
44
46
|
"cpx2": "4.2.3",
|
|
45
47
|
"dt-design-system": "3.7.6",
|
|
46
48
|
"eslint": "8.56.0",
|
|
47
|
-
"eslint-config-
|
|
48
|
-
"eslint-config-standard": "17.1.0",
|
|
49
|
-
"eslint-plugin-import": "2.29.1",
|
|
50
|
-
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
51
|
-
"eslint-plugin-n": "16.6.2",
|
|
52
|
-
"eslint-plugin-node": "11.1.0",
|
|
53
|
-
"eslint-plugin-promise": "6.1.1",
|
|
54
|
-
"eslint-plugin-react": "7.33.2",
|
|
55
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
49
|
+
"eslint-config-next": "14.1.0",
|
|
56
50
|
"mv": "2.1.1",
|
|
57
51
|
"next": "14.1.0",
|
|
58
52
|
"react": "18.2.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Link = {
|
|
2
|
-
name: string;
|
|
3
|
-
onClick: string | (() => void);
|
|
4
|
-
target?: string;
|
|
5
|
-
};
|
|
6
|
-
type Props = {
|
|
7
|
-
customLinks?: Record<string, Link>;
|
|
8
|
-
};
|
|
9
|
-
declare const AdminLinks: ({ customLinks }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default AdminLinks;
|
|
11
|
-
//# sourceMappingURL=admin-links.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin-links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/admin-links/admin-links.tsx"],"names":[],"mappings":"AAMA,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACpC,CAAC;AAeF,QAAA,MAAM,UAAU,oBAAqB,KAAK,4CA8EzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/admin-links/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,eAAe,UAAU,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type ItemProps = {
|
|
2
|
-
title: string;
|
|
3
|
-
shortTitle?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
path: string;
|
|
6
|
-
page: string;
|
|
7
|
-
subs?: ItemProps[];
|
|
8
|
-
exclusions: string[];
|
|
9
|
-
};
|
|
10
|
-
type BreadcrumbProps = {
|
|
11
|
-
breadcrumb: ItemProps;
|
|
12
|
-
exclusions: string[];
|
|
13
|
-
};
|
|
14
|
-
declare const Breadcrumb: ({ breadcrumb, exclusions }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default Breadcrumb;
|
|
16
|
-
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/common/components/breadcrumb.tsx"],"names":[],"mappings":"AAGA,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAqDF,QAAA,MAAM,UAAU,+BAAqC,eAAe,4CAInE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type Props = {
|
|
3
|
-
kind?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
fields: any;
|
|
6
|
-
presets?: {
|
|
7
|
-
values?: Record<string, any>;
|
|
8
|
-
setter?: React.Dispatch<React.SetStateAction<Record<string, any> | undefined>>;
|
|
9
|
-
allowReset?: boolean;
|
|
10
|
-
disableFields?: boolean;
|
|
11
|
-
};
|
|
12
|
-
className?: string;
|
|
13
|
-
innerClassName?: string;
|
|
14
|
-
subject?: {
|
|
15
|
-
prefix?: string;
|
|
16
|
-
suffix?: string;
|
|
17
|
-
};
|
|
18
|
-
onSubmit?: (data: any) => void;
|
|
19
|
-
customSend?: (data: any) => Promise<any>;
|
|
20
|
-
sendButtonText?: string;
|
|
21
|
-
};
|
|
22
|
-
declare const _default: React.MemoExoticComponent<typeof CustomContactFormWithSnackbar>;
|
|
23
|
-
export default _default;
|
|
24
|
-
declare function CustomContactFormWithSnackbar(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=custom-contact-form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-contact-form.d.ts","sourceRoot":"","sources":["../../../../src/common/components/custom-contact-form/custom-contact-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,CACrB,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,CACtD,CAAC;QACF,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;;AASF,wBAAyD;AAEzD,iBAAS,6BAA6B,CAAC,KAAK,EAAE,KAAK,2CAMlD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
lang: "fr" | "en";
|
|
3
|
-
channel: string;
|
|
4
|
-
resort?: number;
|
|
5
|
-
merchant?: string;
|
|
6
|
-
categories?: string[];
|
|
7
|
-
facet?: "WINTER" | "SUMMER";
|
|
8
|
-
host?: "https://admin.mon-sejour-en-montagne.com" | "https://admin-integration.mon-sejour-en-montagne.com" | "https://admin-uat.mon-sejour-en-montagne.com";
|
|
9
|
-
onSubmit?: (params: any) => void;
|
|
10
|
-
messagesOverrides?: {
|
|
11
|
-
fr?: Record<string, string>;
|
|
12
|
-
en?: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default function GescoContactForm({ lang, channel, resort, merchant, categories, facet, host, onSubmit, messagesOverrides, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=gesco-contact-form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gesco-contact-form.d.ts","sourceRoot":"","sources":["../../../../src/common/components/gesco-contact-form/gesco-contact-form.tsx"],"names":[],"mappings":"AAgBA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,IAAI,CAAC,EACD,0CAA0C,GAC1C,sDAAsD,GACtD,8CAA8C,CAAC;IAEnD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,iBAAiB,CAAC,EAAE;QAClB,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAW,EACX,OAAe,EACf,MAAM,EACN,QAAQ,EACR,UAAU,EACV,KAAgB,EAChB,IAAiD,EACjD,QAAQ,EACR,iBAAsB,GACvB,EAAE,KAAK,2CA6PP"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Params } from "../types";
|
|
2
|
-
type Arguments = {
|
|
3
|
-
lang: string;
|
|
4
|
-
channel: string;
|
|
5
|
-
resort?: number;
|
|
6
|
-
merchant?: string;
|
|
7
|
-
categories?: string[];
|
|
8
|
-
host: string;
|
|
9
|
-
};
|
|
10
|
-
export default function useParams(args: Arguments): {
|
|
11
|
-
params: Params | undefined;
|
|
12
|
-
error: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=use-params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-params.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/hooks/use-params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,SAAS;;;EAuBhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/gesco-contact-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone-code-select.d.ts","sourceRoot":"","sources":["../../../../src/common/components/gesco-contact-form/phone-code-select.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA0BF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAgEpE"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
type ParamsPayload = {
|
|
2
|
-
lang: string;
|
|
3
|
-
channel: string;
|
|
4
|
-
resort?: number;
|
|
5
|
-
merchant?: string;
|
|
6
|
-
categories?: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare function getParams(host: string, payload: ParamsPayload): Promise<any>;
|
|
9
|
-
type SendPayload = {
|
|
10
|
-
lang: "fr" | "en";
|
|
11
|
-
channel: string;
|
|
12
|
-
resort?: number;
|
|
13
|
-
merchant?: string;
|
|
14
|
-
facet: "WINTER" | "SUMMER";
|
|
15
|
-
subject: string;
|
|
16
|
-
firstname: string;
|
|
17
|
-
lastname: string;
|
|
18
|
-
email: string;
|
|
19
|
-
phone: string;
|
|
20
|
-
country: string;
|
|
21
|
-
category?: string;
|
|
22
|
-
stayFrom: string;
|
|
23
|
-
stayTo: string;
|
|
24
|
-
message: string;
|
|
25
|
-
userAgent?: string;
|
|
26
|
-
language?: string;
|
|
27
|
-
};
|
|
28
|
-
export declare function send(host: string, payload: SendPayload): Promise<any>;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/api.ts"],"names":[],"mappings":"AAGA,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,gBAInE;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,gBAI5D"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { FormFields } from "../types";
|
|
2
|
-
export declare function extractValues(elements: HTMLFormControlsCollection): FormFields;
|
|
3
|
-
type Params = {
|
|
4
|
-
lang: "fr" | "en";
|
|
5
|
-
channel: string;
|
|
6
|
-
resort?: number;
|
|
7
|
-
merchant?: string;
|
|
8
|
-
facet: "WINTER" | "SUMMER";
|
|
9
|
-
};
|
|
10
|
-
export declare function buildPayload(params: Params, values: FormFields): {
|
|
11
|
-
userAgent: string;
|
|
12
|
-
browserLang: string;
|
|
13
|
-
subject: string;
|
|
14
|
-
firstname: string;
|
|
15
|
-
lastname: string;
|
|
16
|
-
email: string;
|
|
17
|
-
phone: string;
|
|
18
|
-
phoneCode?: string | undefined;
|
|
19
|
-
country: string;
|
|
20
|
-
category?: string | undefined;
|
|
21
|
-
stayFrom: string;
|
|
22
|
-
stayTo: string;
|
|
23
|
-
message: string;
|
|
24
|
-
lang: "fr" | "en";
|
|
25
|
-
channel: string;
|
|
26
|
-
resort?: number | undefined;
|
|
27
|
-
merchant?: string | undefined;
|
|
28
|
-
facet: "WINTER" | "SUMMER";
|
|
29
|
-
};
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,0BAA0B,cAuBjE;AAED,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;EAG9D"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare const fr: {
|
|
2
|
-
subject: string;
|
|
3
|
-
firstname: string;
|
|
4
|
-
lastname: string;
|
|
5
|
-
email: string;
|
|
6
|
-
phoneCode: string;
|
|
7
|
-
phone: string;
|
|
8
|
-
country: string;
|
|
9
|
-
category: string;
|
|
10
|
-
stay: string;
|
|
11
|
-
stayFrom: string;
|
|
12
|
-
stayFromDate: string;
|
|
13
|
-
stayTo: string;
|
|
14
|
-
stayToDate: string;
|
|
15
|
-
dateFormat: string;
|
|
16
|
-
from: string;
|
|
17
|
-
to: string;
|
|
18
|
-
message: string;
|
|
19
|
-
submit: string;
|
|
20
|
-
defaultCountry: string;
|
|
21
|
-
defaultCategory: string;
|
|
22
|
-
defaultSubject: string;
|
|
23
|
-
sendSucesss: string;
|
|
24
|
-
sendError: string;
|
|
25
|
-
parametersError: string;
|
|
26
|
-
emailError: string;
|
|
27
|
-
phoneError: string;
|
|
28
|
-
lengthError: string;
|
|
29
|
-
mandatoryError: string;
|
|
30
|
-
};
|
|
31
|
-
export declare function get(lang: "fr" | "en", overrides?: {}): Record<keyof typeof fr, string>;
|
|
32
|
-
export declare function format(value: string, params: Record<string, string>): string;
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/messages.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BP,CAAC;AAoCF,wBAAgB,GAAG,CACjB,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,SAAS,KAAK,GACb,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAAC,CAKjC;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAKnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plausible.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/plausible.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEnD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,QAY5D"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export type FormFields = {
|
|
2
|
-
subject: string;
|
|
3
|
-
firstname: string;
|
|
4
|
-
lastname: string;
|
|
5
|
-
email: string;
|
|
6
|
-
phone: string;
|
|
7
|
-
phoneCode?: string;
|
|
8
|
-
country: string;
|
|
9
|
-
category?: string;
|
|
10
|
-
stayFrom: string;
|
|
11
|
-
stayTo: string;
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
export type FormElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
15
|
-
type Country = {
|
|
16
|
-
code: string;
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
type Category = {
|
|
20
|
-
code: string;
|
|
21
|
-
label: string;
|
|
22
|
-
};
|
|
23
|
-
type Subject = {
|
|
24
|
-
id: string;
|
|
25
|
-
label: string;
|
|
26
|
-
stay: 0 | 1;
|
|
27
|
-
};
|
|
28
|
-
export type Params = {
|
|
29
|
-
countries: Country[];
|
|
30
|
-
categories: Category[];
|
|
31
|
-
subjects: Subject[];
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/components/gesco-contact-form/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,WAAW,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,CAAC;AAExB,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
|