@coras-io/embed 0.5.1 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +15 -2
  3. package/dist/components/accordion/accordion-item/accordion-item.component.js +9 -3
  4. package/dist/components/accordion/accordion-item/accordion-item.styles.js +4 -0
  5. package/dist/components/accordion/accordion.component.js +8 -0
  6. package/dist/components/alert/alert.component.d.ts +1 -1
  7. package/dist/components/alert/alert.component.js +4 -3
  8. package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +0 -2
  9. package/dist/components/attraction-card/base/attraction-card.mixin.js +0 -6
  10. package/dist/components/attraction-card/base/attraction-card.types.d.ts +0 -1
  11. package/dist/components/basket-mobile/basket-mobile.component.d.ts +14 -3
  12. package/dist/components/basket-mobile/basket-mobile.component.js +71 -15
  13. package/dist/components/better-carousel/better-carousel.component.d.ts +3 -5
  14. package/dist/components/better-carousel/better-carousel.component.js +13 -34
  15. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +5 -12
  16. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +13 -5
  17. package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +0 -1
  18. package/dist/components/breadcrumbs/breadcrumbs.component.js +5 -8
  19. package/dist/components/breadcrumbs/breadcrumbs.styles.js +8 -2
  20. package/dist/components/button/button.constants.d.ts +1 -2
  21. package/dist/components/button/button.constants.js +0 -1
  22. package/dist/components/calendar/base/calendar.mixin.js +5 -1
  23. package/dist/components/calendar/multi/multi.component.d.ts +2 -2
  24. package/dist/components/calendar/multi/multi.component.js +12 -19
  25. package/dist/components/carousel/carousel.component.js +9 -2
  26. package/dist/components/categories-tree/categories-tree.component.d.ts +5 -3
  27. package/dist/components/categories-tree/categories-tree.component.js +22 -21
  28. package/dist/components/checkbox/checkbox.component.js +5 -1
  29. package/dist/components/checkbox-group/checkbox-group.component.js +1 -1
  30. package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
  31. package/dist/components/chip/chip.component.js +8 -3
  32. package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +6 -0
  33. package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +15 -1
  34. package/dist/components/currencies-list/currencies-list.component.js +0 -1
  35. package/dist/components/dialog/dialog.component.js +52 -21
  36. package/dist/components/drawer/drawer.component.d.ts +3 -2
  37. package/dist/components/drawer/drawer.component.js +13 -18
  38. package/dist/components/drawer/drawer.styles.js +5 -2
  39. package/dist/components/dropdown/dropdown.component.js +6 -9
  40. package/dist/components/expiration-timer/expiration-timer.component.d.ts +2 -3
  41. package/dist/components/expiration-timer/expiration-timer.component.js +10 -8
  42. package/dist/components/explore-card/explore-card.component.js +3 -1
  43. package/dist/components/explore-card/explore-card.styles.js +31 -0
  44. package/dist/components/filters-drawer/filters-drawer.component.js +1 -1
  45. package/dist/components/flag-icon/flag-icon.component.d.ts +4 -2
  46. package/dist/components/flag-icon/flag-icon.component.js +16 -4
  47. package/dist/components/icon/icon.component.js +15 -2
  48. package/dist/components/image/image.component.js +4 -3
  49. package/dist/components/image-viewer/image-viewer.component.js +6 -4
  50. package/dist/components/input-field/input-field.component.js +10 -6
  51. package/dist/components/layout/layout.styles.js +1 -1
  52. package/dist/components/locales-list/locales-list.component.js +0 -1
  53. package/dist/components/location-image/location-image.component.d.ts +4 -4
  54. package/dist/components/location-image/location-image.component.js +6 -7
  55. package/dist/components/locations-results/locations-results.component.d.ts +10 -0
  56. package/dist/components/locations-results/locations-results.component.js +22 -15
  57. package/dist/components/locations-results/locations-results.styles.js +4 -1
  58. package/dist/components/message-card/message-card.component.d.ts +1 -1
  59. package/dist/components/message-card/message-card.component.js +4 -3
  60. package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +0 -1
  61. package/dist/components/mobile-menu-item/mobile-menu-item.component.js +14 -16
  62. package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +9 -5
  63. package/dist/components/option-group/option-chip/option-chip.component.d.ts +4 -1
  64. package/dist/components/option-group/option-chip/option-chip.component.js +23 -10
  65. package/dist/components/option-group/option-group.component.d.ts +3 -1
  66. package/dist/components/option-group/option-group.component.js +10 -3
  67. package/dist/components/overlay/overlay.component.d.ts +0 -5
  68. package/dist/components/overlay/overlay.component.js +3 -15
  69. package/dist/components/phone-country-code/phone-country-code.component.d.ts +4 -0
  70. package/dist/components/phone-country-code/phone-country-code.component.js +37 -0
  71. package/dist/components/phone-country-codes/phone-country-codes.component.js +1 -1
  72. package/dist/components/phone-field/phone-field.component.js +2 -2
  73. package/dist/components/search-button/search-button.component.d.ts +1 -1
  74. package/dist/components/search-button/search-button.component.js +13 -7
  75. package/dist/components/seated-selector/seated-selector.component.js +3 -3
  76. package/dist/components/seats-io/seats-io.component.d.ts +3 -2
  77. package/dist/components/seats-io/seats-io.component.js +31 -13
  78. package/dist/components/seats-io/seats-io.constants.d.ts +0 -2
  79. package/dist/components/seats-io/seats-io.constants.js +0 -3
  80. package/dist/components/seats-io/seats-io.transform.d.ts +1 -6
  81. package/dist/components/seats-io/seats-io.transform.js +1 -20
  82. package/dist/components/select-list/select-list.component.js +7 -2
  83. package/dist/components/select-list/select-option/select-option.component.d.ts +3 -1
  84. package/dist/components/select-list/select-option/select-option.component.js +10 -3
  85. package/dist/components/tabs/tabs.component.d.ts +2 -0
  86. package/dist/components/tabs/tabs.component.js +59 -5
  87. package/dist/components/time-tag/time-tag.component.js +1 -1
  88. package/dist/containers/basket/basket.component.d.ts +1 -1
  89. package/dist/containers/basket/basket.component.js +21 -20
  90. package/dist/containers/navbar/navbar.component.d.ts +12 -8
  91. package/dist/containers/navbar/navbar.component.js +108 -62
  92. package/dist/containers/navbar/navbar.styles.js +23 -5
  93. package/dist/containers/navbar/navbar.utils.js +4 -4
  94. package/dist/contexts/basket/basket.provider.d.ts +3 -4
  95. package/dist/contexts/basket/basket.provider.js +46 -61
  96. package/dist/contexts/basket/basket.types.d.ts +0 -2
  97. package/dist/controllers/time-expiration.d.ts +15 -2
  98. package/dist/controllers/time-expiration.js +47 -17
  99. package/dist/core/api/client.d.ts +9 -0
  100. package/dist/core/api/client.js +26 -0
  101. package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +0 -2
  102. package/dist/core/api/middlewares/booking-session/booking-session.constants.js +0 -2
  103. package/dist/core/api/middlewares/booking-session/booking-session.js +3 -12
  104. package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +0 -1
  105. package/dist/core/api/middlewares/booking-session/booking-session.utils.js +6 -28
  106. package/dist/core/api/middlewares/error-handler/error-handler.js +5 -1
  107. package/dist/core/api/middlewares/retry/retry.constants.d.ts +3 -0
  108. package/dist/core/api/middlewares/retry/retry.constants.js +7 -0
  109. package/dist/core/api/middlewares/retry/retry.d.ts +2 -0
  110. package/dist/core/api/middlewares/retry/retry.js +48 -0
  111. package/dist/core/api/queries.d.ts +13 -38
  112. package/dist/core/api/queries.js +16 -99
  113. package/dist/core/events.d.ts +2 -4
  114. package/dist/core/i18n/date.d.ts +14 -5
  115. package/dist/core/i18n/date.js +47 -20
  116. package/dist/core/i18n/localization.js +10 -3
  117. package/dist/core/images/helpers.js +6 -5
  118. package/dist/core/images/srcset.js +2 -2
  119. package/dist/core/logger.d.ts +17 -0
  120. package/dist/core/logger.js +13 -0
  121. package/dist/core/types/api-schema.d.ts +7872 -0
  122. package/dist/core/types/seats-config.d.ts +5 -4
  123. package/dist/core/types/seats-config.js +10 -3
  124. package/dist/core/utils/crypto-address.d.ts +12 -0
  125. package/dist/core/utils/crypto-address.js +17 -0
  126. package/dist/core/utils/datetime.d.ts +13 -11
  127. package/dist/core/utils/datetime.js +41 -51
  128. package/dist/core/utils/loyalty.d.ts +8 -0
  129. package/dist/core/utils/loyalty.js +10 -0
  130. package/dist/core/utils/redaction.d.ts +9 -0
  131. package/dist/core/utils/redaction.js +58 -0
  132. package/dist/core/utils/time.js +2 -3
  133. package/dist/helpers/helpers.d.ts +6 -0
  134. package/dist/helpers/helpers.js +33 -16
  135. package/dist/locales/ar-SA.d.ts +38 -21
  136. package/dist/locales/ar-SA.js +38 -21
  137. package/dist/locales/da-DK.d.ts +38 -21
  138. package/dist/locales/da-DK.js +38 -21
  139. package/dist/locales/de-DE.d.ts +38 -21
  140. package/dist/locales/de-DE.js +38 -21
  141. package/dist/locales/en-IE.d.ts +38 -21
  142. package/dist/locales/en-IE.js +38 -21
  143. package/dist/locales/en-US.d.ts +38 -21
  144. package/dist/locales/en-US.js +38 -21
  145. package/dist/locales/es-ES.d.ts +38 -21
  146. package/dist/locales/es-ES.js +38 -21
  147. package/dist/locales/fr-FR.d.ts +38 -21
  148. package/dist/locales/fr-FR.js +38 -21
  149. package/dist/locales/fr-MA.d.ts +38 -21
  150. package/dist/locales/fr-MA.js +38 -21
  151. package/dist/locales/is-IS.d.ts +38 -21
  152. package/dist/locales/is-IS.js +38 -21
  153. package/dist/locales/it-IT.d.ts +38 -21
  154. package/dist/locales/it-IT.js +38 -21
  155. package/dist/locales/ms-MY.d.ts +38 -21
  156. package/dist/locales/ms-MY.js +38 -21
  157. package/dist/locales/nb-NO.d.ts +38 -21
  158. package/dist/locales/nb-NO.js +38 -21
  159. package/dist/locales/pl-PL.d.ts +38 -21
  160. package/dist/locales/pl-PL.js +38 -21
  161. package/dist/locales/pt-PT.d.ts +38 -21
  162. package/dist/locales/pt-PT.js +38 -21
  163. package/dist/locales/sv-SE.d.ts +38 -21
  164. package/dist/locales/sv-SE.js +38 -21
  165. package/dist/locales/th-TH.d.ts +38 -21
  166. package/dist/locales/th-TH.js +38 -21
  167. package/dist/locales/tr-TR.d.ts +38 -21
  168. package/dist/locales/tr-TR.js +38 -21
  169. package/dist/locales/zh-CN.d.ts +38 -21
  170. package/dist/locales/zh-CN.js +38 -21
  171. package/dist/locales/zh-HK.d.ts +38 -21
  172. package/dist/locales/zh-HK.js +38 -21
  173. package/dist/mixins/base.mixin.d.ts +3 -1
  174. package/dist/mixins/base.mixin.js +10 -7
  175. package/dist/mixins/coinbase.mixin.d.ts +13 -17
  176. package/dist/mixins/coinbase.mixin.js +251 -288
  177. package/dist/mixins/error-modal.mixin.js +8 -4
  178. package/dist/mixins/location-search/location-search.d.ts +13 -1
  179. package/dist/mixins/location-search/location-search.js +35 -27
  180. package/dist/mixins/overlay/overlay-mixin.js +39 -3
  181. package/dist/mixins/overlay/types.d.ts +1 -0
  182. package/dist/mixins/search-mixin/search-mixin.js +8 -5
  183. package/dist/sdk/diagnostics.js +2 -0
  184. package/dist/sdk/mount.d.ts +10 -0
  185. package/dist/sdk/mount.js +20 -1
  186. package/dist/sdk/page-registry.js +5 -0
  187. package/dist/sdk/params.d.ts +53 -0
  188. package/dist/sdk/params.js +180 -0
  189. package/dist/sdk/redaction.d.ts +1 -4
  190. package/dist/sdk/redaction.js +2 -41
  191. package/dist/sdk/types.d.ts +21 -7
  192. package/dist/sdk/url.d.ts +1 -1
  193. package/dist/sdk/url.js +12 -5
  194. package/dist/sdk/validation.d.ts +1 -26
  195. package/dist/sdk/validation.js +8 -145
  196. package/dist/styles/tokens.d.ts +1 -1
  197. package/dist/styles/tokens.generated.d.ts +1 -1
  198. package/dist/styles/tokens.generated.js +1 -1
  199. package/dist/views/chrome-only-page/chrome-only-page.component.d.ts +30 -0
  200. package/dist/views/chrome-only-page/chrome-only-page.component.js +24 -0
  201. package/dist/views/chrome-only-page/chrome-only-page.d.ts +8 -0
  202. package/dist/views/chrome-only-page/chrome-only-page.js +6 -0
  203. package/dist/views/chrome-only-page/chrome-only-page.styles.js +13 -0
  204. package/dist/views/details-page/details-page.component.d.ts +11 -4
  205. package/dist/views/details-page/details-page.component.js +263 -237
  206. package/dist/views/details-page/details-page.utilts.d.ts +63 -3
  207. package/dist/views/details-page/details-page.utilts.js +53 -5
  208. package/dist/views/details-page/partials/location-categories/location-categories.component.d.ts +29 -0
  209. package/dist/views/details-page/partials/location-categories/location-categories.component.js +149 -0
  210. package/dist/views/details-page/partials/location-categories/location-categories.d.ts +8 -0
  211. package/dist/views/details-page/partials/location-categories/location-categories.js +6 -0
  212. package/dist/views/details-page/partials/location-categories/location-categories.styles.js +35 -0
  213. package/dist/views/details-page/partials/location-highlights/location-highlights.component.d.ts +26 -0
  214. package/dist/views/details-page/partials/location-highlights/location-highlights.component.js +158 -0
  215. package/dist/views/details-page/partials/location-highlights/location-highlights.d.ts +8 -0
  216. package/dist/views/details-page/partials/location-highlights/location-highlights.js +6 -0
  217. package/dist/views/details-page/partials/location-highlights/location-highlights.styles.js +42 -0
  218. package/dist/views/details-page/partials/tour-description/tour-description.component.js +1 -4
  219. package/dist/views/help-page/help-page.component.d.ts +2 -0
  220. package/dist/views/help-page/help-page.component.js +37 -18
  221. package/dist/views/help-page/help-page.utils.js +6 -5
  222. package/dist/views/landing-page/landing-page.component.d.ts +5 -8
  223. package/dist/views/landing-page/landing-page.component.js +82 -97
  224. package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +10 -4
  225. package/dist/views/payment-page/controllers/crypto-auth.controller.js +53 -31
  226. package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +9 -5
  227. package/dist/views/payment-page/controllers/crypto-transfer.controller.js +26 -39
  228. package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +6 -1
  229. package/dist/views/payment-page/controllers/payment-flow.controller.js +1 -0
  230. package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +20 -2
  231. package/dist/views/payment-page/controllers/stripe-payment.controller.js +42 -19
  232. package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +2 -0
  233. package/dist/views/payment-page/partials/activity-details/activity-details.component.js +6 -3
  234. package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +2 -0
  235. package/dist/views/payment-page/partials/billing-address/billing-address.component.js +5 -1
  236. package/dist/views/payment-page/partials/confirmation/confirmation.component.js +2 -3
  237. package/dist/views/payment-page/partials/country-field/country-field.component.js +1 -1
  238. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +3 -3
  239. package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +2 -0
  240. package/dist/views/payment-page/partials/stripe/stripe.component.js +36 -7
  241. package/dist/views/payment-page/partials/stripe/stripe.utils.js +0 -3
  242. package/dist/views/payment-page/payment-page.component.d.ts +39 -6
  243. package/dist/views/payment-page/payment-page.component.js +302 -178
  244. package/dist/views/payment-page/payment-page.constants.d.ts +1 -27
  245. package/dist/views/payment-page/payment-page.constants.js +3 -30
  246. package/dist/views/payment-page/payment-page.types.d.ts +1 -19
  247. package/dist/views/payment-page/payment-page.utils.d.ts +22 -13
  248. package/dist/views/payment-page/payment-page.utils.js +57 -75
  249. package/dist/views/payment-page/services/payment-api.service.d.ts +16 -34
  250. package/dist/views/payment-page/services/payment-api.service.js +19 -27
  251. package/dist/views/search-page/search-page.component.d.ts +2 -0
  252. package/dist/views/search-page/search-page.component.js +39 -20
  253. package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +1 -0
  254. package/dist/views/suggestion-widget/suggestion-widget.component.js +6 -5
  255. package/package.json +24 -20
  256. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +0 -10
  257. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +0 -43
  258. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +0 -8
  259. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +0 -6
  260. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +0 -23
  261. package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +0 -10
  262. package/dist/components/attraction-discovery/attraction-discovery.component.js +0 -52
  263. package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +0 -4
  264. package/dist/components/attraction-discovery/attraction-discovery.constants.js +0 -5
  265. package/dist/components/attraction-discovery/attraction-discovery.d.ts +0 -8
  266. package/dist/components/attraction-discovery/attraction-discovery.js +0 -6
  267. package/dist/components/attraction-discovery/attraction-discovery.styles.js +0 -193
  268. package/dist/components/basket-rewards/basket-rewards.component.d.ts +0 -10
  269. package/dist/components/basket-rewards/basket-rewards.component.js +0 -52
  270. package/dist/components/basket-rewards/basket-rewards.d.ts +0 -8
  271. package/dist/components/basket-rewards/basket-rewards.js +0 -6
  272. package/dist/components/basket-rewards/basket-rewards.styles.js +0 -18
  273. package/dist/components/filter-chip/filter-chip.component.d.ts +0 -12
  274. package/dist/components/filter-chip/filter-chip.component.js +0 -68
  275. package/dist/components/filter-chip/filter-chip.constants.d.ts +0 -2
  276. package/dist/components/filter-chip/filter-chip.constants.js +0 -2
  277. package/dist/components/filter-chip/filter-chip.d.ts +0 -8
  278. package/dist/components/filter-chip/filter-chip.js +0 -6
  279. package/dist/components/filter-chip/filter-chip.styles.d.ts +0 -2
  280. package/dist/components/filter-chip/filter-chip.styles.js +0 -162
  281. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +0 -10
  282. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +0 -43
  283. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +0 -8
  284. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +0 -6
  285. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +0 -2
  286. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +0 -28
  287. package/dist/components/image-carousel/image-carousel.component.d.ts +0 -8
  288. package/dist/components/image-carousel/image-carousel.component.js +0 -36
  289. package/dist/components/image-carousel/image-carousel.d.ts +0 -8
  290. package/dist/components/image-carousel/image-carousel.js +0 -6
  291. package/dist/components/image-carousel/image-carousel.styles.d.ts +0 -2
  292. package/dist/components/image-carousel/image-carousel.styles.js +0 -72
  293. package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +0 -9
  294. package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +0 -45
  295. package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +0 -8
  296. package/dist/components/itinerary/itinerary-item/itinerary-item.js +0 -6
  297. package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +0 -2
  298. package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +0 -70
  299. package/dist/components/itinerary/itinerary.component.d.ts +0 -7
  300. package/dist/components/itinerary/itinerary.component.js +0 -23
  301. package/dist/components/itinerary/itinerary.d.ts +0 -8
  302. package/dist/components/itinerary/itinerary.js +0 -6
  303. package/dist/components/itinerary/itinerary.styles.d.ts +0 -2
  304. package/dist/components/itinerary/itinerary.styles.js +0 -15
  305. package/dist/components/marketing-tag/marketing-tag.component.d.ts +0 -5
  306. package/dist/components/marketing-tag/marketing-tag.component.js +0 -8
  307. package/dist/components/marketing-tag/marketing-tag.d.ts +0 -8
  308. package/dist/components/marketing-tag/marketing-tag.js +0 -6
  309. package/dist/components/marketing-tag/marketing-tag.styles.d.ts +0 -2
  310. package/dist/components/marketing-tag/marketing-tag.styles.js +0 -36
  311. package/dist/components/price/price.component.d.ts +0 -12
  312. package/dist/components/price/price.component.js +0 -38
  313. package/dist/components/price/price.d.ts +0 -8
  314. package/dist/components/price/price.js +0 -6
  315. package/dist/components/reviews/review/review.component.d.ts +0 -9
  316. package/dist/components/reviews/review/review.component.js +0 -41
  317. package/dist/components/reviews/review/review.d.ts +0 -8
  318. package/dist/components/reviews/review/review.js +0 -6
  319. package/dist/components/reviews/review/review.styles.d.ts +0 -2
  320. package/dist/components/reviews/review/review.styles.js +0 -45
  321. package/dist/components/reviews/reviews.component.d.ts +0 -9
  322. package/dist/components/reviews/reviews.component.js +0 -56
  323. package/dist/components/reviews/reviews.d.ts +0 -8
  324. package/dist/components/reviews/reviews.js +0 -6
  325. package/dist/components/reviews/reviews.styles.d.ts +0 -2
  326. package/dist/components/reviews/reviews.styles.js +0 -73
  327. package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +0 -10
  328. package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +0 -51
  329. package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +0 -8
  330. package/dist/components/selected-tickets-preview/selected-tickets-preview.js +0 -6
  331. package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +0 -2
  332. package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +0 -89
  333. package/dist/components/tag/tag.component.d.ts +0 -8
  334. package/dist/components/tag/tag.component.js +0 -33
  335. package/dist/components/tag/tag.constants.d.ts +0 -1
  336. package/dist/components/tag/tag.constants.js +0 -1
  337. package/dist/components/tag/tag.d.ts +0 -8
  338. package/dist/components/tag/tag.js +0 -6
  339. package/dist/components/tag/tag.styles.d.ts +0 -2
  340. package/dist/components/tag/tag.styles.js +0 -56
  341. package/dist/components/tooltip/tooltip.component.d.ts +0 -19
  342. package/dist/components/tooltip/tooltip.component.js +0 -124
  343. package/dist/components/tooltip/tooltip.d.ts +0 -8
  344. package/dist/components/tooltip/tooltip.js +0 -6
  345. package/dist/components/tooltip/tooltip.styles.d.ts +0 -2
  346. package/dist/components/tooltip/tooltip.styles.js +0 -79
  347. package/dist/core/signals.d.ts +0 -2
  348. package/dist/core/signals.js +0 -3
  349. package/dist/core/storybook/argTypes.d.ts +0 -1
  350. package/dist/core/storybook/argTypes.js +0 -46
  351. package/dist/core/storybook/cssprops.d.ts +0 -30
  352. package/dist/core/storybook/cssprops.js +0 -46
  353. package/dist/core/storybook/demo.d.ts +0 -4
  354. package/dist/core/storybook/demo.js +0 -17
  355. package/dist/core/types/api-errors.d.ts +0 -8
  356. package/dist/core/types/api-errors.js +0 -1
  357. package/dist/styles/contrast-fixtures.d.ts +0 -5
  358. package/dist/styles/contrast-fixtures.js +0 -131
  359. package/dist/views/payment-page/domain/payment-mappers.d.ts +0 -7
  360. package/dist/views/payment-page/domain/payment-mappers.js +0 -7
  361. package/dist/views/payment-page/domain/payment-validators.d.ts +0 -6
  362. package/dist/views/payment-page/domain/payment-validators.js +0 -6
  363. package/dist/views/payment-page/domain/recovery-payload.d.ts +0 -8
  364. package/dist/views/payment-page/domain/recovery-payload.js +0 -7
  365. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +0 -22
  366. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +0 -65
  367. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +0 -8
  368. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +0 -6
  369. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +0 -2
  370. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +0 -12
  371. package/dist/views/payment-page/payment-page.validation-schema.d.ts +0 -28
  372. package/dist/views/payment-page/payment-page.validation-schema.js +0 -42
  373. /package/dist/{components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts → views/chrome-only-page/chrome-only-page.styles.d.ts} +0 -0
  374. /package/dist/{components/attraction-discovery/attraction-discovery.styles.d.ts → views/details-page/partials/location-categories/location-categories.styles.d.ts} +0 -0
  375. /package/dist/{components/basket-rewards/basket-rewards.styles.d.ts → views/details-page/partials/location-highlights/location-highlights.styles.d.ts} +0 -0
