@mrfylke/contact-form 0.1.24 → 0.1.26

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 (297) hide show
  1. package/README.md +42 -24
  2. package/lib/ContactFormRoot.d.ts +2 -2
  3. package/lib/ContactFormRoot.d.ts.map +1 -1
  4. package/lib/ContactFormRoot.js +6 -4
  5. package/lib/components/button/link.d.ts +1 -1
  6. package/lib/components/button/link.d.ts.map +1 -1
  7. package/lib/components/button/utils.d.ts +2 -2
  8. package/lib/components/button/utils.d.ts.map +1 -1
  9. package/lib/components/checkbox/checkbox.d.ts +1 -1
  10. package/lib/components/checkbox/checkbox.d.ts.map +1 -1
  11. package/lib/components/error-message/error-message.d.ts +1 -1
  12. package/lib/components/error-message/error-message.d.ts.map +1 -1
  13. package/lib/components/external-link-page.d.ts +1 -1
  14. package/lib/components/external-link-page.d.ts.map +1 -1
  15. package/lib/components/form/date-selector.d.ts +1 -1
  16. package/lib/components/form/date-selector.d.ts.map +1 -1
  17. package/lib/components/form/date-selector.js +2 -2
  18. package/lib/components/form/departure-time-field.d.ts +1 -1
  19. package/lib/components/form/departure-time-field.d.ts.map +1 -1
  20. package/lib/components/form/description-modal.d.ts +1 -1
  21. package/lib/components/form/description-modal.d.ts.map +1 -1
  22. package/lib/components/form/field-wrapper-with-error/index.d.ts +1 -1
  23. package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -1
  24. package/lib/components/form/fieldset/index.d.ts +1 -1
  25. package/lib/components/form/fieldset/index.d.ts.map +1 -1
  26. package/lib/components/form/file-input.d.ts +1 -1
  27. package/lib/components/form/file-input.d.ts.map +1 -1
  28. package/lib/components/form/form-component-label/index.d.ts +3 -2
  29. package/lib/components/form/form-component-label/index.d.ts.map +1 -1
  30. package/lib/components/form/form-component-label/index.js +2 -2
  31. package/lib/components/form/input.d.ts +1 -1
  32. package/lib/components/form/input.d.ts.map +1 -1
  33. package/lib/components/form/radio.d.ts +1 -1
  34. package/lib/components/form/radio.d.ts.map +1 -1
  35. package/lib/components/form/searchable-select/searchable-select.d.ts +1 -1
  36. package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -1
  37. package/lib/components/form/searchable-select/searchable-select.js +1 -1
  38. package/lib/components/form/select.d.ts +1 -1
  39. package/lib/components/form/select.d.ts.map +1 -1
  40. package/lib/components/form/select.js +1 -1
  41. package/lib/components/form/textarea.d.ts +1 -1
  42. package/lib/components/form/textarea.d.ts.map +1 -1
  43. package/lib/components/form/time-selector.d.ts +1 -1
  44. package/lib/components/form/time-selector.d.ts.map +1 -1
  45. package/lib/components/form/time-selector.js +2 -2
  46. package/lib/components/icon/checkbox-icon.d.ts +1 -1
  47. package/lib/components/icon/checkbox-icon.d.ts.map +1 -1
  48. package/lib/components/icon/color-icon.d.ts +1 -1
  49. package/lib/components/icon/color-icon.d.ts.map +1 -1
  50. package/lib/components/icon/generated-icons.d.ts +422 -262
  51. package/lib/components/icon/generated-icons.d.ts.map +1 -1
  52. package/lib/components/icon/generated-icons.js +1931 -1771
  53. package/lib/components/icon/illustration.d.ts +1 -1
  54. package/lib/components/icon/illustration.d.ts.map +1 -1
  55. package/lib/components/icon/image.d.ts +1 -1
  56. package/lib/components/icon/image.d.ts.map +1 -1
  57. package/lib/components/icon/mono-icon.d.ts +1 -1
  58. package/lib/components/icon/mono-icon.d.ts.map +1 -1
  59. package/lib/components/icon/utils.d.ts.map +1 -1
  60. package/lib/components/icon/utils.js +6 -6
  61. package/lib/components/loading/index.d.ts +2 -2
  62. package/lib/components/loading/index.d.ts.map +1 -1
  63. package/lib/components/section-card/section-card.d.ts +1 -1
  64. package/lib/components/section-card/section-card.d.ts.map +1 -1
  65. package/lib/components/typography/index.d.ts +6 -6
  66. package/lib/components/typography/index.d.ts.map +1 -1
  67. package/lib/contact.module.css +0 -9
  68. package/lib/error-content/error-content.d.ts +1 -1
  69. package/lib/error-content/error-content.d.ts.map +1 -1
  70. package/lib/group-travel/index.d.ts +1 -1
  71. package/lib/group-travel/index.d.ts.map +1 -1
  72. package/lib/group-travel/index.js +1 -2
  73. package/lib/index.d.ts +3 -5
  74. package/lib/index.d.ts.map +1 -1
  75. package/lib/index.js +5 -10
  76. package/lib/journey-info/events.d.ts.map +1 -1
  77. package/lib/journey-info/index.d.ts +1 -1
  78. package/lib/journey-info/index.d.ts.map +1 -1
  79. package/lib/journey-info/index.js +10 -8
  80. package/lib/journey-info/journeyInfoStateMachine.d.ts +2 -2
  81. package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -1
  82. package/lib/journey-info/journeyInfoStateMachine.js +1 -1
  83. package/lib/layouts/contact-form-container.d.ts +1 -1
  84. package/lib/layouts/contact-form-container.d.ts.map +1 -1
  85. package/lib/layouts/contact-page-layout.d.ts +1 -8
  86. package/lib/layouts/contact-page-layout.d.ts.map +1 -1
  87. package/lib/layouts/contact-page-layout.js +8 -93
  88. package/lib/layouts/contact-pages.d.ts +20 -0
  89. package/lib/layouts/contact-pages.d.ts.map +1 -0
  90. package/lib/layouts/contact-pages.js +124 -0
  91. package/lib/layouts/index.d.ts +2 -1
  92. package/lib/layouts/index.d.ts.map +1 -1
  93. package/lib/layouts/index.js +5 -2
  94. package/lib/lines/use-departures.js +2 -2
  95. package/lib/lines/use-lines.d.ts +2 -2
  96. package/lib/lines/use-lines.js +1 -1
  97. package/lib/lost-property/LostPropertyForm.d.ts +2 -1
  98. package/lib/lost-property/LostPropertyForm.d.ts.map +1 -1
  99. package/lib/lost-property/LostPropertyMachine.d.ts +2 -2
  100. package/lib/lost-property/LostPropertyMachine.d.ts.map +1 -1
  101. package/lib/lost-property/LostPropertyMachine.js +1 -1
  102. package/lib/lost-property/index.d.ts +1 -1
  103. package/lib/lost-property/index.d.ts.map +1 -1
  104. package/lib/lost-property-external/index.d.ts +1 -1
  105. package/lib/lost-property-external/index.d.ts.map +1 -1
  106. package/lib/lost-property-external/index.js +1 -2
  107. package/lib/means-of-transport/events.d.ts.map +1 -1
  108. package/lib/means-of-transport/forms/delayForm.d.ts +1 -1
  109. package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
  110. package/lib/means-of-transport/forms/driverForm.d.ts +1 -1
  111. package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
  112. package/lib/means-of-transport/forms/injuryForm.d.ts +1 -1
  113. package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
  114. package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +1 -1
  115. package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
  116. package/lib/means-of-transport/forms/serviceOfferingForm.js +3 -1
  117. package/lib/means-of-transport/forms/stopForm.d.ts +1 -1
  118. package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
  119. package/lib/means-of-transport/forms/transportationForm.d.ts +1 -1
  120. package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
  121. package/lib/means-of-transport/index.d.ts +1 -1
  122. package/lib/means-of-transport/index.d.ts.map +1 -1
  123. package/lib/means-of-transport/index.js +8 -2
  124. package/lib/means-of-transport/means-of-transport-form-machine.d.ts +4 -2
  125. package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
  126. package/lib/means-of-transport/means-of-transport-form-machine.js +9 -3
  127. package/lib/modules/config/context.d.ts +13 -38
  128. package/lib/modules/config/context.d.ts.map +1 -1
  129. package/lib/modules/config/context.js +16 -52
  130. package/lib/modules/config/default-submit.d.ts +3 -0
  131. package/lib/modules/config/default-submit.d.ts.map +1 -0
  132. package/lib/modules/config/default-submit.js +13 -0
  133. package/lib/modules/config/index.d.ts +1 -0
  134. package/lib/modules/config/index.d.ts.map +1 -1
  135. package/lib/modules/config/index.js +1 -0
  136. package/lib/modules/config/types.d.ts +60 -78
  137. package/lib/modules/config/types.d.ts.map +1 -1
  138. package/lib/modules/org-data/index.d.ts +1 -2
  139. package/lib/modules/org-data/index.d.ts.map +1 -1
  140. package/lib/modules/org-data/index.js +1 -2
  141. package/lib/modules/theme/theme-context.d.ts +1 -1
  142. package/lib/modules/theme/theme-context.d.ts.map +1 -1
  143. package/lib/modules/transport-mode/filter/filter.d.ts +1 -1
  144. package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
  145. package/lib/modules/transport-mode/icon/index.d.ts +4 -4
  146. package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
  147. package/lib/modules/transport-mode/types.d.ts +3 -5
  148. package/lib/modules/transport-mode/types.d.ts.map +1 -1
  149. package/lib/modules/transport-mode/types.js +3 -138
  150. package/lib/modules/transport-mode/utils.d.ts +2 -2
  151. package/lib/modules/transport-mode/utils.d.ts.map +1 -1
  152. package/lib/modules/transport-mode/utils.js +39 -6
  153. package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +1 -1
  154. package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
  155. package/lib/refund/forms/refund-and-travel-guarantee/index.js +1 -1
  156. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts +1 -1
  157. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
  158. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +1 -1
  159. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts +1 -1
  160. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
  161. package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts +2 -2
  162. package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
  163. package/lib/refund/forms/refund-ticket/appTicketRefund.js +18 -2
  164. package/lib/refund/forms/refund-ticket/index.d.ts +1 -1
  165. package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
  166. package/lib/refund/forms/refund-ticket/index.js +1 -1
  167. package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +1 -1
  168. package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
  169. package/lib/refund/forms/refund-ticket/otherTicketRefund.js +16 -4
  170. package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +1 -1
  171. package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
  172. package/lib/refund/forms/residualValueOnTravelCard/index.js +1 -2
  173. package/lib/refund/index.d.ts +1 -1
  174. package/lib/refund/index.d.ts.map +1 -1
  175. package/lib/refund/index.js +9 -0
  176. package/lib/refund/refundFormMachine.d.ts +10 -2
  177. package/lib/refund/refundFormMachine.d.ts.map +1 -1
  178. package/lib/refund/refundFormMachine.js +23 -2
  179. package/lib/server/departures-route-handler.d.ts +27 -0
  180. package/lib/server/departures-route-handler.d.ts.map +1 -0
  181. package/lib/server/departures-route-handler.js +93 -0
  182. package/lib/server/index.d.ts +2 -0
  183. package/lib/server/index.d.ts.map +1 -1
  184. package/lib/server/index.js +5 -1
  185. package/lib/server/journey-planner/authority.d.ts +2 -2
  186. package/lib/server/journey-planner/authority.js +3 -3
  187. package/lib/server/journey-planner/index.d.ts.map +1 -1
  188. package/lib/server/journey-planner/index.js +8 -9
  189. package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -0
  190. package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
  191. package/lib/server/journey-planner/journey-gql/lines.generated.js +1 -0
  192. package/lib/server/journey-planner/validators.d.ts +4 -4
  193. package/lib/server/journey-planner/validators.js +3 -3
  194. package/lib/server/lines-route-handler.d.ts +7 -18
  195. package/lib/server/lines-route-handler.d.ts.map +1 -1
  196. package/lib/server/lines-route-handler.js +15 -17
  197. package/lib/server/submit-route-handler.d.ts +20 -0
  198. package/lib/server/submit-route-handler.d.ts.map +1 -0
  199. package/lib/server/submit-route-handler.js +62 -0
  200. package/lib/success-content/success-content.d.ts +1 -1
  201. package/lib/success-content/success-content.d.ts.map +1 -1
  202. package/lib/ticket-control/events.d.ts +1 -1
  203. package/lib/ticket-control/events.d.ts.map +1 -1
  204. package/lib/ticket-control/forms/feeComplaintForm.d.ts +1 -1
  205. package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
  206. package/lib/ticket-control/forms/feeComplaintForm.js +5 -1
  207. package/lib/ticket-control/forms/feedbackForm.d.ts +1 -1
  208. package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
  209. package/lib/ticket-control/forms/postponePayment.d.ts +1 -1
  210. package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
  211. package/lib/ticket-control/forms/postponePayment.js +5 -1
  212. package/lib/ticket-control/index.d.ts +1 -1
  213. package/lib/ticket-control/index.d.ts.map +1 -1
  214. package/lib/ticket-control/index.js +2 -0
  215. package/lib/ticket-control/ticket-control-form-machine.d.ts +8 -4
  216. package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
  217. package/lib/ticket-control/ticket-control-form-machine.js +14 -3
  218. package/lib/ticketing/events.d.ts.map +1 -1
  219. package/lib/ticketing/forms/app/appAccountForm.d.ts +1 -1
  220. package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
  221. package/lib/ticketing/forms/app/appTicketingForm.d.ts +1 -1
  222. package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
  223. package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +1 -1
  224. package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
  225. package/lib/ticketing/forms/app/index.d.ts +1 -1
  226. package/lib/ticketing/forms/app/index.d.ts.map +1 -1
  227. package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +1 -1
  228. package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
  229. package/lib/ticketing/forms/travel-card/index.d.ts +1 -1
  230. package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
  231. package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +1 -1
  232. package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
  233. package/lib/ticketing/forms/travel-card/orderTravelCard.js +1 -1
  234. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +1 -1
  235. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
  236. package/lib/ticketing/forms/webshop/index.d.ts +1 -1
  237. package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
  238. package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +1 -1
  239. package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
  240. package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +1 -1
  241. package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
  242. package/lib/ticketing/index.d.ts +1 -1
  243. package/lib/ticketing/index.d.ts.map +1 -1
  244. package/lib/ticketing/ticketingStateMachine.d.ts +2 -2
  245. package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -1
  246. package/lib/translations/commons.d.ts +1 -0
  247. package/lib/translations/commons.d.ts.map +1 -1
  248. package/lib/translations/commons.js +4 -4
  249. package/lib/translations/index.d.ts +2 -6
  250. package/lib/translations/index.d.ts.map +1 -1
  251. package/lib/translations/index.js +1 -9
  252. package/lib/translations/language-context.d.ts +3 -11
  253. package/lib/translations/language-context.d.ts.map +1 -1
  254. package/lib/translations/language-context.js +1 -31
  255. package/lib/translations/merge-overrides.d.ts +3 -9
  256. package/lib/translations/merge-overrides.d.ts.map +1 -1
  257. package/lib/translations/merge-overrides.js +3 -15
  258. package/lib/translations/pages/contact.d.ts +15 -4
  259. package/lib/translations/pages/contact.d.ts.map +1 -1
  260. package/lib/translations/pages/contact.js +17 -20
  261. package/lib/translations/server/endpoints.d.ts +0 -62
  262. package/lib/translations/server/endpoints.d.ts.map +1 -1
  263. package/lib/translations/server/endpoints.js +1 -139
  264. package/lib/translations/translations-context.d.ts +1 -1
  265. package/lib/translations/translations-context.d.ts.map +1 -1
  266. package/lib/translations/types.d.ts +7 -13
  267. package/lib/translations/types.d.ts.map +1 -1
  268. package/lib/translations/utils.d.ts +0 -7
  269. package/lib/translations/utils.d.ts.map +1 -1
  270. package/lib/translations/utils.js +0 -26
  271. package/lib/types/submit-payloads.d.ts +1 -0
  272. package/lib/types/submit-payloads.d.ts.map +1 -1
  273. package/lib/types.d.ts.map +1 -1
  274. package/lib/validation/validationRules.d.ts.map +1 -1
  275. package/lib/validation/validationRules.js +7 -0
  276. package/package.json +37 -32
  277. package/lib/components/icon/icon-wrapper.d.ts +0 -30
  278. package/lib/components/icon/icon-wrapper.d.ts.map +0 -1
  279. package/lib/components/icon/icon-wrapper.js +0 -39
  280. package/lib/components/icon/mono-icon-new.d.ts +0 -32
  281. package/lib/components/icon/mono-icon-new.d.ts.map +0 -1
  282. package/lib/components/icon/mono-icon-new.js +0 -43
  283. package/lib/translations/common/index.d.ts +0 -3
  284. package/lib/translations/common/index.d.ts.map +0 -1
  285. package/lib/translations/common/index.js +0 -7
  286. package/lib/translations/common/layout.d.ts +0 -8
  287. package/lib/translations/common/layout.d.ts.map +0 -1
  288. package/lib/translations/common/layout.js +0 -39
  289. package/lib/translations/common/titles.d.ts +0 -4
  290. package/lib/translations/common/titles.d.ts.map +0 -1
  291. package/lib/translations/common/titles.js +0 -25
  292. package/lib/translations/json-to-override.d.ts +0 -19
  293. package/lib/translations/json-to-override.d.ts.map +0 -1
  294. package/lib/translations/json-to-override.js +0 -65
  295. package/lib/translations/load-org-translations.d.ts +0 -19
  296. package/lib/translations/load-org-translations.d.ts.map +0 -1
  297. package/lib/translations/load-org-translations.js +0 -23
