@mrfylke/contact-form 0.1.33 → 0.1.34

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 (103) hide show
  1. package/README.md +0 -22
  2. package/lib/commoneEvents.d.ts +1 -1
  3. package/lib/commoneEvents.d.ts.map +1 -1
  4. package/lib/components/form/date-selector.d.ts +4 -1
  5. package/lib/components/form/date-selector.d.ts.map +1 -1
  6. package/lib/components/form/date-selector.js +2 -2
  7. package/lib/components/form/form.module.css +0 -74
  8. package/lib/components/form/input.d.ts +2 -6
  9. package/lib/components/form/input.d.ts.map +1 -1
  10. package/lib/components/form/input.js +7 -22
  11. package/lib/components/form/time-selector.d.ts.map +1 -1
  12. package/lib/components/form/time-selector.js +1 -1
  13. package/lib/components/icon/generated-icons.js +8 -8
  14. package/lib/index.d.ts +1 -1
  15. package/lib/index.d.ts.map +1 -1
  16. package/lib/journey-info/journeyInfoStateMachine.d.ts +2 -2
  17. package/lib/layouts/contact-pages.d.ts.map +1 -1
  18. package/lib/layouts/contact-pages.js +7 -2
  19. package/lib/lines/use-lines.d.ts +1 -0
  20. package/lib/lines/use-lines.d.ts.map +1 -1
  21. package/lib/lines/use-lines.js +1 -0
  22. package/lib/lost-property/LostPropertyForm.d.ts +6 -0
  23. package/lib/lost-property/LostPropertyForm.d.ts.map +1 -1
  24. package/lib/lost-property/LostPropertyForm.js +54 -12
  25. package/lib/lost-property/LostPropertyMachine.d.ts +5 -4
  26. package/lib/lost-property/LostPropertyMachine.d.ts.map +1 -1
  27. package/lib/lost-property/LostPropertyMachine.js +5 -1
  28. package/lib/lost-property/index.d.ts.map +1 -1
  29. package/lib/lost-property/index.js +40 -3
  30. package/lib/means-of-transport/means-of-transport-form-machine.d.ts +2 -2
  31. package/lib/modules/api-browser/index.d.ts +1 -1
  32. package/lib/modules/api-browser/index.d.ts.map +1 -1
  33. package/lib/modules/api-browser/index.js +5 -1
  34. package/lib/modules/config/context.d.ts.map +1 -1
  35. package/lib/modules/config/context.js +1 -4
  36. package/lib/modules/config/theme-adapter.d.ts.map +1 -1
  37. package/lib/modules/config/theme-adapter.js +2 -0
  38. package/lib/modules/config/types.d.ts +33 -4
  39. package/lib/modules/config/types.d.ts.map +1 -1
  40. package/lib/modules/transport-mode/utils.d.ts +2 -2
  41. package/lib/modules/transport-mode/utils.d.ts.map +1 -1
  42. package/lib/refund/events.d.ts +3 -3
  43. package/lib/refund/events.d.ts.map +1 -1
  44. package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
  45. package/lib/refund/forms/refund-and-travel-guarantee/index.js +9 -2
  46. package/lib/refund/forms/refund-and-travel-guarantee/pre-purchased-ticket-refund-form/index.d.ts +11 -0
  47. package/lib/refund/forms/refund-and-travel-guarantee/pre-purchased-ticket-refund-form/index.d.ts.map +1 -0
  48. package/lib/refund/forms/refund-and-travel-guarantee/pre-purchased-ticket-refund-form/index.js +159 -0
  49. package/lib/refund/forms/refund-and-travel-guarantee/pre-purchased-ticket-refund-form/pre-purchased-ticket-refund-form.module.css +73 -0
  50. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
  51. package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +2 -2
  52. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
  53. package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.js +2 -2
  54. package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
  55. package/lib/refund/forms/refund-ticket/appTicketRefund.js +2 -7
  56. package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
  57. package/lib/refund/forms/refund-ticket/otherTicketRefund.js +4 -10
  58. package/lib/refund/refundFormMachine.d.ts +38 -7
  59. package/lib/refund/refundFormMachine.d.ts.map +1 -1
  60. package/lib/refund/refundFormMachine.js +46 -0
  61. package/lib/server/journey-planner/entur-client.d.ts +2 -1
  62. package/lib/server/journey-planner/entur-client.d.ts.map +1 -1
  63. package/lib/ticket-control/forms/feeComplaintForm.js +4 -10
  64. package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
  65. package/lib/ticket-control/forms/postponePayment.js +2 -6
  66. package/lib/ticket-control/ticket-control-form-machine.d.ts +2 -2
  67. package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
  68. package/lib/ticketing/forms/app/appAccountForm.js +1 -3
  69. package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
  70. package/lib/ticketing/forms/app/appTicketingForm.js +2 -8
  71. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
  72. package/lib/ticketing/forms/travel-card/travelCardQuestionForm.js +5 -8
  73. package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
  74. package/lib/ticketing/forms/webshop/webshopAccountForm.js +1 -3
  75. package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
  76. package/lib/ticketing/forms/webshop/webshopTicketingForm.js +2 -7
  77. package/lib/ticketing/ticketingStateMachine.d.ts +2 -2
  78. package/lib/translations/commons.d.ts +1 -1
  79. package/lib/translations/commons.d.ts.map +1 -1
  80. package/lib/translations/commons.js +3 -1
  81. package/lib/translations/language-context.js +1 -1
  82. package/lib/translations/pages/contact.d.ts +31 -9
  83. package/lib/translations/pages/contact.d.ts.map +1 -1
  84. package/lib/translations/pages/contact.js +36 -18
  85. package/lib/translations/translations-context.d.ts +11 -4
  86. package/lib/translations/translations-context.d.ts.map +1 -1
  87. package/lib/translations/translations-context.js +18 -11
  88. package/lib/types/submit-payloads.d.ts +12 -0
  89. package/lib/types/submit-payloads.d.ts.map +1 -1
  90. package/lib/utils/rich-text.d.ts +2 -2
  91. package/lib/utils/rich-text.js +8 -3
  92. package/lib/utils.d.ts +56 -3
  93. package/lib/utils.d.ts.map +1 -1
  94. package/lib/validation/commonInputValidator.d.ts +1 -1
  95. package/lib/validation/commonInputValidator.d.ts.map +1 -1
  96. package/lib/validation/commonInputValidator.js +3 -3
  97. package/lib/validation/validationRules.d.ts +2 -0
  98. package/lib/validation/validationRules.d.ts.map +1 -1
  99. package/lib/validation/validationRules.js +26 -1
  100. package/package.json +12 -6
  101. package/lib/components/form/description-modal.d.ts +0 -13
  102. package/lib/components/form/description-modal.d.ts.map +0 -1
  103. package/lib/components/form/description-modal.js +0 -44
