summit-registration-lite 7.0.4 → 7.0.6
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/.codegraph/daemon.pid +2 -2
- package/dist/components/index.js +59 -66
- package/dist/components/index.js.map +1 -1
- package/dist/components/registration-form.js +52 -59
- package/dist/components/registration-form.js.map +1 -1
- package/dist/components/registration-modal.js +58 -65
- package/dist/components/registration-modal.js.map +1 -1
- package/dist/index.js +58 -65
- package/dist/index.js.map +1 -1
- package/e2e/promo-code-date-filter.spec.js +103 -0
- package/e2e/promo-code-discovery.spec.js +55 -7
- package/e2e/promo-code-invalid-clears-warning.spec.js +57 -0
- package/package.json +5 -3
|
@@ -40,7 +40,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40
40
|
"Nh": () => (/* binding */ SET_PASSWORDLESS_SETTINGS),
|
|
41
41
|
"Vx": () => (/* binding */ START_WIDGET_LOADING),
|
|
42
42
|
"sC": () => (/* binding */ STOP_WIDGET_LOADING),
|
|
43
|
-
"VH": () => (/* binding */ UPDATE_CLOCK),
|
|
44
43
|
"j6": () => (/* binding */ VALIDATE_PROMO_CODE),
|
|
45
44
|
"o5": () => (/* binding */ VALIDATE_PROMO_CODE_ERROR),
|
|
46
45
|
"Tk": () => (/* binding */ VALIDATE_PROMO_CODE_RATE_LIMITED),
|
|
@@ -63,7 +62,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
63
62
|
"cL": () => (/* binding */ reserveTicket),
|
|
64
63
|
"Bq": () => (/* binding */ startWidgetLoading),
|
|
65
64
|
"Rs": () => (/* binding */ stopWidgetLoading),
|
|
66
|
-
"ry": () => (/* binding */ updateClock),
|
|
67
65
|
"jn": () => (/* binding */ validatePromoCode)
|
|
68
66
|
});
|
|
69
67
|
|
|
@@ -398,7 +396,6 @@ const GO_TO_LOGIN = 'GO_TO_LOGIN';
|
|
|
398
396
|
const GET_MY_INVITATION = 'GET_MY_INVITATION';
|
|
399
397
|
const CLEAR_MY_INVITATION = 'CLEAR_MY_INVITATION';
|
|
400
398
|
const CLEAR_WIDGET_STATE = 'CLEAR_WIDGET_STATE';
|
|
401
|
-
const UPDATE_CLOCK = 'UPDATE_CLOCK';
|
|
402
399
|
const LOAD_PROFILE_DATA = 'LOAD_PROFILE_DATA';
|
|
403
400
|
const SET_CURRENT_PROMO_CODE = 'SET_CURRENT_PROMO_CODE';
|
|
404
401
|
const CLEAR_CURRENT_PROMO_CODE = 'CLEAR_CURRENT_PROMO_CODE';
|
|
@@ -899,11 +896,6 @@ const getMyInvitation = summitId => async (dispatch, getState, {
|
|
|
899
896
|
return Promise.reject(e);
|
|
900
897
|
}
|
|
901
898
|
};
|
|
902
|
-
const updateClock = timestamp => dispatch => {
|
|
903
|
-
dispatch((0,actions_namespaceObject.createAction)(UPDATE_CLOCK)({
|
|
904
|
-
timestamp
|
|
905
|
-
}));
|
|
906
|
-
};
|
|
907
899
|
|
|
908
900
|
/***/ }),
|
|
909
901
|
|
|
@@ -1703,14 +1695,14 @@ const avoidTooltipOverflow = ({
|
|
|
1703
1695
|
|
|
1704
1696
|
/***/ }),
|
|
1705
1697
|
|
|
1706
|
-
/***/
|
|
1698
|
+
/***/ 336:
|
|
1707
1699
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1708
1700
|
|
|
1709
1701
|
"use strict";
|
|
1710
1702
|
|
|
1711
1703
|
// EXPORTS
|
|
1712
1704
|
__webpack_require__.d(__webpack_exports__, {
|
|
1713
|
-
"
|
|
1705
|
+
"F": () => (/* binding */ withWidgetProviders)
|
|
1714
1706
|
});
|
|
1715
1707
|
|
|
1716
1708
|
// UNUSED EXPORTS: default
|
|
@@ -1722,6 +1714,8 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
1722
1714
|
var external_react_redux_ = __webpack_require__(22);
|
|
1723
1715
|
;// CONCATENATED MODULE: external "redux-persist/integration/react"
|
|
1724
1716
|
const react_namespaceObject = require("redux-persist/integration/react");
|
|
1717
|
+
// EXTERNAL MODULE: external "openstack-uicore-foundation/lib/components/clock-context"
|
|
1718
|
+
var clock_context_ = __webpack_require__(959);
|
|
1725
1719
|
;// CONCATENATED MODULE: external "redux"
|
|
1726
1720
|
const external_redux_namespaceObject = require("redux");
|
|
1727
1721
|
;// CONCATENATED MODULE: external "redux-thunk"
|
|
@@ -1736,9 +1730,6 @@ var storage_default = /*#__PURE__*/__webpack_require__.n(storage_namespaceObject
|
|
|
1736
1730
|
var actions = __webpack_require__(595);
|
|
1737
1731
|
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/security/actions"
|
|
1738
1732
|
const actions_namespaceObject = require("openstack-uicore-foundation/lib/security/actions");
|
|
1739
|
-
;// CONCATENATED MODULE: external "moment"
|
|
1740
|
-
const external_moment_namespaceObject = require("moment");
|
|
1741
|
-
var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_namespaceObject);
|
|
1742
1733
|
// EXTERNAL MODULE: ./src/utils/constants.js
|
|
1743
1734
|
var constants = __webpack_require__(243);
|
|
1744
1735
|
;// CONCATENATED MODULE: ./src/reducer.js
|
|
@@ -1763,8 +1754,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
1763
1754
|
|
|
1764
1755
|
|
|
1765
1756
|
|
|
1766
|
-
|
|
1767
|
-
const localNowUtc = external_moment_default()().unix();
|
|
1768
1757
|
const DEFAULT_STATE = {
|
|
1769
1758
|
reservation: null,
|
|
1770
1759
|
checkout: null,
|
|
@@ -1788,7 +1777,6 @@ const DEFAULT_STATE = {
|
|
|
1788
1777
|
summitId: null,
|
|
1789
1778
|
userProfile: null
|
|
1790
1779
|
},
|
|
1791
|
-
nowUtc: localNowUtc,
|
|
1792
1780
|
promoCode: '',
|
|
1793
1781
|
promoCodeVerified: null,
|
|
1794
1782
|
promoCodeValidating: false,
|
|
@@ -1988,16 +1976,6 @@ const RegistrationLiteReducer = (state = DEFAULT_STATE, action) => {
|
|
|
1988
1976
|
});
|
|
1989
1977
|
}
|
|
1990
1978
|
|
|
1991
|
-
case actions/* UPDATE_CLOCK */.VH:
|
|
1992
|
-
{
|
|
1993
|
-
const {
|
|
1994
|
-
timestamp
|
|
1995
|
-
} = payload;
|
|
1996
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
1997
|
-
nowUtc: timestamp
|
|
1998
|
-
});
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
1979
|
case actions/* CLEAR_CURRENT_PROMO_CODE */.ZD:
|
|
2002
1980
|
{
|
|
2003
1981
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
@@ -2117,7 +2095,7 @@ const getPersistor = () => {
|
|
|
2117
2095
|
persistor = (0,external_redux_persist_namespaceObject.persistStore)(store, null, onRehydrateComplete);
|
|
2118
2096
|
return persistor;
|
|
2119
2097
|
};
|
|
2120
|
-
;// CONCATENATED MODULE: ./src/utils/
|
|
2098
|
+
;// CONCATENATED MODULE: ./src/utils/withWidgetProviders.js
|
|
2121
2099
|
/**
|
|
2122
2100
|
* Copyright 2026 OpenStack Foundation
|
|
2123
2101
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -2130,36 +2108,42 @@ const getPersistor = () => {
|
|
|
2130
2108
|
* See the License for the specific language governing permissions and
|
|
2131
2109
|
* limitations under the License.
|
|
2132
2110
|
*
|
|
2133
|
-
* HOC to wrap a
|
|
2111
|
+
* HOC to wrap a widget root with Redux, PersistGate, and ClockProvider.
|
|
2134
2112
|
**/
|
|
2135
2113
|
|
|
2136
2114
|
|
|
2137
2115
|
|
|
2138
2116
|
|
|
2139
|
-
|
|
2140
|
-
|
|
2117
|
+
|
|
2118
|
+
const withWidgetProviders = WrappedComponent => {
|
|
2119
|
+
class WithWidgetProviders extends (external_react_default()).PureComponent {
|
|
2141
2120
|
constructor(props) {
|
|
2142
2121
|
super(props);
|
|
2143
2122
|
this.store = getStore(props.clientId, props.apiBaseUrl, props.getAccessToken);
|
|
2144
2123
|
}
|
|
2145
2124
|
|
|
2146
2125
|
render() {
|
|
2126
|
+
const {
|
|
2127
|
+
summitData
|
|
2128
|
+
} = this.props;
|
|
2147
2129
|
return /*#__PURE__*/external_react_default().createElement(external_react_redux_.Provider, {
|
|
2148
2130
|
store: this.store
|
|
2149
2131
|
}, /*#__PURE__*/external_react_default().createElement(react_namespaceObject.PersistGate, {
|
|
2150
2132
|
persistor: getPersistor()
|
|
2151
|
-
}, /*#__PURE__*/external_react_default().createElement(
|
|
2133
|
+
}, /*#__PURE__*/external_react_default().createElement(clock_context_.ClockProvider, {
|
|
2134
|
+
timezone: summitData?.time_zone_id || 'UTC',
|
|
2135
|
+
now: Math.floor(Date.now() / 1000)
|
|
2136
|
+
}, /*#__PURE__*/external_react_default().createElement(WrappedComponent, this.props))));
|
|
2152
2137
|
}
|
|
2153
2138
|
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2139
|
+
}
|
|
2156
2140
|
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
return
|
|
2141
|
+
WithWidgetProviders.propTypes = WrappedComponent.propTypes;
|
|
2142
|
+
WithWidgetProviders.defaultProps = WrappedComponent.defaultProps;
|
|
2143
|
+
WithWidgetProviders.displayName = `WithWidgetProviders(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;
|
|
2144
|
+
return WithWidgetProviders;
|
|
2161
2145
|
};
|
|
2162
|
-
/* harmony default export */ const
|
|
2146
|
+
/* harmony default export */ const utils_withWidgetProviders = ((/* unused pure expression or super */ null && (withWidgetProviders)));
|
|
2163
2147
|
|
|
2164
2148
|
/***/ }),
|
|
2165
2149
|
|
|
@@ -2206,6 +2190,14 @@ webpackContext.id = 267;
|
|
|
2206
2190
|
|
|
2207
2191
|
/***/ }),
|
|
2208
2192
|
|
|
2193
|
+
/***/ 959:
|
|
2194
|
+
/***/ ((module) => {
|
|
2195
|
+
|
|
2196
|
+
"use strict";
|
|
2197
|
+
module.exports = require("openstack-uicore-foundation/lib/components/clock-context");
|
|
2198
|
+
|
|
2199
|
+
/***/ }),
|
|
2200
|
+
|
|
2209
2201
|
/***/ 580:
|
|
2210
2202
|
/***/ ((module) => {
|
|
2211
2203
|
|
|
@@ -2335,8 +2327,10 @@ var external_react_redux_ = __webpack_require__(22);
|
|
|
2335
2327
|
// EXTERNAL MODULE: external "prop-types"
|
|
2336
2328
|
var external_prop_types_ = __webpack_require__(580);
|
|
2337
2329
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
2338
|
-
// EXTERNAL MODULE: ./src/utils/
|
|
2339
|
-
var
|
|
2330
|
+
// EXTERNAL MODULE: ./src/utils/withWidgetProviders.js + 8 modules
|
|
2331
|
+
var withWidgetProviders = __webpack_require__(336);
|
|
2332
|
+
// EXTERNAL MODULE: external "openstack-uicore-foundation/lib/components/clock-context"
|
|
2333
|
+
var clock_context_ = __webpack_require__(959);
|
|
2340
2334
|
;// CONCATENATED MODULE: external "react-spring"
|
|
2341
2335
|
const external_react_spring_namespaceObject = require("react-spring");
|
|
2342
2336
|
;// CONCATENATED MODULE: external "react-use"
|
|
@@ -2598,9 +2592,6 @@ const usePromoCode = ({
|
|
|
2598
2592
|
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/ajaxloader"
|
|
2599
2593
|
const ajaxloader_namespaceObject = require("openstack-uicore-foundation/lib/components/ajaxloader");
|
|
2600
2594
|
var ajaxloader_default = /*#__PURE__*/__webpack_require__.n(ajaxloader_namespaceObject);
|
|
2601
|
-
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/clock"
|
|
2602
|
-
const clock_namespaceObject = require("openstack-uicore-foundation/lib/components/clock");
|
|
2603
|
-
var clock_default = /*#__PURE__*/__webpack_require__.n(clock_namespaceObject);
|
|
2604
2595
|
// EXTERNAL MODULE: ./src/components/login/index.js + 2 modules
|
|
2605
2596
|
var login = __webpack_require__(462);
|
|
2606
2597
|
;// CONCATENATED MODULE: ./src/components/payment/index.module.scss
|
|
@@ -4393,7 +4384,7 @@ const external_react_content_loader_namespaceObject = require("react-content-loa
|
|
|
4393
4384
|
var external_react_content_loader_default = /*#__PURE__*/__webpack_require__.n(external_react_content_loader_namespaceObject);
|
|
4394
4385
|
;// CONCATENATED MODULE: ./src/components/purchase-complete/index.js
|
|
4395
4386
|
const _excluded = ["cta", "clear", "close"],
|
|
4396
|
-
_excluded2 = ["checkout", "user", "onPurchaseComplete", "goToExtraQuestions", "goToEvent", "goToMyOrders", "completedExtraQuestions", "summit", "
|
|
4387
|
+
_excluded2 = ["checkout", "user", "onPurchaseComplete", "goToExtraQuestions", "goToEvent", "goToMyOrders", "completedExtraQuestions", "summit", "clearWidgetState", "closeWidget", "supportEmail", "hasVirtualAccessLevel"];
|
|
4397
4388
|
|
|
4398
4389
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4399
4390
|
|
|
@@ -4420,6 +4411,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
4420
4411
|
|
|
4421
4412
|
|
|
4422
4413
|
|
|
4414
|
+
|
|
4423
4415
|
const CTAButton = _ref => {
|
|
4424
4416
|
let {
|
|
4425
4417
|
cta,
|
|
@@ -4448,7 +4440,6 @@ const PurchaseComplete = _ref2 => {
|
|
|
4448
4440
|
goToMyOrders,
|
|
4449
4441
|
completedExtraQuestions,
|
|
4450
4442
|
summit,
|
|
4451
|
-
nowUtc,
|
|
4452
4443
|
clearWidgetState,
|
|
4453
4444
|
closeWidget,
|
|
4454
4445
|
supportEmail,
|
|
@@ -4461,8 +4452,10 @@ const PurchaseComplete = _ref2 => {
|
|
|
4461
4452
|
}, []);
|
|
4462
4453
|
const [requireExtraQuestions, setRequireExtraQuestions] = (0,external_react_.useState)(null);
|
|
4463
4454
|
const [extraQuestionsLoaded, setExtraQuestonsLoaded] = (0,external_react_.useState)(false);
|
|
4464
|
-
const isMultiOrder = (0,external_react_.useMemo)(() => checkout?.tickets.length > 1, [checkout]);
|
|
4465
|
-
|
|
4455
|
+
const isMultiOrder = (0,external_react_.useMemo)(() => checkout?.tickets.length > 1, [checkout]); // Re-runs every clock tick but the boolean only changes on summit
|
|
4456
|
+
// active/inactive transitions (typically zero times per session).
|
|
4457
|
+
|
|
4458
|
+
const isActive = (0,clock_context_.useClockSelector)((0,external_react_.useCallback)(nowUtc => summit.start_date <= nowUtc && summit.end_date >= nowUtc, [summit.start_date, summit.end_date]));
|
|
4466
4459
|
const currentTicket = (0,external_react_.useMemo)(() => isMultiOrder ? checkout?.tickets.find(t => t?.owner?.email === user?.email) : checkout?.tickets.find(t => t?.owner), [user]);
|
|
4467
4460
|
(0,external_react_.useEffect)(() => {
|
|
4468
4461
|
completedExtraQuestions(currentTicket?.owner || null).then(res => {
|
|
@@ -4650,7 +4643,7 @@ const TicketTaxesError = ({
|
|
|
4650
4643
|
|
|
4651
4644
|
/* harmony default export */ const ticket_taxes_error = (TicketTaxesError);
|
|
4652
4645
|
;// CONCATENATED MODULE: ./src/components/registration-form/index.js
|
|
4653
|
-
const registration_form_excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicketWithProvider", "trackEvent", "onPurchaseComplete", "getTicketTypesAndTaxes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "allowsNativeAuth", "allowsOtpAuth", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "passwordlessCodeLifeTime", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToMyOrders", "goToEvent", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "providerOptions", "invitation", "loginInitialEmailInputValue", "getMyInvitation", "showMultipleTicketTexts", "noAllowedTicketsMessage", "ticketTaxesErrorMessage", "authErrorCallback", "clearWidgetState", "allowPromoCodes", "showCompanyInput", "companyDDLPlaceholder", "
|
|
4646
|
+
const registration_form_excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicketWithProvider", "trackEvent", "onPurchaseComplete", "getTicketTypesAndTaxes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "allowsNativeAuth", "allowsOtpAuth", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "passwordlessCodeLifeTime", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToMyOrders", "goToEvent", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "providerOptions", "invitation", "loginInitialEmailInputValue", "getMyInvitation", "showMultipleTicketTexts", "noAllowedTicketsMessage", "ticketTaxesErrorMessage", "authErrorCallback", "clearWidgetState", "allowPromoCodes", "showCompanyInput", "companyDDLPlaceholder", "completedExtraQuestions", "loadProfileData", "closeWidget", "hasVirtualAccessLevel", "hidePostalCode", "onError", "successfulPaymentReturnUrl", "idpLogoLight", "idpLogoDark", "idpLogoAlt", "showCompanyInputDefaultOptions", "companyDDLOptions2Show", "promoCode", "promoCodeVerified", "promoCodeValidating", "promoCodeAllowsReassign", "discoveredPromoCodes", "hasDiscount", "getTicketDiscount", "removePromoCode", "applyPromoCode", "validatePromoCode", "discoverPromoCodes", "startWidgetLoading", "stopWidgetLoading", "closeHandlerRef"];
|
|
4654
4647
|
|
|
4655
4648
|
function registration_form_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4656
4649
|
|
|
@@ -4714,6 +4707,11 @@ try {
|
|
|
4714
4707
|
external_i18n_react_default().setTexts(__webpack_require__(443));
|
|
4715
4708
|
}
|
|
4716
4709
|
|
|
4710
|
+
const isTicketCurrentlyAvailable = (tt, nowUtc) => // prepaid tickets are always available (sales windows don't apply)
|
|
4711
|
+
tt.sub_type === constants.TICKET_TYPE_SUBTYPE_PREPAID || // no sales window configured → ticket is open-ended, always available
|
|
4712
|
+
tt.sales_start_date === null && tt.sales_end_date === null || // ticket is within its configured sales window
|
|
4713
|
+
nowUtc >= tt.sales_start_date && nowUtc <= tt.sales_end_date;
|
|
4714
|
+
|
|
4717
4715
|
const RegistrationFormContent = _ref => {
|
|
4718
4716
|
let {
|
|
4719
4717
|
loadSession,
|
|
@@ -4768,8 +4766,6 @@ const RegistrationFormContent = _ref => {
|
|
|
4768
4766
|
allowPromoCodes,
|
|
4769
4767
|
showCompanyInput,
|
|
4770
4768
|
companyDDLPlaceholder,
|
|
4771
|
-
nowUtc,
|
|
4772
|
-
updateClock,
|
|
4773
4769
|
completedExtraQuestions,
|
|
4774
4770
|
loadProfileData,
|
|
4775
4771
|
closeWidget,
|
|
@@ -4828,8 +4824,11 @@ const RegistrationFormContent = _ref => {
|
|
|
4828
4824
|
const {
|
|
4829
4825
|
publicKey,
|
|
4830
4826
|
provider
|
|
4831
|
-
} = (0,utils/* getCurrentProvider */.U5)(summitData);
|
|
4832
|
-
|
|
4827
|
+
} = (0,utils/* getCurrentProvider */.U5)(summitData); // Re-runs every clock tick but only commits a new array when the filtered
|
|
4828
|
+
// contents shift (a sale window opens/closes), so the form tree stops
|
|
4829
|
+
// re-rendering once per second.
|
|
4830
|
+
|
|
4831
|
+
const allowedTicketTypes = (0,clock_context_.useClockSelector)((0,external_react_.useCallback)(nowUtc => hasTicketData ? ticketTypes.filter(tt => isTicketCurrentlyAvailable(tt, nowUtc)) : [], [hasTicketData, ticketTypes]), external_react_redux_.shallowEqual);
|
|
4833
4832
|
const alreadyOwnedTickets = (0,external_react_.useMemo)(() => isAuthenticated && hasTicketData && !ticketDataError && allowedTicketTypes.length > 0 && ownedTickets.length > 0, [isAuthenticated, hasTicketData, ticketDataError, allowedTicketTypes, ownedTickets]);
|
|
4834
4833
|
(0,external_react_.useEffect)(() => {
|
|
4835
4834
|
if (profileData) loadProfileData(profileData);
|
|
@@ -5008,9 +5007,6 @@ const RegistrationFormContent = _ref => {
|
|
|
5008
5007
|
color: '#ffffff',
|
|
5009
5008
|
show: widgetLoading || loading,
|
|
5010
5009
|
size: 80
|
|
5011
|
-
}), /*#__PURE__*/external_react_default().createElement((clock_default()), {
|
|
5012
|
-
onTick: timestamp => updateClock(timestamp),
|
|
5013
|
-
timezone: summitData.time_zone_id
|
|
5014
5010
|
}), profileData && ticketDataError && /*#__PURE__*/external_react_default().createElement(ticket_taxes_error, {
|
|
5015
5011
|
ticketTaxesErrorMessage: ticketTaxesErrorMessage,
|
|
5016
5012
|
retryTicketTaxes: () => handleGetTicketTypesAndTaxes(summitData?.id)
|
|
@@ -5126,7 +5122,6 @@ const RegistrationFormContent = _ref => {
|
|
|
5126
5122
|
goToMyOrders: goToMyOrders,
|
|
5127
5123
|
goToExtraQuestions: goToExtraQuestions,
|
|
5128
5124
|
completedExtraQuestions: completedExtraQuestions,
|
|
5129
|
-
nowUtc: nowUtc,
|
|
5130
5125
|
clearWidgetState: clearWidgetState,
|
|
5131
5126
|
closeWidget: closeWidget,
|
|
5132
5127
|
hasVirtualAccessLevel: hasVirtualAccessLevel,
|
|
@@ -5157,7 +5152,6 @@ const mapStateToProps = ({
|
|
|
5157
5152
|
passwordlessCodeLifeTime: registrationLiteState.passwordless.otp_lifetime,
|
|
5158
5153
|
passwordlessCodeSent: registrationLiteState.passwordless.code_sent,
|
|
5159
5154
|
passwordlessCodeError: registrationLiteState.passwordless.error,
|
|
5160
|
-
nowUtc: registrationLiteState.nowUtc,
|
|
5161
5155
|
promoCode: registrationLiteState.promoCode,
|
|
5162
5156
|
promoCodeVerified: registrationLiteState.promoCodeVerified,
|
|
5163
5157
|
promoCodeValidating: registrationLiteState.promoCodeValidating,
|
|
@@ -5177,7 +5171,6 @@ const RegistrationForm = (0,external_react_redux_.connect)(mapStateToProps, {
|
|
|
5177
5171
|
goToLogin: actions/* goToLogin */.hh,
|
|
5178
5172
|
getMyInvitation: actions/* getMyInvitation */.q1,
|
|
5179
5173
|
clearWidgetState: actions/* clearWidgetState */.YS,
|
|
5180
|
-
updateClock: actions/* updateClock */.ry,
|
|
5181
5174
|
loadProfileData: actions/* loadProfileData */.Bi,
|
|
5182
5175
|
applyPromoCode: actions/* applyPromoCode */.gs,
|
|
5183
5176
|
removePromoCode: actions/* removePromoCode */.$r,
|
|
@@ -5237,7 +5230,7 @@ RegistrationForm.propTypes = {
|
|
|
5237
5230
|
companyDDLOptions2Show: (external_prop_types_default()).number
|
|
5238
5231
|
};
|
|
5239
5232
|
|
|
5240
|
-
/* harmony default export */ const registration_form = ((0,
|
|
5233
|
+
/* harmony default export */ const registration_form = ((0,withWidgetProviders/* withWidgetProviders */.F)(RegistrationForm));
|
|
5241
5234
|
})();
|
|
5242
5235
|
|
|
5243
5236
|
/******/ return __webpack_exports__;
|