@newskit-render/my-account 7.139.1-7278eee2d.16 → 7.139.1-bc34672bd.18

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 (330) 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/CancellationPolicy/CancellationPolicy.d.ts +13 -0
  8. package/dist/cjs/Components/Elements/CancellationPolicy/CancellationPolicy.js +36 -0
  9. package/dist/cjs/Components/Elements/CancellationPolicy/CancellationPolicy.js.map +1 -0
  10. package/dist/cjs/Components/Elements/CancellationPolicy/index.d.ts +1 -0
  11. package/dist/cjs/Components/Elements/CancellationPolicy/index.js +6 -0
  12. package/dist/cjs/Components/Elements/CancellationPolicy/index.js.map +1 -0
  13. package/dist/cjs/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.d.ts +19 -0
  14. package/dist/cjs/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js +42 -0
  15. package/dist/cjs/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js.map +1 -0
  16. package/dist/cjs/Components/Elements/CancellationReasonSelector/index.d.ts +1 -0
  17. package/dist/cjs/Components/Elements/CancellationReasonSelector/index.js +6 -0
  18. package/dist/cjs/Components/Elements/CancellationReasonSelector/index.js.map +1 -0
  19. package/dist/cjs/Components/Elements/OfferGroup/Offer.d.ts +2 -0
  20. package/dist/cjs/Components/Elements/OfferGroup/Offer.js +29 -0
  21. package/dist/cjs/Components/Elements/OfferGroup/Offer.js.map +1 -0
  22. package/dist/cjs/Components/Elements/OfferGroup/OfferBody.d.ts +2 -0
  23. package/dist/cjs/Components/Elements/OfferGroup/OfferBody.js +29 -0
  24. package/dist/cjs/Components/Elements/OfferGroup/OfferBody.js.map +1 -0
  25. package/dist/cjs/Components/Elements/OfferGroup/OfferGroup.d.ts +2 -0
  26. package/dist/cjs/Components/Elements/OfferGroup/OfferGroup.js +26 -0
  27. package/dist/cjs/Components/Elements/OfferGroup/OfferGroup.js.map +1 -0
  28. package/dist/cjs/Components/Elements/OfferGroup/index.d.ts +4 -0
  29. package/dist/cjs/Components/Elements/OfferGroup/index.js +23 -0
  30. package/dist/cjs/Components/Elements/OfferGroup/index.js.map +1 -0
  31. package/dist/cjs/Components/Elements/OfferGroup/styled.d.ts +6 -0
  32. package/dist/cjs/Components/Elements/OfferGroup/styled.js +17 -0
  33. package/dist/cjs/Components/Elements/OfferGroup/styled.js.map +1 -0
  34. package/dist/cjs/Components/Elements/OfferGroup/types.d.ts +29 -0
  35. package/dist/cjs/Components/Elements/OfferGroup/types.js +3 -0
  36. package/dist/cjs/Components/Elements/OfferGroup/types.js.map +1 -0
  37. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js +3 -2
  38. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js.map +1 -1
  39. package/dist/cjs/Components/Elements/SectionListItem/types.d.ts +2 -0
  40. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  41. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js +7 -46
  42. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  43. package/dist/cjs/Components/Sections/CancellationDetails/CancellationDetails.js +1 -1
  44. package/dist/cjs/Components/Sections/CancellationDetails/CancellationDetails.js.map +1 -1
  45. package/dist/cjs/Components/Sections/CancellationOffers/CancellationOffers.d.ts +2 -0
  46. package/dist/cjs/Components/Sections/CancellationOffers/CancellationOffers.js +58 -0
  47. package/dist/cjs/Components/Sections/CancellationOffers/CancellationOffers.js.map +1 -0
  48. package/dist/cjs/Components/Sections/CancellationOffers/index.d.ts +2 -0
  49. package/dist/cjs/Components/Sections/CancellationOffers/index.js +19 -0
  50. package/dist/cjs/Components/Sections/CancellationOffers/index.js.map +1 -0
  51. package/dist/cjs/Components/Sections/CancellationOffers/types.d.ts +33 -0
  52. package/dist/cjs/Components/Sections/CancellationOffers/types.js +3 -0
  53. package/dist/cjs/Components/Sections/CancellationOffers/types.js.map +1 -0
  54. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js +1 -1
  55. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  56. package/dist/cjs/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  57. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js +98 -55
  58. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  59. package/dist/cjs/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  60. package/dist/cjs/Components/Sections/ContentContainer/{InvoiceHistoryButton.js → PaginationButton.js} +13 -16
  61. package/dist/cjs/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  62. package/dist/cjs/Components/Sections/ContentContainer/types.d.ts +4 -3
  63. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js +1 -1
  64. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  65. package/dist/cjs/Components/Sections/SectionContainer/types.d.ts +2 -2
  66. package/dist/cjs/Components/Sections/UserHub/BaseSection.d.ts +3 -0
  67. package/dist/cjs/Components/Sections/UserHub/BaseSection.js +3 -3
  68. package/dist/cjs/Components/Sections/UserHub/BaseSection.js.map +1 -1
  69. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js +12 -15
  70. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  71. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.d.ts +6 -0
  72. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.js +71 -0
  73. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.js.map +1 -0
  74. package/dist/cjs/Components/Templates/CancellationStepperRender.d.ts +2 -0
  75. package/dist/cjs/Components/Templates/CancellationStepperRender.js +8 -4
  76. package/dist/cjs/Components/Templates/CancellationStepperRender.js.map +1 -1
  77. package/dist/cjs/Components/Templates/DisplayRenderer.js +1 -1
  78. package/dist/cjs/Components/Templates/DisplayRenderer.js.map +1 -1
  79. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js +1 -1
  80. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  81. package/dist/cjs/Components/Templates/SunCancellationFlowRender.d.ts +3 -0
  82. package/dist/cjs/Components/Templates/SunCancellationFlowRender.js +103 -0
  83. package/dist/cjs/Components/Templates/SunCancellationFlowRender.js.map +1 -0
  84. package/dist/cjs/Components/Templates/UserHubRender.js +3 -1
  85. package/dist/cjs/Components/Templates/UserHubRender.js.map +1 -1
  86. package/dist/cjs/api/mutateHandlerHelpers.js +4 -4
  87. package/dist/cjs/api/mutateHandlerHelpers.js.map +1 -1
  88. package/dist/cjs/context/index.d.ts +3 -2
  89. package/dist/cjs/context/index.js +1 -0
  90. package/dist/cjs/context/index.js.map +1 -1
  91. package/dist/cjs/context/types.d.ts +20 -11
  92. package/dist/cjs/context/types.js +1 -0
  93. package/dist/cjs/context/types.js.map +1 -1
  94. package/dist/cjs/helpers/apiHandlerUtils.js +9 -1
  95. package/dist/cjs/helpers/apiHandlerUtils.js.map +1 -1
  96. package/dist/cjs/helpers/cancellationUtils.d.ts +1 -1
  97. package/dist/cjs/helpers/cancellationUtils.js +3 -3
  98. package/dist/cjs/helpers/cancellationUtils.js.map +1 -1
  99. package/dist/cjs/helpers/dataUtils.d.ts +2 -2
  100. package/dist/cjs/helpers/dataUtils.js +16 -11
  101. package/dist/cjs/helpers/dataUtils.js.map +1 -1
  102. package/dist/cjs/helpers/featureFlagUtils.js +1 -1
  103. package/dist/cjs/helpers/featureFlagUtils.js.map +1 -1
  104. package/dist/cjs/helpers/holidayStopsUtils.js +2 -2
  105. package/dist/cjs/helpers/holidayStopsUtils.js.map +1 -1
  106. package/dist/cjs/hooks/index.d.ts +1 -0
  107. package/dist/cjs/hooks/index.js +1 -0
  108. package/dist/cjs/hooks/index.js.map +1 -1
  109. package/dist/cjs/hooks/useCancelSubscriptionModal.d.ts +6 -0
  110. package/dist/cjs/hooks/useCancelSubscriptionModal.js +31 -0
  111. package/dist/cjs/hooks/useCancelSubscriptionModal.js.map +1 -0
  112. package/dist/cjs/index.d.ts +3 -1
  113. package/dist/cjs/index.js +1 -0
  114. package/dist/cjs/index.js.map +1 -1
  115. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js +191 -15
  116. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  117. package/dist/cjs/pages/HolidayStop/HolidayStopContext.js +1 -1
  118. package/dist/cjs/pages/HolidayStop/HolidayStopContext.js.map +1 -1
  119. package/dist/cjs/pages/HolidayStopList/HolidayStopListContext.js +1 -1
  120. package/dist/cjs/pages/HolidayStopList/HolidayStopListContext.js.map +1 -1
  121. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +13 -0
  122. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -1
  123. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +45 -0
  124. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  125. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.d.ts +7 -0
  126. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.js +34 -0
  127. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.js.map +1 -0
  128. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.d.ts +184 -0
  129. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.js +200 -0
  130. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.js.map +1 -0
  131. package/dist/cjs/pages/SunCancellationFlow/index.d.ts +1 -0
  132. package/dist/cjs/pages/SunCancellationFlow/index.js +18 -0
  133. package/dist/cjs/pages/SunCancellationFlow/index.js.map +1 -0
  134. package/dist/cjs/pages/UserHub/UserHubContext.js +64 -20
  135. package/dist/cjs/pages/UserHub/UserHubContext.js.map +1 -1
  136. package/dist/cjs/pages/types.d.ts +12 -0
  137. package/dist/cjs/providers/index.d.ts +1 -0
  138. package/dist/cjs/providers/index.js +1 -0
  139. package/dist/cjs/providers/index.js.map +1 -1
  140. package/dist/cjs/providers/sunCancellationProvider.d.ts +1 -0
  141. package/dist/cjs/providers/sunCancellationProvider.js +6 -0
  142. package/dist/cjs/providers/sunCancellationProvider.js.map +1 -0
  143. package/dist/cjs/queries/getContractPhases.d.ts +1 -0
  144. package/dist/cjs/queries/getContractPhases.js +11 -0
  145. package/dist/cjs/queries/getContractPhases.js.map +1 -0
  146. package/dist/cjs/queries/getPropositionFeatures.d.ts +1 -0
  147. package/dist/cjs/queries/getPropositionFeatures.js +11 -0
  148. package/dist/cjs/queries/getPropositionFeatures.js.map +1 -0
  149. package/dist/cjs/queries/getUserNewsletters.js +1 -1
  150. package/dist/cjs/queries/getUserNewsletters.js.map +1 -1
  151. package/dist/cjs/queries/getUserSubscription.js +3 -1
  152. package/dist/cjs/queries/getUserSubscription.js.map +1 -1
  153. package/dist/cjs/queries/getUserWithNewsletters.js +4 -1
  154. package/dist/cjs/queries/getUserWithNewsletters.js.map +1 -1
  155. package/dist/cjs/queries/index.d.ts +1 -0
  156. package/dist/cjs/queries/index.js +1 -0
  157. package/dist/cjs/queries/index.js.map +1 -1
  158. package/dist/cjs/queries/mutateCancelSubscriptionV2.d.ts +2 -0
  159. package/dist/cjs/queries/mutateCancelSubscriptionV2.js +11 -0
  160. package/dist/cjs/queries/mutateCancelSubscriptionV2.js.map +1 -0
  161. package/dist/cjs/queries/mutateCancellation.js +1 -1
  162. package/dist/cjs/queries/mutateCancellation.js.map +1 -1
  163. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.d.ts +6 -0
  164. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js +59 -0
  165. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js.map +1 -0
  166. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.d.ts +1 -0
  167. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.js +2 -0
  168. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.js.map +1 -0
  169. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.d.ts +13 -0
  170. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.js +29 -0
  171. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.js.map +1 -0
  172. package/dist/esm/Components/Elements/CancellationPolicy/index.d.ts +1 -0
  173. package/dist/esm/Components/Elements/CancellationPolicy/index.js +2 -0
  174. package/dist/esm/Components/Elements/CancellationPolicy/index.js.map +1 -0
  175. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.d.ts +19 -0
  176. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js +35 -0
  177. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js.map +1 -0
  178. package/dist/esm/Components/Elements/CancellationReasonSelector/index.d.ts +1 -0
  179. package/dist/esm/Components/Elements/CancellationReasonSelector/index.js +2 -0
  180. package/dist/esm/Components/Elements/CancellationReasonSelector/index.js.map +1 -0
  181. package/dist/esm/Components/Elements/OfferGroup/Offer.d.ts +2 -0
  182. package/dist/esm/Components/Elements/OfferGroup/Offer.js +22 -0
  183. package/dist/esm/Components/Elements/OfferGroup/Offer.js.map +1 -0
  184. package/dist/esm/Components/Elements/OfferGroup/OfferBody.d.ts +2 -0
  185. package/dist/esm/Components/Elements/OfferGroup/OfferBody.js +22 -0
  186. package/dist/esm/Components/Elements/OfferGroup/OfferBody.js.map +1 -0
  187. package/dist/esm/Components/Elements/OfferGroup/OfferGroup.d.ts +2 -0
  188. package/dist/esm/Components/Elements/OfferGroup/OfferGroup.js +19 -0
  189. package/dist/esm/Components/Elements/OfferGroup/OfferGroup.js.map +1 -0
  190. package/dist/esm/Components/Elements/OfferGroup/index.d.ts +4 -0
  191. package/dist/esm/Components/Elements/OfferGroup/index.js +5 -0
  192. package/dist/esm/Components/Elements/OfferGroup/index.js.map +1 -0
  193. package/dist/esm/Components/Elements/OfferGroup/styled.d.ts +6 -0
  194. package/dist/esm/Components/Elements/OfferGroup/styled.js +14 -0
  195. package/dist/esm/Components/Elements/OfferGroup/styled.js.map +1 -0
  196. package/dist/esm/Components/Elements/OfferGroup/types.d.ts +29 -0
  197. package/dist/esm/Components/Elements/OfferGroup/types.js +2 -0
  198. package/dist/esm/Components/Elements/OfferGroup/types.js.map +1 -0
  199. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js +3 -2
  200. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js.map +1 -1
  201. package/dist/esm/Components/Elements/SectionListItem/types.d.ts +2 -0
  202. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  203. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js +9 -48
  204. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  205. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.js +1 -1
  206. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.js.map +1 -1
  207. package/dist/esm/Components/Sections/CancellationOffers/CancellationOffers.d.ts +2 -0
  208. package/dist/esm/Components/Sections/CancellationOffers/CancellationOffers.js +51 -0
  209. package/dist/esm/Components/Sections/CancellationOffers/CancellationOffers.js.map +1 -0
  210. package/dist/esm/Components/Sections/CancellationOffers/index.d.ts +2 -0
  211. package/dist/esm/Components/Sections/CancellationOffers/index.js +3 -0
  212. package/dist/esm/Components/Sections/CancellationOffers/index.js.map +1 -0
  213. package/dist/esm/Components/Sections/CancellationOffers/types.d.ts +33 -0
  214. package/dist/esm/Components/Sections/CancellationOffers/types.js +2 -0
  215. package/dist/esm/Components/Sections/CancellationOffers/types.js.map +1 -0
  216. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js +2 -2
  217. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  218. package/dist/esm/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  219. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js +99 -56
  220. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  221. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  222. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js +37 -0
  223. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  224. package/dist/esm/Components/Sections/ContentContainer/types.d.ts +4 -3
  225. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js +2 -2
  226. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  227. package/dist/esm/Components/Sections/SectionContainer/types.d.ts +2 -2
  228. package/dist/esm/Components/Sections/UserHub/BaseSection.d.ts +3 -0
  229. package/dist/esm/Components/Sections/UserHub/BaseSection.js +1 -1
  230. package/dist/esm/Components/Sections/UserHub/BaseSection.js.map +1 -1
  231. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js +12 -15
  232. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  233. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.d.ts +6 -0
  234. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.js +64 -0
  235. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.js.map +1 -0
  236. package/dist/esm/Components/Templates/CancellationStepperRender.d.ts +2 -0
  237. package/dist/esm/Components/Templates/CancellationStepperRender.js +8 -4
  238. package/dist/esm/Components/Templates/CancellationStepperRender.js.map +1 -1
  239. package/dist/esm/Components/Templates/DisplayRenderer.js +1 -1
  240. package/dist/esm/Components/Templates/DisplayRenderer.js.map +1 -1
  241. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js +2 -2
  242. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  243. package/dist/esm/Components/Templates/SunCancellationFlowRender.d.ts +3 -0
  244. package/dist/esm/Components/Templates/SunCancellationFlowRender.js +78 -0
  245. package/dist/esm/Components/Templates/SunCancellationFlowRender.js.map +1 -0
  246. package/dist/esm/Components/Templates/UserHubRender.js +3 -1
  247. package/dist/esm/Components/Templates/UserHubRender.js.map +1 -1
  248. package/dist/esm/api/mutateHandlerHelpers.js +4 -4
  249. package/dist/esm/api/mutateHandlerHelpers.js.map +1 -1
  250. package/dist/esm/context/index.d.ts +3 -2
  251. package/dist/esm/context/index.js +1 -0
  252. package/dist/esm/context/index.js.map +1 -1
  253. package/dist/esm/context/types.d.ts +20 -11
  254. package/dist/esm/context/types.js +1 -0
  255. package/dist/esm/context/types.js.map +1 -1
  256. package/dist/esm/helpers/apiHandlerUtils.js +10 -2
  257. package/dist/esm/helpers/apiHandlerUtils.js.map +1 -1
  258. package/dist/esm/helpers/cancellationUtils.d.ts +1 -1
  259. package/dist/esm/helpers/cancellationUtils.js +3 -3
  260. package/dist/esm/helpers/cancellationUtils.js.map +1 -1
  261. package/dist/esm/helpers/dataUtils.d.ts +2 -2
  262. package/dist/esm/helpers/dataUtils.js +11 -6
  263. package/dist/esm/helpers/dataUtils.js.map +1 -1
  264. package/dist/esm/helpers/featureFlagUtils.js +1 -1
  265. package/dist/esm/helpers/featureFlagUtils.js.map +1 -1
  266. package/dist/esm/helpers/holidayStopsUtils.js +2 -2
  267. package/dist/esm/helpers/holidayStopsUtils.js.map +1 -1
  268. package/dist/esm/hooks/index.d.ts +1 -0
  269. package/dist/esm/hooks/index.js +1 -0
  270. package/dist/esm/hooks/index.js.map +1 -1
  271. package/dist/esm/hooks/useCancelSubscriptionModal.d.ts +6 -0
  272. package/dist/esm/hooks/useCancelSubscriptionModal.js +27 -0
  273. package/dist/esm/hooks/useCancelSubscriptionModal.js.map +1 -0
  274. package/dist/esm/index.d.ts +3 -1
  275. package/dist/esm/index.js +1 -0
  276. package/dist/esm/index.js.map +1 -1
  277. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js +191 -15
  278. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  279. package/dist/esm/pages/HolidayStop/HolidayStopContext.js +1 -1
  280. package/dist/esm/pages/HolidayStop/HolidayStopContext.js.map +1 -1
  281. package/dist/esm/pages/HolidayStopList/HolidayStopListContext.js +1 -1
  282. package/dist/esm/pages/HolidayStopList/HolidayStopListContext.js.map +1 -1
  283. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +13 -0
  284. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -1
  285. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +45 -0
  286. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  287. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.d.ts +7 -0
  288. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.js +27 -0
  289. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.js.map +1 -0
  290. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.d.ts +184 -0
  291. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.js +197 -0
  292. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.js.map +1 -0
  293. package/dist/esm/pages/SunCancellationFlow/index.d.ts +1 -0
  294. package/dist/esm/pages/SunCancellationFlow/index.js +2 -0
  295. package/dist/esm/pages/SunCancellationFlow/index.js.map +1 -0
  296. package/dist/esm/pages/UserHub/UserHubContext.js +64 -20
  297. package/dist/esm/pages/UserHub/UserHubContext.js.map +1 -1
  298. package/dist/esm/pages/types.d.ts +12 -0
  299. package/dist/esm/providers/index.d.ts +1 -0
  300. package/dist/esm/providers/index.js +1 -0
  301. package/dist/esm/providers/index.js.map +1 -1
  302. package/dist/esm/providers/sunCancellationProvider.d.ts +1 -0
  303. package/dist/esm/providers/sunCancellationProvider.js +2 -0
  304. package/dist/esm/providers/sunCancellationProvider.js.map +1 -0
  305. package/dist/esm/queries/getContractPhases.d.ts +1 -0
  306. package/dist/esm/queries/getContractPhases.js +8 -0
  307. package/dist/esm/queries/getContractPhases.js.map +1 -0
  308. package/dist/esm/queries/getPropositionFeatures.d.ts +1 -0
  309. package/dist/esm/queries/getPropositionFeatures.js +8 -0
  310. package/dist/esm/queries/getPropositionFeatures.js.map +1 -0
  311. package/dist/esm/queries/getUserNewsletters.js +1 -1
  312. package/dist/esm/queries/getUserNewsletters.js.map +1 -1
  313. package/dist/esm/queries/getUserSubscription.js +3 -1
  314. package/dist/esm/queries/getUserSubscription.js.map +1 -1
  315. package/dist/esm/queries/getUserWithNewsletters.js +4 -1
  316. package/dist/esm/queries/getUserWithNewsletters.js.map +1 -1
  317. package/dist/esm/queries/index.d.ts +1 -0
  318. package/dist/esm/queries/index.js +1 -0
  319. package/dist/esm/queries/index.js.map +1 -1
  320. package/dist/esm/queries/mutateCancelSubscriptionV2.d.ts +2 -0
  321. package/dist/esm/queries/mutateCancelSubscriptionV2.js +8 -0
  322. package/dist/esm/queries/mutateCancelSubscriptionV2.js.map +1 -0
  323. package/dist/esm/queries/mutateCancellation.js +1 -1
  324. package/dist/esm/queries/mutateCancellation.js.map +1 -1
  325. package/package.json +6 -6
  326. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  327. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
  328. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  329. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js +0 -40
  330. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
