@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
@@ -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-b01e8612.js';
3
3
  import './core.get-iterator-method-66cf57ee.js';
4
4
  import './_library-528f1934.js';
@@ -6,9 +6,358 @@ import './_iter-detect-70af34ea.js';
6
6
  import './web.dom.iterable-5c830d3d.js';
7
7
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25aac66.js';
8
8
  import './_set-species-75f77d40.js';
9
- import { parseCookies, setCookie } from 'nookies';
9
+ import { c as cookie } from './index-db3bb315.js';
10
10
  import getQuery from './getQuery.js';
11
11
 
12
+ var defaultParseOptions = {
13
+ decodeValues: true,
14
+ map: false,
15
+ silent: false,
16
+ };
17
+
18
+ function isNonEmptyString(str) {
19
+ return typeof str === "string" && !!str.trim();
20
+ }
21
+
22
+ function parseString(setCookieValue, options) {
23
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
24
+ var nameValue = parts.shift().split("=");
25
+ var name = nameValue.shift();
26
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
27
+
28
+ options = options
29
+ ? Object.assign({}, defaultParseOptions, options)
30
+ : defaultParseOptions;
31
+
32
+ var cookie = {
33
+ name: name, // grab everything before the first =
34
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
35
+ };
36
+
37
+ parts.forEach(function (part) {
38
+ var sides = part.split("=");
39
+ var key = sides.shift().trimLeft().toLowerCase();
40
+ var value = sides.join("=");
41
+ if (key === "expires") {
42
+ cookie.expires = new Date(value);
43
+ } else if (key === "max-age") {
44
+ cookie.maxAge = parseInt(value, 10);
45
+ } else if (key === "secure") {
46
+ cookie.secure = true;
47
+ } else if (key === "httponly") {
48
+ cookie.httpOnly = true;
49
+ } else if (key === "samesite") {
50
+ cookie.sameSite = value;
51
+ } else {
52
+ cookie[key] = value;
53
+ }
54
+ });
55
+
56
+ return cookie;
57
+ }
58
+
59
+ function parse(input, options) {
60
+ options = options
61
+ ? Object.assign({}, defaultParseOptions, options)
62
+ : defaultParseOptions;
63
+
64
+ if (!input) {
65
+ if (!options.map) {
66
+ return [];
67
+ } else {
68
+ return {};
69
+ }
70
+ }
71
+
72
+ if (input.headers && input.headers["set-cookie"]) {
73
+ // fast-path for node.js (which automatically normalizes header names to lower-case
74
+ input = input.headers["set-cookie"];
75
+ } else if (input.headers) {
76
+ // slow-path for other environments - see #25
77
+ var sch =
78
+ input.headers[
79
+ Object.keys(input.headers).find(function (key) {
80
+ return key.toLowerCase() === "set-cookie";
81
+ })
82
+ ];
83
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
84
+ if (!sch && input.headers.cookie && !options.silent) {
85
+ console.warn(
86
+ "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."
87
+ );
88
+ }
89
+ input = sch;
90
+ }
91
+ if (!Array.isArray(input)) {
92
+ input = [input];
93
+ }
94
+
95
+ options = options
96
+ ? Object.assign({}, defaultParseOptions, options)
97
+ : defaultParseOptions;
98
+
99
+ if (!options.map) {
100
+ return input.filter(isNonEmptyString).map(function (str) {
101
+ return parseString(str, options);
102
+ });
103
+ } else {
104
+ var cookies = {};
105
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
106
+ var cookie = parseString(str, options);
107
+ cookies[cookie.name] = cookie;
108
+ return cookies;
109
+ }, cookies);
110
+ }
111
+ }
112
+
113
+ /*
114
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
115
+ that are within a single set-cookie field-value, such as in the Expires portion.
116
+
117
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
118
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
119
+ React Native's fetch does this for *every* header, including set-cookie.
120
+
121
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
122
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
123
+ */
124
+ function splitCookiesString(cookiesString) {
125
+ if (Array.isArray(cookiesString)) {
126
+ return cookiesString;
127
+ }
128
+ if (typeof cookiesString !== "string") {
129
+ return [];
130
+ }
131
+
132
+ var cookiesStrings = [];
133
+ var pos = 0;
134
+ var start;
135
+ var ch;
136
+ var lastComma;
137
+ var nextStart;
138
+ var cookiesSeparatorFound;
139
+
140
+ function skipWhitespace() {
141
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
142
+ pos += 1;
143
+ }
144
+ return pos < cookiesString.length;
145
+ }
146
+
147
+ function notSpecialChar() {
148
+ ch = cookiesString.charAt(pos);
149
+
150
+ return ch !== "=" && ch !== ";" && ch !== ",";
151
+ }
152
+
153
+ while (pos < cookiesString.length) {
154
+ start = pos;
155
+ cookiesSeparatorFound = false;
156
+
157
+ while (skipWhitespace()) {
158
+ ch = cookiesString.charAt(pos);
159
+ if (ch === ",") {
160
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
161
+ lastComma = pos;
162
+ pos += 1;
163
+
164
+ skipWhitespace();
165
+ nextStart = pos;
166
+
167
+ while (pos < cookiesString.length && notSpecialChar()) {
168
+ pos += 1;
169
+ }
170
+
171
+ // currently special character
172
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
173
+ // we found cookies separator
174
+ cookiesSeparatorFound = true;
175
+ // pos is inside the next cookie, so back up and return it.
176
+ pos = nextStart;
177
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
178
+ start = pos;
179
+ } else {
180
+ // in param ',' or param separator ';',
181
+ // we continue from that comma
182
+ pos = lastComma + 1;
183
+ }
184
+ } else {
185
+ pos += 1;
186
+ }
187
+ }
188
+
189
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
190
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
191
+ }
192
+ }
193
+
194
+ return cookiesStrings;
195
+ }
196
+
197
+ var setCookie = parse;
198
+ var parse_1 = parse;
199
+ var parseString_1 = parseString;
200
+ var splitCookiesString_1 = splitCookiesString;
201
+ setCookie.parse = parse_1;
202
+ setCookie.parseString = parseString_1;
203
+ setCookie.splitCookiesString = splitCookiesString_1;
204
+
205
+ var dist = createCommonjsModule(function (module, exports) {
206
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
207
+ __assign = Object.assign || function(t) {
208
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
209
+ s = arguments[i];
210
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
211
+ t[p] = s[p];
212
+ }
213
+ return t;
214
+ };
215
+ return __assign.apply(this, arguments);
216
+ };
217
+ Object.defineProperty(exports, "__esModule", { value: true });
218
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
219
+
220
+
221
+ var isBrowser = function () { return typeof window !== 'undefined'; };
222
+ function hasSameProperties(a, b) {
223
+ var aProps = Object.getOwnPropertyNames(a);
224
+ var bProps = Object.getOwnPropertyNames(b);
225
+ if (aProps.length !== bProps.length) {
226
+ return false;
227
+ }
228
+ for (var i = 0; i < aProps.length; i++) {
229
+ var propName = aProps[i];
230
+ if (a[propName] !== b[propName]) {
231
+ return false;
232
+ }
233
+ }
234
+ return true;
235
+ }
236
+ /**
237
+ * Compare the cookie and return true if the cookies has equivalent
238
+ * options and the cookies would be overwritten in the browser storage.
239
+ *
240
+ * @param a first Cookie for comparison
241
+ * @param b second Cookie for comparison
242
+ */
243
+ function areCookiesEqual(a, b) {
244
+ var sameSiteSame = a.sameSite === b.sameSite;
245
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
246
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
247
+ }
248
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
249
+ }
250
+ /**
251
+ * Create an instance of the Cookie interface
252
+ *
253
+ * @param name name of the Cookie
254
+ * @param value value of the Cookie
255
+ * @param options Cookie options
256
+ */
257
+ function createCookie(name, value, options) {
258
+ var sameSite = options.sameSite;
259
+ if (sameSite === true) {
260
+ sameSite = 'strict';
261
+ }
262
+ if (sameSite === undefined || sameSite === false) {
263
+ sameSite = 'lax';
264
+ }
265
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
266
+ delete cookieToSet.encode;
267
+ return __assign({ name: name, value: value }, cookieToSet);
268
+ }
269
+ /**
270
+ *
271
+ * Parses cookies.
272
+ *
273
+ * @param ctx
274
+ * @param options
275
+ */
276
+ function parseCookies(ctx, options) {
277
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
278
+ return cookie.parse(ctx.req.headers.cookie, options);
279
+ }
280
+ if (isBrowser()) {
281
+ return cookie.parse(document.cookie, options);
282
+ }
283
+ return {};
284
+ }
285
+ exports.parseCookies = parseCookies;
286
+ /**
287
+ *
288
+ * Sets a cookie.
289
+ *
290
+ * @param ctx
291
+ * @param name
292
+ * @param value
293
+ * @param options
294
+ */
295
+ function setCookie$1(ctx, name, value, options) {
296
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
297
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
298
+ if (typeof cookies === 'string')
299
+ cookies = [cookies];
300
+ if (typeof cookies === 'number')
301
+ cookies = [];
302
+ var parsedCookies = setCookie.parse(cookies);
303
+ var cookiesToSet_1 = [];
304
+ parsedCookies.forEach(function (parsedCookie) {
305
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
306
+ cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
307
+ }
308
+ });
309
+ cookiesToSet_1.push(cookie.serialize(name, value, options));
310
+ if (!ctx.res.finished) {
311
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
312
+ }
313
+ }
314
+ if (isBrowser()) {
315
+ if (options && options.httpOnly) {
316
+ throw new Error('Can not set a httpOnly cookie in the browser.');
317
+ }
318
+ document.cookie = cookie.serialize(name, value, options);
319
+ }
320
+ return {};
321
+ }
322
+ exports.setCookie = setCookie$1;
323
+ /**
324
+ *
325
+ * Destroys a cookie with a particular name.
326
+ *
327
+ * @param ctx
328
+ * @param name
329
+ * @param options
330
+ */
331
+ function destroyCookie(ctx, name, options) {
332
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
333
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
334
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
335
+ if (typeof cookies === 'string')
336
+ cookies = [cookies];
337
+ if (typeof cookies === 'number')
338
+ cookies = [];
339
+ cookies.push(cookie.serialize(name, '', opts));
340
+ ctx.res.setHeader('Set-Cookie', cookies);
341
+ }
342
+ if (isBrowser()) {
343
+ document.cookie = cookie.serialize(name, '', opts);
344
+ }
345
+ return {};
346
+ }
347
+ exports.destroyCookie = destroyCookie;
348
+ exports.default = {
349
+ set: setCookie$1,
350
+ get: parseCookies,
351
+ destroy: destroyCookie,
352
+ };
353
+
354
+ });
355
+
356
+ unwrapExports(dist);
357
+ var dist_1 = dist.destroyCookie;
358
+ var dist_2 = dist.setCookie;
359
+ var dist_3 = dist.parseCookies;
360
+
12
361
  var _this = undefined;
