@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.
Files changed (1101) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +8 -0
  4. package/README.md +51 -0
  5. package/dist/components/accordion/accordion-item/accordion-item.component.d.ts +9 -0
  6. package/dist/components/accordion/accordion-item/accordion-item.component.js +44 -0
  7. package/dist/components/accordion/accordion-item/accordion-item.d.ts +8 -0
  8. package/dist/components/accordion/accordion-item/accordion-item.js +6 -0
  9. package/dist/components/accordion/accordion-item/accordion-item.styles.d.ts +2 -0
  10. package/dist/components/accordion/accordion-item/accordion-item.styles.js +62 -0
  11. package/dist/components/accordion/accordion.component.d.ts +8 -0
  12. package/dist/components/accordion/accordion.component.js +31 -0
  13. package/dist/components/accordion/accordion.d.ts +8 -0
  14. package/dist/components/accordion/accordion.js +6 -0
  15. package/dist/components/accordion/accordion.styles.d.ts +2 -0
  16. package/dist/components/accordion/accordion.styles.js +13 -0
  17. package/dist/components/alert/alert.component.d.ts +11 -0
  18. package/dist/components/alert/alert.component.js +59 -0
  19. package/dist/components/alert/alert.d.ts +8 -0
  20. package/dist/components/alert/alert.js +6 -0
  21. package/dist/components/alert/alert.styles.d.ts +2 -0
  22. package/dist/components/alert/alert.styles.js +158 -0
  23. package/dist/components/alert/alert.types.d.ts +1 -0
  24. package/dist/components/alert/alert.types.js +1 -0
  25. package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +8 -0
  26. package/dist/components/attraction-card/base/attraction-card.mixin.js +109 -0
  27. package/dist/components/attraction-card/base/attraction-card.styles.d.ts +2 -0
  28. package/dist/components/attraction-card/base/attraction-card.styles.js +94 -0
  29. package/dist/components/attraction-card/base/attraction-card.types.d.ts +24 -0
  30. package/dist/components/attraction-card/base/attraction-card.types.js +1 -0
  31. package/dist/components/attraction-card/long/attraction-long-card.component.d.ts +10 -0
  32. package/dist/components/attraction-card/long/attraction-long-card.component.js +78 -0
  33. package/dist/components/attraction-card/long/attraction-long-card.d.ts +8 -0
  34. package/dist/components/attraction-card/long/attraction-long-card.js +6 -0
  35. package/dist/components/attraction-card/long/attraction-long-card.styles.d.ts +2 -0
  36. package/dist/components/attraction-card/long/attraction-long-card.styles.js +127 -0
  37. package/dist/components/attraction-card/short/attraction-short-card.component.d.ts +10 -0
  38. package/dist/components/attraction-card/short/attraction-short-card.component.js +75 -0
  39. package/dist/components/attraction-card/short/attraction-short-card.d.ts +8 -0
  40. package/dist/components/attraction-card/short/attraction-short-card.js +6 -0
  41. package/dist/components/attraction-card/short/attraction-short-card.styles.d.ts +2 -0
  42. package/dist/components/attraction-card/short/attraction-short-card.styles.js +66 -0
  43. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +10 -0
  44. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +43 -0
  45. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +8 -0
  46. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +6 -0
  47. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts +2 -0
  48. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +23 -0
  49. package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +10 -0
  50. package/dist/components/attraction-discovery/attraction-discovery.component.js +52 -0
  51. package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +4 -0
  52. package/dist/components/attraction-discovery/attraction-discovery.constants.js +5 -0
  53. package/dist/components/attraction-discovery/attraction-discovery.d.ts +8 -0
  54. package/dist/components/attraction-discovery/attraction-discovery.js +6 -0
  55. package/dist/components/attraction-discovery/attraction-discovery.styles.d.ts +2 -0
  56. package/dist/components/attraction-discovery/attraction-discovery.styles.js +193 -0
  57. package/dist/components/attraction-header/attraction-header.component.d.ts +31 -0
  58. package/dist/components/attraction-header/attraction-header.component.js +69 -0
  59. package/dist/components/attraction-header/attraction-header.d.ts +8 -0
  60. package/dist/components/attraction-header/attraction-header.js +6 -0
  61. package/dist/components/attraction-header/attraction-header.styles.d.ts +2 -0
  62. package/dist/components/attraction-header/attraction-header.styles.js +41 -0
  63. package/dist/components/attraction-header/attraction-header.utils.d.ts +20 -0
  64. package/dist/components/attraction-header/attraction-header.utils.js +37 -0
  65. package/dist/components/attraction-option/attraction-option.component.d.ts +11 -0
  66. package/dist/components/attraction-option/attraction-option.component.js +82 -0
  67. package/dist/components/attraction-option/attraction-option.d.ts +8 -0
  68. package/dist/components/attraction-option/attraction-option.js +6 -0
  69. package/dist/components/attraction-option/attraction-option.styles.d.ts +2 -0
  70. package/dist/components/attraction-option/attraction-option.styles.js +132 -0
  71. package/dist/components/basket/basket.component.d.ts +28 -0
  72. package/dist/components/basket/basket.component.js +162 -0
  73. package/dist/components/basket/basket.d.ts +8 -0
  74. package/dist/components/basket/basket.js +6 -0
  75. package/dist/components/basket/basket.styles.d.ts +2 -0
  76. package/dist/components/basket/basket.styles.js +196 -0
  77. package/dist/components/basket-empty/basket-empty.component.d.ts +5 -0
  78. package/dist/components/basket-empty/basket-empty.component.js +24 -0
  79. package/dist/components/basket-empty/basket-empty.d.ts +8 -0
  80. package/dist/components/basket-empty/basket-empty.js +6 -0
  81. package/dist/components/basket-empty/basket-empty.styles.d.ts +2 -0
  82. package/dist/components/basket-empty/basket-empty.styles.js +39 -0
  83. package/dist/components/basket-item/basket-item.component.d.ts +27 -0
  84. package/dist/components/basket-item/basket-item.component.js +153 -0
  85. package/dist/components/basket-item/basket-item.d.ts +8 -0
  86. package/dist/components/basket-item/basket-item.js +6 -0
  87. package/dist/components/basket-item/basket-item.styles.d.ts +2 -0
  88. package/dist/components/basket-item/basket-item.styles.js +178 -0
  89. package/dist/components/basket-item-ticket/basket-item-ticket.component.d.ts +9 -0
  90. package/dist/components/basket-item-ticket/basket-item-ticket.component.js +57 -0
  91. package/dist/components/basket-item-ticket/basket-item-ticket.d.ts +8 -0
  92. package/dist/components/basket-item-ticket/basket-item-ticket.js +6 -0
  93. package/dist/components/basket-item-ticket/basket-item-ticket.styles.d.ts +2 -0
  94. package/dist/components/basket-item-ticket/basket-item-ticket.styles.js +59 -0
  95. package/dist/components/basket-mobile/basket-mobile.component.d.ts +10 -0
  96. package/dist/components/basket-mobile/basket-mobile.component.js +59 -0
  97. package/dist/components/basket-mobile/basket-mobile.d.ts +8 -0
  98. package/dist/components/basket-mobile/basket-mobile.js +6 -0
  99. package/dist/components/basket-mobile/basket-mobile.styles.d.ts +2 -0
  100. package/dist/components/basket-mobile/basket-mobile.styles.js +71 -0
  101. package/dist/components/basket-rewards/basket-rewards.component.d.ts +10 -0
  102. package/dist/components/basket-rewards/basket-rewards.component.js +52 -0
  103. package/dist/components/basket-rewards/basket-rewards.d.ts +8 -0
  104. package/dist/components/basket-rewards/basket-rewards.js +6 -0
  105. package/dist/components/basket-rewards/basket-rewards.styles.d.ts +2 -0
  106. package/dist/components/basket-rewards/basket-rewards.styles.js +18 -0
  107. package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.d.ts +10 -0
  108. package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.js +17 -0
  109. package/dist/components/better-carousel/better-carousel-item/better-carousel-item.d.ts +8 -0
  110. package/dist/components/better-carousel/better-carousel-item/better-carousel-item.js +6 -0
  111. package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.d.ts +2 -0
  112. package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.js +16 -0
  113. package/dist/components/better-carousel/better-carousel.component.d.ts +94 -0
  114. package/dist/components/better-carousel/better-carousel.component.js +335 -0
  115. package/dist/components/better-carousel/better-carousel.d.ts +8 -0
  116. package/dist/components/better-carousel/better-carousel.js +6 -0
  117. package/dist/components/better-carousel/better-carousel.styles.d.ts +2 -0
  118. package/dist/components/better-carousel/better-carousel.styles.js +159 -0
  119. package/dist/components/bottom-drawer/bottom-drawer.component.d.ts +27 -0
  120. package/dist/components/bottom-drawer/bottom-drawer.component.js +210 -0
  121. package/dist/components/bottom-drawer/bottom-drawer.d.ts +8 -0
  122. package/dist/components/bottom-drawer/bottom-drawer.js +6 -0
  123. package/dist/components/bottom-drawer/bottom-drawer.styles.d.ts +2 -0
  124. package/dist/components/bottom-drawer/bottom-drawer.styles.js +88 -0
  125. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -0
  126. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +35 -0
  127. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.d.ts +8 -0
  128. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.js +6 -0
  129. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
  130. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +48 -0
  131. package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +6 -0
  132. package/dist/components/breadcrumbs/breadcrumbs.component.js +28 -0
  133. package/dist/components/breadcrumbs/breadcrumbs.d.ts +8 -0
  134. package/dist/components/breadcrumbs/breadcrumbs.js +6 -0
  135. package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +2 -0
  136. package/dist/components/breadcrumbs/breadcrumbs.styles.js +14 -0
  137. package/dist/components/button/button.component.d.ts +29 -0
  138. package/dist/components/button/button.component.js +156 -0
  139. package/dist/components/button/button.constants.d.ts +5 -0
  140. package/dist/components/button/button.constants.js +11 -0
  141. package/dist/components/button/button.d.ts +8 -0
  142. package/dist/components/button/button.js +6 -0
  143. package/dist/components/button/button.styles.d.ts +2 -0
  144. package/dist/components/button/button.styles.js +356 -0
  145. package/dist/components/calendar/base/calendar.mixin.d.ts +3 -0
  146. package/dist/components/calendar/base/calendar.mixin.js +231 -0
  147. package/dist/components/calendar/base/calendar.styles.d.ts +2 -0
  148. package/dist/components/calendar/base/calendar.styles.js +122 -0
  149. package/dist/components/calendar/base/calendar.types.d.ts +21 -0
  150. package/dist/components/calendar/base/calendar.types.js +1 -0
  151. package/dist/components/calendar/dual/dual.component.d.ts +11 -0
  152. package/dist/components/calendar/dual/dual.component.js +93 -0
  153. package/dist/components/calendar/dual/dual.d.ts +8 -0
  154. package/dist/components/calendar/dual/dual.js +6 -0
  155. package/dist/components/calendar/dual/dual.styles.d.ts +2 -0
  156. package/dist/components/calendar/dual/dual.styles.js +13 -0
  157. package/dist/components/calendar/month/month.component.d.ts +14 -0
  158. package/dist/components/calendar/month/month.component.js +83 -0
  159. package/dist/components/calendar/month/month.d.ts +8 -0
  160. package/dist/components/calendar/month/month.js +6 -0
  161. package/dist/components/calendar/month/month.styles.d.ts +2 -0
  162. package/dist/components/calendar/month/month.styles.js +5 -0
  163. package/dist/components/calendar/multi/multi.component.d.ts +9 -0
  164. package/dist/components/calendar/multi/multi.component.js +59 -0
  165. package/dist/components/calendar/multi/multi.d.ts +8 -0
  166. package/dist/components/calendar/multi/multi.js +6 -0
  167. package/dist/components/calendar/multi/multi.styles.d.ts +2 -0
  168. package/dist/components/calendar/multi/multi.styles.js +23 -0
  169. package/dist/components/carousel/carousel-item/carousel-item.component.d.ts +18 -0
  170. package/dist/components/carousel/carousel-item/carousel-item.component.js +84 -0
  171. package/dist/components/carousel/carousel-item/carousel-item.constants.d.ts +4 -0
  172. package/dist/components/carousel/carousel-item/carousel-item.constants.js +5 -0
  173. package/dist/components/carousel/carousel-item/carousel-item.d.ts +8 -0
  174. package/dist/components/carousel/carousel-item/carousel-item.js +6 -0
  175. package/dist/components/carousel/carousel-item/carousel-item.styles.d.ts +2 -0
  176. package/dist/components/carousel/carousel-item/carousel-item.styles.js +86 -0
  177. package/dist/components/carousel/carousel.component.d.ts +24 -0
  178. package/dist/components/carousel/carousel.component.js +132 -0
  179. package/dist/components/carousel/carousel.d.ts +8 -0
  180. package/dist/components/carousel/carousel.js +6 -0
  181. package/dist/components/carousel/carousel.styles.d.ts +2 -0
  182. package/dist/components/carousel/carousel.styles.js +72 -0
  183. package/dist/components/categories-tree/categories-tree.component.d.ts +15 -0
  184. package/dist/components/categories-tree/categories-tree.component.js +202 -0
  185. package/dist/components/categories-tree/categories-tree.d.ts +8 -0
  186. package/dist/components/categories-tree/categories-tree.js +6 -0
  187. package/dist/components/categories-tree/categories-tree.styles.d.ts +2 -0
  188. package/dist/components/categories-tree/categories-tree.styles.js +14 -0
  189. package/dist/components/category-tag/category-tag.component.d.ts +12 -0
  190. package/dist/components/category-tag/category-tag.component.js +78 -0
  191. package/dist/components/category-tag/category-tag.d.ts +8 -0
  192. package/dist/components/category-tag/category-tag.js +6 -0
  193. package/dist/components/category-tag/category-tag.styles.d.ts +2 -0
  194. package/dist/components/category-tag/category-tag.styles.js +99 -0
  195. package/dist/components/category-tag/category-tag.types.d.ts +8 -0
  196. package/dist/components/category-tag/category-tag.types.js +1 -0
  197. package/dist/components/checkbox/checkbox.component.d.ts +13 -0
  198. package/dist/components/checkbox/checkbox.component.js +68 -0
  199. package/dist/components/checkbox/checkbox.constants.d.ts +5 -0
  200. package/dist/components/checkbox/checkbox.constants.js +6 -0
  201. package/dist/components/checkbox/checkbox.d.ts +8 -0
  202. package/dist/components/checkbox/checkbox.js +6 -0
  203. package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
  204. package/dist/components/checkbox/checkbox.styles.js +129 -0
  205. package/dist/components/checkbox-group/checkbox-group.component.d.ts +6 -0
  206. package/dist/components/checkbox-group/checkbox-group.component.js +14 -0
  207. package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
  208. package/dist/components/checkbox-group/checkbox-group.js +6 -0
  209. package/dist/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
  210. package/dist/components/checkbox-group/checkbox-group.styles.js +40 -0
  211. package/dist/components/checkbox-group/checkbox-group.types.d.ts +12 -0
  212. package/dist/components/checkbox-group/checkbox-group.types.js +1 -0
  213. package/dist/components/chip/chip.component.d.ts +11 -0
  214. package/dist/components/chip/chip.component.js +53 -0
  215. package/dist/components/chip/chip.constants.d.ts +1 -0
  216. package/dist/components/chip/chip.constants.js +1 -0
  217. package/dist/components/chip/chip.d.ts +8 -0
  218. package/dist/components/chip/chip.js +6 -0
  219. package/dist/components/chip/chip.styles.d.ts +2 -0
  220. package/dist/components/chip/chip.styles.js +103 -0
  221. package/dist/components/collect-fida/collect-fida.component.d.ts +11 -0
  222. package/dist/components/collect-fida/collect-fida.component.js +75 -0
  223. package/dist/components/collect-fida/collect-fida.d.ts +8 -0
  224. package/dist/components/collect-fida/collect-fida.js +6 -0
  225. package/dist/components/collect-fida/collect-fida.styles.d.ts +2 -0
  226. package/dist/components/collect-fida/collect-fida.styles.js +95 -0
  227. package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +162 -0
  228. package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +570 -0
  229. package/dist/components/crypto-auth-modal/crypto-auth-modal.d.ts +8 -0
  230. package/dist/components/crypto-auth-modal/crypto-auth-modal.js +6 -0
  231. package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.d.ts +2 -0
  232. package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.js +141 -0
  233. package/dist/components/currencies-list/currencies-list.component.d.ts +15 -0
  234. package/dist/components/currencies-list/currencies-list.component.js +50 -0
  235. package/dist/components/currencies-list/currencies-list.d.ts +8 -0
  236. package/dist/components/currencies-list/currencies-list.js +6 -0
  237. package/dist/components/currencies-list/currencies-list.styles.d.ts +2 -0
  238. package/dist/components/currencies-list/currencies-list.styles.js +5 -0
  239. package/dist/components/dialog/dialog.component.d.ts +69 -0
  240. package/dist/components/dialog/dialog.component.js +373 -0
  241. package/dist/components/dialog/dialog.d.ts +8 -0
  242. package/dist/components/dialog/dialog.js +6 -0
  243. package/dist/components/dialog/dialog.styles.d.ts +2 -0
  244. package/dist/components/dialog/dialog.styles.js +264 -0
  245. package/dist/components/drawer/drawer.component.d.ts +12 -0
  246. package/dist/components/drawer/drawer.component.js +89 -0
  247. package/dist/components/drawer/drawer.d.ts +8 -0
  248. package/dist/components/drawer/drawer.js +6 -0
  249. package/dist/components/drawer/drawer.styles.d.ts +2 -0
  250. package/dist/components/drawer/drawer.styles.js +129 -0
  251. package/dist/components/dropdown/dropdown.component.d.ts +25 -0
  252. package/dist/components/dropdown/dropdown.component.js +204 -0
  253. package/dist/components/dropdown/dropdown.d.ts +8 -0
  254. package/dist/components/dropdown/dropdown.js +6 -0
  255. package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
  256. package/dist/components/dropdown/dropdown.styles.js +60 -0
  257. package/dist/components/expiration-timer/expiration-timer.component.d.ts +12 -0
  258. package/dist/components/expiration-timer/expiration-timer.component.js +52 -0
  259. package/dist/components/expiration-timer/expiration-timer.d.ts +8 -0
  260. package/dist/components/expiration-timer/expiration-timer.js +6 -0
  261. package/dist/components/expiration-timer/expiration-timer.styles.d.ts +2 -0
  262. package/dist/components/expiration-timer/expiration-timer.styles.js +37 -0
  263. package/dist/components/explore-card/explore-card.component.d.ts +11 -0
  264. package/dist/components/explore-card/explore-card.component.js +48 -0
  265. package/dist/components/explore-card/explore-card.constants.d.ts +4 -0
  266. package/dist/components/explore-card/explore-card.constants.js +5 -0
  267. package/dist/components/explore-card/explore-card.d.ts +8 -0
  268. package/dist/components/explore-card/explore-card.js +6 -0
  269. package/dist/components/explore-card/explore-card.styles.d.ts +2 -0
  270. package/dist/components/explore-card/explore-card.styles.js +71 -0
  271. package/dist/components/filter-chip/filter-chip.component.d.ts +12 -0
  272. package/dist/components/filter-chip/filter-chip.component.js +68 -0
  273. package/dist/components/filter-chip/filter-chip.constants.d.ts +2 -0
  274. package/dist/components/filter-chip/filter-chip.constants.js +2 -0
  275. package/dist/components/filter-chip/filter-chip.d.ts +8 -0
  276. package/dist/components/filter-chip/filter-chip.js +6 -0
  277. package/dist/components/filter-chip/filter-chip.styles.d.ts +2 -0
  278. package/dist/components/filter-chip/filter-chip.styles.js +160 -0
  279. package/dist/components/filters-drawer/filters-drawer.component.d.ts +9 -0
  280. package/dist/components/filters-drawer/filters-drawer.component.js +55 -0
  281. package/dist/components/filters-drawer/filters-drawer.d.ts +8 -0
  282. package/dist/components/filters-drawer/filters-drawer.js +6 -0
  283. package/dist/components/filters-drawer/filters-drawer.styles.d.ts +2 -0
  284. package/dist/components/filters-drawer/filters-drawer.styles.js +60 -0
  285. package/dist/components/flag-icon/flag-icon.component.d.ts +9 -0
  286. package/dist/components/flag-icon/flag-icon.component.js +45 -0
  287. package/dist/components/flag-icon/flag-icon.constants.d.ts +1 -0
  288. package/dist/components/flag-icon/flag-icon.constants.js +371 -0
  289. package/dist/components/flag-icon/flag-icon.d.ts +8 -0
  290. package/dist/components/flag-icon/flag-icon.js +6 -0
  291. package/dist/components/flag-icon/flag-icon.styles.d.ts +2 -0
  292. package/dist/components/flag-icon/flag-icon.styles.js +16 -0
  293. package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.d.ts +8 -0
  294. package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.js +40 -0
  295. package/dist/components/footer-menu/footer-menu-item/footer-menu-item.d.ts +8 -0
  296. package/dist/components/footer-menu/footer-menu-item/footer-menu-item.js +6 -0
  297. package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.d.ts +2 -0
  298. package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.js +55 -0
  299. package/dist/components/footer-menu/footer-menu.component.d.ts +5 -0
  300. package/dist/components/footer-menu/footer-menu.component.js +17 -0
  301. package/dist/components/footer-menu/footer-menu.d.ts +8 -0
  302. package/dist/components/footer-menu/footer-menu.js +6 -0
  303. package/dist/components/footer-menu/footer-menu.styles.d.ts +2 -0
  304. package/dist/components/footer-menu/footer-menu.styles.js +47 -0
  305. package/dist/components/icon/icon.component.d.ts +14 -0
  306. package/dist/components/icon/icon.component.js +104 -0
  307. package/dist/components/icon/icon.d.ts +8 -0
  308. package/dist/components/icon/icon.js +6 -0
  309. package/dist/components/icon/icon.styles.d.ts +2 -0
  310. package/dist/components/icon/icon.styles.js +43 -0
  311. package/dist/components/icon/icon.types.d.ts +2 -0
  312. package/dist/components/icon/icon.types.js +1 -0
  313. package/dist/components/icon-list/icon-list-item/icon-list-item.component.d.ts +8 -0
  314. package/dist/components/icon-list/icon-list-item/icon-list-item.component.js +42 -0
  315. package/dist/components/icon-list/icon-list-item/icon-list-item.d.ts +8 -0
  316. package/dist/components/icon-list/icon-list-item/icon-list-item.js +6 -0
  317. package/dist/components/icon-list/icon-list-item/icon-list-item.styles.d.ts +2 -0
  318. package/dist/components/icon-list/icon-list-item/icon-list-item.styles.js +23 -0
  319. package/dist/components/icon-list/icon-list.component.d.ts +5 -0
  320. package/dist/components/icon-list/icon-list.component.js +12 -0
  321. package/dist/components/icon-list/icon-list.d.ts +8 -0
  322. package/dist/components/icon-list/icon-list.js +6 -0
  323. package/dist/components/icon-list/icon-list.styles.d.ts +2 -0
  324. package/dist/components/icon-list/icon-list.styles.js +15 -0
  325. package/dist/components/image/image.component.d.ts +83 -0
  326. package/dist/components/image/image.component.js +301 -0
  327. package/dist/components/image/image.d.ts +8 -0
  328. package/dist/components/image/image.js +6 -0
  329. package/dist/components/image/image.styles.d.ts +2 -0
  330. package/dist/components/image/image.styles.js +88 -0
  331. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +10 -0
  332. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +43 -0
  333. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +8 -0
  334. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +6 -0
  335. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +2 -0
  336. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +28 -0
  337. package/dist/components/image-carousel/image-carousel.component.d.ts +8 -0
  338. package/dist/components/image-carousel/image-carousel.component.js +36 -0
  339. package/dist/components/image-carousel/image-carousel.d.ts +8 -0
  340. package/dist/components/image-carousel/image-carousel.js +6 -0
  341. package/dist/components/image-carousel/image-carousel.styles.d.ts +2 -0
  342. package/dist/components/image-carousel/image-carousel.styles.js +72 -0
  343. package/dist/components/image-chip/image-chip.component.d.ts +8 -0
  344. package/dist/components/image-chip/image-chip.component.js +33 -0
  345. package/dist/components/image-chip/image-chip.d.ts +8 -0
  346. package/dist/components/image-chip/image-chip.js +6 -0
  347. package/dist/components/image-chip/image-chip.styles.d.ts +2 -0
  348. package/dist/components/image-chip/image-chip.styles.js +43 -0
  349. package/dist/components/image-viewer/image-viewer.component.d.ts +49 -0
  350. package/dist/components/image-viewer/image-viewer.component.js +193 -0
  351. package/dist/components/image-viewer/image-viewer.d.ts +8 -0
  352. package/dist/components/image-viewer/image-viewer.js +6 -0
  353. package/dist/components/image-viewer/image-viewer.styles.d.ts +2 -0
  354. package/dist/components/image-viewer/image-viewer.styles.js +146 -0
  355. package/dist/components/input-field/input-field.component.d.ts +54 -0
  356. package/dist/components/input-field/input-field.component.js +331 -0
  357. package/dist/components/input-field/input-field.d.ts +8 -0
  358. package/dist/components/input-field/input-field.js +6 -0
  359. package/dist/components/input-field/input-field.styles.d.ts +2 -0
  360. package/dist/components/input-field/input-field.styles.js +274 -0
  361. package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +9 -0
  362. package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +45 -0
  363. package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +8 -0
  364. package/dist/components/itinerary/itinerary-item/itinerary-item.js +6 -0
  365. package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +2 -0
  366. package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +70 -0
  367. package/dist/components/itinerary/itinerary.component.d.ts +7 -0
  368. package/dist/components/itinerary/itinerary.component.js +23 -0
  369. package/dist/components/itinerary/itinerary.d.ts +8 -0
  370. package/dist/components/itinerary/itinerary.js +6 -0
  371. package/dist/components/itinerary/itinerary.styles.d.ts +2 -0
  372. package/dist/components/itinerary/itinerary.styles.js +15 -0
  373. package/dist/components/joined-fields/joined-fields.component.d.ts +16 -0
  374. package/dist/components/joined-fields/joined-fields.component.js +93 -0
  375. package/dist/components/joined-fields/joined-fields.d.ts +8 -0
  376. package/dist/components/joined-fields/joined-fields.js +6 -0
  377. package/dist/components/joined-fields/joined-fields.styles.d.ts +2 -0
  378. package/dist/components/joined-fields/joined-fields.styles.js +101 -0
  379. package/dist/components/layout/layout.component.d.ts +10 -0
  380. package/dist/components/layout/layout.component.js +34 -0
  381. package/dist/components/layout/layout.d.ts +8 -0
  382. package/dist/components/layout/layout.js +6 -0
  383. package/dist/components/layout/layout.styles.d.ts +2 -0
  384. package/dist/components/layout/layout.styles.js +31 -0
  385. package/dist/components/list/list-item/list-item.component.d.ts +9 -0
  386. package/dist/components/list/list-item/list-item.component.js +30 -0
  387. package/dist/components/list/list-item/list-item.d.ts +8 -0
  388. package/dist/components/list/list-item/list-item.js +6 -0
  389. package/dist/components/list/list-item/list-item.styles.d.ts +2 -0
  390. package/dist/components/list/list-item/list-item.styles.js +34 -0
  391. package/dist/components/list/list.component.d.ts +6 -0
  392. package/dist/components/list/list.component.js +25 -0
  393. package/dist/components/list/list.d.ts +8 -0
  394. package/dist/components/list/list.js +6 -0
  395. package/dist/components/list/list.styles.d.ts +2 -0
  396. package/dist/components/list/list.styles.js +24 -0
  397. package/dist/components/loading-spinner/loading-spinner.component.d.ts +7 -0
  398. package/dist/components/loading-spinner/loading-spinner.component.js +22 -0
  399. package/dist/components/loading-spinner/loading-spinner.d.ts +8 -0
  400. package/dist/components/loading-spinner/loading-spinner.js +6 -0
  401. package/dist/components/loading-spinner/loading-spinner.styles.d.ts +2 -0
  402. package/dist/components/loading-spinner/loading-spinner.styles.js +47 -0
  403. package/dist/components/loading-spinner/loading-spinner.types.d.ts +1 -0
  404. package/dist/components/loading-spinner/loading-spinner.types.js +1 -0
  405. package/dist/components/locales-list/locales-list.component.d.ts +17 -0
  406. package/dist/components/locales-list/locales-list.component.js +55 -0
  407. package/dist/components/locales-list/locales-list.constants.d.ts +2 -0
  408. package/dist/components/locales-list/locales-list.constants.js +370 -0
  409. package/dist/components/locales-list/locales-list.d.ts +8 -0
  410. package/dist/components/locales-list/locales-list.js +6 -0
  411. package/dist/components/locales-list/locales-list.styles.d.ts +2 -0
  412. package/dist/components/locales-list/locales-list.styles.js +5 -0
  413. package/dist/components/location-image/location-image.component.d.ts +29 -0
  414. package/dist/components/location-image/location-image.component.js +135 -0
  415. package/dist/components/location-image/location-image.d.ts +8 -0
  416. package/dist/components/location-image/location-image.js +6 -0
  417. package/dist/components/location-image/location-image.styles.d.ts +2 -0
  418. package/dist/components/location-image/location-image.styles.js +49 -0
  419. package/dist/components/locations-results/locations-results.component.d.ts +21 -0
  420. package/dist/components/locations-results/locations-results.component.js +83 -0
  421. package/dist/components/locations-results/locations-results.d.ts +8 -0
  422. package/dist/components/locations-results/locations-results.js +6 -0
  423. package/dist/components/locations-results/locations-results.styles.d.ts +2 -0
  424. package/dist/components/locations-results/locations-results.styles.js +64 -0
  425. package/dist/components/marketing-tag/marketing-tag.component.d.ts +5 -0
  426. package/dist/components/marketing-tag/marketing-tag.component.js +8 -0
  427. package/dist/components/marketing-tag/marketing-tag.d.ts +8 -0
  428. package/dist/components/marketing-tag/marketing-tag.js +6 -0
  429. package/dist/components/marketing-tag/marketing-tag.styles.d.ts +2 -0
  430. package/dist/components/marketing-tag/marketing-tag.styles.js +36 -0
  431. package/dist/components/message-card/message-card.component.d.ts +12 -0
  432. package/dist/components/message-card/message-card.component.js +56 -0
  433. package/dist/components/message-card/message-card.d.ts +8 -0
  434. package/dist/components/message-card/message-card.js +6 -0
  435. package/dist/components/message-card/message-card.styles.d.ts +2 -0
  436. package/dist/components/message-card/message-card.styles.js +72 -0
  437. package/dist/components/message-card/message-card.types.d.ts +1 -0
  438. package/dist/components/message-card/message-card.types.js +1 -0
  439. package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +9 -0
  440. package/dist/components/mobile-menu-item/mobile-menu-item.component.js +43 -0
  441. package/dist/components/mobile-menu-item/mobile-menu-item.d.ts +8 -0
  442. package/dist/components/mobile-menu-item/mobile-menu-item.js +6 -0
  443. package/dist/components/mobile-menu-item/mobile-menu-item.styles.d.ts +2 -0
  444. package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +46 -0
  445. package/dist/components/option-group/option-chip/option-chip.component.d.ts +7 -0
  446. package/dist/components/option-group/option-chip/option-chip.component.js +35 -0
  447. package/dist/components/option-group/option-chip/option-chip.d.ts +8 -0
  448. package/dist/components/option-group/option-chip/option-chip.js +6 -0
  449. package/dist/components/option-group/option-chip/option-chip.styles.d.ts +2 -0
  450. package/dist/components/option-group/option-chip/option-chip.styles.js +45 -0
  451. package/dist/components/option-group/option-group.component.d.ts +6 -0
  452. package/dist/components/option-group/option-group.component.js +31 -0
  453. package/dist/components/option-group/option-group.d.ts +8 -0
  454. package/dist/components/option-group/option-group.js +6 -0
  455. package/dist/components/option-group/option-group.styles.d.ts +2 -0
  456. package/dist/components/option-group/option-group.styles.js +30 -0
  457. package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.d.ts +11 -0
  458. package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.js +81 -0
  459. package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.d.ts +8 -0
  460. package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.js +6 -0
  461. package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.d.ts +2 -0
  462. package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.js +107 -0
  463. package/dist/components/order-confirmation/order-confirmation.component.d.ts +12 -0
  464. package/dist/components/order-confirmation/order-confirmation.component.js +72 -0
  465. package/dist/components/order-confirmation/order-confirmation.d.ts +8 -0
  466. package/dist/components/order-confirmation/order-confirmation.js +6 -0
  467. package/dist/components/order-confirmation/order-confirmation.styles.d.ts +2 -0
  468. package/dist/components/order-confirmation/order-confirmation.styles.js +102 -0
  469. package/dist/components/otp/otp.component.d.ts +24 -0
  470. package/dist/components/otp/otp.component.js +148 -0
  471. package/dist/components/otp/otp.d.ts +8 -0
  472. package/dist/components/otp/otp.js +6 -0
  473. package/dist/components/otp/otp.styles.d.ts +2 -0
  474. package/dist/components/otp/otp.styles.js +87 -0
  475. package/dist/components/otp/otp.utils.d.ts +9 -0
  476. package/dist/components/otp/otp.utils.js +26 -0
  477. package/dist/components/overlay/overlay.component.d.ts +13 -0
  478. package/dist/components/overlay/overlay.component.js +52 -0
  479. package/dist/components/overlay/overlay.d.ts +8 -0
  480. package/dist/components/overlay/overlay.js +6 -0
  481. package/dist/components/overlay/overlay.styles.d.ts +2 -0
  482. package/dist/components/overlay/overlay.styles.js +39 -0
  483. package/dist/components/pay-in/pay-in.component.d.ts +10 -0
  484. package/dist/components/pay-in/pay-in.component.js +52 -0
  485. package/dist/components/pay-in/pay-in.d.ts +8 -0
  486. package/dist/components/pay-in/pay-in.js +6 -0
  487. package/dist/components/pay-in/pay-in.styles.d.ts +2 -0
  488. package/dist/components/pay-in/pay-in.styles.js +58 -0
  489. package/dist/components/payment-fiat-method/payment-fiat-method.component.d.ts +16 -0
  490. package/dist/components/payment-fiat-method/payment-fiat-method.component.js +63 -0
  491. package/dist/components/payment-fiat-method/payment-fiat-method.d.ts +8 -0
  492. package/dist/components/payment-fiat-method/payment-fiat-method.js +6 -0
  493. package/dist/components/payment-fiat-method/payment-fiat-method.styles.d.ts +2 -0
  494. package/dist/components/payment-fiat-method/payment-fiat-method.styles.js +38 -0
  495. package/dist/components/payment-option/payment-option.component.d.ts +38 -0
  496. package/dist/components/payment-option/payment-option.component.js +131 -0
  497. package/dist/components/payment-option/payment-option.d.ts +8 -0
  498. package/dist/components/payment-option/payment-option.js +6 -0
  499. package/dist/components/payment-option/payment-option.styles.d.ts +2 -0
  500. package/dist/components/payment-option/payment-option.styles.js +206 -0
  501. package/dist/components/performance-time/performance-time.component.d.ts +9 -0
  502. package/dist/components/performance-time/performance-time.component.js +47 -0
  503. package/dist/components/performance-time/performance-time.d.ts +8 -0
  504. package/dist/components/performance-time/performance-time.js +6 -0
  505. package/dist/components/performance-time/performance-time.styles.d.ts +2 -0
  506. package/dist/components/performance-time/performance-time.styles.js +53 -0
  507. package/dist/components/phone-country-code/phone-country-code.component.d.ts +13 -0
  508. package/dist/components/phone-country-code/phone-country-code.component.js +53 -0
  509. package/dist/components/phone-country-code/phone-country-code.d.ts +8 -0
  510. package/dist/components/phone-country-code/phone-country-code.js +6 -0
  511. package/dist/components/phone-country-code/phone-country-code.styles.d.ts +2 -0
  512. package/dist/components/phone-country-code/phone-country-code.styles.js +44 -0
  513. package/dist/components/phone-country-codes/phone-country-codes.component.d.ts +11 -0
  514. package/dist/components/phone-country-codes/phone-country-codes.component.js +47 -0
  515. package/dist/components/phone-country-codes/phone-country-codes.d.ts +8 -0
  516. package/dist/components/phone-country-codes/phone-country-codes.js +6 -0
  517. package/dist/components/phone-country-codes/phone-country-codes.styles.d.ts +2 -0
  518. package/dist/components/phone-country-codes/phone-country-codes.styles.js +21 -0
  519. package/dist/components/phone-field/phone-field.component.d.ts +53 -0
  520. package/dist/components/phone-field/phone-field.component.js +200 -0
  521. package/dist/components/phone-field/phone-field.d.ts +9 -0
  522. package/dist/components/phone-field/phone-field.js +7 -0
  523. package/dist/components/phone-field/phone-field.styles.d.ts +2 -0
  524. package/dist/components/phone-field/phone-field.styles.js +41 -0
  525. package/dist/components/phone-field/phone-field.types.d.ts +5 -0
  526. package/dist/components/phone-field/phone-field.types.js +1 -0
  527. package/dist/components/phone-field/phone-field.utils.d.ts +2 -0
  528. package/dist/components/phone-field/phone-field.utils.js +7 -0
  529. package/dist/components/points/points.component.d.ts +9 -0
  530. package/dist/components/points/points.component.js +36 -0
  531. package/dist/components/points/points.d.ts +8 -0
  532. package/dist/components/points/points.js +6 -0
  533. package/dist/components/points/points.styles.d.ts +2 -0
  534. package/dist/components/points/points.styles.js +47 -0
  535. package/dist/components/price/price.component.d.ts +12 -0
  536. package/dist/components/price/price.component.js +38 -0
  537. package/dist/components/price/price.d.ts +8 -0
  538. package/dist/components/price/price.js +6 -0
  539. package/dist/components/reservation-preview/reservation-preview.component.d.ts +11 -0
  540. package/dist/components/reservation-preview/reservation-preview.component.js +84 -0
  541. package/dist/components/reservation-preview/reservation-preview.d.ts +8 -0
  542. package/dist/components/reservation-preview/reservation-preview.js +6 -0
  543. package/dist/components/reservation-preview/reservation-preview.styles.d.ts +2 -0
  544. package/dist/components/reservation-preview/reservation-preview.styles.js +190 -0
  545. package/dist/components/reservation-preview-item/reservation-preview-item.component.d.ts +7 -0
  546. package/dist/components/reservation-preview-item/reservation-preview-item.component.js +36 -0
  547. package/dist/components/reservation-preview-item/reservation-preview-item.d.ts +8 -0
  548. package/dist/components/reservation-preview-item/reservation-preview-item.js +6 -0
  549. package/dist/components/reservation-preview-item/reservation-preview-item.styles.d.ts +2 -0
  550. package/dist/components/reservation-preview-item/reservation-preview-item.styles.js +70 -0
  551. package/dist/components/reviews/review/review.component.d.ts +9 -0
  552. package/dist/components/reviews/review/review.component.js +41 -0
  553. package/dist/components/reviews/review/review.d.ts +8 -0
  554. package/dist/components/reviews/review/review.js +6 -0
  555. package/dist/components/reviews/review/review.styles.d.ts +2 -0
  556. package/dist/components/reviews/review/review.styles.js +45 -0
  557. package/dist/components/reviews/reviews.component.d.ts +9 -0
  558. package/dist/components/reviews/reviews.component.js +56 -0
  559. package/dist/components/reviews/reviews.d.ts +8 -0
  560. package/dist/components/reviews/reviews.js +6 -0
  561. package/dist/components/reviews/reviews.styles.d.ts +2 -0
  562. package/dist/components/reviews/reviews.styles.js +73 -0
  563. package/dist/components/search-button/search-button.component.d.ts +8 -0
  564. package/dist/components/search-button/search-button.component.js +37 -0
  565. package/dist/components/search-button/search-button.d.ts +8 -0
  566. package/dist/components/search-button/search-button.js +6 -0
  567. package/dist/components/search-button/search-button.styles.d.ts +2 -0
  568. package/dist/components/search-button/search-button.styles.js +61 -0
  569. package/dist/components/search-results-item/search-results-item.d.ts +13 -0
  570. package/dist/components/search-results-item/search-results-item.js +26 -0
  571. package/dist/components/seated-selector/seated-selector.component.d.ts +42 -0
  572. package/dist/components/seated-selector/seated-selector.component.js +321 -0
  573. package/dist/components/seated-selector/seated-selector.d.ts +8 -0
  574. package/dist/components/seated-selector/seated-selector.js +6 -0
  575. package/dist/components/seated-selector/seated-selector.styles.d.ts +2 -0
  576. package/dist/components/seated-selector/seated-selector.styles.js +84 -0
  577. package/dist/components/seats-io/seats-io.component.d.ts +27 -0
  578. package/dist/components/seats-io/seats-io.component.js +162 -0
  579. package/dist/components/seats-io/seats-io.constants.d.ts +12 -0
  580. package/dist/components/seats-io/seats-io.constants.js +23 -0
  581. package/dist/components/seats-io/seats-io.d.ts +8 -0
  582. package/dist/components/seats-io/seats-io.js +6 -0
  583. package/dist/components/seats-io/seats-io.styles.d.ts +2 -0
  584. package/dist/components/seats-io/seats-io.styles.js +15 -0
  585. package/dist/components/seats-io/seats-io.transform.d.ts +77 -0
  586. package/dist/components/seats-io/seats-io.transform.js +152 -0
  587. package/dist/components/select-list/select-list.component.d.ts +19 -0
  588. package/dist/components/select-list/select-list.component.js +160 -0
  589. package/dist/components/select-list/select-list.d.ts +8 -0
  590. package/dist/components/select-list/select-list.js +6 -0
  591. package/dist/components/select-list/select-list.styles.d.ts +2 -0
  592. package/dist/components/select-list/select-list.styles.js +46 -0
  593. package/dist/components/select-list/select-option/select-option.component.d.ts +7 -0
  594. package/dist/components/select-list/select-option/select-option.component.js +28 -0
  595. package/dist/components/select-list/select-option/select-option.d.ts +8 -0
  596. package/dist/components/select-list/select-option/select-option.js +6 -0
  597. package/dist/components/select-list/select-option/select-option.styles.d.ts +2 -0
  598. package/dist/components/select-list/select-option/select-option.styles.js +52 -0
  599. package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +10 -0
  600. package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +51 -0
  601. package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +8 -0
  602. package/dist/components/selected-tickets-preview/selected-tickets-preview.js +6 -0
  603. package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +2 -0
  604. package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +89 -0
  605. package/dist/components/sort-dropdown/sort-dropdown.component.d.ts +14 -0
  606. package/dist/components/sort-dropdown/sort-dropdown.component.js +57 -0
  607. package/dist/components/sort-dropdown/sort-dropdown.d.ts +8 -0
  608. package/dist/components/sort-dropdown/sort-dropdown.js +6 -0
  609. package/dist/components/sort-dropdown/sort-dropdown.styles.d.ts +2 -0
  610. package/dist/components/sort-dropdown/sort-dropdown.styles.js +22 -0
  611. package/dist/components/sort-list/sort-list.component.d.ts +7 -0
  612. package/dist/components/sort-list/sort-list.component.js +25 -0
  613. package/dist/components/sort-list/sort-list.d.ts +8 -0
  614. package/dist/components/sort-list/sort-list.js +6 -0
  615. package/dist/components/sort-list/sort-list.styles.d.ts +2 -0
  616. package/dist/components/sort-list/sort-list.styles.js +17 -0
  617. package/dist/components/sport-options/sport-option/sport-option.component.d.ts +10 -0
  618. package/dist/components/sport-options/sport-option/sport-option.component.js +57 -0
  619. package/dist/components/sport-options/sport-option/sport-option.d.ts +8 -0
  620. package/dist/components/sport-options/sport-option/sport-option.js +6 -0
  621. package/dist/components/sport-options/sport-option/sport-option.styles.d.ts +2 -0
  622. package/dist/components/sport-options/sport-option/sport-option.styles.js +156 -0
  623. package/dist/components/sport-options/sport-options.component.d.ts +6 -0
  624. package/dist/components/sport-options/sport-options.component.js +27 -0
  625. package/dist/components/sport-options/sport-options.d.ts +8 -0
  626. package/dist/components/sport-options/sport-options.js +6 -0
  627. package/dist/components/sport-options/sport-options.styles.d.ts +2 -0
  628. package/dist/components/sport-options/sport-options.styles.js +33 -0
  629. package/dist/components/star-rating/star-rating.component.d.ts +15 -0
  630. package/dist/components/star-rating/star-rating.component.js +77 -0
  631. package/dist/components/star-rating/star-rating.d.ts +8 -0
  632. package/dist/components/star-rating/star-rating.js +6 -0
  633. package/dist/components/star-rating/star-rating.styles.d.ts +2 -0
  634. package/dist/components/star-rating/star-rating.styles.js +49 -0
  635. package/dist/components/tab/tab.component.d.ts +12 -0
  636. package/dist/components/tab/tab.component.js +52 -0
  637. package/dist/components/tab/tab.constants.d.ts +4 -0
  638. package/dist/components/tab/tab.constants.js +5 -0
  639. package/dist/components/tab/tab.d.ts +8 -0
  640. package/dist/components/tab/tab.js +6 -0
  641. package/dist/components/tab/tab.styles.d.ts +2 -0
  642. package/dist/components/tab/tab.styles.js +50 -0
  643. package/dist/components/tab-panel/tab-panel.component.d.ts +9 -0
  644. package/dist/components/tab-panel/tab-panel.component.js +35 -0
  645. package/dist/components/tab-panel/tab-panel.d.ts +8 -0
  646. package/dist/components/tab-panel/tab-panel.js +6 -0
  647. package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
  648. package/dist/components/tab-panel/tab-panel.styles.js +23 -0
  649. package/dist/components/tabs/tabs.component.d.ts +19 -0
  650. package/dist/components/tabs/tabs.component.js +87 -0
  651. package/dist/components/tabs/tabs.d.ts +8 -0
  652. package/dist/components/tabs/tabs.js +6 -0
  653. package/dist/components/tabs/tabs.styles.d.ts +2 -0
  654. package/dist/components/tabs/tabs.styles.js +32 -0
  655. package/dist/components/tag/tag.component.d.ts +8 -0
  656. package/dist/components/tag/tag.component.js +33 -0
  657. package/dist/components/tag/tag.constants.d.ts +1 -0
  658. package/dist/components/tag/tag.constants.js +1 -0
  659. package/dist/components/tag/tag.d.ts +8 -0
  660. package/dist/components/tag/tag.js +6 -0
  661. package/dist/components/tag/tag.styles.d.ts +2 -0
  662. package/dist/components/tag/tag.styles.js +56 -0
  663. package/dist/components/text-section/text-section.component.d.ts +6 -0
  664. package/dist/components/text-section/text-section.component.js +31 -0
  665. package/dist/components/text-section/text-section.d.ts +8 -0
  666. package/dist/components/text-section/text-section.js +6 -0
  667. package/dist/components/text-section/text-section.styles.d.ts +2 -0
  668. package/dist/components/text-section/text-section.styles.js +94 -0
  669. package/dist/components/time-tag/time-tag.component.d.ts +14 -0
  670. package/dist/components/time-tag/time-tag.component.js +58 -0
  671. package/dist/components/time-tag/time-tag.d.ts +8 -0
  672. package/dist/components/time-tag/time-tag.js +6 -0
  673. package/dist/components/time-tag/time-tag.styles.d.ts +2 -0
  674. package/dist/components/time-tag/time-tag.styles.js +41 -0
  675. package/dist/components/tooltip/tooltip.component.d.ts +19 -0
  676. package/dist/components/tooltip/tooltip.component.js +124 -0
  677. package/dist/components/tooltip/tooltip.d.ts +8 -0
  678. package/dist/components/tooltip/tooltip.js +6 -0
  679. package/dist/components/tooltip/tooltip.styles.d.ts +2 -0
  680. package/dist/components/tooltip/tooltip.styles.js +79 -0
  681. package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.d.ts +9 -0
  682. package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.js +36 -0
  683. package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.d.ts +8 -0
  684. package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.js +6 -0
  685. package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.d.ts +2 -0
  686. package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.js +35 -0
  687. package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.d.ts +9 -0
  688. package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.js +47 -0
  689. package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.d.ts +8 -0
  690. package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.js +6 -0
  691. package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.d.ts +2 -0
  692. package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.js +78 -0
  693. package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.d.ts +13 -0
  694. package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.js +74 -0
  695. package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.d.ts +8 -0
  696. package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.js +6 -0
  697. package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.d.ts +2 -0
  698. package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.js +40 -0
  699. package/dist/components/transfer-modal/transfer-modal.component.d.ts +72 -0
  700. package/dist/components/transfer-modal/transfer-modal.component.js +297 -0
  701. package/dist/components/transfer-modal/transfer-modal.d.ts +8 -0
  702. package/dist/components/transfer-modal/transfer-modal.js +6 -0
  703. package/dist/components/transfer-modal/transfer-modal.styles.d.ts +2 -0
  704. package/dist/components/transfer-modal/transfer-modal.styles.js +141 -0
  705. package/dist/containers/basket/basket.component.d.ts +25 -0
  706. package/dist/containers/basket/basket.component.js +257 -0
  707. package/dist/containers/basket/basket.d.ts +8 -0
  708. package/dist/containers/basket/basket.js +6 -0
  709. package/dist/containers/footer/footer.component.d.ts +8 -0
  710. package/dist/containers/footer/footer.component.js +65 -0
  711. package/dist/containers/footer/footer.d.ts +8 -0
  712. package/dist/containers/footer/footer.js +6 -0
  713. package/dist/containers/footer/footer.styles.d.ts +2 -0
  714. package/dist/containers/footer/footer.styles.js +31 -0
  715. package/dist/containers/navbar/navbar.component.d.ts +102 -0
  716. package/dist/containers/navbar/navbar.component.js +727 -0
  717. package/dist/containers/navbar/navbar.d.ts +8 -0
  718. package/dist/containers/navbar/navbar.js +6 -0
  719. package/dist/containers/navbar/navbar.styles.d.ts +2 -0
  720. package/dist/containers/navbar/navbar.styles.js +257 -0
  721. package/dist/containers/navbar/navbar.utils.d.ts +12 -0
  722. package/dist/containers/navbar/navbar.utils.js +40 -0
  723. package/dist/contexts/basket/basket.context.d.ts +4 -0
  724. package/dist/contexts/basket/basket.context.js +2 -0
  725. package/dist/contexts/basket/basket.d.ts +8 -0
  726. package/dist/contexts/basket/basket.js +6 -0
  727. package/dist/contexts/basket/basket.provider.d.ts +30 -0
  728. package/dist/contexts/basket/basket.provider.js +218 -0
  729. package/dist/contexts/basket/basket.styles.d.ts +2 -0
  730. package/dist/contexts/basket/basket.styles.js +9 -0
  731. package/dist/contexts/basket/basket.types.d.ts +18 -0
  732. package/dist/contexts/basket/basket.types.js +1 -0
  733. package/dist/contexts/client.context.d.ts +5 -0
  734. package/dist/contexts/client.context.js +2 -0
  735. package/dist/contexts/current-page.context.d.ts +4 -0
  736. package/dist/contexts/current-page.context.js +2 -0
  737. package/dist/contexts/events.context.d.ts +33 -0
  738. package/dist/contexts/events.context.js +2 -0
  739. package/dist/contexts/pages.context.d.ts +25 -0
  740. package/dist/contexts/pages.context.js +1 -0
  741. package/dist/contexts/properties.context.d.ts +24 -0
  742. package/dist/contexts/properties.context.js +9 -0
  743. package/dist/contexts/types.d.ts +16 -0
  744. package/dist/contexts/types.js +1 -0
  745. package/dist/contexts/utils.d.ts +1 -0
  746. package/dist/contexts/utils.js +1 -0
  747. package/dist/controllers/time-expiration.d.ts +11 -0
  748. package/dist/controllers/time-expiration.js +31 -0
  749. package/dist/core/api/api-error.d.ts +20 -0
  750. package/dist/core/api/api-error.js +27 -0
  751. package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +5 -0
  752. package/dist/core/api/middlewares/booking-session/booking-session.constants.js +5 -0
  753. package/dist/core/api/middlewares/booking-session/booking-session.d.ts +2 -0
  754. package/dist/core/api/middlewares/booking-session/booking-session.js +56 -0
  755. package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +5 -0
  756. package/dist/core/api/middlewares/booking-session/booking-session.utils.js +70 -0
  757. package/dist/core/api/middlewares/error-handler/error-handler.d.ts +6 -0
  758. package/dist/core/api/middlewares/error-handler/error-handler.js +27 -0
  759. package/dist/core/api/queries.d.ts +74 -0
  760. package/dist/core/api/queries.js +120 -0
  761. package/dist/core/constants/api-version.d.ts +1 -0
  762. package/dist/core/constants/api-version.js +1 -0
  763. package/dist/core/currency/constants.d.ts +5 -0
  764. package/dist/core/currency/constants.js +101 -0
  765. package/dist/core/currency/index.d.ts +12 -0
  766. package/dist/core/currency/index.js +6 -0
  767. package/dist/core/events.d.ts +196 -0
  768. package/dist/core/events.js +46 -0
  769. package/dist/core/i18n/date.d.ts +7 -0
  770. package/dist/core/i18n/date.js +65 -0
  771. package/dist/core/i18n/locale-codes.d.ts +13 -0
  772. package/dist/core/i18n/locale-codes.js +52 -0
  773. package/dist/core/i18n/localization.d.ts +5 -0
  774. package/dist/core/i18n/localization.js +15 -0
  775. package/dist/core/images/constants.d.ts +7 -0
  776. package/dist/core/images/constants.js +7 -0
  777. package/dist/core/images/filters.d.ts +28 -0
  778. package/dist/core/images/filters.js +51 -0
  779. package/dist/core/images/helpers.d.ts +12 -0
  780. package/dist/core/images/helpers.js +14 -0
  781. package/dist/core/images/preset-adapter.d.ts +23 -0
  782. package/dist/core/images/preset-adapter.js +52 -0
  783. package/dist/core/images/selection.d.ts +45 -0
  784. package/dist/core/images/selection.js +125 -0
  785. package/dist/core/images/srcset.d.ts +28 -0
  786. package/dist/core/images/srcset.js +52 -0
  787. package/dist/core/images/url.d.ts +23 -0
  788. package/dist/core/images/url.js +40 -0
  789. package/dist/core/pages.d.ts +68 -0
  790. package/dist/core/pages.js +1 -0
  791. package/dist/core/signals.d.ts +2 -0
  792. package/dist/core/signals.js +3 -0
  793. package/dist/core/storybook/argTypes.d.ts +1 -0
  794. package/dist/core/storybook/argTypes.js +46 -0
  795. package/dist/core/storybook/cssprops.d.ts +30 -0
  796. package/dist/core/storybook/cssprops.js +46 -0
  797. package/dist/core/types/api-errors.d.ts +8 -0
  798. package/dist/core/types/api-errors.js +1 -0
  799. package/dist/core/types/basket.d.ts +18 -0
  800. package/dist/core/types/basket.js +1 -0
  801. package/dist/core/types/core/base.d.ts +11 -0
  802. package/dist/core/types/core/base.js +1 -0
  803. package/dist/core/types/core/category.d.ts +2 -0
  804. package/dist/core/types/core/category.js +1 -0
  805. package/dist/core/types/core/currency.d.ts +2 -0
  806. package/dist/core/types/core/currency.js +1 -0
  807. package/dist/core/types/core/index.d.ts +6 -0
  808. package/dist/core/types/core/index.js +1 -0
  809. package/dist/core/types/core/locale.d.ts +2 -0
  810. package/dist/core/types/core/locale.js +1 -0
  811. package/dist/core/types/core/points.d.ts +4 -0
  812. package/dist/core/types/core/points.js +1 -0
  813. package/dist/core/types/core/rating.d.ts +1 -0
  814. package/dist/core/types/core/rating.js +1 -0
  815. package/dist/core/types/core/sorting.d.ts +2 -0
  816. package/dist/core/types/core/sorting.js +1 -0
  817. package/dist/core/types/currencies.d.ts +2 -0
  818. package/dist/core/types/currencies.js +1 -0
  819. package/dist/core/types/index.d.ts +6 -0
  820. package/dist/core/types/index.js +1 -0
  821. package/dist/core/types/locales.d.ts +4 -0
  822. package/dist/core/types/locales.js +1 -0
  823. package/dist/core/types/seats-config.d.ts +13 -0
  824. package/dist/core/types/seats-config.js +9 -0
  825. package/dist/core/types/shared.d.ts +1 -0
  826. package/dist/core/types/shared.js +1 -0
  827. package/dist/core/utils/datetime.d.ts +77 -0
  828. package/dist/core/utils/datetime.js +153 -0
  829. package/dist/core/utils/function.d.ts +4 -0
  830. package/dist/core/utils/function.js +22 -0
  831. package/dist/core/utils/html.d.ts +28 -0
  832. package/dist/core/utils/html.js +78 -0
  833. package/dist/core/utils/locale.d.ts +3 -0
  834. package/dist/core/utils/locale.js +3 -0
  835. package/dist/core/utils/scroll-lock.d.ts +50 -0
  836. package/dist/core/utils/scroll-lock.js +121 -0
  837. package/dist/core/utils/text.d.ts +9 -0
  838. package/dist/core/utils/text.js +50 -0
  839. package/dist/core/utils/time.d.ts +2 -0
  840. package/dist/core/utils/time.js +10 -0
  841. package/dist/custom-elements.json +37289 -0
  842. package/dist/errors.d.ts +3 -0
  843. package/dist/errors.js +5 -0
  844. package/dist/helpers/helpers.d.ts +5 -0
  845. package/dist/helpers/helpers.js +31 -0
  846. package/dist/index.d.ts +9 -0
  847. package/dist/index.js +14 -0
  848. package/dist/locales/da-DK.d.ts +261 -0
  849. package/dist/locales/da-DK.js +273 -0
  850. package/dist/locales/de-DE.d.ts +261 -0
  851. package/dist/locales/de-DE.js +273 -0
  852. package/dist/locales/en-IE.d.ts +261 -0
  853. package/dist/locales/en-IE.js +273 -0
  854. package/dist/locales/en-US.d.ts +261 -0
  855. package/dist/locales/en-US.js +273 -0
  856. package/dist/locales/es-ES.d.ts +261 -0
  857. package/dist/locales/es-ES.js +273 -0
  858. package/dist/locales/fr-FR.d.ts +261 -0
  859. package/dist/locales/fr-FR.js +273 -0
  860. package/dist/locales/fr-MA.d.ts +261 -0
  861. package/dist/locales/fr-MA.js +273 -0
  862. package/dist/locales/is-IS.d.ts +261 -0
  863. package/dist/locales/is-IS.js +273 -0
  864. package/dist/locales/it-IT.d.ts +261 -0
  865. package/dist/locales/it-IT.js +273 -0
  866. package/dist/locales/ms-MY.d.ts +261 -0
  867. package/dist/locales/ms-MY.js +273 -0
  868. package/dist/locales/nb-NO.d.ts +261 -0
  869. package/dist/locales/nb-NO.js +273 -0
  870. package/dist/locales/pl-PL.d.ts +261 -0
  871. package/dist/locales/pl-PL.js +273 -0
  872. package/dist/locales/pt-PT.d.ts +261 -0
  873. package/dist/locales/pt-PT.js +273 -0
  874. package/dist/locales/sv-SE.d.ts +261 -0
  875. package/dist/locales/sv-SE.js +273 -0
  876. package/dist/locales/th-TH.d.ts +261 -0
  877. package/dist/locales/th-TH.js +273 -0
  878. package/dist/locales/tr-TR.d.ts +261 -0
  879. package/dist/locales/tr-TR.js +273 -0
  880. package/dist/locales/zh-CN.d.ts +261 -0
  881. package/dist/locales/zh-CN.js +273 -0
  882. package/dist/mixins/base.mixin.d.ts +22 -0
  883. package/dist/mixins/base.mixin.js +120 -0
  884. package/dist/mixins/coinbase.mixin.d.ts +70 -0
  885. package/dist/mixins/coinbase.mixin.js +979 -0
  886. package/dist/mixins/error-modal.mixin.d.ts +16 -0
  887. package/dist/mixins/error-modal.mixin.js +108 -0
  888. package/dist/mixins/error-modal.styles.d.ts +2 -0
  889. package/dist/mixins/error-modal.styles.js +81 -0
  890. package/dist/mixins/location-search/location-search.d.ts +7 -0
  891. package/dist/mixins/location-search/location-search.js +334 -0
  892. package/dist/mixins/location-search/location-search.styles.d.ts +2 -0
  893. package/dist/mixins/location-search/location-search.styles.js +80 -0
  894. package/dist/mixins/location-search/types.d.ts +10 -0
  895. package/dist/mixins/location-search/types.js +1 -0
  896. package/dist/mixins/overlay/overlay-mixin.d.ts +4 -0
  897. package/dist/mixins/overlay/overlay-mixin.js +86 -0
  898. package/dist/mixins/overlay/types.d.ts +8 -0
  899. package/dist/mixins/overlay/types.js +1 -0
  900. package/dist/mixins/points/points.d.ts +3 -0
  901. package/dist/mixins/points/points.js +30 -0
  902. package/dist/mixins/points/types.d.ts +8 -0
  903. package/dist/mixins/points/types.js +1 -0
  904. package/dist/mixins/search-mixin/search-mixin.d.ts +4 -0
  905. package/dist/mixins/search-mixin/search-mixin.js +66 -0
  906. package/dist/mixins/search-mixin/types.d.ts +7 -0
  907. package/dist/mixins/search-mixin/types.js +1 -0
  908. package/dist/sdk/chrome.d.ts +10 -0
  909. package/dist/sdk/chrome.js +83 -0
  910. package/dist/sdk/element-adapter.d.ts +16 -0
  911. package/dist/sdk/element-adapter.js +60 -0
  912. package/dist/sdk/meta.d.ts +7 -0
  913. package/dist/sdk/meta.js +9 -0
  914. package/dist/sdk/mount.d.ts +19 -0
  915. package/dist/sdk/mount.js +289 -0
  916. package/dist/sdk/navigation-intent.d.ts +34 -0
  917. package/dist/sdk/navigation-intent.js +28 -0
  918. package/dist/sdk/page-registry.d.ts +32 -0
  919. package/dist/sdk/page-registry.js +84 -0
  920. package/dist/sdk/redaction.d.ts +11 -0
  921. package/dist/sdk/redaction.js +61 -0
  922. package/dist/sdk/theme.d.ts +19 -0
  923. package/dist/sdk/theme.js +75 -0
  924. package/dist/sdk/types.d.ts +258 -0
  925. package/dist/sdk/types.js +1 -0
  926. package/dist/sdk/url.d.ts +47 -0
  927. package/dist/sdk/url.js +199 -0
  928. package/dist/sdk/validation.d.ts +50 -0
  929. package/dist/sdk/validation.js +318 -0
  930. package/dist/styles/contrast-fixtures.d.ts +10 -0
  931. package/dist/styles/contrast-fixtures.js +61 -0
  932. package/dist/styles/contrast.d.ts +19 -0
  933. package/dist/styles/contrast.js +100 -0
  934. package/dist/styles/defaults/component.d.ts +2 -0
  935. package/dist/styles/defaults/component.js +31 -0
  936. package/dist/styles/primitives.d.ts +14 -0
  937. package/dist/styles/primitives.js +68 -0
  938. package/dist/styles/tokens.css +359 -0
  939. package/dist/styles/tokens.d.ts +18 -0
  940. package/dist/styles/tokens.generated.d.ts +1 -0
  941. package/dist/styles/tokens.generated.js +4 -0
  942. package/dist/styles/tokens.js +54 -0
  943. package/dist/styles/tokens.metadata.d.ts +14 -0
  944. package/dist/styles/tokens.metadata.js +210 -0
  945. package/dist/views/constants.d.ts +3 -0
  946. package/dist/views/constants.js +2 -0
  947. package/dist/views/details-page/details-page.component.d.ts +129 -0
  948. package/dist/views/details-page/details-page.component.js +1567 -0
  949. package/dist/views/details-page/details-page.d.ts +8 -0
  950. package/dist/views/details-page/details-page.js +6 -0
  951. package/dist/views/details-page/details-page.styles.d.ts +2 -0
  952. package/dist/views/details-page/details-page.styles.js +558 -0
  953. package/dist/views/details-page/details-page.utilts.d.ts +40 -0
  954. package/dist/views/details-page/details-page.utilts.js +188 -0
  955. package/dist/views/details-page/partials/theater-description/theater-description.component.d.ts +13 -0
  956. package/dist/views/details-page/partials/theater-description/theater-description.component.js +76 -0
  957. package/dist/views/details-page/partials/theater-description/theater-description.d.ts +8 -0
  958. package/dist/views/details-page/partials/theater-description/theater-description.js +6 -0
  959. package/dist/views/details-page/partials/theater-description/theater-description.styles.d.ts +2 -0
  960. package/dist/views/details-page/partials/theater-description/theater-description.styles.js +19 -0
  961. package/dist/views/details-page/partials/tour-description/tour-description.component.d.ts +20 -0
  962. package/dist/views/details-page/partials/tour-description/tour-description.component.js +155 -0
  963. package/dist/views/details-page/partials/tour-description/tour-description.d.ts +8 -0
  964. package/dist/views/details-page/partials/tour-description/tour-description.js +6 -0
  965. package/dist/views/details-page/partials/tour-description/tour-description.styles.d.ts +2 -0
  966. package/dist/views/details-page/partials/tour-description/tour-description.styles.js +11 -0
  967. package/dist/views/help-page/help-page.component.d.ts +74 -0
  968. package/dist/views/help-page/help-page.component.js +594 -0
  969. package/dist/views/help-page/help-page.d.ts +8 -0
  970. package/dist/views/help-page/help-page.fields.d.ts +12 -0
  971. package/dist/views/help-page/help-page.fields.js +46 -0
  972. package/dist/views/help-page/help-page.js +6 -0
  973. package/dist/views/help-page/help-page.styles.d.ts +2 -0
  974. package/dist/views/help-page/help-page.styles.js +218 -0
  975. package/dist/views/help-page/help-page.types.d.ts +36 -0
  976. package/dist/views/help-page/help-page.types.js +1 -0
  977. package/dist/views/help-page/help-page.utils.d.ts +3 -0
  978. package/dist/views/help-page/help-page.utils.js +29 -0
  979. package/dist/views/help-page/help-page.validators.d.ts +7 -0
  980. package/dist/views/help-page/help-page.validators.js +22 -0
  981. package/dist/views/landing-page/landing-page.component.d.ts +127 -0
  982. package/dist/views/landing-page/landing-page.component.js +1003 -0
  983. package/dist/views/landing-page/landing-page.constants.d.ts +1 -0
  984. package/dist/views/landing-page/landing-page.constants.js +1 -0
  985. package/dist/views/landing-page/landing-page.d.ts +8 -0
  986. package/dist/views/landing-page/landing-page.js +6 -0
  987. package/dist/views/landing-page/landing-page.styles.d.ts +2 -0
  988. package/dist/views/landing-page/landing-page.styles.js +109 -0
  989. package/dist/views/landing-page/landing-page.types.d.ts +7 -0
  990. package/dist/views/landing-page/landing-page.types.js +1 -0
  991. package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +71 -0
  992. package/dist/views/payment-page/controllers/crypto-auth.controller.js +252 -0
  993. package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +99 -0
  994. package/dist/views/payment-page/controllers/crypto-transfer.controller.js +288 -0
  995. package/dist/views/payment-page/controllers/form-validation.controller.d.ts +60 -0
  996. package/dist/views/payment-page/controllers/form-validation.controller.js +122 -0
  997. package/dist/views/payment-page/controllers/layout.controller.d.ts +22 -0
  998. package/dist/views/payment-page/controllers/layout.controller.js +43 -0
  999. package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +47 -0
  1000. package/dist/views/payment-page/controllers/payment-flow.controller.js +63 -0
  1001. package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +66 -0
  1002. package/dist/views/payment-page/controllers/stripe-payment.controller.js +202 -0
  1003. package/dist/views/payment-page/domain/payment-mappers.d.ts +7 -0
  1004. package/dist/views/payment-page/domain/payment-mappers.js +7 -0
  1005. package/dist/views/payment-page/domain/payment-validators.d.ts +6 -0
  1006. package/dist/views/payment-page/domain/payment-validators.js +6 -0
  1007. package/dist/views/payment-page/domain/recovery-payload.d.ts +8 -0
  1008. package/dist/views/payment-page/domain/recovery-payload.js +7 -0
  1009. package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +47 -0
  1010. package/dist/views/payment-page/partials/activity-details/activity-details.component.js +247 -0
  1011. package/dist/views/payment-page/partials/activity-details/activity-details.d.ts +8 -0
  1012. package/dist/views/payment-page/partials/activity-details/activity-details.js +6 -0
  1013. package/dist/views/payment-page/partials/activity-details/activity-details.styles.d.ts +2 -0
  1014. package/dist/views/payment-page/partials/activity-details/activity-details.styles.js +77 -0
  1015. package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +34 -0
  1016. package/dist/views/payment-page/partials/billing-address/billing-address.component.js +165 -0
  1017. package/dist/views/payment-page/partials/billing-address/billing-address.d.ts +8 -0
  1018. package/dist/views/payment-page/partials/billing-address/billing-address.js +6 -0
  1019. package/dist/views/payment-page/partials/billing-address/billing-address.styles.d.ts +2 -0
  1020. package/dist/views/payment-page/partials/billing-address/billing-address.styles.js +27 -0
  1021. package/dist/views/payment-page/partials/confirmation/confirmation.component.d.ts +17 -0
  1022. package/dist/views/payment-page/partials/confirmation/confirmation.component.js +193 -0
  1023. package/dist/views/payment-page/partials/confirmation/confirmation.d.ts +8 -0
  1024. package/dist/views/payment-page/partials/confirmation/confirmation.js +6 -0
  1025. package/dist/views/payment-page/partials/confirmation/confirmation.styles.d.ts +2 -0
  1026. package/dist/views/payment-page/partials/confirmation/confirmation.styles.js +191 -0
  1027. package/dist/views/payment-page/partials/country-field/country-field.component.d.ts +44 -0
  1028. package/dist/views/payment-page/partials/country-field/country-field.component.js +260 -0
  1029. package/dist/views/payment-page/partials/country-field/country-field.d.ts +8 -0
  1030. package/dist/views/payment-page/partials/country-field/country-field.js +6 -0
  1031. package/dist/views/payment-page/partials/country-field/country-field.styles.d.ts +2 -0
  1032. package/dist/views/payment-page/partials/country-field/country-field.styles.js +21 -0
  1033. package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.d.ts +19 -0
  1034. package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.js +108 -0
  1035. package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.d.ts +8 -0
  1036. package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.js +6 -0
  1037. package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.d.ts +2 -0
  1038. package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.js +21 -0
  1039. package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.d.ts +10 -0
  1040. package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.js +54 -0
  1041. package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.d.ts +8 -0
  1042. package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.js +6 -0
  1043. package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.d.ts +2 -0
  1044. package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.js +54 -0
  1045. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.d.ts +48 -0
  1046. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +215 -0
  1047. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.d.ts +8 -0
  1048. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.js +6 -0
  1049. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.d.ts +2 -0
  1050. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.js +61 -0
  1051. package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +104 -0
  1052. package/dist/views/payment-page/partials/stripe/stripe.component.js +522 -0
  1053. package/dist/views/payment-page/partials/stripe/stripe.constants.d.ts +46 -0
  1054. package/dist/views/payment-page/partials/stripe/stripe.constants.js +48 -0
  1055. package/dist/views/payment-page/partials/stripe/stripe.d.ts +8 -0
  1056. package/dist/views/payment-page/partials/stripe/stripe.js +6 -0
  1057. package/dist/views/payment-page/partials/stripe/stripe.styles.d.ts +2 -0
  1058. package/dist/views/payment-page/partials/stripe/stripe.styles.js +102 -0
  1059. package/dist/views/payment-page/partials/stripe/stripe.types.d.ts +72 -0
  1060. package/dist/views/payment-page/partials/stripe/stripe.types.js +4 -0
  1061. package/dist/views/payment-page/partials/stripe/stripe.utils.d.ts +85 -0
  1062. package/dist/views/payment-page/partials/stripe/stripe.utils.js +228 -0
  1063. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +22 -0
  1064. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +65 -0
  1065. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +8 -0
  1066. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +6 -0
  1067. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +2 -0
  1068. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +12 -0
  1069. package/dist/views/payment-page/payment-page.component.d.ts +237 -0
  1070. package/dist/views/payment-page/payment-page.component.js +1733 -0
  1071. package/dist/views/payment-page/payment-page.constants.d.ts +38 -0
  1072. package/dist/views/payment-page/payment-page.constants.js +45 -0
  1073. package/dist/views/payment-page/payment-page.d.ts +8 -0
  1074. package/dist/views/payment-page/payment-page.fields.d.ts +162 -0
  1075. package/dist/views/payment-page/payment-page.fields.js +164 -0
  1076. package/dist/views/payment-page/payment-page.js +6 -0
  1077. package/dist/views/payment-page/payment-page.styles.d.ts +2 -0
  1078. package/dist/views/payment-page/payment-page.styles.js +392 -0
  1079. package/dist/views/payment-page/payment-page.types.d.ts +98 -0
  1080. package/dist/views/payment-page/payment-page.types.js +1 -0
  1081. package/dist/views/payment-page/payment-page.utils.d.ts +239 -0
  1082. package/dist/views/payment-page/payment-page.utils.js +906 -0
  1083. package/dist/views/payment-page/payment-page.validation-schema.d.ts +28 -0
  1084. package/dist/views/payment-page/payment-page.validation-schema.js +42 -0
  1085. package/dist/views/payment-page/payment-page.validators.d.ts +56 -0
  1086. package/dist/views/payment-page/payment-page.validators.js +147 -0
  1087. package/dist/views/payment-page/services/payment-api.service.d.ts +104 -0
  1088. package/dist/views/payment-page/services/payment-api.service.js +99 -0
  1089. package/dist/views/search-page/search-page.component.d.ts +61 -0
  1090. package/dist/views/search-page/search-page.component.js +358 -0
  1091. package/dist/views/search-page/search-page.d.ts +8 -0
  1092. package/dist/views/search-page/search-page.js +6 -0
  1093. package/dist/views/search-page/search-page.styles.d.ts +2 -0
  1094. package/dist/views/search-page/search-page.styles.js +81 -0
  1095. package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +33 -0
  1096. package/dist/views/suggestion-widget/suggestion-widget.component.js +111 -0
  1097. package/dist/views/suggestion-widget/suggestion-widget.d.ts +8 -0
  1098. package/dist/views/suggestion-widget/suggestion-widget.js +6 -0
  1099. package/dist/views/suggestion-widget/suggestion-widget.styles.d.ts +2 -0
  1100. package/dist/views/suggestion-widget/suggestion-widget.styles.js +41 -0
  1101. package/package.json +158 -0