@@ -0,0 +1,73 @@
1
+ .departuresTable {
2
+ width: 100%;
3
+ /* separate, not collapse: border-radius has no effect on collapsed tables. */
4
+ border-collapse: separate;
5
+ border-spacing: 0;
6
+ border: token('border.width.slim') solid
7
+ token('color.interactive.2.outline.background');
8
+ border-radius: token('border.radius.small');
9
+ }
10
+
11
+ .departuresTable th,
12
+ .departuresTable td {
13
+ padding: token('spacing.xSmall') token('spacing.small');
14
+ text-align: left;
15
+ vertical-align: middle;
16
+ border-right: token('border.width.slim') solid
17
+ token('color.interactive.2.outline.background');
18
+ border-bottom: token('border.width.slim') solid
19
+ token('color.interactive.2.outline.background');
20
+ }
21
+
22
+ /* The table's own border is the outer frame. */
23
+ .departuresTable tr > :last-child {
24
+ border-right: none;
25
+ }
26
+
27
+ .departuresTable tbody tr:last-child > * {
28
+ border-bottom: none;
29
+ }
30
+
31
+ /* Keep the header background inside the rounded corners. */
32
+ .departuresTable thead th:first-child {
33
+ border-top-left-radius: token('border.radius.small');
34
+ }
35
+
36
+ .departuresTable thead th:last-child {
37
+ border-top-right-radius: token('border.radius.small');
38
+ }
39
+
40
+ .departuresTable thead {
41
+ background-color: token('color.background.neutral.1.background');
42
+ }
43
+
44
+ .removeCell {
45
+ width: 1%;
46
+ text-align: right;
47
+ }
48
+
49
+ .removeButton {
50
+ border-radius: token('border.radius.small');
51
+ }
52
+
53
+ /* Scoped to the table to outrank Button's own transparent :hover color. */
54
+ .departuresTable .removeButton:hover {
55
+ background-color: token('color.interactive.2.hover.background');
56
+ color: token('color.interactive.2.hover.foreground.primary');
57
+ }
58
+
59
+ @media (max-width: 600px) {
60
+ /* Icon only on small screens; the title is Button's last child. */
61
+ .removeButton > :last-child {
62
+ display: none;
63
+ }
64
+ }
65
+
66
+ .visuallyHidden {
67
+ position: absolute;
68
+ width: 1px;
69
+ height: 1px;
70
+ overflow: hidden;
71
+ clip-path: inset(50%);
72
+ white-space: nowrap;
73
+ }
@@ -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;AAiB7D,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,gCAodhE,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;AAiB7D,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,gCA0dhE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -132,11 +132,11 @@ const RefundCarForm = ({ state, send }) => {
132
132
  type: 'ON_INPUT_CHANGE',
133
133
  inputName: 'hasInternationalBankAccount',
134
134
  value: !state.context.hasInternationalBankAccount,
135
- }) })), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
135
+ }) })), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), description: t(PageText.Contact.input.bankInformation.IBAN.description), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
136
136
  type: 'ON_INPUT_CHANGE',
