@mjhls/mjh-framework 1.0.529 → 1.0.530
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.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +7 -8
- package/dist/cjs/AD300x250x600.js +7 -8
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-393c6084.js → ADInfeed-d8e47444.js} +9 -11
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-dd4e103e.js → ADlgInfeed-947c3a47.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -15
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleQueue.js +114 -117
- package/dist/cjs/Auth.js +344 -232
- package/dist/cjs/{AuthorComponent-5bb8f868.js → AuthorComponent-cb8b8128.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-77f81ffc.js} +24 -26
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +18 -19
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +73 -77
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-a06d722a.js → Dfp-fcdeabc4.js} +20 -22
- package/dist/cjs/EventsDeck.js +89 -96
- package/dist/cjs/ExternalResources.js +42 -43
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/{Figure-85d19c5f.js → Figure-eeac313a.js} +20 -21
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +145 -149
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +33 -34
- package/dist/cjs/HamMagazine.js +104 -109
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/{InscreenSensor-1f9f7db4.js → InscreenSensor-3aec8492.js} +7 -8
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +18 -19
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +52 -53
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +107 -112
- package/dist/cjs/NavNative.js +66 -71
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +130 -132
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +44 -48
- package/dist/cjs/QueueDeckExpanded.js +187 -187
- package/dist/cjs/RelatedContent.js +18 -19
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +17 -18
- package/dist/cjs/{SocialNavFooter-d9ab4d17.js → SocialNavFooter-9a07520f.js} +17 -18
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +38 -39
- package/dist/cjs/View.js +160 -165
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +42 -43
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +652 -674
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-3d208b98.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-637d3f1e.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-8a3fb0bc.js → index-fa0fb52c.js} +10 -13
- package/dist/cjs/{index-44481153.js → index-fa3cec70.js} +14 -14
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2ea63d18.js → index.esm-25423c2f.js} +6 -3
- package/dist/cjs/{index.esm-c8d2c195.js → index.esm-c0d8b44b.js} +9 -4
- package/dist/cjs/{index.esm-d7e04264.js → index.esm-fcdbd2c6.js} +15 -6
- package/dist/cjs/index.js +32 -32
- package/dist/cjs/{inherits-4a2f1cc3.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-c50facd7.js → main-88348b15.js} +53 -89
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-cd0d9d3b.js} +11 -13
- package/dist/cjs/{typeof-583cdc4b.js → typeof-1869832c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +5 -5
- package/dist/esm/AD300x250x600.js +5 -5
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-1dd2344b.js → ADInfeed-2eb234ae.js} +5 -5
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWebcast.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-cecd5e76.js → ADlgInfeed-17c13711.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +100 -100
- package/dist/esm/Auth.js +326 -210
- package/dist/esm/{AuthorComponent-f67cb027.js → AuthorComponent-158226c9.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +14 -14
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +54 -54
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-0557840a.js → Dfp-81a052c2.js} +10 -10
- package/dist/esm/EventsDeck.js +47 -47
- package/dist/esm/ExternalResources.js +36 -36
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/{Figure-0b6d360c.js → Figure-bc2b95d7.js} +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +107 -107
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +30 -30
- package/dist/esm/HamMagazine.js +77 -77
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/{InscreenSensor-3e1fe82a.js → InscreenSensor-280b2b10.js} +5 -5
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +16 -16
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +82 -82
- package/dist/esm/NavNative.js +48 -48
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +69 -69
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +25 -25
- package/dist/esm/QueueDeckExpanded.js +168 -168
- package/dist/esm/RelatedContent.js +15 -15
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialNavFooter-1a531144.js → SocialNavFooter-4fb16720.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TemplateNormal.js +28 -28
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +130 -130
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +33 -33
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +614 -631
- package/dist/esm/{index-1819118a.js → index-3f4dd6f2.js} +9 -7
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-d3249151.js → index.esm-9d6faf80.js} +9 -4
- package/dist/esm/{index.esm-be9486fc.js → index.esm-a7ad65ba.js} +6 -3
- package/dist/esm/{index.esm-4b1810e3.js → index.esm-b97cf389.js} +15 -6
- package/dist/esm/index.js +26 -26
- package/dist/esm/{inherits-2758cc14.js → inherits-b8e4c697.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-b722e2e2.js → main-d7ee6151.js} +52 -87
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-7e72fee0.js → typeof-5f046efd.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
package/dist/esm/Auth.js
CHANGED
|
@@ -6,7 +6,7 @@ import './_iter-detect-6e099a34.js';
|
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
7
7
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
8
8
|
import './web.dom.iterable-46c95e52.js';
|
|
9
|
-
import
|
|
9
|
+
import React__default, { useEffect, useState } from 'react';
|
|
10
10
|
import Router from 'next/router';
|
|
11
11
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-f1e40361.js';
|
|
12
12
|
import { _ as _JSON$stringify } from './stringify-e30bc114.js';
|
|
@@ -14,7 +14,6 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-037
|
|
|
14
14
|
import './_set-species-6f64f1c1.js';
|
|
15
15
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
16
16
|
import { u as util } from './util-7700fc59.js';
|
|
17
|
-
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
18
17
|
import useSWR from 'swr';
|
|
19
18
|
import Local from 'passport-local';
|
|
20
19
|
import mysql from 'mysql';
|
|
@@ -56,21 +55,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
59
|
-
return
|
|
58
|
+
return React__default.createElement(
|
|
60
59
|
Form.Group,
|
|
61
60
|
_extends({}, opts, { controlId: name }),
|
|
62
|
-
|
|
61
|
+
React__default.createElement(
|
|
63
62
|
Form.Label,
|
|
64
63
|
{ kye: name + '_label' },
|
|
65
64
|
label,
|
|
66
|
-
required &&
|
|
65
|
+
required && React__default.createElement(
|
|
67
66
|
'span',
|
|
68
67
|
{ style: { color: 'red' } },
|
|
69
68
|
'*'
|
|
70
69
|
)
|
|
71
70
|
),
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
React__default.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
72
|
+
React__default.createElement(
|
|
74
73
|
Form.Control.Feedback,
|
|
75
74
|
{ key: name + '_feedback', type: 'invalid' },
|
|
76
75
|
errors[name]
|
|
@@ -78,28 +77,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
78
77
|
);
|
|
79
78
|
}
|
|
80
79
|
if (type == 'select') {
|
|
81
|
-
return
|
|
80
|
+
return React__default.createElement(
|
|
82
81
|
Form.Group,
|
|
83
82
|
_extends({}, opts, { key: name, controlId: name }),
|
|
84
|
-
|
|
83
|
+
React__default.createElement(
|
|
85
84
|
Form.Label,
|
|
86
85
|
{ key: name + '_' + label },
|
|
87
86
|
label,
|
|
88
|
-
required &&
|
|
87
|
+
required && React__default.createElement(
|
|
89
88
|
'span',
|
|
90
89
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
91
90
|
'*'
|
|
92
91
|
)
|
|
93
92
|
),
|
|
94
|
-
|
|
93
|
+
React__default.createElement(
|
|
95
94
|
Form.Control,
|
|
96
95
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
97
|
-
|
|
96
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
98
97
|
options.map(function (option, index) {
|
|
99
98
|
var value = option.value ? option.value : option;
|
|
100
99
|
var label = option.label ? option.label : option;
|
|
101
100
|
var key = name + '_options_' + index;
|
|
102
|
-
return
|
|
101
|
+
return React__default.createElement(
|
|
103
102
|
'option',
|
|
104
103
|
{ key: key, value: value },
|
|
105
104
|
label
|
|
@@ -110,25 +109,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
if (type == 'radio' || type == 'checkbox') {
|
|
113
|
-
return
|
|
112
|
+
return React__default.createElement(
|
|
114
113
|
Form.Group,
|
|
115
114
|
opts,
|
|
116
|
-
|
|
115
|
+
React__default.createElement(
|
|
117
116
|
Form.Label,
|
|
118
117
|
null,
|
|
119
118
|
label,
|
|
120
|
-
required &&
|
|
119
|
+
required && React__default.createElement(
|
|
121
120
|
'span',
|
|
122
121
|
{ style: { color: 'red' } },
|
|
123
122
|
'*'
|
|
124
123
|
)
|
|
125
124
|
),
|
|
126
125
|
options.map(function (option, index) {
|
|
127
|
-
return
|
|
126
|
+
return React__default.createElement(
|
|
128
127
|
Form.Check,
|
|
129
128
|
{ type: type, key: index, required: required },
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
React__default.createElement(Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
|
|
130
|
+
React__default.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
132
131
|
);
|
|
133
132
|
})
|
|
134
133
|
);
|
|
@@ -335,43 +334,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
335
334
|
loading = _useState4[0],
|
|
336
335
|
setLoading = _useState4[1];
|
|
337
336
|
|
|
338
|
-
return
|
|
337
|
+
return React__default.createElement(
|
|
339
338
|
Form,
|
|
340
339
|
{ className: 'login', onSubmit: handleSubmit },
|
|
341
|
-
|
|
340
|
+
React__default.createElement(
|
|
342
341
|
'h1',
|
|
343
342
|
null,
|
|
344
343
|
'Login'
|
|
345
344
|
),
|
|
346
|
-
|
|
345
|
+
React__default.createElement('hr', null),
|
|
347
346
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
348
347
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
React__default.createElement('hr', null),
|
|
349
|
+
React__default.createElement(
|
|
351
350
|
Form.Row,
|
|
352
351
|
null,
|
|
353
|
-
|
|
352
|
+
React__default.createElement(
|
|
354
353
|
Form.Group,
|
|
355
354
|
{ as: Col },
|
|
356
|
-
|
|
355
|
+
React__default.createElement(
|
|
357
356
|
'a',
|
|
358
357
|
{ href: '/auth/signup' },
|
|
359
358
|
'I don\'t have an account'
|
|
360
359
|
)
|
|
361
360
|
),
|
|
362
|
-
|
|
361
|
+
React__default.createElement(
|
|
363
362
|
Form.Group,
|
|
364
363
|
{ as: Col, className: 'text-right' },
|
|
365
|
-
!loading &&
|
|
364
|
+
!loading && React__default.createElement(
|
|
366
365
|
Button,
|
|
367
366
|
{ type: 'submit' },
|
|
368
367
|
'Login'
|
|
369
368
|
),
|
|
370
|
-
loading &&
|
|
369
|
+
loading && React__default.createElement(
|
|
371
370
|
Button,
|
|
372
371
|
{ variant: 'primary', disabled: true },
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
React__default.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
373
|
+
React__default.createElement(
|
|
375
374
|
'span',
|
|
376
375
|
{ className: 'sr-only' },
|
|
377
376
|
'Loading...'
|
|
@@ -379,12 +378,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
379
378
|
)
|
|
380
379
|
)
|
|
381
380
|
),
|
|
382
|
-
errorMsg &&
|
|
381
|
+
errorMsg && React__default.createElement(
|
|
383
382
|
'p',
|
|
384
383
|
{ className: 'error' },
|
|
385
384
|
errorMsg
|
|
386
385
|
),
|
|
387
|
-
|
|
386
|
+
React__default.createElement(
|
|
388
387
|
'style',
|
|
389
388
|
{ jsx: 'true'.toString() },
|
|
390
389
|
'\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -640,29 +639,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
640
639
|
loading = _useState14[0],
|
|
641
640
|
setLoading = _useState14[1];
|
|
642
641
|
|
|
643
|
-
return
|
|
642
|
+
return React__default.createElement(
|
|
644
643
|
Form,
|
|
645
644
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
646
|
-
|
|
645
|
+
React__default.createElement(
|
|
647
646
|
'h1',
|
|
648
647
|
null,
|
|
649
648
|
'Sign Up'
|
|
650
649
|
),
|
|
651
|
-
|
|
650
|
+
React__default.createElement('hr', null),
|
|
652
651
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
653
|
-
|
|
652
|
+
React__default.createElement(
|
|
654
653
|
Form.Row,
|
|
655
654
|
null,
|
|
656
655
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
657
656
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
658
657
|
),
|
|
659
|
-
|
|
658
|
+
React__default.createElement(
|
|
660
659
|
Form.Row,
|
|
661
660
|
null,
|
|
662
661
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
663
662
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
664
663
|
),
|
|
665
|
-
|
|
664
|
+
React__default.createElement(
|
|
666
665
|
Form.Row,
|
|
667
666
|
null,
|
|
668
667
|
returnFormField({
|
|
@@ -676,7 +675,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
676
675
|
}),
|
|
677
676
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
678
677
|
),
|
|
679
|
-
|
|
678
|
+
React__default.createElement(
|
|
680
679
|
Form.Row,
|
|
681
680
|
null,
|
|
682
681
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -723,38 +722,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
723
722
|
required: true,
|
|
724
723
|
options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
725
724
|
}),
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
React__default.createElement('hr', null),
|
|
726
|
+
React__default.createElement(
|
|
728
727
|
Form.Row,
|
|
729
728
|
null,
|
|
730
|
-
|
|
729
|
+
React__default.createElement(
|
|
731
730
|
Form.Group,
|
|
732
731
|
{ as: Col },
|
|
733
|
-
|
|
732
|
+
React__default.createElement(
|
|
734
733
|
'a',
|
|
735
734
|
{ href: '/auth/login' },
|
|
736
735
|
'I already have an account'
|
|
737
736
|
)
|
|
738
737
|
),
|
|
739
|
-
|
|
738
|
+
React__default.createElement(
|
|
740
739
|
Form.Group,
|
|
741
740
|
{ as: Col, className: 'text-right' },
|
|
742
|
-
!loading &&
|
|
741
|
+
!loading && React__default.createElement(
|
|
743
742
|
Button,
|
|
744
743
|
{ type: 'submit' },
|
|
745
744
|
'Sign Up'
|
|
746
745
|
),
|
|
747
|
-
loading &&
|
|
746
|
+
loading && React__default.createElement(
|
|
748
747
|
Button,
|
|
749
748
|
{ variant: 'primary', disabled: true },
|
|
750
|
-
|
|
749
|
+
React__default.createElement(Spinner, {
|
|
751
750
|
as: 'span',
|
|
752
751
|
animation: 'border',
|
|
753
752
|
role: 'status',
|
|
754
753
|
'aria-hidden': 'true',
|
|
755
754
|
size: 'sm'
|
|
756
755
|
}),
|
|
757
|
-
|
|
756
|
+
React__default.createElement(
|
|
758
757
|
'span',
|
|
759
758
|
{ className: 'sr-only' },
|
|
760
759
|
'Loading...'
|
|
@@ -762,12 +761,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
762
761
|
)
|
|
763
762
|
)
|
|
764
763
|
),
|
|
765
|
-
errorMsg &&
|
|
764
|
+
errorMsg && React__default.createElement(
|
|
766
765
|
'p',
|
|
767
766
|
{ className: 'error' },
|
|
768
767
|
errorMsg
|
|
769
768
|
),
|
|
770
|
-
|
|
769
|
+
React__default.createElement(
|
|
771
770
|
'style',
|
|
772
771
|
{ jsx: 'true'.toString() },
|
|
773
772
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1057,32 +1056,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1057
1056
|
loading = _useState18[0],
|
|
1058
1057
|
setLoading = _useState18[1];
|
|
1059
1058
|
|
|
1060
|
-
return
|
|
1059
|
+
return React__default.createElement(
|
|
1061
1060
|
Form,
|
|
1062
1061
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1063
|
-
|
|
1062
|
+
React__default.createElement(
|
|
1064
1063
|
'h1',
|
|
1065
1064
|
null,
|
|
1066
1065
|
'Profile'
|
|
1067
1066
|
),
|
|
1068
|
-
|
|
1069
|
-
userData ?
|
|
1070
|
-
|
|
1067
|
+
React__default.createElement('hr', null),
|
|
1068
|
+
userData ? React__default.createElement(
|
|
1069
|
+
React__default.Fragment,
|
|
1071
1070
|
null,
|
|
1072
1071
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1073
|
-
|
|
1072
|
+
React__default.createElement(
|
|
1074
1073
|
Form.Row,
|
|
1075
1074
|
null,
|
|
1076
1075
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1077
1076
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1078
1077
|
),
|
|
1079
|
-
|
|
1078
|
+
React__default.createElement(
|
|
1080
1079
|
Form.Row,
|
|
1081
1080
|
null,
|
|
1082
1081
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1083
1082
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1084
1083
|
),
|
|
1085
|
-
|
|
1084
|
+
React__default.createElement(
|
|
1086
1085
|
Form.Row,
|
|
1087
1086
|
null,
|
|
1088
1087
|
returnFormField({
|
|
@@ -1097,7 +1096,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1097
1096
|
}),
|
|
1098
1097
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1099
1098
|
),
|
|
1100
|
-
|
|
1099
|
+
React__default.createElement(
|
|
1101
1100
|
Form.Row,
|
|
1102
1101
|
null,
|
|
1103
1102
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1147,29 +1146,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1147
1146
|
required: true,
|
|
1148
1147
|
options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
1149
1148
|
}),
|
|
1150
|
-
|
|
1151
|
-
|
|
1149
|
+
React__default.createElement('hr', null),
|
|
1150
|
+
React__default.createElement(
|
|
1152
1151
|
Form.Row,
|
|
1153
1152
|
null,
|
|
1154
|
-
|
|
1153
|
+
React__default.createElement(
|
|
1155
1154
|
Form.Group,
|
|
1156
1155
|
{ as: Col },
|
|
1157
|
-
!loading &&
|
|
1156
|
+
!loading && React__default.createElement(
|
|
1158
1157
|
Button,
|
|
1159
1158
|
{ type: 'submit' },
|
|
1160
1159
|
'Update'
|
|
1161
1160
|
),
|
|
1162
|
-
loading &&
|
|
1161
|
+
loading && React__default.createElement(
|
|
1163
1162
|
Button,
|
|
1164
1163
|
{ variant: 'primary', disabled: true },
|
|
1165
|
-
|
|
1164
|
+
React__default.createElement(Spinner, {
|
|
1166
1165
|
as: 'span',
|
|
1167
1166
|
animation: 'border',
|
|
1168
1167
|
role: 'status',
|
|
1169
1168
|
'aria-hidden': 'true',
|
|
1170
1169
|
size: 'sm'
|
|
1171
1170
|
}),
|
|
1172
|
-
|
|
1171
|
+
React__default.createElement(
|
|
1173
1172
|
'span',
|
|
1174
1173
|
{ className: 'sr-only' },
|
|
1175
1174
|
'Loading...'
|
|
@@ -1177,24 +1176,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1177
1176
|
)
|
|
1178
1177
|
)
|
|
1179
1178
|
)
|
|
1180
|
-
) :
|
|
1179
|
+
) : React__default.createElement(Spinner, {
|
|
1181
1180
|
as: 'span',
|
|
1182
1181
|
animation: 'border',
|
|
1183
1182
|
role: 'status',
|
|
1184
1183
|
'aria-hidden': 'true',
|
|
1185
1184
|
size: 'sm'
|
|
1186
1185
|
}),
|
|
1187
|
-
errorMsg &&
|
|
1186
|
+
errorMsg && React__default.createElement(
|
|
1188
1187
|
'p',
|
|
1189
1188
|
{ className: 'error' },
|
|
1190
1189
|
errorMsg
|
|
1191
1190
|
),
|
|
1192
|
-
successMsg &&
|
|
1191
|
+
successMsg && React__default.createElement(
|
|
1193
1192
|
'p',
|
|
1194
1193
|
{ className: 'success' },
|
|
1195
1194
|
successMsg
|
|
1196
1195
|
),
|
|
1197
|
-
|
|
1196
|
+
React__default.createElement(
|
|
1198
1197
|
'style',
|
|
1199
1198
|
{ jsx: 'true'.toString() },
|
|
1200
1199
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1202,6 +1201,207 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1201
|
);
|
|
1203
1202
|
};
|
|
1204
1203
|
|
|
1204
|
+
/*!
|
|
1205
|
+
* cookie
|
|
1206
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1207
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1208
|
+
* MIT Licensed
|
|
1209
|
+
*/
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Module exports.
|
|
1213
|
+
* @public
|
|
1214
|
+
*/
|
|
1215
|
+
|
|
1216
|
+
var parse_1 = parse;
|
|
1217
|
+
var serialize_1 = serialize;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Module variables.
|
|
1221
|
+
* @private
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
var decode = decodeURIComponent;
|
|
1225
|
+
var encode = encodeURIComponent;
|
|
1226
|
+
var pairSplitRegExp = /; */;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1230
|
+
*
|
|
1231
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1232
|
+
* field-vchar = VCHAR / obs-text
|
|
1233
|
+
* obs-text = %x80-FF
|
|
1234
|
+
*/
|
|
1235
|
+
|
|
1236
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Parse a cookie header.
|
|
1240
|
+
*
|
|
1241
|
+
* Parse the given cookie header string into an object
|
|
1242
|
+
* The object has the various cookies as keys(names) => values
|
|
1243
|
+
*
|
|
1244
|
+
* @param {string} str
|
|
1245
|
+
* @param {object} [options]
|
|
1246
|
+
* @return {object}
|
|
1247
|
+
* @public
|
|
1248
|
+
*/
|
|
1249
|
+
|
|
1250
|
+
function parse(str, options) {
|
|
1251
|
+
if (typeof str !== 'string') {
|
|
1252
|
+
throw new TypeError('argument str must be a string');
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
var obj = {};
|
|
1256
|
+
var opt = options || {};
|
|
1257
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1258
|
+
var dec = opt.decode || decode;
|
|
1259
|
+
|
|
1260
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1261
|
+
var pair = pairs[i];
|
|
1262
|
+
var eq_idx = pair.indexOf('=');
|
|
1263
|
+
|
|
1264
|
+
// skip things that don't look like key=value
|
|
1265
|
+
if (eq_idx < 0) {
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1270
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1271
|
+
|
|
1272
|
+
// quoted values
|
|
1273
|
+
if ('"' == val[0]) {
|
|
1274
|
+
val = val.slice(1, -1);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
// only assign once
|
|
1278
|
+
if (undefined == obj[key]) {
|
|
1279
|
+
obj[key] = tryDecode(val, dec);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
return obj;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Serialize data into a cookie header.
|
|
1288
|
+
*
|
|
1289
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1290
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1291
|
+
*
|
|
1292
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1293
|
+
* => "foo=bar; httpOnly"
|
|
1294
|
+
*
|
|
1295
|
+
* @param {string} name
|
|
1296
|
+
* @param {string} val
|
|
1297
|
+
* @param {object} [options]
|
|
1298
|
+
* @return {string}
|
|
1299
|
+
* @public
|
|
1300
|
+
*/
|
|
1301
|
+
|
|
1302
|
+
function serialize(name, val, options) {
|
|
1303
|
+
var opt = options || {};
|
|
1304
|
+
var enc = opt.encode || encode;
|
|
1305
|
+
|
|
1306
|
+
if (typeof enc !== 'function') {
|
|
1307
|
+
throw new TypeError('option encode is invalid');
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1311
|
+
throw new TypeError('argument name is invalid');
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
var value = enc(val);
|
|
1315
|
+
|
|
1316
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1317
|
+
throw new TypeError('argument val is invalid');
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
var str = name + '=' + value;
|
|
1321
|
+
|
|
1322
|
+
if (null != opt.maxAge) {
|
|
1323
|
+
var maxAge = opt.maxAge - 0;
|
|
1324
|
+
|
|
1325
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1326
|
+
throw new TypeError('option maxAge is invalid')
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
if (opt.domain) {
|
|
1333
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1334
|
+
throw new TypeError('option domain is invalid');
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
str += '; Domain=' + opt.domain;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
if (opt.path) {
|
|
1341
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1342
|
+
throw new TypeError('option path is invalid');
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
str += '; Path=' + opt.path;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
if (opt.expires) {
|
|
1349
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1350
|
+
throw new TypeError('option expires is invalid');
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
if (opt.httpOnly) {
|
|
1357
|
+
str += '; HttpOnly';
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (opt.secure) {
|
|
1361
|
+
str += '; Secure';
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
if (opt.sameSite) {
|
|
1365
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1366
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1367
|
+
|
|
1368
|
+
switch (sameSite) {
|
|
1369
|
+
case true:
|
|
1370
|
+
str += '; SameSite=Strict';
|
|
1371
|
+
break;
|
|
1372
|
+
case 'lax':
|
|
1373
|
+
str += '; SameSite=Lax';
|
|
1374
|
+
break;
|
|
1375
|
+
case 'strict':
|
|
1376
|
+
str += '; SameSite=Strict';
|
|
1377
|
+
break;
|
|
1378
|
+
case 'none':
|
|
1379
|
+
str += '; SameSite=None';
|
|
1380
|
+
break;
|
|
1381
|
+
default:
|
|
1382
|
+
throw new TypeError('option sameSite is invalid');
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
return str;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Try decoding a string using a decoding function.
|
|
1391
|
+
*
|
|
1392
|
+
* @param {string} str
|
|
1393
|
+
* @param {function} decode
|
|
1394
|
+
* @private
|
|
1395
|
+
*/
|
|
1396
|
+
|
|
1397
|
+
function tryDecode(str, decode) {
|
|
1398
|
+
try {
|
|
1399
|
+
return decode(str);
|
|
1400
|
+
} catch (e) {
|
|
1401
|
+
return str;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1205
1405
|
var TOKEN_NAME = 'token';
|
|
1206
1406
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1207
1407
|
|
|
@@ -1845,14 +2045,7 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1845
2045
|
if (!allowMissing && !(parts[i] in value)) {
|
|
1846
2046
|
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1847
2047
|
}
|
|
1848
|
-
|
|
1849
|
-
// property to emulate a data property that does not suffer from
|
|
1850
|
-
// the override mistake, that accessor's getter is marked with
|
|
1851
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1852
|
-
// uphold the illusion by pretending to see that original data
|
|
1853
|
-
// property, i.e., returning the value rather than the getter
|
|
1854
|
-
// itself.
|
|
1855
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2048
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1856
2049
|
} else {
|
|
1857
2050
|
value = value[parts[i]];
|
|
1858
2051
|
}
|
|
@@ -1861,42 +2054,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1861
2054
|
return value;
|
|
1862
2055
|
};
|
|
1863
2056
|
|
|
1864
|
-
var
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1871
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1872
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1873
|
-
|
|
1874
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1875
|
-
|
|
1876
|
-
if ($defineProperty) {
|
|
1877
|
-
try {
|
|
1878
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1879
|
-
} catch (e) {
|
|
1880
|
-
// IE 8 has a broken defineProperty
|
|
1881
|
-
$defineProperty = null;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
2057
|
+
var $Function = GetIntrinsic('%Function%');
|
|
2058
|
+
var $apply = $Function.apply;
|
|
2059
|
+
var $call = $Function.call;
|
|
1884
2060
|
|
|
1885
|
-
|
|
1886
|
-
return
|
|
2061
|
+
var callBind = function callBind() {
|
|
2062
|
+
return functionBind.apply($call, arguments);
|
|
1887
2063
|
};
|
|
1888
2064
|
|
|
1889
|
-
var
|
|
1890
|
-
return
|
|
2065
|
+
var apply = function applyBind() {
|
|
2066
|
+
return functionBind.apply($apply, arguments);
|
|
1891
2067
|
};
|
|
1892
|
-
|
|
1893
|
-
if ($defineProperty) {
|
|
1894
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1895
|
-
} else {
|
|
1896
|
-
module.exports.apply = applyBind;
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
var callBind_1 = callBind.apply;
|
|
2068
|
+
callBind.apply = apply;
|
|
1900
2069
|
|
|
1901
2070
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
1902
2071
|
|
|
@@ -2020,7 +2189,7 @@ var Type = function Type(x) {
|
|
|
2020
2189
|
}
|
|
2021
2190
|
};
|
|
2022
2191
|
|
|
2023
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
2192
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2024
2193
|
|
|
2025
2194
|
var Type$1 = function Type$1(x) {
|
|
2026
2195
|
if (typeof x === 'symbol') {
|
|
@@ -2089,62 +2258,42 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
2089
2258
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2090
2259
|
};
|
|
2091
2260
|
|
|
2092
|
-
var
|
|
2093
|
-
var
|
|
2094
|
-
var hasOwnProperty;
|
|
2095
|
-
var regexExec;
|
|
2096
|
-
var isRegexMarker;
|
|
2097
|
-
var badStringifier;
|
|
2098
|
-
|
|
2099
|
-
if (hasToStringTag) {
|
|
2100
|
-
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2101
|
-
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2102
|
-
isRegexMarker = {};
|
|
2103
|
-
|
|
2104
|
-
var throwRegexMarker = function () {
|
|
2105
|
-
throw isRegexMarker;
|
|
2106
|
-
};
|
|
2107
|
-
badStringifier = {
|
|
2108
|
-
toString: throwRegexMarker,
|
|
2109
|
-
valueOf: throwRegexMarker
|
|
2110
|
-
};
|
|
2261
|
+
var regexExec = RegExp.prototype.exec;
|
|
2262
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2111
2263
|
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2264
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2265
|
+
try {
|
|
2266
|
+
var lastIndex = value.lastIndex;
|
|
2267
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2116
2268
|
|
|
2269
|
+
regexExec.call(value);
|
|
2270
|
+
return true;
|
|
2271
|
+
} catch (e) {
|
|
2272
|
+
return false;
|
|
2273
|
+
} finally {
|
|
2274
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2117
2277
|
var toStr$5 = Object.prototype.toString;
|
|
2118
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2119
2278
|
var regexClass = '[object RegExp]';
|
|
2279
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2120
2280
|
|
|
2121
|
-
var isRegex =
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2129
|
-
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2130
|
-
if (!hasLastIndexDataProperty) {
|
|
2131
|
-
return false;
|
|
2132
|
-
}
|
|
2281
|
+
var isRegex = function isRegex(value) {
|
|
2282
|
+
if (!value || typeof value !== 'object') {
|
|
2283
|
+
return false;
|
|
2284
|
+
}
|
|
2285
|
+
if (!hasToStringTag) {
|
|
2286
|
+
return toStr$5.call(value) === regexClass;
|
|
2287
|
+
}
|
|
2133
2288
|
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
}
|
|
2289
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2290
|
+
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2291
|
+
if (!hasLastIndexDataProperty) {
|
|
2292
|
+
return false;
|
|
2139
2293
|
}
|
|
2140
|
-
: function isRegex(value) {
|
|
2141
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2142
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2143
|
-
return false;
|
|
2144
|
-
}
|
|
2145
2294
|
|
|
2146
|
-
|
|
2147
|
-
|
|
2295
|
+
return tryRegexExecCall(value);
|
|
2296
|
+
};
|
|
2148
2297
|
|
|
2149
2298
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2150
2299
|
|
|
@@ -2172,27 +2321,6 @@ var IsRegExp = function IsRegExp(argument) {
|
|
|
2172
2321
|
};
|
|
2173
2322
|
|
|
2174
2323
|
var fnToStr = Function.prototype.toString;
|
|
2175
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2176
|
-
var badArrayLike;
|
|
2177
|
-
var isCallableMarker;
|
|
2178
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2179
|
-
try {
|
|
2180
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2181
|
-
get: function () {
|
|
2182
|
-
throw isCallableMarker;
|
|
2183
|
-
}
|
|
2184
|
-
});
|
|
2185
|
-
isCallableMarker = {};
|
|
2186
|
-
// eslint-disable-next-line no-throw-literal
|
|
2187
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2188
|
-
} catch (_) {
|
|
2189
|
-
if (_ !== isCallableMarker) {
|
|
2190
|
-
reflectApply = null;
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
} else {
|
|
2194
|
-
reflectApply = null;
|
|
2195
|
-
}
|
|
2196
2324
|
|
|
2197
2325
|
var constructorRegex = /^\s*class\b/;
|
|
2198
2326
|
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
@@ -2218,27 +2346,15 @@ var fnClass = '[object Function]';
|
|
|
2218
2346
|
var genClass = '[object GeneratorFunction]';
|
|
2219
2347
|
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2220
2348
|
|
|
2221
|
-
var isCallable =
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
}
|
|
2231
|
-
return !isES6ClassFn(value);
|
|
2232
|
-
}
|
|
2233
|
-
: function isCallable(value) {
|
|
2234
|
-
if (!value) { return false; }
|
|
2235
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2236
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2237
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2238
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2239
|
-
var strClass = toStr$6.call(value);
|
|
2240
|
-
return strClass === fnClass || strClass === genClass;
|
|
2241
|
-
};
|
|
2349
|
+
var isCallable = function isCallable(value) {
|
|
2350
|
+
if (!value) { return false; }
|
|
2351
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2352
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2353
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2354
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2355
|
+
var strClass = toStr$6.call(value);
|
|
2356
|
+
return strClass === fnClass || strClass === genClass;
|
|
2357
|
+
};
|
|
2242
2358
|
|
|
2243
2359
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2244
2360
|
|
|
@@ -2273,7 +2389,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2273
2389
|
if (src(Obj, 'get')) {
|
|
2274
2390
|
var getter = Obj.get;
|
|
2275
2391
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2276
|
-
throw new
|
|
2392
|
+
throw new TypeError('getter must be a function');
|
|
2277
2393
|
}
|
|
2278
2394
|
desc['[[Get]]'] = getter;
|
|
2279
2395
|
}
|
|
@@ -2404,8 +2520,8 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2404
2520
|
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2405
2521
|
}
|
|
2406
2522
|
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2407
|
-
var extensible =
|
|
2408
|
-
var immutable = oldDesc && (!oldDesc
|
|
2523
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2524
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2409
2525
|
if (immutable || !extensible) {
|
|
2410
2526
|
return false;
|
|
2411
2527
|
}
|
|
@@ -2522,10 +2638,10 @@ var $slice = callBound('Array.prototype.slice');
|
|
|
2522
2638
|
var $concat$1 = callBound('Array.prototype.concat');
|
|
2523
2639
|
var $forEach = callBound('Array.prototype.forEach');
|
|
2524
2640
|
|
|
2525
|
-
var hasSymbols$
|
|
2641
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2526
2642
|
|
|
2527
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2528
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2643
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
2644
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
2529
2645
|
|
|
2530
2646
|
var implementation$3 = function promisify(orig) {
|
|
2531
2647
|
if (typeof orig !== 'function') {
|
|
@@ -2535,7 +2651,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2535
2651
|
throw error;
|
|
2536
2652
|
}
|
|
2537
2653
|
|
|
2538
|
-
if (hasSymbols$
|
|
2654
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
2539
2655
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2540
2656
|
if (typeof customFunction !== 'function') {
|
|
2541
2657
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2836,7 +2952,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
2836
2952
|
message = utf8.stringToBytes(message);
|
|
2837
2953
|
else if (isBuffer(message))
|
|
2838
2954
|
message = Array.prototype.slice.call(message, 0);
|
|
2839
|
-
else if (!Array.isArray(message)
|
|
2955
|
+
else if (!Array.isArray(message))
|
|
2840
2956
|
message = message.toString();
|
|
2841
2957
|
// else, assume byte array already
|
|
2842
2958
|
|