@newskit-render/my-account 7.143.1-766ef5871.1 → 7.143.1-a2a4fe282.15

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