@mjhls/mjh-framework 1.0.837-formassembly-segment-v1 → 1.0.838-beta.0
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 +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- 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-0158bee3.js → ADInfeed-8d621d3c.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-3583144f.js → ADlgInfeed-0e26bccb.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +841 -951
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +23 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +344 -232
- package/dist/cjs/AuthWrapper.js +38 -119
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- 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 +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +782 -728
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1168 -71
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +40 -44
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +24 -25
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +199 -203
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +50 -51
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-15ad167c.js → getTargeting-021d644c.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-f5eddbab.js → index-017609b5.js} +868 -885
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +61 -65
- package/dist/cjs/{inherits-0c7830c5.js → inherits-452ff02c.js} +1 -1
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- 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-427022e9.js → ADInfeed-b566ce41.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-28d3f944.js → ADlgInfeed-5eb7281d.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +237 -346
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +327 -211
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.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 +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +507 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- 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 +1166 -69
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +180 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index-fed909cb.js → index-ff630779.js} +826 -836
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +51 -52
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- 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/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as commonjsGlobal
|
|
1
|
+
import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-a4107da3.js';
|
|
3
3
|
import './es6.string.iterator-c990c18c.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
@@ -7,18 +7,17 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
8
|
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
9
9
|
import './web.dom.iterable-4439f05a.js';
|
|
10
|
-
import
|
|
10
|
+
import React__default, { useEffect, useState } from 'react';
|
|
11
11
|
import Router from 'next/router';
|
|
12
12
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
13
13
|
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
14
14
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.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';
|
|
21
|
-
import { m as md5 } from './md5-
|
|
20
|
+
import { m as md5 } from './md5-9be0e905.js';
|
|
22
21
|
|
|
23
22
|
var returnFormField = function returnFormField(_ref) {
|
|
24
23
|
var name = _ref.name,
|
|
@@ -57,21 +56,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
60
|
-
return
|
|
59
|
+
return React__default.createElement(
|
|
61
60
|
Form.Group,
|
|
62
61
|
_extends({}, opts, { controlId: name }),
|
|
63
|
-
|
|
62
|
+
React__default.createElement(
|
|
64
63
|
Form.Label,
|
|
65
64
|
{ kye: name + '_label' },
|
|
66
65
|
label,
|
|
67
|
-
required &&
|
|
66
|
+
required && React__default.createElement(
|
|
68
67
|
'span',
|
|
69
68
|
{ style: { color: 'red' } },
|
|
70
69
|
'*'
|
|
71
70
|
)
|
|
72
71
|
),
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
React__default.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
73
|
+
React__default.createElement(
|
|
75
74
|
Form.Control.Feedback,
|
|
76
75
|
{ key: name + '_feedback', type: 'invalid' },
|
|
77
76
|
errors[name]
|
|
@@ -79,28 +78,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
79
78
|
);
|
|
80
79
|
}
|
|
81
80
|
if (type == 'select') {
|
|
82
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
83
82
|
Form.Group,
|
|
84
83
|
_extends({}, opts, { key: name, controlId: name }),
|
|
85
|
-
|
|
84
|
+
React__default.createElement(
|
|
86
85
|
Form.Label,
|
|
87
86
|
{ key: name + '_' + label },
|
|
88
87
|
label,
|
|
89
|
-
required &&
|
|
88
|
+
required && React__default.createElement(
|
|
90
89
|
'span',
|
|
91
90
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
92
91
|
'*'
|
|
93
92
|
)
|
|
94
93
|
),
|
|
95
|
-
|
|
94
|
+
React__default.createElement(
|
|
96
95
|
Form.Control,
|
|
97
96
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
98
|
-
|
|
97
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
99
98
|
options.map(function (option, index) {
|
|
100
99
|
var value = option.value ? option.value : option;
|
|
101
100
|
var label = option.label ? option.label : option;
|
|
102
101
|
var key = name + '_options_' + index;
|
|
103
|
-
return
|
|
102
|
+
return React__default.createElement(
|
|
104
103
|
'option',
|
|
105
104
|
{ key: key, value: value },
|
|
106
105
|
label
|
|
@@ -111,25 +110,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
if (type == 'radio' || type == 'checkbox') {
|
|
114
|
-
return
|
|
113
|
+
return React__default.createElement(
|
|
115
114
|
Form.Group,
|
|
116
115
|
opts,
|
|
117
|
-
|
|
116
|
+
React__default.createElement(
|
|
118
117
|
Form.Label,
|
|
119
118
|
null,
|
|
120
119
|
label,
|
|
121
|
-
required &&
|
|
120
|
+
required && React__default.createElement(
|
|
122
121
|
'span',
|
|
123
122
|
{ style: { color: 'red' } },
|
|
124
123
|
'*'
|
|
125
124
|
)
|
|
126
125
|
),
|
|
127
126
|
options.map(function (option, index) {
|
|
128
|
-
return
|
|
127
|
+
return React__default.createElement(
|
|
129
128
|
Form.Check,
|
|
130
129
|
{ type: type, key: index, required: required },
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
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 }),
|
|
131
|
+
React__default.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
133
132
|
);
|
|
134
133
|
})
|
|
135
134
|
);
|
|
@@ -336,43 +335,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
336
335
|
loading = _useState4[0],
|
|
337
336
|
setLoading = _useState4[1];
|
|
338
337
|
|
|
339
|
-
return
|
|
338
|
+
return React__default.createElement(
|
|
340
339
|
Form,
|
|
341
340
|
{ className: 'login', onSubmit: handleSubmit },
|
|
342
|
-
|
|
341
|
+
React__default.createElement(
|
|
343
342
|
'h1',
|
|
344
343
|
null,
|
|
345
344
|
'Login'
|
|
346
345
|
),
|
|
347
|
-
|
|
346
|
+
React__default.createElement('hr', null),
|
|
348
347
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
349
348
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
React__default.createElement('hr', null),
|
|
350
|
+
React__default.createElement(
|
|
352
351
|
Form.Row,
|
|
353
352
|
null,
|
|
354
|
-
|
|
353
|
+
React__default.createElement(
|
|
355
354
|
Form.Group,
|
|
356
355
|
{ as: Col },
|
|
357
|
-
|
|
356
|
+
React__default.createElement(
|
|
358
357
|
'a',
|
|
359
358
|
{ href: '/auth/signup' },
|
|
360
359
|
'I don\'t have an account'
|
|
361
360
|
)
|
|
362
361
|
),
|
|
363
|
-
|
|
362
|
+
React__default.createElement(
|
|
364
363
|
Form.Group,
|
|
365
364
|
{ as: Col, className: 'text-right' },
|
|
366
|
-
!loading &&
|
|
365
|
+
!loading && React__default.createElement(
|
|
367
366
|
Button,
|
|
368
367
|
{ type: 'submit' },
|
|
369
368
|
'Login'
|
|
370
369
|
),
|
|
371
|
-
loading &&
|
|
370
|
+
loading && React__default.createElement(
|
|
372
371
|
Button,
|
|
373
372
|
{ variant: 'primary', disabled: true },
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
React__default.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
374
|
+
React__default.createElement(
|
|
376
375
|
'span',
|
|
377
376
|
{ className: 'sr-only' },
|
|
378
377
|
'Loading...'
|
|
@@ -380,12 +379,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
380
379
|
)
|
|
381
380
|
)
|
|
382
381
|
),
|
|
383
|
-
errorMsg &&
|
|
382
|
+
errorMsg && React__default.createElement(
|
|
384
383
|
'p',
|
|
385
384
|
{ className: 'error' },
|
|
386
385
|
errorMsg
|
|
387
386
|
),
|
|
388
|
-
|
|
387
|
+
React__default.createElement(
|
|
389
388
|
'style',
|
|
390
389
|
{ jsx: 'true'.toString() },
|
|
391
390
|
'\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 '
|
|
@@ -641,29 +640,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
641
640
|
loading = _useState14[0],
|
|
642
641
|
setLoading = _useState14[1];
|
|
643
642
|
|
|
644
|
-
return
|
|
643
|
+
return React__default.createElement(
|
|
645
644
|
Form,
|
|
646
645
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
647
|
-
|
|
646
|
+
React__default.createElement(
|
|
648
647
|
'h1',
|
|
649
648
|
null,
|
|
650
649
|
'Sign Up'
|
|
651
650
|
),
|
|
652
|
-
|
|
651
|
+
React__default.createElement('hr', null),
|
|
653
652
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
654
|
-
|
|
653
|
+
React__default.createElement(
|
|
655
654
|
Form.Row,
|
|
656
655
|
null,
|
|
657
656
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
658
657
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
659
658
|
),
|
|
660
|
-
|
|
659
|
+
React__default.createElement(
|
|
661
660
|
Form.Row,
|
|
662
661
|
null,
|
|
663
662
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
664
663
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
665
664
|
),
|
|
666
|
-
|
|
665
|
+
React__default.createElement(
|
|
667
666
|
Form.Row,
|
|
668
667
|
null,
|
|
669
668
|
returnFormField({
|
|
@@ -677,7 +676,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
677
676
|
}),
|
|
678
677
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
679
678
|
),
|
|
680
|
-
|
|
679
|
+
React__default.createElement(
|
|
681
680
|
Form.Row,
|
|
682
681
|
null,
|
|
683
682
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -724,38 +723,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
724
723
|
required: true,
|
|
725
724
|
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' }]
|
|
726
725
|
}),
|
|
727
|
-
|
|
728
|
-
|
|
726
|
+
React__default.createElement('hr', null),
|
|
727
|
+
React__default.createElement(
|
|
729
728
|
Form.Row,
|
|
730
729
|
null,
|
|
731
|
-
|
|
730
|
+
React__default.createElement(
|
|
732
731
|
Form.Group,
|
|
733
732
|
{ as: Col },
|
|
734
|
-
|
|
733
|
+
React__default.createElement(
|
|
735
734
|
'a',
|
|
736
735
|
{ href: '/auth/login' },
|
|
737
736
|
'I already have an account'
|
|
738
737
|
)
|
|
739
738
|
),
|
|
740
|
-
|
|
739
|
+
React__default.createElement(
|
|
741
740
|
Form.Group,
|
|
742
741
|
{ as: Col, className: 'text-right' },
|
|
743
|
-
!loading &&
|
|
742
|
+
!loading && React__default.createElement(
|
|
744
743
|
Button,
|
|
745
744
|
{ type: 'submit' },
|
|
746
745
|
'Sign Up'
|
|
747
746
|
),
|
|
748
|
-
loading &&
|
|
747
|
+
loading && React__default.createElement(
|
|
749
748
|
Button,
|
|
750
749
|
{ variant: 'primary', disabled: true },
|
|
751
|
-
|
|
750
|
+
React__default.createElement(Spinner, {
|
|
752
751
|
as: 'span',
|
|
753
752
|
animation: 'border',
|
|
754
753
|
role: 'status',
|
|
755
754
|
'aria-hidden': 'true',
|
|
756
755
|
size: 'sm'
|
|
757
756
|
}),
|
|
758
|
-
|
|
757
|
+
React__default.createElement(
|
|
759
758
|
'span',
|
|
760
759
|
{ className: 'sr-only' },
|
|
761
760
|
'Loading...'
|
|
@@ -763,12 +762,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
763
762
|
)
|
|
764
763
|
)
|
|
765
764
|
),
|
|
766
|
-
errorMsg &&
|
|
765
|
+
errorMsg && React__default.createElement(
|
|
767
766
|
'p',
|
|
768
767
|
{ className: 'error' },
|
|
769
768
|
errorMsg
|
|
770
769
|
),
|
|
771
|
-
|
|
770
|
+
React__default.createElement(
|
|
772
771
|
'style',
|
|
773
772
|
{ jsx: 'true'.toString() },
|
|
774
773
|
' \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 '
|
|
@@ -1058,32 +1057,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1058
1057
|
loading = _useState18[0],
|
|
1059
1058
|
setLoading = _useState18[1];
|
|
1060
1059
|
|
|
1061
|
-
return
|
|
1060
|
+
return React__default.createElement(
|
|
1062
1061
|
Form,
|
|
1063
1062
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1064
|
-
|
|
1063
|
+
React__default.createElement(
|
|
1065
1064
|
'h1',
|
|
1066
1065
|
null,
|
|
1067
1066
|
'Profile'
|
|
1068
1067
|
),
|
|
1069
|
-
|
|
1070
|
-
userData ?
|
|
1071
|
-
|
|
1068
|
+
React__default.createElement('hr', null),
|
|
1069
|
+
userData ? React__default.createElement(
|
|
1070
|
+
React__default.Fragment,
|
|
1072
1071
|
null,
|
|
1073
1072
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1074
|
-
|
|
1073
|
+
React__default.createElement(
|
|
1075
1074
|
Form.Row,
|
|
1076
1075
|
null,
|
|
1077
1076
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1078
1077
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1079
1078
|
),
|
|
1080
|
-
|
|
1079
|
+
React__default.createElement(
|
|
1081
1080
|
Form.Row,
|
|
1082
1081
|
null,
|
|
1083
1082
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1084
1083
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1085
1084
|
),
|
|
1086
|
-
|
|
1085
|
+
React__default.createElement(
|
|
1087
1086
|
Form.Row,
|
|
1088
1087
|
null,
|
|
1089
1088
|
returnFormField({
|
|
@@ -1098,7 +1097,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1098
1097
|
}),
|
|
1099
1098
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1100
1099
|
),
|
|
1101
|
-
|
|
1100
|
+
React__default.createElement(
|
|
1102
1101
|
Form.Row,
|
|
1103
1102
|
null,
|
|
1104
1103
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1148,29 +1147,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1148
1147
|
required: true,
|
|
1149
1148
|
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' }]
|
|
1150
1149
|
}),
|
|
1151
|
-
|
|
1152
|
-
|
|
1150
|
+
React__default.createElement('hr', null),
|
|
1151
|
+
React__default.createElement(
|
|
1153
1152
|
Form.Row,
|
|
1154
1153
|
null,
|
|
1155
|
-
|
|
1154
|
+
React__default.createElement(
|
|
1156
1155
|
Form.Group,
|
|
1157
1156
|
{ as: Col },
|
|
1158
|
-
!loading &&
|
|
1157
|
+
!loading && React__default.createElement(
|
|
1159
1158
|
Button,
|
|
1160
1159
|
{ type: 'submit' },
|
|
1161
1160
|
'Update'
|
|
1162
1161
|
),
|
|
1163
|
-
loading &&
|
|
1162
|
+
loading && React__default.createElement(
|
|
1164
1163
|
Button,
|
|
1165
1164
|
{ variant: 'primary', disabled: true },
|
|
1166
|
-
|
|
1165
|
+
React__default.createElement(Spinner, {
|
|
1167
1166
|
as: 'span',
|
|
1168
1167
|
animation: 'border',
|
|
1169
1168
|
role: 'status',
|
|
1170
1169
|
'aria-hidden': 'true',
|
|
1171
1170
|
size: 'sm'
|
|
1172
1171
|
}),
|
|
1173
|
-
|
|
1172
|
+
React__default.createElement(
|
|
1174
1173
|
'span',
|
|
1175
1174
|
{ className: 'sr-only' },
|
|
1176
1175
|
'Loading...'
|
|
@@ -1178,24 +1177,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1178
1177
|
)
|
|
1179
1178
|
)
|
|
1180
1179
|
)
|
|
1181
|
-
) :
|
|
1180
|
+
) : React__default.createElement(Spinner, {
|
|
1182
1181
|
as: 'span',
|
|
1183
1182
|
animation: 'border',
|
|
1184
1183
|
role: 'status',
|
|
1185
1184
|
'aria-hidden': 'true',
|
|
1186
1185
|
size: 'sm'
|
|
1187
1186
|
}),
|
|
1188
|
-
errorMsg &&
|
|
1187
|
+
errorMsg && React__default.createElement(
|
|
1189
1188
|
'p',
|
|
1190
1189
|
{ className: 'error' },
|
|
1191
1190
|
errorMsg
|
|
1192
1191
|
),
|
|
1193
|
-
successMsg &&
|
|
1192
|
+
successMsg && React__default.createElement(
|
|
1194
1193
|
'p',
|
|
1195
1194
|
{ className: 'success' },
|
|
1196
1195
|
successMsg
|
|
1197
1196
|
),
|
|
1198
|
-
|
|
1197
|
+
React__default.createElement(
|
|
1199
1198
|
'style',
|
|
1200
1199
|
{ jsx: 'true'.toString() },
|
|
1201
1200
|
' \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 '
|
|
@@ -1203,6 +1202,207 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1203
1202
|
);
|
|
1204
1203
|
};
|
|
1205
1204
|
|
|
1205
|
+
/*!
|
|
1206
|
+
* cookie
|
|
1207
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1208
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1209
|
+
* MIT Licensed
|
|
1210
|
+
*/
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Module exports.
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
|
|
1217
|
+
var parse_1 = parse;
|
|
1218
|
+
var serialize_1 = serialize;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Module variables.
|
|
1222
|
+
* @private
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
var decode = decodeURIComponent;
|
|
1226
|
+
var encode = encodeURIComponent;
|
|
1227
|
+
var pairSplitRegExp = /; */;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1231
|
+
*
|
|
1232
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1233
|
+
* field-vchar = VCHAR / obs-text
|
|
1234
|
+
* obs-text = %x80-FF
|
|
1235
|
+
*/
|
|
1236
|
+
|
|
1237
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Parse a cookie header.
|
|
1241
|
+
*
|
|
1242
|
+
* Parse the given cookie header string into an object
|
|
1243
|
+
* The object has the various cookies as keys(names) => values
|
|
1244
|
+
*
|
|
1245
|
+
* @param {string} str
|
|
1246
|
+
* @param {object} [options]
|
|
1247
|
+
* @return {object}
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
|
|
1251
|
+
function parse(str, options) {
|
|
1252
|
+
if (typeof str !== 'string') {
|
|
1253
|
+
throw new TypeError('argument str must be a string');
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
var obj = {};
|
|
1257
|
+
var opt = options || {};
|
|
1258
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1259
|
+
var dec = opt.decode || decode;
|
|
1260
|
+
|
|
1261
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1262
|
+
var pair = pairs[i];
|
|
1263
|
+
var eq_idx = pair.indexOf('=');
|
|
1264
|
+
|
|
1265
|
+
// skip things that don't look like key=value
|
|
1266
|
+
if (eq_idx < 0) {
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1271
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1272
|
+
|
|
1273
|
+
// quoted values
|
|
1274
|
+
if ('"' == val[0]) {
|
|
1275
|
+
val = val.slice(1, -1);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
// only assign once
|
|
1279
|
+
if (undefined == obj[key]) {
|
|
1280
|
+
obj[key] = tryDecode(val, dec);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
return obj;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Serialize data into a cookie header.
|
|
1289
|
+
*
|
|
1290
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1291
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1292
|
+
*
|
|
1293
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1294
|
+
* => "foo=bar; httpOnly"
|
|
1295
|
+
*
|
|
1296
|
+
* @param {string} name
|
|
1297
|
+
* @param {string} val
|
|
1298
|
+
* @param {object} [options]
|
|
1299
|
+
* @return {string}
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
|
|
1303
|
+
function serialize(name, val, options) {
|
|
1304
|
+
var opt = options || {};
|
|
1305
|
+
var enc = opt.encode || encode;
|
|
1306
|
+
|
|
1307
|
+
if (typeof enc !== 'function') {
|
|
1308
|
+
throw new TypeError('option encode is invalid');
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1312
|
+
throw new TypeError('argument name is invalid');
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
var value = enc(val);
|
|
1316
|
+
|
|
1317
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1318
|
+
throw new TypeError('argument val is invalid');
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
var str = name + '=' + value;
|
|
1322
|
+
|
|
1323
|
+
if (null != opt.maxAge) {
|
|
1324
|
+
var maxAge = opt.maxAge - 0;
|
|
1325
|
+
|
|
1326
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1327
|
+
throw new TypeError('option maxAge is invalid')
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if (opt.domain) {
|
|
1334
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1335
|
+
throw new TypeError('option domain is invalid');
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
str += '; Domain=' + opt.domain;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if (opt.path) {
|
|
1342
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1343
|
+
throw new TypeError('option path is invalid');
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
str += '; Path=' + opt.path;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if (opt.expires) {
|
|
1350
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1351
|
+
throw new TypeError('option expires is invalid');
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if (opt.httpOnly) {
|
|
1358
|
+
str += '; HttpOnly';
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
if (opt.secure) {
|
|
1362
|
+
str += '; Secure';
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
if (opt.sameSite) {
|
|
1366
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1367
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1368
|
+
|
|
1369
|
+
switch (sameSite) {
|
|
1370
|
+
case true:
|
|
1371
|
+
str += '; SameSite=Strict';
|
|
1372
|
+
break;
|
|
1373
|
+
case 'lax':
|
|
1374
|
+
str += '; SameSite=Lax';
|
|
1375
|
+
break;
|
|
1376
|
+
case 'strict':
|
|
1377
|
+
str += '; SameSite=Strict';
|
|
1378
|
+
break;
|
|
1379
|
+
case 'none':
|
|
1380
|
+
str += '; SameSite=None';
|
|
1381
|
+
break;
|
|
1382
|
+
default:
|
|
1383
|
+
throw new TypeError('option sameSite is invalid');
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
return str;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Try decoding a string using a decoding function.
|
|
1392
|
+
*
|
|
1393
|
+
* @param {string} str
|
|
1394
|
+
* @param {function} decode
|
|
1395
|
+
* @private
|
|
1396
|
+
*/
|
|
1397
|
+
|
|
1398
|
+
function tryDecode(str, decode) {
|
|
1399
|
+
try {
|
|
1400
|
+
return decode(str);
|
|
1401
|
+
} catch (e) {
|
|
1402
|
+
return str;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1206
1406
|
var TOKEN_NAME = 'token';
|
|
1207
1407
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1208
1408
|
|
|
@@ -1846,14 +2046,7 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1846
2046
|
if (!allowMissing && !(parts[i] in value)) {
|
|
1847
2047
|
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1848
2048
|
}
|
|
1849
|
-
|
|
1850
|
-
// property to emulate a data property that does not suffer from
|
|
1851
|
-
// the override mistake, that accessor's getter is marked with
|
|
1852
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1853
|
-
// uphold the illusion by pretending to see that original data
|
|
1854
|
-
// property, i.e., returning the value rather than the getter
|
|
1855
|
-
// itself.
|
|
1856
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2049
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1857
2050
|
} else {
|
|
1858
2051
|
value = value[parts[i]];
|
|
1859
2052
|
}
|
|
@@ -1862,42 +2055,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1862
2055
|
return value;
|
|
1863
2056
|
};
|
|
1864
2057
|
|
|
1865
|
-
var
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1872
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1873
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1874
|
-
|
|
1875
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1876
|
-
|
|
1877
|
-
if ($defineProperty) {
|
|
1878
|
-
try {
|
|
1879
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1880
|
-
} catch (e) {
|
|
1881
|
-
// IE 8 has a broken defineProperty
|
|
1882
|
-
$defineProperty = null;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
2058
|
+
var $Function = GetIntrinsic('%Function%');
|
|
2059
|
+
var $apply = $Function.apply;
|
|
2060
|
+
var $call = $Function.call;
|
|
1885
2061
|
|
|
1886
|
-
|
|
1887
|
-
return
|
|
2062
|
+
var callBind = function callBind() {
|
|
2063
|
+
return functionBind.apply($call, arguments);
|
|
1888
2064
|
};
|
|
1889
2065
|
|
|
1890
|
-
var
|
|
1891
|
-
return
|
|
2066
|
+
var apply = function applyBind() {
|
|
2067
|
+
return functionBind.apply($apply, arguments);
|
|
1892
2068
|
};
|
|
1893
|
-
|
|
1894
|
-
if ($defineProperty) {
|
|
1895
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1896
|
-
} else {
|
|
1897
|
-
module.exports.apply = applyBind;
|
|
1898
|
-
}
|
|
1899
|
-
});
|
|
1900
|
-
var callBind_1 = callBind.apply;
|
|
2069
|
+
callBind.apply = apply;
|
|
1901
2070
|
|
|
1902
2071
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
1903
2072
|
|
|
@@ -2021,7 +2190,7 @@ var Type = function Type(x) {
|
|
|
2021
2190
|
}
|
|
2022
2191
|
};
|
|
2023
2192
|
|
|
2024
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
2193
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2025
2194
|
|
|
2026
2195
|
var Type$1 = function Type$1(x) {
|
|
2027
2196
|
if (typeof x === 'symbol') {
|
|
@@ -2090,62 +2259,42 @@ var IsPropertyKey = function IsPropertyKey(argument) {
|
|
|
2090
2259
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2091
2260
|
};
|
|
2092
2261
|
|
|
2093
|
-
var
|
|
2094
|
-
var
|
|
2095
|
-
var hasOwnProperty;
|
|
2096
|
-
var regexExec;
|
|
2097
|
-
var isRegexMarker;
|
|
2098
|
-
var badStringifier;
|
|
2099
|
-
|
|
2100
|
-
if (hasToStringTag) {
|
|
2101
|
-
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2102
|
-
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2103
|
-
isRegexMarker = {};
|
|
2104
|
-
|
|
2105
|
-
var throwRegexMarker = function () {
|
|
2106
|
-
throw isRegexMarker;
|
|
2107
|
-
};
|
|
2108
|
-
badStringifier = {
|
|
2109
|
-
toString: throwRegexMarker,
|
|
2110
|
-
valueOf: throwRegexMarker
|
|
2111
|
-
};
|
|
2262
|
+
var regexExec = RegExp.prototype.exec;
|
|
2263
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2112
2264
|
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2265
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2266
|
+
try {
|
|
2267
|
+
var lastIndex = value.lastIndex;
|
|
2268
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2117
2269
|
|
|
2270
|
+
regexExec.call(value);
|
|
2271
|
+
return true;
|
|
2272
|
+
} catch (e) {
|
|
2273
|
+
return false;
|
|
2274
|
+
} finally {
|
|
2275
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2276
|
+
}
|
|
2277
|
+
};
|
|
2118
2278
|
var toStr$5 = Object.prototype.toString;
|
|
2119
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2120
2279
|
var regexClass = '[object RegExp]';
|
|
2280
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2121
2281
|
|
|
2122
|
-
var isRegex =
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2130
|
-
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2131
|
-
if (!hasLastIndexDataProperty) {
|
|
2132
|
-
return false;
|
|
2133
|
-
}
|
|
2282
|
+
var isRegex = function isRegex(value) {
|
|
2283
|
+
if (!value || typeof value !== 'object') {
|
|
2284
|
+
return false;
|
|
2285
|
+
}
|
|
2286
|
+
if (!hasToStringTag) {
|
|
2287
|
+
return toStr$5.call(value) === regexClass;
|
|
2288
|
+
}
|
|
2134
2289
|
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
}
|
|
2290
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2291
|
+
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2292
|
+
if (!hasLastIndexDataProperty) {
|
|
2293
|
+
return false;
|
|
2140
2294
|
}
|
|
2141
|
-
: function isRegex(value) {
|
|
2142
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2143
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2144
|
-
return false;
|
|
2145
|
-
}
|
|
2146
2295
|
|
|
2147
|
-
|
|
2148
|
-
|
|
2296
|
+
return tryRegexExecCall(value);
|
|
2297
|
+
};
|
|
2149
2298
|
|
|
2150
2299
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2151
2300
|
|
|
@@ -2173,27 +2322,6 @@ var IsRegExp = function IsRegExp(argument) {
|
|
|
2173
2322
|
};
|
|
2174
2323
|
|
|
2175
2324
|
var fnToStr = Function.prototype.toString;
|
|
2176
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2177
|
-
var badArrayLike;
|
|
2178
|
-
var isCallableMarker;
|
|
2179
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2180
|
-
try {
|
|
2181
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2182
|
-
get: function () {
|
|
2183
|
-
throw isCallableMarker;
|
|
2184
|
-
}
|
|
2185
|
-
});
|
|
2186
|
-
isCallableMarker = {};
|
|
2187
|
-
// eslint-disable-next-line no-throw-literal
|
|
2188
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2189
|
-
} catch (_) {
|
|
2190
|
-
if (_ !== isCallableMarker) {
|
|
2191
|
-
reflectApply = null;
|
|
2192
|
-
}
|
|
2193
|
-
}
|
|
2194
|
-
} else {
|
|
2195
|
-
reflectApply = null;
|
|
2196
|
-
}
|
|
2197
2325
|
|
|
2198
2326
|
var constructorRegex = /^\s*class\b/;
|
|
2199
2327
|
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
@@ -2219,27 +2347,15 @@ var fnClass = '[object Function]';
|
|
|
2219
2347
|
var genClass = '[object GeneratorFunction]';
|
|
2220
2348
|
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2221
2349
|
|
|
2222
|
-
var isCallable =
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
}
|
|
2232
|
-
return !isES6ClassFn(value);
|
|
2233
|
-
}
|
|
2234
|
-
: function isCallable(value) {
|
|
2235
|
-
if (!value) { return false; }
|
|
2236
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2237
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2238
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2239
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2240
|
-
var strClass = toStr$6.call(value);
|
|
2241
|
-
return strClass === fnClass || strClass === genClass;
|
|
2242
|
-
};
|
|
2350
|
+
var isCallable = function isCallable(value) {
|
|
2351
|
+
if (!value) { return false; }
|
|
2352
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2353
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2354
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2355
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2356
|
+
var strClass = toStr$6.call(value);
|
|
2357
|
+
return strClass === fnClass || strClass === genClass;
|
|
2358
|
+
};
|
|
2243
2359
|
|
|
2244
2360
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2245
2361
|
|
|
@@ -2274,7 +2390,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2274
2390
|
if (src(Obj, 'get')) {
|
|
2275
2391
|
var getter = Obj.get;
|
|
2276
2392
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2277
|
-
throw new
|
|
2393
|
+
throw new TypeError('getter must be a function');
|
|
2278
2394
|
}
|
|
2279
2395
|
desc['[[Get]]'] = getter;
|
|
2280
2396
|
}
|
|
@@ -2405,8 +2521,8 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2405
2521
|
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2406
2522
|
}
|
|
2407
2523
|
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2408
|
-
var extensible =
|
|
2409
|
-
var immutable = oldDesc && (!oldDesc
|
|
2524
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2525
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2410
2526
|
if (immutable || !extensible) {
|
|
2411
2527
|
return false;
|
|
2412
2528
|
}
|
|
@@ -2523,10 +2639,10 @@ var $slice = callBound('Array.prototype.slice');
|
|
|
2523
2639
|
var $concat$1 = callBound('Array.prototype.concat');
|
|
2524
2640
|
var $forEach = callBound('Array.prototype.forEach');
|
|
2525
2641
|
|
|
2526
|
-
var hasSymbols$
|
|
2642
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2527
2643
|
|
|
2528
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2529
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2644
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
2645
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
2530
2646
|
|
|
2531
2647
|
var implementation$3 = function promisify(orig) {
|
|
2532
2648
|
if (typeof orig !== 'function') {
|
|
@@ -2536,7 +2652,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2536
2652
|
throw error;
|
|
2537
2653
|
}
|
|
2538
2654
|
|
|
2539
|
-
if (hasSymbols$
|
|
2655
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
2540
2656
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2541
2657
|
if (typeof customFunction !== 'function') {
|
|
2542
2658
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|