@@ -1,141 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.transportSubmodeSchema = exports.transportModeSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.transportModeSchema = zod_1.z.union([
6
- zod_1.z.literal('air'),
7
- zod_1.z.literal('bus'),
8
- zod_1.z.literal('foot'),
9
- zod_1.z.literal('bicycle'),
10
- zod_1.z.literal('cableway'),
11
- zod_1.z.literal('car'),
12
- zod_1.z.literal('carpool'),
13
- zod_1.z.literal('coach'),
14
- zod_1.z.literal('funicular'),
15
- zod_1.z.literal('lift'),
16
- zod_1.z.literal('metro'),
17
- zod_1.z.literal('monorail'),
18
- zod_1.z.literal('rail'),
19
- zod_1.z.literal('scooter'),
20
- zod_1.z.literal('taxi'),
21
- zod_1.z.literal('tram'),
22
- zod_1.z.literal('trolleybus'),
23
- zod_1.z.literal('unknown'),
24
- zod_1.z.literal('water'),
25
- zod_1.z.literal('snowAndIce'),
26
- ]);
27
- exports.transportSubmodeSchema = zod_1.z.union([
28
- zod_1.z.literal('SchengenAreaFlight'),
29
- zod_1.z.literal('airportBoatLink'),
30
- zod_1.z.literal('airportLinkBus'),
31
- zod_1.z.literal('airportLinkRail'),
32
- zod_1.z.literal('airshipService'),
33
- zod_1.z.literal('allFunicularServices'),
34
- zod_1.z.literal('allHireVehicles'),
35
- zod_1.z.literal('allTaxiServices'),
36
- zod_1.z.literal('bikeTaxi'),
37
- zod_1.z.literal('blackCab'),
38
- zod_1.z.literal('cableCar'),
39
- zod_1.z.literal('cableFerry'),
40
- zod_1.z.literal('canalBarge'),
41
- zod_1.z.literal('carTransportRailService'),
42
- zod_1.z.literal('chairLift'),
43
- zod_1.z.literal('charterTaxi'),
44
- zod_1.z.literal('cityTram'),
45
- zod_1.z.literal('communalTaxi'),
46
- zod_1.z.literal('commuterCoach'),
47
- zod_1.z.literal('crossCountryRail'),
48
- zod_1.z.literal('dedicatedLaneBus'),
49
- zod_1.z.literal('demandAndResponseBus'),
50
- zod_1.z.literal('domesticCharterFlight'),
51
- zod_1.z.literal('domesticFlight'),
52
- zod_1.z.literal('domesticScheduledFlight'),
53
- zod_1.z.literal('dragLift'),
54
- zod_1.z.literal('escooter'),
55
- zod_1.z.literal('expressBus'),
56
- zod_1.z.literal('funicular'),
57
- zod_1.z.literal('helicopterService'),
58
- zod_1.z.literal('highFrequencyBus'),
59
- zod_1.z.literal('highSpeedPassengerService'),
60
- zod_1.z.literal('highSpeedRail'),
61
- zod_1.z.literal('highSpeedVehicleService'),
62
- zod_1.z.literal('hireCar'),
63
- zod_1.z.literal('hireCycle'),
64
- zod_1.z.literal('hireMotorbike'),
65
- zod_1.z.literal('hireVan'),
66
- zod_1.z.literal('intercontinentalCharterFlight'),
67
- zod_1.z.literal('intercontinentalFlight'),
68
- zod_1.z.literal('international'),
69
- zod_1.z.literal('internationalCarFerry'),
70
- zod_1.z.literal('internationalCharterFlight'),
71
- zod_1.z.literal('internationalCoach'),
72
- zod_1.z.literal('internationalFlight'),
73
- zod_1.z.literal('internationalPassengerFerry'),
74
- zod_1.z.literal('interregionalRail'),
75
- zod_1.z.literal('lift'),
76
- zod_1.z.literal('local'),
77
- zod_1.z.literal('localBus'),
78
- zod_1.z.literal('localCarFerry'),
79
- zod_1.z.literal('localPassengerFerry'),
80
- zod_1.z.literal('localTram'),
81
- zod_1.z.literal('longDistance'),
82
- zod_1.z.literal('metro'),
83
- zod_1.z.literal('miniCab'),
84
- zod_1.z.literal('mobilityBus'),
85
- zod_1.z.literal('mobilityBusForRegisteredDisabled'),
86
- zod_1.z.literal('nationalCarFerry'),
87
- zod_1.z.literal('nationalCoach'),
88
- zod_1.z.literal('nationalPassengerFerry'),
89
- zod_1.z.literal('nightBus'),
90
- zod_1.z.literal('nightRail'),
91
- zod_1.z.literal('postBoat'),
92
- zod_1.z.literal('postBus'),
93
- zod_1.z.literal('rackAndPinionRailway'),
94
- zod_1.z.literal('railReplacementBus'),
95
- zod_1.z.literal('railShuttle'),
96
- zod_1.z.literal('railTaxi'),
97
- zod_1.z.literal('regionalBus'),
98
- zod_1.z.literal('regionalCarFerry'),
99
- zod_1.z.literal('regionalCoach'),
100
- zod_1.z.literal('regionalPassengerFerry'),
101
- zod_1.z.literal('regionalRail'),
102
- zod_1.z.literal('regionalTram'),
103
- zod_1.z.literal('replacementRailService'),
104
- zod_1.z.literal('riverBus'),
105
- zod_1.z.literal('roadFerryLink'),
106
- zod_1.z.literal('roundTripCharterFlight'),
107
- zod_1.z.literal('scheduledFerry'),
108
- zod_1.z.literal('schoolAndPublicServiceBus'),
109
- zod_1.z.literal('schoolBoat'),
110
- zod_1.z.literal('schoolBus'),
111
- zod_1.z.literal('schoolCoach'),
112
- zod_1.z.literal('shortHaulInternationalFlight'),
113
- zod_1.z.literal('shuttleBus'),
114
- zod_1.z.literal('shuttleCoach'),
115
- zod_1.z.literal('shuttleFerryService'),
116
- zod_1.z.literal('shuttleFlight'),
117
- zod_1.z.literal('shuttleTram'),
118
- zod_1.z.literal('sightseeingBus'),
119
- zod_1.z.literal('sightseeingCoach'),
120
- zod_1.z.literal('sightseeingFlight'),
121
- zod_1.z.literal('sightseeingService'),
122
- zod_1.z.literal('sightseeingTram'),
123
- zod_1.z.literal('sleeperRailService'),
124
- zod_1.z.literal('specialCoach'),
125
- zod_1.z.literal('specialNeedsBus'),
126
- zod_1.z.literal('specialTrain'),
127
- zod_1.z.literal('streetCableCar'),
128
- zod_1.z.literal('suburbanRailway'),
129
- zod_1.z.literal('telecabin'),
130
- zod_1.z.literal('telecabinLink'),
131
- zod_1.z.literal('touristCoach'),
132
- zod_1.z.literal('touristRailway'),
133
- zod_1.z.literal('trainFerry'),
134
- zod_1.z.literal('trainTram'),
135
- zod_1.z.literal('tube'),
136
- zod_1.z.literal('undefined'),
137
- zod_1.z.literal('undefinedFunicular'),
138
- zod_1.z.literal('unknown'),
139
- zod_1.z.literal('urbanRailway'),
140
- zod_1.z.literal('waterTaxi'),
141
- ]);
4
+ const config_specs_1 = require("@atb-as/config-specs");
5
+ Object.defineProperty(exports, "transportModeSchema", { enumerable: true, get: function () { return config_specs_1.TransportModeType; } });
6
+ Object.defineProperty(exports, "transportSubmodeSchema", { enumerable: true, get: function () { return config_specs_1.TransportSubmodeType; } });
@@ -1,7 +1,7 @@
1
1
  import { TransportModeGroup, TransportModeType, TransportSubmodeType } from './types';