13
362
 
14
363
  var getRelatedArticle = function () {
@@ -61,13 +410,13 @@ var getRelatedArticle = function () {
61
410
  conditions = '';
62
411
 
63
412
  if (ctx && url) {
64
- cookies = parseCookies(ctx);
413
+ cookies = dist_3(ctx);
65
414
  prevSlugs = cookies['prevSlugs'];
66
415
 
67
416
  if (!!prevSlugs) {
68
- setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
417
+ dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
69
418
  conditions = '&& !(url.current in [' + prevSlugs + '])';
70
- } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
419
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
71
420
  }
72
421
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
73
422
  _context.next = 12;
@@ -24,7 +24,7 @@ import './debounce-a0d9abca.js';
24
24
  import 'react-dom';
25
25
  import './index-3849e3fe.js';
26
26
  import './index-5f9f807a.js';
27
- import './main-5d1e4bd3.js';
27
+ import './main-d7ee6151.js';
28
28
  import './entities-7cc3bf45.js';
29
29
  import './stringify-feadff37.js';
30
30
  import './slicedToArray-a58d7edf.js';
@@ -37,7 +37,7 @@ import './smoothscroll-4b699764.js';
37
37
  import './GroupDeck.js';
38
38
  import 'react-bootstrap';
39
39
  import 'react-bootstrap/Button';
40
- export { g as default } from './index-1df8b68e.js';
40
+ export { g as default } from './index-efc023e1.js';
41
41
  import './util-7700fc59.js';
42
42
  import './brightcove-react-player-loader.es-83f53e4e.js';
43
43
  import 'react-bootstrap/Pagination';
@@ -0,0 +1,207 @@
1
+ /*!
2
+ * cookie
3
+ * Copyright(c) 2012-2014 Roman Shtylman
4
+ * Copyright(c) 2015 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+ /**
9
+ * Module exports.
10
+ * @public
11
+ */
12
+
13
+ var parse_1 = parse;
14
+ var serialize_1 = serialize;
15
+
16
+ /**
17
+ * Module variables.
18
+ * @private
19
+ */
20
+
21
+ var decode = decodeURIComponent;
22
+ var encode = encodeURIComponent;
23
+ var pairSplitRegExp = /; */;
24
+
25
+ /**
26
+ * RegExp to match field-content in RFC 7230 sec 3.2
27
+ *
28
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
29
+ * field-vchar = VCHAR / obs-text
30
+ * obs-text = %x80-FF
31
+ */
32
+
33
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
34
+
35
+ /**
36
+ * Parse a cookie header.
37
+ *
38
+ * Parse the given cookie header string into an object
39
+ * The object has the various cookies as keys(names) => values
40
+ *
41
+ * @param {string} str
42
+ * @param {object} [options]
43
+ * @return {object}
44
+ * @public
45
+ */
46
+
47
+ function parse(str, options) {
48
+ if (typeof str !== 'string') {
49
+ throw new TypeError('argument str must be a string');
50
+ }
51
+
52
+ var obj = {};
53
+ var opt = options || {};
54
+ var pairs = str.split(pairSplitRegExp);
55
+ var dec = opt.decode || decode;
56
+
57
+ for (var i = 0; i < pairs.length; i++) {
58
+ var pair = pairs[i];
59
+ var eq_idx = pair.indexOf('=');
60
+
61
+ // skip things that don't look like key=value
62
+ if (eq_idx < 0) {
63
+ continue;
64
+ }
65
+
66
+ var key = pair.substr(0, eq_idx).trim();
67
+ var val = pair.substr(++eq_idx, pair.length).trim();
68
+
69
+ // quoted values
70
+ if ('"' == val[0]) {
71
+ val = val.slice(1, -1);
72
+ }
73
+
74
+ // only assign once
75
+ if (undefined == obj[key]) {
76
+ obj[key] = tryDecode(val, dec);
77
+ }
78
+ }
79
+
80
+ return obj;
81
+ }
82
+
83
+ /**
84
+ * Serialize data into a cookie header.
85
+ *
86
+ * Serialize the a name value pair into a cookie string suitable for
87
+ * http headers. An optional options object specified cookie parameters.
88
+ *
89
+ * serialize('foo', 'bar', { httpOnly: true })
90
+ * => "foo=bar; httpOnly"
91
+ *
92
+ * @param {string} name
93
+ * @param {string} val
94
+ * @param {object} [options]
95
+ * @return {string}
96
+ * @public
97
+ */
98
+
99
+ function serialize(name, val, options) {
100
+ var opt = options || {};
101
+ var enc = opt.encode || encode;
102
+
103
+ if (typeof enc !== 'function') {
104
+ throw new TypeError('option encode is invalid');
105
+ }
106
+
107
+ if (!fieldContentRegExp.test(name)) {
108
+ throw new TypeError('argument name is invalid');
109
+ }
110
+
111
+ var value = enc(val);
112
+
113
+ if (value && !fieldContentRegExp.test(value)) {
114
+ throw new TypeError('argument val is invalid');
115
+ }
116
+
117
+ var str = name + '=' + value;
118
+
119
+ if (null != opt.maxAge) {
120
+ var maxAge = opt.maxAge - 0;
121
+
122
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
123
+ throw new TypeError('option maxAge is invalid')
124
+ }
125
+
126
+ str += '; Max-Age=' + Math.floor(maxAge);
127
+ }
128
+
129
+ if (opt.domain) {
130
+ if (!fieldContentRegExp.test(opt.domain)) {
131
+ throw new TypeError('option domain is invalid');
132
+ }
133
+
134
+ str += '; Domain=' + opt.domain;
135
+ }
136
+
137
+ if (opt.path) {
138
+ if (!fieldContentRegExp.test(opt.path)) {
139
+ throw new TypeError('option path is invalid');
140
+ }
141
+
142
+ str += '; Path=' + opt.path;
143
+ }
144
+
145
+ if (opt.expires) {
146
+ if (typeof opt.expires.toUTCString !== 'function') {
147
+ throw new TypeError('option expires is invalid');
148
+ }
149
+
150
+ str += '; Expires=' + opt.expires.toUTCString();
151
+ }
152
+
153
+ if (opt.httpOnly) {
154
+ str += '; HttpOnly';
155
+ }
156
+
157
+ if (opt.secure) {
158
+ str += '; Secure';
159
+ }
160
+
161
+ if (opt.sameSite) {
162
+ var sameSite = typeof opt.sameSite === 'string'
163
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
164
+
165
+ switch (sameSite) {
166
+ case true:
167
+ str += '; SameSite=Strict';
168
+ break;
169
+ case 'lax':
170
+ str += '; SameSite=Lax';
171
+ break;
172
+ case 'strict':
173
+ str += '; SameSite=Strict';
174
+ break;
175
+ case 'none':
176
+ str += '; SameSite=None';
177
+ break;
178
+ default:
179
+ throw new TypeError('option sameSite is invalid');
180
+ }
181
+ }
182
+
183
+ return str;
184
+ }
185
+
186
+ /**
187
+ * Try decoding a string using a decoding function.
188
+ *
189
+ * @param {string} str
190
+ * @param {function} decode
191
+ * @private
192
+ */
193
+
194
+ function tryDecode(str, decode) {
195
+ try {
196
+ return decode(str);
197
+ } catch (e) {
198
+ return str;
199
+ }
200
+ }
201
+
202
+ var cookie = {
203
+ parse: parse_1,
204
+ serialize: serialize_1
205
+ };
206
+
207
+ export { cookie as c, parse_1 as p, serialize_1 as s };
@@ -11,7 +11,7 @@ import { m as moment } from './moment-e2f9b20c.js';
11
11
  import Router, { useRouter } from 'next/router';
12
12
  import { i as imageUrlBuilder } from './index-3849e3fe.js';
13
13
  import { L as LazyLoad } from './index-5f9f807a.js';
14
- import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
14
+ import { b as main_16, c as main_35, m as main_36 } from './main-d7ee6151.js';
15
15
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
16
16
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
17
17
  import { B as Beam, S as Segment } from './beam-c40d77ae.js';
package/dist/esm/index.js CHANGED
@@ -28,7 +28,7 @@ import 'react-dom';
28
28
  import './visibility-sensor-0baa4eea.js';
29
29
  import './index-3849e3fe.js';
30
30
  import './index-5f9f807a.js';
31
- import './main-5d1e4bd3.js';
31
+ import './main-d7ee6151.js';
32
32
  import './entities-7cc3bf45.js';
33
33
  import './stringify-feadff37.js';
34
34
  import './slicedToArray-a58d7edf.js';
@@ -36,10 +36,10 @@ import './asyncToGenerator-d25aac66.js';
36
36
  import './_set-species-75f77d40.js';
37
37
  export { B as Beam, S as Segment } from './beam-c40d77ae.js';
38
38
  export { default as AdSlot } from './AdSlot.js';
39
- import './ADInfeed-cab1e5a5.js';
39
+ import './ADInfeed-6cf59c26.js';
40
40
  export { default as DeckContent } from './DeckContent.js';
41
41
  import './lodash-ec8c6b48.js';
42
- import './ADlgInfeed-b65e5399.js';
42
+ import './ADlgInfeed-1529b85b.js';
43
43
  import './_arrayMap-818441dd.js';
44
44
  import './get-58d2f7cc.js';
45
45
  export { default as AD } from './AD.js';
@@ -72,7 +72,7 @@ import './index-ef6d5dcf.js';
72
72
  import './js.cookie-6874175c.js';
73
73
  export { default as EventsDeck } from './EventsDeck.js';
74
74
  export { default as CMEDeck } from './CMEDeck.js';
75
- export { g as getSerializers } from './index-1df8b68e.js';
75
+ export { g as getSerializers } from './index-efc023e1.js';
76
76
  import './util-7700fc59.js';
77
77
  import './brightcove-react-player-loader.es-83f53e4e.js';
78
78
  import 'react-bootstrap/Pagination';
@@ -105,7 +105,7 @@ import './index.esm-73e847d2.js';
105
105
  export { default as SocialIcons } from './SocialIcons.js';
106
106
  import 'react-bootstrap/Form';
107
107
  import 'react-bootstrap/FormControl';
108
- import './SocialSearchComponent-74c5add5.js';
108
+ import './SocialSearchComponent-8b6fee19.js';
109
109
  export { default as NavMagazine } from './NavMagazine.js';
110
110
  export { NavNative } from './NavNative.js';
111
111
  export { default as Search } from './Search.js';
@@ -154,9 +154,9 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
154
154
  export { default as KMTracker } from './KMTracker.js';
155
155
  export { default as getSeriesDetail } from './getSeriesDetail.js';
156
156
  export { default as SetCookie } from './SetCookie.js';
157
- import 'nookies';
158
- export { default as getQuery } from './getQuery.js';
157
+ import './index-db3bb315.js';
159
158
  export { default as getRelatedArticle } from './getRelatedArticle.js';
159
+ export { default as getQuery } from './getQuery.js';
160
160
  export { default as Auth } from './Auth.js';
161
161
  import 'swr';
162
162
  import 'passport-local';
@@ -848,4 +848,4 @@ var main_47 = main.osName;
848
848
  var main_48 = main.osVersion;
849
849
  var main_49 = main.withOrientationChange;
850
850
 
851
- export { main_37 as a, main_16 as b, main_35 as c, main_30 as d, main_36 as m };
851
+ export { main_37 as a, main_16 as b, main_35 as c, main_36 as m };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.626-iOS-chrome-fix-v2",
3
+ "version": "1.0.626-search-css-fix",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",