137
137
  inputName: 'IBAN',
138
138
  value: e.target.value,
139
- }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
139
+ }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), description: t(PageText.Contact.input.bankInformation.SWIFT.description), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
140
140
  type: 'ON_INPUT_CHANGE',
141
141
  inputName: 'SWIFT',
142
142
  value: e.target.value,
@@ -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;AAiB7D,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,gCA2blE,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;AAiB7D,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,gCAiclE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -131,11 +131,11 @@ const RefundTaxiForm = ({ state, send }) => {
131
131
  type: 'ON_INPUT_CHANGE',
132
132
  inputName: 'hasInternationalBankAccount',
133
133
  value: !state.context.hasInternationalBankAccount,
134
- }) })), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
134
+ }) })), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), description: t(PageText.Contact.input.bankInformation.IBAN.description), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
135
135
  type: 'ON_INPUT_CHANGE',
136
136
  inputName: 'IBAN',
137
137
  value: e.target.value,
138
- }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
138
+ }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), description: t(PageText.Contact.input.bankInformation.SWIFT.description), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
139
139
  type: 'ON_INPUT_CHANGE',
140
140
  inputName: 'SWIFT',
141
141
  value: e.target.value,
@@ -1 +1 @@
1
- {"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,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,gCAqIpE,CAAC;AAqQF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,+BAWtB"}
1
+ {"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,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,gCA6HpE,CAAC;AAqQF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,+BAWtB"}
@@ -29,16 +29,11 @@ const AppTicketRefund = ({ state, send }) => {
29
29
  type: 'ON_INPUT_CHANGE',
30
30
  inputName: 'customerNumber',
31
31
  value: e.target.value,
32
- }), modalContent: {
33
- description: t(PageText.Contact.input.customerNumber.description),
34
- } })), areOrderIdAndCustomerNumberRelevant && ((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({
32
+ }), description: t(PageText.Contact.input.customerNumber.description) })), areOrderIdAndCustomerNumberRelevant && ((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({
35
33
  type: 'ON_INPUT_CHANGE',
36
34
  inputName: 'orderId',
37
35
  value: e.target.value,
38
- }), modalContent: {
39
- description: t(PageText.Contact.input.orderId.description),
40
- bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
41
- } })), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", label: t(PageText.Contact.input.refundReason.question), description: t(PageText.Contact.input.refundReason.description), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
36
+ }), description: t(PageText.Contact.input.orderId.description) })), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", label: t(PageText.Contact.input.refundReason.question), description: t(PageText.Contact.input.refundReason.description), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
42
37
  type: 'ON_INPUT_CHANGE',
43
38
  inputName: 'refundReason',
44
39
  value: e.target.value,
@@ -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;AAigBF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAWxE,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;AA8fF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAWxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -28,17 +28,11 @@ const RefundSection = ({ state, send }) => {
28
28
  type: 'ON_INPUT_CHANGE',
29
29
  inputName: 'orderId',
30
30
  value: e.target.value,
31
- }), modalContent: {
32
- description: t(PageText.Contact.input.orderId.description),
33
- instruction: t(PageText.Contact.input.orderId.instruction),
34
- bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
35
- } })), 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({
31
+ }), description: t(PageText.Contact.input.orderId.description) })), 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({
36
32
  type: 'ON_INPUT_CHANGE',
37
33
  inputName: 'travelCardNumber',
38
34
  value: e.target.value,
39
- }), modalContent: {
40
- description: t(PageText.Contact.input.travelCardNumber.info),
41
- } })), features?.includeAmountInOtherTicketRefund && ((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({
35
+ }), description: t(PageText.Contact.input.travelCardNumber.info) })), features?.includeAmountInOtherTicketRefund && ((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({
42
36
  type: 'ON_INPUT_CHANGE',
43
37
  inputName: 'amount',
44
38
  value: e.target.value,
@@ -98,11 +92,11 @@ const AboutYouSection = ({ state, send }) => {
98
92
  type: 'ON_INPUT_CHANGE',
99
93
  inputName: 'hasInternationalBankAccount',
100
94
  value: !state.context.hasInternationalBankAccount,
101
- }) }), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
95
+ }) }), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), description: t(PageText.Contact.input.bankInformation.IBAN.description), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
102
96
  type: 'ON_INPUT_CHANGE',
