@mjhls/mjh-framework 1.0.672 → 1.0.673-article-series

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 (213) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +10 -9
  4. package/dist/cjs/AD300x250x600.js +10 -9
  5. package/dist/cjs/AD728x90.js +11 -10
  6. package/dist/cjs/ADFloatingFooter.js +12 -11
  7. package/dist/cjs/ADFooter.js +9 -8
  8. package/dist/cjs/ADGutter.js +12 -11
  9. package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-bc591de7.js} +11 -9
  10. package/dist/cjs/ADSkyscraper.js +12 -11
  11. package/dist/cjs/ADSponsoredResources.js +12 -11
  12. package/dist/cjs/ADWebcast.js +12 -11
  13. package/dist/cjs/ADWelcome.js +16 -15
  14. package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-4b713637.js} +7 -6
  15. package/dist/cjs/AccordionPanel.js +24 -22
  16. package/dist/cjs/AdSlot.js +14 -13
  17. package/dist/cjs/AdSlotsProvider.js +6 -5
  18. package/dist/cjs/AlphabeticList.js +16 -15
  19. package/dist/cjs/ArticleCarousel.js +9 -8
  20. package/dist/cjs/ArticleSeriesListing.js +38 -37
  21. package/dist/cjs/Auth.js +430 -593
  22. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
  23. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-8b494587.js} +25 -24
  24. package/dist/cjs/Breadcrumbs.js +23 -21
  25. package/dist/cjs/CMEDeck.js +61 -61
  26. package/dist/cjs/Column1.js +14 -11
  27. package/dist/cjs/Column2.js +22 -19
  28. package/dist/cjs/Column3.js +35 -32
  29. package/dist/cjs/ConferenceArticleCard.js +19 -18
  30. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  31. package/dist/cjs/DeckContent.js +77 -73
  32. package/dist/cjs/DeckQueue.js +73 -69
  33. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-fa2c6aad.js} +21 -20
  34. package/dist/cjs/EventsDeck.js +123 -116
  35. package/dist/cjs/ExternalResources.js +44 -43
  36. package/dist/cjs/Feature.js +26 -24
  37. package/dist/cjs/ForbesHero.js +34 -33
  38. package/dist/cjs/GridContent.js +153 -149
  39. package/dist/cjs/GridHero.js +35 -34
  40. package/dist/cjs/GroupDeck.js +40 -39
  41. package/dist/cjs/HamMagazine.js +119 -114
  42. package/dist/cjs/Header.js +13 -11
  43. package/dist/cjs/Hero.js +11 -10
  44. package/dist/cjs/HighlightenVideo.js +17 -16
  45. package/dist/cjs/HorizontalHero.js +25 -24
  46. package/dist/cjs/IssueContentDeck.js +69 -64
  47. package/dist/cjs/IssueDeck.js +64 -59
  48. package/dist/cjs/IssueLanding.js +18 -17
  49. package/dist/cjs/LeftNav.js +22 -20
  50. package/dist/cjs/MasterDeck.js +50 -49
  51. package/dist/cjs/NavDvm.js +68 -63
  52. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  53. package/dist/cjs/NavMagazine.js +121 -116
  54. package/dist/cjs/NavNative.js +103 -95
  55. package/dist/cjs/NavNormal.js +41 -36
  56. package/dist/cjs/OncliveHero.js +18 -18
  57. package/dist/cjs/OncliveLargeHero.js +59 -58
  58. package/dist/cjs/PageFilter.js +9 -8
  59. package/dist/cjs/PartnerDetailListing.js +1269 -71
  60. package/dist/cjs/PdfDownload.js +9 -8
  61. package/dist/cjs/PopUpModal.js +15 -13
  62. package/dist/cjs/PublicationDeck.js +63 -58
  63. package/dist/cjs/PublicationLanding.js +52 -48
  64. package/dist/cjs/QueueDeckExpanded.js +219 -219
  65. package/dist/cjs/RecentNews.js +23 -22
  66. package/dist/cjs/RelatedContent.js +22 -21
  67. package/dist/cjs/RelatedTopicsDropdown.js +22 -19
  68. package/dist/cjs/RolesDeck.js +32 -27
  69. package/dist/cjs/Search.js +16 -12
  70. package/dist/cjs/SideFooter.js +24 -23
  71. package/dist/cjs/SocialIcons.js +10 -9
  72. package/dist/cjs/{SocialSearchComponent-962b1344.js → SocialSearchComponent-fde6c921.js} +36 -32
  73. package/dist/cjs/SocialShare.js +31 -29
  74. package/dist/cjs/TaxonomyCard.js +59 -54
  75. package/dist/cjs/TemplateNormal.js +36 -35
  76. package/dist/cjs/ThumbnailCard.js +19 -17
  77. package/dist/cjs/Ustream.js +21 -20
  78. package/dist/cjs/VerticalHero.js +17 -16
  79. package/dist/cjs/VideoSeriesCard.js +25 -24
  80. package/dist/cjs/VideoSeriesFilter.js +9 -9
  81. package/dist/cjs/VideoSeriesListing.js +52 -51
  82. package/dist/cjs/View.js +183 -179
  83. package/dist/cjs/YahooHero.js +30 -29
  84. package/dist/cjs/YoutubeGroup.js +53 -52
  85. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
  86. package/dist/cjs/getRelatedArticle.js +354 -5
  87. package/dist/cjs/getSerializers.js +9 -9
  88. package/dist/cjs/iconBase-68959171.js +0 -3
  89. package/dist/cjs/{index-c190d704.js → index-06016cad.js} +361 -351
  90. package/dist/cjs/{index-2d0a4911.js → index-44481153.js} +9 -8
  91. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  92. package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
  93. package/dist/cjs/index-bd6c9f56.js +211 -0
  94. package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
  95. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  96. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  97. package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
  98. package/dist/cjs/{index.esm-fe549f9c.js → index.esm-dd489d02.js} +20 -20
  99. package/dist/cjs/index.js +31 -32
  100. package/dist/cjs/{inherits-513d81cd.js → inherits-87492b40.js} +4 -4
  101. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  102. package/dist/cjs/{main-b6c96c8d.js → main-9499b3ef.js} +48 -43
  103. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  104. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
  105. package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
  106. package/dist/cjs/urlFor.js +2 -2
  107. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
  108. package/dist/esm/AD.js +7 -7
  109. package/dist/esm/AD300x250.js +7 -7
  110. package/dist/esm/AD300x250x600.js +7 -7
  111. package/dist/esm/AD728x90.js +8 -8
  112. package/dist/esm/ADFloatingFooter.js +9 -9
  113. package/dist/esm/ADFooter.js +6 -6
  114. package/dist/esm/ADGutter.js +9 -9
  115. package/dist/esm/{ADInfeed-9140aa7d.js → ADInfeed-d1777980.js} +5 -5
  116. package/dist/esm/ADSkyscraper.js +9 -9
  117. package/dist/esm/ADSponsoredResources.js +9 -9
  118. package/dist/esm/ADWebcast.js +9 -9
  119. package/dist/esm/ADWelcome.js +13 -13
  120. package/dist/esm/{ADlgInfeed-7656ecd1.js → ADlgInfeed-84282fe8.js} +4 -4
  121. package/dist/esm/AccordionPanel.js +17 -17
  122. package/dist/esm/AdSlot.js +5 -5
  123. package/dist/esm/AdSlotsProvider.js +3 -3
  124. package/dist/esm/AlphabeticList.js +13 -13
  125. package/dist/esm/ArticleCarousel.js +6 -6
  126. package/dist/esm/ArticleSeriesListing.js +32 -32
  127. package/dist/esm/Auth.js +411 -578
  128. package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
  129. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-d05b5b23.js} +3 -3
  130. package/dist/esm/Breadcrumbs.js +11 -11
  131. package/dist/esm/CMEDeck.js +58 -58
  132. package/dist/esm/Column1.js +5 -5
  133. package/dist/esm/Column2.js +12 -12
  134. package/dist/esm/Column3.js +24 -24
  135. package/dist/esm/ConferenceArticleCard.js +13 -13
  136. package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
  137. package/dist/esm/DeckContent.js +53 -53
  138. package/dist/esm/DeckQueue.js +46 -46
  139. package/dist/esm/{Dfp-8a8fca18.js → Dfp-939e8fcf.js} +10 -10
  140. package/dist/esm/EventsDeck.js +66 -66
  141. package/dist/esm/ExternalResources.js +37 -37
  142. package/dist/esm/Feature.js +16 -16
  143. package/dist/esm/ForbesHero.js +27 -27
  144. package/dist/esm/GridContent.js +110 -110
  145. package/dist/esm/GridHero.js +28 -28
  146. package/dist/esm/GroupDeck.js +35 -35
  147. package/dist/esm/HamMagazine.js +86 -86
  148. package/dist/esm/Header.js +7 -7
  149. package/dist/esm/Hero.js +6 -6
  150. package/dist/esm/HighlightenVideo.js +14 -14
  151. package/dist/esm/HorizontalHero.js +20 -20
  152. package/dist/esm/IssueContentDeck.js +40 -40
  153. package/dist/esm/IssueDeck.js +33 -33
  154. package/dist/esm/IssueLanding.js +15 -15
  155. package/dist/esm/LeftNav.js +16 -16
  156. package/dist/esm/MasterDeck.js +43 -43
  157. package/dist/esm/NavDvm.js +43 -43
  158. package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
  159. package/dist/esm/NavMagazine.js +90 -90
  160. package/dist/esm/NavNative.js +70 -70
  161. package/dist/esm/NavNormal.js +21 -21
  162. package/dist/esm/OncliveHero.js +13 -14
  163. package/dist/esm/OncliveLargeHero.js +51 -51
  164. package/dist/esm/PageFilter.js +6 -6
  165. package/dist/esm/PartnerDetailListing.js +1263 -67
  166. package/dist/esm/PdfDownload.js +6 -6
  167. package/dist/esm/PopUpModal.js +8 -8
  168. package/dist/esm/PublicationDeck.js +34 -34
  169. package/dist/esm/PublicationLanding.js +28 -28
  170. package/dist/esm/QueueDeckExpanded.js +199 -199
  171. package/dist/esm/RecentNews.js +18 -18
  172. package/dist/esm/RelatedContent.js +16 -16
  173. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  174. package/dist/esm/RolesDeck.js +13 -13
  175. package/dist/esm/Search.js +5 -5
  176. package/dist/esm/SideFooter.js +19 -19
  177. package/dist/esm/SocialIcons.js +7 -7
  178. package/dist/esm/{SocialSearchComponent-75527dfe.js → SocialSearchComponent-a13fc98b.js} +23 -23
  179. package/dist/esm/SocialShare.js +25 -25
  180. package/dist/esm/TaxonomyCard.js +35 -35
  181. package/dist/esm/TemplateNormal.js +29 -29
  182. package/dist/esm/ThumbnailCard.js +9 -9
  183. package/dist/esm/Ustream.js +18 -18
  184. package/dist/esm/VerticalHero.js +12 -12
  185. package/dist/esm/VideoSeriesCard.js +16 -16
  186. package/dist/esm/VideoSeriesFilter.js +6 -6
  187. package/dist/esm/VideoSeriesListing.js +45 -45
  188. package/dist/esm/View.js +165 -165
  189. package/dist/esm/YahooHero.js +24 -24
  190. package/dist/esm/YoutubeGroup.js +38 -38
  191. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
  192. package/dist/esm/getRelatedArticle.js +354 -5
  193. package/dist/esm/getSerializers.js +9 -9
  194. package/dist/esm/{index-93ec3c59.js → index-1819118a.js} +3 -3
  195. package/dist/esm/{index-983cedab.js → index-45bca0c4.js} +303 -299
  196. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  197. package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
  198. package/dist/esm/index-db3bb315.js +207 -0
  199. package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
  200. package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
  201. package/dist/esm/{index.esm-73e847d2.js → index.esm-902766e0.js} +17 -18
  202. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  203. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  204. package/dist/esm/index.js +26 -27
  205. package/dist/esm/{inherits-7ee3e0c1.js → inherits-596840e8.js} +1 -1
  206. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  207. package/dist/esm/{main-0465b2a0.js → main-edbd70ac.js} +48 -44
  208. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  209. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
  210. package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
  211. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
  212. package/package.json +1 -1
  213. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
