@newskit-render/my-account 7.145.1-08530b643.4 → 7.145.1-cdb781404.2

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 (121) hide show
  1. package/dist/cjs/Components/Elements/CancellationButtons/CancellationButtons.d.ts +7 -0
  2. package/dist/cjs/Components/Elements/CancellationButtons/CancellationButtons.js +43 -0
  3. package/dist/cjs/Components/Elements/CancellationButtons/CancellationButtons.js.map +1 -0
  4. package/dist/cjs/Components/Elements/CancellationButtons/index.d.ts +1 -0
  5. package/dist/cjs/Components/Elements/CancellationButtons/index.js +18 -0
  6. package/dist/cjs/Components/Elements/CancellationButtons/index.js.map +1 -0
  7. package/dist/cjs/Components/Elements/NewsletterCard/NewsletterCard.js +1 -1
  8. package/dist/cjs/Components/Elements/NewsletterCard/NewsletterCard.js.map +1 -1
  9. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js +1 -1
  10. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  11. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.d.ts +18 -1
  12. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.js.map +1 -1
  13. package/dist/cjs/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  14. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js +98 -55
  15. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  16. package/dist/cjs/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  17. package/dist/cjs/Components/Sections/ContentContainer/{InvoiceHistoryButton.js → PaginationButton.js} +13 -16
  18. package/dist/cjs/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  19. package/dist/cjs/Components/Sections/ContentContainer/types.d.ts +4 -3
  20. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js +1 -1
  21. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  22. package/dist/cjs/Components/Sections/SectionContainer/types.d.ts +2 -2
  23. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js +1 -1
  24. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  25. package/dist/cjs/Components/Templates/CancellationStepperRender.d.ts +1 -55
  26. package/dist/cjs/Components/Templates/CancellationStepperRender.js +12 -12
  27. package/dist/cjs/Components/Templates/CancellationStepperRender.js.map +1 -1
  28. package/dist/cjs/Components/Templates/DisplayRenderer.js +1 -1
  29. package/dist/cjs/Components/Templates/DisplayRenderer.js.map +1 -1
  30. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js +1 -1
  31. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  32. package/dist/cjs/context/types.d.ts +1 -1
  33. package/dist/cjs/helpers/dataUtils.d.ts +2 -2
  34. package/dist/cjs/helpers/dataUtils.js +16 -11
  35. package/dist/cjs/helpers/dataUtils.js.map +1 -1
  36. package/dist/cjs/helpers/dateUtils.d.ts +0 -1
  37. package/dist/cjs/helpers/dateUtils.js +1 -11
  38. package/dist/cjs/helpers/dateUtils.js.map +1 -1
  39. package/dist/cjs/pages/CancellationStepper/CancellationStepper.js +1 -1
  40. package/dist/cjs/pages/CancellationStepper/CancellationStepper.js.map +1 -1
  41. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js +499 -530
  42. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  43. package/dist/cjs/pages/Newsletters/NewslettersContext.js +3 -3
  44. package/dist/cjs/pages/Newsletters/NewslettersContext.js.map +1 -1
  45. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +45 -0
  46. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  47. package/dist/cjs/pages/types.d.ts +10 -0
  48. package/dist/cjs/queries/getUserSubscription.js +1 -1
  49. package/dist/cjs/queries/getUserSubscription.js.map +1 -1
  50. package/dist/cjs/queries/mutateSendFamilyMemberInvite.js +1 -2
  51. package/dist/cjs/queries/mutateSendFamilyMemberInvite.js.map +1 -1
  52. package/dist/esm/Components/Elements/CancellationButtons/CancellationButtons.d.ts +7 -0
  53. package/dist/esm/Components/Elements/CancellationButtons/CancellationButtons.js +36 -0
  54. package/dist/esm/Components/Elements/CancellationButtons/CancellationButtons.js.map +1 -0
  55. package/dist/esm/Components/Elements/CancellationButtons/index.d.ts +1 -0
  56. package/dist/esm/Components/Elements/CancellationButtons/index.js +2 -0
  57. package/dist/esm/Components/Elements/CancellationButtons/index.js.map +1 -0
  58. package/dist/esm/Components/Elements/NewsletterCard/NewsletterCard.js +1 -1
  59. package/dist/esm/Components/Elements/NewsletterCard/NewsletterCard.js.map +1 -1
  60. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js +2 -2
  61. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  62. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.d.ts +18 -1
  63. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.js +1 -1
  64. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.js.map +1 -1
  65. package/dist/esm/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  66. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js +99 -56
  67. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  68. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  69. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js +37 -0
  70. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  71. package/dist/esm/Components/Sections/ContentContainer/types.d.ts +4 -3
  72. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js +2 -2
  73. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  74. package/dist/esm/Components/Sections/SectionContainer/types.d.ts +2 -2
  75. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js +1 -1
  76. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  77. package/dist/esm/Components/Templates/CancellationStepperRender.d.ts +1 -55
  78. package/dist/esm/Components/Templates/CancellationStepperRender.js +12 -12
  79. package/dist/esm/Components/Templates/CancellationStepperRender.js.map +1 -1
  80. package/dist/esm/Components/Templates/DisplayRenderer.js +1 -1
  81. package/dist/esm/Components/Templates/DisplayRenderer.js.map +1 -1
  82. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js +2 -2
  83. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  84. package/dist/esm/context/types.d.ts +1 -1
  85. package/dist/esm/helpers/dataUtils.d.ts +2 -2
  86. package/dist/esm/helpers/dataUtils.js +11 -6
  87. package/dist/esm/helpers/dataUtils.js.map +1 -1
  88. package/dist/esm/helpers/dateUtils.d.ts +0 -1
  89. package/dist/esm/helpers/dateUtils.js +0 -9
  90. package/dist/esm/helpers/dateUtils.js.map +1 -1
  91. package/dist/esm/pages/CancellationStepper/CancellationStepper.js +1 -1
  92. package/dist/esm/pages/CancellationStepper/CancellationStepper.js.map +1 -1
  93. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js +500 -531
  94. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  95. package/dist/esm/pages/Newsletters/NewslettersContext.js +3 -3
  96. package/dist/esm/pages/Newsletters/NewslettersContext.js.map +1 -1
  97. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +45 -0
  98. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  99. package/dist/esm/pages/types.d.ts +10 -0
  100. package/dist/esm/queries/getUserSubscription.js +1 -1
  101. package/dist/esm/queries/getUserSubscription.js.map +1 -1
  102. package/dist/esm/queries/mutateSendFamilyMemberInvite.js +1 -2
  103. package/dist/esm/queries/mutateSendFamilyMemberInvite.js.map +1 -1
  104. package/package.json +3 -3
  105. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellationExp2.d.ts +0 -2
  106. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellationExp2.js +0 -59
  107. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellationExp2.js.map +0 -1
  108. package/dist/cjs/Components/Sections/ConfirmCancellation/index.d.ts +0 -89
  109. package/dist/cjs/Components/Sections/ConfirmCancellation/index.js +0 -47
  110. package/dist/cjs/Components/Sections/ConfirmCancellation/index.js.map +0 -1
  111. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  112. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
  113. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellationExp2.d.ts +0 -2
  114. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellationExp2.js +0 -52
  115. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellationExp2.js.map +0 -1
  116. package/dist/esm/Components/Sections/ConfirmCancellation/index.d.ts +0 -89
  117. package/dist/esm/Components/Sections/ConfirmCancellation/index.js +0 -40
  118. package/dist/esm/Components/Sections/ConfirmCancellation/index.js.map +0 -1
  119. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  120. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js +0 -40
  121. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