103
97
  inputName: 'IBAN',
104
98
  value: e.target.value,
105
- }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
99
+ }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), description: t(PageText.Contact.input.bankInformation.SWIFT.description), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
106
100
  type: 'ON_INPUT_CHANGE',
107
101
  inputName: 'SWIFT',
108
102
  value: e.target.value,
@@ -14,11 +14,21 @@ export declare enum RefundTicketForm {
14
14
  }
15
15
  export declare enum RefundAndTravelGuarantee {
16
16
  RefundTaxi = "refundTaxi",
17
- RefundCar = "refundCar"
17
+ RefundCar = "refundCar",
18
+ PrePurchasedTicketRefund = "prePurchasedTicketRefund"
18
19
  }
20
+ export type DelayedDeparture = {
21
+ line: Line;
22
+ fromStop: Line['quays'][0];
23
+ toStop: Line['quays'][0];
24
+ date: string;
25
+ plannedDepartureTime: string;
26
+ tripId?: string;
27
+ };
19
28
  export declare enum FormType {
20
29
  RefundTaxi = "refundTaxi",
21
30
  RefundCar = "refundCar",
31
+ PrePurchasedTicketRefund = "prePurchasedTicketRefund",
22
32
  AppTicketRefund = "appTicketRefund",
23
33
  OtherTicketRefund = "otherTicketRefund",
24
34
  ResidualValueOnTravelCard = "residualValueOnTravelCard",
@@ -62,6 +72,14 @@ type SubmitInput = {
62
72
  refundReason?: string;
63
73
  purchasePlatform?: string;
64
74
  bankCardDetails?: string;
75
+ delayedDepartures?: {
76
+ line?: string;
77
+ fromStop: string;
78
+ toStop: string;
79
+ date: string;
80
+ plannedDepartureTime: string;
81
+ tripId?: string;
82
+ }[];
65
83
  };
66
84
  export type RefundContextProps = {
67
85
  formType?: FormType;
@@ -99,6 +117,7 @@ export type RefundContextProps = {
99
117
  refundReason?: string;
100
118
  purchasePlatform?: PurchasePlatformType | undefined;
101
119
  bankCardDetails?: string;
120
+ prePurchasedTicketDelayedDepartures?: DelayedDeparture[];
102
121
  isInitialAgreementChecked: boolean;
103
122
  hasInternationalBankAccount: boolean;
104
123
  includeOtherTicketTypeSelector: boolean;
@@ -130,8 +149,8 @@ export type MachinePaths = {
130
149
  };
131
150
  export declare function createRefundStateMachine(onSubmit: (slug: FormSlug, state: Record<string, unknown>) => Promise<Response>, paths?: Partial<MachinePaths>): import("xstate").StateMachine<RefundContextProps, {
132
151
  type: "ON_INPUT_CHANGE";
133
- 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" | "receiptAttachments" | "identificationAttachments" | "feedbackAttachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber" | "bankCardDetails";
134
- value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | undefined;
152
+ 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" | "receiptAttachments" | "identificationAttachments" | "feedbackAttachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber" | "bankCardDetails" | "prePurchasedTicketDelayedDepartures";
153
+ value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | DelayedDeparture[] | undefined;
135
154
  } | {
136
155
  type: "SELECT_FORM_CATEGORY";
137
156
  formCategory: FormCategory;
@@ -225,11 +244,14 @@ export declare function createRefundStateMachine(onSubmit: (slug: FormSlug, stat
225
244
  } | {
226
245
  type: "isRefundTaxi";
227
246
  params: unknown;
247
+ } | {
248
+ type: "isPrePurchasedTicketRefund";
249
+ params: unknown;
228
250
  }, never, "success" | "validating" | "submitting" | "formCategoryHandler" | "refundTicketFormHandler" | "refundAndTravelGuaranteeFormHandler" | {
229
251
  editing: "ticketBoughtOnBus" | "residualValueOnTravelCard" | "selectFormCategory" | {
230
252
  refundOfTicket: "otherTicketRefund" | "appTicketRefund" | "selectRefundOfTicketForm";
231
253
  } | {
232
- refundAndTravelGuarantee: "refundTaxi" | "refundCar" | "selectRefundAndTravelGuaranteeForm";
254
+ refundAndTravelGuarantee: "refundTaxi" | "refundCar" | "prePurchasedTicketRefund" | "selectRefundAndTravelGuaranteeForm";
233
255
  };
234
256
  }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
235
257
  id: "refundStateMachine";
@@ -268,6 +290,9 @@ export declare function createRefundStateMachine(onSubmit: (slug: FormSlug, stat
268
290
  readonly refundTaxi: {
269
291
  id: "refundTaxi";
270
292
  };
293
+ readonly prePurchasedTicketRefund: {
294
+ id: "prePurchasedTicketRefund";
295
+ };
271
296
  };
272
297
  };
273
298
  readonly residualValueOnTravelCard: {
@@ -290,8 +315,8 @@ export declare function createRefundStateMachine(onSubmit: (slug: FormSlug, stat
290
315
  }>;
291
316
  export declare const refundStateMachine: import("xstate").StateMachine<RefundContextProps, {
292
317
  type: "ON_INPUT_CHANGE";
293
- 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" | "receiptAttachments" | "identificationAttachments" | "feedbackAttachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber" | "bankCardDetails";
294
- value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | undefined;
318
+ 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" | "receiptAttachments" | "identificationAttachments" | "feedbackAttachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber" | "bankCardDetails" | "prePurchasedTicketDelayedDepartures";
319
+ value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | DelayedDeparture[] | undefined;
295
320
  } | {
296
321
  type: "SELECT_FORM_CATEGORY";
297
322
  formCategory: FormCategory;
@@ -385,11 +410,14 @@ export declare const refundStateMachine: import("xstate").StateMachine<RefundCon
385
410
  } | {
386
411
  type: "isRefundTaxi";
387
412
  params: unknown;
413
+ } | {
414
+ type: "isPrePurchasedTicketRefund";
415
+ params: unknown;
388
416
  }, never, "success" | "validating" | "submitting" | "formCategoryHandler" | "refundTicketFormHandler" | "refundAndTravelGuaranteeFormHandler" | {
389
417
  editing: "ticketBoughtOnBus" | "residualValueOnTravelCard" | "selectFormCategory" | {
390
418
  refundOfTicket: "otherTicketRefund" | "appTicketRefund" | "selectRefundOfTicketForm";
391
419
  } | {
392
- refundAndTravelGuarantee: "refundTaxi" | "refundCar" | "selectRefundAndTravelGuaranteeForm";
420
+ refundAndTravelGuarantee: "refundTaxi" | "refundCar" | "prePurchasedTicketRefund" | "selectRefundAndTravelGuaranteeForm";
393
421
  };
394
422
  }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
395
423
  id: "refundStateMachine";
@@ -428,6 +456,9 @@ export declare const refundStateMachine: import("xstate").StateMachine<RefundCon
428
456
  readonly refundTaxi: {
429
457
  id: "refundTaxi";
430
458
  };
459
+ readonly prePurchasedTicketRefund: {
460
+ id: "prePurchasedTicketRefund";
461
+ };
431
462
  };
432
463
  };
433
464
  readonly residualValueOnTravelCard: {
@@ -1 +1 @@
1
- {"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources":["../../src/refund/refundFormMachine.ts"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyzBR,CAAC"}
@@ -23,11 +23,13 @@ var RefundAndTravelGuarantee;
23
23
  (function (RefundAndTravelGuarantee) {
24
24
  RefundAndTravelGuarantee["RefundTaxi"] = "refundTaxi";
25
25
  RefundAndTravelGuarantee["RefundCar"] = "refundCar";
26
+ RefundAndTravelGuarantee["PrePurchasedTicketRefund"] = "prePurchasedTicketRefund";
26
27
  })(RefundAndTravelGuarantee || (exports.RefundAndTravelGuarantee = RefundAndTravelGuarantee = {}));
27
28
  var FormType;
28
29
  (function (FormType) {
29
30
  FormType["RefundTaxi"] = "refundTaxi";
30
31
  FormType["RefundCar"] = "refundCar";
32
+ FormType["PrePurchasedTicketRefund"] = "prePurchasedTicketRefund";
31
33
  FormType["AppTicketRefund"] = "appTicketRefund";
32
34
  FormType["OtherTicketRefund"] = "otherTicketRefund";
33
35
  FormType["ResidualValueOnTravelCard"] = "residualValueOnTravelCard";
@@ -77,6 +79,23 @@ const setInputToValidate = (context) => {
77
79
  };
78
80
  case FormType.RefundCar:
79
81
  return { ...commonFields, kilometersDriven, fromAddress, toAddress };
82
+ case FormType.PrePurchasedTicketRefund:
83
+ return {
84
+ formType,
85
+ orderId,
86
+ refundReason,
87
+ prePurchasedTicketDelayedDepartures: context.prePurchasedTicketDelayedDepartures,
88
+ firstName,
89
+ lastName,
90
+ email,
91
+ address,
92
+ postalCode,
93
+ city,
94
+ phoneNumber,
95
+ ...(hasInternationalBankAccount
96
+ ? { IBAN, SWIFT }
97
+ : { bankAccountNumber }),
98
+ };
80
99
  case FormType.AppTicketRefund:
81
100
  return {
82
101
  formType,
@@ -231,6 +250,9 @@ function createRefundStateMachine(onSubmit, paths) {
231
250
  event.refundAndTravelGuarantee === RefundAndTravelGuarantee.RefundCar,
232
251
  isRefundTaxi: ({ event }) => event.type === 'SELECT_REFUND_AND_TRAVEL_GUARANTEE_FORM' &&
233
252
  event.refundAndTravelGuarantee === RefundAndTravelGuarantee.RefundTaxi,
253
+ isPrePurchasedTicketRefund: ({ event }) => event.type === 'SELECT_REFUND_AND_TRAVEL_GUARANTEE_FORM' &&
254
+ event.refundAndTravelGuarantee ===
255
+ RefundAndTravelGuarantee.PrePurchasedTicketRefund,
234
256
  },
235
257
  actions: {
236
258
  navigateToErrorPage: () => {
@@ -427,6 +449,17 @@ function createRefundStateMachine(onSubmit, paths) {
427
449
  guard: 'isRefundTaxi',
428
450
  target: `#${RefundAndTravelGuarantee.RefundTaxi}`,
429
451
  },
452
+ {
453
+ guard: 'isPrePurchasedTicketRefund',
454
+ target: `#${RefundAndTravelGuarantee.PrePurchasedTicketRefund}`,
455
+ // Reset here, not on entry: entry re-runs when a failed submit
456
+ // returns via editing.history.
457
+ actions: (0, xstate_1.assign)({
458
+ transportMode: () => 'expressboat',
459
+ line: () => undefined,
460
+ prePurchasedTicketDelayedDepartures: () => [],
461
+ }),
462
+ },
430
463
  ],
431
464
  },
432
465
  editing: {
@@ -469,6 +502,13 @@ function createRefundStateMachine(onSubmit, paths) {
469
502
  entry: (0, xstate_1.assign)({ formType: () => FormType.RefundTaxi }),
470
503
  exit: 'clearValidationErrors',
471
504
  },
505
+ prePurchasedTicketRefund: {
506
+ id: 'prePurchasedTicketRefund',
507
+ entry: (0, xstate_1.assign)({
508
+ formType: () => FormType.PrePurchasedTicketRefund,
509
+ }),
510
+ exit: 'clearValidationErrors',
511
+ },
472
512
  },
473
513
  },
474
514
  residualValueOnTravelCard: {
@@ -539,6 +579,12 @@ function createRefundStateMachine(onSubmit, paths) {
539
579
  refundReason: context?.refundReason,
540
580
  purchasePlatform: context?.purchasePlatform,
541
581
  bankCardDetails: context?.bankCardDetails,
582
+ delayedDepartures: context.prePurchasedTicketDelayedDepartures?.map((d) => ({
583
+ ...d,
584
+ line: (0, utils_1.getLineName)(d.line),
585
+ fromStop: d.fromStop.name,
586
+ toStop: d.toStop.name,
587
+ })),
542
588
  }),
543
589
  onDone: { target: 'success' },
544
590
  onError: {
@@ -1,7 +1,8 @@
1
+ import { NormalizedCacheObject } from '@apollo/client/cache';
1
2
  import { ApolloClient } from '@apollo/client/core';
2
3
  /**
3
4
  * Get or create the Entur GraphQL client instance.
4
5
  * This is a singleton that can be reused across requests.
5
6
  */
6
- export declare function getEnturClient(): ApolloClient<any>;
7
+ export declare function getEnturClient(): ApolloClient<NormalizedCacheObject>;
7
8
  //# sourceMappingURL=entur-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entur-client.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/entur-client.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAIb,MAAM,qBAAqB,CAAC;AAmB7B;;;GAGG;AACH,wBAAgB,cAAc,IAAI,YAAY,CAAC,GAAG,CAAC,CA2BlD"}
1
+ {"version":3,"file":"entur-client.d.ts","sourceRoot":"","sources":["../../../src/server/journey-planner/entur-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EACL,YAAY,EAIb,MAAM,qBAAqB,CAAC;AAmB7B;;;GAGG;AACH,wBAAgB,cAAc,IAAI,YAAY,CAAC,qBAAqB,CAAC,CA2BpE"}
@@ -36,9 +36,7 @@ const FormContent = ({ state, send }) => {
36
36
  type: 'ON_INPUT_CHANGE',
37
37
  inputName: 'feeNumber',
38
38
  value: e.target.value,
39
- }), modalContent: {
40
- description: t(PageText.Contact.input.feeNumber.description),
41
- } }), state.context.includeFeeDateInTicketControl && ((0, jsx_runtime_1.jsx)(components_1.DateSelector, { id: "feeDate", label: t(PageText.Contact.input.date.feeDate.label), isRequired: true, value: state.context.feeDate, onChange: (feeDate) => send({
39
+ }), description: t(PageText.Contact.input.feeNumber.description) }), state.context.includeFeeDateInTicketControl && ((0, jsx_runtime_1.jsx)(components_1.DateSelector, { id: "feeDate", label: t(PageText.Contact.input.date.feeDate.label), isRequired: true, value: state.context.feeDate, onChange: (feeDate) => send({
42
40
  type: 'ON_INPUT_CHANGE',
43
41
  inputName: 'feeDate',
44
42
  value: feeDate,
@@ -59,11 +57,7 @@ const FormContent = ({ state, send }) => {
59
57
  type: 'ON_INPUT_CHANGE',
60
58
  inputName: 'customerNumber',
61
59
  value: e.target.value,
62
- }), modalContent: {
63
- description: t(PageText.Contact.input.customerNumber.description),
64
- } }))] })), !state.context.isAppTicketStorageMode && ((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 || '', modalContent: {
65
- description: t(PageText.Contact.input.travelCardNumber.info),
66
- }, isRequired: true, errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
60
+ }), description: t(PageText.Contact.input.customerNumber.description) }))] })), !state.context.isAppTicketStorageMode && ((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 || '', description: t(PageText.Contact.input.travelCardNumber.info), isRequired: true, errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
67
61
  type: 'ON_INPUT_CHANGE',
68
62
  inputName: 'travelCardNumber',
69
63
  value: e.target.value,
@@ -120,11 +114,11 @@ const FormContent = ({ state, send }) => {
120
114
  type: 'ON_INPUT_CHANGE',
121
115
  inputName: 'hasInternationalBankAccount',
122
116
  value: !state.context.hasInternationalBankAccount,
123
- }) }), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
117
+ }) }), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(PageText.Contact.input.bankInformation.IBAN.label), description: t(PageText.Contact.input.bankInformation.IBAN.description), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
124
118
  type: 'ON_INPUT_CHANGE',