@@ -1,4 +1,4 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
1
+ import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-ded78eb9.js';
3
3
  import './es6.string.iterator-9b2af4a5.js';
4
4
  import './_library-528f1934.js';
@@ -7,9 +7,358 @@ import './core.get-iterator-method-54d2e411.js';
7
7
  import './web.dom.iterable-8956f9a5.js';
8
8
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
9
9
  import './_set-species-cede29f8.js';
10
- import { parseCookies, setCookie } from 'nookies';
10
+ import { c as cookie } from './index-db3bb315.js';
11
11
  import getQuery from './getQuery.js';
12
12
 
13
+ var defaultParseOptions = {
14
+ decodeValues: true,
15
+ map: false,
16
+ silent: false,
17
+ };
18
+
19
+ function isNonEmptyString(str) {
20
+ return typeof str === "string" && !!str.trim();
21
+ }
22
+
23
+ function parseString(setCookieValue, options) {
24
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
25
+ var nameValue = parts.shift().split("=");
26
+ var name = nameValue.shift();
27
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
28
+
29
+ options = options
30
+ ? Object.assign({}, defaultParseOptions, options)
31
+ : defaultParseOptions;
32
+
33
+ var cookie = {
34
+ name: name, // grab everything before the first =
35
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
36
+ };
37
+
38
+ parts.forEach(function (part) {
39
+ var sides = part.split("=");
40
+ var key = sides.shift().trimLeft().toLowerCase();
41
+ var value = sides.join("=");
42
+ if (key === "expires") {
43
+ cookie.expires = new Date(value);
44
+ } else if (key === "max-age") {
45
+ cookie.maxAge = parseInt(value, 10);
46
+ } else if (key === "secure") {
47
+ cookie.secure = true;
48
+ } else if (key === "httponly") {
49
+ cookie.httpOnly = true;
50
+ } else if (key === "samesite") {
51
+ cookie.sameSite = value;
52
+ } else {
53
+ cookie[key] = value;
54
+ }
55
+ });
56
+
57
+ return cookie;
58
+ }
59
+
60
+ function parse(input, options) {
61
+ options = options
62
+ ? Object.assign({}, defaultParseOptions, options)
63
+ : defaultParseOptions;
64
+
65
+ if (!input) {
66
+ if (!options.map) {
67
+ return [];
68
+ } else {
69
+ return {};
70
+ }
71
+ }
72
+
73
+ if (input.headers && input.headers["set-cookie"]) {
74
+ // fast-path for node.js (which automatically normalizes header names to lower-case
75
+ input = input.headers["set-cookie"];
76
+ } else if (input.headers) {
77
+ // slow-path for other environments - see #25
78
+ var sch =
79
+ input.headers[
80
+ Object.keys(input.headers).find(function (key) {
81
+ return key.toLowerCase() === "set-cookie";
82
+ })
83
+ ];
84
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
85
+ if (!sch && input.headers.cookie && !options.silent) {
86
+ console.warn(
87
+ "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
88
+ );
89
+ }
90
+ input = sch;
91
+ }
92
+ if (!Array.isArray(input)) {
93
+ input = [input];
94
+ }
95
+
96
+ options = options
97
+ ? Object.assign({}, defaultParseOptions, options)
98
+ : defaultParseOptions;
99
+
100
+ if (!options.map) {
101
+ return input.filter(isNonEmptyString).map(function (str) {
102
+ return parseString(str, options);
103
+ });
104
+ } else {
105
+ var cookies = {};
106
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
107
+ var cookie = parseString(str, options);
108
+ cookies[cookie.name] = cookie;
109
+ return cookies;
110
+ }, cookies);
111
+ }
112
+ }
113
+
114
+ /*
115
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
116
+ that are within a single set-cookie field-value, such as in the Expires portion.
117
+
118
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
119
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
120
+ React Native's fetch does this for *every* header, including set-cookie.
121
+
122
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
123
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
124
+ */
125
+ function splitCookiesString(cookiesString) {
126
+ if (Array.isArray(cookiesString)) {
127
+ return cookiesString;
128
+ }
129
+ if (typeof cookiesString !== "string") {
130
+ return [];
131
+ }
132
+
133
+ var cookiesStrings = [];
134
+ var pos = 0;
135
+ var start;
136
+ var ch;
137
+ var lastComma;
138
+ var nextStart;
139
+ var cookiesSeparatorFound;
140
+
141
+ function skipWhitespace() {
142
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
143
+ pos += 1;
144
+ }
145
+ return pos < cookiesString.length;
146
+ }
147
+
148
+ function notSpecialChar() {
149
+ ch = cookiesString.charAt(pos);
150
+
151
+ return ch !== "=" && ch !== ";" && ch !== ",";
152
+ }
153
+
154
+ while (pos < cookiesString.length) {
155
+ start = pos;
156
+ cookiesSeparatorFound = false;
157
+
158
+ while (skipWhitespace()) {
159
+ ch = cookiesString.charAt(pos);
160
+ if (ch === ",") {
161
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
162
+ lastComma = pos;
163
+ pos += 1;
164
+
165
+ skipWhitespace();
166
+ nextStart = pos;
167
+
168
+ while (pos < cookiesString.length && notSpecialChar()) {
169
+ pos += 1;
170
+ }
171
+
172
+ // currently special character
173
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
174
+ // we found cookies separator
175
+ cookiesSeparatorFound = true;
176
+ // pos is inside the next cookie, so back up and return it.
177
+ pos = nextStart;
178
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
179
+ start = pos;
180
+ } else {
181
+ // in param ',' or param separator ';',
182
+ // we continue from that comma
183
+ pos = lastComma + 1;
184
+ }
185
+ } else {
186
+ pos += 1;
187
+ }
188
+ }
189
+
190
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
191
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
192
+ }
193
+ }
194
+
195
+ return cookiesStrings;
196
+ }
197
+
198
+ var setCookie = parse;
199
+ var parse_1 = parse;
200
+ var parseString_1 = parseString;
201
+ var splitCookiesString_1 = splitCookiesString;
202
+ setCookie.parse = parse_1;
203
+ setCookie.parseString = parseString_1;
204
+ setCookie.splitCookiesString = splitCookiesString_1;
205
+
206
+ var dist = createCommonjsModule(function (module, exports) {
207
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
208
+ __assign = Object.assign || function(t) {
209
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
210
+ s = arguments[i];
211
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
212
+ t[p] = s[p];
213
+ }
214
+ return t;
215
+ };
216
+ return __assign.apply(this, arguments);
217
+ };
218
+ Object.defineProperty(exports, "__esModule", { value: true });
219
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
220
+
221
+
222
+ var isBrowser = function () { return typeof window !== 'undefined'; };
223
+ function hasSameProperties(a, b) {
224
+ var aProps = Object.getOwnPropertyNames(a);
225
+ var bProps = Object.getOwnPropertyNames(b);
226
+ if (aProps.length !== bProps.length) {
227
+ return false;
228
+ }
229
+ for (var i = 0; i < aProps.length; i++) {
230
+ var propName = aProps[i];
231
+ if (a[propName] !== b[propName]) {
232
+ return false;
233
+ }
234
+ }
235
+ return true;
236
+ }
237
+ /**
238
+ * Compare the cookie and return true if the cookies has equivalent
239
+ * options and the cookies would be overwritten in the browser storage.
240
+ *
241
+ * @param a first Cookie for comparison
242
+ * @param b second Cookie for comparison
243
+ */
244
+ function areCookiesEqual(a, b) {
245
+ var sameSiteSame = a.sameSite === b.sameSite;
246
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
247
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
248
+ }
249
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
250
+ }
251
+ /**
252
+ * Create an instance of the Cookie interface
253
+ *
254
+ * @param name name of the Cookie
255
+ * @param value value of the Cookie
256
+ * @param options Cookie options
257
+ */
258
+ function createCookie(name, value, options) {
259
+ var sameSite = options.sameSite;
260
+ if (sameSite === true) {
261
+ sameSite = 'strict';
262
+ }
263
+ if (sameSite === undefined || sameSite === false) {
264
+ sameSite = 'lax';
265
+ }
266
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
267
+ delete cookieToSet.encode;
268
+ return __assign({ name: name, value: value }, cookieToSet);
269
+ }
270
+ /**
271
+ *
272
+ * Parses cookies.
273
+ *
274
+ * @param ctx
275
+ * @param options
276
+ */
277
+ function parseCookies(ctx, options) {
278
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
279
+ return cookie.parse(ctx.req.headers.cookie, options);
280
+ }
281
+ if (isBrowser()) {
282
+ return cookie.parse(document.cookie, options);
283
+ }
284
+ return {};
285
+ }
286
+ exports.parseCookies = parseCookies;
287
+ /**
288
+ *
289
+ * Sets a cookie.
290
+ *
291
+ * @param ctx
292
+ * @param name
293
+ * @param value
294
+ * @param options
295
+ */
296
+ function setCookie$1(ctx, name, value, options) {
297
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
298
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
299
+ if (typeof cookies === 'string')
300
+ cookies = [cookies];
301
+ if (typeof cookies === 'number')
302
+ cookies = [];
303
+ var parsedCookies = setCookie.parse(cookies);
304
+ var cookiesToSet_1 = [];
305
+ parsedCookies.forEach(function (parsedCookie) {
306
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
307
+ cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
308
+ }
309
+ });
310
+ cookiesToSet_1.push(cookie.serialize(name, value, options));
311
+ if (!ctx.res.finished) {
312
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
313
+ }
314
+ }
315
+ if (isBrowser()) {
316
+ if (options && options.httpOnly) {
317
+ throw new Error('Can not set a httpOnly cookie in the browser.');
318
+ }
319
+ document.cookie = cookie.serialize(name, value, options);
320
+ }
321
+ return {};
322
+ }
323
+ exports.setCookie = setCookie$1;
324
+ /**
325
+ *
326
+ * Destroys a cookie with a particular name.
327
+ *
328
+ * @param ctx
329
+ * @param name
330
+ * @param options
331
+ */
332
+ function destroyCookie(ctx, name, options) {
333
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
334
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
335
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
336
+ if (typeof cookies === 'string')
337
+ cookies = [cookies];
338
+ if (typeof cookies === 'number')
339
+ cookies = [];
340
+ cookies.push(cookie.serialize(name, '', opts));
341
+ ctx.res.setHeader('Set-Cookie', cookies);
342
+ }
343
+ if (isBrowser()) {
344
+ document.cookie = cookie.serialize(name, '', opts);
345
+ }
346
+ return {};
347
+ }
348
+ exports.destroyCookie = destroyCookie;
349
+ exports.default = {
350
+ set: setCookie$1,
351
+ get: parseCookies,
352
+ destroy: destroyCookie,
353
+ };
354
+
355
+ });
356
+
357
+ unwrapExports(dist);
358
+ var dist_1 = dist.destroyCookie;
359
+ var dist_2 = dist.setCookie;
360
+ var dist_3 = dist.parseCookies;
361
+
13
362
  var _this = undefined;
