@newskit-render/my-account 7.139.0 → 7.139.1-43b4feaec.21

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 (350) 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/HolidayStop/HolidayStop.js +3 -1
  64. package/dist/cjs/Components/Sections/Form/HolidayStop/HolidayStop.js.map +1 -1
  65. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js +1 -1
  66. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  67. package/dist/cjs/Components/Sections/SectionContainer/types.d.ts +2 -2
  68. package/dist/cjs/Components/Sections/UserHub/BaseSection.d.ts +3 -0
  69. package/dist/cjs/Components/Sections/UserHub/BaseSection.js +3 -3
  70. package/dist/cjs/Components/Sections/UserHub/BaseSection.js.map +1 -1
  71. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js +12 -15
  72. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  73. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.d.ts +6 -0
  74. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.js +71 -0
  75. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.js.map +1 -0
  76. package/dist/cjs/Components/Templates/CancellationStepperRender.d.ts +2 -0
  77. package/dist/cjs/Components/Templates/CancellationStepperRender.js +8 -4
  78. package/dist/cjs/Components/Templates/CancellationStepperRender.js.map +1 -1
  79. package/dist/cjs/Components/Templates/DisplayRenderer.js +1 -1
  80. package/dist/cjs/Components/Templates/DisplayRenderer.js.map +1 -1
  81. package/dist/cjs/Components/Templates/HolidayStopRender.js +4 -7
  82. package/dist/cjs/Components/Templates/HolidayStopRender.js.map +1 -1
  83. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js +9 -1
  84. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  85. package/dist/cjs/Components/Templates/SunCancellationFlowRender.d.ts +3 -0
  86. package/dist/cjs/Components/Templates/SunCancellationFlowRender.js +103 -0
  87. package/dist/cjs/Components/Templates/SunCancellationFlowRender.js.map +1 -0
  88. package/dist/cjs/Components/Templates/UserHubRender.js +3 -1
  89. package/dist/cjs/Components/Templates/UserHubRender.js.map +1 -1
  90. package/dist/cjs/api/mutateHandlerHelpers.js +4 -4
  91. package/dist/cjs/api/mutateHandlerHelpers.js.map +1 -1
  92. package/dist/cjs/context/index.d.ts +3 -2
  93. package/dist/cjs/context/index.js +1 -0
  94. package/dist/cjs/context/index.js.map +1 -1
  95. package/dist/cjs/context/types.d.ts +21 -22
  96. package/dist/cjs/context/types.js +1 -0
  97. package/dist/cjs/context/types.js.map +1 -1
  98. package/dist/cjs/helpers/apiHandlerUtils.js +9 -1
  99. package/dist/cjs/helpers/apiHandlerUtils.js.map +1 -1
  100. package/dist/cjs/helpers/cancellationUtils.d.ts +1 -1
  101. package/dist/cjs/helpers/cancellationUtils.js +5 -4
  102. package/dist/cjs/helpers/cancellationUtils.js.map +1 -1
  103. package/dist/cjs/helpers/dataUtils.d.ts +2 -2
  104. package/dist/cjs/helpers/dataUtils.js +16 -11
  105. package/dist/cjs/helpers/dataUtils.js.map +1 -1
  106. package/dist/cjs/helpers/dateUtils.d.ts +0 -1
  107. package/dist/cjs/helpers/dateUtils.js +1 -8
  108. package/dist/cjs/helpers/dateUtils.js.map +1 -1
  109. package/dist/cjs/helpers/featureFlagUtils.js +1 -1
  110. package/dist/cjs/helpers/featureFlagUtils.js.map +1 -1
  111. package/dist/cjs/helpers/holidayStopsUtils.d.ts +4 -0
  112. package/dist/cjs/helpers/holidayStopsUtils.js +40 -13
  113. package/dist/cjs/helpers/holidayStopsUtils.js.map +1 -1
  114. package/dist/cjs/hooks/index.d.ts +1 -0
  115. package/dist/cjs/hooks/index.js +1 -0
  116. package/dist/cjs/hooks/index.js.map +1 -1
  117. package/dist/cjs/hooks/useCancelSubscriptionModal.d.ts +6 -0
  118. package/dist/cjs/hooks/useCancelSubscriptionModal.js +31 -0
  119. package/dist/cjs/hooks/useCancelSubscriptionModal.js.map +1 -0
  120. package/dist/cjs/index.d.ts +3 -1
  121. package/dist/cjs/index.js +1 -0
  122. package/dist/cjs/index.js.map +1 -1
  123. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js +191 -15
  124. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  125. package/dist/cjs/pages/HolidayStop/HolidayStopContext.js +12 -27
  126. package/dist/cjs/pages/HolidayStop/HolidayStopContext.js.map +1 -1
  127. package/dist/cjs/pages/HolidayStopList/HolidayStopListContext.js +1 -1
  128. package/dist/cjs/pages/HolidayStopList/HolidayStopListContext.js.map +1 -1
  129. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +13 -0
  130. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -1
  131. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +47 -1
  132. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  133. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.d.ts +7 -0
  134. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.js +34 -0
  135. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.js.map +1 -0
  136. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.d.ts +184 -0
  137. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.js +200 -0
  138. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.js.map +1 -0
  139. package/dist/cjs/pages/SunCancellationFlow/index.d.ts +1 -0
  140. package/dist/cjs/pages/SunCancellationFlow/index.js +18 -0
  141. package/dist/cjs/pages/SunCancellationFlow/index.js.map +1 -0
  142. package/dist/cjs/pages/UserHub/UserHub.js +1 -1
  143. package/dist/cjs/pages/UserHub/UserHub.js.map +1 -1
  144. package/dist/cjs/pages/UserHub/UserHubContext.js +64 -20
  145. package/dist/cjs/pages/UserHub/UserHubContext.js.map +1 -1
  146. package/dist/cjs/pages/types.d.ts +12 -0
  147. package/dist/cjs/providers/index.d.ts +1 -0
  148. package/dist/cjs/providers/index.js +1 -0
  149. package/dist/cjs/providers/index.js.map +1 -1
  150. package/dist/cjs/providers/sunCancellationProvider.d.ts +1 -0
  151. package/dist/cjs/providers/sunCancellationProvider.js +6 -0
  152. package/dist/cjs/providers/sunCancellationProvider.js.map +1 -0
  153. package/dist/cjs/queries/getContractPhases.d.ts +1 -0
  154. package/dist/cjs/queries/getContractPhases.js +11 -0
  155. package/dist/cjs/queries/getContractPhases.js.map +1 -0
  156. package/dist/cjs/queries/getPropositionFeatures.d.ts +1 -0
  157. package/dist/cjs/queries/getPropositionFeatures.js +11 -0
  158. package/dist/cjs/queries/getPropositionFeatures.js.map +1 -0
  159. package/dist/cjs/queries/getUserNewsletters.js +1 -1
  160. package/dist/cjs/queries/getUserNewsletters.js.map +1 -1
  161. package/dist/cjs/queries/getUserSubscription.js +3 -1
  162. package/dist/cjs/queries/getUserSubscription.js.map +1 -1
  163. package/dist/cjs/queries/getUserWithNewsletters.js +4 -1
  164. package/dist/cjs/queries/getUserWithNewsletters.js.map +1 -1
  165. package/dist/cjs/queries/index.d.ts +1 -0
  166. package/dist/cjs/queries/index.js +1 -0
  167. package/dist/cjs/queries/index.js.map +1 -1
  168. package/dist/cjs/queries/mutateCancelSubscriptionV2.d.ts +2 -0
  169. package/dist/cjs/queries/mutateCancelSubscriptionV2.js +11 -0
  170. package/dist/cjs/queries/mutateCancelSubscriptionV2.js.map +1 -0
  171. package/dist/cjs/queries/mutateCancellation.js +1 -1
  172. package/dist/cjs/queries/mutateCancellation.js.map +1 -1
  173. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.d.ts +6 -0
  174. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js +59 -0
  175. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js.map +1 -0
  176. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.d.ts +1 -0
  177. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.js +2 -0
  178. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.js.map +1 -0
  179. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.d.ts +13 -0
  180. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.js +29 -0
  181. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.js.map +1 -0
  182. package/dist/esm/Components/Elements/CancellationPolicy/index.d.ts +1 -0
  183. package/dist/esm/Components/Elements/CancellationPolicy/index.js +2 -0
  184. package/dist/esm/Components/Elements/CancellationPolicy/index.js.map +1 -0
  185. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.d.ts +19 -0
  186. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js +35 -0
  187. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js.map +1 -0
  188. package/dist/esm/Components/Elements/CancellationReasonSelector/index.d.ts +1 -0
  189. package/dist/esm/Components/Elements/CancellationReasonSelector/index.js +2 -0
  190. package/dist/esm/Components/Elements/CancellationReasonSelector/index.js.map +1 -0
  191. package/dist/esm/Components/Elements/OfferGroup/Offer.d.ts +2 -0
  192. package/dist/esm/Components/Elements/OfferGroup/Offer.js +22 -0
  193. package/dist/esm/Components/Elements/OfferGroup/Offer.js.map +1 -0
  194. package/dist/esm/Components/Elements/OfferGroup/OfferBody.d.ts +2 -0
  195. package/dist/esm/Components/Elements/OfferGroup/OfferBody.js +22 -0
  196. package/dist/esm/Components/Elements/OfferGroup/OfferBody.js.map +1 -0
  197. package/dist/esm/Components/Elements/OfferGroup/OfferGroup.d.ts +2 -0
  198. package/dist/esm/Components/Elements/OfferGroup/OfferGroup.js +19 -0
  199. package/dist/esm/Components/Elements/OfferGroup/OfferGroup.js.map +1 -0
  200. package/dist/esm/Components/Elements/OfferGroup/index.d.ts +4 -0
  201. package/dist/esm/Components/Elements/OfferGroup/index.js +5 -0
  202. package/dist/esm/Components/Elements/OfferGroup/index.js.map +1 -0
  203. package/dist/esm/Components/Elements/OfferGroup/styled.d.ts +6 -0
  204. package/dist/esm/Components/Elements/OfferGroup/styled.js +14 -0
  205. package/dist/esm/Components/Elements/OfferGroup/styled.js.map +1 -0
  206. package/dist/esm/Components/Elements/OfferGroup/types.d.ts +29 -0
  207. package/dist/esm/Components/Elements/OfferGroup/types.js +2 -0
  208. package/dist/esm/Components/Elements/OfferGroup/types.js.map +1 -0
  209. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js +3 -2
  210. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js.map +1 -1
  211. package/dist/esm/Components/Elements/SectionListItem/types.d.ts +2 -0
  212. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  213. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js +9 -48
  214. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  215. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.js +1 -1
  216. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.js.map +1 -1
  217. package/dist/esm/Components/Sections/CancellationOffers/CancellationOffers.d.ts +2 -0
  218. package/dist/esm/Components/Sections/CancellationOffers/CancellationOffers.js +51 -0
  219. package/dist/esm/Components/Sections/CancellationOffers/CancellationOffers.js.map +1 -0
  220. package/dist/esm/Components/Sections/CancellationOffers/index.d.ts +2 -0
  221. package/dist/esm/Components/Sections/CancellationOffers/index.js +3 -0
  222. package/dist/esm/Components/Sections/CancellationOffers/index.js.map +1 -0
  223. package/dist/esm/Components/Sections/CancellationOffers/types.d.ts +33 -0
  224. package/dist/esm/Components/Sections/CancellationOffers/types.js +2 -0
  225. package/dist/esm/Components/Sections/CancellationOffers/types.js.map +1 -0
  226. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js +2 -2
  227. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  228. package/dist/esm/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  229. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js +99 -56
  230. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  231. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  232. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js +37 -0
  233. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  234. package/dist/esm/Components/Sections/ContentContainer/types.d.ts +4 -3
  235. package/dist/esm/Components/Sections/Form/HolidayStop/HolidayStop.js +3 -1
  236. package/dist/esm/Components/Sections/Form/HolidayStop/HolidayStop.js.map +1 -1
  237. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js +2 -2
  238. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  239. package/dist/esm/Components/Sections/SectionContainer/types.d.ts +2 -2
  240. package/dist/esm/Components/Sections/UserHub/BaseSection.d.ts +3 -0
  241. package/dist/esm/Components/Sections/UserHub/BaseSection.js +1 -1
  242. package/dist/esm/Components/Sections/UserHub/BaseSection.js.map +1 -1
  243. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js +12 -15
  244. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  245. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.d.ts +6 -0
  246. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.js +64 -0
  247. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.js.map +1 -0
  248. package/dist/esm/Components/Templates/CancellationStepperRender.d.ts +2 -0
  249. package/dist/esm/Components/Templates/CancellationStepperRender.js +8 -4
  250. package/dist/esm/Components/Templates/CancellationStepperRender.js.map +1 -1
  251. package/dist/esm/Components/Templates/DisplayRenderer.js +1 -1
  252. package/dist/esm/Components/Templates/DisplayRenderer.js.map +1 -1
  253. package/dist/esm/Components/Templates/HolidayStopRender.js +4 -7
  254. package/dist/esm/Components/Templates/HolidayStopRender.js.map +1 -1
  255. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js +10 -2
  256. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  257. package/dist/esm/Components/Templates/SunCancellationFlowRender.d.ts +3 -0
  258. package/dist/esm/Components/Templates/SunCancellationFlowRender.js +78 -0
  259. package/dist/esm/Components/Templates/SunCancellationFlowRender.js.map +1 -0
  260. package/dist/esm/Components/Templates/UserHubRender.js +3 -1
  261. package/dist/esm/Components/Templates/UserHubRender.js.map +1 -1
  262. package/dist/esm/api/mutateHandlerHelpers.js +4 -4
  263. package/dist/esm/api/mutateHandlerHelpers.js.map +1 -1
  264. package/dist/esm/context/index.d.ts +3 -2
  265. package/dist/esm/context/index.js +1 -0
  266. package/dist/esm/context/index.js.map +1 -1
  267. package/dist/esm/context/types.d.ts +21 -22
  268. package/dist/esm/context/types.js +1 -0
  269. package/dist/esm/context/types.js.map +1 -1
  270. package/dist/esm/helpers/apiHandlerUtils.js +10 -2
  271. package/dist/esm/helpers/apiHandlerUtils.js.map +1 -1
  272. package/dist/esm/helpers/cancellationUtils.d.ts +1 -1
  273. package/dist/esm/helpers/cancellationUtils.js +5 -4
  274. package/dist/esm/helpers/cancellationUtils.js.map +1 -1
  275. package/dist/esm/helpers/dataUtils.d.ts +2 -2
  276. package/dist/esm/helpers/dataUtils.js +11 -6
  277. package/dist/esm/helpers/dataUtils.js.map +1 -1
  278. package/dist/esm/helpers/dateUtils.d.ts +0 -1
  279. package/dist/esm/helpers/dateUtils.js +0 -6
  280. package/dist/esm/helpers/dateUtils.js.map +1 -1
  281. package/dist/esm/helpers/featureFlagUtils.js +1 -1
  282. package/dist/esm/helpers/featureFlagUtils.js.map +1 -1
  283. package/dist/esm/helpers/holidayStopsUtils.d.ts +4 -0
  284. package/dist/esm/helpers/holidayStopsUtils.js +36 -10
  285. package/dist/esm/helpers/holidayStopsUtils.js.map +1 -1
  286. package/dist/esm/hooks/index.d.ts +1 -0
  287. package/dist/esm/hooks/index.js +1 -0
  288. package/dist/esm/hooks/index.js.map +1 -1
  289. package/dist/esm/hooks/useCancelSubscriptionModal.d.ts +6 -0
  290. package/dist/esm/hooks/useCancelSubscriptionModal.js +27 -0
  291. package/dist/esm/hooks/useCancelSubscriptionModal.js.map +1 -0
  292. package/dist/esm/index.d.ts +3 -1
  293. package/dist/esm/index.js +1 -0
  294. package/dist/esm/index.js.map +1 -1
  295. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js +191 -15
  296. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  297. package/dist/esm/pages/HolidayStop/HolidayStopContext.js +12 -27
  298. package/dist/esm/pages/HolidayStop/HolidayStopContext.js.map +1 -1
  299. package/dist/esm/pages/HolidayStopList/HolidayStopListContext.js +1 -1
  300. package/dist/esm/pages/HolidayStopList/HolidayStopListContext.js.map +1 -1
  301. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +13 -0
  302. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -1
  303. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +47 -1
  304. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  305. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.d.ts +7 -0
  306. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.js +27 -0
  307. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.js.map +1 -0
  308. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.d.ts +184 -0
  309. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.js +197 -0
  310. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.js.map +1 -0
  311. package/dist/esm/pages/SunCancellationFlow/index.d.ts +1 -0
  312. package/dist/esm/pages/SunCancellationFlow/index.js +2 -0
  313. package/dist/esm/pages/SunCancellationFlow/index.js.map +1 -0
  314. package/dist/esm/pages/UserHub/UserHub.js +1 -1
  315. package/dist/esm/pages/UserHub/UserHub.js.map +1 -1
  316. package/dist/esm/pages/UserHub/UserHubContext.js +64 -20
  317. package/dist/esm/pages/UserHub/UserHubContext.js.map +1 -1
  318. package/dist/esm/pages/types.d.ts +12 -0
  319. package/dist/esm/providers/index.d.ts +1 -0
  320. package/dist/esm/providers/index.js +1 -0
  321. package/dist/esm/providers/index.js.map +1 -1
  322. package/dist/esm/providers/sunCancellationProvider.d.ts +1 -0
  323. package/dist/esm/providers/sunCancellationProvider.js +2 -0
  324. package/dist/esm/providers/sunCancellationProvider.js.map +1 -0
  325. package/dist/esm/queries/getContractPhases.d.ts +1 -0
  326. package/dist/esm/queries/getContractPhases.js +8 -0
  327. package/dist/esm/queries/getContractPhases.js.map +1 -0
  328. package/dist/esm/queries/getPropositionFeatures.d.ts +1 -0
  329. package/dist/esm/queries/getPropositionFeatures.js +8 -0
  330. package/dist/esm/queries/getPropositionFeatures.js.map +1 -0
  331. package/dist/esm/queries/getUserNewsletters.js +1 -1
  332. package/dist/esm/queries/getUserNewsletters.js.map +1 -1
  333. package/dist/esm/queries/getUserSubscription.js +3 -1
  334. package/dist/esm/queries/getUserSubscription.js.map +1 -1
  335. package/dist/esm/queries/getUserWithNewsletters.js +4 -1
  336. package/dist/esm/queries/getUserWithNewsletters.js.map +1 -1
  337. package/dist/esm/queries/index.d.ts +1 -0
  338. package/dist/esm/queries/index.js +1 -0
  339. package/dist/esm/queries/index.js.map +1 -1
  340. package/dist/esm/queries/mutateCancelSubscriptionV2.d.ts +2 -0
  341. package/dist/esm/queries/mutateCancelSubscriptionV2.js +8 -0
  342. package/dist/esm/queries/mutateCancelSubscriptionV2.js.map +1 -0
  343. package/dist/esm/queries/mutateCancellation.js +1 -1
  344. package/dist/esm/queries/mutateCancellation.js.map +1 -1
  345. package/package.json +7 -7
  346. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  347. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
  348. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  349. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js +0 -40
  350. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