125
119
  inputName: 'IBAN',
126
120
  value: e.target.value,
127
- }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
121
+ }) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(PageText.Contact.input.bankInformation.SWIFT.label), description: t(PageText.Contact.input.bankInformation.SWIFT.description), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
128
122
  type: 'ON_INPUT_CHANGE',
129
123
  inputName: 'SWIFT',
130
124
  value: e.target.value,
@@ -1 +1 @@
1
- {"version":3,"file":"postponePayment.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/postponePayment.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE;QAAE,OAAO,EAAE,yBAAyB,CAAA;KAAE,CAAC;IAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,uBAAuB,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,kBAGjC,wBAAwB,gCA0H1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"postponePayment.d.ts","sourceRoot":"","sources":["../../../src/ticket-control/forms/postponePayment.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE;QAAE,OAAO,EAAE,yBAAyB,CAAA;KAAE,CAAC;IAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,uBAAuB,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,kBAGjC,wBAAwB,gCAsH1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -12,9 +12,7 @@ const PostponePaymentForm = ({ state, send, }) => {
12
12
  type: 'ON_INPUT_CHANGE',
13
13
  inputName: 'feeNumber',
14
14
  value: e.target.value,
15
- }), modalContent: {
16
- description: t(PageText.Contact.input.feeNumber.description),
17
- } }), state.context.includeFeeDateInTicketControl && ((0, jsx_runtime_1.jsx)(components_1.DateSelector, { id: "feeDate", label: t(PageText.Contact.input.date.feeDate.label), isRequired: true, value: state.context.feeDate, onChange: (feeDate) => send({
15
+ }), description: t(PageText.Contact.input.feeNumber.description) }), state.context.includeFeeDateInTicketControl && ((0, jsx_runtime_1.jsx)(components_1.DateSelector, { id: "feeDate", label: t(PageText.Contact.input.date.feeDate.label), isRequired: true, value: state.context.feeDate, onChange: (feeDate) => send({
18
16
  type: 'ON_INPUT_CHANGE',
19
17
  inputName: 'feeDate',
20
18
  value: feeDate,
@@ -22,9 +20,7 @@ const PostponePaymentForm = ({ state, send, }) => {
22
20
  type: 'ON_INPUT_CHANGE',
23
21
  inputName: 'invoiceNumber',
24
22
  value: e.target.value,
25
- }), modalContent: {
26
- description: t(PageText.Contact.input.invoiceNumber.description),
27
- } })] }), (0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.aboutYouInfo.title), children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
23
+ }), description: t(PageText.Contact.input.invoiceNumber.description) })] }), (0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.aboutYouInfo.title), children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
28
24
  type: 'ON_INPUT_CHANGE',