14
363
 
15
364
  var getRelatedArticle = function () {
@@ -69,13 +418,13 @@ var getRelatedArticle = function () {
69
418
  conditions = '';
70
419
 
71
420
  if (ctx && url) {
72
- cookies = parseCookies(ctx);
421
+ cookies = dist_3(ctx);
73
422
  prevSlugs = cookies['prevSlugs'];
74
423
 
75
424
  if (!!prevSlugs) {
76
- setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
425
+ dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
77
426
  conditions = '&& !(url.current in [' + prevSlugs + '])';
78
- } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
427
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
79
428
  }
80
429
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
81
430
  _context.next = 12;
@@ -8,24 +8,24 @@ import './core.get-iterator-method-54d2e411.js';
8
8
  import './_object-pie-71ac75a4.js';
9
9
  import './extends-cc5da797.js';
10
10
  import './_object-sap-4d59d5bd.js';
11
- import './inherits-7ee3e0c1.js';
11
+ import './inherits-596840e8.js';
12
12
  import './define-property-de3fc946.js';
13
13
  import './web.dom.iterable-8956f9a5.js';
14
- import './typeof-08f2c380.js';
14
+ import './typeof-ee095d0c.js';
15
15
  import './_is-array-49698029.js';
16
16
  import 'react';
17
- import './index-93ec3c59.js';
17
+ import './index-1819118a.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
- import './moment-12415288.js';
21
+ import './moment-b6f49411.js';
22
22
  import 'next/router';
23
23
  import './isSymbol-807e927e.js';
24
24
  import './debounce-1a993acf.js';
25
25
  import 'react-dom';
26
26
  import './index-51a80699.js';
27
- import './index-5f9f807a.js';
28
- import './main-0465b2a0.js';
27
+ import './index-c5fd0af5.js';
28
+ import './main-edbd70ac.js';
29
29
  import './entities-7cc3bf45.js';
30
30
  import './stringify-008c8802.js';
31
31
  import './slicedToArray-7021e5df.js';
@@ -33,13 +33,13 @@ import './asyncToGenerator-7c654f36.js';
33
33
  import './_set-species-cede29f8.js';
34
34
  import './beam-681a9749.js';
35
35
  import './AdSlot.js';
36
- import './BlockContent-a614acdf.js';
36
+ import './BlockContent-d05b5b23.js';
37
37
  import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import 'react-bootstrap/Button';
41
- export { g as default } from './index-983cedab.js';
41
+ export { g as default } from './index-45bca0c4.js';
42
42
  import './util-7700fc59.js';
43
- import './brightcove-react-player-loader.es-83f53e4e.js';
43
+ import './brightcove-react-player-loader.es-4abff0b1.js';
44
44
  import 'react-bootstrap/Pagination';
45
45
  import 'next/head';
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import React__default from 'react';
2
+ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
5
  var domain;
@@ -1027,7 +1027,7 @@ Object.defineProperty(exports, "__esModule", {
1027
1027
  });
1028
1028
  exports.default = exports.Context = void 0;
1029
1029
 
1030
- var _react = _interopRequireDefault(React__default);
1030
+ var _react = _interopRequireDefault(React);
1031
1031
 
1032
1032
  var _propTypes = _interopRequireDefault(PropTypes);
1033
1033
 
@@ -1335,7 +1335,7 @@ Object.defineProperty(exports, "__esModule", {
1335
1335
  });
1336
1336
  exports.default = exports.AdSlot = void 0;
1337
1337
 
1338
- var _react = _interopRequireDefault(React__default);
1338
+ var _react = _interopRequireDefault(React);
1339
1339
 
1340
1340
  var _propTypes = _interopRequireDefault(PropTypes);
1341
1341