@mrfylke/contact-form 0.1.3

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 (637) hide show
  1. package/lib/ContactFormRoot.d.ts +37 -0
  2. package/lib/ContactFormRoot.d.ts.map +1 -0
  3. package/lib/ContactFormRoot.js +53 -0
  4. package/lib/commoneEvents.d.ts +16 -0
  5. package/lib/commoneEvents.d.ts.map +1 -0
  6. package/lib/commoneEvents.js +4 -0
  7. package/lib/components/button/button.d.ts +17 -0
  8. package/lib/components/button/button.d.ts.map +1 -0
  9. package/lib/components/button/button.js +15 -0
  10. package/lib/components/button/button.module.css +399 -0
  11. package/lib/components/button/index.d.ts +5 -0
  12. package/lib/components/button/index.d.ts.map +1 -0
  13. package/lib/components/button/index.js +10 -0
  14. package/lib/components/button/link.d.ts +27 -0
  15. package/lib/components/button/link.d.ts.map +1 -0
  16. package/lib/components/button/link.js +19 -0
  17. package/lib/components/button/utils.d.ts +69 -0
  18. package/lib/components/button/utils.d.ts.map +1 -0
  19. package/lib/components/button/utils.js +33 -0
  20. package/lib/components/checkbox/checkbox.d.ts +13 -0
  21. package/lib/components/checkbox/checkbox.d.ts.map +1 -0
  22. package/lib/components/checkbox/checkbox.js +23 -0
  23. package/lib/components/checkbox/checkbox.module.css +96 -0
  24. package/lib/components/checkbox/index.d.ts +3 -0
  25. package/lib/components/checkbox/index.d.ts.map +1 -0
  26. package/lib/components/checkbox/index.js +8 -0
  27. package/lib/components/error-message/error-message.d.ts +6 -0
  28. package/lib/components/error-message/error-message.d.ts.map +1 -0
  29. package/lib/components/error-message/error-message.js +13 -0
  30. package/lib/components/error-message/error-message.module.css +6 -0
  31. package/lib/components/error-message/index.d.ts +3 -0
  32. package/lib/components/error-message/index.d.ts.map +1 -0
  33. package/lib/components/error-message/index.js +8 -0
  34. package/lib/components/external-link-page.d.ts +14 -0
  35. package/lib/components/external-link-page.d.ts.map +1 -0
  36. package/lib/components/external-link-page.js +27 -0
  37. package/lib/components/external-link-page.module.css +29 -0
  38. package/lib/components/form/date-selector.d.ts +11 -0
  39. package/lib/components/form/date-selector.d.ts.map +1 -0
  40. package/lib/components/form/date-selector.js +21 -0
  41. package/lib/components/form/description-modal.d.ts +13 -0
  42. package/lib/components/form/description-modal.d.ts.map +1 -0
  43. package/lib/components/form/description-modal.js +43 -0
  44. package/lib/components/form/field-wrapper-with-error/index.d.ts +8 -0
  45. package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -0
  46. package/lib/components/form/field-wrapper-with-error/index.js +12 -0
  47. package/lib/components/form/fieldset/fieldset.module.css +26 -0
  48. package/lib/components/form/fieldset/index.d.ts +8 -0
  49. package/lib/components/form/fieldset/index.d.ts.map +1 -0
  50. package/lib/components/form/fieldset/index.js +17 -0
  51. package/lib/components/form/file-input.d.ts +10 -0
  52. package/lib/components/form/file-input.d.ts.map +1 -0
  53. package/lib/components/form/file-input.js +68 -0
  54. package/lib/components/form/form-component-label/form-component-label.module.css +10 -0
  55. package/lib/components/form/form-component-label/index.d.ts +9 -0
  56. package/lib/components/form/form-component-label/index.d.ts.map +1 -0
  57. package/lib/components/form/form-component-label/index.js +18 -0
  58. package/lib/components/form/form.module.css +573 -0
  59. package/lib/components/form/index.d.ts +11 -0
  60. package/lib/components/form/index.d.ts.map +1 -0
  61. package/lib/components/form/index.js +28 -0
  62. package/lib/components/form/input.d.ts +17 -0
  63. package/lib/components/form/input.d.ts.map +1 -0
  64. package/lib/components/form/input.js +42 -0
  65. package/lib/components/form/radio.d.ts +7 -0
  66. package/lib/components/form/radio.d.ts.map +1 -0
  67. package/lib/components/form/radio.js +14 -0
  68. package/lib/components/form/searchable-select/index.d.ts +3 -0
  69. package/lib/components/form/searchable-select/index.d.ts.map +1 -0
  70. package/lib/components/form/searchable-select/index.js +11 -0
  71. package/lib/components/form/searchable-select/searchable-select.d.ts +18 -0
  72. package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -0
  73. package/lib/components/form/searchable-select/searchable-select.js +55 -0
  74. package/lib/components/form/searchable-select/utils.d.ts +5 -0
  75. package/lib/components/form/searchable-select/utils.d.ts.map +1 -0
  76. package/lib/components/form/searchable-select/utils.js +19 -0
  77. package/lib/components/form/select.d.ts +15 -0
  78. package/lib/components/form/select.d.ts.map +1 -0
  79. package/lib/components/form/select.js +22 -0
  80. package/lib/components/form/textarea.d.ts +11 -0
  81. package/lib/components/form/textarea.d.ts.map +1 -0
  82. package/lib/components/form/textarea.js +17 -0
  83. package/lib/components/form/time-selector.d.ts +11 -0
  84. package/lib/components/form/time-selector.d.ts.map +1 -0
  85. package/lib/components/form/time-selector.js +22 -0
  86. package/lib/components/icon/checkbox-icon.d.ts +14 -0
  87. package/lib/components/icon/checkbox-icon.d.ts.map +1 -0
  88. package/lib/components/icon/checkbox-icon.js +18 -0
  89. package/lib/components/icon/color-icon.d.ts +17 -0
  90. package/lib/components/icon/color-icon.d.ts.map +1 -0
  91. package/lib/components/icon/color-icon.js +27 -0
  92. package/lib/components/icon/generated-icons.d.ts +1797 -0
  93. package/lib/components/icon/generated-icons.d.ts.map +1 -0
  94. package/lib/components/icon/generated-icons.js +1782 -0
  95. package/lib/components/icon/icon-wrapper.d.ts +30 -0
  96. package/lib/components/icon/icon-wrapper.d.ts.map +1 -0
  97. package/lib/components/icon/icon-wrapper.js +39 -0
  98. package/lib/components/icon/illustration.d.ts +7 -0
  99. package/lib/components/icon/illustration.d.ts.map +1 -0
  100. package/lib/components/icon/illustration.js +25 -0
  101. package/lib/components/icon/image.d.ts +7 -0
  102. package/lib/components/icon/image.d.ts.map +1 -0
  103. package/lib/components/icon/image.js +26 -0
  104. package/lib/components/icon/index.d.ts +6 -0
  105. package/lib/components/icon/index.d.ts.map +1 -0
  106. package/lib/components/icon/index.js +20 -0
  107. package/lib/components/icon/mono-icon-new.d.ts +32 -0
  108. package/lib/components/icon/mono-icon-new.d.ts.map +1 -0
  109. package/lib/components/icon/mono-icon-new.js +43 -0
  110. package/lib/components/icon/mono-icon.d.ts +29 -0
  111. package/lib/components/icon/mono-icon.d.ts.map +1 -0
  112. package/lib/components/icon/mono-icon.js +39 -0
  113. package/lib/components/icon/utils.d.ts +3 -0
  114. package/lib/components/icon/utils.d.ts.map +1 -0
  115. package/lib/components/icon/utils.js +12 -0
  116. package/lib/components/index.d.ts +3 -0
  117. package/lib/components/index.d.ts.map +1 -0
  118. package/lib/components/index.js +18 -0
  119. package/lib/components/loading/index.d.ts +15 -0
  120. package/lib/components/loading/index.d.ts.map +1 -0
  121. package/lib/components/loading/index.js +19 -0
  122. package/lib/components/loading/loading.module.css +17 -0
  123. package/lib/components/section-card/index.d.ts +2 -0
  124. package/lib/components/section-card/index.d.ts.map +1 -0
  125. package/lib/components/section-card/index.js +8 -0
  126. package/lib/components/section-card/section-card.d.ts +7 -0
  127. package/lib/components/section-card/section-card.d.ts.map +1 -0
  128. package/lib/components/section-card/section-card.js +14 -0
  129. package/lib/components/section-card/section-card.module.css +15 -0
  130. package/lib/components/typography/index.d.ts +19 -0
  131. package/lib/components/typography/index.d.ts.map +1 -0
  132. package/lib/components/typography/index.js +27 -0
  133. package/lib/components/typography/utils.d.ts +2 -0
  134. package/lib/components/typography/utils.d.ts.map +1 -0
  135. package/lib/components/typography/utils.js +4 -0
  136. package/lib/contact.module.css +76 -0
  137. package/lib/error-content/error-content.d.ts +2 -0
  138. package/lib/error-content/error-content.d.ts.map +1 -0
  139. package/lib/error-content/error-content.js +19 -0
  140. package/lib/error-content/error-content.module.css +11 -0
  141. package/lib/group-travel/index.d.ts +2 -0
  142. package/lib/group-travel/index.d.ts.map +1 -0
  143. package/lib/group-travel/index.js +15 -0
  144. package/lib/index.d.ts +25 -0
  145. package/lib/index.d.ts.map +1 -0
  146. package/lib/index.js +73 -0
  147. package/lib/journey-info/events.d.ts +14 -0
  148. package/lib/journey-info/events.d.ts.map +1 -0
  149. package/lib/journey-info/events.js +5 -0
  150. package/lib/journey-info/index.d.ts +2 -0
  151. package/lib/journey-info/index.d.ts.map +1 -0
  152. package/lib/journey-info/index.js +66 -0
  153. package/lib/journey-info/journeyInfoStateMachine.d.ts +179 -0
  154. package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -0
  155. package/lib/journey-info/journeyInfoStateMachine.js +160 -0
  156. package/lib/layouts/contact-form-container.d.ts +10 -0
  157. package/lib/layouts/contact-form-container.d.ts.map +1 -0
  158. package/lib/layouts/contact-form-container.js +12 -0
  159. package/lib/layouts/contact-form-footer.d.ts +5 -0
  160. package/lib/layouts/contact-form-footer.d.ts.map +1 -0
  161. package/lib/layouts/contact-form-footer.js +59 -0
  162. package/lib/layouts/contact-form-header.d.ts +9 -0
  163. package/lib/layouts/contact-form-header.d.ts.map +1 -0
  164. package/lib/layouts/contact-form-header.js +45 -0
  165. package/lib/layouts/contact-page-layout.d.ts +24 -0
  166. package/lib/layouts/contact-page-layout.d.ts.map +1 -0
  167. package/lib/layouts/contact-page-layout.js +104 -0
  168. package/lib/layouts/container.module.css +15 -0
  169. package/lib/layouts/footer.module.css +109 -0
  170. package/lib/layouts/header.module.css +39 -0
  171. package/lib/layouts/index.d.ts +3 -0
  172. package/lib/layouts/index.d.ts.map +1 -0
  173. package/lib/layouts/index.js +11 -0
  174. package/lib/layouts/layout.module.css +80 -0
  175. package/lib/lines/use-lines.d.ts +25 -0
  176. package/lib/lines/use-lines.d.ts.map +1 -0
  177. package/lib/lines/use-lines.js +77 -0
  178. package/lib/lost-property/index.d.ts +2 -0
  179. package/lib/lost-property/index.d.ts.map +1 -0
  180. package/lib/lost-property/index.js +11 -0
  181. package/lib/means-of-transport/events.d.ts +17 -0
  182. package/lib/means-of-transport/events.d.ts.map +1 -0
  183. package/lib/means-of-transport/events.js +5 -0
  184. package/lib/means-of-transport/forms/delayForm.d.ts +11 -0
  185. package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -0
  186. package/lib/means-of-transport/forms/delayForm.js +88 -0
  187. package/lib/means-of-transport/forms/driverForm.d.ts +11 -0
  188. package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -0
  189. package/lib/means-of-transport/forms/driverForm.js +88 -0
  190. package/lib/means-of-transport/forms/index.d.ts +7 -0
  191. package/lib/means-of-transport/forms/index.d.ts.map +1 -0
  192. package/lib/means-of-transport/forms/index.js +18 -0
  193. package/lib/means-of-transport/forms/injuryForm.d.ts +11 -0
  194. package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -0
  195. package/lib/means-of-transport/forms/injuryForm.js +88 -0
  196. package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +11 -0
  197. package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -0
  198. package/lib/means-of-transport/forms/serviceOfferingForm.js +64 -0
  199. package/lib/means-of-transport/forms/stopForm.d.ts +11 -0
  200. package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -0
  201. package/lib/means-of-transport/forms/stopForm.js +76 -0
  202. package/lib/means-of-transport/forms/transportationForm.d.ts +11 -0
  203. package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -0
  204. package/lib/means-of-transport/forms/transportationForm.js +88 -0
  205. package/lib/means-of-transport/index.d.ts +3 -0
  206. package/lib/means-of-transport/index.d.ts.map +1 -0
  207. package/lib/means-of-transport/index.js +47 -0
  208. package/lib/means-of-transport/means-of-transport-form-machine.d.ts +291 -0
  209. package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -0
  210. package/lib/means-of-transport/means-of-transport-form-machine.js +287 -0
  211. package/lib/modules/api-browser/index.d.ts +8 -0
  212. package/lib/modules/api-browser/index.d.ts.map +1 -0
  213. package/lib/modules/api-browser/index.js +54 -0
  214. package/lib/modules/api-server/external-client.d.ts +22 -0
  215. package/lib/modules/api-server/external-client.d.ts.map +1 -0
  216. package/lib/modules/api-server/external-client.js +86 -0
  217. package/lib/modules/api-server/index.d.ts +9 -0
  218. package/lib/modules/api-server/index.d.ts.map +1 -0
  219. package/lib/modules/api-server/index.js +24 -0
  220. package/lib/modules/api-server/requesters/graphql-requester.d.ts +6 -0
  221. package/lib/modules/api-server/requesters/graphql-requester.d.ts.map +1 -0
  222. package/lib/modules/api-server/requesters/graphql-requester.js +63 -0
  223. package/lib/modules/api-server/requesters/http-requester.d.ts +3 -0
  224. package/lib/modules/api-server/requesters/http-requester.d.ts.map +1 -0
  225. package/lib/modules/api-server/requesters/http-requester.js +110 -0
  226. package/lib/modules/api-server/requesters/types.d.ts +37 -0
  227. package/lib/modules/api-server/requesters/types.d.ts.map +1 -0
  228. package/lib/modules/api-server/requesters/types.js +34 -0
  229. package/lib/modules/api-server/requesters/utils.d.ts +17 -0
  230. package/lib/modules/api-server/requesters/utils.d.ts.map +1 -0
  231. package/lib/modules/api-server/requesters/utils.js +75 -0
  232. package/lib/modules/config/context.d.ts +54 -0
  233. package/lib/modules/config/context.d.ts.map +1 -0
  234. package/lib/modules/config/context.js +112 -0
  235. package/lib/modules/config/index.d.ts +4 -0
  236. package/lib/modules/config/index.d.ts.map +1 -0
  237. package/lib/modules/config/index.js +19 -0
  238. package/lib/modules/config/theme-adapter.d.ts +20 -0
  239. package/lib/modules/config/theme-adapter.d.ts.map +1 -0
  240. package/lib/modules/config/theme-adapter.js +56 -0
  241. package/lib/modules/config/types.d.ts +348 -0
  242. package/lib/modules/config/types.d.ts.map +1 -0
  243. package/lib/modules/config/types.js +6 -0
  244. package/lib/modules/cookies/constants.d.ts +4 -0
  245. package/lib/modules/cookies/constants.d.ts.map +1 -0
  246. package/lib/modules/cookies/constants.js +6 -0
  247. package/lib/modules/cookies/cookies-context.d.ts +17 -0
  248. package/lib/modules/cookies/cookies-context.d.ts.map +1 -0
  249. package/lib/modules/cookies/cookies-context.js +61 -0
  250. package/lib/modules/cookies/index.d.ts +15 -0
  251. package/lib/modules/cookies/index.d.ts.map +1 -0
  252. package/lib/modules/cookies/index.js +22 -0
  253. package/lib/modules/firebase/analytics.d.ts +3 -0
  254. package/lib/modules/firebase/analytics.d.ts.map +1 -0
  255. package/lib/modules/firebase/analytics.js +40 -0
  256. package/lib/modules/firebase/firebase.d.ts +4 -0
  257. package/lib/modules/firebase/firebase.d.ts.map +1 -0
  258. package/lib/modules/firebase/firebase.js +19 -0
  259. package/lib/modules/firebase/index.d.ts +5 -0
  260. package/lib/modules/firebase/index.d.ts.map +1 -0
  261. package/lib/modules/firebase/index.js +25 -0
  262. package/lib/modules/firebase/preassigned-fare-products.d.ts +8 -0
  263. package/lib/modules/firebase/preassigned-fare-products.d.ts.map +1 -0
  264. package/lib/modules/firebase/preassigned-fare-products.js +35 -0
  265. package/lib/modules/firebase/tariff-zones.d.ts +17 -0
  266. package/lib/modules/firebase/tariff-zones.d.ts.map +1 -0
  267. package/lib/modules/firebase/tariff-zones.js +32 -0
  268. package/lib/modules/firebase/transport-mode-filter.d.ts +27 -0
  269. package/lib/modules/firebase/transport-mode-filter.d.ts.map +1 -0
  270. package/lib/modules/firebase/transport-mode-filter.js +27 -0
  271. package/lib/modules/firebase/types.d.ts +19 -0
  272. package/lib/modules/firebase/types.d.ts.map +1 -0
  273. package/lib/modules/firebase/types.js +15 -0
  274. package/lib/modules/graphql-types/index.d.ts +1998 -0
  275. package/lib/modules/graphql-types/index.d.ts.map +1 -0
  276. package/lib/modules/graphql-types/index.js +442 -0
  277. package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts +2419 -0
  278. package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts.map +1 -0
  279. package/lib/modules/graphql-types/journeyplanner-types_v3.generated.js +524 -0
  280. package/lib/modules/logging/index.d.ts +6 -0
  281. package/lib/modules/logging/index.d.ts.map +1 -0
  282. package/lib/modules/logging/index.js +13 -0
  283. package/lib/modules/logging/log-api-response.d.ts +15 -0
  284. package/lib/modules/logging/log-api-response.d.ts.map +1 -0
  285. package/lib/modules/logging/log-api-response.js +52 -0
  286. package/lib/modules/logging/log-page-access.d.ts +20 -0
  287. package/lib/modules/logging/log-page-access.d.ts.map +1 -0
  288. package/lib/modules/logging/log-page-access.js +60 -0
  289. package/lib/modules/logging/logger.d.ts +3 -0
  290. package/lib/modules/logging/logger.d.ts.map +1 -0
  291. package/lib/modules/logging/logger.js +32 -0
  292. package/lib/modules/logging/timer.d.ts +6 -0
  293. package/lib/modules/logging/timer.d.ts.map +1 -0
  294. package/lib/modules/logging/timer.js +13 -0
  295. package/lib/modules/logging/with-access-logging.d.ts +5 -0
  296. package/lib/modules/logging/with-access-logging.d.ts.map +1 -0
  297. package/lib/modules/logging/with-access-logging.js +20 -0
  298. package/lib/modules/org-data/compat-layer.d.ts +8 -0
  299. package/lib/modules/org-data/compat-layer.d.ts.map +1 -0
  300. package/lib/modules/org-data/compat-layer.js +8 -0
  301. package/lib/modules/org-data/index.d.ts +12 -0
  302. package/lib/modules/org-data/index.d.ts.map +1 -0
  303. package/lib/modules/org-data/index.js +27 -0
  304. package/lib/modules/theme/index.d.ts +3 -0
  305. package/lib/modules/theme/index.d.ts.map +1 -0
  306. package/lib/modules/theme/index.js +9 -0
  307. package/lib/modules/theme/theme-context.d.ts +43 -0
  308. package/lib/modules/theme/theme-context.d.ts.map +1 -0
  309. package/lib/modules/theme/theme-context.js +73 -0
  310. package/lib/modules/transport-mode/filter/filter.d.ts +9 -0
  311. package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -0
  312. package/lib/modules/transport-mode/filter/filter.js +64 -0
  313. package/lib/modules/transport-mode/filter/filter.module.css +98 -0
  314. package/lib/modules/transport-mode/filter/index.d.ts +3 -0
  315. package/lib/modules/transport-mode/filter/index.d.ts.map +1 -0
  316. package/lib/modules/transport-mode/filter/index.js +11 -0
  317. package/lib/modules/transport-mode/filter/types.d.ts +2 -0
  318. package/lib/modules/transport-mode/filter/types.d.ts.map +1 -0
  319. package/lib/modules/transport-mode/filter/types.js +2 -0
  320. package/lib/modules/transport-mode/filter/utils.d.ts +9 -0
  321. package/lib/modules/transport-mode/filter/utils.d.ts.map +1 -0
  322. package/lib/modules/transport-mode/filter/utils.js +21 -0
  323. package/lib/modules/transport-mode/icon/icon.module.css +33 -0
  324. package/lib/modules/transport-mode/icon/index.d.ts +29 -0
  325. package/lib/modules/transport-mode/icon/index.d.ts.map +1 -0
  326. package/lib/modules/transport-mode/icon/index.js +116 -0
  327. package/lib/modules/transport-mode/icon/transport-icon-new.d.ts +28 -0
  328. package/lib/modules/transport-mode/icon/transport-icon-new.d.ts.map +1 -0
  329. package/lib/modules/transport-mode/icon/transport-icon-new.js +114 -0
  330. package/lib/modules/transport-mode/index.d.ts +5 -0
  331. package/lib/modules/transport-mode/index.d.ts.map +1 -0
  332. package/lib/modules/transport-mode/index.js +29 -0
  333. package/lib/modules/transport-mode/types.d.ts +10 -0
  334. package/lib/modules/transport-mode/types.d.ts.map +1 -0
  335. package/lib/modules/transport-mode/types.js +141 -0
  336. package/lib/modules/transport-mode/utils.d.ts +9 -0
  337. package/lib/modules/transport-mode/utils.d.ts.map +1 -0
  338. package/lib/modules/transport-mode/utils.js +53 -0
  339. package/lib/refund/events.d.ts +32 -0
  340. package/lib/refund/events.d.ts.map +1 -0
  341. package/lib/refund/events.js +5 -0
  342. package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +10 -0
  343. package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -0
  344. package/lib/refund/forms/refund-and-travel-guarantee/index.js +37 -0
  345. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts +11 -0
  346. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -0
  347. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +133 -0
  348. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts +11 -0
  349. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -0
  350. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.js +133 -0
  351. package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts +12 -0
  352. package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -0
  353. package/lib/refund/forms/refund-ticket/appTicketRefund.js +82 -0
  354. package/lib/refund/forms/refund-ticket/index.d.ts +10 -0
  355. package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -0
  356. package/lib/refund/forms/refund-ticket/index.js +38 -0
  357. package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +11 -0
  358. package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -0
  359. package/lib/refund/forms/refund-ticket/otherTicketRefund.js +109 -0
  360. package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +2 -0
  361. package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -0
  362. package/lib/refund/forms/residualValueOnTravelCard/index.js +19 -0
  363. package/lib/refund/index.d.ts +3 -0
  364. package/lib/refund/index.d.ts.map +1 -0
  365. package/lib/refund/index.js +50 -0
  366. package/lib/refund/refundFormMachine.d.ts +406 -0
  367. package/lib/refund/refundFormMachine.d.ts.map +1 -0
  368. package/lib/refund/refundFormMachine.js +404 -0
  369. package/lib/server/contact/index.d.ts +11 -0
  370. package/lib/server/contact/index.d.ts.map +1 -0
  371. package/lib/server/contact/index.js +47 -0
  372. package/lib/server/index.d.ts +9 -0
  373. package/lib/server/index.d.ts.map +1 -0
  374. package/lib/server/index.js +14 -0
  375. package/lib/server/journey-planner/authority.d.ts +26 -0
  376. package/lib/server/journey-planner/authority.d.ts.map +1 -0
  377. package/lib/server/journey-planner/authority.js +48 -0
  378. package/lib/server/journey-planner/entur-client.d.ts +7 -0
  379. package/lib/server/journey-planner/entur-client.d.ts.map +1 -0
  380. package/lib/server/journey-planner/entur-client.js +46 -0
  381. package/lib/server/journey-planner/index.d.ts +11 -0
  382. package/lib/server/journey-planner/index.d.ts.map +1 -0
  383. package/lib/server/journey-planner/index.js +63 -0
  384. package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +25 -0
  385. package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -0
  386. package/lib/server/journey-planner/journey-gql/lines.generated.js +30 -0
  387. package/lib/server/journey-planner/validators.d.ts +25 -0
  388. package/lib/server/journey-planner/validators.d.ts.map +1 -0
  389. package/lib/server/journey-planner/validators.js +17 -0
  390. package/lib/server/types.d.ts +5 -0
  391. package/lib/server/types.d.ts.map +1 -0
  392. package/lib/server/types.js +2 -0
  393. package/lib/success-content/success-content.d.ts +2 -0
  394. package/lib/success-content/success-content.d.ts.map +1 -0
  395. package/lib/success-content/success-content.js +19 -0
  396. package/lib/success-content/success-content.module.css +11 -0
  397. package/lib/ticket-control/events.d.ts +16 -0
  398. package/lib/ticket-control/events.d.ts.map +1 -0
  399. package/lib/ticket-control/events.js +5 -0
  400. package/lib/ticket-control/forms/feeComplaintForm.d.ts +11 -0
  401. package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -0
  402. package/lib/ticket-control/forms/feeComplaintForm.js +130 -0
  403. package/lib/ticket-control/forms/feedbackForm.d.ts +11 -0
  404. package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -0
  405. package/lib/ticket-control/forms/feedbackForm.js +75 -0
  406. package/lib/ticket-control/forms/postponePayment.d.ts +11 -0
  407. package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -0
  408. package/lib/ticket-control/forms/postponePayment.js +37 -0
  409. package/lib/ticket-control/index.d.ts +3 -0
  410. package/lib/ticket-control/index.d.ts.map +1 -0
  411. package/lib/ticket-control/index.js +53 -0
  412. package/lib/ticket-control/ticket-control-form-machine.d.ts +277 -0
  413. package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -0
  414. package/lib/ticket-control/ticket-control-form-machine.js +262 -0
  415. package/lib/ticketing/events.d.ts +28 -0
  416. package/lib/ticketing/events.d.ts.map +1 -0
  417. package/lib/ticketing/events.js +5 -0
  418. package/lib/ticketing/forms/app/appAccountForm.d.ts +11 -0
  419. package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -0
  420. package/lib/ticketing/forms/app/appAccountForm.js +51 -0
  421. package/lib/ticketing/forms/app/appTicketingForm.d.ts +11 -0
  422. package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -0
  423. package/lib/ticketing/forms/app/appTicketingForm.js +59 -0
  424. package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +11 -0
  425. package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -0
  426. package/lib/ticketing/forms/app/appTravelSuggestionForm.js +41 -0
  427. package/lib/ticketing/forms/app/index.d.ts +10 -0
  428. package/lib/ticketing/forms/app/index.d.ts.map +1 -0
  429. package/lib/ticketing/forms/app/index.js +23 -0
  430. package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +11 -0
  431. package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -0
  432. package/lib/ticketing/forms/priceAndTicketTypesForm.js +41 -0
  433. package/lib/ticketing/forms/travel-card/index.d.ts +10 -0
  434. package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -0
  435. package/lib/ticketing/forms/travel-card/index.js +24 -0
  436. package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +3 -0
  437. package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -0
  438. package/lib/ticketing/forms/travel-card/orderTravelCard.js +21 -0
  439. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +11 -0
  440. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -0
  441. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.js +52 -0
  442. package/lib/ticketing/forms/webshop/index.d.ts +10 -0
  443. package/lib/ticketing/forms/webshop/index.d.ts.map +1 -0
  444. package/lib/ticketing/forms/webshop/index.js +22 -0
  445. package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +11 -0
  446. package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -0
  447. package/lib/ticketing/forms/webshop/webshopAccountForm.js +51 -0
  448. package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +11 -0
  449. package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -0
  450. package/lib/ticketing/forms/webshop/webshopTicketingForm.js +58 -0
  451. package/lib/ticketing/index.d.ts +3 -0
  452. package/lib/ticketing/index.d.ts.map +1 -0
  453. package/lib/ticketing/index.js +52 -0
  454. package/lib/ticketing/ticketingStateMachine.d.ts +438 -0
  455. package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -0
  456. package/lib/ticketing/ticketingStateMachine.js +435 -0
  457. package/lib/translations/__tests__/utils.test.d.ts +2 -0
  458. package/lib/translations/__tests__/utils.test.d.ts.map +1 -0
  459. package/lib/translations/__tests__/utils.test.js +35 -0
  460. package/lib/translations/common/index.d.ts +3 -0
  461. package/lib/translations/common/index.d.ts.map +1 -0
  462. package/lib/translations/common/index.js +7 -0
  463. package/lib/translations/common/layout.d.ts +8 -0
  464. package/lib/translations/common/layout.d.ts.map +1 -0
  465. package/lib/translations/common/layout.js +39 -0
  466. package/lib/translations/common/titles.d.ts +4 -0
  467. package/lib/translations/common/titles.d.ts.map +1 -0
  468. package/lib/translations/common/titles.js +25 -0
  469. package/lib/translations/commons.d.ts +21 -0
  470. package/lib/translations/commons.d.ts.map +1 -0
  471. package/lib/translations/commons.js +39 -0
  472. package/lib/translations/components/clear-button.d.ts +4 -0
  473. package/lib/translations/components/clear-button.d.ts.map +1 -0
  474. package/lib/translations/components/clear-button.js +7 -0
  475. package/lib/translations/components/departure-date-selector.d.ts +8 -0
  476. package/lib/translations/components/departure-date-selector.d.ts.map +1 -0
  477. package/lib/translations/components/departure-date-selector.js +11 -0
  478. package/lib/translations/components/departure-time.d.ts +8 -0
  479. package/lib/translations/components/departure-time.d.ts.map +1 -0
  480. package/lib/translations/components/departure-time.js +11 -0
  481. package/lib/translations/components/empty-search.d.ts +18 -0
  482. package/lib/translations/components/empty-search.d.ts.map +1 -0
  483. package/lib/translations/components/empty-search.js +21 -0
  484. package/lib/translations/components/geolocation-button.d.ts +10 -0
  485. package/lib/translations/components/geolocation-button.d.ts.map +1 -0
  486. package/lib/translations/components/geolocation-button.js +13 -0
  487. package/lib/translations/components/index.d.ts +14 -0
  488. package/lib/translations/components/index.d.ts.map +1 -0
  489. package/lib/translations/components/index.js +29 -0
  490. package/lib/translations/components/loading.d.ts +4 -0
  491. package/lib/translations/components/loading.d.ts.map +1 -0
  492. package/lib/translations/components/loading.js +7 -0
  493. package/lib/translations/components/map.d.ts +19 -0
  494. package/lib/translations/components/map.d.ts.map +1 -0
  495. package/lib/translations/components/map.js +22 -0
  496. package/lib/translations/components/search.d.ts +9 -0
  497. package/lib/translations/components/search.d.ts.map +1 -0
  498. package/lib/translations/components/search.js +12 -0
  499. package/lib/translations/components/swap-button.d.ts +4 -0
  500. package/lib/translations/components/swap-button.d.ts.map +1 -0
  501. package/lib/translations/components/swap-button.js +7 -0
  502. package/lib/translations/components/tab-link.d.ts +5 -0
  503. package/lib/translations/components/tab-link.d.ts.map +1 -0
  504. package/lib/translations/components/tab-link.js +8 -0
  505. package/lib/translations/components/transport-mode-filter.d.ts +6 -0
  506. package/lib/translations/components/transport-mode-filter.d.ts.map +1 -0
  507. package/lib/translations/components/transport-mode-filter.js +9 -0
  508. package/lib/translations/components/transport-mode.d.ts +3 -0
  509. package/lib/translations/components/transport-mode.d.ts.map +1 -0
  510. package/lib/translations/components/transport-mode.js +28 -0
  511. package/lib/translations/components/venue-icon.d.ts +9 -0
  512. package/lib/translations/components/venue-icon.d.ts.map +1 -0
  513. package/lib/translations/components/venue-icon.js +12 -0
  514. package/lib/translations/dictionary.d.ts +33 -0
  515. package/lib/translations/dictionary.d.ts.map +1 -0
  516. package/lib/translations/dictionary.js +59 -0
  517. package/lib/translations/index.d.ts +16 -0
  518. package/lib/translations/index.d.ts.map +1 -0
  519. package/lib/translations/index.js +65 -0
  520. package/lib/translations/json-to-override.d.ts +19 -0
  521. package/lib/translations/json-to-override.d.ts.map +1 -0
  522. package/lib/translations/json-to-override.js +61 -0
  523. package/lib/translations/language-context.d.ts +37 -0
  524. package/lib/translations/language-context.d.ts.map +1 -0
  525. package/lib/translations/language-context.js +98 -0
  526. package/lib/translations/load-org-translations.d.ts +19 -0
  527. package/lib/translations/load-org-translations.d.ts.map +1 -0
  528. package/lib/translations/load-org-translations.js +23 -0
  529. package/lib/translations/merge-overrides.d.ts +28 -0
  530. package/lib/translations/merge-overrides.d.ts.map +1 -0
  531. package/lib/translations/merge-overrides.js +126 -0
  532. package/lib/translations/modules/index.d.ts +4 -0
  533. package/lib/translations/modules/index.d.ts.map +1 -0
  534. package/lib/translations/modules/index.js +9 -0
  535. package/lib/translations/modules/layout.d.ts +73 -0
  536. package/lib/translations/modules/layout.d.ts.map +1 -0
  537. package/lib/translations/modules/layout.js +106 -0
  538. package/lib/translations/modules/search-time.d.ts +8 -0
  539. package/lib/translations/modules/search-time.d.ts.map +1 -0
  540. package/lib/translations/modules/search-time.js +11 -0
  541. package/lib/translations/modules/situation.d.ts +8 -0
  542. package/lib/translations/modules/situation.d.ts.map +1 -0
  543. package/lib/translations/modules/situation.js +11 -0
  544. package/lib/translations/pages/assistant.d.ts +2 -0
  545. package/lib/translations/pages/assistant.d.ts.map +1 -0
  546. package/lib/translations/pages/assistant.js +303 -0
  547. package/lib/translations/pages/contact.d.ts +589 -0
  548. package/lib/translations/pages/contact.d.ts.map +1 -0
  549. package/lib/translations/pages/contact.js +679 -0
  550. package/lib/translations/pages/departures.d.ts +64 -0
  551. package/lib/translations/pages/departures.d.ts.map +1 -0
  552. package/lib/translations/pages/departures.js +75 -0
  553. package/lib/translations/pages/error.d.ts +8 -0
  554. package/lib/translations/pages/error.d.ts.map +1 -0
  555. package/lib/translations/pages/error.js +11 -0
  556. package/lib/translations/pages/index.d.ts +4 -0
  557. package/lib/translations/pages/index.d.ts.map +1 -0
  558. package/lib/translations/pages/index.js +9 -0
  559. package/lib/translations/server/endpoints.d.ts +67 -0
  560. package/lib/translations/server/endpoints.d.ts.map +1 -0
  561. package/lib/translations/server/endpoints.js +146 -0
  562. package/lib/translations/server/index.d.ts +2 -0
  563. package/lib/translations/server/index.d.ts.map +1 -0
  564. package/lib/translations/server/index.js +5 -0
  565. package/lib/translations/translations-context.d.ts +10 -0
  566. package/lib/translations/translations-context.d.ts.map +1 -0
  567. package/lib/translations/translations-context.js +20 -0
  568. package/lib/translations/types.d.ts +41 -0
  569. package/lib/translations/types.d.ts.map +1 -0
  570. package/lib/translations/types.js +24 -0
  571. package/lib/translations/utils.d.ts +16 -0
  572. package/lib/translations/utils.d.ts.map +1 -0
  573. package/lib/translations/utils.js +56 -0
  574. package/lib/types/submit-payloads.d.ts +119 -0
  575. package/lib/types/submit-payloads.d.ts.map +1 -0
  576. package/lib/types/submit-payloads.js +7 -0
  577. package/lib/types.d.ts +20 -0
  578. package/lib/types.d.ts.map +1 -0
  579. package/lib/types.js +12 -0
  580. package/lib/utils/color.d.ts +2 -0
  581. package/lib/utils/color.d.ts.map +1 -0
  582. package/lib/utils/color.js +50 -0
  583. package/lib/utils/css.d.ts +3 -0
  584. package/lib/utils/css.d.ts.map +1 -0
  585. package/lib/utils/css.js +15 -0
  586. package/lib/utils/date.d.ts +4 -0
  587. package/lib/utils/date.d.ts.map +1 -0
  588. package/lib/utils/date.js +21 -0
  589. package/lib/utils/enum-from-string.d.ts +4 -0
  590. package/lib/utils/enum-from-string.d.ts.map +1 -0
  591. package/lib/utils/enum-from-string.js +9 -0
  592. package/lib/utils/env.d.ts +10 -0
  593. package/lib/utils/env.d.ts.map +1 -0
  594. package/lib/utils/env.js +49 -0
  595. package/lib/utils/only-uniques.d.ts +3 -0
  596. package/lib/utils/only-uniques.d.ts.map +1 -0
  597. package/lib/utils/only-uniques.js +7 -0
  598. package/lib/utils/org-theme-definitions.d.ts +5 -0
  599. package/lib/utils/org-theme-definitions.d.ts.map +1 -0
  600. package/lib/utils/org-theme-definitions.js +13 -0
  601. package/lib/utils/presence.d.ts +2 -0
  602. package/lib/utils/presence.d.ts.map +1 -0
  603. package/lib/utils/presence.js +5 -0
  604. package/lib/utils/reference-data.d.ts +15 -0
  605. package/lib/utils/reference-data.d.ts.map +1 -0
  606. package/lib/utils/reference-data.js +15 -0
  607. package/lib/utils/use-client-width.d.ts +2 -0
  608. package/lib/utils/use-client-width.d.ts.map +1 -0
  609. package/lib/utils/use-client-width.js +18 -0
  610. package/lib/utils/use-debounce.d.ts +3 -0
  611. package/lib/utils/use-debounce.d.ts.map +1 -0
  612. package/lib/utils/use-debounce.js +14 -0
  613. package/lib/utils/use-interval.d.ts +2 -0
  614. package/lib/utils/use-interval.d.ts.map +1 -0
  615. package/lib/utils/use-interval.js +22 -0
  616. package/lib/utils/use-localstorage.d.ts +2 -0
  617. package/lib/utils/use-localstorage.d.ts.map +1 -0
  618. package/lib/utils/use-localstorage.js +40 -0
  619. package/lib/utils/use-now.d.ts +2 -0
  620. package/lib/utils/use-now.d.ts.map +1 -0
  621. package/lib/utils/use-now.js +13 -0
  622. package/lib/utils/user-media-query.d.ts +2 -0
  623. package/lib/utils/user-media-query.d.ts.map +1 -0
  624. package/lib/utils/user-media-query.js +36 -0
  625. package/lib/utils.d.ts +19 -0
  626. package/lib/utils.d.ts.map +1 -0
  627. package/lib/utils.js +126 -0
  628. package/lib/validation/commonInputValidator.d.ts +7 -0
  629. package/lib/validation/commonInputValidator.d.ts.map +1 -0
  630. package/lib/validation/commonInputValidator.js +28 -0
  631. package/lib/validation/index.d.ts +2 -0
  632. package/lib/validation/index.d.ts.map +1 -0
  633. package/lib/validation/index.js +8 -0
  634. package/lib/validation/validationRules.d.ts +11 -0
  635. package/lib/validation/validationRules.d.ts.map +1 -0
  636. package/lib/validation/validationRules.js +372 -0
  637. package/package.json +99 -0
