summit-registration-lite 7.0.3 → 7.0.5
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/.claude/rules/summit-registration-lite-component-props.md +95 -0
- package/.claude/rules/summit-registration-lite-i18n.md +62 -0
- package/.claude/rules/summit-registration-lite-payment-providers.md +69 -0
- package/.claude/rules/summit-registration-lite-project.md +80 -0
- package/.claude/rules/summit-registration-lite-redux-actions.md +65 -0
- package/.claude/rules/summit-registration-lite-step-flow.md +77 -0
- package/.claude/rules/summit-registration-lite-testing.md +97 -0
- package/.claude/rules/summit-registration-lite-utils.md +71 -0
- package/.claude/skills/summit-registration-lite-add-provider/SKILL.md +155 -0
- package/.claude/skills/summit-registration-lite-dev-setup/SKILL.md +67 -0
- package/.claude/skills/summit-registration-lite-publish/SKILL.md +64 -0
- package/.claude/skills/summit-registration-lite-scaffold-component/SKILL.md +152 -0
- package/.codegraph/config.json +141 -0
- package/.codegraph/daemon.pid +6 -0
- package/dist/components/index.css +1 -2
- package/dist/components/index.js +78 -113
- package/dist/components/index.js.map +1 -1
- package/dist/components/registration-form.css +1 -2
- package/dist/components/registration-form.js +71 -105
- package/dist/components/registration-form.js.map +1 -1
- package/dist/components/registration-modal.css +1 -2
- package/dist/components/registration-modal.js +77 -112
- package/dist/components/registration-modal.js.map +1 -1
- package/dist/index.css +1 -2
- package/dist/index.js +77 -112
- package/dist/index.js.map +1 -1
- package/e2e/promo-code-discovery.spec.js +4 -2
- package/package.json +5 -3
package/dist/index.css
CHANGED
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
.title___DNZyl{font-weight:bold;display:flex;justify-content:space-between}.summary___quWdZ{text-align:right}.promoCode___bqTCw{display:inline-flex}.promoCode___bqTCw abbr{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:10ch}.crossOut___QZ7dy{text-decoration:line-through}.discount___sEK_Q{color:red}.taxes___fe8oJ{display:inline-flex}.taxes___fe8oJ abbr{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:15ch}.promo___F8lPO{font-weight:bold;display:flex;justify-content:flex-end}.form___aoo7w{display:flex;gap:10px;margin-top:10px}.dropdown____HWg0{flex:1 1 auto;min-width:0}.quantity___SIEQZ{flex-shrink:0}.quantity___SIEQZ input,.quantity___SIEQZ button{height:36px;text-align:center;border:1px solid var(--color_input_border_color)}.quantity___SIEQZ input{padding:0 8px;width:48px !important}.quantity___SIEQZ input,.quantity___SIEQZ input:read-only{border:1px solid var(--color_input_border_color);color:var(--color_input_text_color);background-color:var(--color_input_background_color)}.quantity___SIEQZ button{display:flex;align-items:center}.quantity___SIEQZ button:disabled,.quantity___SIEQZ button:disabled:hover{opacity:.65;background:#dedede;border-color:#bebebe}.soldOut___Hatfr{height:36px;padding:0 16px;line-height:34px;font-weight:700px;background:#dedede;border:solid 1px #bebebe;border-radius:5px;opacity:.65;font-weight:700;flex-shrink:0}.moreInfo___LmwOe{display:inline-block;margin-top:4px;font-size:12px}.moreInfoTooltip___nOBf1{max-width:280px}.inPersonDisclaimer___PXGTz{margin-top:15px;padding-right:10px;max-height:150px;overflow-y:auto}
|
|
8
8
|
.placeholder___pcdCn{border-radius:5px;width:100%;border:1px solid var(--color_input_border_color);background-color:var(--color_input_background_color);padding:5px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;height:36px}.placeholder___pcdCn i{padding:2px 5px;border-left:1px solid var(--color_primary)}.placeholder___pcdCn .selectedTicket___qkbpH{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inPersonDisclaimer___z_DzO{padding:4px}.dropdown___mfbPG{margin-top:10px;border-radius:5px;width:100%;border:1px solid var(--color_input_border_color);color:var(--color_input_text_color);background-color:var(--color_input_background_color);cursor:pointer}.dropdown___mfbPG div{padding:5px}.dropdown___mfbPG div:hover{border-radius:5px;background-color:var(--color_primary50);color:var(--color_input_text_color)}.soldOut___rBLC0,.soldOut___rBLC0:hover,.soldOut___rBLC0:focus{color:inherit !important;background-color:#dedede !important;opacity:.65;cursor:not-allowed}
|
|
9
9
|
.promoCodeWrapper___aw3Zx{padding-top:16px;display:flex;flex-direction:column;gap:8px}.promoCodeWrapper___aw3Zx span{color:var(--color_text_dark);font-size:14px;font-weight:600;line-height:140%}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET{display:flex;align-items:center;position:relative;height:36px;max-width:400px}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET input{display:inline-flex;padding:13px 8px;width:70%;height:100%;color:var(--color_input_text_color);background-color:var(--color_input_background_color);border:1px solid var(--color_input_border_color);border-right:none;border-radius:5px 0px 0px 5px}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET input.promoCodeActive___j7xnn{padding-right:25px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:var(--color_gray_dark, #333) !important;background-color:var(--color_gray_lighter, #f5f5f5) !important}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .codeButtonWrapper___jVZh5{display:flex;align-items:center;width:30%;height:100%;background-color:#818181;border-radius:0px 5px 5px 0px}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .codeButtonWrapper___jVZh5.noCode___YUmVy{background-color:#cfcfcf;cursor:not-allowed}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .codeButtonWrapper___jVZh5 button{color:#fff;font-size:14px;font-style:normal;font-weight:600;line-height:120%;letter-spacing:-0.14px;width:100%;height:100%;border:none;background-color:rgba(0,0,0,0)}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .statusIcon___l1uV0{position:absolute;right:32%;font-size:16px;font-weight:bold;line-height:1}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .valid___pDUq_{color:#92cd76}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .invalid___UO9dX{color:#d32f2f}.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET .spinner___SKEJg{width:16px;height:16px;border:2px solid var(--color_gray_light);border-top-color:var(--color_primary);border-radius:50%;animation:spin___wP5uK .6s linear infinite;font-size:0}@keyframes spin___wP5uK{to{transform:rotate(360deg)}}.promoCodeWrapper___aw3Zx .moreInfo___Ru3Rv{display:inline-block;margin-top:-4px;font-size:12px}@media screen and (max-width: 540px){.promoCodeWrapper___aw3Zx .promoCodeInput___rDiET{max-width:100%}.promoCodeWrapper___aw3Zx .moreInfo___Ru3Rv{display:none}}.moreInfoTooltip___eaYWm{max-width:280px}
|
|
10
|
-
.notice____Pa2z{margin-top:10px;padding:10px 12px;border-radius:4px;font-size:13px}.
|
|
10
|
+
.notice____Pa2z{display:flex;align-items:flex-start;gap:6px;margin-top:10px;padding:10px 12px;border-radius:4px;font-size:13px}.content___sR1Ps{flex:1}.content___sR1Ps>div+div{margin-top:1px}.error___WzZms{background-color:#fff0f0;border:1px solid #ffcdd2;color:#d32f2f}.info___WFfzs{background-color:#f0f7ff;border:1px solid #b8daff;color:inherit}.icon___YWZms{flex-shrink:0;line-height:1.4}
|
|
11
11
|
.button___MZBIY[disabled]{background-color:var(--color_secondary_contrast) !important}.button___MZBIY{font-weight:bold !important;font-size:1em !important;cursor:pointer !important;border:1px solid var(--color_input_border_color) !important;color:var(--color_input_text_color) !important;background-color:var(--color_input_background_color) !important}.button___MZBIY:hover{color:var(--color_input_text_color) !important}.button___MZBIY:active,.button___MZBIY:focus{color:var(--color_input_text_color) !important}.outerWrapper___XRnaq{padding:10px 0px 10px 10px;margin:10px}.outerWrapper___XRnaq .innerWrapper___LFsOH{display:flex;justify-content:space-between;align-items:center}.outerWrapper___XRnaq .innerWrapper___LFsOH span{font-size:14px}.outerWrapper___XRnaq .innerWrapper___LFsOH .registration___jdf6T{cursor:pointer;color:var(--color_primary);text-decoration:underline}.outerWrapper___XRnaq .innerWrapper___LFsOH .actions___Gsf0y{display:flex}.outerWrapper___XRnaq .innerWrapper___LFsOH .actions___Gsf0y button{margin-left:10px}
|
|
12
12
|
.button___XMN8a[disabled]{background-color:var(--color_secondary_contrast) !important}.button___XMN8a{font-weight:bold !important;font-size:1em !important;cursor:pointer !important;border:1px solid var(--color_input_border_color) !important;color:var(--color_input_text_color) !important;background-color:var(--color_input_background_color) !important}.button___XMN8a:hover{color:var(--color_input_text_color) !important}.button___XMN8a:active,.button___XMN8a:focus{color:var(--color_input_text_color) !important}.wrapper___Jd5Xg{height:370px;display:flex;flex-direction:column;align-items:center;justify-content:space-around;margin:15px 0;padding:15px;border-radius:5px;border:1px solid var(--color_input_border_color);text-align:center}.wrapper___Jd5Xg .circle___lcN86{margin-bottom:10px;background-color:var(--color_input_background_color);border-radius:50px;border:1px solid var(--color_text_dark);padding:10px}.wrapper___Jd5Xg .circle___lcN86 i{font-size:36px;color:var(--color_text_dark)}.wrapper___Jd5Xg .complete___HAHzl{font-weight:bold;font-size:20px}.wrapper___Jd5Xg .actions___jJdPX{display:flex}.wrapper___Jd5Xg button{margin:10px 5px 0 5px;background-color:var(--color_button_background_color) !important;color:var(--color_button_color) !important}.wrapper___Jd5Xg span{font-size:14px}.wrapper___Jd5Xg a{color:var(--color_text_dark);text-decoration:underline}.wrapper___Jd5Xg .footer___FL9TW{font-size:14px;font-weight:normal}
|
|
13
13
|
.passwordlessWrapper___BRQ_s{height:450px;display:flex;justify-content:center;align-items:center;flex-direction:column}.passwordlessWrapper___BRQ_s .codeSent___NzYb_{margin-top:10px;color:#e5424d;font-weight:bold;font-size:14px}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi{text-align:center;font-weight:bold;height:100%;width:300px;display:flex;flex-direction:column;justify-content:center}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .logo___qNVrv{width:175px;align-self:center}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .logo___qNVrv.logoDark___VVYee{display:none}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .digits___Vu5iy{margin-top:15px;display:inline-block}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .codeInput___LnTZe{margin-top:20px;display:flex;justify-content:center}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .codeInput___LnTZe input{font-family:"Monaco",monospace,"OpenSans",Helvetica;height:56px;width:56px;font-size:42px;color:var(--color_input_text_color);background-color:var(--color_input_background_color);border:1px solid var(--color_input_border_color);border-radius:5px;padding:5px;display:inline-flex;text-transform:uppercase;text-align:center;margin:0 5px}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .error___wZflZ{margin-top:10px;color:#e5424d;font-size:14px}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .verify___IBgMl{margin-top:10px}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .verify___IBgMl .button___nBhtQ{padding:10px 30px;font-weight:normal;justify-content:center;margin:5px 0;border-radius:5px;cursor:pointer;color:var(--color_input_text_color);background-color:var(--color_input_background_color);border:1px solid var(--color_input_border_color);width:100%;font-size:1em}.passwordlessWrapper___BRQ_s .innerWrapper___nRLDi .verify___IBgMl .link___f6fDT{color:var(--color_text_dark);text-decoration:underline;cursor:pointer}.passwordlessWrapper___BRQ_s .resend___Nma1U{margin:auto 0 0 0;font-weight:normal;font-size:14px}.passwordlessWrapper___BRQ_s .resend___Nma1U button{color:var(--color_text_dark);text-decoration:underline;cursor:pointer;display:inline;border:none;background-color:rgba(0,0,0,0);padding:0}.passwordlessWrapper___BRQ_s .resend___Nma1U .disabled___fMnzY{color:var(--color_text_med);cursor:not-allowed}html[data-theme=DARK] .logoLight___vSbn_{display:none}html[data-theme=DARK] .logoDark___VVYee{display:block !important}html[data-theme=LIGHT] .logoDark___VVYee{display:none}html[data-theme=LIGHT] .logoLight___vSbn_{display:block !important}
|
|
14
14
|
.ticketOwnedWrapper___nhkDY{margin:10px}.ticketOwnedWrapper___nhkDY span{display:block}.alert___c49oP{margin:0 !important}
|
|
15
|
-
.noAllowedWrapper___k52of{margin:10px}.alert___McKm0{margin:0 !important}
|
|
16
15
|
.ticketTaxesErrorWrapper___ldztd{margin:10px;min-height:150px;display:flex;flex-direction:column}.ticketTaxesErrorWrapper___ldztd button{width:100px;align-self:center;margin:10px 5px 0 5px}.alert___AM17V{margin:0 !important;text-align:center;padding:30px}
|
|
17
16
|
#modal___G3Cmq{padding:100px 0;overflow-y:auto}.modalContent___lIaqw{overflow:initial}@media screen and (min-width: 769px){.modalContent___lIaqw{width:720px}}.outerWrapper___OWXyi{border:1px solid var(--color_input_border_color);background-color:var(--color_background_light);border-radius:5px}.innerWrapper___mIrBF{padding:10px}.title___Tbvkl{display:flex;justify-content:center;align-items:center;border-bottom:1px solid var(--color_input_border_color);margin:0px -10px;padding:0px 15px 5px}.title___Tbvkl i{cursor:pointer;margin-left:auto}.title___Tbvkl span{width:100%;font-weight:bold;font-size:18px;text-align:center;color:var(--color_text_dark)}
|
|
18
17
|
|
package/dist/index.js
CHANGED
|
@@ -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
|
|
|
@@ -1344,7 +1336,7 @@ LoginComponent.defaultProps = {
|
|
|
1344
1336
|
|
|
1345
1337
|
/***/ }),
|
|
1346
1338
|
|
|
1347
|
-
/***/
|
|
1339
|
+
/***/ 485:
|
|
1348
1340
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1349
1341
|
|
|
1350
1342
|
"use strict";
|
|
@@ -1364,8 +1356,10 @@ var external_react_redux_ = __webpack_require__(22);
|
|
|
1364
1356
|
// EXTERNAL MODULE: external "prop-types"
|
|
1365
1357
|
var external_prop_types_ = __webpack_require__(580);
|
|
1366
1358
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
1367
|
-
// EXTERNAL MODULE: ./src/utils/
|
|
1368
|
-
var
|
|
1359
|
+
// EXTERNAL MODULE: ./src/utils/withWidgetProviders.js + 8 modules
|
|
1360
|
+
var withWidgetProviders = __webpack_require__(336);
|
|
1361
|
+
// EXTERNAL MODULE: external "openstack-uicore-foundation/lib/components/clock-context"
|
|
1362
|
+
var clock_context_ = __webpack_require__(959);
|
|
1369
1363
|
;// CONCATENATED MODULE: external "react-spring"
|
|
1370
1364
|
const external_react_spring_namespaceObject = require("react-spring");
|
|
1371
1365
|
;// CONCATENATED MODULE: external "react-use"
|
|
@@ -1627,9 +1621,6 @@ const usePromoCode = ({
|
|
|
1627
1621
|
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/ajaxloader"
|
|
1628
1622
|
const ajaxloader_namespaceObject = require("openstack-uicore-foundation/lib/components/ajaxloader");
|
|
1629
1623
|
var ajaxloader_default = /*#__PURE__*/__webpack_require__.n(ajaxloader_namespaceObject);
|
|
1630
|
-
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/components/clock"
|
|
1631
|
-
const clock_namespaceObject = require("openstack-uicore-foundation/lib/components/clock");
|
|
1632
|
-
var clock_default = /*#__PURE__*/__webpack_require__.n(clock_namespaceObject);
|
|
1633
1624
|
// EXTERNAL MODULE: ./src/components/login/index.js + 2 modules
|
|
1634
1625
|
var login = __webpack_require__(462);
|
|
1635
1626
|
;// CONCATENATED MODULE: ./src/components/payment/index.module.scss
|
|
@@ -3001,17 +2992,19 @@ const PromoCodeInput = ({
|
|
|
3001
2992
|
/* harmony default export */ const promocode_input = (PromoCodeInput);
|
|
3002
2993
|
;// CONCATENATED MODULE: ./src/components/ticket-notice/index.module.scss
|
|
3003
2994
|
// extracted by mini-css-extract-plugin
|
|
3004
|
-
/* harmony default export */ const ticket_notice_index_module = ({"notice":"notice____Pa2z","error":"error___WzZms","info":"info___WFfzs","icon":"icon___YWZms"});
|
|
2995
|
+
/* harmony default export */ const ticket_notice_index_module = ({"notice":"notice____Pa2z","content":"content___sR1Ps","error":"error___WzZms","info":"info___WFfzs","icon":"icon___YWZms"});
|
|
3005
2996
|
;// CONCATENATED MODULE: ./src/components/ticket-notice/index.js
|
|
3006
2997
|
|
|
3007
2998
|
// `message` is either a single string or an array of strings. Arrays render
|
|
3008
2999
|
// stacked consecutively inside the same notice box. Returns null when the
|
|
3009
3000
|
// message is empty/unset so callers can pass conditional arrays without an
|
|
3010
|
-
// outer guard.
|
|
3001
|
+
// outer guard. Pass `html` when the message is admin-authored HTML (e.g.
|
|
3002
|
+
// marketing settings) that needs link rendering.
|
|
3011
3003
|
|
|
3012
3004
|
const TicketNotice = ({
|
|
3013
3005
|
message,
|
|
3014
|
-
variant = 'info'
|
|
3006
|
+
variant = 'info',
|
|
3007
|
+
html = false
|
|
3015
3008
|
}) => {
|
|
3016
3009
|
const items = Array.isArray(message) ? message : message ? [message] : [];
|
|
3017
3010
|
if (items.length === 0) return null;
|
|
@@ -3019,9 +3012,16 @@ const TicketNotice = ({
|
|
|
3019
3012
|
className: `${ticket_notice_index_module.notice} ${ticket_notice_index_module[variant]}`
|
|
3020
3013
|
}, variant === 'error' && /*#__PURE__*/external_react_default().createElement("span", {
|
|
3021
3014
|
className: ticket_notice_index_module.icon
|
|
3022
|
-
}, "\u26A0"),
|
|
3015
|
+
}, "\u26A0"), /*#__PURE__*/external_react_default().createElement("div", {
|
|
3016
|
+
className: ticket_notice_index_module.content
|
|
3017
|
+
}, items.map((m, i) => html ? /*#__PURE__*/external_react_default().createElement("div", {
|
|
3018
|
+
key: i,
|
|
3019
|
+
dangerouslySetInnerHTML: {
|
|
3020
|
+
__html: m
|
|
3021
|
+
}
|
|
3022
|
+
}) : /*#__PURE__*/external_react_default().createElement("div", {
|
|
3023
3023
|
key: i
|
|
3024
|
-
}, m)));
|
|
3024
|
+
}, m))));
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
3027
3027
|
/* harmony default export */ const ticket_notice = (TicketNotice);
|
|
@@ -3076,7 +3076,7 @@ const TicketTypeComponent = ({
|
|
|
3076
3076
|
promoCode,
|
|
3077
3077
|
promoCodeAllowsReassign = true,
|
|
3078
3078
|
trackViewItem,
|
|
3079
|
-
|
|
3079
|
+
noAllowedTicketsMessage
|
|
3080
3080
|
}) => {
|
|
3081
3081
|
const {
|
|
3082
3082
|
state: promoState = {},
|
|
@@ -3296,8 +3296,9 @@ const TicketTypeComponent = ({
|
|
|
3296
3296
|
}, /*#__PURE__*/external_react_default().createElement("i", {
|
|
3297
3297
|
className: "fa fa-plus"
|
|
3298
3298
|
}))))))), !showTicketSelector && /*#__PURE__*/external_react_default().createElement(ticket_notice, {
|
|
3299
|
-
message:
|
|
3300
|
-
variant: "info"
|
|
3299
|
+
message: noAllowedTicketsMessage || external_i18n_react_default().translate("ticket_type.no_tickets_available"),
|
|
3300
|
+
variant: "info",
|
|
3301
|
+
html: !!noAllowedTicketsMessage
|
|
3301
3302
|
}), /*#__PURE__*/external_react_default().createElement((external_react_tooltip_default()), {
|
|
3302
3303
|
id: "ticket-quantity-info",
|
|
3303
3304
|
place: "bottom",
|
|
@@ -3412,7 +3413,7 @@ const external_react_content_loader_namespaceObject = require("react-content-loa
|
|
|
3412
3413
|
var external_react_content_loader_default = /*#__PURE__*/__webpack_require__.n(external_react_content_loader_namespaceObject);
|
|
3413
3414
|
;// CONCATENATED MODULE: ./src/components/purchase-complete/index.js
|
|
3414
3415
|
const _excluded = ["cta", "clear", "close"],
|
|
3415
|
-
_excluded2 = ["checkout", "user", "onPurchaseComplete", "goToExtraQuestions", "goToEvent", "goToMyOrders", "completedExtraQuestions", "summit", "
|
|
3416
|
+
_excluded2 = ["checkout", "user", "onPurchaseComplete", "goToExtraQuestions", "goToEvent", "goToMyOrders", "completedExtraQuestions", "summit", "clearWidgetState", "closeWidget", "supportEmail", "hasVirtualAccessLevel"];
|
|
3416
3417
|
|
|
3417
3418
|
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; }
|
|
3418
3419
|
|
|
@@ -3439,6 +3440,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
3439
3440
|
|
|
3440
3441
|
|
|
3441
3442
|
|
|
3443
|
+
|
|
3442
3444
|
const CTAButton = _ref => {
|
|
3443
3445
|
let {
|
|
3444
3446
|
cta,
|
|
@@ -3467,7 +3469,6 @@ const PurchaseComplete = _ref2 => {
|
|
|
3467
3469
|
goToMyOrders,
|
|
3468
3470
|
completedExtraQuestions,
|
|
3469
3471
|
summit,
|
|
3470
|
-
nowUtc,
|
|
3471
3472
|
clearWidgetState,
|
|
3472
3473
|
closeWidget,
|
|
3473
3474
|
supportEmail,
|
|
@@ -3480,8 +3481,10 @@ const PurchaseComplete = _ref2 => {
|
|
|
3480
3481
|
}, []);
|
|
3481
3482
|
const [requireExtraQuestions, setRequireExtraQuestions] = (0,external_react_.useState)(null);
|
|
3482
3483
|
const [extraQuestionsLoaded, setExtraQuestonsLoaded] = (0,external_react_.useState)(false);
|
|
3483
|
-
const isMultiOrder = (0,external_react_.useMemo)(() => checkout?.tickets.length > 1, [checkout]);
|
|
3484
|
-
|
|
3484
|
+
const isMultiOrder = (0,external_react_.useMemo)(() => checkout?.tickets.length > 1, [checkout]); // Re-runs every clock tick but the boolean only changes on summit
|
|
3485
|
+
// active/inactive transitions (typically zero times per session).
|
|
3486
|
+
|
|
3487
|
+
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]));
|
|
3485
3488
|
const currentTicket = (0,external_react_.useMemo)(() => isMultiOrder ? checkout?.tickets.find(t => t?.owner?.email === user?.email) : checkout?.tickets.find(t => t?.owner), [user]);
|
|
3486
3489
|
(0,external_react_.useEffect)(() => {
|
|
3487
3490
|
completedExtraQuestions(currentTicket?.owner || null).then(res => {
|
|
@@ -3630,40 +3633,6 @@ const TicketOwnedComponent = ({
|
|
|
3630
3633
|
};
|
|
3631
3634
|
|
|
3632
3635
|
/* harmony default export */ const ticket_owned = (TicketOwnedComponent);
|
|
3633
|
-
;// CONCATENATED MODULE: ./src/components/no-allowed-tickets/index.module.scss
|
|
3634
|
-
// extracted by mini-css-extract-plugin
|
|
3635
|
-
/* harmony default export */ const no_allowed_tickets_index_module = ({"noAllowedWrapper":"noAllowedWrapper___k52of","alert":"alert___McKm0"});
|
|
3636
|
-
;// CONCATENATED MODULE: ./src/components/no-allowed-tickets/index.js
|
|
3637
|
-
/**
|
|
3638
|
-
* Copyright 2020 OpenStack Foundation
|
|
3639
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3640
|
-
* you may not use this file except in compliance with the License.
|
|
3641
|
-
* You may obtain a copy of the License at
|
|
3642
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3643
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3644
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3645
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3646
|
-
* See the License for the specific language governing permissions and
|
|
3647
|
-
* limitations under the License.
|
|
3648
|
-
**/
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
const NoAllowedTickets = ({
|
|
3653
|
-
noAllowedTicketsMessage
|
|
3654
|
-
}) => {
|
|
3655
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
3656
|
-
className: styles.noAllowedWrapper
|
|
3657
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3658
|
-
className: `${styles.alert} alert alert-warning`,
|
|
3659
|
-
role: "alert",
|
|
3660
|
-
dangerouslySetInnerHTML: {
|
|
3661
|
-
__html: noAllowedTicketsMessage
|
|
3662
|
-
}
|
|
3663
|
-
}));
|
|
3664
|
-
};
|
|
3665
|
-
|
|
3666
|
-
/* harmony default export */ const no_allowed_tickets = ((/* unused pure expression or super */ null && (NoAllowedTickets)));
|
|
3667
3636
|
;// CONCATENATED MODULE: ./src/components/ticket-taxes-error/index.module.scss
|
|
3668
3637
|
// extracted by mini-css-extract-plugin
|
|
3669
3638
|
/* harmony default export */ const ticket_taxes_error_index_module = ({"ticketTaxesErrorWrapper":"ticketTaxesErrorWrapper___ldztd","alert":"alert___AM17V"});
|
|
@@ -3703,7 +3672,7 @@ const TicketTaxesError = ({
|
|
|
3703
3672
|
|
|
3704
3673
|
/* harmony default export */ const ticket_taxes_error = (TicketTaxesError);
|
|
3705
3674
|
;// CONCATENATED MODULE: ./src/components/registration-form/index.js
|
|
3706
|
-
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", "
|
|
3675
|
+
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"];
|
|
3707
3676
|
|
|
3708
3677
|
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; }
|
|
3709
3678
|
|
|
@@ -3752,7 +3721,6 @@ function registration_form_objectWithoutPropertiesLoose(source, excluded) { if (
|
|
|
3752
3721
|
|
|
3753
3722
|
|
|
3754
3723
|
|
|
3755
|
-
|
|
3756
3724
|
|
|
3757
3725
|
|
|
3758
3726
|
let language = (0,utils/* getCurrentUserLanguage */.AS)();
|
|
@@ -3768,6 +3736,11 @@ try {
|
|
|
3768
3736
|
external_i18n_react_default().setTexts(__webpack_require__(443));
|
|
3769
3737
|
}
|
|
3770
3738
|
|
|
3739
|
+
const isTicketCurrentlyAvailable = (tt, nowUtc) => // prepaid tickets are always available (sales windows don't apply)
|
|
3740
|
+
tt.sub_type === constants.TICKET_TYPE_SUBTYPE_PREPAID || // no sales window configured → ticket is open-ended, always available
|
|
3741
|
+
tt.sales_start_date === null && tt.sales_end_date === null || // ticket is within its configured sales window
|
|
3742
|
+
nowUtc >= tt.sales_start_date && nowUtc <= tt.sales_end_date;
|
|
3743
|
+
|
|
3771
3744
|
const RegistrationFormContent = _ref => {
|
|
3772
3745
|
let {
|
|
3773
3746
|
loadSession,
|
|
@@ -3816,15 +3789,12 @@ const RegistrationFormContent = _ref => {
|
|
|
3816
3789
|
getMyInvitation,
|
|
3817
3790
|
showMultipleTicketTexts,
|
|
3818
3791
|
noAllowedTicketsMessage,
|
|
3819
|
-
noTicketsAvailableMessage,
|
|
3820
3792
|
ticketTaxesErrorMessage,
|
|
3821
3793
|
authErrorCallback,
|
|
3822
3794
|
clearWidgetState,
|
|
3823
3795
|
allowPromoCodes,
|
|
3824
3796
|
showCompanyInput,
|
|
3825
3797
|
companyDDLPlaceholder,
|
|
3826
|
-
nowUtc,
|
|
3827
|
-
updateClock,
|
|
3828
3798
|
completedExtraQuestions,
|
|
3829
3799
|
loadProfileData,
|
|
3830
3800
|
closeWidget,
|
|
@@ -3883,9 +3853,11 @@ const RegistrationFormContent = _ref => {
|
|
|
3883
3853
|
const {
|
|
3884
3854
|
publicKey,
|
|
3885
3855
|
provider
|
|
3886
|
-
} = (0,utils/* getCurrentProvider */.U5)(summitData);
|
|
3887
|
-
|
|
3888
|
-
|
|
3856
|
+
} = (0,utils/* getCurrentProvider */.U5)(summitData); // Re-runs every clock tick but only commits a new array when the filtered
|
|
3857
|
+
// contents shift (a sale window opens/closes), so the form tree stops
|
|
3858
|
+
// re-rendering once per second.
|
|
3859
|
+
|
|
3860
|
+
const allowedTicketTypes = (0,clock_context_.useClockSelector)((0,external_react_.useCallback)(nowUtc => hasTicketData ? ticketTypes.filter(tt => isTicketCurrentlyAvailable(tt, nowUtc)) : [], [hasTicketData, ticketTypes]), external_react_redux_.shallowEqual);
|
|
3889
3861
|
const alreadyOwnedTickets = (0,external_react_.useMemo)(() => isAuthenticated && hasTicketData && !ticketDataError && allowedTicketTypes.length > 0 && ownedTickets.length > 0, [isAuthenticated, hasTicketData, ticketDataError, allowedTicketTypes, ownedTickets]);
|
|
3890
3862
|
(0,external_react_.useEffect)(() => {
|
|
3891
3863
|
if (profileData) loadProfileData(profileData);
|
|
@@ -4064,9 +4036,6 @@ const RegistrationFormContent = _ref => {
|
|
|
4064
4036
|
color: '#ffffff',
|
|
4065
4037
|
show: widgetLoading || loading,
|
|
4066
4038
|
size: 80
|
|
4067
|
-
}), /*#__PURE__*/external_react_default().createElement((clock_default()), {
|
|
4068
|
-
onTick: timestamp => updateClock(timestamp),
|
|
4069
|
-
timezone: summitData.time_zone_id
|
|
4070
4039
|
}), profileData && ticketDataError && /*#__PURE__*/external_react_default().createElement(ticket_taxes_error, {
|
|
4071
4040
|
ticketTaxesErrorMessage: ticketTaxesErrorMessage,
|
|
4072
4041
|
retryTicketTaxes: () => handleGetTicketTypesAndTaxes(summitData?.id)
|
|
@@ -4109,7 +4078,7 @@ const RegistrationFormContent = _ref => {
|
|
|
4109
4078
|
changeForm: mergeFormValues,
|
|
4110
4079
|
trackViewItem: trackViewItem,
|
|
4111
4080
|
showMultipleTicketTexts: showMultipleTicketTexts,
|
|
4112
|
-
|
|
4081
|
+
noAllowedTicketsMessage: noAllowedTicketsMessage
|
|
4113
4082
|
}), /*#__PURE__*/external_react_default().createElement(personal_information, {
|
|
4114
4083
|
isActive: step === constants.STEP_PERSONAL_INFO,
|
|
4115
4084
|
reservation: reservation,
|
|
@@ -4182,7 +4151,6 @@ const RegistrationFormContent = _ref => {
|
|
|
4182
4151
|
goToMyOrders: goToMyOrders,
|
|
4183
4152
|
goToExtraQuestions: goToExtraQuestions,
|
|
4184
4153
|
completedExtraQuestions: completedExtraQuestions,
|
|
4185
|
-
nowUtc: nowUtc,
|
|
4186
4154
|
clearWidgetState: clearWidgetState,
|
|
4187
4155
|
closeWidget: closeWidget,
|
|
4188
4156
|
hasVirtualAccessLevel: hasVirtualAccessLevel,
|
|
@@ -4213,7 +4181,6 @@ const mapStateToProps = ({
|
|
|
4213
4181
|
passwordlessCodeLifeTime: registrationLiteState.passwordless.otp_lifetime,
|
|
4214
4182
|
passwordlessCodeSent: registrationLiteState.passwordless.code_sent,
|
|
4215
4183
|
passwordlessCodeError: registrationLiteState.passwordless.error,
|
|
4216
|
-
nowUtc: registrationLiteState.nowUtc,
|
|
4217
4184
|
promoCode: registrationLiteState.promoCode,
|
|
4218
4185
|
promoCodeVerified: registrationLiteState.promoCodeVerified,
|
|
4219
4186
|
promoCodeValidating: registrationLiteState.promoCodeValidating,
|
|
@@ -4233,7 +4200,6 @@ const RegistrationForm = (0,external_react_redux_.connect)(mapStateToProps, {
|
|
|
4233
4200
|
goToLogin: actions/* goToLogin */.hh,
|
|
4234
4201
|
getMyInvitation: actions/* getMyInvitation */.q1,
|
|
4235
4202
|
clearWidgetState: actions/* clearWidgetState */.YS,
|
|
4236
|
-
updateClock: actions/* updateClock */.ry,
|
|
4237
4203
|
loadProfileData: actions/* loadProfileData */.Bi,
|
|
4238
4204
|
applyPromoCode: actions/* applyPromoCode */.gs,
|
|
4239
4205
|
removePromoCode: actions/* removePromoCode */.$r,
|
|
@@ -4293,7 +4259,7 @@ RegistrationForm.propTypes = {
|
|
|
4293
4259
|
companyDDLOptions2Show: (external_prop_types_default()).number
|
|
4294
4260
|
};
|
|
4295
4261
|
|
|
4296
|
-
/* harmony default export */ const registration_form = ((0,
|
|
4262
|
+
/* harmony default export */ const registration_form = ((0,withWidgetProviders/* withWidgetProviders */.F)(RegistrationForm));
|
|
4297
4263
|
|
|
4298
4264
|
/***/ }),
|
|
4299
4265
|
|
|
@@ -4656,14 +4622,14 @@ const avoidTooltipOverflow = ({
|
|
|
4656
4622
|
|
|
4657
4623
|
/***/ }),
|
|
4658
4624
|
|
|
4659
|
-
/***/
|
|
4625
|
+
/***/ 336:
|
|
4660
4626
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4661
4627
|
|
|
4662
4628
|
"use strict";
|
|
4663
4629
|
|
|
4664
4630
|
// EXPORTS
|
|
4665
4631
|
__webpack_require__.d(__webpack_exports__, {
|
|
4666
|
-
"
|
|
4632
|
+
"F": () => (/* binding */ withWidgetProviders)
|
|
4667
4633
|
});
|
|
4668
4634
|
|
|
4669
4635
|
// UNUSED EXPORTS: default
|
|
@@ -4675,6 +4641,8 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
4675
4641
|
var external_react_redux_ = __webpack_require__(22);
|
|
4676
4642
|
;// CONCATENATED MODULE: external "redux-persist/integration/react"
|
|
4677
4643
|
const react_namespaceObject = require("redux-persist/integration/react");
|
|
4644
|
+
// EXTERNAL MODULE: external "openstack-uicore-foundation/lib/components/clock-context"
|
|
4645
|
+
var clock_context_ = __webpack_require__(959);
|
|
4678
4646
|
;// CONCATENATED MODULE: external "redux"
|
|
4679
4647
|
const external_redux_namespaceObject = require("redux");
|
|
4680
4648
|
;// CONCATENATED MODULE: external "redux-thunk"
|
|
@@ -4689,9 +4657,6 @@ var storage_default = /*#__PURE__*/__webpack_require__.n(storage_namespaceObject
|
|
|
4689
4657
|
var actions = __webpack_require__(595);
|
|
4690
4658
|
;// CONCATENATED MODULE: external "openstack-uicore-foundation/lib/security/actions"
|
|
4691
4659
|
const actions_namespaceObject = require("openstack-uicore-foundation/lib/security/actions");
|
|
4692
|
-
;// CONCATENATED MODULE: external "moment"
|
|
4693
|
-
const external_moment_namespaceObject = require("moment");
|
|
4694
|
-
var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_namespaceObject);
|
|
4695
4660
|
// EXTERNAL MODULE: ./src/utils/constants.js
|
|
4696
4661
|
var constants = __webpack_require__(243);
|
|
4697
4662
|
;// CONCATENATED MODULE: ./src/reducer.js
|
|
@@ -4716,8 +4681,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4716
4681
|
|
|
4717
4682
|
|
|
4718
4683
|
|
|
4719
|
-
|
|
4720
|
-
const localNowUtc = external_moment_default()().unix();
|
|
4721
4684
|
const DEFAULT_STATE = {
|
|
4722
4685
|
reservation: null,
|
|
4723
4686
|
checkout: null,
|
|
@@ -4741,7 +4704,6 @@ const DEFAULT_STATE = {
|
|
|
4741
4704
|
summitId: null,
|
|
4742
4705
|
userProfile: null
|
|
4743
4706
|
},
|
|
4744
|
-
nowUtc: localNowUtc,
|
|
4745
4707
|
promoCode: '',
|
|
4746
4708
|
promoCodeVerified: null,
|
|
4747
4709
|
promoCodeValidating: false,
|
|
@@ -4941,16 +4903,6 @@ const RegistrationLiteReducer = (state = DEFAULT_STATE, action) => {
|
|
|
4941
4903
|
});
|
|
4942
4904
|
}
|
|
4943
4905
|
|
|
4944
|
-
case actions/* UPDATE_CLOCK */.VH:
|
|
4945
|
-
{
|
|
4946
|
-
const {
|
|
4947
|
-
timestamp
|
|
4948
|
-
} = payload;
|
|
4949
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4950
|
-
nowUtc: timestamp
|
|
4951
|
-
});
|
|
4952
|
-
}
|
|
4953
|
-
|
|
4954
4906
|
case actions/* CLEAR_CURRENT_PROMO_CODE */.ZD:
|
|
4955
4907
|
{
|
|
4956
4908
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
@@ -5070,7 +5022,7 @@ const getPersistor = () => {
|
|
|
5070
5022
|
persistor = (0,external_redux_persist_namespaceObject.persistStore)(store, null, onRehydrateComplete);
|
|
5071
5023
|
return persistor;
|
|
5072
5024
|
};
|
|
5073
|
-
;// CONCATENATED MODULE: ./src/utils/
|
|
5025
|
+
;// CONCATENATED MODULE: ./src/utils/withWidgetProviders.js
|
|
5074
5026
|
/**
|
|
5075
5027
|
* Copyright 2026 OpenStack Foundation
|
|
5076
5028
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5083,36 +5035,42 @@ const getPersistor = () => {
|
|
|
5083
5035
|
* See the License for the specific language governing permissions and
|
|
5084
5036
|
* limitations under the License.
|
|
5085
5037
|
*
|
|
5086
|
-
* HOC to wrap a
|
|
5038
|
+
* HOC to wrap a widget root with Redux, PersistGate, and ClockProvider.
|
|
5087
5039
|
**/
|
|
5088
5040
|
|
|
5089
5041
|
|
|
5090
5042
|
|
|
5091
5043
|
|
|
5092
|
-
|
|
5093
|
-
|
|
5044
|
+
|
|
5045
|
+
const withWidgetProviders = WrappedComponent => {
|
|
5046
|
+
class WithWidgetProviders extends (external_react_default()).PureComponent {
|
|
5094
5047
|
constructor(props) {
|
|
5095
5048
|
super(props);
|
|
5096
5049
|
this.store = getStore(props.clientId, props.apiBaseUrl, props.getAccessToken);
|
|
5097
5050
|
}
|
|
5098
5051
|
|
|
5099
5052
|
render() {
|
|
5053
|
+
const {
|
|
5054
|
+
summitData
|
|
5055
|
+
} = this.props;
|
|
5100
5056
|
return /*#__PURE__*/external_react_default().createElement(external_react_redux_.Provider, {
|
|
5101
5057
|
store: this.store
|
|
5102
5058
|
}, /*#__PURE__*/external_react_default().createElement(react_namespaceObject.PersistGate, {
|
|
5103
5059
|
persistor: getPersistor()
|
|
5104
|
-
}, /*#__PURE__*/external_react_default().createElement(
|
|
5060
|
+
}, /*#__PURE__*/external_react_default().createElement(clock_context_.ClockProvider, {
|
|
5061
|
+
timezone: summitData?.time_zone_id || 'UTC',
|
|
5062
|
+
now: Math.floor(Date.now() / 1000)
|
|
5063
|
+
}, /*#__PURE__*/external_react_default().createElement(WrappedComponent, this.props))));
|
|
5105
5064
|
}
|
|
5106
5065
|
|
|
5107
|
-
}
|
|
5108
|
-
|
|
5066
|
+
}
|
|
5109
5067
|
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
return
|
|
5068
|
+
WithWidgetProviders.propTypes = WrappedComponent.propTypes;
|
|
5069
|
+
WithWidgetProviders.defaultProps = WrappedComponent.defaultProps;
|
|
5070
|
+
WithWidgetProviders.displayName = `WithWidgetProviders(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;
|
|
5071
|
+
return WithWidgetProviders;
|
|
5114
5072
|
};
|
|
5115
|
-
/* harmony default export */ const
|
|
5073
|
+
/* harmony default export */ const utils_withWidgetProviders = ((/* unused pure expression or super */ null && (withWidgetProviders)));
|
|
5116
5074
|
|
|
5117
5075
|
/***/ }),
|
|
5118
5076
|
|
|
@@ -5159,6 +5117,14 @@ webpackContext.id = 267;
|
|
|
5159
5117
|
|
|
5160
5118
|
/***/ }),
|
|
5161
5119
|
|
|
5120
|
+
/***/ 959:
|
|
5121
|
+
/***/ ((module) => {
|
|
5122
|
+
|
|
5123
|
+
"use strict";
|
|
5124
|
+
module.exports = require("openstack-uicore-foundation/lib/components/clock-context");
|
|
5125
|
+
|
|
5126
|
+
/***/ }),
|
|
5127
|
+
|
|
5162
5128
|
/***/ 580:
|
|
5163
5129
|
/***/ ((module) => {
|
|
5164
5130
|
|
|
@@ -5285,10 +5251,10 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
5285
5251
|
// EXTERNAL MODULE: external "prop-types"
|
|
5286
5252
|
var external_prop_types_ = __webpack_require__(580);
|
|
5287
5253
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
5288
|
-
// EXTERNAL MODULE: ./src/components/registration-form/index.js +
|
|
5289
|
-
var registration_form = __webpack_require__(
|
|
5290
|
-
// EXTERNAL MODULE: ./src/utils/
|
|
5291
|
-
var
|
|
5254
|
+
// EXTERNAL MODULE: ./src/components/registration-form/index.js + 43 modules
|
|
5255
|
+
var registration_form = __webpack_require__(485);
|
|
5256
|
+
// EXTERNAL MODULE: ./src/utils/withWidgetProviders.js + 8 modules
|
|
5257
|
+
var withWidgetProviders = __webpack_require__(336);
|
|
5292
5258
|
;// CONCATENATED MODULE: ./src/styles/general.module.scss
|
|
5293
5259
|
// extracted by mini-css-extract-plugin
|
|
5294
5260
|
/* harmony default export */ const general_module = ({"modal":"modal___G3Cmq","modalContent":"modalContent___lIaqw","outerWrapper":"outerWrapper___OWXyi","innerWrapper":"innerWrapper___mIrBF","title":"title___Tbvkl"});
|
|
@@ -5401,7 +5367,6 @@ RegistrationModal.propTypes = {
|
|
|
5401
5367
|
initialOrderComplete1stParagraph: (external_prop_types_default()).string,
|
|
5402
5368
|
initialOrderComplete2ndParagraph: (external_prop_types_default()).string,
|
|
5403
5369
|
initialOrderCompleteButton: (external_prop_types_default()).string,
|
|
5404
|
-
noTicketsAvailableMessage: (external_prop_types_default()).string,
|
|
5405
5370
|
orderCompleteTitle: (external_prop_types_default()).string,
|
|
5406
5371
|
orderComplete1stParagraph: (external_prop_types_default()).string,
|
|
5407
5372
|
orderComplete2ndParagraph: (external_prop_types_default()).string,
|
|
@@ -5409,7 +5374,7 @@ RegistrationModal.propTypes = {
|
|
|
5409
5374
|
showCompanyInputDefaultOptions: (external_prop_types_default()).bool,
|
|
5410
5375
|
companyDDLOptions2Show: (external_prop_types_default()).number
|
|
5411
5376
|
};
|
|
5412
|
-
/* harmony default export */ const registration_modal = ((0,
|
|
5377
|
+
/* harmony default export */ const registration_modal = ((0,withWidgetProviders/* withWidgetProviders */.F)(RegistrationModal));
|
|
5413
5378
|
})();
|
|
5414
5379
|
|
|
5415
5380
|
/******/ return __webpack_exports__;
|