@coras-io/embed 0.1.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/CHANGELOG.md +20 -0
- package/LICENSE +201 -0
- package/NOTICE +8 -0
- package/README.md +51 -0
- package/dist/components/accordion/accordion-item/accordion-item.component.d.ts +9 -0
- package/dist/components/accordion/accordion-item/accordion-item.component.js +44 -0
- package/dist/components/accordion/accordion-item/accordion-item.d.ts +8 -0
- package/dist/components/accordion/accordion-item/accordion-item.js +6 -0
- package/dist/components/accordion/accordion-item/accordion-item.styles.d.ts +2 -0
- package/dist/components/accordion/accordion-item/accordion-item.styles.js +62 -0
- package/dist/components/accordion/accordion.component.d.ts +8 -0
- package/dist/components/accordion/accordion.component.js +31 -0
- package/dist/components/accordion/accordion.d.ts +8 -0
- package/dist/components/accordion/accordion.js +6 -0
- package/dist/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/accordion/accordion.styles.js +13 -0
- package/dist/components/alert/alert.component.d.ts +11 -0
- package/dist/components/alert/alert.component.js +59 -0
- package/dist/components/alert/alert.d.ts +8 -0
- package/dist/components/alert/alert.js +6 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +158 -0
- package/dist/components/alert/alert.types.d.ts +1 -0
- package/dist/components/alert/alert.types.js +1 -0
- package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +8 -0
- package/dist/components/attraction-card/base/attraction-card.mixin.js +109 -0
- package/dist/components/attraction-card/base/attraction-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/base/attraction-card.styles.js +94 -0
- package/dist/components/attraction-card/base/attraction-card.types.d.ts +24 -0
- package/dist/components/attraction-card/base/attraction-card.types.js +1 -0
- package/dist/components/attraction-card/long/attraction-long-card.component.d.ts +10 -0
- package/dist/components/attraction-card/long/attraction-long-card.component.js +78 -0
- package/dist/components/attraction-card/long/attraction-long-card.d.ts +8 -0
- package/dist/components/attraction-card/long/attraction-long-card.js +6 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.js +127 -0
- package/dist/components/attraction-card/short/attraction-short-card.component.d.ts +10 -0
- package/dist/components/attraction-card/short/attraction-short-card.component.js +75 -0
- package/dist/components/attraction-card/short/attraction-short-card.d.ts +8 -0
- package/dist/components/attraction-card/short/attraction-short-card.js +6 -0
- package/dist/components/attraction-card/short/attraction-short-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/short/attraction-short-card.styles.js +66 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +10 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +43 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +8 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +6 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts +2 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +23 -0
- package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +10 -0
- package/dist/components/attraction-discovery/attraction-discovery.component.js +52 -0
- package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +4 -0
- package/dist/components/attraction-discovery/attraction-discovery.constants.js +5 -0
- package/dist/components/attraction-discovery/attraction-discovery.d.ts +8 -0
- package/dist/components/attraction-discovery/attraction-discovery.js +6 -0
- package/dist/components/attraction-discovery/attraction-discovery.styles.d.ts +2 -0
- package/dist/components/attraction-discovery/attraction-discovery.styles.js +193 -0
- package/dist/components/attraction-header/attraction-header.component.d.ts +31 -0
- package/dist/components/attraction-header/attraction-header.component.js +69 -0
- package/dist/components/attraction-header/attraction-header.d.ts +8 -0
- package/dist/components/attraction-header/attraction-header.js +6 -0
- package/dist/components/attraction-header/attraction-header.styles.d.ts +2 -0
- package/dist/components/attraction-header/attraction-header.styles.js +41 -0
- package/dist/components/attraction-header/attraction-header.utils.d.ts +20 -0
- package/dist/components/attraction-header/attraction-header.utils.js +37 -0
- package/dist/components/attraction-option/attraction-option.component.d.ts +11 -0
- package/dist/components/attraction-option/attraction-option.component.js +82 -0
- package/dist/components/attraction-option/attraction-option.d.ts +8 -0
- package/dist/components/attraction-option/attraction-option.js +6 -0
- package/dist/components/attraction-option/attraction-option.styles.d.ts +2 -0
- package/dist/components/attraction-option/attraction-option.styles.js +132 -0
- package/dist/components/basket/basket.component.d.ts +28 -0
- package/dist/components/basket/basket.component.js +162 -0
- package/dist/components/basket/basket.d.ts +8 -0
- package/dist/components/basket/basket.js +6 -0
- package/dist/components/basket/basket.styles.d.ts +2 -0
- package/dist/components/basket/basket.styles.js +196 -0
- package/dist/components/basket-empty/basket-empty.component.d.ts +5 -0
- package/dist/components/basket-empty/basket-empty.component.js +24 -0
- package/dist/components/basket-empty/basket-empty.d.ts +8 -0
- package/dist/components/basket-empty/basket-empty.js +6 -0
- package/dist/components/basket-empty/basket-empty.styles.d.ts +2 -0
- package/dist/components/basket-empty/basket-empty.styles.js +39 -0
- package/dist/components/basket-item/basket-item.component.d.ts +27 -0
- package/dist/components/basket-item/basket-item.component.js +153 -0
- package/dist/components/basket-item/basket-item.d.ts +8 -0
- package/dist/components/basket-item/basket-item.js +6 -0
- package/dist/components/basket-item/basket-item.styles.d.ts +2 -0
- package/dist/components/basket-item/basket-item.styles.js +178 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.component.d.ts +9 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.component.js +57 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.d.ts +8 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.js +6 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.styles.d.ts +2 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.styles.js +59 -0
- package/dist/components/basket-mobile/basket-mobile.component.d.ts +10 -0
- package/dist/components/basket-mobile/basket-mobile.component.js +59 -0
- package/dist/components/basket-mobile/basket-mobile.d.ts +8 -0
- package/dist/components/basket-mobile/basket-mobile.js +6 -0
- package/dist/components/basket-mobile/basket-mobile.styles.d.ts +2 -0
- package/dist/components/basket-mobile/basket-mobile.styles.js +71 -0
- package/dist/components/basket-rewards/basket-rewards.component.d.ts +10 -0
- package/dist/components/basket-rewards/basket-rewards.component.js +52 -0
- package/dist/components/basket-rewards/basket-rewards.d.ts +8 -0
- package/dist/components/basket-rewards/basket-rewards.js +6 -0
- package/dist/components/basket-rewards/basket-rewards.styles.d.ts +2 -0
- package/dist/components/basket-rewards/basket-rewards.styles.js +18 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.d.ts +10 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.js +17 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.d.ts +8 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.js +6 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.d.ts +2 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.js +16 -0
- package/dist/components/better-carousel/better-carousel.component.d.ts +94 -0
- package/dist/components/better-carousel/better-carousel.component.js +335 -0
- package/dist/components/better-carousel/better-carousel.d.ts +8 -0
- package/dist/components/better-carousel/better-carousel.js +6 -0
- package/dist/components/better-carousel/better-carousel.styles.d.ts +2 -0
- package/dist/components/better-carousel/better-carousel.styles.js +159 -0
- package/dist/components/bottom-drawer/bottom-drawer.component.d.ts +27 -0
- package/dist/components/bottom-drawer/bottom-drawer.component.js +210 -0
- package/dist/components/bottom-drawer/bottom-drawer.d.ts +8 -0
- package/dist/components/bottom-drawer/bottom-drawer.js +6 -0
- package/dist/components/bottom-drawer/bottom-drawer.styles.d.ts +2 -0
- package/dist/components/bottom-drawer/bottom-drawer.styles.js +88 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +35 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +48 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.js +28 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +8 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +6 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +14 -0
- package/dist/components/button/button.component.d.ts +29 -0
- package/dist/components/button/button.component.js +156 -0
- package/dist/components/button/button.constants.d.ts +5 -0
- package/dist/components/button/button.constants.js +11 -0
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.js +6 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +356 -0
- package/dist/components/calendar/base/calendar.mixin.d.ts +3 -0
- package/dist/components/calendar/base/calendar.mixin.js +231 -0
- package/dist/components/calendar/base/calendar.styles.d.ts +2 -0
- package/dist/components/calendar/base/calendar.styles.js +122 -0
- package/dist/components/calendar/base/calendar.types.d.ts +21 -0
- package/dist/components/calendar/base/calendar.types.js +1 -0
- package/dist/components/calendar/dual/dual.component.d.ts +11 -0
- package/dist/components/calendar/dual/dual.component.js +93 -0
- package/dist/components/calendar/dual/dual.d.ts +8 -0
- package/dist/components/calendar/dual/dual.js +6 -0
- package/dist/components/calendar/dual/dual.styles.d.ts +2 -0
- package/dist/components/calendar/dual/dual.styles.js +13 -0
- package/dist/components/calendar/month/month.component.d.ts +14 -0
- package/dist/components/calendar/month/month.component.js +83 -0
- package/dist/components/calendar/month/month.d.ts +8 -0
- package/dist/components/calendar/month/month.js +6 -0
- package/dist/components/calendar/month/month.styles.d.ts +2 -0
- package/dist/components/calendar/month/month.styles.js +5 -0
- package/dist/components/calendar/multi/multi.component.d.ts +9 -0
- package/dist/components/calendar/multi/multi.component.js +59 -0
- package/dist/components/calendar/multi/multi.d.ts +8 -0
- package/dist/components/calendar/multi/multi.js +6 -0
- package/dist/components/calendar/multi/multi.styles.d.ts +2 -0
- package/dist/components/calendar/multi/multi.styles.js +23 -0
- package/dist/components/carousel/carousel-item/carousel-item.component.d.ts +18 -0
- package/dist/components/carousel/carousel-item/carousel-item.component.js +84 -0
- package/dist/components/carousel/carousel-item/carousel-item.constants.d.ts +4 -0
- package/dist/components/carousel/carousel-item/carousel-item.constants.js +5 -0
- package/dist/components/carousel/carousel-item/carousel-item.d.ts +8 -0
- package/dist/components/carousel/carousel-item/carousel-item.js +6 -0
- package/dist/components/carousel/carousel-item/carousel-item.styles.d.ts +2 -0
- package/dist/components/carousel/carousel-item/carousel-item.styles.js +86 -0
- package/dist/components/carousel/carousel.component.d.ts +24 -0
- package/dist/components/carousel/carousel.component.js +132 -0
- package/dist/components/carousel/carousel.d.ts +8 -0
- package/dist/components/carousel/carousel.js +6 -0
- package/dist/components/carousel/carousel.styles.d.ts +2 -0
- package/dist/components/carousel/carousel.styles.js +72 -0
- package/dist/components/categories-tree/categories-tree.component.d.ts +15 -0
- package/dist/components/categories-tree/categories-tree.component.js +202 -0
- package/dist/components/categories-tree/categories-tree.d.ts +8 -0
- package/dist/components/categories-tree/categories-tree.js +6 -0
- package/dist/components/categories-tree/categories-tree.styles.d.ts +2 -0
- package/dist/components/categories-tree/categories-tree.styles.js +14 -0
- package/dist/components/category-tag/category-tag.component.d.ts +12 -0
- package/dist/components/category-tag/category-tag.component.js +78 -0
- package/dist/components/category-tag/category-tag.d.ts +8 -0
- package/dist/components/category-tag/category-tag.js +6 -0
- package/dist/components/category-tag/category-tag.styles.d.ts +2 -0
- package/dist/components/category-tag/category-tag.styles.js +99 -0
- package/dist/components/category-tag/category-tag.types.d.ts +8 -0
- package/dist/components/category-tag/category-tag.types.js +1 -0
- package/dist/components/checkbox/checkbox.component.d.ts +13 -0
- package/dist/components/checkbox/checkbox.component.js +68 -0
- package/dist/components/checkbox/checkbox.constants.d.ts +5 -0
- package/dist/components/checkbox/checkbox.constants.js +6 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +6 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +129 -0
- package/dist/components/checkbox-group/checkbox-group.component.d.ts +6 -0
- package/dist/components/checkbox-group/checkbox-group.component.js +14 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/checkbox-group.js +6 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +40 -0
- package/dist/components/checkbox-group/checkbox-group.types.d.ts +12 -0
- package/dist/components/checkbox-group/checkbox-group.types.js +1 -0
- package/dist/components/chip/chip.component.d.ts +11 -0
- package/dist/components/chip/chip.component.js +53 -0
- package/dist/components/chip/chip.constants.d.ts +1 -0
- package/dist/components/chip/chip.constants.js +1 -0
- package/dist/components/chip/chip.d.ts +8 -0
- package/dist/components/chip/chip.js +6 -0
- package/dist/components/chip/chip.styles.d.ts +2 -0
- package/dist/components/chip/chip.styles.js +103 -0
- package/dist/components/collect-fida/collect-fida.component.d.ts +11 -0
- package/dist/components/collect-fida/collect-fida.component.js +75 -0
- package/dist/components/collect-fida/collect-fida.d.ts +8 -0
- package/dist/components/collect-fida/collect-fida.js +6 -0
- package/dist/components/collect-fida/collect-fida.styles.d.ts +2 -0
- package/dist/components/collect-fida/collect-fida.styles.js +95 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +162 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +570 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.d.ts +8 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.js +6 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.d.ts +2 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.js +141 -0
- package/dist/components/currencies-list/currencies-list.component.d.ts +15 -0
- package/dist/components/currencies-list/currencies-list.component.js +50 -0
- package/dist/components/currencies-list/currencies-list.d.ts +8 -0
- package/dist/components/currencies-list/currencies-list.js +6 -0
- package/dist/components/currencies-list/currencies-list.styles.d.ts +2 -0
- package/dist/components/currencies-list/currencies-list.styles.js +5 -0
- package/dist/components/dialog/dialog.component.d.ts +69 -0
- package/dist/components/dialog/dialog.component.js +373 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +6 -0
- package/dist/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.styles.js +264 -0
- package/dist/components/drawer/drawer.component.d.ts +12 -0
- package/dist/components/drawer/drawer.component.js +89 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +6 -0
- package/dist/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.styles.js +129 -0
- package/dist/components/dropdown/dropdown.component.d.ts +25 -0
- package/dist/components/dropdown/dropdown.component.js +204 -0
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.js +6 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.styles.js +60 -0
- package/dist/components/expiration-timer/expiration-timer.component.d.ts +12 -0
- package/dist/components/expiration-timer/expiration-timer.component.js +52 -0
- package/dist/components/expiration-timer/expiration-timer.d.ts +8 -0
- package/dist/components/expiration-timer/expiration-timer.js +6 -0
- package/dist/components/expiration-timer/expiration-timer.styles.d.ts +2 -0
- package/dist/components/expiration-timer/expiration-timer.styles.js +37 -0
- package/dist/components/explore-card/explore-card.component.d.ts +11 -0
- package/dist/components/explore-card/explore-card.component.js +48 -0
- package/dist/components/explore-card/explore-card.constants.d.ts +4 -0
- package/dist/components/explore-card/explore-card.constants.js +5 -0
- package/dist/components/explore-card/explore-card.d.ts +8 -0
- package/dist/components/explore-card/explore-card.js +6 -0
- package/dist/components/explore-card/explore-card.styles.d.ts +2 -0
- package/dist/components/explore-card/explore-card.styles.js +71 -0
- package/dist/components/filter-chip/filter-chip.component.d.ts +12 -0
- package/dist/components/filter-chip/filter-chip.component.js +68 -0
- package/dist/components/filter-chip/filter-chip.constants.d.ts +2 -0
- package/dist/components/filter-chip/filter-chip.constants.js +2 -0
- package/dist/components/filter-chip/filter-chip.d.ts +8 -0
- package/dist/components/filter-chip/filter-chip.js +6 -0
- package/dist/components/filter-chip/filter-chip.styles.d.ts +2 -0
- package/dist/components/filter-chip/filter-chip.styles.js +160 -0
- package/dist/components/filters-drawer/filters-drawer.component.d.ts +9 -0
- package/dist/components/filters-drawer/filters-drawer.component.js +55 -0
- package/dist/components/filters-drawer/filters-drawer.d.ts +8 -0
- package/dist/components/filters-drawer/filters-drawer.js +6 -0
- package/dist/components/filters-drawer/filters-drawer.styles.d.ts +2 -0
- package/dist/components/filters-drawer/filters-drawer.styles.js +60 -0
- package/dist/components/flag-icon/flag-icon.component.d.ts +9 -0
- package/dist/components/flag-icon/flag-icon.component.js +45 -0
- package/dist/components/flag-icon/flag-icon.constants.d.ts +1 -0
- package/dist/components/flag-icon/flag-icon.constants.js +371 -0
- package/dist/components/flag-icon/flag-icon.d.ts +8 -0
- package/dist/components/flag-icon/flag-icon.js +6 -0
- package/dist/components/flag-icon/flag-icon.styles.d.ts +2 -0
- package/dist/components/flag-icon/flag-icon.styles.js +16 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.js +40 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.js +6 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.d.ts +2 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.js +55 -0
- package/dist/components/footer-menu/footer-menu.component.d.ts +5 -0
- package/dist/components/footer-menu/footer-menu.component.js +17 -0
- package/dist/components/footer-menu/footer-menu.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu.js +6 -0
- package/dist/components/footer-menu/footer-menu.styles.d.ts +2 -0
- package/dist/components/footer-menu/footer-menu.styles.js +47 -0
- package/dist/components/icon/icon.component.d.ts +14 -0
- package/dist/components/icon/icon.component.js +104 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.js +6 -0
- package/dist/components/icon/icon.styles.d.ts +2 -0
- package/dist/components/icon/icon.styles.js +43 -0
- package/dist/components/icon/icon.types.d.ts +2 -0
- package/dist/components/icon/icon.types.js +1 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.d.ts +8 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.js +42 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.d.ts +8 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.js +6 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.styles.d.ts +2 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.styles.js +23 -0
- package/dist/components/icon-list/icon-list.component.d.ts +5 -0
- package/dist/components/icon-list/icon-list.component.js +12 -0
- package/dist/components/icon-list/icon-list.d.ts +8 -0
- package/dist/components/icon-list/icon-list.js +6 -0
- package/dist/components/icon-list/icon-list.styles.d.ts +2 -0
- package/dist/components/icon-list/icon-list.styles.js +15 -0
- package/dist/components/image/image.component.d.ts +83 -0
- package/dist/components/image/image.component.js +301 -0
- package/dist/components/image/image.d.ts +8 -0
- package/dist/components/image/image.js +6 -0
- package/dist/components/image/image.styles.d.ts +2 -0
- package/dist/components/image/image.styles.js +88 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +10 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +43 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +6 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +2 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +28 -0
- package/dist/components/image-carousel/image-carousel.component.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel.component.js +36 -0
- package/dist/components/image-carousel/image-carousel.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel.js +6 -0
- package/dist/components/image-carousel/image-carousel.styles.d.ts +2 -0
- package/dist/components/image-carousel/image-carousel.styles.js +72 -0
- package/dist/components/image-chip/image-chip.component.d.ts +8 -0
- package/dist/components/image-chip/image-chip.component.js +33 -0
- package/dist/components/image-chip/image-chip.d.ts +8 -0
- package/dist/components/image-chip/image-chip.js +6 -0
- package/dist/components/image-chip/image-chip.styles.d.ts +2 -0
- package/dist/components/image-chip/image-chip.styles.js +43 -0
- package/dist/components/image-viewer/image-viewer.component.d.ts +49 -0
- package/dist/components/image-viewer/image-viewer.component.js +193 -0
- package/dist/components/image-viewer/image-viewer.d.ts +8 -0
- package/dist/components/image-viewer/image-viewer.js +6 -0
- package/dist/components/image-viewer/image-viewer.styles.d.ts +2 -0
- package/dist/components/image-viewer/image-viewer.styles.js +146 -0
- package/dist/components/input-field/input-field.component.d.ts +54 -0
- package/dist/components/input-field/input-field.component.js +331 -0
- package/dist/components/input-field/input-field.d.ts +8 -0
- package/dist/components/input-field/input-field.js +6 -0
- package/dist/components/input-field/input-field.styles.d.ts +2 -0
- package/dist/components/input-field/input-field.styles.js +274 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +9 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +45 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +8 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.js +6 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +2 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +70 -0
- package/dist/components/itinerary/itinerary.component.d.ts +7 -0
- package/dist/components/itinerary/itinerary.component.js +23 -0
- package/dist/components/itinerary/itinerary.d.ts +8 -0
- package/dist/components/itinerary/itinerary.js +6 -0
- package/dist/components/itinerary/itinerary.styles.d.ts +2 -0
- package/dist/components/itinerary/itinerary.styles.js +15 -0
- package/dist/components/joined-fields/joined-fields.component.d.ts +16 -0
- package/dist/components/joined-fields/joined-fields.component.js +93 -0
- package/dist/components/joined-fields/joined-fields.d.ts +8 -0
- package/dist/components/joined-fields/joined-fields.js +6 -0
- package/dist/components/joined-fields/joined-fields.styles.d.ts +2 -0
- package/dist/components/joined-fields/joined-fields.styles.js +101 -0
- package/dist/components/layout/layout.component.d.ts +10 -0
- package/dist/components/layout/layout.component.js +34 -0
- package/dist/components/layout/layout.d.ts +8 -0
- package/dist/components/layout/layout.js +6 -0
- package/dist/components/layout/layout.styles.d.ts +2 -0
- package/dist/components/layout/layout.styles.js +31 -0
- package/dist/components/list/list-item/list-item.component.d.ts +9 -0
- package/dist/components/list/list-item/list-item.component.js +30 -0
- package/dist/components/list/list-item/list-item.d.ts +8 -0
- package/dist/components/list/list-item/list-item.js +6 -0
- package/dist/components/list/list-item/list-item.styles.d.ts +2 -0
- package/dist/components/list/list-item/list-item.styles.js +34 -0
- package/dist/components/list/list.component.d.ts +6 -0
- package/dist/components/list/list.component.js +25 -0
- package/dist/components/list/list.d.ts +8 -0
- package/dist/components/list/list.js +6 -0
- package/dist/components/list/list.styles.d.ts +2 -0
- package/dist/components/list/list.styles.js +24 -0
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +7 -0
- package/dist/components/loading-spinner/loading-spinner.component.js +22 -0
- package/dist/components/loading-spinner/loading-spinner.d.ts +8 -0
- package/dist/components/loading-spinner/loading-spinner.js +6 -0
- package/dist/components/loading-spinner/loading-spinner.styles.d.ts +2 -0
- package/dist/components/loading-spinner/loading-spinner.styles.js +47 -0
- package/dist/components/loading-spinner/loading-spinner.types.d.ts +1 -0
- package/dist/components/loading-spinner/loading-spinner.types.js +1 -0
- package/dist/components/locales-list/locales-list.component.d.ts +17 -0
- package/dist/components/locales-list/locales-list.component.js +55 -0
- package/dist/components/locales-list/locales-list.constants.d.ts +2 -0
- package/dist/components/locales-list/locales-list.constants.js +370 -0
- package/dist/components/locales-list/locales-list.d.ts +8 -0
- package/dist/components/locales-list/locales-list.js +6 -0
- package/dist/components/locales-list/locales-list.styles.d.ts +2 -0
- package/dist/components/locales-list/locales-list.styles.js +5 -0
- package/dist/components/location-image/location-image.component.d.ts +29 -0
- package/dist/components/location-image/location-image.component.js +135 -0
- package/dist/components/location-image/location-image.d.ts +8 -0
- package/dist/components/location-image/location-image.js +6 -0
- package/dist/components/location-image/location-image.styles.d.ts +2 -0
- package/dist/components/location-image/location-image.styles.js +49 -0
- package/dist/components/locations-results/locations-results.component.d.ts +21 -0
- package/dist/components/locations-results/locations-results.component.js +83 -0
- package/dist/components/locations-results/locations-results.d.ts +8 -0
- package/dist/components/locations-results/locations-results.js +6 -0
- package/dist/components/locations-results/locations-results.styles.d.ts +2 -0
- package/dist/components/locations-results/locations-results.styles.js +64 -0
- package/dist/components/marketing-tag/marketing-tag.component.d.ts +5 -0
- package/dist/components/marketing-tag/marketing-tag.component.js +8 -0
- package/dist/components/marketing-tag/marketing-tag.d.ts +8 -0
- package/dist/components/marketing-tag/marketing-tag.js +6 -0
- package/dist/components/marketing-tag/marketing-tag.styles.d.ts +2 -0
- package/dist/components/marketing-tag/marketing-tag.styles.js +36 -0
- package/dist/components/message-card/message-card.component.d.ts +12 -0
- package/dist/components/message-card/message-card.component.js +56 -0
- package/dist/components/message-card/message-card.d.ts +8 -0
- package/dist/components/message-card/message-card.js +6 -0
- package/dist/components/message-card/message-card.styles.d.ts +2 -0
- package/dist/components/message-card/message-card.styles.js +72 -0
- package/dist/components/message-card/message-card.types.d.ts +1 -0
- package/dist/components/message-card/message-card.types.js +1 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +9 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.component.js +43 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.d.ts +8 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.js +6 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.d.ts +2 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +46 -0
- package/dist/components/option-group/option-chip/option-chip.component.d.ts +7 -0
- package/dist/components/option-group/option-chip/option-chip.component.js +35 -0
- package/dist/components/option-group/option-chip/option-chip.d.ts +8 -0
- package/dist/components/option-group/option-chip/option-chip.js +6 -0
- package/dist/components/option-group/option-chip/option-chip.styles.d.ts +2 -0
- package/dist/components/option-group/option-chip/option-chip.styles.js +45 -0
- package/dist/components/option-group/option-group.component.d.ts +6 -0
- package/dist/components/option-group/option-group.component.js +31 -0
- package/dist/components/option-group/option-group.d.ts +8 -0
- package/dist/components/option-group/option-group.js +6 -0
- package/dist/components/option-group/option-group.styles.d.ts +2 -0
- package/dist/components/option-group/option-group.styles.js +30 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.d.ts +11 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.js +81 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.d.ts +8 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.js +6 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.d.ts +2 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.js +107 -0
- package/dist/components/order-confirmation/order-confirmation.component.d.ts +12 -0
- package/dist/components/order-confirmation/order-confirmation.component.js +72 -0
- package/dist/components/order-confirmation/order-confirmation.d.ts +8 -0
- package/dist/components/order-confirmation/order-confirmation.js +6 -0
- package/dist/components/order-confirmation/order-confirmation.styles.d.ts +2 -0
- package/dist/components/order-confirmation/order-confirmation.styles.js +102 -0
- package/dist/components/otp/otp.component.d.ts +24 -0
- package/dist/components/otp/otp.component.js +148 -0
- package/dist/components/otp/otp.d.ts +8 -0
- package/dist/components/otp/otp.js +6 -0
- package/dist/components/otp/otp.styles.d.ts +2 -0
- package/dist/components/otp/otp.styles.js +87 -0
- package/dist/components/otp/otp.utils.d.ts +9 -0
- package/dist/components/otp/otp.utils.js +26 -0
- package/dist/components/overlay/overlay.component.d.ts +13 -0
- package/dist/components/overlay/overlay.component.js +52 -0
- package/dist/components/overlay/overlay.d.ts +8 -0
- package/dist/components/overlay/overlay.js +6 -0
- package/dist/components/overlay/overlay.styles.d.ts +2 -0
- package/dist/components/overlay/overlay.styles.js +39 -0
- package/dist/components/pay-in/pay-in.component.d.ts +10 -0
- package/dist/components/pay-in/pay-in.component.js +52 -0
- package/dist/components/pay-in/pay-in.d.ts +8 -0
- package/dist/components/pay-in/pay-in.js +6 -0
- package/dist/components/pay-in/pay-in.styles.d.ts +2 -0
- package/dist/components/pay-in/pay-in.styles.js +58 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.component.d.ts +16 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.component.js +63 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.d.ts +8 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.js +6 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.styles.d.ts +2 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.styles.js +38 -0
- package/dist/components/payment-option/payment-option.component.d.ts +38 -0
- package/dist/components/payment-option/payment-option.component.js +131 -0
- package/dist/components/payment-option/payment-option.d.ts +8 -0
- package/dist/components/payment-option/payment-option.js +6 -0
- package/dist/components/payment-option/payment-option.styles.d.ts +2 -0
- package/dist/components/payment-option/payment-option.styles.js +206 -0
- package/dist/components/performance-time/performance-time.component.d.ts +9 -0
- package/dist/components/performance-time/performance-time.component.js +47 -0
- package/dist/components/performance-time/performance-time.d.ts +8 -0
- package/dist/components/performance-time/performance-time.js +6 -0
- package/dist/components/performance-time/performance-time.styles.d.ts +2 -0
- package/dist/components/performance-time/performance-time.styles.js +53 -0
- package/dist/components/phone-country-code/phone-country-code.component.d.ts +13 -0
- package/dist/components/phone-country-code/phone-country-code.component.js +53 -0
- package/dist/components/phone-country-code/phone-country-code.d.ts +8 -0
- package/dist/components/phone-country-code/phone-country-code.js +6 -0
- package/dist/components/phone-country-code/phone-country-code.styles.d.ts +2 -0
- package/dist/components/phone-country-code/phone-country-code.styles.js +44 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.d.ts +11 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.js +47 -0
- package/dist/components/phone-country-codes/phone-country-codes.d.ts +8 -0
- package/dist/components/phone-country-codes/phone-country-codes.js +6 -0
- package/dist/components/phone-country-codes/phone-country-codes.styles.d.ts +2 -0
- package/dist/components/phone-country-codes/phone-country-codes.styles.js +21 -0
- package/dist/components/phone-field/phone-field.component.d.ts +53 -0
- package/dist/components/phone-field/phone-field.component.js +200 -0
- package/dist/components/phone-field/phone-field.d.ts +9 -0
- package/dist/components/phone-field/phone-field.js +7 -0
- package/dist/components/phone-field/phone-field.styles.d.ts +2 -0
- package/dist/components/phone-field/phone-field.styles.js +41 -0
- package/dist/components/phone-field/phone-field.types.d.ts +5 -0
- package/dist/components/phone-field/phone-field.types.js +1 -0
- package/dist/components/phone-field/phone-field.utils.d.ts +2 -0
- package/dist/components/phone-field/phone-field.utils.js +7 -0
- package/dist/components/points/points.component.d.ts +9 -0
- package/dist/components/points/points.component.js +36 -0
- package/dist/components/points/points.d.ts +8 -0
- package/dist/components/points/points.js +6 -0
- package/dist/components/points/points.styles.d.ts +2 -0
- package/dist/components/points/points.styles.js +47 -0
- package/dist/components/price/price.component.d.ts +12 -0
- package/dist/components/price/price.component.js +38 -0
- package/dist/components/price/price.d.ts +8 -0
- package/dist/components/price/price.js +6 -0
- package/dist/components/reservation-preview/reservation-preview.component.d.ts +11 -0
- package/dist/components/reservation-preview/reservation-preview.component.js +84 -0
- package/dist/components/reservation-preview/reservation-preview.d.ts +8 -0
- package/dist/components/reservation-preview/reservation-preview.js +6 -0
- package/dist/components/reservation-preview/reservation-preview.styles.d.ts +2 -0
- package/dist/components/reservation-preview/reservation-preview.styles.js +190 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.component.d.ts +7 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.component.js +36 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.d.ts +8 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.js +6 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.styles.d.ts +2 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.styles.js +70 -0
- package/dist/components/reviews/review/review.component.d.ts +9 -0
- package/dist/components/reviews/review/review.component.js +41 -0
- package/dist/components/reviews/review/review.d.ts +8 -0
- package/dist/components/reviews/review/review.js +6 -0
- package/dist/components/reviews/review/review.styles.d.ts +2 -0
- package/dist/components/reviews/review/review.styles.js +45 -0
- package/dist/components/reviews/reviews.component.d.ts +9 -0
- package/dist/components/reviews/reviews.component.js +56 -0
- package/dist/components/reviews/reviews.d.ts +8 -0
- package/dist/components/reviews/reviews.js +6 -0
- package/dist/components/reviews/reviews.styles.d.ts +2 -0
- package/dist/components/reviews/reviews.styles.js +73 -0
- package/dist/components/search-button/search-button.component.d.ts +8 -0
- package/dist/components/search-button/search-button.component.js +37 -0
- package/dist/components/search-button/search-button.d.ts +8 -0
- package/dist/components/search-button/search-button.js +6 -0
- package/dist/components/search-button/search-button.styles.d.ts +2 -0
- package/dist/components/search-button/search-button.styles.js +61 -0
- package/dist/components/search-results-item/search-results-item.d.ts +13 -0
- package/dist/components/search-results-item/search-results-item.js +26 -0
- package/dist/components/seated-selector/seated-selector.component.d.ts +42 -0
- package/dist/components/seated-selector/seated-selector.component.js +321 -0
- package/dist/components/seated-selector/seated-selector.d.ts +8 -0
- package/dist/components/seated-selector/seated-selector.js +6 -0
- package/dist/components/seated-selector/seated-selector.styles.d.ts +2 -0
- package/dist/components/seated-selector/seated-selector.styles.js +84 -0
- package/dist/components/seats-io/seats-io.component.d.ts +27 -0
- package/dist/components/seats-io/seats-io.component.js +162 -0
- package/dist/components/seats-io/seats-io.constants.d.ts +12 -0
- package/dist/components/seats-io/seats-io.constants.js +23 -0
- package/dist/components/seats-io/seats-io.d.ts +8 -0
- package/dist/components/seats-io/seats-io.js +6 -0
- package/dist/components/seats-io/seats-io.styles.d.ts +2 -0
- package/dist/components/seats-io/seats-io.styles.js +15 -0
- package/dist/components/seats-io/seats-io.transform.d.ts +77 -0
- package/dist/components/seats-io/seats-io.transform.js +152 -0
- package/dist/components/select-list/select-list.component.d.ts +19 -0
- package/dist/components/select-list/select-list.component.js +160 -0
- package/dist/components/select-list/select-list.d.ts +8 -0
- package/dist/components/select-list/select-list.js +6 -0
- package/dist/components/select-list/select-list.styles.d.ts +2 -0
- package/dist/components/select-list/select-list.styles.js +46 -0
- package/dist/components/select-list/select-option/select-option.component.d.ts +7 -0
- package/dist/components/select-list/select-option/select-option.component.js +28 -0
- package/dist/components/select-list/select-option/select-option.d.ts +8 -0
- package/dist/components/select-list/select-option/select-option.js +6 -0
- package/dist/components/select-list/select-option/select-option.styles.d.ts +2 -0
- package/dist/components/select-list/select-option/select-option.styles.js +52 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +10 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +51 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +8 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.js +6 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +2 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +89 -0
- package/dist/components/sort-dropdown/sort-dropdown.component.d.ts +14 -0
- package/dist/components/sort-dropdown/sort-dropdown.component.js +57 -0
- package/dist/components/sort-dropdown/sort-dropdown.d.ts +8 -0
- package/dist/components/sort-dropdown/sort-dropdown.js +6 -0
- package/dist/components/sort-dropdown/sort-dropdown.styles.d.ts +2 -0
- package/dist/components/sort-dropdown/sort-dropdown.styles.js +22 -0
- package/dist/components/sort-list/sort-list.component.d.ts +7 -0
- package/dist/components/sort-list/sort-list.component.js +25 -0
- package/dist/components/sort-list/sort-list.d.ts +8 -0
- package/dist/components/sort-list/sort-list.js +6 -0
- package/dist/components/sort-list/sort-list.styles.d.ts +2 -0
- package/dist/components/sort-list/sort-list.styles.js +17 -0
- package/dist/components/sport-options/sport-option/sport-option.component.d.ts +10 -0
- package/dist/components/sport-options/sport-option/sport-option.component.js +57 -0
- package/dist/components/sport-options/sport-option/sport-option.d.ts +8 -0
- package/dist/components/sport-options/sport-option/sport-option.js +6 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.d.ts +2 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.js +156 -0
- package/dist/components/sport-options/sport-options.component.d.ts +6 -0
- package/dist/components/sport-options/sport-options.component.js +27 -0
- package/dist/components/sport-options/sport-options.d.ts +8 -0
- package/dist/components/sport-options/sport-options.js +6 -0
- package/dist/components/sport-options/sport-options.styles.d.ts +2 -0
- package/dist/components/sport-options/sport-options.styles.js +33 -0
- package/dist/components/star-rating/star-rating.component.d.ts +15 -0
- package/dist/components/star-rating/star-rating.component.js +77 -0
- package/dist/components/star-rating/star-rating.d.ts +8 -0
- package/dist/components/star-rating/star-rating.js +6 -0
- package/dist/components/star-rating/star-rating.styles.d.ts +2 -0
- package/dist/components/star-rating/star-rating.styles.js +49 -0
- package/dist/components/tab/tab.component.d.ts +12 -0
- package/dist/components/tab/tab.component.js +52 -0
- package/dist/components/tab/tab.constants.d.ts +4 -0
- package/dist/components/tab/tab.constants.js +5 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +6 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +50 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +9 -0
- package/dist/components/tab-panel/tab-panel.component.js +35 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +6 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.styles.js +23 -0
- package/dist/components/tabs/tabs.component.d.ts +19 -0
- package/dist/components/tabs/tabs.component.js +87 -0
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/tabs/tabs.styles.d.ts +2 -0
- package/dist/components/tabs/tabs.styles.js +32 -0
- package/dist/components/tag/tag.component.d.ts +8 -0
- package/dist/components/tag/tag.component.js +33 -0
- package/dist/components/tag/tag.constants.d.ts +1 -0
- package/dist/components/tag/tag.constants.js +1 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +6 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +56 -0
- package/dist/components/text-section/text-section.component.d.ts +6 -0
- package/dist/components/text-section/text-section.component.js +31 -0
- package/dist/components/text-section/text-section.d.ts +8 -0
- package/dist/components/text-section/text-section.js +6 -0
- package/dist/components/text-section/text-section.styles.d.ts +2 -0
- package/dist/components/text-section/text-section.styles.js +94 -0
- package/dist/components/time-tag/time-tag.component.d.ts +14 -0
- package/dist/components/time-tag/time-tag.component.js +58 -0
- package/dist/components/time-tag/time-tag.d.ts +8 -0
- package/dist/components/time-tag/time-tag.js +6 -0
- package/dist/components/time-tag/time-tag.styles.d.ts +2 -0
- package/dist/components/time-tag/time-tag.styles.js +41 -0
- package/dist/components/tooltip/tooltip.component.d.ts +19 -0
- package/dist/components/tooltip/tooltip.component.js +124 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +6 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/components/tooltip/tooltip.styles.js +79 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.d.ts +9 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.js +36 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.js +35 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.d.ts +9 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.js +47 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.js +78 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.d.ts +13 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.js +74 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.js +40 -0
- package/dist/components/transfer-modal/transfer-modal.component.d.ts +72 -0
- package/dist/components/transfer-modal/transfer-modal.component.js +297 -0
- package/dist/components/transfer-modal/transfer-modal.d.ts +8 -0
- package/dist/components/transfer-modal/transfer-modal.js +6 -0
- package/dist/components/transfer-modal/transfer-modal.styles.d.ts +2 -0
- package/dist/components/transfer-modal/transfer-modal.styles.js +141 -0
- package/dist/containers/basket/basket.component.d.ts +25 -0
- package/dist/containers/basket/basket.component.js +257 -0
- package/dist/containers/basket/basket.d.ts +8 -0
- package/dist/containers/basket/basket.js +6 -0
- package/dist/containers/footer/footer.component.d.ts +8 -0
- package/dist/containers/footer/footer.component.js +65 -0
- package/dist/containers/footer/footer.d.ts +8 -0
- package/dist/containers/footer/footer.js +6 -0
- package/dist/containers/footer/footer.styles.d.ts +2 -0
- package/dist/containers/footer/footer.styles.js +31 -0
- package/dist/containers/navbar/navbar.component.d.ts +102 -0
- package/dist/containers/navbar/navbar.component.js +727 -0
- package/dist/containers/navbar/navbar.d.ts +8 -0
- package/dist/containers/navbar/navbar.js +6 -0
- package/dist/containers/navbar/navbar.styles.d.ts +2 -0
- package/dist/containers/navbar/navbar.styles.js +257 -0
- package/dist/containers/navbar/navbar.utils.d.ts +12 -0
- package/dist/containers/navbar/navbar.utils.js +40 -0
- package/dist/contexts/basket/basket.context.d.ts +4 -0
- package/dist/contexts/basket/basket.context.js +2 -0
- package/dist/contexts/basket/basket.d.ts +8 -0
- package/dist/contexts/basket/basket.js +6 -0
- package/dist/contexts/basket/basket.provider.d.ts +30 -0
- package/dist/contexts/basket/basket.provider.js +218 -0
- package/dist/contexts/basket/basket.styles.d.ts +2 -0
- package/dist/contexts/basket/basket.styles.js +9 -0
- package/dist/contexts/basket/basket.types.d.ts +18 -0
- package/dist/contexts/basket/basket.types.js +1 -0
- package/dist/contexts/client.context.d.ts +5 -0
- package/dist/contexts/client.context.js +2 -0
- package/dist/contexts/current-page.context.d.ts +4 -0
- package/dist/contexts/current-page.context.js +2 -0
- package/dist/contexts/events.context.d.ts +33 -0
- package/dist/contexts/events.context.js +2 -0
- package/dist/contexts/pages.context.d.ts +25 -0
- package/dist/contexts/pages.context.js +1 -0
- package/dist/contexts/properties.context.d.ts +24 -0
- package/dist/contexts/properties.context.js +9 -0
- package/dist/contexts/types.d.ts +16 -0
- package/dist/contexts/types.js +1 -0
- package/dist/contexts/utils.d.ts +1 -0
- package/dist/contexts/utils.js +1 -0
- package/dist/controllers/time-expiration.d.ts +11 -0
- package/dist/controllers/time-expiration.js +31 -0
- package/dist/core/api/api-error.d.ts +20 -0
- package/dist/core/api/api-error.js +27 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.js +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.d.ts +2 -0
- package/dist/core/api/middlewares/booking-session/booking-session.js +56 -0
- package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.utils.js +70 -0
- package/dist/core/api/middlewares/error-handler/error-handler.d.ts +6 -0
- package/dist/core/api/middlewares/error-handler/error-handler.js +27 -0
- package/dist/core/api/queries.d.ts +74 -0
- package/dist/core/api/queries.js +120 -0
- package/dist/core/constants/api-version.d.ts +1 -0
- package/dist/core/constants/api-version.js +1 -0
- package/dist/core/currency/constants.d.ts +5 -0
- package/dist/core/currency/constants.js +101 -0
- package/dist/core/currency/index.d.ts +12 -0
- package/dist/core/currency/index.js +6 -0
- package/dist/core/events.d.ts +196 -0
- package/dist/core/events.js +46 -0
- package/dist/core/i18n/date.d.ts +7 -0
- package/dist/core/i18n/date.js +65 -0
- package/dist/core/i18n/locale-codes.d.ts +13 -0
- package/dist/core/i18n/locale-codes.js +52 -0
- package/dist/core/i18n/localization.d.ts +5 -0
- package/dist/core/i18n/localization.js +15 -0
- package/dist/core/images/constants.d.ts +7 -0
- package/dist/core/images/constants.js +7 -0
- package/dist/core/images/filters.d.ts +28 -0
- package/dist/core/images/filters.js +51 -0
- package/dist/core/images/helpers.d.ts +12 -0
- package/dist/core/images/helpers.js +14 -0
- package/dist/core/images/preset-adapter.d.ts +23 -0
- package/dist/core/images/preset-adapter.js +52 -0
- package/dist/core/images/selection.d.ts +45 -0
- package/dist/core/images/selection.js +125 -0
- package/dist/core/images/srcset.d.ts +28 -0
- package/dist/core/images/srcset.js +52 -0
- package/dist/core/images/url.d.ts +23 -0
- package/dist/core/images/url.js +40 -0
- package/dist/core/pages.d.ts +68 -0
- package/dist/core/pages.js +1 -0
- package/dist/core/signals.d.ts +2 -0
- package/dist/core/signals.js +3 -0
- package/dist/core/storybook/argTypes.d.ts +1 -0
- package/dist/core/storybook/argTypes.js +46 -0
- package/dist/core/storybook/cssprops.d.ts +30 -0
- package/dist/core/storybook/cssprops.js +46 -0
- package/dist/core/types/api-errors.d.ts +8 -0
- package/dist/core/types/api-errors.js +1 -0
- package/dist/core/types/basket.d.ts +18 -0
- package/dist/core/types/basket.js +1 -0
- package/dist/core/types/core/base.d.ts +11 -0
- package/dist/core/types/core/base.js +1 -0
- package/dist/core/types/core/category.d.ts +2 -0
- package/dist/core/types/core/category.js +1 -0
- package/dist/core/types/core/currency.d.ts +2 -0
- package/dist/core/types/core/currency.js +1 -0
- package/dist/core/types/core/index.d.ts +6 -0
- package/dist/core/types/core/index.js +1 -0
- package/dist/core/types/core/locale.d.ts +2 -0
- package/dist/core/types/core/locale.js +1 -0
- package/dist/core/types/core/points.d.ts +4 -0
- package/dist/core/types/core/points.js +1 -0
- package/dist/core/types/core/rating.d.ts +1 -0
- package/dist/core/types/core/rating.js +1 -0
- package/dist/core/types/core/sorting.d.ts +2 -0
- package/dist/core/types/core/sorting.js +1 -0
- package/dist/core/types/currencies.d.ts +2 -0
- package/dist/core/types/currencies.js +1 -0
- package/dist/core/types/index.d.ts +6 -0
- package/dist/core/types/index.js +1 -0
- package/dist/core/types/locales.d.ts +4 -0
- package/dist/core/types/locales.js +1 -0
- package/dist/core/types/seats-config.d.ts +13 -0
- package/dist/core/types/seats-config.js +9 -0
- package/dist/core/types/shared.d.ts +1 -0
- package/dist/core/types/shared.js +1 -0
- package/dist/core/utils/datetime.d.ts +77 -0
- package/dist/core/utils/datetime.js +153 -0
- package/dist/core/utils/function.d.ts +4 -0
- package/dist/core/utils/function.js +22 -0
- package/dist/core/utils/html.d.ts +28 -0
- package/dist/core/utils/html.js +78 -0
- package/dist/core/utils/locale.d.ts +3 -0
- package/dist/core/utils/locale.js +3 -0
- package/dist/core/utils/scroll-lock.d.ts +50 -0
- package/dist/core/utils/scroll-lock.js +121 -0
- package/dist/core/utils/text.d.ts +9 -0
- package/dist/core/utils/text.js +50 -0
- package/dist/core/utils/time.d.ts +2 -0
- package/dist/core/utils/time.js +10 -0
- package/dist/custom-elements.json +37289 -0
- package/dist/errors.d.ts +3 -0
- package/dist/errors.js +5 -0
- package/dist/helpers/helpers.d.ts +5 -0
- package/dist/helpers/helpers.js +31 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +14 -0
- package/dist/locales/da-DK.d.ts +261 -0
- package/dist/locales/da-DK.js +273 -0
- package/dist/locales/de-DE.d.ts +261 -0
- package/dist/locales/de-DE.js +273 -0
- package/dist/locales/en-IE.d.ts +261 -0
- package/dist/locales/en-IE.js +273 -0
- package/dist/locales/en-US.d.ts +261 -0
- package/dist/locales/en-US.js +273 -0
- package/dist/locales/es-ES.d.ts +261 -0
- package/dist/locales/es-ES.js +273 -0
- package/dist/locales/fr-FR.d.ts +261 -0
- package/dist/locales/fr-FR.js +273 -0
- package/dist/locales/fr-MA.d.ts +261 -0
- package/dist/locales/fr-MA.js +273 -0
- package/dist/locales/is-IS.d.ts +261 -0
- package/dist/locales/is-IS.js +273 -0
- package/dist/locales/it-IT.d.ts +261 -0
- package/dist/locales/it-IT.js +273 -0
- package/dist/locales/ms-MY.d.ts +261 -0
- package/dist/locales/ms-MY.js +273 -0
- package/dist/locales/nb-NO.d.ts +261 -0
- package/dist/locales/nb-NO.js +273 -0
- package/dist/locales/pl-PL.d.ts +261 -0
- package/dist/locales/pl-PL.js +273 -0
- package/dist/locales/pt-PT.d.ts +261 -0
- package/dist/locales/pt-PT.js +273 -0
- package/dist/locales/sv-SE.d.ts +261 -0
- package/dist/locales/sv-SE.js +273 -0
- package/dist/locales/th-TH.d.ts +261 -0
- package/dist/locales/th-TH.js +273 -0
- package/dist/locales/tr-TR.d.ts +261 -0
- package/dist/locales/tr-TR.js +273 -0
- package/dist/locales/zh-CN.d.ts +261 -0
- package/dist/locales/zh-CN.js +273 -0
- package/dist/mixins/base.mixin.d.ts +22 -0
- package/dist/mixins/base.mixin.js +120 -0
- package/dist/mixins/coinbase.mixin.d.ts +70 -0
- package/dist/mixins/coinbase.mixin.js +979 -0
- package/dist/mixins/error-modal.mixin.d.ts +16 -0
- package/dist/mixins/error-modal.mixin.js +108 -0
- package/dist/mixins/error-modal.styles.d.ts +2 -0
- package/dist/mixins/error-modal.styles.js +81 -0
- package/dist/mixins/location-search/location-search.d.ts +7 -0
- package/dist/mixins/location-search/location-search.js +334 -0
- package/dist/mixins/location-search/location-search.styles.d.ts +2 -0
- package/dist/mixins/location-search/location-search.styles.js +80 -0
- package/dist/mixins/location-search/types.d.ts +10 -0
- package/dist/mixins/location-search/types.js +1 -0
- package/dist/mixins/overlay/overlay-mixin.d.ts +4 -0
- package/dist/mixins/overlay/overlay-mixin.js +86 -0
- package/dist/mixins/overlay/types.d.ts +8 -0
- package/dist/mixins/overlay/types.js +1 -0
- package/dist/mixins/points/points.d.ts +3 -0
- package/dist/mixins/points/points.js +30 -0
- package/dist/mixins/points/types.d.ts +8 -0
- package/dist/mixins/points/types.js +1 -0
- package/dist/mixins/search-mixin/search-mixin.d.ts +4 -0
- package/dist/mixins/search-mixin/search-mixin.js +66 -0
- package/dist/mixins/search-mixin/types.d.ts +7 -0
- package/dist/mixins/search-mixin/types.js +1 -0
- package/dist/sdk/chrome.d.ts +10 -0
- package/dist/sdk/chrome.js +83 -0
- package/dist/sdk/element-adapter.d.ts +16 -0
- package/dist/sdk/element-adapter.js +60 -0
- package/dist/sdk/meta.d.ts +7 -0
- package/dist/sdk/meta.js +9 -0
- package/dist/sdk/mount.d.ts +19 -0
- package/dist/sdk/mount.js +289 -0
- package/dist/sdk/navigation-intent.d.ts +34 -0
- package/dist/sdk/navigation-intent.js +28 -0
- package/dist/sdk/page-registry.d.ts +32 -0
- package/dist/sdk/page-registry.js +84 -0
- package/dist/sdk/redaction.d.ts +11 -0
- package/dist/sdk/redaction.js +61 -0
- package/dist/sdk/theme.d.ts +19 -0
- package/dist/sdk/theme.js +75 -0
- package/dist/sdk/types.d.ts +258 -0
- package/dist/sdk/types.js +1 -0
- package/dist/sdk/url.d.ts +47 -0
- package/dist/sdk/url.js +199 -0
- package/dist/sdk/validation.d.ts +50 -0
- package/dist/sdk/validation.js +318 -0
- package/dist/styles/contrast-fixtures.d.ts +10 -0
- package/dist/styles/contrast-fixtures.js +61 -0
- package/dist/styles/contrast.d.ts +19 -0
- package/dist/styles/contrast.js +100 -0
- package/dist/styles/defaults/component.d.ts +2 -0
- package/dist/styles/defaults/component.js +31 -0
- package/dist/styles/primitives.d.ts +14 -0
- package/dist/styles/primitives.js +68 -0
- package/dist/styles/tokens.css +359 -0
- package/dist/styles/tokens.d.ts +18 -0
- package/dist/styles/tokens.generated.d.ts +1 -0
- package/dist/styles/tokens.generated.js +4 -0
- package/dist/styles/tokens.js +54 -0
- package/dist/styles/tokens.metadata.d.ts +14 -0
- package/dist/styles/tokens.metadata.js +210 -0
- package/dist/views/constants.d.ts +3 -0
- package/dist/views/constants.js +2 -0
- package/dist/views/details-page/details-page.component.d.ts +129 -0
- package/dist/views/details-page/details-page.component.js +1567 -0
- package/dist/views/details-page/details-page.d.ts +8 -0
- package/dist/views/details-page/details-page.js +6 -0
- package/dist/views/details-page/details-page.styles.d.ts +2 -0
- package/dist/views/details-page/details-page.styles.js +558 -0
- package/dist/views/details-page/details-page.utilts.d.ts +40 -0
- package/dist/views/details-page/details-page.utilts.js +188 -0
- package/dist/views/details-page/partials/theater-description/theater-description.component.d.ts +13 -0
- package/dist/views/details-page/partials/theater-description/theater-description.component.js +76 -0
- package/dist/views/details-page/partials/theater-description/theater-description.d.ts +8 -0
- package/dist/views/details-page/partials/theater-description/theater-description.js +6 -0
- package/dist/views/details-page/partials/theater-description/theater-description.styles.d.ts +2 -0
- package/dist/views/details-page/partials/theater-description/theater-description.styles.js +19 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.d.ts +20 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.js +155 -0
- package/dist/views/details-page/partials/tour-description/tour-description.d.ts +8 -0
- package/dist/views/details-page/partials/tour-description/tour-description.js +6 -0
- package/dist/views/details-page/partials/tour-description/tour-description.styles.d.ts +2 -0
- package/dist/views/details-page/partials/tour-description/tour-description.styles.js +11 -0
- package/dist/views/help-page/help-page.component.d.ts +74 -0
- package/dist/views/help-page/help-page.component.js +594 -0
- package/dist/views/help-page/help-page.d.ts +8 -0
- package/dist/views/help-page/help-page.fields.d.ts +12 -0
- package/dist/views/help-page/help-page.fields.js +46 -0
- package/dist/views/help-page/help-page.js +6 -0
- package/dist/views/help-page/help-page.styles.d.ts +2 -0
- package/dist/views/help-page/help-page.styles.js +218 -0
- package/dist/views/help-page/help-page.types.d.ts +36 -0
- package/dist/views/help-page/help-page.types.js +1 -0
- package/dist/views/help-page/help-page.utils.d.ts +3 -0
- package/dist/views/help-page/help-page.utils.js +29 -0
- package/dist/views/help-page/help-page.validators.d.ts +7 -0
- package/dist/views/help-page/help-page.validators.js +22 -0
- package/dist/views/landing-page/landing-page.component.d.ts +127 -0
- package/dist/views/landing-page/landing-page.component.js +1003 -0
- package/dist/views/landing-page/landing-page.constants.d.ts +1 -0
- package/dist/views/landing-page/landing-page.constants.js +1 -0
- package/dist/views/landing-page/landing-page.d.ts +8 -0
- package/dist/views/landing-page/landing-page.js +6 -0
- package/dist/views/landing-page/landing-page.styles.d.ts +2 -0
- package/dist/views/landing-page/landing-page.styles.js +109 -0
- package/dist/views/landing-page/landing-page.types.d.ts +7 -0
- package/dist/views/landing-page/landing-page.types.js +1 -0
- package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +71 -0
- package/dist/views/payment-page/controllers/crypto-auth.controller.js +252 -0
- package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +99 -0
- package/dist/views/payment-page/controllers/crypto-transfer.controller.js +288 -0
- package/dist/views/payment-page/controllers/form-validation.controller.d.ts +60 -0
- package/dist/views/payment-page/controllers/form-validation.controller.js +122 -0
- package/dist/views/payment-page/controllers/layout.controller.d.ts +22 -0
- package/dist/views/payment-page/controllers/layout.controller.js +43 -0
- package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +47 -0
- package/dist/views/payment-page/controllers/payment-flow.controller.js +63 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +66 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.js +202 -0
- package/dist/views/payment-page/domain/payment-mappers.d.ts +7 -0
- package/dist/views/payment-page/domain/payment-mappers.js +7 -0
- package/dist/views/payment-page/domain/payment-validators.d.ts +6 -0
- package/dist/views/payment-page/domain/payment-validators.js +6 -0
- package/dist/views/payment-page/domain/recovery-payload.d.ts +8 -0
- package/dist/views/payment-page/domain/recovery-payload.js +7 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +47 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.js +247 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.d.ts +8 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.js +6 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.styles.js +77 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +34 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.js +165 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.d.ts +8 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.js +6 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.styles.js +27 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.component.d.ts +17 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.component.js +193 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.d.ts +8 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.js +6 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.js +191 -0
- package/dist/views/payment-page/partials/country-field/country-field.component.d.ts +44 -0
- package/dist/views/payment-page/partials/country-field/country-field.component.js +260 -0
- package/dist/views/payment-page/partials/country-field/country-field.d.ts +8 -0
- package/dist/views/payment-page/partials/country-field/country-field.js +6 -0
- package/dist/views/payment-page/partials/country-field/country-field.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/country-field/country-field.styles.js +21 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.d.ts +19 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.js +108 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.d.ts +8 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.js +6 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.js +21 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.d.ts +10 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.js +54 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.d.ts +8 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.js +6 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.js +54 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.d.ts +48 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +215 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.d.ts +8 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.js +6 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.js +61 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +104 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.js +522 -0
- package/dist/views/payment-page/partials/stripe/stripe.constants.d.ts +46 -0
- package/dist/views/payment-page/partials/stripe/stripe.constants.js +48 -0
- package/dist/views/payment-page/partials/stripe/stripe.d.ts +8 -0
- package/dist/views/payment-page/partials/stripe/stripe.js +6 -0
- package/dist/views/payment-page/partials/stripe/stripe.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/stripe/stripe.styles.js +102 -0
- package/dist/views/payment-page/partials/stripe/stripe.types.d.ts +72 -0
- package/dist/views/payment-page/partials/stripe/stripe.types.js +4 -0
- package/dist/views/payment-page/partials/stripe/stripe.utils.d.ts +85 -0
- package/dist/views/payment-page/partials/stripe/stripe.utils.js +228 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +22 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +65 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +8 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +6 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +12 -0
- package/dist/views/payment-page/payment-page.component.d.ts +237 -0
- package/dist/views/payment-page/payment-page.component.js +1733 -0
- package/dist/views/payment-page/payment-page.constants.d.ts +38 -0
- package/dist/views/payment-page/payment-page.constants.js +45 -0
- package/dist/views/payment-page/payment-page.d.ts +8 -0
- package/dist/views/payment-page/payment-page.fields.d.ts +162 -0
- package/dist/views/payment-page/payment-page.fields.js +164 -0
- package/dist/views/payment-page/payment-page.js +6 -0
- package/dist/views/payment-page/payment-page.styles.d.ts +2 -0
- package/dist/views/payment-page/payment-page.styles.js +392 -0
- package/dist/views/payment-page/payment-page.types.d.ts +98 -0
- package/dist/views/payment-page/payment-page.types.js +1 -0
- package/dist/views/payment-page/payment-page.utils.d.ts +239 -0
- package/dist/views/payment-page/payment-page.utils.js +906 -0
- package/dist/views/payment-page/payment-page.validation-schema.d.ts +28 -0
- package/dist/views/payment-page/payment-page.validation-schema.js +42 -0
- package/dist/views/payment-page/payment-page.validators.d.ts +56 -0
- package/dist/views/payment-page/payment-page.validators.js +147 -0
- package/dist/views/payment-page/services/payment-api.service.d.ts +104 -0
- package/dist/views/payment-page/services/payment-api.service.js +99 -0
- package/dist/views/search-page/search-page.component.d.ts +61 -0
- package/dist/views/search-page/search-page.component.js +358 -0
- package/dist/views/search-page/search-page.d.ts +8 -0
- package/dist/views/search-page/search-page.js +6 -0
- package/dist/views/search-page/search-page.styles.d.ts +2 -0
- package/dist/views/search-page/search-page.styles.js +81 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +33 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.js +111 -0
- package/dist/views/suggestion-widget/suggestion-widget.d.ts +8 -0
- package/dist/views/suggestion-widget/suggestion-widget.js +6 -0
- package/dist/views/suggestion-widget/suggestion-widget.styles.d.ts +2 -0
- package/dist/views/suggestion-widget/suggestion-widget.styles.js +41 -0
- package/package.json +158 -0
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, nothing } from "lit";
|
|
8
|
+
import { when } from "lit/directives/when.js";
|
|
9
|
+
import { property, state } from "lit/decorators.js";
|
|
10
|
+
import { msg, localized } from "@lit/localize";
|
|
11
|
+
import { Task } from "@lit/task";
|
|
12
|
+
import { consume } from "@lit/context";
|
|
13
|
+
import { addMonths, format, formatISO, parseISO } from "date-fns";
|
|
14
|
+
import { convertToLocaleCurrency } from "../../core/currency/index.js";
|
|
15
|
+
import { getDateRangeLabel } from "../../core/i18n/date.js";
|
|
16
|
+
import { PointsMixin } from "../../mixins/points/points.js";
|
|
17
|
+
import { getLocale, setLocale } from "../../core/i18n/localization.js";
|
|
18
|
+
import styles from "./landing-page.styles.js";
|
|
19
|
+
import { MOBILE_SCREEN_BREAKPOINT } from "./landing-page.constants.js";
|
|
20
|
+
import { BaseMixin } from "../../mixins/base.mixin.js";
|
|
21
|
+
import { ErrorModalMixin } from "../../mixins/error-modal.mixin.js";
|
|
22
|
+
import { currentPageContext } from "../../contexts/current-page.context.js";
|
|
23
|
+
import { LocationSearchMixin } from "../../mixins/location-search/location-search.js";
|
|
24
|
+
import "../../components/location-image/location-image.js";
|
|
25
|
+
import "../../components/dropdown/dropdown.js";
|
|
26
|
+
import "../../components/locations-results/locations-results.js";
|
|
27
|
+
import "../../components/calendar/dual/dual.js";
|
|
28
|
+
import "../../components/filters-drawer/filters-drawer.js";
|
|
29
|
+
import "../../components/checkbox-group/checkbox-group.js";
|
|
30
|
+
import "../../components/checkbox/checkbox.js";
|
|
31
|
+
import "../../components/button/button.js";
|
|
32
|
+
import "../../components/attraction-card/short/attraction-short-card.js";
|
|
33
|
+
import "../../components/attraction-discovery/attraction-discovery.js";
|
|
34
|
+
import "../../components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js";
|
|
35
|
+
import "../../components/carousel/carousel.js";
|
|
36
|
+
import "../../components/carousel/carousel-item/carousel-item.js";
|
|
37
|
+
import "../../components/drawer/drawer.js";
|
|
38
|
+
import "../../components/calendar/multi/multi.js";
|
|
39
|
+
import "../../components/tour-ticket-type-selector/tour-ticket-type-selector.js";
|
|
40
|
+
import "../../components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.js";
|
|
41
|
+
import "../../components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.js";
|
|
42
|
+
import "../../components/sort-dropdown/sort-dropdown.js";
|
|
43
|
+
import "../../components/sort-list/sort-list.js";
|
|
44
|
+
import "../../components/select-list/select-option/select-option.js";
|
|
45
|
+
import "../../components/points/points.js";
|
|
46
|
+
import "../../components/chip/chip.js";
|
|
47
|
+
import "../../components/categories-tree/categories-tree.js";
|
|
48
|
+
import "../../components/breadcrumbs/breadcrumbs.js";
|
|
49
|
+
import "../../components/breadcrumbs/breadcrumb-item/breadcrumb-item.js";
|
|
50
|
+
import "../../contexts/basket/basket.js";
|
|
51
|
+
import "../../components/layout/layout.js";
|
|
52
|
+
import { apiGet, withErrorHandling } from "../../core/api/queries.js";
|
|
53
|
+
import { addRecentlySelectedSearches } from "../../containers/navbar/navbar.utils.js";
|
|
54
|
+
/**
|
|
55
|
+
* Landing page component for browsing attractions and experiences.
|
|
56
|
+
*
|
|
57
|
+
* @fires coras:navigate - Dispatched when navigating to another page (search result, page navigation)
|
|
58
|
+
* @fires coras:state-change - Dispatched when in-page params change (filters, sorting, dates)
|
|
59
|
+
*/
|
|
60
|
+
let CorasLandingPage = class CorasLandingPage extends ErrorModalMixin(PointsMixin(LocationSearchMixin(BaseMixin(LitElement)))) {
|
|
61
|
+
constructor() {
|
|
62
|
+
super(...arguments);
|
|
63
|
+
this.currentPage = "landing";
|
|
64
|
+
this.startDate = "";
|
|
65
|
+
this.endDate = "";
|
|
66
|
+
this.sorting = "popularity";
|
|
67
|
+
this.price = "";
|
|
68
|
+
this.duration = "";
|
|
69
|
+
this.categories = "";
|
|
70
|
+
this.isMobileScreen = false;
|
|
71
|
+
this.isDateFilterOpen = false;
|
|
72
|
+
this.isSortingSelectorOpen = false;
|
|
73
|
+
this.isFiltersDrawerOpened = false;
|
|
74
|
+
this.selectedMonth = format(new Date(), "yyyy-MM");
|
|
75
|
+
this.selectedDates = [
|
|
76
|
+
this.startDate,
|
|
77
|
+
this.endDate,
|
|
78
|
+
];
|
|
79
|
+
this.selectedPriceOptions = [];
|
|
80
|
+
this.selectedDurationOptions = [];
|
|
81
|
+
this._selectedCategories = "";
|
|
82
|
+
this.activePriceOptions = null;
|
|
83
|
+
this.activeDurationOptions = null;
|
|
84
|
+
this.activeCategorySlugs = null;
|
|
85
|
+
// prevent duplicate writes within a single component lifecycle
|
|
86
|
+
this.lastSavedRecentValue = null;
|
|
87
|
+
this.geolocationTask = new Task(this, {
|
|
88
|
+
autoRun: false,
|
|
89
|
+
task: async () => {
|
|
90
|
+
return withErrorHandling(apiGet({
|
|
91
|
+
client: this.client,
|
|
92
|
+
distributorID: this.distributorID,
|
|
93
|
+
endpoint: "/{api_version}/geolocation",
|
|
94
|
+
locale: this.locale,
|
|
95
|
+
}));
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
this.filtersTask = new Task(this, {
|
|
99
|
+
task: async ([locale, currency]) => {
|
|
100
|
+
return withErrorHandling(apiGet({
|
|
101
|
+
client: this.client,
|
|
102
|
+
distributorID: this.distributorID,
|
|
103
|
+
endpoint: "/{api_version}/landing/filters",
|
|
104
|
+
locale,
|
|
105
|
+
query: {
|
|
106
|
+
currency,
|
|
107
|
+
},
|
|
108
|
+
}));
|
|
109
|
+
},
|
|
110
|
+
args: () => [this.locale, this.currency],
|
|
111
|
+
});
|
|
112
|
+
this.attractionsSearchTask = new Task(this, {
|
|
113
|
+
task: async ([locale, country, city, startDate, endDate, sorting, duration, price, categories, currency,]) => {
|
|
114
|
+
return withErrorHandling(apiGet({
|
|
115
|
+
client: this.client,
|
|
116
|
+
distributorID: this.distributorID,
|
|
117
|
+
locale,
|
|
118
|
+
endpoint: "/{api_version}/landing",
|
|
119
|
+
query: {
|
|
120
|
+
date_start: startDate,
|
|
121
|
+
date_end: endDate,
|
|
122
|
+
city,
|
|
123
|
+
country,
|
|
124
|
+
sorting,
|
|
125
|
+
duration: duration && typeof duration === "string" && duration !== ""
|
|
126
|
+
? duration.split(",").filter(Boolean)
|
|
127
|
+
: undefined,
|
|
128
|
+
price: (price || undefined),
|
|
129
|
+
category: categories && typeof categories === "string" && categories !== ""
|
|
130
|
+
? categories.split(",")
|
|
131
|
+
: undefined,
|
|
132
|
+
currency,
|
|
133
|
+
},
|
|
134
|
+
}));
|
|
135
|
+
},
|
|
136
|
+
args: () => [
|
|
137
|
+
this.locale,
|
|
138
|
+
this.country,
|
|
139
|
+
this.city,
|
|
140
|
+
this.startDate,
|
|
141
|
+
this.endDate,
|
|
142
|
+
this.sorting,
|
|
143
|
+
this.duration,
|
|
144
|
+
this.price,
|
|
145
|
+
this.categories,
|
|
146
|
+
this.currency,
|
|
147
|
+
],
|
|
148
|
+
});
|
|
149
|
+
this.sortingTask = new Task(this, {
|
|
150
|
+
task: async ([locale]) => {
|
|
151
|
+
return withErrorHandling(apiGet({
|
|
152
|
+
client: this.client,
|
|
153
|
+
distributorID: this.distributorID,
|
|
154
|
+
locale,
|
|
155
|
+
endpoint: "/{api_version}/landing/sorting",
|
|
156
|
+
}));
|
|
157
|
+
},
|
|
158
|
+
args: () => [this.locale],
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
static { this.styles = [
|
|
162
|
+
super.styles,
|
|
163
|
+
styles,
|
|
164
|
+
]; }
|
|
165
|
+
getPageProperties() {
|
|
166
|
+
return {
|
|
167
|
+
page: "landing",
|
|
168
|
+
currency: this.currency,
|
|
169
|
+
locale: this.locale,
|
|
170
|
+
country: this.country,
|
|
171
|
+
city: this.city,
|
|
172
|
+
startDate: this.startDate,
|
|
173
|
+
endDate: this.endDate,
|
|
174
|
+
sort: this.sorting,
|
|
175
|
+
price: this.price,
|
|
176
|
+
duration: this.duration,
|
|
177
|
+
categories: this.categories,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
async firstUpdated(changed) {
|
|
181
|
+
super.firstUpdated(changed);
|
|
182
|
+
if (this.country === "" && this.city === "") {
|
|
183
|
+
await this.geolocationTask.run();
|
|
184
|
+
if (this.geolocationTask.value?.data) {
|
|
185
|
+
this.dispatchPageUpdate({
|
|
186
|
+
country: this.geolocationTask.value.data.slug,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
191
|
+
this.isMobileScreen = this.clientWidth < MOBILE_SCREEN_BREAKPOINT;
|
|
192
|
+
});
|
|
193
|
+
this.resizeObserver.observe(this);
|
|
194
|
+
}
|
|
195
|
+
disconnectedCallback() {
|
|
196
|
+
super.disconnectedCallback();
|
|
197
|
+
this.resizeObserver?.disconnect();
|
|
198
|
+
}
|
|
199
|
+
updated(changedProperties) {
|
|
200
|
+
super.updated(changedProperties);
|
|
201
|
+
if (getLocale() !== this.locale) {
|
|
202
|
+
setLocale(this.locale);
|
|
203
|
+
}
|
|
204
|
+
// Record recently viewed location (country or city)
|
|
205
|
+
if (this.locationsData && (this.country || this.city)) {
|
|
206
|
+
// Try to find the readable names
|
|
207
|
+
const matchingCountry = this.locationsData
|
|
208
|
+
.flatMap((continent) => continent.countries ?? [])
|
|
209
|
+
.find((country) => country?.slug === this.country);
|
|
210
|
+
const matchingCity = matchingCountry?.cities?.find((city) => city?.slug === this.city);
|
|
211
|
+
// Prefer city if present, otherwise country
|
|
212
|
+
const item = this.city && matchingCity
|
|
213
|
+
? { type: "city", value: this.city, name: matchingCity.name }
|
|
214
|
+
: this.country && matchingCountry
|
|
215
|
+
? {
|
|
216
|
+
type: "country",
|
|
217
|
+
value: this.country,
|
|
218
|
+
name: matchingCountry.name,
|
|
219
|
+
}
|
|
220
|
+
: null;
|
|
221
|
+
if (item && item.value && item.value !== this.lastSavedRecentValue) {
|
|
222
|
+
try {
|
|
223
|
+
addRecentlySelectedSearches(item);
|
|
224
|
+
this.lastSavedRecentValue = item.value;
|
|
225
|
+
}
|
|
226
|
+
catch {
|
|
227
|
+
// noop
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (changedProperties.has("startDate") ||
|
|
232
|
+
changedProperties.has("endDate")) {
|
|
233
|
+
this.selectedDates = [this.startDate, this.endDate];
|
|
234
|
+
if (changedProperties.get("startDate") &&
|
|
235
|
+
changedProperties.get("startDate") !== "") {
|
|
236
|
+
const startDateISO = new Date(changedProperties.get("startDate")).toISOString();
|
|
237
|
+
this.selectedMonth = format(parseISO(startDateISO), "yyyy-MM");
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
if (changedProperties.has("startDate") &&
|
|
241
|
+
changedProperties.get("startDate") &&
|
|
242
|
+
changedProperties.get("startDate") !== "") {
|
|
243
|
+
const startDateISO = new Date(changedProperties.get("startDate")).toISOString();
|
|
244
|
+
this.selectedMonth = format(parseISO(startDateISO), "yyyy-MM");
|
|
245
|
+
}
|
|
246
|
+
if (changedProperties.has("duration")) {
|
|
247
|
+
this.selectedDurationOptions = this.duration
|
|
248
|
+
? this.duration.split(",").filter(Boolean)
|
|
249
|
+
: [];
|
|
250
|
+
if (this.activeDurationOptions === null) {
|
|
251
|
+
this.activeDurationOptions = [...this.selectedDurationOptions];
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (changedProperties.has("price")) {
|
|
255
|
+
this.selectedPriceOptions = this.price ? [this.price] : [];
|
|
256
|
+
if (this.activePriceOptions === null) {
|
|
257
|
+
this.activePriceOptions = [...this.selectedPriceOptions];
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
if (changedProperties.has("categories")) {
|
|
261
|
+
this.updateActiveFilters();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
toggleDateFilter() {
|
|
265
|
+
this.isDateFilterOpen = !this.isDateFilterOpen;
|
|
266
|
+
}
|
|
267
|
+
handleCalendarMonthChange(event) {
|
|
268
|
+
this.selectedMonth = event.detail.date;
|
|
269
|
+
this.requestUpdate();
|
|
270
|
+
}
|
|
271
|
+
setSelectedDates(event) {
|
|
272
|
+
if (this.selectedDates.length === 1) {
|
|
273
|
+
this.selectedDates = [...this.selectedDates, event.detail.date];
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
this.selectedDates = [event.detail.date];
|
|
277
|
+
}
|
|
278
|
+
this.requestUpdate();
|
|
279
|
+
}
|
|
280
|
+
renderDateRangeLabel() {
|
|
281
|
+
const label = getDateRangeLabel(this.startDate, this.endDate, this.locale) ||
|
|
282
|
+
msg("All dates");
|
|
283
|
+
return html `${label}`;
|
|
284
|
+
}
|
|
285
|
+
updateSelectedDateRangeChanged(e) {
|
|
286
|
+
this.setSelectedDates(e);
|
|
287
|
+
if (this.selectedDates.length === 2) {
|
|
288
|
+
this.dispatchPageUpdate({
|
|
289
|
+
startDate: this.selectedDates[0],
|
|
290
|
+
endDate: this.selectedDates[1] || this.selectedDates[0],
|
|
291
|
+
});
|
|
292
|
+
this.toggleDateFilter();
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
renderDateSelectDropdown() {
|
|
296
|
+
const variant = !!this.startDate || !!this.endDate ? "primary" : "outlined";
|
|
297
|
+
const hasSelectedDates = !!this.startDate || !!this.endDate;
|
|
298
|
+
return html `
|
|
299
|
+
<coras-dropdown
|
|
300
|
+
?open="${this.isDateFilterOpen}"
|
|
301
|
+
@dropdown-close-request="${this.toggleDateFilter}"
|
|
302
|
+
>
|
|
303
|
+
<div slot="trigger" @click=${this.toggleDateFilter}>
|
|
304
|
+
<coras-button
|
|
305
|
+
variant=${variant}
|
|
306
|
+
radius="chip"
|
|
307
|
+
border-color="light"
|
|
308
|
+
?rotate-suffix=${this.isDateFilterOpen && !hasSelectedDates}
|
|
309
|
+
>
|
|
310
|
+
<coras-icon
|
|
311
|
+
slot="prefix"
|
|
312
|
+
assets-url="${this.assetsURL}"
|
|
313
|
+
icon="calendar"
|
|
314
|
+
label="Calendar icon"
|
|
315
|
+
></coras-icon>
|
|
316
|
+
${hasSelectedDates
|
|
317
|
+
? html `
|
|
318
|
+
<coras-icon
|
|
319
|
+
slot="suffix"
|
|
320
|
+
assets-url="${this.assetsURL}"
|
|
321
|
+
icon="close"
|
|
322
|
+
label="Close icon"
|
|
323
|
+
close-icon-style
|
|
324
|
+
@click=${this.handleDatesClearIconClicked}
|
|
325
|
+
></coras-icon>
|
|
326
|
+
`
|
|
327
|
+
: html `
|
|
328
|
+
<coras-icon
|
|
329
|
+
slot="suffix"
|
|
330
|
+
assets-url="${this.assetsURL}"
|
|
331
|
+
icon="keyboard-arrow-down"
|
|
332
|
+
label="Arrow down icon"
|
|
333
|
+
></coras-icon>
|
|
334
|
+
`}
|
|
335
|
+
${this.renderDateRangeLabel()}
|
|
336
|
+
</coras-button>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="calendar">
|
|
339
|
+
<coras-dual-month-calendar
|
|
340
|
+
assets-url="${this.assetsURL}"
|
|
341
|
+
locale="${this.locale}"
|
|
342
|
+
min-date=${format(new Date(), "yyyy-MM")}
|
|
343
|
+
max-date=${format(addMonths(new Date(), 24), "yyyy-MM")}
|
|
344
|
+
?range=${true}
|
|
345
|
+
selected-month=${this.selectedMonth}
|
|
346
|
+
.selectedDates=${this.selectedDates}
|
|
347
|
+
@calendar-month-changed=${this.handleCalendarMonthChange}
|
|
348
|
+
@date-selected=${this.updateSelectedDateRangeChanged}
|
|
349
|
+
></coras-dual-month-calendar>
|
|
350
|
+
</div>
|
|
351
|
+
</coras-dropdown>
|
|
352
|
+
`;
|
|
353
|
+
}
|
|
354
|
+
handleDatesClearIconClicked(event) {
|
|
355
|
+
event.stopPropagation();
|
|
356
|
+
this.selectedDates = [""];
|
|
357
|
+
this.dispatchPageUpdate({
|
|
358
|
+
startDate: "",
|
|
359
|
+
endDate: "",
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
handleDatesResetBtnClicked() {
|
|
363
|
+
this.selectedDates = [""];
|
|
364
|
+
this.isDateFilterOpen = false;
|
|
365
|
+
this.dispatchPageUpdate({
|
|
366
|
+
startDate: "",
|
|
367
|
+
endDate: "",
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
handleDatesApplyBtnClicked() {
|
|
371
|
+
this.isDateFilterOpen = false;
|
|
372
|
+
const startDate = this.selectedDates[0];
|
|
373
|
+
const endDate = this.selectedDates[1] || this.selectedDates[0];
|
|
374
|
+
this.dispatchPageUpdate({
|
|
375
|
+
startDate,
|
|
376
|
+
endDate,
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
renderDateSelectDrawer() {
|
|
380
|
+
const variant = !!this.startDate || !!this.endDate ? "primary" : "outlined";
|
|
381
|
+
return html `
|
|
382
|
+
<coras-button
|
|
383
|
+
variant=${variant}
|
|
384
|
+
radius="chip"
|
|
385
|
+
border-color="light"
|
|
386
|
+
@click=${this.toggleDateFilter}
|
|
387
|
+
>
|
|
388
|
+
${this.renderDateRangeLabel()}
|
|
389
|
+
</coras-button>
|
|
390
|
+
|
|
391
|
+
<coras-drawer
|
|
392
|
+
label="Calendar"
|
|
393
|
+
assets-url="${this.assetsURL}"
|
|
394
|
+
?open="${this.isDateFilterOpen}"
|
|
395
|
+
@modal-closed=${this.toggleDateFilter}
|
|
396
|
+
>
|
|
397
|
+
<div class="select-dates-container">
|
|
398
|
+
<coras-multi-month-calendar
|
|
399
|
+
locale="en-US"
|
|
400
|
+
min-date=${format(new Date(), "yyyy-MM")}
|
|
401
|
+
max-date=${format(addMonths(new Date(), 24), "yyyy-MM")}
|
|
402
|
+
?range=${true}
|
|
403
|
+
selected-month=${this.selectedMonth}
|
|
404
|
+
.selectedDates=${this.selectedDates}
|
|
405
|
+
@calendar-month-changed=${this.handleCalendarMonthChange}
|
|
406
|
+
@date-selected=${this.setSelectedDates}
|
|
407
|
+
></coras-multi-month-calendar>
|
|
408
|
+
<div class="select-dates-actions">
|
|
409
|
+
<coras-button
|
|
410
|
+
variant="outlined"
|
|
411
|
+
border-color="medium"
|
|
412
|
+
@click=${this.handleDatesResetBtnClicked}
|
|
413
|
+
>
|
|
414
|
+
${msg("Reset")}
|
|
415
|
+
</coras-button>
|
|
416
|
+
<coras-button
|
|
417
|
+
variant="primary"
|
|
418
|
+
@click=${this.handleDatesApplyBtnClicked}
|
|
419
|
+
>
|
|
420
|
+
${msg("Done")}
|
|
421
|
+
</coras-button>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
</coras-drawer>
|
|
425
|
+
`;
|
|
426
|
+
}
|
|
427
|
+
renderDateSelector() {
|
|
428
|
+
return this.isMobileScreen
|
|
429
|
+
? this.renderDateSelectDrawer()
|
|
430
|
+
: this.renderDateSelectDropdown();
|
|
431
|
+
}
|
|
432
|
+
toggleFiltersDrawer() {
|
|
433
|
+
this.isFiltersDrawerOpened = !this.isFiltersDrawerOpened;
|
|
434
|
+
}
|
|
435
|
+
toggleSortingSelector() {
|
|
436
|
+
this.isSortingSelectorOpen = !this.isSortingSelectorOpen;
|
|
437
|
+
}
|
|
438
|
+
getSortingSelectorLabel() {
|
|
439
|
+
return this.sortingTask.value?.data?.find((item) => item.value === this.sorting)?.label;
|
|
440
|
+
}
|
|
441
|
+
handleSortingOptionClick(value) {
|
|
442
|
+
this.toggleSortingSelector();
|
|
443
|
+
this.dispatchPageUpdate({
|
|
444
|
+
sort: value,
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
renderSortingSelectorDefault() {
|
|
448
|
+
if (this.isMobileScreen) {
|
|
449
|
+
return html ``;
|
|
450
|
+
}
|
|
451
|
+
return html `
|
|
452
|
+
<coras-dropdown
|
|
453
|
+
?open=${this.isSortingSelectorOpen}
|
|
454
|
+
@dropdown-close-request=${this.toggleSortingSelector}
|
|
455
|
+
>
|
|
456
|
+
<coras-button
|
|
457
|
+
slot="trigger"
|
|
458
|
+
variant="outlined"
|
|
459
|
+
radius="chip"
|
|
460
|
+
border-color="light"
|
|
461
|
+
?rotate-suffix=${this.isSortingSelectorOpen}
|
|
462
|
+
@click=${this.toggleSortingSelector}
|
|
463
|
+
>
|
|
464
|
+
<coras-icon
|
|
465
|
+
slot="prefix"
|
|
466
|
+
assets-url="${this.assetsURL}"
|
|
467
|
+
icon="sort"
|
|
468
|
+
></coras-icon>
|
|
469
|
+
<coras-icon
|
|
470
|
+
id="arrow"
|
|
471
|
+
slot="suffix"
|
|
472
|
+
assets-url="${this.assetsURL}"
|
|
473
|
+
icon="keyboard-arrow-down"
|
|
474
|
+
></coras-icon>
|
|
475
|
+
<span data-testid="label" id="label">
|
|
476
|
+
${this.getSortingSelectorLabel()}
|
|
477
|
+
</span>
|
|
478
|
+
</coras-button>
|
|
479
|
+
|
|
480
|
+
<coras-sort-list>
|
|
481
|
+
${this.sortingTask.value?.data?.map((item) => html `
|
|
482
|
+
<coras-select-option
|
|
483
|
+
key=${item.value}
|
|
484
|
+
?selected=${this.sorting === item.value}
|
|
485
|
+
@click=${() => this.handleSortingOptionClick(item.value)}
|
|
486
|
+
>
|
|
487
|
+
${item.label}
|
|
488
|
+
</coras-select-option>
|
|
489
|
+
`)}
|
|
490
|
+
</coras-sort-list>
|
|
491
|
+
</coras-dropdown>
|
|
492
|
+
`;
|
|
493
|
+
}
|
|
494
|
+
renderSortingSelectorMobile() {
|
|
495
|
+
if (!this.isMobileScreen) {
|
|
496
|
+
return html ``;
|
|
497
|
+
}
|
|
498
|
+
return html `<coras-sort-dropdown>
|
|
499
|
+
${this.sortingTask.value?.data?.map((item) => html `
|
|
500
|
+
<coras-select-option
|
|
501
|
+
key=${item.value}
|
|
502
|
+
?selected=${this.sorting === item.value}
|
|
503
|
+
@click=${() => (this.sorting = item.value)}
|
|
504
|
+
>
|
|
505
|
+
${item.label}
|
|
506
|
+
</coras-select-option>
|
|
507
|
+
`)}
|
|
508
|
+
</coras-sort-dropdown>`;
|
|
509
|
+
}
|
|
510
|
+
renderFiltersChip() {
|
|
511
|
+
const variant = !!this.categories || !!this.duration || !!this.price
|
|
512
|
+
? "primary"
|
|
513
|
+
: "outlined";
|
|
514
|
+
return html `
|
|
515
|
+
<coras-button
|
|
516
|
+
variant=${variant}
|
|
517
|
+
radius="chip"
|
|
518
|
+
border-color="light"
|
|
519
|
+
@click=${this.toggleFiltersDrawer}
|
|
520
|
+
>
|
|
521
|
+
${when(!this.isMobileScreen, () => html `<coras-icon
|
|
522
|
+
slot="prefix"
|
|
523
|
+
assets-url="${this.assetsURL}"
|
|
524
|
+
label="filters"
|
|
525
|
+
icon="tune"
|
|
526
|
+
></coras-icon>`)}
|
|
527
|
+
${msg("Filters")}
|
|
528
|
+
</coras-button>
|
|
529
|
+
`;
|
|
530
|
+
}
|
|
531
|
+
renderActiveFilterChips() {
|
|
532
|
+
if (this.isMobileScreen) {
|
|
533
|
+
return html ``;
|
|
534
|
+
}
|
|
535
|
+
return html `
|
|
536
|
+
${this.activePriceOptions?.map((option) => {
|
|
537
|
+
return html `
|
|
538
|
+
<coras-chip
|
|
539
|
+
variant="primary"
|
|
540
|
+
assets-url="${this.assetsURL}"
|
|
541
|
+
@chip-removed=${() => {
|
|
542
|
+
this.updateSelectedPriceOptions(option);
|
|
543
|
+
this.afterFilterChipRemove();
|
|
544
|
+
}}
|
|
545
|
+
>
|
|
546
|
+
${this.getPriceOptionLabel(option)}
|
|
547
|
+
</coras-chip>
|
|
548
|
+
`;
|
|
549
|
+
})}
|
|
550
|
+
${this.activeDurationOptions?.map((option) => {
|
|
551
|
+
return html `
|
|
552
|
+
<coras-chip
|
|
553
|
+
variant="primary"
|
|
554
|
+
assets-url="${this.assetsURL}"
|
|
555
|
+
@chip-removed=${() => {
|
|
556
|
+
this.updateSelectedDurationOptions(option);
|
|
557
|
+
this.afterFilterChipRemove();
|
|
558
|
+
}}
|
|
559
|
+
>
|
|
560
|
+
${this.getDurationOptionLabel(option)}
|
|
561
|
+
</coras-chip>
|
|
562
|
+
`;
|
|
563
|
+
})}
|
|
564
|
+
${this.activeCategorySlugs?.map((slug) => {
|
|
565
|
+
return html `
|
|
566
|
+
<coras-chip
|
|
567
|
+
variant="primary"
|
|
568
|
+
assets-url="${this.assetsURL}"
|
|
569
|
+
@chip-removed=${() => {
|
|
570
|
+
const updatedCategories = this.removeCategorySlug(slug);
|
|
571
|
+
this.dispatchPageUpdate({
|
|
572
|
+
categories: updatedCategories,
|
|
573
|
+
});
|
|
574
|
+
}}
|
|
575
|
+
>
|
|
576
|
+
${this.getCategoryName(slug)}
|
|
577
|
+
</coras-chip>
|
|
578
|
+
`;
|
|
579
|
+
})}
|
|
580
|
+
`;
|
|
581
|
+
}
|
|
582
|
+
getPriceOptionLabel(key) {
|
|
583
|
+
const filters = this.filtersTask.value?.data;
|
|
584
|
+
if (!filters)
|
|
585
|
+
return key;
|
|
586
|
+
const priceFilter = filters.find((filter) => filter.type === "price");
|
|
587
|
+
return (priceFilter?.options.find((option) => option.value === key)?.label || key);
|
|
588
|
+
}
|
|
589
|
+
getDurationOptionLabel(key) {
|
|
590
|
+
const filters = this.filtersTask.value?.data;
|
|
591
|
+
if (!filters)
|
|
592
|
+
return key;
|
|
593
|
+
const durationFilter = filters.find((filter) => filter.type === "duration");
|
|
594
|
+
return (durationFilter?.options.find((option) => option.value === key)?.label ||
|
|
595
|
+
key);
|
|
596
|
+
}
|
|
597
|
+
getCategoryName(slug) {
|
|
598
|
+
const filters = this.filtersTask.value?.data;
|
|
599
|
+
if (!filters)
|
|
600
|
+
return slug;
|
|
601
|
+
const categoryFilters = filters.filter((filter) => filter.type === "category");
|
|
602
|
+
// Search in main categories first
|
|
603
|
+
for (const categoryFilter of categoryFilters) {
|
|
604
|
+
if (categoryFilter.value === slug) {
|
|
605
|
+
return categoryFilter.label;
|
|
606
|
+
}
|
|
607
|
+
// Search in subcategories (options)
|
|
608
|
+
const subcategory = categoryFilter.options.find((option) => option.value === slug);
|
|
609
|
+
if (subcategory) {
|
|
610
|
+
return subcategory.label;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return slug;
|
|
614
|
+
}
|
|
615
|
+
removeCategorySlug(slug) {
|
|
616
|
+
if (!this.categories)
|
|
617
|
+
return "";
|
|
618
|
+
const categorySlugs = this.categories.split(",").filter(Boolean);
|
|
619
|
+
const updatedSlugs = categorySlugs.filter((s) => s !== slug);
|
|
620
|
+
return updatedSlugs.join(",");
|
|
621
|
+
}
|
|
622
|
+
updateActiveFilters() {
|
|
623
|
+
this.activePriceOptions = [...this.selectedPriceOptions];
|
|
624
|
+
this.activeDurationOptions = [...this.selectedDurationOptions];
|
|
625
|
+
this.activeCategorySlugs = this.categories
|
|
626
|
+
? this.categories.split(",").filter(Boolean)
|
|
627
|
+
: [];
|
|
628
|
+
}
|
|
629
|
+
afterFilterChipRemove() {
|
|
630
|
+
this.updateActiveFilters();
|
|
631
|
+
this.dispatchPageUpdate({
|
|
632
|
+
price: this.selectedPriceOptions[0],
|
|
633
|
+
duration: this.selectedDurationOptions.join(","),
|
|
634
|
+
categories: this.activeCategorySlugs?.join(",") || "",
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
handleFiltersClearBtnClicked() {
|
|
638
|
+
this.selectedDurationOptions = [];
|
|
639
|
+
this.selectedPriceOptions = [];
|
|
640
|
+
this._selectedCategories = "";
|
|
641
|
+
this.dispatchPageUpdate({
|
|
642
|
+
categories: "",
|
|
643
|
+
duration: "",
|
|
644
|
+
price: "",
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
handleFiltersApplyBtnClicked() {
|
|
648
|
+
this.dispatchPageUpdate({
|
|
649
|
+
categories: this._selectedCategories,
|
|
650
|
+
duration: this.selectedDurationOptions.join(","),
|
|
651
|
+
price: this.selectedPriceOptions[0],
|
|
652
|
+
});
|
|
653
|
+
this.toggleFiltersDrawer();
|
|
654
|
+
this.updateActiveFilters();
|
|
655
|
+
}
|
|
656
|
+
updateSelectedDurationOptions(key) {
|
|
657
|
+
if (this.selectedDurationOptions.includes(key)) {
|
|
658
|
+
this.selectedDurationOptions = this.selectedDurationOptions.filter((option) => option !== key);
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
this.selectedDurationOptions.push(key);
|
|
662
|
+
}
|
|
663
|
+
this.requestUpdate();
|
|
664
|
+
}
|
|
665
|
+
renderDurationFilter(durationOptions = []) {
|
|
666
|
+
return html `<coras-checkbox-group>
|
|
667
|
+
<span slot="primary">${msg("Duration")}</span>
|
|
668
|
+
${durationOptions.map((option) => {
|
|
669
|
+
return html `<coras-checkbox
|
|
670
|
+
label=${option.label}
|
|
671
|
+
variant="main"
|
|
672
|
+
?checked=${this.selectedDurationOptions.includes(option.value)}
|
|
673
|
+
@value-changed=${() => this.updateSelectedDurationOptions(option.value)}
|
|
674
|
+
></coras-checkbox>`;
|
|
675
|
+
})}
|
|
676
|
+
</coras-checkbox-group>`;
|
|
677
|
+
}
|
|
678
|
+
updateSelectedPriceOptions(key) {
|
|
679
|
+
if (this.selectedPriceOptions.includes(key)) {
|
|
680
|
+
// If clicking the same option, deselect it (clear all)
|
|
681
|
+
this.selectedPriceOptions = [];
|
|
682
|
+
}
|
|
683
|
+
else {
|
|
684
|
+
// If clicking a different option, select only that one (single selection)
|
|
685
|
+
this.selectedPriceOptions = [key];
|
|
686
|
+
}
|
|
687
|
+
this.requestUpdate();
|
|
688
|
+
}
|
|
689
|
+
renderPriceFilter(priceOptions = []) {
|
|
690
|
+
return html `<coras-checkbox-group>
|
|
691
|
+
<span slot="primary">${msg("Price")}</span>
|
|
692
|
+
${priceOptions.map((option) => {
|
|
693
|
+
return html `<coras-checkbox
|
|
694
|
+
label=${option.label}
|
|
695
|
+
variant="main"
|
|
696
|
+
?checked=${this.selectedPriceOptions.includes(option.value)}
|
|
697
|
+
@value-changed=${() => this.updateSelectedPriceOptions(option.value)}
|
|
698
|
+
></coras-checkbox>`;
|
|
699
|
+
})}
|
|
700
|
+
</coras-checkbox-group>`;
|
|
701
|
+
}
|
|
702
|
+
transformFiltersToCategories(filters) {
|
|
703
|
+
const categoryFilters = filters.filter((filter) => filter.type === "category");
|
|
704
|
+
return categoryFilters.map((categoryFilter, index) => ({
|
|
705
|
+
id: index + 1,
|
|
706
|
+
name: categoryFilter.label,
|
|
707
|
+
slug: categoryFilter.value ||
|
|
708
|
+
`category-${index}`,
|
|
709
|
+
media: [],
|
|
710
|
+
subcategories: categoryFilter.options.map((option, subIndex) => ({
|
|
711
|
+
id: subIndex + 1000, // Use higher IDs for subcategories to avoid conflicts
|
|
712
|
+
name: option.label,
|
|
713
|
+
slug: option.value,
|
|
714
|
+
media: [],
|
|
715
|
+
subcategories: [],
|
|
716
|
+
})),
|
|
717
|
+
}));
|
|
718
|
+
}
|
|
719
|
+
renderCategoriesTree() {
|
|
720
|
+
return this.filtersTask.render({
|
|
721
|
+
error: () => html `error`,
|
|
722
|
+
loading: () => html `loading`,
|
|
723
|
+
complete: (filters) => {
|
|
724
|
+
if (!filters.data)
|
|
725
|
+
return nothing;
|
|
726
|
+
const transformedCategories = this.transformFiltersToCategories(filters.data);
|
|
727
|
+
return html `
|
|
728
|
+
<coras-categories-tree
|
|
729
|
+
.categories=${transformedCategories}
|
|
730
|
+
selectedCategories=${this.categories}
|
|
731
|
+
@selection-changed=${(event) => {
|
|
732
|
+
this._selectedCategories = event.detail;
|
|
733
|
+
event.stopPropagation();
|
|
734
|
+
}}
|
|
735
|
+
></coras-categories-tree>
|
|
736
|
+
`;
|
|
737
|
+
},
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
renderFiltersButtons() {
|
|
741
|
+
return html `<coras-button
|
|
742
|
+
slot="reset-action"
|
|
743
|
+
variant="text"
|
|
744
|
+
@click=${this.handleFiltersClearBtnClicked}
|
|
745
|
+
>${msg("Clear all")}</coras-button
|
|
746
|
+
>
|
|
747
|
+
<coras-button
|
|
748
|
+
slot="apply-action"
|
|
749
|
+
variant="primary"
|
|
750
|
+
@click=${this.handleFiltersApplyBtnClicked}
|
|
751
|
+
>${msg("Apply filters")}</coras-button
|
|
752
|
+
>`;
|
|
753
|
+
}
|
|
754
|
+
renderFiltersContent() {
|
|
755
|
+
return this.filtersTask.render({
|
|
756
|
+
error: () => html `error`,
|
|
757
|
+
loading: () => html `loading`,
|
|
758
|
+
complete: (filters) => {
|
|
759
|
+
if (!filters.data)
|
|
760
|
+
return nothing;
|
|
761
|
+
const durationFilter = filters.data.find((filter) => filter.type === "duration");
|
|
762
|
+
const priceFilter = filters.data.find((filter) => filter.type === "price");
|
|
763
|
+
return html `
|
|
764
|
+
${this.renderDurationFilter(durationFilter?.options || [])}
|
|
765
|
+
${this.renderPriceFilter(priceFilter?.options || [])}
|
|
766
|
+
${this.renderCategoriesTree()}
|
|
767
|
+
`;
|
|
768
|
+
},
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
renderAttractionsTitle() {
|
|
772
|
+
if (this.country || this.city) {
|
|
773
|
+
return html ``;
|
|
774
|
+
}
|
|
775
|
+
return html `
|
|
776
|
+
<h2 class="popular-title">${msg("Popular on our site").toUpperCase()}</h2>
|
|
777
|
+
`;
|
|
778
|
+
}
|
|
779
|
+
renderSections(sections = []) {
|
|
780
|
+
const sorted = sections.sort((a, b) => {
|
|
781
|
+
return a.order - b.order;
|
|
782
|
+
});
|
|
783
|
+
return sorted.map((section) => {
|
|
784
|
+
switch (section.type) {
|
|
785
|
+
case "short-card":
|
|
786
|
+
return this.renderAttractionCards(section);
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
renderShowMoreButton(_) {
|
|
791
|
+
return html `<span class="show-more-button" aria-hidden="true"></span>`;
|
|
792
|
+
// return html`
|
|
793
|
+
// <coras-button
|
|
794
|
+
// class="show-more-button"
|
|
795
|
+
// variant="text"
|
|
796
|
+
// @click=${() =>
|
|
797
|
+
// this.dispatchPageUpdate({
|
|
798
|
+
// city: params.city || this.city || undefined,
|
|
799
|
+
// country: params.country || this.country || undefined,
|
|
800
|
+
// categories: params.category?.join(",") || undefined,
|
|
801
|
+
// sorting: params.sorting || undefined,
|
|
802
|
+
// startDate: params.date_start || undefined,
|
|
803
|
+
// })}
|
|
804
|
+
// >
|
|
805
|
+
// ${msg("Show more")}
|
|
806
|
+
// </coras-button>
|
|
807
|
+
// `;
|
|
808
|
+
}
|
|
809
|
+
renderPoints(price) {
|
|
810
|
+
if (this.calculateRewardPoints) {
|
|
811
|
+
price = price / 100;
|
|
812
|
+
const points = this.calculateRewardPoints({ price });
|
|
813
|
+
return html `<coras-points
|
|
814
|
+
slot="points"
|
|
815
|
+
points=${points.toLocaleString("en-GB")}
|
|
816
|
+
points-logo-url=${this.pointsLogoUrl}
|
|
817
|
+
points-icon-url=${this.pointsIconUrl}
|
|
818
|
+
points-unit=${this.pointsUnit}
|
|
819
|
+
></coras-points>`;
|
|
820
|
+
}
|
|
821
|
+
return html ``;
|
|
822
|
+
}
|
|
823
|
+
renderAttractionCards(section) {
|
|
824
|
+
const currency = this.currency;
|
|
825
|
+
const locale = this.locale;
|
|
826
|
+
const cards = section.items;
|
|
827
|
+
return html `
|
|
828
|
+
<section>
|
|
829
|
+
<header class="section-header">
|
|
830
|
+
<h3>${section.title}</h3>
|
|
831
|
+
${this.renderShowMoreButton(section.params)}
|
|
832
|
+
</header>
|
|
833
|
+
|
|
834
|
+
<div class="cards">
|
|
835
|
+
${cards.map((card) => {
|
|
836
|
+
return html `
|
|
837
|
+
<coras-attraction-short-card
|
|
838
|
+
.images=${card.images}
|
|
839
|
+
?label=${false}
|
|
840
|
+
name=${card.title}
|
|
841
|
+
rating=${card.rating || 0}
|
|
842
|
+
price=${convertToLocaleCurrency({
|
|
843
|
+
value: card.price[currency],
|
|
844
|
+
locale,
|
|
845
|
+
currency,
|
|
846
|
+
})}
|
|
847
|
+
category=${card.category.slug}
|
|
848
|
+
date=${card.date}
|
|
849
|
+
timezone=${card.timezone}
|
|
850
|
+
locale=${this.locale}
|
|
851
|
+
@click=${() => this.dispatchPageUpdate({
|
|
852
|
+
locale: this.locale,
|
|
853
|
+
currency: this.currency,
|
|
854
|
+
page: "details",
|
|
855
|
+
id: card.id,
|
|
856
|
+
date: formatISO(parseISO(card.date), {
|
|
857
|
+
representation: "date",
|
|
858
|
+
}),
|
|
859
|
+
})}
|
|
860
|
+
>
|
|
861
|
+
${this.renderPoints(card.price[currency])}
|
|
862
|
+
</coras-attraction-short-card>
|
|
863
|
+
`;
|
|
864
|
+
})}
|
|
865
|
+
${this.renderShowMoreButton(section.params)}
|
|
866
|
+
</div>
|
|
867
|
+
</section>
|
|
868
|
+
`;
|
|
869
|
+
}
|
|
870
|
+
renderBreadcrumbs() {
|
|
871
|
+
if (!this.city || !this.locationsData) {
|
|
872
|
+
return nothing;
|
|
873
|
+
}
|
|
874
|
+
const matchingCountry = this.locationsData
|
|
875
|
+
.flatMap((continent) => continent.countries ?? [])
|
|
876
|
+
.find((country) => country?.slug === this.country);
|
|
877
|
+
if (!matchingCountry) {
|
|
878
|
+
return nothing;
|
|
879
|
+
}
|
|
880
|
+
const matchingCity = matchingCountry.cities?.find((city) => city?.slug === this.city);
|
|
881
|
+
if (!matchingCity) {
|
|
882
|
+
return nothing;
|
|
883
|
+
}
|
|
884
|
+
const handleCountryClick = () => {
|
|
885
|
+
this.dispatchPageUpdate({
|
|
886
|
+
page: "landing",
|
|
887
|
+
country: this.country,
|
|
888
|
+
city: "",
|
|
889
|
+
});
|
|
890
|
+
};
|
|
891
|
+
return html `
|
|
892
|
+
<div class="breadcrumbs-container">
|
|
893
|
+
<coras-breadcrumbs assets-url="${this.assetsURL}">
|
|
894
|
+
<coras-breadcrumb-item @click=${handleCountryClick} clickable>
|
|
895
|
+
${matchingCountry.name}
|
|
896
|
+
</coras-breadcrumb-item>
|
|
897
|
+
<coras-breadcrumb-item> ${matchingCity.name} </coras-breadcrumb-item>
|
|
898
|
+
</coras-breadcrumbs>
|
|
899
|
+
</div>
|
|
900
|
+
`;
|
|
901
|
+
}
|
|
902
|
+
renderAttractions() {
|
|
903
|
+
return this.attractionsSearchTask.render({
|
|
904
|
+
error: () => {
|
|
905
|
+
this.showErrorModalOnce();
|
|
906
|
+
return html ``;
|
|
907
|
+
},
|
|
908
|
+
loading: () => html `loading`,
|
|
909
|
+
complete: (result) => {
|
|
910
|
+
if (!result.data)
|
|
911
|
+
return nothing;
|
|
912
|
+
return html `
|
|
913
|
+
<section class="attractions-sections">
|
|
914
|
+
${this.renderAttractionsTitle()}
|
|
915
|
+
${this.renderSections(result.data || [])}
|
|
916
|
+
</section>
|
|
917
|
+
`;
|
|
918
|
+
},
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
render() {
|
|
922
|
+
return html `
|
|
923
|
+
<coras-layout with-basket>
|
|
924
|
+
<slot name="navbar" slot="navbar"></slot>
|
|
925
|
+
<header class="hero-section">
|
|
926
|
+
${this.renderLocationSearchSelector()}
|
|
927
|
+
<coras-location-image
|
|
928
|
+
country=${this.country}
|
|
929
|
+
city=${this.city}
|
|
930
|
+
></coras-location-image>
|
|
931
|
+
<div class="filters">
|
|
932
|
+
${this.renderDateSelector()} ${this.renderSortingSelectorDefault()}
|
|
933
|
+
${this.renderFiltersChip()}
|
|
934
|
+
<div class="sorting-dropdown-container">
|
|
935
|
+
${this.renderSortingSelectorMobile()}
|
|
936
|
+
</div>
|
|
937
|
+
${this.renderActiveFilterChips()}
|
|
938
|
+
</div>
|
|
939
|
+
${this.renderBreadcrumbs()}
|
|
940
|
+
</header>
|
|
941
|
+
|
|
942
|
+
${this.renderAttractions()}
|
|
943
|
+
|
|
944
|
+
<coras-filters-drawer
|
|
945
|
+
assets-url="${this.assetsURL}"
|
|
946
|
+
?open=${this.isFiltersDrawerOpened}
|
|
947
|
+
@modal-closed=${this.toggleFiltersDrawer}
|
|
948
|
+
>
|
|
949
|
+
${this.renderFiltersContent()} ${this.renderFiltersButtons()}
|
|
950
|
+
</coras-filters-drawer>
|
|
951
|
+
|
|
952
|
+
${this.renderErrorModal({
|
|
953
|
+
assetsURL: this.assetsURL,
|
|
954
|
+
buttonLabel: msg("Refresh the page"),
|
|
955
|
+
onRetry: () => this.attractionsSearchTask.run(),
|
|
956
|
+
onHelp: () => this.dispatchPageUpdate({ page: "help" }),
|
|
957
|
+
})}
|
|
958
|
+
|
|
959
|
+
<slot name="footer" slot="footer"></slot>
|
|
960
|
+
</coras-layout>
|
|
961
|
+
`;
|
|
962
|
+
}
|
|
963
|
+
};
|
|
964
|
+
__decorate([
|
|
965
|
+
consume({ context: currentPageContext })
|
|
966
|
+
], CorasLandingPage.prototype, "currentPage", void 0);
|
|
967
|
+
__decorate([
|
|
968
|
+
property({ type: String, attribute: "start-date" })
|
|
969
|
+
], CorasLandingPage.prototype, "startDate", void 0);
|
|
970
|
+
__decorate([
|
|
971
|
+
property({ type: String, attribute: "end-date" })
|
|
972
|
+
], CorasLandingPage.prototype, "endDate", void 0);
|
|
973
|
+
__decorate([
|
|
974
|
+
property({ type: String, attribute: "sorting" })
|
|
975
|
+
], CorasLandingPage.prototype, "sorting", void 0);
|
|
976
|
+
__decorate([
|
|
977
|
+
property({ type: String })
|
|
978
|
+
], CorasLandingPage.prototype, "price", void 0);
|
|
979
|
+
__decorate([
|
|
980
|
+
property({ type: String })
|
|
981
|
+
], CorasLandingPage.prototype, "duration", void 0);
|
|
982
|
+
__decorate([
|
|
983
|
+
property({ type: String })
|
|
984
|
+
], CorasLandingPage.prototype, "categories", void 0);
|
|
985
|
+
__decorate([
|
|
986
|
+
state()
|
|
987
|
+
], CorasLandingPage.prototype, "isMobileScreen", void 0);
|
|
988
|
+
__decorate([
|
|
989
|
+
state()
|
|
990
|
+
], CorasLandingPage.prototype, "isDateFilterOpen", void 0);
|
|
991
|
+
__decorate([
|
|
992
|
+
state()
|
|
993
|
+
], CorasLandingPage.prototype, "isSortingSelectorOpen", void 0);
|
|
994
|
+
__decorate([
|
|
995
|
+
state()
|
|
996
|
+
], CorasLandingPage.prototype, "isFiltersDrawerOpened", void 0);
|
|
997
|
+
__decorate([
|
|
998
|
+
state()
|
|
999
|
+
], CorasLandingPage.prototype, "activeCategorySlugs", void 0);
|
|
1000
|
+
CorasLandingPage = __decorate([
|
|
1001
|
+
localized()
|
|
1002
|
+
], CorasLandingPage);
|
|
1003
|
+
export { CorasLandingPage };
|