@@ -13,11 +13,11 @@ var __assign = (this && this.__assign) || function () {
13
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
+ var _a;
16
17
  Object.defineProperty(exports, "__esModule", { value: true });
17
18
  exports.userHubContext = void 0;
18
19
  var react_1 = __importDefault(require("react"));
19
20
  var newskit_1 = require("newskit");
20
- var types_1 = require("../../context/types");
21
21
  var context_1 = require("../../context");
22
22
  var ChevronRight_1 = require("@emotion-icons/material/ChevronRight");
23
23
  var CreditCard_1 = require("@emotion-icons/material/CreditCard");
@@ -27,12 +27,15 @@ var Launch_1 = require("@emotion-icons/material/Launch");
27
27
  var HelpOutline_1 = require("@emotion-icons/material/HelpOutline");
28
28
  var Newsletters_1 = require("../../pages/Newsletters");
29
29
  var shared_components_1 = require("@newskit-render/shared-components");
30
+ var ManageAccounts_1 = require("@emotion-icons/material-outlined/ManageAccounts");
31
+ var CancelSubscriptionSectionContext_1 = require("../SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext");
30
32
  var IconOutlinedLock = (0, newskit_1.toNewsKitIcon)(Lock_1.Lock);
31
33
  var IconFilledCreditCard = (0, newskit_1.toNewsKitIcon)(CreditCard_1.CreditCard);
32
34
  var IconFilledChevronRight = (0, newskit_1.toNewsKitIcon)(ChevronRight_1.ChevronRight);
33
35
  var IconChatBubbleOutline = (0, newskit_1.toNewsKitIcon)(ChatBubbleOutline_1.ChatBubbleOutline);
34
36
  var IconHelpOutline = (0, newskit_1.toNewsKitIcon)(HelpOutline_1.HelpOutline);
35
37
  var IconLaunch = (0, newskit_1.toNewsKitIcon)(Launch_1.Launch);
38
+ var IconManageAccounts = (0, newskit_1.toNewsKitIcon)(ManageAccounts_1.ManageAccounts);
36
39
  var pageName = 'homepage';
37
40
  exports.userHubContext = {
38
41
  sections: {
@@ -103,6 +106,66 @@ exports.userHubContext = {
103
106
  },
104
107
  ],
105
108
  },
109
+ subscriptionDetails: {
110
+ showSection: false,
111
+ header: {
112
+ title: 'Subscription Details',
113
+ titleOverrides: {
114
+ marginBlockEnd: {
115
+ xs: 'space050',
116
+ },
117
+ typographyPreset: 'editorialHeadline030',
118
+ },
119
+ showDivider: false,
120
+ },
121
+ containerOverrides: {
122
+ rows: '1fr auto',
123
+ columns: '3fr 1fr',
124
+ justifyContent: 'space-between',
125
+ overrides: {
126
+ paddingBlock: 'space050',
127
+ paddingInline: 'space040',
128
+ minWidth: '100%',
129
+ },
130
+ },
131
+ benefits: {
132
+ showBenefits: false,
133
+ title: 'Subscriber benefits',
134
+ items: [
135
+ {
136
+ code: 'share',
137
+ title: 'Share articles',
138
+ description: 'Forward articles to friends and family for free',
139
+ icon: IconOutlinedLock,
140
+ },
141
+ {
142
+ code: 'save',
143
+ title: 'Save articles',
144
+ description: 'Save your favourite stories to read anytime',
145
+ link: {
146
+ href: 'https://www.thetimes.com/my-articles',
147
+ text: 'Review your saved articles',
148
+ },
149
+ icon: IconChatBubbleOutline,
150
+ },
151
+ ],
152
+ },
153
+ cancelSubscription: {
154
+ title: 'Cancel your subscription',
155
+ titleIcon: (react_1.default.createElement(IconManageAccounts, { overrides: {
156
+ size: 'iconSize020',
157
+ marginInlineEnd: 'space020',
158
+ } })),
159
+ linkIcon: (react_1.default.createElement(IconFilledChevronRight, { overrides: { size: 'iconSize020', stylePreset: 'inkBlack' } })),
160
+ eventContext: {
161
+ event_navigation_action: 'navigation',
162
+ event_navigation_name: 'subscription cancellation : cancel',
163
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
164
+ page_name: "".concat(pageName.toLocaleLowerCase()),
165
+ },
166
+ },
167
+ cancelSubscriptionModal: (_a = (0, CancelSubscriptionSectionContext_1.cancelSubscriptionSection)(pageName).props) === null || _a === void 0 ? void 0 : _a.modal,
168
+ },
106
169
  helpAndSupport: {
107
170
  dataTestId: 'help-and-support',
108
171
  layoutType: 'list',
@@ -206,25 +269,6 @@ exports.userHubContext = {
206
269
  newslettersListProps: __assign(__assign({ tealiumContext: {
207
270
  originator: 'link',
208
271
  context: { page_name: pageName },
209
- }, userHubNewslettersIds: {
210
- default: [
211
- types_1.NewsletterNameId.Books,
212
- types_1.NewsletterNameId.Fashion,
213
- types_1.NewsletterNameId.Politics,
214
- types_1.NewsletterNameId.TV,
215
- ],
216
- registered: [
217
- types_1.NewsletterNameId['Weekly Briefing'],
218
- types_1.NewsletterNameId.Parenting,
219
- types_1.NewsletterNameId.Luxury,
220
- types_1.NewsletterNameId.Property,
221
- ],
222
- full: [
223
- types_1.NewsletterNameId['Times+'],
224
- types_1.NewsletterNameId.Books,
225
- types_1.NewsletterNameId.Fashion,
226
- types_1.NewsletterNameId.Politics,
227
- ],
228
272
  } }, Newsletters_1.newslettersListContext), { cardOverrides: __assign(__assign({}, Newsletters_1.newslettersListContext.cardOverrides), { maxWidth: {
229
273
  xl: 'none',
230
274
  } }), gridLayoutOverrides: {
@@ -1 +1 @@
1
- {"version":3,"file":"UserHubContext.js","sourceRoot":"","sources":["../../../../src/pages/UserHub/UserHubContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,mCAAqD;AACrD,6CAA6E;AAC7E,yCAAkE;AAClE,qEAAyF;AACzF,iEAAmF;AACnF,8DAA4E;AAC5E,+EAA6E;AAC7E,yDAAuD;AACvD,mEAAiE;AACjE,uDAAgE;AAChE,uEAA4D;AAE5D,IAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,WAAY,CAAC,CAAA;AACpD,IAAM,oBAAoB,GAAG,IAAA,uBAAa,EAAC,uBAAgB,CAAC,CAAA;AAC5D,IAAM,sBAAsB,GAAG,IAAA,uBAAa,EAAC,2BAAkB,CAAC,CAAA;AAChE,IAAM,qBAAqB,GAAG,IAAA,uBAAa,EAAC,qCAAi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;qBACf;oBACD,SAAS,EAAE,MAAM;oBACjB,QAAQ,EAAE,KAAK;oBACf,MAAM,EAAE,MAAM;iBACf,GACF;SACF;QACD,OAAO,EAAE;YACP,kBAAkB,EAAE,KAAK;YACzB,UAAU,EAAE,sBAAsB;YAClC,MAAM,EAAE;gBACN,KAAK,EAAE,2BAA2B;gBAClC,cAAc,EAAE;oBACd,cAAc,EAAE;wBACd,EAAE,EAAE,UAAU;qBACf;oBACD,gBAAgB,EAAE,sBAAsB;iBACzC;aACF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,4HAA4H;aACnI;YACD,MAAM,EAAE;gBACN,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,6DAA6D;aACpE;SACF;KACF;IACD,MAAM,kBAAA;IACN,OAAO,mBAAA;IACP,iBAAiB,6BAAA;IACjB,mBAAmB,EAAE;QACnB,OAAO,EAAE,2BAA2B;QACpC,KAAK,EACH,2FAA2F;QAC7F,OAAO,EAAE,iCAAiC;KAC3C;CACF,CAAA"}
1
+ {"version":3,"file":"UserHubContext.js","sourceRoot":"","sources":["../../../../src/pages/UserHub/UserHubContext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,mCAAqD;AAErD,yCAAkE;AAClE,qEAAyF;AACzF,iEAAmF;AACnF,8DAA4E;AAC5E,+EAA6E;AAC7E,yDAAuD;AACvD,mEAAiE;AACjE,uDAAgE;AAChE,uEAA4D;AAC5D,kFAAgF;AAChF,wHAA+G;AAG/G,IAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,WAAY,CAAC,CAAA;AACpD,IAAM,oBAAoB,GAAG,IAAA,uBAAa,EAAC,uBAAgB,CAAC,CAAA;AAC5D,IAAM,sBAAsB,GAAG,IAAA,uBAAa,EAAC,2BAAkB,CAAC,CAAA;AAChE,IAAM,qBAAqB,GAAG,IAAA,uBAAa,EAAC,qCAAiB,CAAC,CAAA;AAC9D,IAAM,eAAe,GAAG,IAAA,uBAAa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ACd,EAAE,EAAE,UAAU;qBACf;oBACD,gBAAgB,EAAE,sBAAsB;iBACzC;aACF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,4HAA4H;aACnI;YACD,MAAM,EAAE;gBACN,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,6DAA6D;aACpE;SACF;KACF;IACD,MAAM,kBAAA;IACN,OAAO,mBAAA;IACP,iBAAiB,6BAAA;IACjB,mBAAmB,EAAE;QACnB,OAAO,EAAE,2BAA2B;QACpC,KAAK,EACH,2FAA2F;QAC7F,OAAO,EAAE,iCAAiC;KAC3C;CACF,CAAA"}
@@ -145,6 +145,8 @@ export interface NewsletterDetails {
145
145
  customerId: string;
146
146
  isSubscribed: boolean;
147
147
  imageUrl: string;
148
+ landingPage: boolean;
149
+ landingPageDisplayOrder: number;
148
150
  featured: boolean;
149
151
  displayOrder: number;
150
152
  }
@@ -237,6 +239,16 @@ export interface UserData {
237
239
  invoiceHistory?: InvoiceHistory;
238
240
  entitlements?: UserEntitlements[];
239
241
  userCapabilities?: UserCapabilitiesDecisions;
242
+ customerNotifications?: CustomerNotification[];
243
+ }
244
+ export interface CustomerNotification {
245
+ type: string;
246
+ notifications: Notification[];
247
+ }
248
+ export interface Notification {
249
+ name: string;
250
+ lastModifiedDate: string;
251
+ downloadLink: string;
240
252
  }
241
253
  export type UserEntitlements = 'The Times Metered Access with 3 Articles a Month' | 'The Times Session Monitoring Feature' | 'The Times Site Product' | 'The Times Apple Podcast Product' | 'Email Bulletins Product' | 'The Sunday Times iPhone app product' | 'The Sunday Times Site Product ONLY' | 'The Times Group Account Feature' | 'The Sunday Times Mobi Product' | 'The Sunday Times iPad app product' | 'e-paper Product' | 'Daily Crossword Product' | 'saving' | 'The Sunday Times Site Product' | 'Sharing' | 'The Times Mobi Product' | 'The Times iPad app Product' | 'Digital Subscription Product' | 'commenting' | 'The Times iPhone app product' | 'Times+ membership benefits Product' | 'The Times Site Product ONLY' | 'Times Literary Supplement Digital Free' | 'The Times Metered Access 30 Articles Per Month' | 'Times Sports App' | 'The Times EPL Video Product';
242
254
  export type EntitlementsMap = {
@@ -8,6 +8,7 @@ export * from './personalDetailsProvider';
8
8
  export * from './paymentProvider';
9
9
  export * from './stepUpMfaProvider';
10
10
  export * from './subscriptionAndBillingProvider';
11
+ export * from './sunCancellationProvider';
11
12
  export * from './userPaymentInfoProvider';
12
13
  export * from './userNewslettersListProvider';
13
14
  export * from './types';
@@ -24,6 +24,7 @@ __exportStar(require("./personalDetailsProvider"), exports);
24
24
  __exportStar(require("./paymentProvider"), exports);
25
25
  __exportStar(require("./stepUpMfaProvider"), exports);
26
26
  __exportStar(require("./subscriptionAndBillingProvider"), exports);
27
+ __exportStar(require("./sunCancellationProvider"), exports);
27
28
  __exportStar(require("./userPaymentInfoProvider"), exports);
28
29
  __exportStar(require("./userNewslettersListProvider"), exports);
29
30
  __exportStar(require("./types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,kDAA+B;AAC/B,yDAAsC;AACtC,iEAA8C;AAC9C,2DAAwC;AACxC,oDAAiC;AACjC,4DAAyC;AACzC,oDAAiC;AACjC,sDAAmC;AACnC,mEAAgD;AAChD,4DAAyC;AACzC,gEAA6C;AAC7C,0CAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,kDAA+B;AAC/B,yDAAsC;AACtC,iEAA8C;AAC9C,2DAAwC;AACxC,oDAAiC;AACjC,4DAAyC;AACzC,oDAAiC;AACjC,sDAAmC;AACnC,mEAAgD;AAChD,4DAAyC;AACzC,4DAAyC;AACzC,gEAA6C;AAC7C,0CAAuB"}
@@ -0,0 +1 @@
1
+ export declare const sunCancellationProvider: () => Promise<void>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sunCancellationProvider = void 0;
4
+ var sunCancellationProvider = function () { return Promise.resolve(); };
5
+ exports.sunCancellationProvider = sunCancellationProvider;
6
+ //# sourceMappingURL=sunCancellationProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sunCancellationProvider.js","sourceRoot":"","sources":["../../../src/providers/sunCancellationProvider.ts"],"names":[],"mappings":";;;AAAO,IAAM,uBAAuB,GAAG,cAAM,OAAA,OAAO,CAAC,OAAO,EAAE,EAAjB,CAAiB,CAAA;AAAjD,QAAA,uBAAuB,2BAA0B"}
@@ -0,0 +1 @@
1
+ export declare const contractPhasesFragment: import("@apollo/client").DocumentNode;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.contractPhasesFragment = void 0;
8
+ var client_1 = require("@apollo/client");
9
+ exports.contractPhasesFragment = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment contractPhasesFragment on Subscription {\n phases {\n type\n active\n currentPhase\n }\n }\n"], ["\n fragment contractPhasesFragment on Subscription {\n phases {\n type\n active\n currentPhase\n }\n }\n"])));
10
+ var templateObject_1;
11
+ //# sourceMappingURL=getContractPhases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContractPhases.js","sourceRoot":"","sources":["../../../src/queries/getContractPhases.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,sBAAsB,OAAG,YAAG,qMAAA,iIAQxC,KAAA"}
@@ -0,0 +1 @@
1
+ export declare const propositionFeaturesFragment: import("@apollo/client").DocumentNode;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.propositionFeaturesFragment = void 0;
8
+ var client_1 = require("@apollo/client");
9
+ exports.propositionFeaturesFragment = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment propositionFeaturesFragment on Proposition {\n features {\n code\n name\n displayLabel\n displayDescription\n displayPriority\n displayEnabled\n }\n }\n"], ["\n fragment propositionFeaturesFragment on Proposition {\n features {\n code\n name\n displayLabel\n displayDescription\n displayPriority\n displayEnabled\n }\n }\n"])));
10
+ var templateObject_1;
11
+ //# sourceMappingURL=getPropositionFeatures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPropositionFeatures.js","sourceRoot":"","sources":["../../../src/queries/getPropositionFeatures.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,2BAA2B,OAAG,YAAG,gRAAA,4MAW7C,KAAA"}
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.GET_USER_NEWSLETTERS = void 0;
8
8
  var client_1 = require("@apollo/client");
9
- exports.GET_USER_NEWSLETTERS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserNewsletters on User {\n newsletters {\n brand\n bulletinId\n bulletinText\n category\n code\n detailedText\n frequency\n frequencyDesc\n includesRA\n sfId\n thirdPartyId\n customerId\n isSubscribed\n imageUrl\n featured\n displayOrder\n }\n }\n"], ["\n fragment UserNewsletters on User {\n newsletters {\n brand\n bulletinId\n bulletinText\n category\n code\n detailedText\n frequency\n frequencyDesc\n includesRA\n sfId\n thirdPartyId\n customerId\n isSubscribed\n imageUrl\n featured\n displayOrder\n }\n }\n"])));
9
+ exports.GET_USER_NEWSLETTERS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserNewsletters on User {\n newsletters {\n brand\n bulletinId\n bulletinText\n category\n code\n detailedText\n frequency\n frequencyDesc\n includesRA\n sfId\n thirdPartyId\n customerId\n isSubscribed\n imageUrl\n landingPage\n landingPageDisplayOrder\n featured\n displayOrder\n }\n }\n"], ["\n fragment UserNewsletters on User {\n newsletters {\n brand\n bulletinId\n bulletinText\n category\n code\n detailedText\n frequency\n frequencyDesc\n includesRA\n sfId\n thirdPartyId\n customerId\n isSubscribed\n imageUrl\n landingPage\n landingPageDisplayOrder\n featured\n displayOrder\n }\n }\n"])));
10
10
  var templateObject_1;
11
11
  //# sourceMappingURL=getUserNewsletters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserNewsletters.js","sourceRoot":"","sources":["../../../src/queries/getUserNewsletters.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,oBAAoB,OAAG,YAAG,kaAAA,8VAqBtC,KAAA"}
1
+ {"version":3,"file":"getUserNewsletters.js","sourceRoot":"","sources":["../../../src/queries/getUserNewsletters.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,oBAAoB,OAAG,YAAG,odAAA,gZAuBtC,KAAA"}
@@ -8,6 +8,8 @@ exports.GET_USER_SUBSCRIPTION = void 0;
8
8
  var client_1 = require("@apollo/client");
9
9
  var getInvoiceHistory_1 = require("./getInvoiceHistory");
10
10
  var getUserIncentives_1 = require("./getUserIncentives");
11
- exports.GET_USER_SUBSCRIPTION = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n fragment UserSubscription on User {\n cpn\n address {\n line1\n line2\n line3\n city\n postcode\n county\n country {\n countryIsoCode\n name\n }\n }\n subscriptions {\n id\n startDate\n serviceCancellationDate\n isActive\n currency\n price\n type\n status\n isVoucher\n packName\n propositionCode\n propositionV2 {\n code\n features {\n code\n name\n displayLabel\n displayDescription\n displayPriority\n displayEnabled\n }\n }\n products {\n id\n packImageUrl\n }\n billingDetails {\n zipCode\n billCycleDay\n nextBillCycleDate\n nextBillAmount\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n bankTransferAccountNumberMask\n walletType\n paypalEmail\n }\n }\n deliveryInformation\n fulfilmentPeriodStartDate\n nextVoucherInsGenerationDate\n dtc\n phases {\n type\n active\n currentPhase\n }\n ...grantedIncentivesFragment\n }\n invoiceHistory(page: 1, pageSize: 12) {\n ...invoiceHistoryFields\n }\n }\n"], ["\n ", "\n ", "\n fragment UserSubscription on User {\n cpn\n address {\n line1\n line2\n line3\n city\n postcode\n county\n country {\n countryIsoCode\n name\n }\n }\n subscriptions {\n id\n startDate\n serviceCancellationDate\n isActive\n currency\n price\n type\n status\n isVoucher\n packName\n propositionCode\n propositionV2 {\n code\n features {\n code\n name\n displayLabel\n displayDescription\n displayPriority\n displayEnabled\n }\n }\n products {\n id\n packImageUrl\n }\n billingDetails {\n zipCode\n billCycleDay\n nextBillCycleDate\n nextBillAmount\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n bankTransferAccountNumberMask\n walletType\n paypalEmail\n }\n }\n deliveryInformation\n fulfilmentPeriodStartDate\n nextVoucherInsGenerationDate\n dtc\n phases {\n type\n active\n currentPhase\n }\n ...grantedIncentivesFragment\n }\n invoiceHistory(page: 1, pageSize: 12) {\n ...invoiceHistoryFields\n }\n }\n"])), getInvoiceHistory_1.invoiceHistoryFields, getUserIncentives_1.grantedIncentivesFragment);
11
+ var getContractPhases_1 = require("./getContractPhases");
12
+ var getPropositionFeatures_1 = require("./getPropositionFeatures");
13
+ exports.GET_USER_SUBSCRIPTION = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n fragment UserSubscription on User {\n cpn\n address {\n line1\n line2\n line3\n city\n postcode\n county\n country {\n countryIsoCode\n name\n }\n }\n subscriptions {\n id\n startDate\n serviceCancellationDate\n isActive\n currency\n price\n type\n status\n isVoucher\n packName\n propositionCode\n propositionV2 {\n code\n ...propositionFeaturesFragment\n }\n products {\n id\n packImageUrl\n }\n billingDetails {\n zipCode\n billCycleDay\n nextBillCycleDate\n nextBillAmount\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n bankTransferAccountNumberMask\n walletType\n paypalEmail\n }\n }\n deliveryInformation\n fulfilmentPeriodStartDate\n nextVoucherInsGenerationDate\n dtc\n ...contractPhasesFragment\n ...grantedIncentivesFragment\n }\n invoiceHistory(page: 1, pageSize: 12) {\n ...invoiceHistoryFields\n }\n customerNotifications {\n type\n notifications {\n name\n lastModifiedDate\n downloadLink\n }\n }\n }\n"], ["\n ", "\n ", "\n ", "\n ", "\n fragment UserSubscription on User {\n cpn\n address {\n line1\n line2\n line3\n city\n postcode\n county\n country {\n countryIsoCode\n name\n }\n }\n subscriptions {\n id\n startDate\n serviceCancellationDate\n isActive\n currency\n price\n type\n status\n isVoucher\n packName\n propositionCode\n propositionV2 {\n code\n ...propositionFeaturesFragment\n }\n products {\n id\n packImageUrl\n }\n billingDetails {\n zipCode\n billCycleDay\n nextBillCycleDate\n nextBillAmount\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n bankTransferAccountNumberMask\n walletType\n paypalEmail\n }\n }\n deliveryInformation\n fulfilmentPeriodStartDate\n nextVoucherInsGenerationDate\n dtc\n ...contractPhasesFragment\n ...grantedIncentivesFragment\n }\n invoiceHistory(page: 1, pageSize: 12) {\n ...invoiceHistoryFields\n }\n customerNotifications {\n type\n notifications {\n name\n lastModifiedDate\n downloadLink\n }\n }\n }\n"])), getInvoiceHistory_1.invoiceHistoryFields, getUserIncentives_1.grantedIncentivesFragment, getContractPhases_1.contractPhasesFragment, getPropositionFeatures_1.propositionFeaturesFragment);
12
14
  var templateObject_1;
13
15
  //# sourceMappingURL=getUserSubscription.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserSubscription.js","sourceRoot":"","sources":["../../../src/queries/getUserSubscription.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AACpC,yDAA0D;AAC1D,yDAA+D;AAElD,QAAA,qBAAqB,OAAG,YAAG,i7CAAA,MACpC,EAAoB,MACpB,EAAyB,61CAyE5B,KA1EG,wCAAoB,EACpB,6CAAyB,EAyE5B"}
1
+ {"version":3,"file":"getUserSubscription.js","sourceRoot":"","sources":["../../../src/queries/getUserSubscription.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AACpC,yDAA0D;AAC1D,yDAA+D;AAC/D,yDAA4D;AAC5D,mEAAsE;AAEzD,QAAA,qBAAqB,OAAG,YAAG,i6CAAA,MACpC,EAAoB,MACpB,EAAyB,MACzB,EAAsB,MACtB,EAA2B,6zCAsE9B,KAzEG,wCAAoB,EACpB,6CAAyB,EACzB,0CAAsB,EACtB,oDAA2B,EAsE9B"}
@@ -8,6 +8,9 @@ exports.GET_USER_WITH_NEWSLETTERS = void 0;
8
8
  var client_1 = require("@apollo/client");
9
9
  var getUserNewsletters_1 = require("./getUserNewsletters");
10
10
  var getUserEntitlements_1 = require("./getUserEntitlements");
11
- exports.GET_USER_WITH_NEWSLETTERS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n fragment UserWithNewsletters on User {\n cpn\n subscriptions {\n isActive\n startDate\n type\n serviceCancellationDate\n status\n packName\n freeOfCharge\n isVoucher\n billingDetails {\n available\n paymentMethod {\n type\n }\n }\n }\n ...UserNewsletters\n ...UserEntitlements\n }\n"], ["\n ", "\n ", "\n fragment UserWithNewsletters on User {\n cpn\n subscriptions {\n isActive\n startDate\n type\n serviceCancellationDate\n status\n packName\n freeOfCharge\n isVoucher\n billingDetails {\n available\n paymentMethod {\n type\n }\n }\n }\n ...UserNewsletters\n ...UserEntitlements\n }\n"])), getUserNewsletters_1.GET_USER_NEWSLETTERS, getUserEntitlements_1.GET_USER_ENTITLEMENTS);
11
+ var getContractPhases_1 = require("./getContractPhases");
12
+ var getPropositionFeatures_1 = require("./getPropositionFeatures");
13
+ var getUserIncentives_1 = require("./getUserIncentives");
14
+ exports.GET_USER_WITH_NEWSLETTERS = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n ", "\n fragment UserWithNewsletters on User {\n cpn\n subscriptions {\n isActive\n startDate\n type\n serviceCancellationDate\n status\n packName\n freeOfCharge\n isVoucher\n price\n currency\n billingDetails {\n available\n paymentMethod {\n type\n }\n }\n propositionV2 {\n ...propositionFeaturesFragment\n }\n ...contractPhasesFragment\n ...grantedIncentivesFragment\n }\n ...UserNewsletters\n ...UserEntitlements\n }\n"], ["\n ", "\n ", "\n ", "\n ", "\n ", "\n fragment UserWithNewsletters on User {\n cpn\n subscriptions {\n isActive\n startDate\n type\n serviceCancellationDate\n status\n packName\n freeOfCharge\n isVoucher\n price\n currency\n billingDetails {\n available\n paymentMethod {\n type\n }\n }\n propositionV2 {\n ...propositionFeaturesFragment\n }\n ...contractPhasesFragment\n ...grantedIncentivesFragment\n }\n ...UserNewsletters\n ...UserEntitlements\n }\n"])), getUserNewsletters_1.GET_USER_NEWSLETTERS, getUserEntitlements_1.GET_USER_ENTITLEMENTS, getContractPhases_1.contractPhasesFragment, getPropositionFeatures_1.propositionFeaturesFragment, getUserIncentives_1.grantedIncentivesFragment);
12
15
  var templateObject_1;
13
16
  //# sourceMappingURL=getUserWithNewsletters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserWithNewsletters.js","sourceRoot":"","sources":["../../../src/queries/getUserWithNewsletters.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AACpC,2DAA2D;AAC3D,6DAA6D;AAEhD,QAAA,yBAAyB,OAAG,YAAG,odAAA,MACxC,EAAoB,MACpB,EAAqB,gYAsBxB,KAvBG,yCAAoB,EACpB,2CAAqB,EAsBxB"}
1
+ {"version":3,"file":"getUserWithNewsletters.js","sourceRoot":"","sources":["../../../src/queries/getUserWithNewsletters.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AACpC,2DAA2D;AAC3D,6DAA6D;AAC7D,yDAA4D;AAC5D,mEAAsE;AACtE,yDAA+D;AAElD,QAAA,yBAAyB,OAAG,YAAG,spBAAA,MACxC,EAAoB,MACpB,EAAqB,MACrB,EAAsB,MACtB,EAA2B,MAC3B,EAAyB,0iBA6B5B,KAjCG,yCAAoB,EACpB,2CAAqB,EACrB,0CAAsB,EACtB,oDAA2B,EAC3B,6CAAyB,EA6B5B"}
@@ -26,3 +26,4 @@ export * from './mutateSendFamilyMemberInvite';
26
26
  export * from './mutateSendFamilyMemberInviteV2';
27
27
  export * from './mutateUserBroadcasting';
28
28
  export * from './mutateCreateShareLink';
29
+ export * from './mutateCancelSubscriptionV2';
@@ -44,4 +44,5 @@ __exportStar(require("./mutateSendFamilyMemberInvite"), exports);
44
44
  __exportStar(require("./mutateSendFamilyMemberInviteV2"), exports);
45
45
  __exportStar(require("./mutateUserBroadcasting"), exports);
46
46
  __exportStar(require("./mutateCreateShareLink"), exports);
47
+ __exportStar(require("./mutateCancelSubscriptionV2"), exports);
47
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/queries/index.ts"],"names":[],"mappings":";AAAA,MAAM;;;;;;;;;;;;;;;;AAEN,yDAAsC;AACtC,wDAAqC;AACrC,iDAA8B;AAC9B,sDAAmC;AACnC,0DAAuC;AACvC,mDAAgC;AAChC,iEAA8C;AAC9C,uDAAoC;AACpC,uDAAoC;AACpC,mDAAgC;AAChC,wDAAqC;AACrC,yDAAsC;AAEtC,SAAS;AAET,uDAAoC;AACpC,4DAAyC;AACzC,+DAA4C;AAC5C,sDAAmC;AACnC,8DAA2C;AAC3C,wDAAqC;AACrC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,+CAA4B;AAC5B,wDAAqC;AACrC,mEAAgD;AAChD,iEAA8C;AAC9C,mEAAgD;AAChD,2DAAwC;AACxC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/queries/index.ts"],"names":[],"mappings":";AAAA,MAAM;;;;;;;;;;;;;;;;AAEN,yDAAsC;AACtC,wDAAqC;AACrC,iDAA8B;AAC9B,sDAAmC;AACnC,0DAAuC;AACvC,mDAAgC;AAChC,iEAA8C;AAC9C,uDAAoC;AACpC,uDAAoC;AACpC,mDAAgC;AAChC,wDAAqC;AACrC,yDAAsC;AAEtC,SAAS;AAET,uDAAoC;AACpC,4DAAyC;AACzC,+DAA4C;AAC5C,sDAAmC;AACnC,8DAA2C;AAC3C,wDAAqC;AACrC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,+CAA4B;AAC5B,wDAAqC;AACrC,mEAAgD;AAChD,iEAA8C;AAC9C,mEAAgD;AAChD,2DAAwC;AACxC,0DAAuC;AACvC,+DAA4C"}
@@ -0,0 +1,2 @@
1
+ import { DocumentNode } from '@apollo/client';
2
+ export declare const mutateCancelSubscriptionV2: DocumentNode;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.mutateCancelSubscriptionV2 = void 0;
8
+ var client_1 = require("@apollo/client");
9
+ exports.mutateCancelSubscriptionV2 = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($input: CancelSubscriptionV2Input!) {\n cancelSubscriptionV2(input: $input) {\n success\n errorMessage\n serviceCancellationDate\n }\n }\n"], ["\n mutation ($input: CancelSubscriptionV2Input!) {\n cancelSubscriptionV2(input: $input) {\n success\n errorMessage\n serviceCancellationDate\n }\n }\n"])));
10
+ var templateObject_1;
11
+ //# sourceMappingURL=mutateCancelSubscriptionV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutateCancelSubscriptionV2.js","sourceRoot":"","sources":["../../../src/queries/mutateCancelSubscriptionV2.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAErC,QAAA,0BAA0B,OAAiB,YAAG,oPAAA,gLAQ1D,KAAA"}
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.mutateCancellation = void 0;
8
8
  var client_1 = require("@apollo/client");
9
- exports.mutateCancellation = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($input: CancelSubscriptionInput!) {\n cancelSubscription(input: $input) {\n success\n message\n serviceCancellationDate\n }\n }\n"], ["\n mutation ($input: CancelSubscriptionInput!) {\n cancelSubscription(input: $input) {\n success\n message\n serviceCancellationDate\n }\n }\n"])));
9
+ exports.mutateCancellation = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($input: CancelSubscriptionInput!) {\n cancelSubscription(input: $input) {\n success\n message\n }\n }\n"], ["\n mutation ($input: CancelSubscriptionInput!) {\n cancelSubscription(input: $input) {\n success\n message\n }\n }\n"])));
10
10
  var templateObject_1;
11
11
  //# sourceMappingURL=mutateCancellation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutateCancellation.js","sourceRoot":"","sources":["../../../src/queries/mutateCancellation.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAErC,QAAA,kBAAkB,OAAiB,YAAG,2OAAA,uKAQlD,KAAA"}
1
+ {"version":3,"file":"mutateCancellation.js","sourceRoot":"","sources":["../../../src/queries/mutateCancellation.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAErC,QAAA,kBAAkB,OAAiB,YAAG,4MAAA,wIAOlD,KAAA"}
@@ -0,0 +1,6 @@
1
+ import { CancelSubscriptionProps } from '../../Sections/CancelSubscription';
2
+ export interface CancelSubscriptionModalProps extends Pick<CancelSubscriptionProps, 'modal' | 'featureFlags' | 'cpn' | 'subscriptions'> {
3
+ isOpen: boolean;
4
+ onDismissModal: () => void;
5
+ }
6
+ export declare const CancelSubscriptionModal: ({ isOpen, onDismissModal, modal, featureFlags, cpn, subscriptions, }: CancelSubscriptionModalProps) => JSX.Element;
@@ -0,0 +1,59 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ var __rest = (this && this.__rest) || function (s, e) {
17
+ var t = {};
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
+ t[p] = s[p];
20
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
+ t[p[i]] = s[p[i]];
24
+ }
25
+ return t;
26
+ };
27
+ import React from 'react';
28
+ import { Modal } from '@newskit-render/shared-components';
29
+ import { LayerOrganizer, styled, getColorCssFromTheme, StructuredList, } from 'newskit';
30
+ import { zIndexModal } from '../../Sections/LayoutContentContainer';
31
+ import { SectionListItem } from '../../Elements/SectionListItem';
32
+ import { ForwardButton } from '../../Elements/ForwardButton/ForwardButton';
33
+ import { CANCELLATION_EXPERIMENT } from '../../../constants';
34
+ var StyledStructuredList = styled(StructuredList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n li {\n border-top: 1px solid;\n ", "\n }\n\n li:last-child {\n border-bottom: ", ";\n ", ";\n }\n\n li:first-child {\n ", "\n }\n"], ["\n li {\n border-top: 1px solid;\n ", "\n }\n\n li:last-child {\n border-bottom: ", ";\n ", ";\n }\n\n li:first-child {\n ", "\n }\n"])), getColorCssFromTheme('borderColor', 'interface030'), function (_a) {
35
+ var featureFlags = _a.featureFlags;
36
+ return (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.enable_cancel_subscription.variationKey) ===
37
+ CANCELLATION_EXPERIMENT.VARIANT_1_ON
38
+ ? '1px solid'
39
+ : 'none';
40
+ }, getColorCssFromTheme('borderColor', 'interface030'), function (_a) {
41
+ var featureFlags = _a.featureFlags;
42
+ return (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.enable_cancel_subscription.variationKey) ===
43
+ CANCELLATION_EXPERIMENT.VARIANT_1_ON
44
+ ? ''
45
+ : 'border-top: none';
46
+ });
47
+ export var CancelSubscriptionModal = function (_a) {
48
+ var isOpen = _a.isOpen, onDismissModal = _a.onDismissModal, modal = _a.modal, featureFlags = _a.featureFlags, cpn = _a.cpn, subscriptions = _a.subscriptions;
49
+ var _b = modal || {}, content = _b.content, belowItemExtra = _b.belowItemExtra, modalProps = __rest(_b, ["content", "belowItemExtra"]);
50
+ return (React.createElement(LayerOrganizer, { zIndex: zIndexModal },
51
+ React.createElement(Modal, __assign({ open: isOpen, onDismiss: onDismissModal }, modalProps, { "data-testid": "cancel-subscription-modal" }),
52
+ (content === null || content === void 0 ? void 0 : content.items) && (React.createElement(StyledStructuredList, { featureFlags: featureFlags }, content === null || content === void 0 ? void 0 : content.items.map(function (_a) {
53
+ var href = _a.href, props = __rest(_a, ["href"]);
54
+ return (React.createElement(SectionListItem, __assign({ key: props.id }, props, { containerOverrides: content.itemContainerOverrides })));
55
+ }))),
56
+ React.createElement(ForwardButton, { label: "or", buttonOverrides: __assign({ stylePreset: 'buttonMinimalPrimary' }, belowItemExtra === null || belowItemExtra === void 0 ? void 0 : belowItemExtra.buttonOverrides), baseUrl: belowItemExtra === null || belowItemExtra === void 0 ? void 0 : belowItemExtra.baseUrl, eventContext: belowItemExtra === null || belowItemExtra === void 0 ? void 0 : belowItemExtra.eventContext, dataTestId: "continue-button", button: belowItemExtra === null || belowItemExtra === void 0 ? void 0 : belowItemExtra.button, userTrackingData: { cpn: cpn, subscriptions: subscriptions } }))));
57
+ };
58
+ var templateObject_1;
59
+ //# sourceMappingURL=CancelSubscriptionModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancelSubscriptionModal.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAA;AACzD,OAAO,EACL,cAAc,EACd,MAAM,EACN,oBAAoB,EACpB,cAAc,GACf,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAE1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAE5D,IAAM,oBAAoB,GAAG,MAAM,CAAC,cAAc,CAAC,8NAEjD,4CAGI,EAAmD,iDAIpC,EAIL,SACV,EAAmD,oCAInD,EAIsB,SAE3B,KAnBK,oBAAoB,CAAC,aAAa,EAAE,cAAc,CAAC,EAIpC,UAAC,EAAgB;QAAd,YAAY,kBAAA;IAC9B,OAAA,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,0BAA0B,CAAC,YAAY;QACrD,uBAAuB,CAAC,YAAY;QAClC,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,MAAM;AAHV,C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pC,OAAO,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO,EAChC,YAAY,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,EAC1C,UAAU,EAAC,iBAAiB,EAC5B,MAAM,EAAE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,MAAM,EAC9B,gBAAgB,EAAE,EAAE,GAAG,KAAA,EAAE,aAAa,eAAA,EAAE,GACxC,CACI,CACO,CAClB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './CancelSubscriptionModal';
@@ -0,0 +1,2 @@
1
+ export * from './CancelSubscriptionModal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/CancelSubscriptionModal/index.tsx"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface CancellationPolicyProps {
3
+ title?: string;
4
+ message?: string;
5
+ daysUntilBilling?: number;
6
+ overrides?: {
7
+ container?: Record<string, unknown>;
8
+ title?: Record<string, unknown>;
9
+ message?: Record<string, unknown>;
10
+ };
11
+ }
12
+ export declare const CancellationPolicy: React.FC<CancellationPolicyProps>;
13
+ export default CancellationPolicy;
@@ -0,0 +1,29 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from 'react';
13
+ import { TextBlock, InlineMessage, toNewsKitIcon } from 'newskit';
14
+ import { Info as FilledInfo } from '@emotion-icons/material/Info';
15
+ var IconFilledInfo = toNewsKitIcon(FilledInfo);
16
+ export var CancellationPolicy = function (_a) {
17
+ var _b = _a.title, title = _b === void 0 ? 'Cancellation Policy' : _b, message = _a.message, daysUntilBilling = _a.daysUntilBilling, overrides = _a.overrides;
18
+ var displayMessage = message ||
19
+ "You need to cancel 1 day before your billing date otherwise you will be charged for another month. Your next billing cycle is in ".concat(daysUntilBilling || 'X', " days.");
20
+ return (React.createElement(InlineMessage, { icon: React.createElement(IconFilledInfo, { overrides: { size: 'iconSize020' } }), overrides: __assign({ marginBlockStart: 'space040', content: {
21
+ message: {
22
+ typographyPreset: 'utilityBody010',
23
+ },
24
+ } }, overrides === null || overrides === void 0 ? void 0 : overrides.container) },
25
+ React.createElement(TextBlock, __assign({ typographyPreset: "utilityHeading010", stylePreset: "inkContrast", marginBlockEnd: "space010" }, overrides === null || overrides === void 0 ? void 0 : overrides.title), title),
26
+ React.createElement(TextBlock, __assign({ typographyPreset: "utilityBody010", stylePreset: "inkBase" }, overrides === null || overrides === void 0 ? void 0 : overrides.message), displayMessage)));
27
+ };
28
+ export default CancellationPolicy;
29
+ //# sourceMappingURL=CancellationPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancellationPolicy.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/CancellationPolicy/CancellationPolicy.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjE,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEjE,IAAM,cAAc,GAAG,aAAa,CAAC,UAAU,CAAC,CAAA;AAahD,MAAM,CAAC,IAAM,kBAAkB,GAAsC,UAAC,EAKrE;QAJC,aAA6B,EAA7B,KAAK,mBAAG,qBAAqB,KAAA,EAC7B,OAAO,aAAA,EACP,gBAAgB,sBAAA,EAChB,SAAS,eAAA;IAET,IAAM,cAAc,GAClB,OAAO;QACP,2IACE,gBAAgB,IAAI,GAAG,WACjB,CAAA;IAEV,OAAO,CACL,oBAAC,aAAa,IACZ,IAAI,EAAE,oBAAC,cAAc,IAAC,SAAS,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,GAAI,EAC5D,SAAS,aACP,gBAAgB,EAAE,UAAU,EAC5B,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,gBAAgB,EAAE,gBAAgB;iBACnC;aACF,IACE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS;QAGzB,oBAAC,SAAS,aACR,gBAAgB,EAAC,mBAAmB,EACpC,WAAW,EAAC,aAAa,EACzB,cAAc,EAAC,UAAU,IACrB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,GAEnB,KAAK,CACI;QACZ,oBAAC,SAAS,aACR,gBAAgB,EAAC,gBAAgB,EACjC,WAAW,EAAC,SAAS,IACjB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,GAErB,cAAc,CACL,CACE,CACjB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ export { CancellationPolicy, type CancellationPolicyProps, } from './CancellationPolicy';
@@ -0,0 +1,2 @@
1
+ export { CancellationPolicy, } from './CancellationPolicy';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/CancellationPolicy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAEnB,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface CancellationReason {
3
+ id: string;
4
+ label: string;
5
+ }
6
+ export interface CancellationReasonSelectorProps {
7
+ reasons: CancellationReason[];
8
+ selectedReasonId?: string;
9
+ onSelect: (reasonId: string) => void;
10
+ overrides?: {
11
+ container?: Record<string, unknown>;
12
+ radioButton?: {
13
+ size?: 'small' | 'medium' | 'large';
14
+ overrides?: Record<string, unknown>;
15
+ };
16
+ };
17
+ }
18
+ export declare const CancellationReasonSelector: React.FC<CancellationReasonSelectorProps>;
19
+ export default CancellationReasonSelector;
@@ -0,0 +1,35 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ import React from 'react';
17
+ import { RadioButton, RadioGroup, styled, getColorCssFromTheme, getSpacingCssFromTheme, } from 'newskit';
18
+ var StyledRadioGroup = styled(RadioGroup)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
19
+ var RadioContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n ", "\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n ", "\n ", "\n"], ["\n width: 100%;\n ", "\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n ", "\n ", "\n"])), getColorCssFromTheme('borderColor', 'interface030'), getSpacingCssFromTheme('padding', 'space040'), getSpacingCssFromTheme('marginBottom', 'space030'));
20
+ export var CancellationReasonSelector = function (_a) {
21
+ var reasons = _a.reasons, selectedReasonId = _a.selectedReasonId, onSelect = _a.onSelect, overrides = _a.overrides;
22
+ return (reasons === null || reasons === void 0 ? void 0 : reasons.length) ? (React.createElement(StyledRadioGroup, { name: "cancellation-reason-group", "data-testid": "cancellation-reason-group", value: selectedReasonId, onChange: function (event) { return onSelect(event.target.value); } }, reasons.map(function (reason) {
23
+ var _a, _b;
24
+ return (React.createElement(RadioContainer, { key: reason.id },
25
+ React.createElement(RadioButton, { overrides: __assign({ input: {
26
+ spaceInline: 'space030',
27
+ size: 'sizing045',
28
+ }, label: {
29
+ stylePreset: 'inkBase',
30
+ } }, (_a = overrides === null || overrides === void 0 ? void 0 : overrides.radioButton) === null || _a === void 0 ? void 0 : _a.overrides), name: reason.id, value: reason.id, size: ((_b = overrides === null || overrides === void 0 ? void 0 : overrides.radioButton) === null || _b === void 0 ? void 0 : _b.size) || 'medium', label: reason.label })));
31
+ }))) : null;
32
+ };
33
+ export default CancellationReasonSelector;
34
+ var templateObject_1, templateObject_2;
35
+ //# sourceMappingURL=CancellationReasonSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancellationReasonSelector.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,WAAW,EACX,UAAU,EACV,MAAM,EACN,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,SAAS,CAAA;AAEhB,IAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,uFAAA,oBAE1C,IAAA,CAAA;AAED,IAAM,cAAc,GAAG,MAAM,CAAC,GAAG,oLAAA,sBAE7B,EAAmD,2EAInD,EAA6C,MAC7C,EAAkD,IACrD,KANG,oBAAoB,CAAC,aAAa,EAAE,cAAc,CAAC,EAInD,sBAAsB,CAAC,SAAS,EAAE,UAAU,CAAC,EAC7C,sBAAsB,CAAC,cAAc,EAAE,UAAU,CAAC,CACrD,CAAA;AAoBD,MAAM,CAAC,IAAM,0BAA0B,GAEnC,UAAC,EAAkD;QAAhD,OAAO,aAAA,EAAE,gBAAgB,sBAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA;IACnD,OAAA,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAC,CAAC,CAAC,CAChB,oBAAC,gBAAgB,IACf,IAAI,EAAC,2BAA2B,iBACpB,2BAA2B,EACvC,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAA5B,CAA4B,IAEhD,OAAO,CAAC,GAAG,CAAC,UAAC,MAAM;;QAAK,OAAA,CACvB,oBAAC,cAAc,IAAC,GAAG,EAAE,MAAM,CAAC,EAAE;YAC5B,oBAAC,WAAW,IACV,SAAS,aACP,KAAK,EAAE;wBACL,WAAW,EAAE,UAAU;wBACvB,IAAI,EAAE,WAAW;qBAClB,EACD,KAAK,EAAE;wBACL,WAAW,EAAE,SAAS;qBACvB,IACE,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,SAAS,GAEtC,IAAI,EAAE,MAAM,CAAC,EAAE,EACf,KAAK,EAAE,MAAM,CAAC,EAAE,EAChB,IAAI,EAAE,CAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,IAAI,KAAI,QAAQ,EAC9C,KAAK,EAAE,MAAM,CAAC,KAAK,GACnB,CACa,CAClB,CAAA;KAAA,CAAC,CACe,CACpB,CAAC,CAAC,CAAC,IAAI;AA5BR,CA4BQ,CAAA;AAEV,eAAe,0BAA0B,CAAA"}
@@ -0,0 +1 @@
1
+ export { CancellationReasonSelector, type CancellationReasonSelectorProps, type CancellationReason, } from './CancellationReasonSelector';