29
25
  inputName: 'firstName',
30
26
  value: e.target.value,
@@ -97,7 +97,7 @@ export declare function createTicketControlFormMachine(onSubmit: (slug: FormSlug
97
97
  } | {
98
98
  type: "ON_INPUT_CHANGE";
99
99
  inputName: "address" | "attachments" | "bankAccountNumber" | "city" | "date" | "email" | "firstName" | "feedback" | "IBAN" | "lastName" | "phoneNumber" | "postalCode" | "SWIFT" | "toStop" | "fromStop" | "plannedDepartureTime" | "tripId";
100
- value: any;
100
+ value: unknown;
101
101
  } | {
102
102
  type: "ON_TRANSPORTMODE_CHANGE";
103
103
  value: TransportModeType;
@@ -199,7 +199,7 @@ export declare const ticketControlFormMachine: import("xstate").StateMachine<Tic
199
199
  } | {
200
200
  type: "ON_INPUT_CHANGE";
201
201
  inputName: "address" | "attachments" | "bankAccountNumber" | "city" | "date" | "email" | "firstName" | "feedback" | "IBAN" | "lastName" | "phoneNumber" | "postalCode" | "SWIFT" | "toStop" | "fromStop" | "plannedDepartureTime" | "tripId";
202
- value: any;
202
+ value: unknown;
203
203
  } | {
204
204
  type: "ON_TRANSPORTMODE_CHANGE";
205
205
  value: TransportModeType;
@@ -1 +1 @@
1
- {"version":3,"file":"appAccountForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appAccountForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,gCAgIlE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"appAccountForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appAccountForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,gCA8HlE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -28,9 +28,7 @@ const AppAccountForm = ({ state, send }) => {
28
28
  type: 'ON_INPUT_CHANGE',
29
29
  inputName: 'customerNumber',
30
30
  value: e.target.value,
31
- }), modalContent: {
32
- description: t(PageText.Contact.input.customerNumber.description),
33
- } }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
31
+ }), description: t(PageText.Contact.input.customerNumber.description) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
34
32
  type: 'ON_INPUT_CHANGE',