@@ -49,7 +49,7 @@ let CorasTourDescription = class CorasTourDescription extends LitElement {
49
49
  ${sections.map((section) => !isNilOrEmpty(section.value)
50
50
  ? html `
51
51
  <coras-text-section label=${section.label()}>
52
- ${section.items ? this.renderAboutItems() : nothing}
52
+ ${section.items ? this.renderAboutItems(attraction) : nothing}
53
53
  ${unsafeHTML(sanitizeHtml(normalizeListItems(removeNewlinesAroundTags(section.value.trim()))))}
54
54
  </coras-text-section>
55
55
  `
@@ -57,9 +57,6 @@ let CorasTourDescription = class CorasTourDescription extends LitElement {
57
57
  `;
58
58
  }
59
59
  renderAboutItems(attraction) {
60
- if (!attraction) {
61
- return nothing;
62
- }
63
60
  const aboutItems = [
64
61
  {
65
62
  icon: "clock",
@@ -23,6 +23,7 @@ declare const CorasHelpPage_base: import("../../contexts/utils.js").Constructor<
23
23
  locale: import("../../index.js").SupportedLocales;
24
24
  locales: import("../../index.js").SupportedLocales[];
25
25
  loyaltyPoints: boolean;
26
+ logger: import("../../core/logger.js").Logger;
26
27
  client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
27
28
  getPageProperties(): HelpPageParamsEvent;
28
29
  dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
@@ -46,6 +47,7 @@ export declare class CorasHelpPage extends CorasHelpPage_base {
46
47
  private subjectSelectLabel;
47
48
  private subjectDropdownOpen;
48
49
  private showModal;
50
+ private submitFailed;
49
51
  processing: boolean;
50
52
  private formElement;
51
53
  protected updated(changedProperties: PropertyValues<this>): void;
@@ -10,7 +10,7 @@ import { msg, localized } from "@lit/localize";
10
10
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
11
11
  import styles from "./help-page.styles.js";
12
12
  import { sanitizeHtml } from "../../core/utils/html.js";
13
- import { apiGet, apiPost, withErrorHandling } from "../../core/api/queries.js";
13
+ import { apiGet, apiPost } from "../../core/api/queries.js";
14
14
  import "../../components/tabs/tabs.js";
15
15
  import "../../components/tab/tab.js";
16
16
  import "../../components/tab-panel/tab-panel.js";
@@ -28,6 +28,7 @@ import "../../components/layout/layout.js";
28
28
  import { BaseMixin } from "../../mixins/base.mixin.js";
29
29
  import { FIELD_CONFIG } from "./help-page.fields.js";
30
30
  import { renderNumberedTree } from "./help-page.utils.js";
31
+ import { getApiLanguageCode } from "../../core/utils/locale.js";
31
32
  import { Task } from "@lit/task";
32
33
  import { getLocale, setLocale } from "../../core/i18n/localization.js"; // used in renderFaqAccordion
33
34
  const faqPages = ["faq-attractions", "faq-music", "faq-theatres", "faq-sports"];
@@ -65,11 +66,12 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
65
66
  this.subjectSelectLabel = "";
66
67
  this.subjectDropdownOpen = false;
67
68
  this.showModal = false;
69
+ this.submitFailed = false;
68
70
  this.processing = false;
69
71
  this.helpTabTask = new Task(this, {
70
72
  task: async ([locale, content]) => {
71
73
  if (faqPages.includes(content) || infoPages.includes(content)) {
72
- return withErrorHandling(apiGet({
74
+ const { data } = await apiGet({
73
75
  client: this.client,
74
76
  distributorID: this.distributorID,
75
77
  locale,
@@ -77,7 +79,8 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
77
79
  path: {
78
80
  page_slug: content,
79
81
  },
80
- }));
82
+ });
83
+ return data;
81
84
  }
82
85
  },
83
86
  args: () => [this.locale, this.content],
@@ -85,12 +88,13 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
85
88
  this.subjectsTask = new Task(this, {
86
89
  task: async ([locale, content]) => {
87
90
  if (content === "contact") {
88
- return withErrorHandling(apiGet({
91
+ const { data } = await apiGet({
89
92
  client: this.client,
90
93
  distributorID: this.distributorID,
91
94
  locale,
92
95
  endpoint: "/{api_version}/customer-support/subjects",
93
- }));
96
+ });
97
+ return data;
94
98
  }
95
99
  },
96
100
  args: () => [this.locale, this.content],
@@ -147,7 +151,9 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
147
151
  updated(changedProperties) {
148
152
  super.updated(changedProperties);
149
153
  if (getLocale() !== this.locale) {
150
- setLocale(this.locale);
154
+ // `loadLocale` falls back on its own (see core/i18n/localization.ts), so
155
+ // the returned promise does not reject; an unknown code throws synchronously.
156
+ void setLocale(this.locale);
151
157
  }
152
158
  }
153
159
  handleFormValueChange(fieldName, value) {
@@ -241,10 +247,10 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
241
247
  return html ``;
242
248
  },
243
249
  pending: () => this.renderHelpSkeleton(),
244
- complete: (result) => {
245
- if (!result?.data)
250
+ complete: (page) => {
251
+ if (!page)
246
252
  return nothing;
247
- const data = result.data;
253
+ const data = page;
248
254
  return html `
249
255
  <coras-accordion>
250
256
  ${data.content.sections.map((section) => html `
@@ -388,8 +394,7 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
388
394
  error: () => html `
389
395
  <coras-select-option></coras-select-option>
390
396
  `,
391
- complete: (response) => {
392
- const subjects = response?.data ?? [];
397
+ complete: (subjects = []) => {
393
398
  return subjects.map((opt) => html `
394
399
  <coras-select-option
395
400
  key=${opt.value}
@@ -417,11 +422,11 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
417
422
  return this.helpTabTask.render({
418
423
  error: () => html ``,
419
424
  pending: () => this.renderHelpSkeleton(),
420
- complete: (result) => {
421
- if (!result?.data) {
425
+ complete: (page) => {
426
+ if (!page) {
422
427
  return nothing;
423
428
  }
424
- const data = result.data;
429
+ const data = page;
425
430
  const sections = data?.content?.sections ?? [];
426
431
  return html `
427
432
  <h1>${data?.title}</h1>
@@ -460,6 +465,7 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
460
465
  const isValid = this.validateForm();
461
466
  if (isValid) {
462
467
  this.processing = true;
468
+ this.submitFailed = false;
463
469
  try {
464
470
  const fullName = (this.formValues.name || "").trim();
465
471
  const [first, ...rest] = fullName.split(/\s+/).filter(Boolean);
@@ -467,13 +473,13 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
467
473
  const last_name = rest.join(" ") || first || "";
468
474
  const subject = this.formValues
469
475
  .subject;
470
- await withErrorHandling(apiPost({
476
+ await apiPost({
471
477
  client: this.client,
472
478
  distributorID: this.distributorID,
473
479
  locale: this.locale,
474
480
  endpoint: "/{api_version}/customer-support",
475
481
  body: {
476
- language_code: this.locale.split("-")[0],
482
+ language_code: getApiLanguageCode(this.locale),
477
483
  first_name,
478
484
  last_name,
479
485
  email: this.formValues.email,
@@ -484,11 +490,12 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
484
490
  attraction_location: null,
485
491
  attraction_date: null,
486
492
  },
487
- }));
493
+ });
488
494
  this.showModal = true;
489
495
  }
490
496
  catch {
491
- // TODO: consider showing an error message
497
+ // The form keeps its values so the user can simply resend.
498
+ this.submitFailed = true;
492
499
  }
493
500
  finally {
494
501
  this.processing = false;
@@ -504,6 +511,15 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
504
511
  ${this.renderInputField("eventName")}
505
512
  ${this.renderInputField("orderReference")}
506
513
  ${this.renderSubjectField()} ${this.renderInputField("message")}
514
+ ${this.submitFailed
515
+ ? html `<coras-message-card
516
+ variant="error"
517
+ assets-url="${this.assetsURL}"
518
+ data-testid="submit-error"
519
+ >
520
+ ${msg("We're sorry, we couldn't send your query. Please try again in a moment.")}
521
+ </coras-message-card>`
522
+ : nothing}
507
523
 
508
524
  <div class="footer">
509
525
  <coras-button
@@ -589,6 +605,9 @@ __decorate([
589
605
  __decorate([
590
606
  state()
591
607
  ], CorasHelpPage.prototype, "showModal", void 0);
608
+ __decorate([
609
+ state()
610
+ ], CorasHelpPage.prototype, "submitFailed", void 0);
592
611
  __decorate([
593
612
  property({ type: Boolean })
594
613
  ], CorasHelpPage.prototype, "processing", void 0);
@@ -1,4 +1,4 @@
1
- import { html } from "lit";
1
+ import { html, nothing } from "lit";
2
2
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
3
3
  import { sanitizeHtml } from "../../core/utils/html.js";
4
4
  function renderChildren(nodes = []) {
@@ -10,10 +10,11 @@ function renderChildren(nodes = []) {
10
10
  return null;
11
11
  return html `<li>
12
12
  ${unsafeHTML(sanitizeHtml(text))}
13
- ${node.items?.length &&
14
- html `<ol>
15
- ${renderChildren(node.items)}
16
- </ol>`}
13
+ ${node.items?.length
14
+ ? html `<ol>
15
+ ${renderChildren(node.items)}
16
+ </ol>`
17
+ : nothing}
17
18
  </li>`;
18
19
  })
19
20
  .filter(Boolean);
@@ -10,8 +10,6 @@ import "../../components/checkbox-group/checkbox-group.js";
10
10
  import "../../components/checkbox/checkbox.js";
11
11
  import "../../components/button/button.js";
12
12
  import "../../components/attraction-card/short/attraction-short-card.js";
13
- import "../../components/attraction-discovery/attraction-discovery.js";
14
- import "../../components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js";
15
13
  import "../../components/carousel/carousel.js";
16
14
  import "../../components/carousel/carousel-item/carousel-item.js";
17
15
  import "../../components/drawer/drawer.js";
@@ -39,6 +37,7 @@ declare const CorasLandingPage_base: import("../../contexts/utils.js").Construct
39
37
  locale: import("../../core/types/index.js").SupportedLocales;
40
38
  locales: import("../../core/types/index.js").SupportedLocales[];
41
39
  loyaltyPoints: boolean;
40
+ logger: import("../../core/logger.js").Logger;
42
41
  client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
43
42
  getPageProperties(): LandingPageParamsEvent;
44
43
  dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
@@ -66,14 +65,14 @@ export declare class CorasLandingPage extends CorasLandingPage_base {
66
65
  private selectedPriceOptions;
67
66
  private selectedDurationOptions;
68
67
  private _selectedCategories;
69
- private activePriceOptions;
70
- private activeDurationOptions;
71
- private activeCategorySlugs;
72
68
  private resizeObserver;
73
69
  private lastSavedRecentValue;
74
- protected firstUpdated(changed: PropertyValues): Promise<void>;
70
+ protected firstUpdated(changed: PropertyValues): void;
71
+ private locateAndObserveResize;
75
72
  disconnectedCallback(): void;
76
73
  protected updated(changedProperties: PropertyValues<this>): void;
74
+ private get appliedDurationOptions();
75
+ private get appliedCategorySlugs();
77
76
  private toggleDateFilter;
78
77
  handleCalendarMonthChange(event: CustomEvent): void;
79
78
  setSelectedDates(event: CustomEvent): void;
@@ -98,8 +97,6 @@ export declare class CorasLandingPage extends CorasLandingPage_base {
98
97
  private getDurationOptionLabel;
99
98
  private getCategoryName;
100
99
  private removeCategorySlug;
101
- private updateActiveFilters;
102
- private afterFilterChipRemove;
103
100
  private handleFiltersClearBtnClicked;
104
101
  private handleFiltersApplyBtnClicked;
105
102
  private updateSelectedDurationOptions;