2
2
  import { TransportMode as GraphQlTransportMode } from '../../modules/graphql-types';
3
- export declare function transportModeToTranslatedString(mode: TransportModeGroup): import("../../translations").TranslatedString;
4
- export declare function severalTransportModesToTranslatedStrings(modes: TransportModeGroup[]): import("../../translations").TranslatedString[];
3
+ export declare function transportModeToTranslatedString(mode: TransportModeGroup): import("../..").TranslatedString;
4
+ export declare function severalTransportModesToTranslatedStrings(modes: TransportModeGroup[]): import("../..").TranslatedString[];
5
5
  export declare function isTransportModeType(a: any): a is TransportModeType;
6
6
  export declare function isTransportSubmodeType(a: any): a is TransportSubmodeType;
7
7
  export declare function filterGraphQlTransportModes(modes: GraphQlTransportMode[] | undefined): TransportModeType[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,iDAMvE;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,kBAAkB,EAAE,mDAK5B;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,iBAAiB,CAElE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,oBAAoB,CAExE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,oBAAoB,EAAE,GAAG,SAAS,GACxC,iBAAiB,EAAE,GAAG,SAAS,CAQjC;AAUD,wBAAgB,aAAa,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,WAG9D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,oCAMvE;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,kBAAkB,EAAE,sCAK5B;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,iBAAiB,CAElE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,oBAAoB,CAExE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,oBAAoB,EAAE,GAAG,SAAS,GACxC,iBAAiB,EAAE,GAAG,SAAS,CAQjC;AAUD,wBAAgB,aAAa,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,WAG9D"}
@@ -1,4 +1,37 @@
1
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
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.transportModeToTranslatedString = transportModeToTranslatedString;
4
37
  exports.severalTransportModesToTranslatedStrings = severalTransportModesToTranslatedStrings;
@@ -6,20 +39,20 @@ exports.isTransportModeType = isTransportModeType;
6
39
  exports.isTransportSubmodeType = isTransportSubmodeType;
7
40
  exports.filterGraphQlTransportModes = filterGraphQlTransportModes;
8
41
  exports.isSubModeBoat = isSubModeBoat;
9
- const translations_1 = require("../../translations");
42
+ const ComponentText = __importStar(require("../../translations/components"));
10
43
  const types_1 = require("./types");
11
44
  function transportModeToTranslatedString(mode) {
12
45
  if (!mode.transportMode)
13
- return translations_1.ComponentText.TransportMode.modes.unknown;
14
- if (!translations_1.ComponentText.TransportMode.modes[mode.transportMode]) {
15
- return translations_1.ComponentText.TransportMode.modes.unknown;
46
+ return ComponentText.TransportMode.modes.unknown;
47
+ if (!ComponentText.TransportMode.modes[mode.transportMode]) {
48
+ return ComponentText.TransportMode.modes.unknown;
16
49
  }
17
- return translations_1.ComponentText.TransportMode.modes[mode.transportMode];
50
+ return ComponentText.TransportMode.modes[mode.transportMode];
18
51
  }
19
52
  function severalTransportModesToTranslatedStrings(modes) {
20
53
  return modes
21
54
  .filter((mode) => !!mode.transportMode) // Remove the ! from mode.transportMode! below if this line is removed
22
- .map((mode) => translations_1.ComponentText.TransportMode.modes[mode.transportMode]);
55
+ .map((mode) => ComponentText.TransportMode.modes[mode.transportMode]);
23
56
  }
24
57
  function isTransportModeType(a) {
25
58
  return types_1.transportModeSchema.safeParse(a).success;
@@ -5,6 +5,6 @@ type RefundAndTravelGuaranteeFormsProps = {
5
5
  state: StateFrom<typeof refundStateMachine>;
6
6
  send: (event: typeof RefundFormEvents) => void;
7
7
  };
8
- export declare const RefundAndTravelGuaranteeForms: ({ state, send, }: RefundAndTravelGuaranteeFormsProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const RefundAndTravelGuaranteeForms: ({ state, send, }: RefundAndTravelGuaranteeFormsProps) => import("react").JSX.Element;
9
9
  export default RefundAndTravelGuaranteeForms;
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUhD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,4CAkHpC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUhD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,gCAiHpC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
@@ -23,7 +23,7 @@ const RefundAndTravelGuaranteeForms = ({ state, send, }) => {
23
23
  const displayRefundCarForm = state.context.isInitialAgreementChecked &&
24
24
  state.context.formType === 'refundCar';
25
25
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.agreement.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.agreement.delayedRefundText) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.agreement.ticketRefundText) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "heading__m", children: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.label) }), (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: PageText.Contact.refund.agreement.travelGuaranteeExceptions.exceptions.map((exception, index) => ((0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(exception.text) }), exception.examples.length > 0 && ((0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: exception.examples.map((example, exampleIndex) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(example) }) }, exampleIndex))) }))] }, index))) })] }), (0, jsx_runtime_1.jsxs)(typography_1.Typo.p, { textType: "body__m", children: [t(PageText.Contact.refund.agreement.travelGuaranteeExceptions
26
- .exclusion), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { className: contact_module_css_1.default.link, href: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.link
26
+ .exclusion), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { href: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.link
27
27
  .href), target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.link
28
28
  .text) })] }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { label: t(PageText.Contact.ticketControl.feeComplaint.firstAgreement.checkbox), checked: state.context.isInitialAgreementChecked, onChange: () => send({
29
29
  type: 'ON_INPUT_CHANGE',
@@ -6,6 +6,6 @@ type RefundCarFormProps = {
6
6
  };
7
7
  send: (event: typeof RefundFormEvents) => void;
8
8
  };
9
- export declare const RefundCarForm: ({ state, send }: RefundCarFormProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const RefundCarForm: ({ state, send }: RefundCarFormProps) => import("react").JSX.Element;
10
10
  export default RefundCarForm;
11
11
  //# sourceMappingURL=refundCarForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,4CA8chE,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,gCAgdhE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -12,7 +12,7 @@ const RefundCarForm = ({ state, send }) => {
12
12
  const PageText = (0, translations_1.usePageText)();
13
13
  const { getLinesByMode, getQuaysByLine } = (0, use_lines_1.useLines)();
14
14
  const transportModeOptions = (0, use_lines_1.useTransportModeOptions)();
15
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.refundCar.aboutTheCarTrip.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.refundCar.info) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "kilometersDriven", label: t(PageText.Contact.input.kilometersDriven.label), type: "text", name: "kilometersDriven", value: state.context.kilometersDriven || '', isRequired: true, errorMessage: state.context?.errorMessages['kilometersDriven']?.[0] || undefined, onChange: (e) => send({
15
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.refundCar.aboutTheCarTrip.title), children: [t(PageText.Contact.refund.refundCar.info) && ((0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.refundCar.info) })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "kilometersDriven", label: t(PageText.Contact.input.kilometersDriven.label), type: "text", name: "kilometersDriven", value: state.context.kilometersDriven || '', isRequired: true, errorMessage: state.context?.errorMessages['kilometersDriven']?.[0] || undefined, onChange: (e) => send({
16
16
  type: 'ON_INPUT_CHANGE',
17
17
  inputName: 'kilometersDriven',
18
18
  value: e.target.value,
@@ -6,6 +6,6 @@ type RefundTaxiFormProps = {
6
6
  };
7
7
  send: (event: typeof RefundFormEvents) => void;
8
8
  };
9
- export declare const RefundTaxiForm: ({ state, send }: RefundTaxiFormProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const RefundTaxiForm: ({ state, send }: RefundTaxiFormProps) => import("react").JSX.Element;
10
10
  export default RefundTaxiForm;
11
11
  //# sourceMappingURL=refundTaxiForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,4CAqblE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,gCAqblE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -6,7 +6,7 @@ type AppTicketRefundProps = {
6
6
  };
7
7
  send: (event: typeof RefundFormEvents) => void;
8
8
  };
9
- export declare const AppTicketRefund: ({ state, send }: AppTicketRefundProps) => import("react/jsx-runtime").JSX.Element;
10
- export default function AppTicketRefundContent({ state, send, }: AppTicketRefundProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare const AppTicketRefund: ({ state, send }: AppTicketRefundProps) => import("react").JSX.Element;
10
+ export default function AppTicketRefundContent({ state, send, }: AppTicketRefundProps): import("react").JSX.Element;
11
11
  export {};
12
12
  //# sourceMappingURL=appTicketRefund.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAkBhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,4CAyDpE,CAAC;AAqQF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,2CAWtB"}
1
+ {"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAkBhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,gCAuHpE,CAAC;AAqQF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,+BAWtB"}
@@ -10,11 +10,27 @@ const use_lines_1 = require("../../../lines/use-lines");
10
10
  const AppTicketRefund = ({ state, send }) => {
11
11
  const PageText = (0, translations_1.usePageText)();
12
12
  const { t } = (0, translations_1.useTranslation)();
13
- return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.appTicketRefund.label), children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(PageText.Contact.input.referenceNumber.label), type: "text", name: "orderId", value: state.context.orderId || '', isRequired: true, errorMessage: state.context?.errorMessages['orderId']?.[0], onChange: (e) => send({
13
+ const { features } = (0, context_1.useContactFormConfig)();
14
+ const includeCustomerNumberAndPurchasePlatform = features?.includeCustomerNumberAndPurchasePlatformInAppTicketRefund;
15
+ return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.appTicketRefund.label), children: [includeCustomerNumberAndPurchasePlatform && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "customerNumber", label: t(PageText.Contact.input.customerNumber.label), type: "text", name: "customerNumber", value: state.context.customerNumber || '', isRequired: true, errorMessage: state.context?.errorMessages['customerNumber']?.[0], onChange: (e) => send({
16
+ type: 'ON_INPUT_CHANGE',
17
+ inputName: 'customerNumber',
18
+ value: e.target.value,
19
+ }), modalContent: {
20
+ description: t(PageText.Contact.input.customerNumber.description),
21
+ } })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(PageText.Contact.input.orderId.label(true)), type: "text", name: "orderId", value: state.context.orderId || '', isRequired: true, errorMessage: state.context?.errorMessages['orderId']?.[0], onChange: (e) => send({
14
22
  type: 'ON_INPUT_CHANGE',
15
23
  inputName: 'orderId',
16
24
  value: e.target.value,
17
- }) }), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
25
+ }), modalContent: {
26
+ description: t(PageText.Contact.input.orderId.description),
27
+ bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
28
+ } }), includeCustomerNumberAndPurchasePlatform && ((0, jsx_runtime_1.jsx)(components_1.Select, { id: "purchasePlatform", label: t(PageText.Contact.input.purchasePlatform.label), value: state.context.purchasePlatform || '', onChange: (value) => send({
29
+ type: 'ON_PURCHASE_PLATFORM_CHANGE',
30
+ value: value,
31
+ }), isRequired: true, error: state.context?.errorMessages['purchasePlatform']?.[0]
32
+ ? t(state.context?.errorMessages['purchasePlatform']?.[0])
33
+ : undefined, valueToId: (val) => val, valueToText: (val) => t(PageText.Contact.input.purchasePlatform.platforms[val]), options: ['enturApp', 'enturWeb', 'framApp', 'framWeb'], placeholder: t(PageText.Contact.input.purchasePlatform.optionLabel) })), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
18
34
  type: 'ON_INPUT_CHANGE',