@@ -40,601 +40,570 @@ var reasonSubtitleOverrides = {
40
40
  stylePreset: { xs: 'textAlignCenter', md: 'textAlignLeft' },
41
41
  };
42
42
  var downgradePageUrl = '[baseURL]/cancel?step=downgrade';
43
- var CancellationStepperContext = function (variant, contractPhase, inEmbeddedMode) {
44
- var isVariantTwo = variant === constants_1.CANCELLATION_EXPERIMENT.VARIANT_2_A;
45
- var varTwoIntroduction = {
46
- title: 'Your subscription has been cancelled',
47
- description: 'We’ve processed your cancellation. You’ll continue to have access until the end of your current billing period.',
48
- center: false,
49
- titleOverrides: {},
50
- };
51
- return {
52
- baseUrl: constants_1.BASE_URL,
53
- head: {
54
- pageTitle: 'Cancellation',
55
- },
56
- showBackButton: true,
57
- header: {
58
- backButton: {
59
- text: 'Back',
60
- 'aria-label': 'back',
61
- href: '[baseURL]/subscription-and-billing',
62
- hasIcon: true,
63
- eventContext: {
64
- event_navigation_action: 'navigation',
65
- event_navigation_name: 'button:back',
66
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
67
- page_name: 'cancellation reasons',
68
- optimizely_feature_data: "cancellation_exp|".concat(variant),
69
- contract_state: contractPhase,
70
- },
71
- },
72
- backButtonOverrides: {
73
- marginBlockEnd: 'space060',
43
+ var CancellationStepperContext = function (variant, contractPhase, inEmbeddedMode) { return ({
44
+ baseUrl: constants_1.BASE_URL,
45
+ head: {
46
+ pageTitle: 'Cancellation',
47
+ },
48
+ showBackButton: true,
49
+ header: {
50
+ backButton: {
51
+ text: 'Back',
52
+ 'aria-label': 'back',
53
+ href: '[baseURL]/subscription-and-billing',
54
+ hasIcon: true,
55
+ eventContext: {
56
+ event_navigation_action: 'navigation',
57
+ event_navigation_name: 'button:back',
58
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
59
+ page_name: 'cancellation reasons',
60
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
61
+ contract_state: contractPhase,
74
62
  },
75
63
  },
76
- containerOverrides: {
77
- rows: 'auto',
78
- columns: '1fr 1fr',
79
- rowGap: '8px',
80
- columnGap: '8px',
81
- justifyContent: 'space-between',
82
- overrides: {
83
- paddingBlock: 'space050',
84
- paddingInline: 'space040',
85
- minWidth: '100%',
86
- },
64
+ backButtonOverrides: {
65
+ marginBlockEnd: 'space060',
87
66
  },
88
- layoutMainContentOverrides: {
89
- fullWidth: true,
90
- justifyContent: 'stretch',
91
- width: {
92
- xs: '100%',
93
- md: '100%',
94
- },
95
- paddingInline: {
96
- xs: 'space045',
97
- md: 'space060',
98
- },
99
- paddingBlockStart: {
100
- xs: 'space045',
101
- md: 'space060',
102
- },
67
+ },
68
+ containerOverrides: {
69
+ rows: 'auto',
70
+ columns: '1fr 1fr',
71
+ rowGap: '8px',
72
+ columnGap: '8px',
73
+ justifyContent: 'space-between',
74
+ overrides: {
75
+ paddingBlock: 'space050',
76
+ paddingInline: 'space040',
77
+ minWidth: '100%',
103
78
  },
104
- contentContainerOverrides: {
105
- marginInline: 'auto',
106
- paddingBlockStart: 'space000',
107
- paddingInline: 'space000',
79
+ },
80
+ layoutMainContentOverrides: {
81
+ fullWidth: true,
82
+ justifyContent: 'stretch',
83
+ width: {
84
+ xs: '100%',
85
+ md: '100%',
108
86
  },
109
- components: {
110
- reason: {
111
- tealiumContext: getPageTrackingEvent('cancellation reasons', variant, contractPhase, inEmbeddedMode),
112
- contentContainerOverrides: {
113
- marginInline: 'auto',
114
- paddingBlockStart: 'space000',
115
- paddingInline: 'space000',
116
- width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
117
- },
118
- layoutType: 'grid',
119
- header: {
120
- center: true,
121
- title: 'Before you go, can you tell us why?',
122
- description: 'Your feedback helps us improve and may allow us to offer you a better solution.',
123
- fullWidthTitle: true,
124
- titleOverrides: {
125
- marginBlockEnd: 'space060',
126
- typographyPreset: {
127
- xs: 'editorialHeadline040',
128
- md: 'editorialSubheadline050',
129
- },
87
+ paddingInline: {
88
+ xs: 'space045',
89
+ md: 'space060',
90
+ },
91
+ paddingBlockStart: {
92
+ xs: 'space045',
93
+ md: 'space060',
94
+ },
95
+ },
96
+ contentContainerOverrides: {
97
+ marginInline: 'auto',
98
+ paddingBlockStart: 'space000',
99
+ paddingInline: 'space000',
100
+ },
101
+ components: {
102
+ reason: {
103
+ tealiumContext: getPageTrackingEvent('cancellation reasons', variant, contractPhase, inEmbeddedMode),
104
+ contentContainerOverrides: {
105
+ marginInline: 'auto',
106
+ paddingBlockStart: 'space000',
107
+ paddingInline: 'space000',
108
+ width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
109
+ },
110
+ layoutType: 'grid',
111
+ header: {
112
+ center: true,
113
+ title: 'Before you go, can you tell us why?',
114
+ description: 'Your feedback helps us improve and may allow us to offer you a better solution.',
115
+ fullWidthTitle: true,
116
+ titleOverrides: {
117
+ marginBlockEnd: 'space060',
118
+ typographyPreset: {
119
+ xs: 'editorialHeadline040',
120
+ md: 'editorialSubheadline050',
130
121
  },
131
- descriptionOverrides: {
132
- marginBlockEnd: 'space040',
133
- paddingInline: { xs: 'space000', md: 'space110' },
134
- typographyPreset: {
135
- xs: 'editorialParagraph010',
136
- md: 'editorialParagraph020',
137
- },
122
+ },
123
+ descriptionOverrides: {
124
+ marginBlockEnd: 'space040',
125
+ paddingInline: { xs: 'space000', md: 'space110' },
126
+ typographyPreset: {
127
+ xs: 'editorialParagraph010',
128
+ md: 'editorialParagraph020',
138
129
  },
139
130
  },
131
+ },
132
+ containerOverrides: {
133
+ rows: 'auto',
134
+ columns: '1fr 1fr',
135
+ rowGap: 'space040',
136
+ columnGap: 'space040',
137
+ justifyContent: 'space-between',
138
+ overrides: {
139
+ paddingBlock: 'space045',
140
+ minWidth: '100%',
141
+ },
142
+ },
143
+ itemContainerOverrides: {
144
+ rows: { xs: 'auto 1fr', md: 'auto' },
145
+ columns: '1fr',
146
+ rowGap: { xs: 'space040', md: 'space030' },
147
+ justifyContent: 'space-between',
148
+ overrides: {
149
+ paddingBlock: { xs: 'space020', md: 'space045' },
150
+ paddingInline: { xs: 'space020', md: 'space045' },
151
+ paddingBlockEnd: { xs: 'space045', md: 'space045' },
152
+ minWidth: '100%',
153
+ },
154
+ },
155
+ itemHeaderOverrides: {
156
+ flow: { xs: 'vertical-center', md: 'horizontal-top' },
157
+ flowReverse: { xs: true, md: false },
158
+ imageVisible: true,
159
+ height: 'auto',
160
+ },
161
+ itemImageOverrides: {
162
+ width: 45,
163
+ height: 36,
164
+ },
165
+ belowItemExtra: {
140
166
  containerOverrides: {
141
- rows: 'auto',
142
- columns: '1fr 1fr',
143
- rowGap: 'space040',
144
- columnGap: 'space040',
145
- justifyContent: 'space-between',
167
+ columns: 'repeat(2, auto)',
168
+ justifyContent: 'center',
169
+ justifyItems: 'center',
170
+ alignItems: 'center',
146
171
  overrides: {
147
- paddingBlock: 'space045',
148
- minWidth: '100%',
172
+ marginBlockStart: 'space050',
149
173
  },
150
174
  },
151
- itemContainerOverrides: {
152
- rows: { xs: 'auto 1fr', md: 'auto' },
153
- columns: '1fr',
154
- rowGap: { xs: 'space040', md: 'space030' },
155
- justifyContent: 'space-between',
156
- overrides: {
157
- paddingBlock: { xs: 'space020', md: 'space045' },
158
- paddingInline: { xs: 'space020', md: 'space045' },
159
- paddingBlockEnd: { xs: 'space045', md: 'space045' },
160
- minWidth: '100%',
161
- },
175
+ label: 'or',
176
+ button: {
177
+ text: 'None of the above',
178
+ href: downgradePageUrl,
179
+ id: 'none-of-the-above',
162
180
  },
163
- itemHeaderOverrides: {
164
- flow: { xs: 'vertical-center', md: 'horizontal-top' },
165
- flowReverse: { xs: true, md: false },
166
- imageVisible: true,
167
- height: 'auto',
181
+ buttonOverrides: {
182
+ stylePreset: 'baseInteractivePrimary030',
183
+ typographyPreset: 'utilitySubheading020',
168
184
  },
169
- itemImageOverrides: {
170
- width: 45,
171
- height: 36,
185
+ iconOverrides: {
186
+ size: 'iconSize020',
187
+ stylePreset: 'baseInteractivePrimary030',
172
188
  },
173
- belowItemExtra: {
174
- containerOverrides: {
175
- columns: 'repeat(2, auto)',
176
- justifyContent: 'center',
177
- justifyItems: 'center',
178
- alignItems: 'center',
179
- overrides: {
180
- marginBlockStart: 'space050',
181
- },
182
- },
183
- label: 'or',
184
- button: {
185
- text: 'None of the above',
186
- href: downgradePageUrl,
187
- id: 'none-of-the-above',
188
- },
189
- buttonOverrides: {
190
- stylePreset: 'baseInteractivePrimary030',
191
- typographyPreset: 'utilitySubheading020',
192
- },
193
- iconOverrides: {
194
- size: 'iconSize020',
195
- stylePreset: 'baseInteractivePrimary030',
196
- },
197
- marginInline: 'auto',
189
+ marginInline: 'auto',
190
+ eventContext: {
191
+ event_navigation_action: 'navigation',
192
+ event_navigation_name: 'online cancellation : cancellation reason selection',
193
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
194
+ page_name: 'cancellation reasons',
195
+ article_parent_name: 'none of the above',
196
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
197
+ contract_state: contractPhase,
198
+ },
199
+ },
200
+ items: [
201
+ {
202
+ id: 'tech-issues',
203
+ label: "I'm having tech issues",
204
+ labelOverrides: reasonLabelOverrides,
205
+ subtitle: "I've experienced problems with the app or website",
206
+ subtitleOverrides: reasonSubtitleOverrides,
207
+ componentType: 'grid',
208
+ image: '/assets/cancellation/placeholder.png',
209
+ href: downgradePageUrl,
198
210
  eventContext: {
199
211
  event_navigation_action: 'navigation',
200
212
  event_navigation_name: 'online cancellation : cancellation reason selection',
201
213
  event_navigation_browsing_method: newskit_1.EventTrigger.Click,
202
214
  page_name: 'cancellation reasons',
203
- article_parent_name: 'none of the above',
215
+ article_parent_name: 'tech issues',
204
216
  optimizely_feature_data: "cancellation_exp|".concat(variant),
205
217
  contract_state: contractPhase,
206
218
  },
207
219
  },
208
- items: [
209
- {
210
- id: 'tech-issues',
211
- label: "I'm having tech issues",
212
- labelOverrides: reasonLabelOverrides,
213
- subtitle: "I've experienced problems with the app or website",
214
- subtitleOverrides: reasonSubtitleOverrides,
215
- componentType: 'grid',
216
- image: '/assets/cancellation/placeholder.png',
217
- href: downgradePageUrl,
218
- eventContext: {
219
- event_navigation_action: 'navigation',
220
- event_navigation_name: 'online cancellation : cancellation reason selection',
221
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
222
- page_name: 'cancellation reasons',
223
- article_parent_name: 'tech issues',
224
- optimizely_feature_data: "cancellation_exp|".concat(variant),
225
- contract_state: contractPhase,
226
- },
227
- },
228
- {
229
- id: 'not-right-for-me',
230
- label: "The content isn't right for me",
231
- labelOverrides: reasonLabelOverrides,
232
- subtitle: "I'm not enjoying the content, or I'm taking a break from news",
233
- subtitleOverrides: reasonSubtitleOverrides,
234
- componentType: 'grid',
235
- image: '/assets/cancellation/placeholder.png',
236
- href: downgradePageUrl,
237
- eventContext: {
238
- event_navigation_action: 'navigation',
239
- event_navigation_name: 'online cancellation : cancellation reason selection',
240
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
241
- page_name: 'cancellation reasons',
242
- article_parent_name: 'not right for me',
243
- optimizely_feature_data: "cancellation_exp|".concat(variant),
244
- contract_state: contractPhase,
245
- },
220
+ {
221
+ id: 'not-right-for-me',
222
+ label: "The content isn't right for me",
223
+ labelOverrides: reasonLabelOverrides,
224
+ subtitle: "I'm not enjoying the content, or I'm taking a break from news",
225
+ subtitleOverrides: reasonSubtitleOverrides,
226
+ componentType: 'grid',
227
+ image: '/assets/cancellation/placeholder.png',
228
+ href: downgradePageUrl,
229
+ eventContext: {
230
+ event_navigation_action: 'navigation',
231
+ event_navigation_name: 'online cancellation : cancellation reason selection',
232
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
233
+ page_name: 'cancellation reasons',
234
+ article_parent_name: 'not right for me',
235
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
236
+ contract_state: contractPhase,
246
237
  },
247
- {
248
- id: 'no-time',
249
- label: "I don't have time",
250
- labelOverrides: reasonLabelOverrides,
251
- subtitle: "I don't read the news enough to make it worthwhile",
252
- subtitleOverrides: reasonSubtitleOverrides,
253
- componentType: 'grid',
254
- image: '/assets/cancellation/placeholder.png',
255
- href: downgradePageUrl,
256
- eventContext: {
257
- event_navigation_action: 'navigation',
258
- event_navigation_name: 'online cancellation : cancellation reason selection',
259
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
260
- page_name: 'cancellation reasons',
261
- article_parent_name: 'no time',
262
- optimizely_feature_data: "cancellation_exp|".concat(variant),
263
- contract_state: contractPhase,
264
- },
238
+ },
239
+ {
240
+ id: 'no-time',
241
+ label: "I don't have time",
242
+ labelOverrides: reasonLabelOverrides,
243
+ subtitle: "I don't read the news enough to make it worthwhile",
244
+ subtitleOverrides: reasonSubtitleOverrides,
245
+ componentType: 'grid',
246
+ image: '/assets/cancellation/placeholder.png',
247
+ href: downgradePageUrl,
248
+ eventContext: {
249
+ event_navigation_action: 'navigation',
250
+ event_navigation_name: 'online cancellation : cancellation reason selection',
251
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
252
+ page_name: 'cancellation reasons',
253
+ article_parent_name: 'no time',
254
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
255
+ contract_state: contractPhase,
265
256
  },
266
- {
267
- id: 'expensive',
268
- label: "It's too expensive",
269
- labelOverrides: reasonLabelOverrides,
270
- subtitle: "I can't justify the subscription cost",
271
- subtitleOverrides: reasonSubtitleOverrides,
272
- componentType: 'grid',
273
- image: '/assets/cancellation/placeholder.png',
274
- href: downgradePageUrl,
275
- eventContext: {
276
- event_navigation_action: 'navigation',
277
- event_navigation_name: 'online cancellation : cancellation reason selection',
278
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
279
- page_name: 'cancellation reasons',
280
- article_parent_name: 'expensive',
281
- optimizely_feature_data: "cancellation_exp|".concat(variant),
282
- contract_state: contractPhase,
283
- },
257
+ },
258
+ {
259
+ id: 'expensive',
260
+ label: "It's too expensive",
261
+ labelOverrides: reasonLabelOverrides,
262
+ subtitle: "I can't justify the subscription cost",
263
+ subtitleOverrides: reasonSubtitleOverrides,
264
+ componentType: 'grid',
265
+ image: '/assets/cancellation/placeholder.png',
266
+ href: downgradePageUrl,
267
+ eventContext: {
268
+ event_navigation_action: 'navigation',
269
+ event_navigation_name: 'online cancellation : cancellation reason selection',
270
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
271
+ page_name: 'cancellation reasons',
272
+ article_parent_name: 'expensive',
273
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
274
+ contract_state: contractPhase,
284
275
  },
285
- {
286
- id: 'practical-issues',
287
- label: 'Practical issues',
288
- labelOverrides: reasonLabelOverrides,
289
- subtitle: 'I’m having delivery problems or can’t receive the paper any more',
290
- subtitleOverrides: reasonSubtitleOverrides,
291
- componentType: 'grid',
292
- image: '/assets/cancellation/placeholder.png',
293
- href: downgradePageUrl,
294
- eventContext: {
295
- event_navigation_action: 'navigation',
296
- event_navigation_name: 'online cancellation : cancellation reason selection',
297
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
298
- page_name: 'cancellation reasons',
299
- article_parent_name: 'practical issues',
300
- optimizely_feature_data: "cancellation_exp|".concat(variant),
301
- contract_state: contractPhase,
302
- },
276
+ },
277
+ {
278
+ id: 'practical-issues',
279
+ label: 'Practical issues',
280
+ labelOverrides: reasonLabelOverrides,
281
+ subtitle: 'I’m having delivery problems or can’t receive the paper any more',
282
+ subtitleOverrides: reasonSubtitleOverrides,
283
+ componentType: 'grid',
284
+ image: '/assets/cancellation/placeholder.png',
285
+ href: downgradePageUrl,
286
+ eventContext: {
287
+ event_navigation_action: 'navigation',
288
+ event_navigation_name: 'online cancellation : cancellation reason selection',
289
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
290
+ page_name: 'cancellation reasons',
291
+ article_parent_name: 'practical issues',
292
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
293
+ contract_state: contractPhase,
303
294
  },
304
- {
305
- id: 'another-source',
306
- label: 'I prefer another source',
307
- labelOverrides: reasonLabelOverrides,
308
- subtitle: 'I now get my news from somewhere else',
309
- subtitleOverrides: reasonSubtitleOverrides,
310
- componentType: 'grid',
311
- image: '/assets/cancellation/placeholder.png',
312
- href: downgradePageUrl,
313
- eventContext: {
314
- event_navigation_action: 'navigation',
315
- event_navigation_name: 'online cancellation : cancellation reason selection',
316
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
317
- page_name: 'cancellation reasons',
318
- article_parent_name: 'another source',
319
- optimizely_feature_data: "cancellation_exp|".concat(variant),
320
- contract_state: contractPhase,
321
- },
295
+ },
296
+ {
297
+ id: 'another-source',
298
+ label: 'I prefer another source',
299
+ labelOverrides: reasonLabelOverrides,
300
+ subtitle: 'I now get my news from somewhere else',
301
+ subtitleOverrides: reasonSubtitleOverrides,
302
+ componentType: 'grid',
303
+ image: '/assets/cancellation/placeholder.png',
304
+ href: downgradePageUrl,
305
+ eventContext: {
306
+ event_navigation_action: 'navigation',
307
+ event_navigation_name: 'online cancellation : cancellation reason selection',
308
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
309
+ page_name: 'cancellation reasons',
310
+ article_parent_name: 'another source',
311
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
312
+ contract_state: contractPhase,
322
313
  },
323
- ],
314
+ },
315
+ ],
316
+ },
317
+ downgrade: {
318
+ tealiumContext: getPageTrackingEvent('offer page', variant, contractPhase, inEmbeddedMode),
319
+ contentContainerOverrides: {
320
+ marginInline: 'auto',
321
+ paddingBlockStart: 'space000',
322
+ paddingInline: 'space000',
323
+ width: { xs: '100%' },
324
+ maxWidth: '1400px',
324
325
  },
325
- downgrade: {
326
- tealiumContext: getPageTrackingEvent('offer page', variant, contractPhase, inEmbeddedMode),
327
- contentContainerOverrides: {
328
- marginInline: 'auto',
329
- paddingBlockStart: 'space000',
330
- paddingInline: 'space000',
331
- width: { xs: '100%' },
332
- maxWidth: '1400px',
333
- },
334
- header: {
335
- overline: 'Exclusive international offer:',
336
- overlineOverrides: {
337
- paddingInline: { xs: 'space000', md: 'space050' },
338
- typographyPreset: 'utilityHeading050',
339
- },
340
- title: 'Stay informed for less',
341
- description: 'Save on your subscription and continue to access trusted analysis and global reporting.',
342
- fullWidthTitle: true,
343
- titleOverrides: {
344
- marginBlockEnd: 'space060',
345
- paddingInline: { xs: 'space000', md: 'space050' },
346
- typographyPreset: {
347
- xs: 'editorialLightDisplay007',
348
- md: 'editorialLightDisplay008',
349
- },
350
- },
351
- descriptionOverrides: {
352
- paddingInline: { xs: 'space000', md: 'space050' },
353
- stylePreset: 'inkSubtle',
354
- typographyPreset: {
355
- xs: 'editorialLightHeadline020',
356
- md: 'editorialLightHeadline030',
357
- },
358
- },
326
+ header: {
327
+ overline: 'Exclusive international offer:',
328
+ overlineOverrides: {
329
+ paddingInline: { xs: 'space000', md: 'space050' },
330
+ typographyPreset: 'utilityHeading050',
359
331
  },
360
- heroImage: {
361
- width: 450,
362
- height: 470,
363
- src: '/assets/cancellation/cancellation-hero.png',
364
- alt: 'Downgrade',
332
+ title: 'Stay informed for less',
333
+ description: 'Save on your subscription and continue to access trusted analysis and global reporting.',
334
+ fullWidthTitle: true,
335
+ titleOverrides: {
336
+ marginBlockEnd: 'space060',
337
+ paddingInline: { xs: 'space000', md: 'space050' },
338
+ typographyPreset: {
339
+ xs: 'editorialLightDisplay007',
340
+ md: 'editorialLightDisplay008',
341
+ },
365
342
  },
366
- offers: [
367
- {
368
- id: 'offer-1',
369
- title: 'Save £80/year',
370
- offerLabel: (react_1.default.createElement(newskit_1.Stack, { spaceInline: "space010", flow: "horizontal-center" },
371
- react_1.default.createElement(newskit_1.TextBlock, { typographyPreset: "editorialLightHeadline040", stylePreset: "inkSubtle" },
372
- react_1.default.createElement("s", null, "\u00A3120")),
373
- react_1.default.createElement(newskit_1.TextBlock, { typographyPreset: "editorialLightHeadline050", stylePreset: "inkSection020" }, "\u00A340 for a whole year"))),
374
- description: 'Continue getting unrivalled international journalism from world-class reporters, dedicated to delivering unbiased, informative and entertaining analysis of the very latest global events.',
375
- newPrice: 'Then £10/month thereafter',
376
- buttonText: 'Save £80 for a year',
377
- containerOverrides: {
378
- overrides: { marginBlockEnd: 'space050', marginInline: '-8px' },
379
- },
380
- buttonEventContext: {
381
- event_navigation_action: 'navigation',
382
- event_navigation_name: 'offer 1 cta selected',
383
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
384
- page_name: 'offer page',
385
- optimizely_feature_data: "cancellation_exp|".concat(variant),
386
- contract_state: contractPhase,
387
- },
343
+ descriptionOverrides: {
344
+ paddingInline: { xs: 'space000', md: 'space050' },
345
+ stylePreset: 'inkSubtle',
346
+ typographyPreset: {
347
+ xs: 'editorialLightHeadline020',
348
+ md: 'editorialLightHeadline030',
388
349
  },
389
- {
390
- id: 'offer-2',
391
- title: 'Your current subscription',
392
- offerLabel: 'International Digital',
393
- offerLabelOverrides: {
394
- typographyPreset: 'editorialLightHeadline050',
395
- stylePreset: 'inkSection020',
396
- },
397
- newPrice: '£10/month (£120/year)',
398
- buttonText: 'Keep your current subscription',
399
- baseUrl: '/account',
400
- buttonHref: '[baseUrl]/subscription-and-billing',
401
- buttonOverrides: {
402
- overrides: {
403
- stylePreset: 'buttonOutlinedSecondary',
404
- },
405
- },
406
- buttonEventContext: {
407
- event_navigation_action: 'navigation',
408
- event_navigation_name: 'online cancellation - keep your current subscription',
409
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
410
- page_name: 'offer page',
411
- optimizely_feature_data: "cancellation_exp|".concat(variant),
412
- contract_state: contractPhase,
413
- },
414
- containerOverrides: {
415
- overrides: { marginBlockEnd: 'space050', marginInline: '-8px' },
416
- },
350
+ },
351
+ },
352
+ heroImage: {
353
+ width: 450,
354
+ height: 470,
355
+ src: '/assets/cancellation/cancellation-hero.png',
356
+ alt: 'Downgrade',
357
+ },
358
+ offers: [
359
+ {
360
+ id: 'offer-1',
361
+ title: 'Save £80/year',
362
+ offerLabel: (react_1.default.createElement(newskit_1.Stack, { spaceInline: "space010", flow: "horizontal-center" },
363
+ react_1.default.createElement(newskit_1.TextBlock, { typographyPreset: "editorialLightHeadline040", stylePreset: "inkSubtle" },
364
+ react_1.default.createElement("s", null, "\u00A3120")),
365
+ react_1.default.createElement(newskit_1.TextBlock, { typographyPreset: "editorialLightHeadline050", stylePreset: "inkSection020" }, "\u00A340 for a whole year"))),
366
+ description: 'Continue getting unrivalled international journalism from world-class reporters, dedicated to delivering unbiased, informative and entertaining analysis of the very latest global events.',
367
+ newPrice: 'Then £10/month thereafter',
368
+ buttonText: 'Save £80 for a year',
369
+ containerOverrides: {
370
+ overrides: { marginBlockEnd: 'space050', marginInline: '-8px' },
417
371
  },
418
- ],
419
- continueButton: {
420
- eventContext: {
372
+ buttonEventContext: {
421
373
  event_navigation_action: 'navigation',
422
- event_navigation_name: 'online cancellation - proceed with cancellation',
374
+ event_navigation_name: 'offer 1 cta selected',
423
375
  event_navigation_browsing_method: newskit_1.EventTrigger.Click,
424
376
  page_name: 'offer page',
425
377
  optimizely_feature_data: "cancellation_exp|".concat(variant),
426
378
  contract_state: contractPhase,
427
379
  },
428
- label: 'or',
429
- baseUrl: '/account',
430
- button: {
431
- text: 'Proceed with cancellation',
432
- href: '[baseURL]/cancel?step=cancel',
433
- },
434
380
  },
435
- },
436
- confirmCancel: {
437
- tealiumContext: getPageTrackingEvent('cancellation page', variant, contractPhase, inEmbeddedMode),
438
- showBackButton: false,
439
- contentContainerOverrides: {
440
- marginInline: 'auto',
441
- paddingBlockStart: 'space000',
442
- paddingInline: 'space000',
443
- width: __assign(__assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }), (isVariantTwo
444
- ? { xs: '100%', sm: '100%', md: '440px', lg: '440px' }
445
- : {})),
446
- },
447
- image: {
448
- src: '/assets/cancellation/thank-you.png',
449
- alt: 'Cancellation confirmed',
450
- width: 220,
451
- height: 320,
452
- },
453
- introduction: __assign({ title: 'Subscription cancelled', description: 'Your subscription will expire on ##DATE##.', center: true }, (isVariantTwo ? varTwoIntroduction : {})),
454
- subscriptionDetails: {
455
- containerOverrides: {
456
- width: '100%',
457
- marginBlockEnd: 'space100',
458
- },
459
- subscriptionType: {
460
- label: 'Subscription type',
381
+ {
382
+ id: 'offer-2',
383
+ title: 'Your current subscription',
384
+ offerLabel: 'International Digital',
385
+ offerLabelOverrides: {
386
+ typographyPreset: 'editorialLightHeadline050',
387
+ stylePreset: 'inkSection020',
388
+ },
389
+ newPrice: '£10/month (£120/year)',
390
+ buttonText: 'Keep your current subscription',
391
+ baseUrl: '/account',
392
+ buttonHref: '[baseUrl]/subscription-and-billing',
393
+ buttonOverrides: {
461
394
  overrides: {
462
- paddingBlock: 'space050',
463
- paddingInlineStart: 'space040',
464
- typographyPreset: 'utilityHeading010',
395
+ stylePreset: 'buttonOutlinedSecondary',
465
396
  },
466
397
  },
467
- endDate: {
468
- label: 'Subscription end date',
469
- overrides: {
470
- paddingBlock: 'space050',
471
- paddingInlineStart: 'space040',
472
- typographyPreset: 'utilityHeading010',
473
- },
398
+ buttonEventContext: {
399
+ event_navigation_action: 'navigation',
400
+ event_navigation_name: 'online cancellation - keep your current subscription',
401
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
402
+ page_name: 'offer page',
403
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
404
+ contract_state: contractPhase,
405
+ },
406
+ containerOverrides: {
407
+ overrides: { marginBlockEnd: 'space050', marginInline: '-8px' },
474
408
  },
475
409
  },
476
- buttonText: isVariantTwo
477
- ? 'Go back to My Account'
478
- : 'Return to Homepage',
479
- buttonUrl: '/account',
480
- buttonEventContext: {
410
+ ],
411
+ continueButton: {
412
+ eventContext: {
481
413
  event_navigation_action: 'navigation',
482
- event_navigation_name: 'online cancellation - return to homepage',
414
+ event_navigation_name: 'online cancellation - proceed with cancellation',
483
415
  event_navigation_browsing_method: newskit_1.EventTrigger.Click,
484
- page_name: 'cancellation page',
416
+ page_name: 'offer page',
485
417
  optimizely_feature_data: "cancellation_exp|".concat(variant),
486
418
  contract_state: contractPhase,
487
419
  },
420
+ label: 'or',
421
+ baseUrl: '/account',
422
+ button: {
423
+ text: 'Proceed with cancellation',
424
+ href: '[baseURL]/cancel?step=cancel',
425
+ },
488
426
  },
489
- preCancellation: {
490
- tealiumContext: getPageTrackingEvent('pre-confirmation page', variant, contractPhase, inEmbeddedMode),
491
- contentContainerOverrides: {
492
- marginInline: 'auto',
493
- paddingBlockStart: 'space000',
494
- paddingInline: 'space000',
495
- width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
496
- },
497
- header: {
498
- title: 'Confirm your cancellation',
499
- description: '##TIME_REMAINING## ##TIME_PERIOD## remaining',
500
- fullWidthTitle: true,
501
- titleOverrides: {
502
- textAlign: { xs: 'left', md: 'center' },
503
- marginBlockEnd: { xs: 'space050', md: 'space080' },
504
- typographyPreset: {
505
- xs: 'editorialHeadline040',
506
- md: 'editorialSubheadline050',
507
- },
508
- },
509
- descriptionOverrides: {
510
- textAlign: { xs: 'left', md: 'center' },
511
- marginBlockEnd: { xs: 'space070', md: 'space090' },
512
- typographyPreset: 'editorialLightDisplay004',
427
+ },
428
+ confirmCancel: {
429
+ tealiumContext: getPageTrackingEvent('cancellation page', variant, contractPhase, inEmbeddedMode),
430
+ showBackButton: false,
431
+ contentContainerOverrides: {
432
+ marginInline: 'auto',
433
+ paddingBlockStart: 'space000',
434
+ paddingInline: 'space000',
435
+ width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
436
+ },
437
+ image: {
438
+ src: '/assets/cancellation/thank-you.png',
439
+ alt: 'Cancellation confirmed',
440
+ width: 220,
441
+ height: 320,
442
+ },
443
+ introduction: {
444
+ title: 'Subscription cancelled',
445
+ description: 'Your subscription will expire on ##DATE##.',
446
+ center: true,
447
+ },
448
+ buttonText: 'Return to Homepage',
449
+ buttonUrl: '/account',
450
+ buttonEventContext: {
451
+ event_navigation_action: 'navigation',
452
+ event_navigation_name: 'online cancellation - return to homepage',
453
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
454
+ page_name: 'cancellation page',
455
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
456
+ contract_state: contractPhase,
457
+ },
458
+ },
459
+ preCancellation: {
460
+ tealiumContext: getPageTrackingEvent('pre-confirmation page', variant, contractPhase, inEmbeddedMode),
461
+ contentContainerOverrides: {
462
+ marginInline: 'auto',
463
+ paddingBlockStart: 'space000',
464
+ paddingInline: 'space000',
465
+ width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
466
+ },
467
+ header: {
468
+ title: 'Confirm your cancellation',
469
+ description: '##TIME_REMAINING## ##TIME_PERIOD## remaining',
470
+ fullWidthTitle: true,
471
+ titleOverrides: {
472
+ textAlign: { xs: 'left', md: 'center' },
473
+ marginBlockEnd: { xs: 'space050', md: 'space080' },
474
+ typographyPreset: {
475
+ xs: 'editorialHeadline040',
476
+ md: 'editorialSubheadline050',
513
477
  },
514
478
  },
515
- subscriptionName: '##SUBSCRIPTION_NAME## subscription',
516
- subscriptionEnd: {
517
- messages: {
518
- daysRemaining: 'Your subscription will end on ##DATE##. ',
519
- monthsRemaining: 'Your subscription will end in 1 month. ',
520
- },
521
- description: (react_1.default.createElement(react_1.default.Fragment, null,
522
- "After this date, your access to The Times and Sunday Times will stop. If you change your mind before then, just contact our",
523
- ' ',
524
- react_1.default.createElement(newskit_1.LinkInline, { external: false, overrides: {
525
- typographyPreset: 'utilityBody020',
526
- stylePreset: 'inkSubtle',
527
- }, href: "https://www.thetimes.com/help/articles/how-do-i-contact-customer-services", target: "_blank" }, "customer service team"),
528
- ' ',
529
- "- we\u2019ll be happy to help you keep your access.")),
530
- },
531
- continueButton: {
532
- eventContext: {
533
- event_navigation_action: 'navigation',
534
- event_navigation_name: 'online cancellation - confirm cancellation',
535
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
536
- page_name: 'pre-confirmation page',
537
- optimizely_feature_data: "cancellation_exp|".concat(variant),
538
- contract_state: contractPhase,
539
- },
540
- label: '',
541
- button: {
542
- text: 'Confirm cancellation',
543
- },
479
+ descriptionOverrides: {
480
+ textAlign: { xs: 'left', md: 'center' },
481
+ marginBlockEnd: { xs: 'space070', md: 'space090' },
482
+ typographyPreset: 'editorialLightDisplay004',
544
483
  },
545
- defaultCancellationReason: 'no reason',
546
- genericErrorMessage: {
547
- error: "Sorry, we're having trouble processing your cancellation request right now. Please try again later, or contact support.",
484
+ },
485
+ subscriptionName: '##SUBSCRIPTION_NAME## subscription',
486
+ subscriptionEnd: {
487
+ messages: {
488
+ daysRemaining: 'Your subscription will end on ##DATE##. ',
489
+ monthsRemaining: 'Your subscription will end in 1 month. ',
548
490
  },
491
+ description: (react_1.default.createElement(react_1.default.Fragment, null,
492
+ "After this date, your access to The Times and Sunday Times will stop. If you change your mind before then, just contact our",
493
+ ' ',
494
+ react_1.default.createElement(newskit_1.LinkInline, { external: false, overrides: {
495
+ typographyPreset: 'utilityBody020',
496
+ stylePreset: 'inkSubtle',
497
+ }, href: "https://www.thetimes.com/help/articles/how-do-i-contact-customer-services", target: "_blank" }, "customer service team"),
498
+ ' ',
499
+ "- we\u2019ll be happy to help you keep your access.")),
549
500
  },
550
- offers: {
551
- tealiumContext: getPageTrackingEvent('offer page', variant, contractPhase, inEmbeddedMode),
552
- contentContainerOverrides: {
553
- marginInline: 'auto',
554
- paddingBlockStart: 'space000',
555
- paddingInline: 'space000',
556
- width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
557
- },
558
- header: {
559
- title: "Don't cancel yet - here's a special offer",
560
- description: "We'd like you to stay. Choose an option below to keep access to The Times and The Sunday Times.",
561
- showDivider: true,
562
- marginBlockEnd: { xs: 'space050', md: 'space080' },
563
- titleOverrides: {
564
- marginBlockEnd: 'space060',
565
- },
566
- descriptionOverrides: {
567
- marginBlockEnd: 'space060',
568
- },
501
+ continueButton: {
502
+ eventContext: {
503
+ event_navigation_action: 'navigation',
504
+ event_navigation_name: 'online cancellation - confirm cancellation',
505
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
506
+ page_name: 'pre-confirmation page',
507
+ optimizely_feature_data: "cancellation_exp|".concat(variant),
508
+ contract_state: contractPhase,
509
+ },
510
+ label: '',
511
+ button: {
512
+ text: 'Confirm cancellation',
569
513
  },
570
- offersSection: {
571
- title: 'Limited time deal',
572
- titleOverrides: {
573
- typographyPreset: 'editorialHeadline050',
574
- marginBlockEnd: 'space060',
514
+ },
515
+ defaultCancellationReason: 'no reason',
516
+ genericErrorMessage: {
517
+ error: "Sorry, we're having trouble processing your cancellation request right now. Please try again later, or contact support.",
518
+ },
519
+ },
520
+ offers: {
521
+ tealiumContext: getPageTrackingEvent('offer page', variant, contractPhase, inEmbeddedMode),
522
+ contentContainerOverrides: {
523
+ marginInline: 'auto',
524
+ paddingBlockStart: 'space000',
525
+ paddingInline: 'space000',
526
+ width: __assign(__assign({}, shared_components_1.DEFAULT_CONTENT_CONTAINER_WIDTH), { xs: '100%', sm: '100%' }),
527
+ },
528
+ header: {
529
+ title: "Don't cancel yet - here's a special offer",
530
+ description: "We'd like you to stay. Choose an option below to keep access to The Times and The Sunday Times.",
531
+ showDivider: true,
532
+ marginBlockEnd: { xs: 'space050', md: 'space080' },
533
+ titleOverrides: {
534
+ marginBlockEnd: 'space060',
535
+ },
536
+ descriptionOverrides: {
537
+ marginBlockEnd: 'space060',
538
+ },
539
+ },
540
+ offersSection: {
541
+ title: 'Limited time deal',
542
+ titleOverrides: {
543
+ typographyPreset: 'editorialHeadline050',
544
+ marginBlockEnd: 'space060',
545
+ },
546
+ items: [
547
+ {
548
+ id: 'DINCV-0039',
549
+ title: 'Save 75% for 6 months',
550
+ description: 'Stay subscribed for just £10/month for the next 6 months. After that, your price returns to £30/month. Cancel anytime.',
551
+ discountedPrice: '£10/month for 6 months',
552
+ regularPrice: '£30/month after',
553
+ nextStep: 'discountPreview',
575
554
  },
576
- items: [
577
- {
578
- id: 'DINCV-0039',
579
- title: 'Save 75% for 6 months',
580
- description: 'Stay subscribed for just £10/month for the next 6 months. After that, your price returns to £30/month. Cancel anytime.',
581
- discountedPrice: '£10/month for 6 months',
582
- regularPrice: '£30/month after',
583
- nextStep: 'discountPreview',
584
- },
585
- {
586
- id: 'cancel',
587
- title: 'Cancel subscription',
588
- description: 'If you still want to leave, you’ll be taken to the final confirmation step.',
589
- nextStep: 'preCancellation',
590
- overrides: {
591
- container: {
592
- borderColor: 'interfaceInformative010',
593
- backgroundColor: 'interfaceBackground',
594
- },
595
- title: {
596
- marginBlockStart: 'space030',
597
- typographyPreset: 'utilityHeading010',
598
- },
555
+ {
556
+ id: 'cancel',
557
+ title: 'Cancel subscription',
558
+ description: 'If you still want to leave, you’ll be taken to the final confirmation step.',
559
+ nextStep: 'preCancellation',
560
+ overrides: {
561
+ container: {
562
+ borderColor: 'interfaceInformative010',
563
+ backgroundColor: 'interfaceBackground',
564
+ },
565
+ title: {
566
+ marginBlockStart: 'space030',
567
+ typographyPreset: 'utilityHeading010',
599
568
  },
600
569
  },
601
- ],
602
- },
603
- benefits: {
604
- showBenefits: true,
605
- title: 'Subscriber benefits',
606
- titleOverrides: {
607
- typographyPreset: 'editorialHeadline030',
608
- stylePreset: 'inkContrast',
609
- marginBlockEnd: 'space050',
610
570
  },
571
+ ],
572
+ },
573
+ benefits: {
574
+ showBenefits: true,
575
+ title: 'Subscriber benefits',
576
+ titleOverrides: {
577
+ typographyPreset: 'editorialHeadline030',
578
+ stylePreset: 'inkContrast',
579
+ marginBlockEnd: 'space050',
611
580
  },
612
- continueButton: {
613
- // TO DO: update with AIT spec
614
- eventContext: {
615
- event_navigation_action: 'navigation',
616
- event_navigation_name: 'online cancellation - proceed with offer selection',
617
- event_navigation_browsing_method: newskit_1.EventTrigger.Click,
618
- page_name: 'offers page',
619
- },
620
- label: '',
621
- button: {
622
- text: 'Continue',
623
- },
581
+ },
582
+ continueButton: {
583
+ // TO DO: update with AIT spec
584
+ eventContext: {
585
+ event_navigation_action: 'navigation',
586
+ event_navigation_name: 'online cancellation - proceed with offer selection',
587
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
588
+ page_name: 'offers page',
589
+ },
590
+ label: '',
591
+ button: {
592
+ text: 'Continue',
624
593
  },
625
594
  },
626
595
  },
627
- componentSequence: {
628
- Digital: ['reason', 'downgrade', 'preCancellation', 'confirmCancel'],
629
- },
630
- navigationPrimary: baseContext_1.navigationPrimary,
631
- footer: baseContext_1.footer,
632
- sideNav: baseContext_1.sideNav,
633
- sideNavSelected: 'subscription-and-billing',
634
- previousSubscription: {
635
- disableBanner: true,
636
- },
637
- };
638
- };
596
+ },
597
+ componentSequence: {
598
+ Digital: ['reason', 'downgrade', 'preCancellation', 'confirmCancel'],
599
+ },
600
+ navigationPrimary: baseContext_1.navigationPrimary,
601
+ footer: baseContext_1.footer,
602
+ sideNav: baseContext_1.sideNav,
603
+ sideNavSelected: 'subscription-and-billing',
604
+ previousSubscription: {
605
+ disableBanner: true,
606
+ },
607
+ }); };
639
608
  exports.CancellationStepperContext = CancellationStepperContext;
640
609
  //# sourceMappingURL=CancellationStepperContext.js.map