@mjhls/mjh-framework 1.0.626-iOS-chrome-fix-v2 → 1.0.626-search-css-fix

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 (81) hide show
  1. package/dist/cjs/AD300x250.js +1 -1
  2. package/dist/cjs/AD300x250x600.js +1 -1
  3. package/dist/cjs/AD728x90.js +1 -1
  4. package/dist/cjs/ADFloatingFooter.js +1 -1
  5. package/dist/cjs/ADGutter.js +1 -1
  6. package/dist/cjs/ADSkyscraper.js +1 -1
  7. package/dist/cjs/ADSponsoredResources.js +1 -1
  8. package/dist/cjs/ADWebcast.js +1 -1
  9. package/dist/cjs/ADWelcome.js +1 -1
  10. package/dist/cjs/AdSlot.js +1 -1
  11. package/dist/cjs/ArticleQueue.js +2 -2
  12. package/dist/cjs/Auth.js +6 -206
  13. package/dist/cjs/CMEDeck.js +1 -1
  14. package/dist/cjs/Column3.js +1 -1
  15. package/dist/cjs/DeckContent.js +2 -2
  16. package/dist/cjs/DeckQueue.js +1 -1
  17. package/dist/cjs/EventsDeck.js +1 -1
  18. package/dist/cjs/ExternalResources.js +2 -2
  19. package/dist/cjs/Feature.js +1 -1
  20. package/dist/cjs/GridContent.js +3 -3
  21. package/dist/cjs/HamMagazine.js +2 -2
  22. package/dist/cjs/IssueLanding.js +3 -3
  23. package/dist/cjs/LeftNav.js +1 -1
  24. package/dist/cjs/MasterDeck.js +3 -3
  25. package/dist/cjs/NavMagazine.js +2 -2
  26. package/dist/cjs/NavNative.js +1 -1
  27. package/dist/cjs/PartnerDetailListing.js +4 -4
  28. package/dist/cjs/QueueDeckExpanded.js +3 -3
  29. package/dist/cjs/{SocialSearchComponent-7febe148.js → SocialSearchComponent-f4c2b3c6.js} +4 -6
  30. package/dist/cjs/TemplateNormal.js +2 -2
  31. package/dist/cjs/Ustream.js +1 -1
  32. package/dist/cjs/View.js +4 -4
  33. package/dist/cjs/getRelatedArticle.js +354 -5
  34. package/dist/cjs/getSerializers.js +2 -2
  35. package/dist/cjs/{index-2cc1225c.js → index-9ea8efe8.js} +1 -1
  36. package/dist/cjs/index-bd6c9f56.js +211 -0
  37. package/dist/cjs/index.js +8 -8
  38. package/dist/cjs/{main-a4cb15bb.js → main-88348b15.js} +0 -1
  39. package/dist/esm/AD300x250.js +1 -1
  40. package/dist/esm/AD300x250x600.js +1 -1
  41. package/dist/esm/AD728x90.js +1 -1
  42. package/dist/esm/ADFloatingFooter.js +1 -1
  43. package/dist/esm/ADGutter.js +1 -1
  44. package/dist/esm/ADSkyscraper.js +1 -1
  45. package/dist/esm/ADSponsoredResources.js +1 -1
  46. package/dist/esm/ADWebcast.js +1 -1
  47. package/dist/esm/ADWelcome.js +1 -1
  48. package/dist/esm/AdSlot.js +1 -1
  49. package/dist/esm/ArticleQueue.js +2 -2
  50. package/dist/esm/Auth.js +1 -201
  51. package/dist/esm/CMEDeck.js +1 -1
  52. package/dist/esm/Column3.js +1 -1
  53. package/dist/esm/DeckContent.js +2 -2
  54. package/dist/esm/DeckQueue.js +1 -1
  55. package/dist/esm/EventsDeck.js +1 -1
  56. package/dist/esm/ExternalResources.js +2 -2
  57. package/dist/esm/Feature.js +1 -1
  58. package/dist/esm/GridContent.js +3 -3
  59. package/dist/esm/HamMagazine.js +2 -2
  60. package/dist/esm/IssueLanding.js +3 -3
  61. package/dist/esm/LeftNav.js +1 -1
  62. package/dist/esm/MasterDeck.js +3 -3
  63. package/dist/esm/NavMagazine.js +2 -2
  64. package/dist/esm/NavNative.js +1 -1
  65. package/dist/esm/PartnerDetailListing.js +4 -4
  66. package/dist/esm/QueueDeckExpanded.js +3 -3
  67. package/dist/esm/{SocialSearchComponent-74c5add5.js → SocialSearchComponent-8b6fee19.js} +4 -6
  68. package/dist/esm/TemplateNormal.js +2 -2
  69. package/dist/esm/Ustream.js +1 -1
  70. package/dist/esm/View.js +4 -4
  71. package/dist/esm/getRelatedArticle.js +354 -5
  72. package/dist/esm/getSerializers.js +2 -2
  73. package/dist/esm/index-db3bb315.js +207 -0
  74. package/dist/esm/{index-1df8b68e.js → index-efc023e1.js} +1 -1
  75. package/dist/esm/index.js +7 -7
  76. package/dist/esm/{main-5d1e4bd3.js → main-d7ee6151.js} +1 -1
  77. package/package.json +1 -1
  78. /package/dist/cjs/{ADInfeed-cbdb3a85.js → ADInfeed-bee48ae4.js} +0 -0
  79. /package/dist/cjs/{ADlgInfeed-abcaf930.js → ADlgInfeed-69156702.js} +0 -0
  80. /package/dist/esm/{ADInfeed-cab1e5a5.js → ADInfeed-6cf59c26.js} +0 -0
  81. /package/dist/esm/{ADlgInfeed-b65e5399.js → ADlgInfeed-1529b85b.js} +0 -0