19
35
  inputName: 'refundReason',
20
36
  value: e.target.value,
@@ -5,6 +5,6 @@ type RefundTicketFormsProps = {
5
5
  state: StateFrom<typeof refundStateMachine>;
6
6
  send: (event: typeof RefundFormEvents) => void;
7
7
  };
8
- export declare const RefundTicketForms: ({ state, send }: RefundTicketFormsProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const RefundTicketForms: ({ state, send }: RefundTicketFormsProps) => import("react").JSX.Element;
9
9
  export default RefundTicketForms;
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,4CAmIxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAkIxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -26,7 +26,7 @@ const RefundTicketForms = ({ state, send }) => {
26
26
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.initialAgreement
27
27
  .ticketRefundAvailability.title), children: (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: PageText.Contact.ticketing.refund.initialAgreement.ticketRefundAvailability.rules.map((rule, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(rule) }) }, index))) }) }), (0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.initialAgreement
28
28
  .refundableTicketTypes.title), children: [(0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: refundableTicketTypes.rules.map((rule, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(rule) }) }, index))) }), (0, jsx_runtime_1.jsxs)(typography_1.Typo.p, { textType: "body__m", children: [t(PageText.Contact.ticketing.refund.initialAgreement
29
- .refundableTicketTypes.info.text), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { className: contact_module_css_1.default.link, href: '?type=refundAndTravelGuarantee&agreed=true', target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.ticketing.refund.initialAgreement
29
+ .refundableTicketTypes.info.text), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { href: '?type=refundAndTravelGuarantee&agreed=true', target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.ticketing.refund.initialAgreement
30
30
  .refundableTicketTypes.info.link) })] }), t(refundableTicketTypes.info.note) && ((0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(refundableTicketTypes.info.note) })), nonRefundableTicketTypes.rules.length > 0 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "heading__m", children: t(nonRefundableTicketTypes.title) }), (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: nonRefundableTicketTypes.rules.map((rule, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(rule) }) }, index))) })] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { label: t(PageText.Contact.ticketing.refund.initialAgreement
31
31
  .refundableTicketTypes.checkbox), checked: state.context.isInitialAgreementChecked, onChange: () => send({
32
32
  type: 'ON_INPUT_CHANGE',
@@ -6,6 +6,6 @@ type OtherTicketRefundProps = {
6
6
  };
7
7
  send: (event: typeof RefundFormEvents) => void;
8
8
  };
9
- export declare const OtherTicketRefund: ({ state, send }: OtherTicketRefundProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const OtherTicketRefund: ({ state, send }: OtherTicketRefundProps) => import("react").JSX.Element;
10
10
  export default OtherTicketRefund;
11
11
  //# sourceMappingURL=otherTicketRefund.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAmcF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,4CAWxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AA0eF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAWxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -14,6 +14,8 @@ const RefundSection = ({ state, send }) => {
14
14
  const { features } = (0, context_1.useContactFormConfig)();
15
15
  const ticketTypeOptions = PageText.Contact.input.ticketType.options.filter((option) => option.id == types_1.TicketTypeId.SingleTicket ||
16
16
  option.id == types_1.TicketTypeId.PeriodTicket);
17
+ const showTravelCardNumber = !state.context.includeOtherTicketTypeSelector ||
18
+ state.context.ticketType?.id === types_1.TicketTypeId.PeriodTicket;
17
19
  return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.otherTicketRefund.label), children: [state.context.includeOtherTicketTypeSelector && ((0, jsx_runtime_1.jsx)(components_1.Select, { id: "ticketType", label: t(PageText.Contact.input.ticketType.labelRefund), value: state.context.ticketType, valueToId: (option) => option.id, valueToText: (option) => t(option.name), onChange: (value) => {
18
20
  if (!value)
19
21
  return;
@@ -24,21 +26,31 @@ const RefundSection = ({ state, send }) => {
24
26
  });
25
27
  }, placeholder: t(PageText.Contact.input.ticketType.optionLabelRefund), options: ticketTypeOptions, isRequired: true, error: state.context?.errorMessages['ticketType']?.[0]
26
28
  ? t(state.context?.errorMessages['ticketType'][0])
27
- : undefined })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(PageText.Contact.input.orderId.label(false)), type: "text", name: "orderId", value: state.context.orderId || '', isRequired: true, errorMessage: state.context?.errorMessages['orderId']?.[0], onChange: (e) => send({
29
+ : undefined })), features?.includeOrderIdAndAmountInOtherTicketRefund && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(PageText.Contact.input.orderId.label(false)), type: "text", name: "orderId", value: state.context.orderId || '', isRequired: true, errorMessage: state.context?.errorMessages['orderId']?.[0], onChange: (e) => send({
28
30
  type: 'ON_INPUT_CHANGE',
29
31
  inputName: 'orderId',
30
32
  value: e.target.value,
31
- }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "travelCardNumber", label: t(PageText.Contact.input.travelCardNumber.label), type: "text", name: "travelCardNumber", value: state.context.travelCardNumber || '', errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
33
+ }), modalContent: {
34
+ description: t(PageText.Contact.input.orderId.description),
35
+ instruction: t(PageText.Contact.input.orderId.instruction),
36
+ bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
37
+ } })), showTravelCardNumber && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "travelCardNumber", label: t(PageText.Contact.input.travelCardNumber.label), type: "text", name: "travelCardNumber", value: state.context.travelCardNumber || '', isRequired: true, errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
32
38
  type: 'ON_INPUT_CHANGE',