@@ -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,CAGU,EACV,oBAAoB,CAAC,aAAa,EAAE,cAAc,CAAC,EAInD,UAAC,EAAgB;QAAd,YAAY,kBAAA;IACf,OAAA,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,0BAA0B,CAAC,YAAY;QACrD,uBAAuB,CAAC,YAAY;QAClC,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,kBAAkB;AAHtB,CAGsB,CAE3B,CAAA;AAWD,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAOT;QAN7B,MAAM,YAAA,EACN,cAAc,oBAAA,EACd,KAAK,WAAA,EACL,YAAY,kBAAA,EACZ,GAAG,SAAA,EACH,aAAa,mBAAA;IAEb,IAAM,KAA6C,KAAK,IAAI,EAAE,EAAtD,OAAO,aAAA,EAAE,cAAc,oBAAA,EAAK,UAAU,cAAxC,6BAA0C,CAAc,CAAA;IAE9D,OAAO,CACL,oBAAC,cAAc,IAAC,MAAM,EAAE,WAAW;QACjC,oBAAC,KAAK,aACJ,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,cAAc,IACrB,UAAU,mBACF,2BAA2B;YAEtC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,KAAI,CACjB,oBAAC,oBAAoB,IAAC,YAAY,EAAE,YAAY,IAC7C,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,GAAG,CAAC,UAAC,EAAkB;gBAAhB,IAAA,IAAI,UAAA,EAAK,KAAK,cAAhB,QAAkB,CAAF;gBAAO,OAAA,CAC1C,oBAAC,eAAe,aACd,GAAG,EAAE,KAAK,CAAC,EAAE,IACT,KAAK,IACT,kBAAkB,EAAE,OAAO,CAAC,sBAAsB,IAClD,CACH,CAAA;aAAA,CAAC,CACmB,CACxB;YACD,oBAAC,aAAa,IACZ,KAAK,EAAC,IAAI,EACV,eAAe,aACb,WAAW,EAAE,sBAAsB,IAChC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,GAEpC,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';
@@ -0,0 +1,2 @@
1
+ export { CancellationReasonSelector, } from './CancellationReasonSelector';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/CancellationReasonSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,GAG3B,MAAM,8BAA8B,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { OfferProps } from './types';
2
+ export declare const Offer: ({ id, title, description, discountedPrice, regularPrice, eventContext, overrides, }: OfferProps) => JSX.Element;
@@ -0,0 +1,22 @@
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 { RadioButton } from 'newskit';
14
+ import { StyledBlock } from './styled';
15
+ import { OfferBody } from './OfferBody';
16
+ export var Offer = function (_a) {
17
+ var _b, _c;
18
+ var id = _a.id, title = _a.title, description = _a.description, discountedPrice = _a.discountedPrice, regularPrice = _a.regularPrice, eventContext = _a.eventContext, overrides = _a.overrides;
19
+ return (React.createElement(StyledBlock, __assign({ paddingInline: "space040", paddingBlock: "space050", marginBlockEnd: "space040" }, overrides === null || overrides === void 0 ? void 0 : overrides.container, { "data-testid": "offer-container" }),
20
+ React.createElement(RadioButton, { overrides: __assign({ input: { spaceInline: 'space040' } }, (_b = overrides === null || overrides === void 0 ? void 0 : overrides.radioButton) === null || _b === void 0 ? void 0 : _b.overrides), eventContext: eventContext, name: id, value: id, size: ((_c = overrides === null || overrides === void 0 ? void 0 : overrides.radioButton) === null || _c === void 0 ? void 0 : _c.size) || 'small', label: React.createElement(OfferBody, { title: title, description: description, discountedPrice: discountedPrice, regularPrice: regularPrice, overrides: overrides }) })));
21
+ };
22
+ //# sourceMappingURL=Offer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Offer.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/OfferGroup/Offer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,EAQT;;QAPX,EAAE,QAAA,EACF,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,YAAY,kBAAA,EACZ,YAAY,kBAAA,EACZ,SAAS,eAAA;IACO,OAAA,CAChB,oBAAC,WAAW,aACV,aAAa,EAAC,UAAU,EACxB,YAAY,EAAC,UAAU,EACvB,cAAc,EAAC,UAAU,IACrB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,mBACZ,iBAAiB;QAE7B,oBAAC,WAAW,IACV,SAAS,aACP,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,IAC/B,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,SAAS,GAEtC,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,EAAE,EACT,IAAI,EAAE,CAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,0CAAE,IAAI,KAAI,OAAO,EAC7C,KAAK,EACH,oBAAC,SAAS,IACR,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,GACpB,GAEJ,CACU,CACf,CAAA;CAAA,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { OfferBodyProps } from './types';
2
+ export declare const OfferBody: ({ title, description, discountedPrice, regularPrice, overrides, }: OfferBodyProps) => JSX.Element;
@@ -0,0 +1,22 @@
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 { Block, TextBlock } from 'newskit';
14
+ export var OfferBody = function (_a) {
15
+ var title = _a.title, description = _a.description, discountedPrice = _a.discountedPrice, regularPrice = _a.regularPrice, overrides = _a.overrides;
16
+ return (React.createElement(Block, null,
17
+ React.createElement(TextBlock, __assign({ marginBlockStart: "space020", typographyPreset: "editorialHeadline040" }, overrides === null || overrides === void 0 ? void 0 : overrides.title), title),
18
+ discountedPrice && (React.createElement(TextBlock, __assign({ typographyPreset: "utilitySubheading030", marginBlockStart: "space050" }, overrides === null || overrides === void 0 ? void 0 : overrides.discountedPrice), discountedPrice)),
19
+ regularPrice && (React.createElement(TextBlock, __assign({ typographyPreset: "utilitySubheading010", stylePreset: "inkSubtle", marginBlockStart: "space020" }, overrides === null || overrides === void 0 ? void 0 : overrides.regularPrice), regularPrice)),
20
+ React.createElement(TextBlock, __assign({ typographyPreset: "utilityBody010", stylePreset: "inkSubtle", marginBlockStart: "space050" }, overrides === null || overrides === void 0 ? void 0 : overrides.description), description)));
21
+ };
22
+ //# sourceMappingURL=OfferBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfferBody.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/OfferGroup/OfferBody.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAG1C,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAMT;QALf,KAAK,WAAA,EACL,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,YAAY,kBAAA,EACZ,SAAS,eAAA;IAET,OAAO,CACL,oBAAC,KAAK;QACJ,oBAAC,SAAS,aACR,gBAAgB,EAAC,UAAU,EAC3B,gBAAgB,EAAC,sBAAsB,IACnC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,GAEnB,KAAK,CACI;QAEX,eAAe,IAAI,CAClB,oBAAC,SAAS,aACR,gBAAgB,EAAC,sBAAsB,EACvC,gBAAgB,EAAC,UAAU,IACvB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,eAAe,GAE7B,eAAe,CACN,CACb;QACA,YAAY,IAAI,CACf,oBAAC,SAAS,aACR,gBAAgB,EAAC,sBAAsB,EACvC,WAAW,EAAC,WAAW,EACvB,gBAAgB,EAAC,UAAU,IACvB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAY,GAE1B,YAAY,CACH,CACb;QAED,oBAAC,SAAS,aACR,gBAAgB,EAAC,gBAAgB,EACjC,WAAW,EAAC,WAAW,EACvB,gBAAgB,EAAC,UAAU,IACvB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,GAEzB,WAAW,CACF,CACN,CACT,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { OfferGroupProps } from './types';
2
+ export declare const OfferGroup: ({ offers, selectedOfferId, onSelect, }: OfferGroupProps) => JSX.Element | null;
@@ -0,0 +1,19 @@
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 { RadioGroup } from 'newskit';
14
+ import { Offer } from './Offer';
15
+ export var OfferGroup = function (_a) {
16
+ var offers = _a.offers, selectedOfferId = _a.selectedOfferId, onSelect = _a.onSelect;
17
+ return (offers === null || offers === void 0 ? void 0 : offers.length) ? (React.createElement(RadioGroup, { name: "offer-group", "data-testid": "offer-group", value: selectedOfferId, onChange: function (event) { return onSelect(event.target.value); } }, offers.map(function (offer) { return (React.createElement(Offer, __assign({ key: offer.id }, offer))); }))) : null;
18
+ };
19
+ //# sourceMappingURL=OfferGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfferGroup.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/OfferGroup/OfferGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG/B,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAIT;QAHhB,MAAM,YAAA,EACN,eAAe,qBAAA,EACf,QAAQ,cAAA;IAER,OAAA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAC,CAAC,CAAC,CACf,oBAAC,UAAU,IACT,IAAI,EAAC,aAAa,iBACN,aAAa,EACzB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,UAAC,KAAK,IAAK,OAAA,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAA5B,CAA4B,IAEhD,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,CACrB,oBAAC,KAAK,aAAC,GAAG,EAAE,KAAK,CAAC,EAAE,IAAM,KAAK,EAAI,CACpC,EAFsB,CAEtB,CAAC,CACS,CACd,CAAC,CAAC,CAAC,IAAI;AAXR,CAWQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { OfferGroup } from './OfferGroup';
2
+ export { Offer } from './Offer';
3
+ export * from './types';
4
+ export default OfferGroup;
@@ -0,0 +1,5 @@
1
+ import { OfferGroup } from './OfferGroup';
2
+ export { Offer } from './Offer';
3
+ export * from './types';
4
+ export default OfferGroup;
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/OfferGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,cAAc,SAAS,CAAA;AAEvB,eAAe,UAAU,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const StyledBlock: import("@emotion/styled").StyledComponent<import("newskit").BlockProps & import("react").RefAttributes<HTMLDivElement> & {
2
+ theme?: import("@emotion/react").Theme;
3
+ } & {
4
+ borderColor?: string;
5
+ backgroundColor?: string;
6
+ }, {}, {}>;
@@ -0,0 +1,14 @@
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
+ import { Block, getColorCssFromTheme, styled } from 'newskit';
6
+ export var StyledBlock = styled(Block)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 1px solid;\n ", "\n ", "\n"], ["\n border: 1px solid;\n ", "\n ", "\n"])), function (_a) {
7
+ var borderColor = _a.borderColor;
8
+ return getColorCssFromTheme('borderColor', borderColor || 'teal040');
9
+ }, function (_a) {
10
+ var backgroundColor = _a.backgroundColor;
11
+ return getColorCssFromTheme('background', backgroundColor || 'teal010');
12
+ });
13
+ var templateObject_1;
14
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/OfferGroup/styled.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAE7D,MAAM,CAAC,IAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,6GAGtC,4BAEE,EAC6D,MAC7D,EACgE,IACnE,KAJG,UAAC,EAAe;QAAb,WAAW,iBAAA;IACd,OAAA,oBAAoB,CAAC,aAAa,EAAE,WAAW,IAAI,SAAS,CAAC;AAA7D,CAA6D,EAC7D,UAAC,EAAmB;QAAjB,eAAe,qBAAA;IAClB,OAAA,oBAAoB,CAAC,YAAY,EAAE,eAAe,IAAI,SAAS,CAAC;AAAhE,CAAgE,CACnE,CAAA"}