@@ -4,7 +4,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
4
4
 
5
5
  var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
- var main = require('./main-a4cb15bb.js');
7
+ var main = require('./main-88348b15.js');
8
8
  var slicedToArray = require('./slicedToArray-8063ee51.js');
9
9
  var iconBase = require('./iconBase-68959171.js');
10
10
  var Button = _interopDefault(require('react-bootstrap/Button'));
@@ -19,9 +19,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
19
19
  website = _ref.website,
20
20
  navID = _ref.navID;
21
21
 
22
- console.log('isIOS:::::::::::::', main.main_30);
23
22
  // Search Term
24
-
25
23
  var _useState = React.useState(''),
26
24
  _useState2 = slicedToArray._slicedToArray(_useState, 2),
27
25
  searchKey = _useState2[0],
@@ -74,14 +72,14 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
74
72
  var searchBtn = document.getElementsByClassName(selector)[0];
75
73
  if (searchBtn && searchBtn.classList && searchBtn.classList.contains(addOn)) {
76
74
  // Set overflow fix for iPhones safari browsers
77
- if (main.main_37 || window.innerWidth < 1200 && main.main_30) {
75
+ if (main.main_37) {
78
76
  var mainNav = document.querySelector('#navbar-ham');
79
77
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
80
78
  }
81
79
  searchBtn.classList.remove(addOn);
82
80
  } else if (searchBtn && searchBtn.classList) {
83
81
  // Set overflow fix for iPhones safari browsers
84
- if (main.main_37 || window.innerWidth < 1200 && main.main_30) {
82
+ if (main.main_37) {
85
83
  var _mainNav = document.querySelector('#navbar-ham');
86
84
  if (_mainNav && _mainNav.style) _mainNav.style.overflow = 'visible';
87
85
  }
@@ -183,7 +181,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
183
181
  React__default.createElement(
184
182
  'style',
185
183
  { jsx: 'true' },
186
- '\n #search-content-mobile {\n display: flex;\n z-index: 999;\n }\n @media screen and (min-width: 1200px) {\n #search-content-mobile {\n display: none;\n }\n }\n #search-content-mobile .search-btn-mobile {\n padding: 5px;\n right: 4%;\n height: 35px;\n width: 35px;\n margin-top: 4px;\n cursor: pointer;\n }\n #search-content-mobile #search-bar-mobile {\n position: fixed;\n display: none;\n left: 0px;\n width: 100%;\n border-radius: 5px;\n padding: 10px;\n background-color: var(--primary);\n }\n #search-content-mobile #search-bar-mobile .form-inline {\n margin-top: 0px;\n width: 100% !important;\n }\n #search-content-mobile #search-bar-mobile .form-inline .form-control {\n width: 78%;\n border-radius: 5px;\n height: 45px;\n }\n #search-content-mobile #search-bar-mobile .form-inline .btn {\n width: 20%;\n border-radius: 5px;\n background-color: #040c5a;\n height: 45px;\n margin-left: 5px;\n padding: 1px;\n }\n #search-content-mobile .search-btn-mobile.active-search {\n border-radius: 5px;\n border: 1px solid var(--secondary);\n }\n #search-content-mobile #search-bar-mobile.show {\n display: block !important;\n }\n '
184
+ '\n #search-content-mobile {\n display: flex;\n z-index: 999;\n }\n @media screen and (min-width: 1200px) {\n #search-content-mobile {\n display: none;\n }\n }\n #search-content-mobile .search-btn-mobile {\n padding: 5px;\n right: 4%;\n height: 35px;\n width: 35px;\n margin-top: 4px;\n cursor: pointer;\n }\n #search-content-mobile #search-bar-mobile {\n position: absolute;\n display: none;\n left: 0px;\n width: 100%;\n border-radius: 5px;\n padding: 10px;\n background-color: var(--primary);\n }\n #search-content-mobile #search-bar-mobile .form-inline {\n margin-top: 0px;\n width: 100% !important;\n }\n #search-content-mobile #search-bar-mobile .form-inline .form-control {\n width: 78%;\n border-radius: 5px;\n height: 45px;\n }\n #search-content-mobile #search-bar-mobile .form-inline .btn {\n width: 20%;\n border-radius: 5px;\n background-color: #040c5a;\n height: 45px;\n margin-left: 5px;\n padding: 1px;\n }\n #search-content-mobile .search-btn-mobile.active-search {\n border-radius: 5px;\n border: 1px solid var(--secondary);\n }\n #search-content-mobile #search-bar-mobile.show {\n display: block !important;\n }\n '
187
185
  )
188
186
  );
189
187
  };
@@ -20,7 +20,7 @@ var Router = require('next/router');
20
20
  var Router__default = _interopDefault(Router);
21
21
  require('./isSymbol-488934a7.js');
22
22
  require('./debounce-32e57002.js');
23
- require('./main-a4cb15bb.js');
23
+ require('./main-88348b15.js');
24
24
  require('./stringify-7c5aff47.js');
25
25
  var slicedToArray = require('./slicedToArray-8063ee51.js');
26
26
  require('./asyncToGenerator-8e707718.js');
@@ -56,7 +56,7 @@ require('./index.esm-d1259b34.js');
56
56
  require('./SocialIcons.js');
57
57
  require('react-bootstrap/Form');
58
58
  require('react-bootstrap/FormControl');
59
- require('./SocialSearchComponent-7febe148.js');
59
+ require('./SocialSearchComponent-f4c2b3c6.js');
60
60
  var NavMagazine = require('./NavMagazine.js');
61
61
  var NavNative = require('./NavNative.js');
62
62
  require('./Search.js');
@@ -8,7 +8,7 @@ require('./core.get-iterator-method-41e87ec1.js');
8
8
  require('./web.dom.iterable-43c3e277.js');
9
9
  var React = require('react');
10
10
  var React__default = _interopDefault(React);
11
- var main = require('./main-a4cb15bb.js');
11
+ var main = require('./main-88348b15.js');
12
12
  var slicedToArray = require('./slicedToArray-8063ee51.js');
13
13
  require('./iconBase-68959171.js');
14
14
  var index_esm = require('./index.esm-876ca9ff.js');
package/dist/cjs/View.js CHANGED
@@ -31,7 +31,7 @@ var index_es = require('./index.es-9110add6.js');
31
31
  require('react-dom');
32
32
  require('./index-39beccb3.js');
33
33
  require('./index-fa0fb52c.js');
34
- var main = require('./main-a4cb15bb.js');
34
+ var main = require('./main-88348b15.js');
35
35
  require('./entities-310b46ee.js');
36
36
  var stringify = require('./stringify-7c5aff47.js');
37
37
  var slicedToArray = require('./slicedToArray-8063ee51.js');
@@ -44,7 +44,7 @@ require('./smoothscroll-95231a70.js');
44
44
  require('./GroupDeck.js');
45
45
  require('react-bootstrap');
46
46
  var Button = _interopDefault(require('react-bootstrap/Button'));
47
- var getSerializers = require('./index-2cc1225c.js');
47
+ var getSerializers = require('./index-9ea8efe8.js');
48
48
  require('./util-f2c1b65b.js');
49
49
  require('./brightcove-react-player-loader.es-156bd4d6.js');
50
50
  require('react-bootstrap/Pagination');
@@ -58,9 +58,9 @@ var keys$1 = require('./keys-a586b7a0.js');
58
58
  require('react-bootstrap/Dropdown');
59
59
  var getKeywords = require('./getKeywords.js');
60
60
  var getSeriesDetail = require('./getSeriesDetail.js');
61
- require('nookies');
62
- var getQuery = require('./getQuery.js');
61
+ require('./index-bd6c9f56.js');
63
62
  var getRelatedArticle = require('./getRelatedArticle.js');
63
+ var getQuery = require('./getQuery.js');
64
64
  var getTargeting = require('./getTargeting-5a0b8ee4.js');
65
65
  var urlFor = require('./urlFor.js');
66
66
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- require('./_commonjsHelpers-06173234.js');
3
+ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  require('./_to-object-329a650b.js');
5
5
  require('./core.get-iterator-method-41e87ec1.js');
6
6
  require('./_library-dd23b178.js');
@@ -8,9 +8,358 @@ require('./_iter-detect-4d0352f8.js');
8
8
  require('./web.dom.iterable-43c3e277.js');
9
9
  var asyncToGenerator = require('./asyncToGenerator-8e707718.js');
10
10
  require('./_set-species-4458e975.js');
11
- var nookies = require('nookies');
11
+ var index$4 = require('./index-bd6c9f56.js');
12
12
  var getQuery = require('./getQuery.js');
13
13
 
14
+ var defaultParseOptions = {
15
+ decodeValues: true,
16
+ map: false,
17
+ silent: false,
18
+ };
19
+
20
+ function isNonEmptyString(str) {
21
+ return typeof str === "string" && !!str.trim();
22
+ }
23
+
24
+ function parseString(setCookieValue, options) {
25
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
26
+ var nameValue = parts.shift().split("=");
27
+ var name = nameValue.shift();
28
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
29
+
30
+ options = options
31
+ ? Object.assign({}, defaultParseOptions, options)
32
+ : defaultParseOptions;
33
+
34
+ var cookie = {
35
+ name: name, // grab everything before the first =
36
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
37
+ };
38
+
39
+ parts.forEach(function (part) {
40
+ var sides = part.split("=");
41
+ var key = sides.shift().trimLeft().toLowerCase();
42
+ var value = sides.join("=");
43
+ if (key === "expires") {
44
+ cookie.expires = new Date(value);
45
+ } else if (key === "max-age") {
46
+ cookie.maxAge = parseInt(value, 10);
47
+ } else if (key === "secure") {
48
+ cookie.secure = true;
49
+ } else if (key === "httponly") {
50
+ cookie.httpOnly = true;
51
+ } else if (key === "samesite") {
52
+ cookie.sameSite = value;
53
+ } else {
54
+ cookie[key] = value;
55
+ }
56
+ });
57
+
58
+ return cookie;
59
+ }
60
+
61
+ function parse(input, options) {
62
+ options = options
63
+ ? Object.assign({}, defaultParseOptions, options)
64
+ : defaultParseOptions;
65
+
66
+ if (!input) {
67
+ if (!options.map) {
68
+ return [];
69
+ } else {
70
+ return {};
71
+ }
72
+ }
73
+
74
+ if (input.headers && input.headers["set-cookie"]) {
75
+ // fast-path for node.js (which automatically normalizes header names to lower-case
76
+ input = input.headers["set-cookie"];
77
+ } else if (input.headers) {
78
+ // slow-path for other environments - see #25
79
+ var sch =
80
+ input.headers[
81
+ Object.keys(input.headers).find(function (key) {
82
+ return key.toLowerCase() === "set-cookie";
83
+ })
84
+ ];
85
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
86
+ if (!sch && input.headers.cookie && !options.silent) {
87
+ console.warn(
88
+ "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."
89
+ );
90
+ }
91
+ input = sch;
92
+ }
93
+ if (!Array.isArray(input)) {
94
+ input = [input];
95
+ }
96
+
97
+ options = options
98
+ ? Object.assign({}, defaultParseOptions, options)
99
+ : defaultParseOptions;
100
+
101
+ if (!options.map) {
102
+ return input.filter(isNonEmptyString).map(function (str) {
103
+ return parseString(str, options);
104
+ });
105
+ } else {
106
+ var cookies = {};
107
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
108
+ var cookie = parseString(str, options);
109
+ cookies[cookie.name] = cookie;
110
+ return cookies;
111
+ }, cookies);
112
+ }
113
+ }
114
+
115
+ /*
116
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
117
+ that are within a single set-cookie field-value, such as in the Expires portion.
118
+
119
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
120
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
121
+ React Native's fetch does this for *every* header, including set-cookie.
122
+
123
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
124
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
125
+ */
126
+ function splitCookiesString(cookiesString) {
127
+ if (Array.isArray(cookiesString)) {
128
+ return cookiesString;
129
+ }
130
+ if (typeof cookiesString !== "string") {
131
+ return [];
132
+ }
133
+
134
+ var cookiesStrings = [];
135
+ var pos = 0;
136
+ var start;
137
+ var ch;
138
+ var lastComma;
139
+ var nextStart;
140
+ var cookiesSeparatorFound;
141
+
142
+ function skipWhitespace() {
143
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
144
+ pos += 1;
145
+ }
146
+ return pos < cookiesString.length;
147
+ }
148
+
149
+ function notSpecialChar() {
150
+ ch = cookiesString.charAt(pos);
151
+
152
+ return ch !== "=" && ch !== ";" && ch !== ",";
153
+ }
154
+
155
+ while (pos < cookiesString.length) {
156
+ start = pos;
157
+ cookiesSeparatorFound = false;
158
+
159
+ while (skipWhitespace()) {
160
+ ch = cookiesString.charAt(pos);
161
+ if (ch === ",") {
162
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
163
+ lastComma = pos;
164
+ pos += 1;
165
+
166
+ skipWhitespace();
167
+ nextStart = pos;
168
+
169
+ while (pos < cookiesString.length && notSpecialChar()) {
170
+ pos += 1;
171
+ }
172
+
173
+ // currently special character
174
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
175
+ // we found cookies separator
176
+ cookiesSeparatorFound = true;
177
+ // pos is inside the next cookie, so back up and return it.
178
+ pos = nextStart;
179
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
180
+ start = pos;
181
+ } else {
182
+ // in param ',' or param separator ';',
183
+ // we continue from that comma
184
+ pos = lastComma + 1;
185
+ }
186
+ } else {
187
+ pos += 1;
188
+ }
189
+ }
190
+
191
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
192
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
193
+ }
194
+ }
195
+
196
+ return cookiesStrings;
197
+ }
198
+
199
+ var setCookie = parse;
200
+ var parse_1 = parse;
201
+ var parseString_1 = parseString;
202
+ var splitCookiesString_1 = splitCookiesString;
203
+ setCookie.parse = parse_1;
204
+ setCookie.parseString = parseString_1;
205
+ setCookie.splitCookiesString = splitCookiesString_1;
206
+
207
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
208
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
209
+ __assign = Object.assign || function(t) {
210
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
211
+ s = arguments[i];
212
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
213
+ t[p] = s[p];
214
+ }
215
+ return t;
216
+ };
217
+ return __assign.apply(this, arguments);
218
+ };
219
+ Object.defineProperty(exports, "__esModule", { value: true });
220
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
221
+
222
+
223
+ var isBrowser = function () { return typeof window !== 'undefined'; };
224
+ function hasSameProperties(a, b) {
225
+ var aProps = Object.getOwnPropertyNames(a);
226
+ var bProps = Object.getOwnPropertyNames(b);
227
+ if (aProps.length !== bProps.length) {
228
+ return false;
229
+ }
230
+ for (var i = 0; i < aProps.length; i++) {
231
+ var propName = aProps[i];
232
+ if (a[propName] !== b[propName]) {
233
+ return false;
234
+ }
235
+ }
236
+ return true;
237
+ }
238
+ /**
239
+ * Compare the cookie and return true if the cookies has equivalent
240
+ * options and the cookies would be overwritten in the browser storage.
241
+ *
242
+ * @param a first Cookie for comparison
243
+ * @param b second Cookie for comparison
244
+ */
245
+ function areCookiesEqual(a, b) {
246
+ var sameSiteSame = a.sameSite === b.sameSite;
247
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
248
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
249
+ }
250
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
251
+ }
252
+ /**
253
+ * Create an instance of the Cookie interface
254
+ *
255
+ * @param name name of the Cookie
256
+ * @param value value of the Cookie
257
+ * @param options Cookie options
258
+ */
259
+ function createCookie(name, value, options) {
260
+ var sameSite = options.sameSite;
261
+ if (sameSite === true) {
262
+ sameSite = 'strict';
263
+ }
264
+ if (sameSite === undefined || sameSite === false) {
265
+ sameSite = 'lax';
266
+ }
267
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
268
+ delete cookieToSet.encode;
269
+ return __assign({ name: name, value: value }, cookieToSet);
270
+ }
271
+ /**
272
+ *
273
+ * Parses cookies.
274
+ *
275
+ * @param ctx
276
+ * @param options
277
+ */
278
+ function parseCookies(ctx, options) {
279
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
280
+ return index$4.cookie.parse(ctx.req.headers.cookie, options);
281
+ }
282
+ if (isBrowser()) {
283
+ return index$4.cookie.parse(document.cookie, options);
284
+ }
285
+ return {};
286
+ }
287
+ exports.parseCookies = parseCookies;
288
+ /**
289
+ *
290
+ * Sets a cookie.
291
+ *
292
+ * @param ctx
293
+ * @param name
294
+ * @param value
295
+ * @param options
296
+ */
297
+ function setCookie$1(ctx, name, value, options) {
298
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
299
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
300
+ if (typeof cookies === 'string')
301
+ cookies = [cookies];
302
+ if (typeof cookies === 'number')
303
+ cookies = [];
304
+ var parsedCookies = setCookie.parse(cookies);
305
+ var cookiesToSet_1 = [];
306
+ parsedCookies.forEach(function (parsedCookie) {
307
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
308
+ cookiesToSet_1.push(index$4.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
309
+ }
310
+ });
311
+ cookiesToSet_1.push(index$4.cookie.serialize(name, value, options));
312
+ if (!ctx.res.finished) {
313
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
314
+ }
315
+ }
316
+ if (isBrowser()) {
317
+ if (options && options.httpOnly) {
318
+ throw new Error('Can not set a httpOnly cookie in the browser.');
319
+ }
320
+ document.cookie = index$4.cookie.serialize(name, value, options);
321
+ }
322
+ return {};
323
+ }
324
+ exports.setCookie = setCookie$1;
325
+ /**
326
+ *
327
+ * Destroys a cookie with a particular name.
328
+ *
329
+ * @param ctx
330
+ * @param name
331
+ * @param options
332
+ */
333
+ function destroyCookie(ctx, name, options) {
334
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
335
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
336
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
337
+ if (typeof cookies === 'string')
338
+ cookies = [cookies];
339
+ if (typeof cookies === 'number')
340
+ cookies = [];
341
+ cookies.push(index$4.cookie.serialize(name, '', opts));
342
+ ctx.res.setHeader('Set-Cookie', cookies);
343
+ }
344
+ if (isBrowser()) {
345
+ document.cookie = index$4.cookie.serialize(name, '', opts);
346
+ }
347
+ return {};
348
+ }
349
+ exports.destroyCookie = destroyCookie;
350
+ exports.default = {
351
+ set: setCookie$1,
352
+ get: parseCookies,
353
+ destroy: destroyCookie,
354
+ };
355
+
356
+ });
357
+
358
+ _commonjsHelpers.unwrapExports(dist);
359
+ var dist_1 = dist.destroyCookie;
360
+ var dist_2 = dist.setCookie;
361
+ var dist_3 = dist.parseCookies;
362
+
14
363
  var _this = undefined;