33
39
  inputName: 'travelCardNumber',
34
40
  value: e.target.value,
35
- }) }), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
41
+ }), modalContent: {
42
+ description: t(PageText.Contact.input.travelCardNumber.info),
43
+ } })), features?.includeOrderIdAndAmountInOtherTicketRefund && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "amount", label: t(PageText.Contact.input.amount.info), type: "text", name: "amount", value: state.context.amount || '', isRequired: true, errorMessage: state.context?.errorMessages['amount']?.[0], onChange: (e) => send({
44
+ type: 'ON_INPUT_CHANGE',
45
+ inputName: 'amount',
46
+ value: e.target.value,
47
+ }) })), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
36
48
  type: 'ON_INPUT_CHANGE',
37
49
  inputName: 'refundReason',
38
50
  value: e.target.value,
39
51
  }), error: state.context.errorMessages['refundReason']?.[0]
40
52
  ? t(state.context.errorMessages['refundReason']?.[0])
41
- : undefined }), features?.enableFileUploads && ((0, jsx_runtime_1.jsx)(components_1.FileInput, { id: "attachments", label: t(PageText.Contact.refund.refundTaxi.taxiReceipt.info), iconLabel: t(PageText.Contact.input.feedback.attachment.receipt), name: "attachments", onChange: (files) => {
53
+ : undefined }), features?.enableFileUploads && ((0, jsx_runtime_1.jsx)(components_1.FileInput, { id: "attachments", label: t(PageText.Contact.refund.refundTaxi.taxiReceipt.info), iconLabel: t(PageText.Contact.input.feedback.attachment.receipt), name: "attachments", isRequired: features?.enableRequiredAttachmentInOtherTicketRefund, onChange: (files) => {
42
54
  send({
43
55
  type: 'ON_INPUT_CHANGE',
44
56
  inputName: 'attachments',
@@ -1,2 +1,2 @@
1
- export declare const ResidualValueOnTravelCard: ({}: {}) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const ResidualValueOnTravelCard: ({}: {}) => import("react").JSX.Element;
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB,GAAI,MAAE,4CAyC3C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,GAAI,MAAE,gCAwC3C,CAAC"}
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ResidualValueOnTravelCard = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const contact_module_css_1 = __importDefault(require("../../../contact.module.css"));
9
8
  const link_1 = __importDefault(require("next/link"));
10
9
  const typography_1 = require("../../../components/typography");
11
10
  const translations_1 = require("../../../translations");
@@ -13,7 +12,7 @@ const components_1 = require("../../../components");
13
12
  const ResidualValueOnTravelCard = ({}) => {
14
13
  const PageText = (0, translations_1.usePageText)();
15
14
  const { t } = (0, translations_1.useTranslation)();
16
- return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.residualValueOnTravelCard.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: (0, jsx_runtime_1.jsx)(link_1.default, { className: contact_module_css_1.default.link, href: t(PageText.Contact.refund.residualValueOnTravelCard.link.href), target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.refund.residualValueOnTravelCard.link.text) }) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.residualValueOnTravelCard
15
+ return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.residualValueOnTravelCard.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: (0, jsx_runtime_1.jsx)(link_1.default, { href: t(PageText.Contact.refund.residualValueOnTravelCard.link.href), target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.refund.residualValueOnTravelCard.link.text) }) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.residualValueOnTravelCard
17
16
  .monthlyPayoutDetails) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m__strong", children: t(PageText.Contact.refund.residualValueOnTravelCard
18
17
  .automatedProcessNotice.note) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.residualValueOnTravelCard
19
18
  .automatedProcessNotice.text) })] })] }));