@@ -0,0 +1,19 @@
1
+ import type { ContactFormTranslationsOverride } from './types';
2
+ /**
3
+ * JSON translation format from org config files.
4
+ * Uses no/en/nn keys instead of Language enum keys.
5
+ */
6
+ export type JsonTranslationValue = string | {
7
+ no?: string;
8
+ en?: string;
9
+ nn?: string;
10
+ } | JsonTranslationObject;
11
+ export type JsonTranslationObject = {
12
+ [key: string]: JsonTranslationValue | JsonTranslationValue[];
13
+ };
14
+ /**
15
+ * Convert a JSON translation object (from org config) to ContactFormTranslationsOverride format.
16
+ * Recursively converts no/en/nn objects to TranslatedString format.
17
+ */
18
+ export declare function jsonTranslationsToOverride(json: JsonTranslationObject): ContactFormTranslationsOverride;
19
+ //# sourceMappingURL=json-to-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-to-override.d.ts","sourceRoot":"","sources":["../../src/translations/json-to-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAG7D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC1B,MAAM,GACN;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAC,GACvC,qBAAqB,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAChE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CACtC,IAAI,EAAE,qBAAqB,GAC5B,+BAA+B,CAuDjC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.jsonTranslationsToOverride = jsonTranslationsToOverride;
4
+ const merge_overrides_1 = require("./merge-overrides");
5
+ /**
6
+ * Convert a JSON translation object (from org config) to ContactFormTranslationsOverride format.
7
+ * Recursively converts no/en/nn objects to TranslatedString format.
8
+ */
9
+ function jsonTranslationsToOverride(json) {
10
+ function convertValue(value) {
11
+ if (typeof value === 'string') {
12
+ return value;
13
+ }
14
+ if (Array.isArray(value)) {
15
+ return value.map(convertValue);
16
+ }
17
+ if (value && typeof value === 'object') {
18
+ // Check if it's a translation object (has no/en/nn keys)
19
+ if ('no' in value || 'en' in value || 'nn' in value) {
20
+ return (0, merge_overrides_1.jsonToTranslatedString)(value);
21
+ }
22
+ // Otherwise it's a nested object
23
+ const result = {};
24
+ for (const key in value) {
25
+ const val = value[key];
26
+ if (val === undefined)
27
+ continue;
28
+ if (Array.isArray(val)) {
29
+ result[key] = val.map(convertValue);
30
+ }
31
+ else {
32
+ result[key] = convertValue(val);
33
+ }
34
+ }
35
+ return result;
36
+ }
37
+ return value;
38
+ }
39
+ const result = {};
40
+ if (json.pages) {
41
+ const pagesVal = json.pages;
42
+ result.pages = (Array.isArray(pagesVal) ? pagesVal.map(convertValue) : convertValue(pagesVal));
43
+ }
44
+ if (json.components) {
45
+ const componentsVal = json.components;
46
+ result.components = (Array.isArray(componentsVal) ? componentsVal.map(convertValue) : convertValue(componentsVal));
47
+ }
48
+ if (json.modules) {
49
+ const modulesVal = json.modules;
50
+ result.modules = (Array.isArray(modulesVal) ? modulesVal.map(convertValue) : convertValue(modulesVal));
51
+ }
52
+ if (json.common) {
53
+ const commonVal = json.common;
54
+ result.common = (Array.isArray(commonVal) ? commonVal.map(convertValue) : convertValue(commonVal));
55
+ }
56
+ if (json.server) {
57
+ const serverVal = json.server;
58
+ result.server = (Array.isArray(serverVal) ? serverVal.map(convertValue) : convertValue(serverVal));
59
+ }
60
+ return result;
61
+ }
@@ -0,0 +1,37 @@
1
+ import { Language } from './commons';
2
+ import { PropsWithChildren } from 'react';
3
+ import type { ContactFormTranslationsOverride } from './types';
4
+ export declare const lobot: {
5
+ LanguageProvider: import("react").Provider<Language>;
6
+ useTranslation: () => {
7
+ t: import("@leile/lobo-t").TFunc<typeof Language>;
8
+ language: Language;
9
+ };
10
+ };
11
+ export declare const useTranslation: () => {
12
+ t: import("@leile/lobo-t").TFunc<typeof Language>;
13
+ language: Language;
14
+ };
15
+ type LanguageState = {
16
+ setLanguage: (value: Language) => void;
17
+ toggleLanguage: () => void;
18
+ language: Language;
19
+ languages: readonly Language[];
20
+ };
21
+ export type AppLanguageProviderProps = PropsWithChildren<{
22
+ serverAcceptLanguage: string;
23
+ /**
24
+ * Translations for all text used in the contact form.
25
+ * Host app must provide all translations - there are no defaults in the package.
26
+ */
27
+ overrides: ContactFormTranslationsOverride;
28
+ /** Initial language when not determined from server. Host can pass persisted value (e.g. from cookie). */
29
+ defaultLanguage?: Language;
30
+ /** Called when user changes language. Host can persist (e.g. cookie) if needed. */
31
+ onLanguageChange?: (lang: Language) => void;
32
+ }>;
33
+ export default function AppLanguageProvider({ children, serverAcceptLanguage, overrides, defaultLanguage, onLanguageChange, }: AppLanguageProviderProps): import("react/jsx-runtime").JSX.Element;
34
+ export declare function useLanguageSettings(): LanguageState;
35
+ export declare function getLocalesFromAcceptLanguage(headerStr: string): Language;
36
+ export {};
37
+ //# sourceMappingURL=language-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language-context.d.ts","sourceRoot":"","sources":["../../src/translations/language-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,QAAQ,EAAC,MAAM,WAAW,CAAC;AAInE,OAAO,EAAgB,iBAAiB,EAAgD,MAAM,OAAO,CAAC;AACtG,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAG7D,eAAO,MAAM,KAAK;;;;;;CAA+C,CAAC;AAElE,eAAO,MAAM,cAAc;;;CAAuB,CAAC;AAwCnD,KAAK,aAAa,GAAG;IACjB,WAAW,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,SAAS,QAAQ,EAAE,CAAC;CAClC,CAAC;AAWF,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACrD,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,SAAS,EAAE,+BAA+B,CAAC;IAC3C,0GAA0G;IAC1G,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC/C,CAAC,CAAC;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EACI,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,gBAAgB,GACnB,EAAE,wBAAwB,2CAuBtE;AAED,wBAAgB,mBAAmB,kBAalC;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,YAK7D"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useTranslation = exports.lobot = void 0;
7
+ exports.default = AppLanguageProvider;
8
+ exports.useLanguageSettings = useLanguageSettings;
9
+ exports.getLocalesFromAcceptLanguage = getLocalesFromAcceptLanguage;
10
+ const jsx_runtime_1 = require("react/jsx-runtime");
11
+ const commons_1 = require("./commons");
12
+ const lobo_t_1 = require("@leile/lobo-t");
13
+ const detect_nearest_browser_locale_1 = __importDefault(require("detect-nearest-browser-locale"));
14
+ const detect_nearest_locale_1 = __importDefault(require("detect-nearest-locale"));
15
+ const react_1 = require("react");
16
+ const translations_context_1 = require("./translations-context");
17
+ exports.lobot = (0, lobo_t_1.initLobot)(commons_1.DEFAULT_LANGUAGE);
18
+ exports.useTranslation = exports.lobot.useTranslation;
19
+ function useSelectedLanguage(onServerside, defaultLanguage, onLanguageChange) {
20
+ const [selectedLanguage, setLanguageInternal] = (0, react_1.useState)(defaultLanguage?.toString());
21
+ // Get potential preferred language from browser.
22
+ const preferredLanguage = usePreferredBrowserLanguage(onServerside);
23
+ const lang = typeof selectedLanguage !== 'undefined'
24
+ ? mapLanguageStringToEnum(selectedLanguage)
25
+ : preferredLanguage;
26
+ function setLanguage(newLang) {
27
+ setLanguageInternal(newLang.toString());
28
+ onLanguageChange?.(newLang);
29
+ }
30
+ return [lang, setLanguage];
31
+ }
32
+ function mapLanguageStringToEnum(language) {
33
+ if (language == commons_1.Language.English) {
34
+ return commons_1.Language.English;
35
+ }
36
+ if (language == commons_1.Language.Norwegian) {
37
+ return commons_1.Language.Norwegian;
38
+ }
39
+ if (language == commons_1.Language.Nynorsk) {
40
+ return commons_1.Language.Nynorsk;
41
+ }
42
+ return commons_1.DEFAULT_LANGUAGE;
43
+ }
44
+ const LanguageContext = (0, react_1.createContext)({
45
+ setLanguage() {
46
+ },
47
+ toggleLanguage() {
48
+ },
49
+ language: commons_1.DEFAULT_LANGUAGE,
50
+ languages: commons_1.appLanguages,
51
+ });
52
+ function AppLanguageProvider({ children, serverAcceptLanguage, overrides, defaultLanguage, onLanguageChange, }) {
53
+ const fromHeaders = getLocalesFromAcceptLanguage(serverAcceptLanguage);
54
+ const [language, setLanguage] = useSelectedLanguage(fromHeaders, defaultLanguage, onLanguageChange);
55
+ const toggleLanguage = (0, react_1.useCallback)(() => {
56
+ if (language == commons_1.Language.English) {
57
+ setLanguage(commons_1.Language.Norwegian);
58
+ }
59
+ else {
60
+ setLanguage(commons_1.Language.English);
61
+ }
62
+ }, [language, setLanguage]);
63
+ return ((0, jsx_runtime_1.jsx)(LanguageContext.Provider, { value: { toggleLanguage, setLanguage, language, languages: commons_1.appLanguages }, children: (0, jsx_runtime_1.jsx)(translations_context_1.TranslationsProvider, { overrides: overrides, children: (0, jsx_runtime_1.jsx)(exports.lobot.LanguageProvider, { value: language, children: children }) }) }));
64
+ }
65
+ function useLanguageSettings() {
66
+ const context = (0, react_1.useContext)(LanguageContext);
67
+ if (!context) {
68
+ return {
69
+ setLanguage() {
70
+ },
71
+ toggleLanguage() {
72
+ },
73
+ language: commons_1.DEFAULT_LANGUAGE,
74
+ languages: commons_1.appLanguages,
75
+ };
76
+ }
77
+ return context;
78
+ }
79
+ function getLocalesFromAcceptLanguage(headerStr) {
80
+ const preferred = headerStr?.split(',').map((type) => type.split(';')[0].trim()) ?? [];
81
+ const selected = (0, detect_nearest_locale_1.default)(commons_1.appLanguages, preferred);
82
+ return mapLanguageStringToEnum(selected);
83
+ }
84
+ // Get language from browser, if in browser environment.
85
+ function usePreferredBrowserLanguage(onServerside) {
86
+ const [preferredLanguage, setPreferredLanguage] = (0, react_1.useState)(onServerside);
87
+ const deps = typeof window !== 'undefined' && 'lanuage' in window.navigator
88
+ ? navigator.language
89
+ : '';
90
+ (0, react_1.useEffect)(function () {
91
+ if (typeof window === 'undefined')
92
+ return;
93
+ const defaultLocale = (0, detect_nearest_browser_locale_1.default)(commons_1.appLanguages);
94
+ const selectedLanguage = mapLanguageStringToEnum(defaultLocale);
95
+ setPreferredLanguage(selectedLanguage);
96
+ }, [deps]);
97
+ return preferredLanguage;
98
+ }
@@ -0,0 +1,19 @@
1
+ import type { JsonTranslationObject } from './json-to-override';
2
+ import type { ContactFormTranslationsOverride } from './types';
3
+ /**
4
+ * Load translations from an org JSON config file.
5
+ * The org JSON should have a `translations` property with the structure:
6
+ * {
7
+ * translations: {
8
+ * pages?: { ... },
9
+ * components?: { ... },
10
+ * modules?: { ... },
11
+ * common?: { ... },
12
+ * server?: { ... }
13
+ * }
14
+ * }
15
+ */
16
+ export declare function loadOrgTranslations(orgJson: {
17
+ translations?: JsonTranslationObject;
18
+ }): ContactFormTranslationsOverride | undefined;
19
+ //# sourceMappingURL=load-org-translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-org-translations.d.ts","sourceRoot":"","sources":["../../src/translations/load-org-translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAC/B,OAAO,EAAE;IAAC,YAAY,CAAC,EAAE,qBAAqB,CAAA;CAAC,GAChD,+BAA+B,GAAG,SAAS,CAK7C"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadOrgTranslations = loadOrgTranslations;
4
+ const json_to_override_1 = require("./json-to-override");
5
+ /**
6
+ * Load translations from an org JSON config file.
7
+ * The org JSON should have a `translations` property with the structure:
8
+ * {
9
+ * translations: {
10
+ * pages?: { ... },
11
+ * components?: { ... },
12
+ * modules?: { ... },
13
+ * common?: { ... },
14
+ * server?: { ... }
15
+ * }
16
+ * }
17
+ */
18
+ function loadOrgTranslations(orgJson) {
19
+ if (!orgJson.translations) {
20
+ return undefined;
21
+ }
22
+ return (0, json_to_override_1.jsonTranslationsToOverride)(orgJson.translations);
23
+ }
@@ -0,0 +1,28 @@
1
+ import { translation } from './commons';
2
+ import type { ContactFormTranslationsOverride } from './types';
3
+ import * as PageText from './pages';
4
+ import * as ComponentText from './components';
5
+ import * as ModuleText from './modules';
6
+ import * as CommonText from './common';
7
+ import * as ServerText from './server';
8
+ /**
9
+ * Convert a JSON translation object with no/en/nn keys to TranslatedString format
10
+ */
11
+ export declare function jsonToTranslatedString(json: {
12
+ no?: string;
13
+ en?: string;
14
+ nn?: string;
15
+ } | string): ReturnType<typeof translation> | string;
16
+ /**
17
+ * Merge translation overrides into the provided translation modules.
18
+ * Host app must provide all translations - there are no defaults.
19
+ * Returns merged versions of PageText, ComponentText, etc.
20
+ */
21
+ export declare function mergeTranslationOverrides(overrides: ContactFormTranslationsOverride): {
22
+ PageText: typeof PageText;
23
+ ComponentText: typeof ComponentText;
24
+ ModuleText: typeof ModuleText;
25
+ CommonText: typeof CommonText;
26
+ ServerText: typeof ServerText;
27
+ };
28
+ //# sourceMappingURL=merge-overrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-overrides.d.ts","sourceRoot":"","sources":["../../src/translations/merge-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,WAAW,EAAC,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAC,GAAG,MAAM,GACvD,UAAU,CAAC,OAAO,WAAW,CAAC,GAAG,MAAM,CASzC;AA4ED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACrC,SAAS,EAAE,+BAA+B,GAC3C;IACC,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,UAAU,EAAE,OAAO,UAAU,CAAC;CACjC,CAoBA"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.jsonToTranslatedString = jsonToTranslatedString;
37
+ exports.mergeTranslationOverrides = mergeTranslationOverrides;
38
+ const commons_1 = require("./commons");
39
+ const PageText = __importStar(require("./pages"));
40
+ const ComponentText = __importStar(require("./components"));
41
+ const ModuleText = __importStar(require("./modules"));
42
+ const CommonText = __importStar(require("./common"));
43
+ const ServerText = __importStar(require("./server"));
44
+ /**
45
+ * Convert a JSON translation object with no/en/nn keys to TranslatedString format
46
+ */
47
+ function jsonToTranslatedString(json) {
48
+ if (typeof json === 'string') {
49
+ return json;
50
+ }
51
+ return (0, commons_1.translation)(json.no ?? json.en ?? '', json.en ?? json.no ?? '', json.nn ?? json.no ?? '');
52
+ }
53
+ /**
54
+ * Deep merge translation overrides into the default translations.
55
+ * Recursively converts JSON format (no/en/nn) to TranslatedString where needed.
56
+ */
57
+ function deepMergeTranslations(defaults, overrides) {
58
+ if (!overrides) {
59
+ return defaults;
60
+ }
61
+ const result = { ...defaults };
62
+ for (const key in overrides) {
63
+ if (!(key in result)) {
64
+ continue;
65
+ }
66
+ const overrideValue = overrides[key];
67
+ const defaultValue = result[key];
68
+ if (overrideValue === undefined) {
69
+ continue;
70
+ }
71
+ // Check if this is a TranslatedString (has Language enum keys)
72
+ if (defaultValue &&
73
+ typeof defaultValue === 'object' &&
74
+ (commons_1.Language.Norwegian in defaultValue ||
75
+ commons_1.Language.English in defaultValue ||
76
+ commons_1.Language.Nynorsk in defaultValue)) {
77
+ // Merge TranslatedString
78
+ if (overrideValue &&
79
+ typeof overrideValue === 'object' &&
80
+ ('no' in overrideValue || 'en' in overrideValue || 'nn' in overrideValue)) {
81
+ result[key] = jsonToTranslatedString(overrideValue);
82
+ }
83
+ else if (typeof overrideValue === 'string') {
84
+ // Single string override - use for all languages
85
+ result[key] = (0, commons_1.translation)(overrideValue, overrideValue, overrideValue);
86
+ }
87
+ }
88
+ else if (defaultValue &&
89
+ typeof defaultValue === 'object' &&
90
+ !Array.isArray(defaultValue)) {
91
+ // Recursively merge nested objects
92
+ result[key] = deepMergeTranslations(defaultValue, overrideValue);
93
+ }
94
+ else {
95
+ // Primitive or function override
96
+ result[key] = overrideValue;
97
+ }
98
+ }
99
+ return result;
100
+ }
101
+ /**
102
+ * Merge translation overrides into the provided translation modules.
103
+ * Host app must provide all translations - there are no defaults.
104
+ * Returns merged versions of PageText, ComponentText, etc.
105
+ */
106
+ function mergeTranslationOverrides(overrides) {
107
+ // Since translations are required, we use them directly
108
+ // Partial overrides are merged on top if provided
109
+ return {
110
+ PageText: overrides.pages
111
+ ? deepMergeTranslations(PageText, overrides.pages)
112
+ : PageText,
113
+ ComponentText: overrides.components
114
+ ? deepMergeTranslations(ComponentText, overrides.components)
115
+ : ComponentText,
116
+ ModuleText: overrides.modules
117
+ ? deepMergeTranslations(ModuleText, overrides.modules)
118
+ : ModuleText,
119
+ CommonText: overrides.common
120
+ ? deepMergeTranslations(CommonText, overrides.common)
121
+ : CommonText,
122
+ ServerText: overrides.server
123
+ ? deepMergeTranslations(ServerText, overrides.server)
124
+ : ServerText,
125
+ };
126
+ }
@@ -0,0 +1,4 @@
1
+ export { Layout } from './layout';
2
+ export { SearchTime } from './search-time';
3
+ export { Situation } from './situation';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Situation = exports.SearchTime = exports.Layout = void 0;
4
+ var layout_1 = require("./layout");
5
+ Object.defineProperty(exports, "Layout", { enumerable: true, get: function () { return layout_1.Layout; } });
6
+ var search_time_1 = require("./search-time");
7
+ Object.defineProperty(exports, "SearchTime", { enumerable: true, get: function () { return search_time_1.SearchTime; } });
8
+ var situation_1 = require("./situation");
9
+ Object.defineProperty(exports, "Situation", { enumerable: true, get: function () { return situation_1.Situation; } });
@@ -0,0 +1,73 @@
1
+ export declare const LayoutInternal: {
2
+ base: {
3
+ footer: {
4
+ sections: {
5
+ general: {
6
+ header: import("../../translations/commons").TranslatedString;
7
+ supportPageLink: import("../../translations/commons").TranslatedString;
8
+ helpPageLink: import("../../translations/commons").TranslatedString;
9
+ ticketPricesPageLink: import("../../translations/commons").TranslatedString;
10
+ };
11
+ contact: {
12
+ header: import("../../translations/commons").TranslatedString;
13
+ contactLink: import("../../translations/commons").TranslatedString;
14
+ };
15
+ settings: {
16
+ header: import("../../translations/commons").TranslatedString;
17
+ forcedThemeHeader: import("../../translations/commons").TranslatedString;
18
+ setLanguage: {
19
+ norsk: import("../../translations/commons").TranslatedString;
20
+ english: import("../../translations/commons").TranslatedString;
21
+ nynorsk: import("../../translations/commons").TranslatedString;
22
+ };
23
+ toggleDarkMode: import("../../translations/commons").TranslatedString;
24
+ toggleLightMode: import("../../translations/commons").TranslatedString;
25
+ cookiesWarning: import("../../translations/commons").TranslatedString;
26
+ languageCookiesWarning: import("../../translations/commons").TranslatedString;
27
+ };
28
+ };
29
+ bottomLinks: {
30
+ privacy: import("../../translations/commons").TranslatedString;
31
+ accessibilityStatement: import("../../translations/commons").TranslatedString;
32
+ termsOfUse: import("../../translations/commons").TranslatedString;
33
+ };
34
+ };
35
+ };
36
+ };
37
+ export declare const Layout: {
38
+ base: {
39
+ footer: {
40
+ sections: {
41
+ general: {
42
+ header: import("../../translations/commons").TranslatedString;
43
+ supportPageLink: import("../../translations/commons").TranslatedString;
44
+ helpPageLink: import("../../translations/commons").TranslatedString;
45
+ ticketPricesPageLink: import("../../translations/commons").TranslatedString;
46
+ };
47
+ contact: {
48
+ header: import("../../translations/commons").TranslatedString;
49
+ contactLink: import("../../translations/commons").TranslatedString;
50
+ };
51
+ settings: {
52
+ header: import("../../translations/commons").TranslatedString;
53
+ forcedThemeHeader: import("../../translations/commons").TranslatedString;
54
+ setLanguage: {
55
+ norsk: import("../../translations/commons").TranslatedString;
56
+ english: import("../../translations/commons").TranslatedString;
57
+ nynorsk: import("../../translations/commons").TranslatedString;
58
+ };
59
+ toggleDarkMode: import("../../translations/commons").TranslatedString;
60
+ toggleLightMode: import("../../translations/commons").TranslatedString;
61
+ cookiesWarning: import("../../translations/commons").TranslatedString;
62
+ languageCookiesWarning: import("../../translations/commons").TranslatedString;
63
+ };
64
+ };
65
+ bottomLinks: {
66
+ privacy: import("../../translations/commons").TranslatedString;
67
+ accessibilityStatement: import("../../translations/commons").TranslatedString;
68
+ termsOfUse: import("../../translations/commons").TranslatedString;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/translations/modules/layout.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF1B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFjB,CAAC"}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Layout = exports.LayoutInternal = void 0;
4
+ const commons_1 = require("../../translations/commons");
5
+ const utils_1 = require("../utils");
6
+ exports.LayoutInternal = {
7
+ base: {
8
+ footer: {
9
+ sections: {
10
+ general: {
11
+ header: (0, commons_1.translation)('Reiseplanlegger', 'Travel Planner', 'Reiseplanleggar'),
12
+ supportPageLink: (0, commons_1.translation)('Hjelp og kontakt', 'Help and contact', 'Hjelp og kontakt'),
13
+ helpPageLink: (0, commons_1.translation)('Hjelp til reiseplanleggeren', 'Help for the travel planner', 'Hjelp for reiseplanleggaren'),
14
+ ticketPricesPageLink: (0, commons_1.translation)('Billetter og priser', 'Tickets and prices', 'Billettar og prisar'),
15
+ },
16
+ contact: {
17
+ header: (0, commons_1.translation)('Kontakt AtB', 'Contact AtB', 'Kontakt AtB'),
18
+ contactLink: (0, commons_1.translation)('Kontakt AtB', 'Contact AtB', 'Kontakt AtB'),
19
+ },
20
+ settings: {
21
+ header: (0, commons_1.translation)('Språk og utseende', 'Language and appearance', 'Språk og utsjånad'),
22
+ forcedThemeHeader: (0, commons_1.translation)('Språk', 'Language', 'Språk'),
23
+ setLanguage: {
24
+ norsk: (0, commons_1.translation)('Endre til norsk (bokmål)', 'Endre til norsk (bokmål)', 'Endre til norsk (bokmål)'),
25
+ english: (0, commons_1.translation)('Switch to English', 'Switch to English', 'Switch to English'),
26
+ nynorsk: (0, commons_1.translation)('Endre til norsk (nynorsk)', 'Endre til norsk (nynorsk)', 'Endre til norsk (nynorsk)'),
27
+ },
28
+ toggleDarkMode: (0, commons_1.translation)('Bytt til mørkt utseende', 'Change to dark mode', 'Byt til mørk utsjånad'),
29
+ toggleLightMode: (0, commons_1.translation)('Bytt til lyst utseende', 'Change to light mode', 'Byt til lys utsjånad'),
30
+ cookiesWarning: (0, commons_1.translation)('* Overstyring av språk og utseende krever bruk av cookies.', '* Overriding language and appearance requires cookies.', '* Overstyring av språk og utsjånad krev bruk av cookies.'),
31
+ languageCookiesWarning: (0, commons_1.translation)('* Overstyring av språk krever bruk av cookies.', '* Overriding language requires cookies.', '* Overstyring av språk krev bruk av cookies.'),
32
+ },
33
+ },
34
+ bottomLinks: {
35
+ privacy: (0, commons_1.translation)('Personvern', 'Privacy', 'Personvern'),
36
+ accessibilityStatement: (0, commons_1.translation)('Tilgjengelighetserklæring', 'Accessibility statement', 'Tilgjengelegheitserklæring'),
37
+ termsOfUse: (0, commons_1.translation)('Bruksvilkår', 'Terms of use', 'Bruksvilkår'),
38
+ },
39
+ },
40
+ },
41
+ };
42
+ exports.Layout = (0, utils_1.orgSpecificTranslations)(exports.LayoutInternal, {
43
+ nfk: {
44
+ base: {
45
+ footer: {
46
+ sections: {
47
+ contact: {
48
+ header: (0, commons_1.translation)('Kontakt Reis Nordland', 'Contact Reis Nordland', 'Kontakt Reis Nordland'),
49
+ contactLink: (0, commons_1.translation)('Kontakt Reis Nordland', 'Contact Reis Nordland', 'Kontakt Reis Nordland'),
50
+ },
51
+ },
52
+ },
53
+ },
54
+ },
55
+ fram: {
56
+ base: {
57
+ footer: {
58
+ sections: {
59
+ contact: {
60
+ header: (0, commons_1.translation)('Kontakt', 'Contact', 'Kontakt'),
61
+ contactLink: (0, commons_1.translation)('Kontakt FRAM', 'Contact FRAM', 'Kontakt FRAM'),
62
+ },
63
+ general: {
64
+ supportPageLink: (0, commons_1.translation)('Kontaktskjema', 'Contact form', 'Kontaktskjema'),
65
+ },
66
+ },
67
+ },
68
+ },
69
+ },
70
+ troms: {
71
+ base: {
72
+ footer: {
73
+ sections: {
74
+ contact: {
75
+ header: (0, commons_1.translation)('Kontakt Svipper', 'Contact Svipper', 'Kontakt Svipper'),
76
+ contactLink: (0, commons_1.translation)('Kontakt Svipper', 'Contact Svipper', 'Kontakt Svipper'),
77
+ },
78
+ },
79
+ },
80
+ },
81
+ },
82
+ vkt: {
83
+ base: {
84
+ footer: {
85
+ sections: {
86
+ contact: {
87
+ header: (0, commons_1.translation)('Kontakt Vestfold Kollektivtrafikk', 'Contact Vestfold Kollektivtrafikk', 'Kontakt Vestfold Kollektivtrafikk'),
88
+ contactLink: (0, commons_1.translation)('Kontakt Vestfold Kollektivtrafikk', 'Contact Vestfold Kollektivtrafikk', 'Kontakt Vestfold Kollektivtrafikk'),
89
+ },
90
+ },
91
+ },
92
+ },
93
+ },
94
+ farte: {
95
+ base: {
96
+ footer: {
97
+ sections: {
98
+ contact: {
99
+ header: (0, commons_1.translation)('Kontakt Farte', 'Contact Farte', 'Kontakt Farte'),
100
+ contactLink: (0, commons_1.translation)('Kontakt Farte', 'Contact Farte', 'Kontakt Farte'),
101
+ },
102
+ },
103
+ },
104
+ },
105
+ },
106
+ });
@@ -0,0 +1,8 @@
1
+ export declare const SearchTime: {
2
+ now: import("../../translations/commons").TranslatedString;
3
+ departure: import("../../translations/commons").TranslatedString;
4
+ arrival: import("../../translations/commons").TranslatedString;
5
+ date: import("../../translations/commons").TranslatedString;
6
+ time: import("../../translations/commons").TranslatedString;
7
+ };
8
+ //# sourceMappingURL=search-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-time.d.ts","sourceRoot":"","sources":["../../../src/translations/modules/search-time.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC"}