@@ -0,0 +1,258 @@
1
+ import type { BrandConfig } from "@coras-io/brand-tokens";
2
+ import type { SupportedCurrencies } from "../core/types/core/currency.js";
3
+ import type { SupportedLocales } from "../core/types/core/locale.js";
4
+ /**
5
+ * Pages a host can mount through the SDK. This is the public superset of the
6
+ * internal navigation page set and additionally includes the standalone
7
+ * `suggestion-widget` (recommendations) embed.
8
+ */
9
+ export type CorasPageName = "landing" | "search" | "details" | "payment" | "help" | "suggestion-widget";
10
+ export type CorasLandingPageParams = {
11
+ country?: string;
12
+ city?: string;
13
+ startDate?: string;
14
+ endDate?: string;
15
+ sort?: string;
16
+ duration?: string;
17
+ price?: string;
18
+ categories?: string;
19
+ };
20
+ export type CorasSearchPageParams = {
21
+ search?: string;
22
+ startDate?: string;
23
+ };
24
+ export type CorasDetailsPageParams = {
25
+ /** Public attraction id (maps to the internal `attraction-id`). */
26
+ id?: string;
27
+ date?: string;
28
+ };
29
+ export type CorasPaymentPageParams = {
30
+ /**
31
+ * Arbitrary client-defined key/value data forwarded to and stored by the
32
+ * Coras API, then returned when the order is read back (e.g. a user id,
33
+ * analytics ids, or a loyalty-card number). Coras does not interpret it.
34
+ * It is host context, not shareable URL state, so it is not round-tripped
35
+ * by the `@coras-io/embed/url` helpers.
36
+ */
37
+ metadata?: Record<string, string>;
38
+ };
39
+ export type CorasHelpPageParams = {
40
+ /** Help content identifier, e.g. "faq-attractions", "contact", "privacy-policy". */
41
+ content?: string;
42
+ };
43
+ export type CorasSuggestionWidgetParams = {
44
+ limit?: number;
45
+ showExploreCard?: boolean;
46
+ country?: string;
47
+ city?: string;
48
+ };
49
+ export type CorasPageParamsByPage = {
50
+ landing: CorasLandingPageParams;
51
+ search: CorasSearchPageParams;
52
+ details: CorasDetailsPageParams;
53
+ payment: CorasPaymentPageParams;
54
+ help: CorasHelpPageParams;
55
+ "suggestion-widget": CorasSuggestionWidgetParams;
56
+ };
57
+ /** Params for a specific page, or the union when the page is not narrowed. */
58
+ export type CorasPageParams<P extends CorasPageName = CorasPageName> = CorasPageParamsByPage[P];
59
+ /**
60
+ * The SDK `theme` option is the shared `BrandConfig` contract: un-prefixed
61
+ * semantic keys (`primary`, `secondary`, …) plus chrome, `logo`, and
62
+ * `fontFaces`. Defined once in `@coras-io/brand-tokens` and reused by the
63
+ * microsites, emails, and the Studio.
64
+ */
65
+ export type CorasTheme = BrandConfig;
66
+ /**
67
+ * Which colour scheme the mount renders. `theme` carries the light values and
68
+ * its `dark` block the dark overrides; this picks which side the `light-dark()`
69
+ * token pairs resolve to.
70
+ *
71
+ * - `"light"` (default) — always light, ignoring the host page.
72
+ * - `"dark"` — always dark.
73
+ * - `"system"` — follows the OS via `prefers-color-scheme`.
74
+ * - `"inherit"` — follows the host page's own `color-scheme` (the SDK sets none),
75
+ * so the embed behaves like a native element on a light or dark site.
76
+ */
77
+ export type CorasColorScheme = "light" | "dark" | "system" | "inherit";
78
+ export type CorasConfig = {
79
+ apiUrl: string;
80
+ distributorId: string;
81
+ assetsUrl?: string;
82
+ locale?: SupportedLocales;
83
+ allowedLocales?: SupportedLocales[];
84
+ currency?: SupportedCurrencies;
85
+ allowedCurrencies?: SupportedCurrencies[];
86
+ loyaltyPointsEnabled?: boolean;
87
+ theme?: CorasTheme;
88
+ colorScheme?: CorasColorScheme;
89
+ };
90
+ /**
91
+ * Feature toggles for the SDK-created Coras navbar. Each `show*` key maps 1:1 to
92
+ * a navbar control; an omitted key keeps the navbar's default (everything
93
+ * shown). Used with `{ use: "managed", props: { … } }`.
94
+ */
95
+ export type CorasNavbarProps = {
96
+ /**
97
+ * Render the minimal search-only navbar (brand + search) instead of the full
98
+ * bar. This is a mode, not a toggle: when `true` it takes precedence and the
99
+ * `show*` flags and the `nav`/`actions-start`/`actions-end` slots are ignored.
100
+ */
101
+ searchOnly?: boolean;
102
+ showLanguageSelector?: boolean;
103
+ showCurrencySelector?: boolean;
104
+ showBasket?: boolean;
105
+ showSearch?: boolean;
106
+ };
107
+ /**
108
+ * Host content-injection points on the Coras navbar. Names describe the region
109
+ * the host owns, not the internal widget they sit beside, and use logical
110
+ * `start`/`end` so they stay correct under RTL.
111
+ *
112
+ * - `brand` — logo / home affordance (leading edge)
113
+ * - `nav` — primary navigation, after the brand
114
+ * - `actions-start` — leading edge of the utility cluster, before the basket
115
+ * - `actions-end` — trailing edge of the utility cluster, before search
116
+ * - `search` — replaces the built-in search (requires `showSearch: false`)
117
+ */
118
+ export type CorasNavbarSlotName = "brand" | "nav" | "actions-start" | "actions-end" | "search";
119
+ /**
120
+ * SDK-created navbar with host content projected into its named slots and
121
+ * optional feature toggles. `slots` maps a slot name to a host element; the SDK
122
+ * sets that element's `slot` attribute and appends it. A slot with no host
123
+ * content stays blank.
124
+ */
125
+ export type CorasManagedNavbar = {
126
+ use: "managed";
127
+ slots?: Partial<Record<CorasNavbarSlotName, HTMLElement>>;
128
+ props?: CorasNavbarProps;
129
+ };
130
+ /** SDK-created footer. The footer exposes no host slots today. */
131
+ export type CorasManagedFooter = {
132
+ use: "managed";
133
+ };
134
+ export type CorasNavbar = false | "managed" | CorasManagedNavbar | HTMLElement | (() => HTMLElement | Promise<HTMLElement>);
135
+ export type CorasFooter = false | "managed" | CorasManagedFooter | HTMLElement | (() => HTMLElement | Promise<HTMLElement>);
136
+ export type CorasChromeOptions = {
137
+ navbar?: CorasNavbar;
138
+ footer?: CorasFooter;
139
+ };
140
+ export type CorasChrome = false | "managed" | CorasChromeOptions;
141
+ export type CorasLogger = {
142
+ warn?: (message: string, data?: unknown) => void;
143
+ error?: (error: unknown, data?: unknown) => void;
144
+ };
145
+ /** A per-mount observability event (lifecycle/diagnostic facts). */
146
+ export type CorasObservabilityEvent = {
147
+ /**
148
+ * Dot-namespaced, kebab-cased diagnostic name (e.g. `coras.page-loaded`).
149
+ * The dot namespace and casing deliberately distinguish these telemetry
150
+ * names from the colon-named `coras:*` host events (e.g. `coras:state-change`).
151
+ */
152
+ name: string;
153
+ page?: CorasPageName;
154
+ data?: Record<string, string | number | boolean | null | undefined>;
155
+ };
156
+ export type CorasNavigationSource = "embed" | "host";
157
+ export type CorasReadyDetail = {
158
+ page: CorasPageName;
159
+ };
160
+ export type CorasNavigateDetail = {
161
+ page: CorasPageName;
162
+ params?: CorasPageParams;
163
+ locale?: SupportedLocales;
164
+ currency?: SupportedCurrencies;
165
+ href?: string;
166
+ source: CorasNavigationSource;
167
+ };
168
+ export type CorasStateChangeDetail = {
169
+ page: CorasPageName;
170
+ params: CorasPageParams;
171
+ locale?: SupportedLocales;
172
+ currency?: SupportedCurrencies;
173
+ };
174
+ export type CorasPaymentStatus = "pending" | "succeeded" | "failed" | "cancelled";
175
+ export type CorasPaymentStatusDetail = {
176
+ status: CorasPaymentStatus;
177
+ /** Public reference only; never provider secrets or card data. */
178
+ reference?: string;
179
+ };
180
+ export type CorasReservationCreatedDetail = {
181
+ reservationId?: string;
182
+ expiresIn?: number;
183
+ ticketDeliveryMethod?: number;
184
+ };
185
+ export type CorasErrorDetail = {
186
+ /** Stable machine code, e.g. "invalid_page_params". */
187
+ code: string;
188
+ /** Safe, redacted, human-readable message. */
189
+ message: string;
190
+ page?: CorasPageName;
191
+ };
192
+ /** The host-facing event map: name -> detail. */
193
+ export type CorasHostEventMap = {
194
+ "coras:ready": CorasReadyDetail;
195
+ "coras:navigate": CorasNavigateDetail;
196
+ "coras:state-change": CorasStateChangeDetail;
197
+ "coras:reservation-created": CorasReservationCreatedDetail;
198
+ "coras:payment-status": CorasPaymentStatusDetail;
199
+ "coras:error": CorasErrorDetail;
200
+ };
201
+ export type CorasHostEventName = keyof CorasHostEventMap;
202
+ export type CorasCallbacks = {
203
+ onReady?: (detail: CorasReadyDetail) => void;
204
+ onNavigate?: (detail: CorasNavigateDetail) => void;
205
+ onStateChange?: (detail: CorasStateChangeDetail) => void;
206
+ onReservationCreated?: (detail: CorasReservationCreatedDetail) => void;
207
+ onPaymentStatus?: (detail: CorasPaymentStatusDetail) => void;
208
+ onError?: (detail: CorasErrorDetail) => void;
209
+ onObservability?: (event: CorasObservabilityEvent) => void;
210
+ };
211
+ export type CorasMountOptions<P extends CorasPageName = CorasPageName> = {
212
+ container: HTMLElement;
213
+ page: P;
214
+ config: CorasConfig;
215
+ params?: CorasPageParamsByPage[P];
216
+ chrome?: CorasChrome;
217
+ logger?: CorasLogger;
218
+ /** Reject unknown config/param keys instead of ignoring them. */
219
+ strict?: boolean;
220
+ /**
221
+ * Render the page shell without live booking data, for branding and preview
222
+ * tools (e.g. the Studio). Pages that would otherwise show an empty
223
+ * or error state when there is nothing to check out instead render their full
224
+ * form with actions disabled, so the chrome can be styled. Not for production
225
+ * hosts — a real customer with an empty basket should see the empty state.
226
+ */
227
+ preview?: boolean;
228
+ } & CorasCallbacks;
229
+ /** Frozen snapshot of the mount's current public state. */
230
+ export type CorasState = {
231
+ readonly page: CorasPageName;
232
+ readonly params: CorasPageParams;
233
+ readonly locale: SupportedLocales;
234
+ readonly currency: SupportedCurrencies;
235
+ };
236
+ export type CorasUpdate = {
237
+ page?: CorasPageName;
238
+ params?: CorasPageParams;
239
+ config?: Partial<CorasConfig>;
240
+ chrome?: CorasChrome;
241
+ };
242
+ export type CorasNavigateOptions = {
243
+ /** Emit `onNavigate`/`coras:navigate` for this programmatic navigation. */
244
+ emitNavigate?: boolean;
245
+ };
246
+ export type CorasApp = {
247
+ readonly ready: Promise<void>;
248
+ readonly state: CorasState;
249
+ update(patch: CorasUpdate): void;
250
+ navigate<P extends CorasPageName>(page: P, params?: CorasPageParamsByPage[P], options?: CorasNavigateOptions): void;
251
+ prefetch(page: CorasPageName): Promise<void>;
252
+ unmount(): void;
253
+ };
254
+ export type CorasPageMeta = {
255
+ page: CorasPageName;
256
+ /** Internal custom-element tag used to render the page. */
257
+ tagName: string;
258
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { SupportedCurrencies } from "../core/types/core/currency.js";
2
+ import type { SupportedLocales } from "../core/types/core/locale.js";
3
+ import type { CorasPageName, CorasPageParams } from "./types.js";
4
+ /**
5
+ * Framework-neutral URL helpers for host-controlled routing. The host owns the
6
+ * URL; these helpers translate between a Coras state and a canonical URL so each
7
+ * framework does not write bespoke parsing glue. See ADR 0013.
8
+ */
9
+ export type CorasUrlState = {
10
+ page: CorasPageName;
11
+ params: CorasPageParams;
12
+ locale?: SupportedLocales;
13
+ currency?: SupportedCurrencies;
14
+ };
15
+ export type CorasUrlStrategy = {
16
+ /** Path prefix, e.g. "" or "/events". No trailing slash. */
17
+ basePath?: string;
18
+ /** Put the locale in the path (default true). */
19
+ localeInPath?: boolean;
20
+ /** Put the currency in the path (default true). Otherwise it is a query param. */
21
+ currencyInPath?: boolean;
22
+ /** Query param name used for currency when not in the path. */
23
+ currencyParam?: string;
24
+ /**
25
+ * Path segment for pages that use a reserved keyword. `landing` has no
26
+ * segment and `details` is represented by a bare id segment.
27
+ */
28
+ reservedSegments?: Partial<Record<CorasPageName, string>>;
29
+ };
30
+ export declare const DEFAULT_URL_STRATEGY: Required<Omit<CorasUrlStrategy, "reservedSegments">> & {
31
+ reservedSegments: Partial<Record<CorasPageName, string>>;
32
+ };
33
+ /** Parse a (relative or absolute) URL into a Coras state. */
34
+ export declare function parseCorasUrl(url: string, strategy?: CorasUrlStrategy): CorasUrlState;
35
+ /** Build a canonical URL from a Coras state. */
36
+ export declare function buildCorasUrl(state: CorasUrlState, strategy?: CorasUrlStrategy): string;
37
+ /** Normalize locale/currency aliases and ensure a params object. */
38
+ export declare function normalizeCorasUrlState(input: CorasUrlState): CorasUrlState;
39
+ /** Structural comparison used by hosts to skip redundant updates (loop prevention). */
40
+ export declare function isSameCorasUrlState(a: CorasUrlState, b: CorasUrlState): boolean;
41
+ /** Bind the URL helpers to a single strategy. */
42
+ export declare function createCorasUrlState(strategy?: CorasUrlStrategy): {
43
+ parse: (url: string) => CorasUrlState;
44
+ build: (state: CorasUrlState) => string;
45
+ normalize: typeof normalizeCorasUrlState;
46
+ isSame: typeof isSameCorasUrlState;
47
+ };
@@ -0,0 +1,199 @@
1
+ import { normalizeCurrency, normalizeLocale, PAGE_PARAM_KEYS, PAGE_PARAM_TYPES, } from "./validation.js";
2
+ const DEFAULT_RESERVED = {
3
+ search: "search",
4
+ payment: "payment",
5
+ help: "help",
6
+ "suggestion-widget": "widget",
7
+ };
8
+ export const DEFAULT_URL_STRATEGY = {
9
+ basePath: "",
10
+ localeInPath: true,
11
+ currencyInPath: true,
12
+ currencyParam: "currency",
13
+ reservedSegments: DEFAULT_RESERVED,
14
+ };
15
+ function resolveStrategy(strategy = {}) {
16
+ return {
17
+ ...DEFAULT_URL_STRATEGY,
18
+ ...strategy,
19
+ reservedSegments: {
20
+ ...DEFAULT_RESERVED,
21
+ ...strategy.reservedSegments,
22
+ },
23
+ };
24
+ }
25
+ function reservedToPage(reserved) {
26
+ const map = new Map();
27
+ for (const [page, segment] of Object.entries(reserved)) {
28
+ if (segment)
29
+ map.set(segment, page);
30
+ }
31
+ return map;
32
+ }
33
+ function trimSlashes(value) {
34
+ return value.replace(/^\/+|\/+$/g, "");
35
+ }
36
+ // Decode a query value into the type `mount()` validation expects. An
37
+ // unparseable value is left as the raw string so validation reports it instead
38
+ // of the helper silently swallowing it.
39
+ function decodeParam(key, value) {
40
+ const type = PAGE_PARAM_TYPES[key];
41
+ if (type === "number") {
42
+ const n = Number(value);
43
+ return value.trim() !== "" && Number.isFinite(n) ? n : value;
44
+ }
45
+ if (type === "boolean") {
46
+ if (value === "true")
47
+ return true;
48
+ if (value === "false")
49
+ return false;
50
+ }
51
+ return value;
52
+ }
53
+ /** Parse a (relative or absolute) URL into a Coras state. */
54
+ export function parseCorasUrl(url, strategy = {}) {
55
+ const resolved = resolveStrategy(strategy);
56
+ const parsed = new URL(url, "http://_/");
57
+ let path = trimSlashes(parsed.pathname);
58
+ const base = trimSlashes(resolved.basePath);
59
+ // Strip basePath only when the path is exactly the base or a proper
60
+ // descendant of it. Plain `startsWith` would treat `/events-old` as living
61
+ // under base `/events` and slice off the leading `events`.
62
+ if (base && (path === base || path.startsWith(`${base}/`))) {
63
+ path = trimSlashes(path.slice(base.length));
64
+ }
65
+ const segments = path ? path.split("/") : [];
66
+ let index = 0;
67
+ let locale;
68
+ const localeSegment = segments[index];
69
+ if (resolved.localeInPath && localeSegment) {
70
+ const candidate = normalizeLocale(localeSegment);
71
+ if (candidate) {
72
+ locale = candidate;
73
+ index += 1;
74
+ }
75
+ }
76
+ let currency;
77
+ const currencySegment = segments[index];
78
+ if (resolved.currencyInPath && currencySegment) {
79
+ const candidate = normalizeCurrency(currencySegment);
80
+ if (candidate) {
81
+ currency = candidate;
82
+ index += 1;
83
+ }
84
+ }
85
+ if (!resolved.currencyInPath) {
86
+ const queryCurrency = parsed.searchParams.get(resolved.currencyParam);
87
+ if (queryCurrency)
88
+ currency = normalizeCurrency(queryCurrency) ?? undefined;
89
+ }
90
+ const reservedMap = reservedToPage(resolved.reservedSegments);
91
+ const pageSegment = segments[index];
92
+ let page = "landing";
93
+ const params = {};
94
+ if (pageSegment) {
95
+ const reservedPage = reservedMap.get(pageSegment);
96
+ if (reservedPage) {
97
+ page = reservedPage;
98
+ }
99
+ else {
100
+ page = "details";
101
+ params.id = pageSegment;
102
+ }
103
+ }
104
+ // Page-specific params come from the query string.
105
+ const allowed = PAGE_PARAM_KEYS[page];
106
+ for (const key of allowed) {
107
+ if (key === "id")
108
+ continue; // details id is the path segment
109
+ if (key === "metadata")
110
+ continue; // host context, not URL state
111
+ const value = parsed.searchParams.get(key);
112
+ if (value != null)
113
+ params[key] = decodeParam(key, value);
114
+ }
115
+ return {
116
+ page,
117
+ params: params,
118
+ ...(locale ? { locale } : {}),
119
+ ...(currency ? { currency } : {}),
120
+ };
121
+ }
122
+ /** Build a canonical URL from a Coras state. */
123
+ export function buildCorasUrl(state, strategy = {}) {
124
+ const resolved = resolveStrategy(strategy);
125
+ const segments = [];
126
+ const base = trimSlashes(resolved.basePath);
127
+ if (base)
128
+ segments.push(base);
129
+ if (resolved.localeInPath && state.locale)
130
+ segments.push(state.locale);
131
+ if (resolved.currencyInPath && state.currency)
132
+ segments.push(state.currency);
133
+ const params = (state.params ?? {});
134
+ if (state.page === "details") {
135
+ if (params.id != null)
136
+ segments.push(String(params.id));
137
+ }
138
+ else {
139
+ const reserved = resolved.reservedSegments[state.page];
140
+ if (reserved)
141
+ segments.push(reserved);
142
+ }
143
+ const query = new URLSearchParams();
144
+ const allowed = PAGE_PARAM_KEYS[state.page];
145
+ for (const key of allowed) {
146
+ if (key === "id")
147
+ continue;
148
+ if (key === "metadata")
149
+ continue; // host context, not URL state
150
+ const value = params[key];
151
+ if (value != null && value !== "")
152
+ query.set(key, String(value));
153
+ }
154
+ if (!resolved.currencyInPath && state.currency) {
155
+ query.set(resolved.currencyParam, state.currency);
156
+ }
157
+ const path = `/${segments.join("/")}`.replace(/\/+/g, "/");
158
+ const queryString = query.toString();
159
+ return queryString ? `${path}?${queryString}` : path;
160
+ }
161
+ /** Normalize locale/currency aliases and ensure a params object. */
162
+ export function normalizeCorasUrlState(input) {
163
+ return {
164
+ page: input.page,
165
+ params: (input.params ?? {}),
166
+ ...(input.locale
167
+ ? { locale: normalizeLocale(input.locale) ?? input.locale }
168
+ : {}),
169
+ ...(input.currency
170
+ ? { currency: normalizeCurrency(input.currency) ?? input.currency }
171
+ : {}),
172
+ };
173
+ }
174
+ /** Structural comparison used by hosts to skip redundant updates (loop prevention). */
175
+ export function isSameCorasUrlState(a, b) {
176
+ if (a.page !== b.page)
177
+ return false;
178
+ if (a.locale !== b.locale)
179
+ return false;
180
+ if (a.currency !== b.currency)
181
+ return false;
182
+ const aParams = (a.params ?? {});
183
+ const bParams = (b.params ?? {});
184
+ const keys = new Set([...Object.keys(aParams), ...Object.keys(bParams)]);
185
+ for (const key of keys) {
186
+ if (aParams[key] !== bParams[key])
187
+ return false;
188
+ }
189
+ return true;
190
+ }
191
+ /** Bind the URL helpers to a single strategy. */
192
+ export function createCorasUrlState(strategy = {}) {
193
+ return {
194
+ parse: (url) => parseCorasUrl(url, strategy),
195
+ build: (state) => buildCorasUrl(state, strategy),
196
+ normalize: normalizeCorasUrlState,
197
+ isSame: isSameCorasUrlState,
198
+ };
199
+ }
@@ -0,0 +1,50 @@
1
+ import type { SupportedCurrencies } from "../core/types/core/currency.js";
2
+ import type { SupportedLocales } from "../core/types/core/locale.js";
3
+ import type { CorasConfig, CorasMountOptions, CorasPageName } from "./types.js";
4
+ export type CorasValidationErrorCode = "missing_container" | "invalid_page" | "invalid_config" | "invalid_url" | "invalid_locale" | "invalid_currency" | "invalid_color_scheme" | "invalid_theme" | "invalid_page_params" | "unknown_key";
5
+ /**
6
+ * A typed, redacted validation error thrown for invalid host input before any
7
+ * element is rendered or updated. Messages are safe to surface to the host.
8
+ */
9
+ export declare class CorasValidationError extends Error {
10
+ readonly code: CorasValidationErrorCode;
11
+ readonly field?: string;
12
+ constructor(code: CorasValidationErrorCode, message: string, field?: string);
13
+ }
14
+ export declare const PUBLIC_PAGES: readonly CorasPageName[];
15
+ /**
16
+ * Reject a page name outside the public set with a typed error. Shared by mount,
17
+ * update, navigate and prefetch so every entry point fails the same way — and
18
+ * before any state is mutated — instead of indexing the registry with an unknown
19
+ * page and throwing a bare TypeError.
20
+ */
21
+ export declare function assertValidPage(page: unknown): asserts page is CorasPageName;
22
+ /** Allowed param keys per page (public names). */
23
+ export declare const PAGE_PARAM_KEYS: Record<CorasPageName, readonly string[]>;
24
+ /**
25
+ * URL params whose string form decodes to a non-string type. Everything not
26
+ * listed stays a string. Used by the URL helpers so a value round-trips through
27
+ * a URL as the type `mount()` validation expects (e.g. `limit=3` -> `3`, not
28
+ * `"3"`; `showExploreCard=false` -> `false`, not a truthy `"false"`).
29
+ */
30
+ export declare const PAGE_PARAM_TYPES: Readonly<Record<string, "number" | "boolean">>;
31
+ /** Normalize locale casing/separators (e.g. `en_ie`, `EN-IE` -> `en-IE`). */
32
+ export declare function normalizeLocale(value: string): SupportedLocales | undefined;
33
+ /** Normalize currency casing (e.g. `eur` -> `EUR`). */
34
+ export declare function normalizeCurrency(value: string): SupportedCurrencies | undefined;
35
+ /**
36
+ * Require an https URL (http allowed only for localhost dev). Returns the
37
+ * parsed origin-safe href, or throws.
38
+ */
39
+ export declare function assertSecureUrl(value: string, field: string): string;
40
+ export type ValidatedMount = {
41
+ page: CorasPageName;
42
+ config: CorasConfig;
43
+ params: Record<string, unknown>;
44
+ };
45
+ export declare function validateConfig(config: CorasConfig, strict: boolean): CorasConfig;
46
+ export declare function validatePageParams(page: CorasPageName, params: Record<string, unknown> | undefined, strict: boolean): Record<string, unknown>;
47
+ /**
48
+ * Validate and normalize the full mount options before anything is rendered.
49
+ */
50
+ export declare function validateMountOptions(options: CorasMountOptions): ValidatedMount;