@@ -1,3 +1,3 @@
1
- declare const RefundContent: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const RefundContent: () => import("react").JSX.Element;
2
2
  export default RefundContent;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa,+CA+HlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa,mCA2IlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -33,12 +33,21 @@ const RefundContent = () => {
33
33
  errorPath,
34
34
  includeOtherTicketTypeSelector: features?.includeOtherTicketTypeSelector !== false,
35
35
  includeRefundDepartureInfo: features?.includeRefundDepartureInfo === true,
36
+ includeCustomerNumberAndPurchasePlatformInAppTicketRefund: features?.includeCustomerNumberAndPurchasePlatformInAppTicketRefund ===
37
+ true,
38
+ includeOrderIdAndAmountInOtherTicketRefund: features?.includeOrderIdAndAmountInOtherTicketRefund === true,
39
+ enableFileUploads: features?.enableFileUploads === true,
40
+ enableRequiredAttachmentInOtherTicketRefund: features?.enableRequiredAttachmentInOtherTicketRefund === true,
36
41
  }), [
37
42
  apiConfig.onSubmit,
38
43
  successPath,
39
44
  errorPath,
40
45
  features?.includeOtherTicketTypeSelector,
41
46
  features?.includeRefundDepartureInfo,
47
+ features?.includeCustomerNumberAndPurchasePlatformInAppTicketRefund,
48
+ features?.includeOrderIdAndAmountInOtherTicketRefund,
49
+ features?.enableFileUploads,
50
+ features?.enableRequiredAttachmentInOtherTicketRefund,
42
51
  ]);