35
33
  inputName: 'firstName',
36
34
  value: e.target.value,
@@ -1 +1 @@
1
- {"version":3,"file":"appTicketingForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appTicketingForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,iBAAiB,qBAAqB,gCAyJtE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"appTicketingForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/app/appTicketingForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,iBAAiB,qBAAqB,gCAgJtE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -11,11 +11,7 @@ const AppTicketingForm = ({ state, send }) => {
11
11
  type: 'ON_INPUT_CHANGE',
12
12
  inputName: 'orderId',
13
13
  value: e.target.value,
14
- }), modalContent: {
15
- description: t(PageText.Contact.input.orderId.description),
16
- instruction: t(PageText.Contact.input.orderId.instruction),
17
- bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletpoint) => t(bulletpoint)),
18
- } }) }), (0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(PageText.Contact.input.question.title), isRequired: true, children: (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "question", description: t(PageText.Contact.input.question.info), value: state.context.question || '', onChange: (e) => send({
14
+ }), description: t(PageText.Contact.input.orderId.description) }) }), (0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(PageText.Contact.input.question.title), isRequired: true, children: (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "question", description: t(PageText.Contact.input.question.info), value: state.context.question || '', onChange: (e) => send({
19
15
  type: 'ON_INPUT_CHANGE',
20
16
  inputName: 'question',
21
17
  value: e.target.value,
@@ -36,9 +32,7 @@ const AppTicketingForm = ({ state, send }) => {
36
32
  type: 'ON_INPUT_CHANGE',
37
33
  inputName: 'customerNumber',
38
34
  value: e.target.value,
39
- }), modalContent: {
40
- description: t(PageText.Contact.input.customerNumber.description),
41
- } }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
35
+ }), description: t(PageText.Contact.input.customerNumber.description) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
42
36
  type: 'ON_INPUT_CHANGE',
43
37
  inputName: 'firstName',
44
38
  value: e.target.value,
@@ -1 +1 @@
1
- {"version":3,"file":"travelCardQuestionForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/travel-card/travelCardQuestionForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAInE,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,kBAGpC,2BAA2B,gCAyI7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"travelCardQuestionForm.d.ts","sourceRoot":"","sources":["../../../../src/ticketing/forms/travel-card/travelCardQuestionForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE,CAAC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,mBAAmB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,kBAGpC,2BAA2B,gCAoI7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}