15
364
 
16
365
  var getRelatedArticle = function () {
@@ -63,13 +412,13 @@ var getRelatedArticle = function () {
63
412
  conditions = '';
64
413
 
65
414
  if (ctx && url) {
66
- cookies = nookies.parseCookies(ctx);
415
+ cookies = dist_3(ctx);
67
416
  prevSlugs = cookies['prevSlugs'];
68
417
 
69
418
  if (!!prevSlugs) {
70
- nookies.setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
419
+ dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
71
420
  conditions = '&& !(url.current in [' + prevSlugs + '])';
72
- } else nookies.setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
421
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
73
422
  }
74
423
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
75
424
  _context.next = 12;
@@ -26,7 +26,7 @@ require('./debounce-32e57002.js');
26
26
  require('react-dom');
27
27
  require('./index-39beccb3.js');
28
28
  require('./index-fa0fb52c.js');
29
- require('./main-a4cb15bb.js');
29
+ require('./main-88348b15.js');
30
30
  require('./entities-310b46ee.js');
31
31
  require('./stringify-7c5aff47.js');
32
32
  require('./slicedToArray-8063ee51.js');
@@ -39,7 +39,7 @@ require('./smoothscroll-95231a70.js');
39
39
  require('./GroupDeck.js');
40
40
  require('react-bootstrap');
41
41
  require('react-bootstrap/Button');
42
- var getSerializers = require('./index-2cc1225c.js');
42
+ var getSerializers = require('./index-9ea8efe8.js');
43
43
  require('./util-f2c1b65b.js');
44
44
  require('./brightcove-react-player-loader.es-156bd4d6.js');
45
45
  require('react-bootstrap/Pagination');
@@ -17,7 +17,7 @@ var Router = require('next/router');
17
17
  var Router__default = _interopDefault(Router);
18
18
  var index$1 = require('./index-39beccb3.js');
19
19
  var index$2 = require('./index-fa0fb52c.js');
20
- var main = require('./main-a4cb15bb.js');
20
+ var main = require('./main-88348b15.js');
21
21
  var entities = require('./entities-310b46ee.js');
22
22
  var slicedToArray = require('./slicedToArray-8063ee51.js');
23
23
  var Segment = require('./beam-d22818d3.js');