43
52
  const [state, send] = (0, react_1.useMachine)(machine);
44
53
  const displaySubmitButton = state.context.formType &&
@@ -1,7 +1,7 @@
1
1
  import { PurchasePlatformType, TransportModeType, ReasonForTransportFailure, TicketType } from '../types';
2
2
  import { Line } from '../server/journey-planner/validators';
3
3
  import { InputErrorMessages } from '../validation';
4
- import type { FormSchemaName } from '../modules/config/types';
4
+ import type { FormSlug } from '../modules/config/types';
5
5
  export declare enum FormCategory {
6
6
  RefundOfTicket = "refundOfTicket",
7
7
  RefundAndTravelGuarantee = "refundAndTravelGuarantee",
@@ -96,6 +96,10 @@ export type RefundContextProps = {
96
96
  hasInternationalBankAccount: boolean;
97
97
  includeOtherTicketTypeSelector: boolean;
98
98
  includeRefundDepartureInfo: boolean;
99
+ includeCustomerNumberAndPurchasePlatformInAppTicketRefund: boolean;
100
+ includeOrderIdAndAmountInOtherTicketRefund: boolean;
101
+ enableFileUploads: boolean;
102
+ enableRequiredAttachmentInOtherTicketRefund: boolean;
99
103
  errorMessages: InputErrorMessages;
100
104
  firstIncorrectErrorMessage?: string;
101
105
  hasSubmissionError?: boolean;
@@ -105,8 +109,12 @@ export type MachinePaths = {
105
109
  errorPath: string;
106
110
  includeOtherTicketTypeSelector?: boolean;
107
111
  includeRefundDepartureInfo?: boolean;
112
+ includeCustomerNumberAndPurchasePlatformInAppTicketRefund?: boolean;
113
+ includeOrderIdAndAmountInOtherTicketRefund?: boolean;
114
+ enableFileUploads?: boolean;
115
+ enableRequiredAttachmentInOtherTicketRefund?: boolean;
108
116
  };
109
- export declare function createRefundStateMachine(onSubmit: (schemaName: FormSchemaName, state: Record<string, unknown>) => Promise<Response>, paths?: Partial<MachinePaths>): import("xstate").StateMachine<RefundContextProps, {
117
+ export declare function createRefundStateMachine(onSubmit: (slug: FormSlug, state: Record<string, unknown>) => Promise<Response>, paths?: Partial<MachinePaths>): import("xstate").StateMachine<RefundContextProps, {
110
118
  type: "ON_INPUT_CHANGE";
111
119
  inputName: "formType" | "kilometersDriven" | "fromAddress" | "toAddress" | "amount" | "reasonForTransportFailure" | "orderId" | "customerNumber" | "ticketType" | "travelCardNumber" | "refundReason" | "firstName" | "lastName" | "address" | "postalCode" | "city" | "email" | "phoneNumber" | "bankAccountNumber" | "IBAN" | "SWIFT" | "fromStop" | "toStop" | "date" | "plannedDepartureTime" | "tripId" | "feedback" | "attachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber" | "bankCardDetails";
112
120
  value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources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