@royaloperahouse/harmonic 0.9.3-a → 0.9.3-b
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/CHANGELOG.md +3 -0
- package/dist/harmonic.cjs.development.js +151 -310
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +151 -310
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +7 -15
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -50,274 +50,113 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
50
50
|
}
|
|
51
51
|
return t;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function h(r, e, n, o) {
|
|
81
|
-
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
82
|
-
a = Object.create(i.prototype);
|
|
83
|
-
return c(a, "_invoke", function (r, e, n) {
|
|
84
|
-
var o = 1;
|
|
85
|
-
return function (i, a) {
|
|
86
|
-
if (3 === o) throw Error("Generator is already running");
|
|
87
|
-
if (4 === o) {
|
|
88
|
-
if ("throw" === i) throw a;
|
|
89
|
-
return {
|
|
90
|
-
value: t,
|
|
91
|
-
done: !0
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
for (n.method = i, n.arg = a;;) {
|
|
95
|
-
var u = n.delegate;
|
|
96
|
-
if (u) {
|
|
97
|
-
var c = d(u, n);
|
|
98
|
-
if (c) {
|
|
99
|
-
if (c === f) continue;
|
|
100
|
-
return c;
|
|
101
|
-
}
|
|
53
|
+
function _regenerator() {
|
|
54
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
55
|
+
var e,
|
|
56
|
+
t,
|
|
57
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
58
|
+
n = r.iterator || "@@iterator",
|
|
59
|
+
o = r.toStringTag || "@@toStringTag";
|
|
60
|
+
function i(r, n, o, i) {
|
|
61
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
62
|
+
u = Object.create(c.prototype);
|
|
63
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
64
|
+
var i,
|
|
65
|
+
c,
|
|
66
|
+
u,
|
|
67
|
+
f = 0,
|
|
68
|
+
p = o || [],
|
|
69
|
+
y = !1,
|
|
70
|
+
G = {
|
|
71
|
+
p: 0,
|
|
72
|
+
n: 0,
|
|
73
|
+
v: e,
|
|
74
|
+
a: d,
|
|
75
|
+
f: d.bind(e, 4),
|
|
76
|
+
d: function (t, r) {
|
|
77
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
102
78
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
79
|
+
};
|
|
80
|
+
function d(r, n) {
|
|
81
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
82
|
+
var o,
|
|
83
|
+
i = p[t],
|
|
84
|
+
d = G.p,
|
|
85
|
+
l = i[2];
|
|
86
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
87
|
+
}
|
|
88
|
+
if (o || r > 1) return a;
|
|
89
|
+
throw y = !0, n;
|
|
90
|
+
}
|
|
91
|
+
return function (o, p, l) {
|
|
92
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
93
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
94
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
95
|
+
try {
|
|
96
|
+
if (f = 2, i) {
|
|
97
|
+
if (c || (o = "next"), t = i[o]) {
|
|
98
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
99
|
+
if (!t.done) return t;
|
|
100
|
+
u = t.value, c < 2 && (c = 0);
|
|
101
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
102
|
+
i = e;
|
|
103
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
104
|
+
} catch (t) {
|
|
105
|
+
i = e, c = 1, u = t;
|
|
106
|
+
} finally {
|
|
107
|
+
f = 1;
|
|
115
108
|
}
|
|
116
|
-
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
117
109
|
}
|
|
110
|
+
return {
|
|
111
|
+
value: t,
|
|
112
|
+
done: y
|
|
113
|
+
};
|
|
118
114
|
};
|
|
119
|
-
}(r,
|
|
120
|
-
}
|
|
121
|
-
function s(t, r, e) {
|
|
122
|
-
try {
|
|
123
|
-
return {
|
|
124
|
-
type: "normal",
|
|
125
|
-
arg: t.call(r, e)
|
|
126
|
-
};
|
|
127
|
-
} catch (t) {
|
|
128
|
-
return {
|
|
129
|
-
type: "throw",
|
|
130
|
-
arg: t
|
|
131
|
-
};
|
|
132
|
-
}
|
|
115
|
+
}(r, o, i), !0), u;
|
|
133
116
|
}
|
|
134
|
-
|
|
135
|
-
var f = {};
|
|
117
|
+
var a = {};
|
|
136
118
|
function Generator() {}
|
|
137
119
|
function GeneratorFunction() {}
|
|
138
120
|
function GeneratorFunctionPrototype() {}
|
|
139
|
-
|
|
140
|
-
c(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
147
|
-
function g(t) {
|
|
148
|
-
["next", "throw", "return"].forEach(function (r) {
|
|
149
|
-
c(t, r, function (t) {
|
|
150
|
-
return this._invoke(r, t);
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function AsyncIterator(t, r) {
|
|
155
|
-
function e(o, i, a, u) {
|
|
156
|
-
var c = s(t[o], t, i);
|
|
157
|
-
if ("throw" !== c.type) {
|
|
158
|
-
var h = c.arg,
|
|
159
|
-
f = h.value;
|
|
160
|
-
return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
161
|
-
e("next", t, a, u);
|
|
162
|
-
}, function (t) {
|
|
163
|
-
e("throw", t, a, u);
|
|
164
|
-
}) : r.resolve(f).then(function (t) {
|
|
165
|
-
h.value = t, a(h);
|
|
166
|
-
}, function (t) {
|
|
167
|
-
return e("throw", t, a, u);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
u(c.arg);
|
|
171
|
-
}
|
|
172
|
-
var o;
|
|
173
|
-
c(this, "_invoke", function (t, n) {
|
|
174
|
-
function i() {
|
|
175
|
-
return new r(function (r, o) {
|
|
176
|
-
e(t, n, r, o);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
return o = o ? o.then(i, i) : i();
|
|
180
|
-
}, !0);
|
|
181
|
-
}
|
|
182
|
-
function d(r, e) {
|
|
183
|
-
var n = e.method,
|
|
184
|
-
o = r.i[n];
|
|
185
|
-
if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
186
|
-
var i = s(o, r.i, e.arg);
|
|
187
|
-
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
188
|
-
var a = i.arg;
|
|
189
|
-
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
190
|
-
}
|
|
191
|
-
function w(t) {
|
|
192
|
-
this.tryEntries.push(t);
|
|
121
|
+
t = Object.getPrototypeOf;
|
|
122
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
123
|
+
return this;
|
|
124
|
+
}), t),
|
|
125
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
126
|
+
function f(e) {
|
|
127
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
193
128
|
}
|
|
194
|
-
function
|
|
195
|
-
var e = r[4] || {};
|
|
196
|
-
e.type = "normal", e.arg = t, r[4] = e;
|
|
197
|
-
}
|
|
198
|
-
function Context(t) {
|
|
199
|
-
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
200
|
-
}
|
|
201
|
-
function x(r) {
|
|
202
|
-
if (null != r) {
|
|
203
|
-
var e = r[i];
|
|
204
|
-
if (e) return e.call(r);
|
|
205
|
-
if ("function" == typeof r.next) return r;
|
|
206
|
-
if (!isNaN(r.length)) {
|
|
207
|
-
var o = -1,
|
|
208
|
-
a = function e() {
|
|
209
|
-
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
210
|
-
return e.value = t, e.done = !0, e;
|
|
211
|
-
};
|
|
212
|
-
return a.next = a;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
throw new TypeError(typeof r + " is not iterable");
|
|
216
|
-
}
|
|
217
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
218
|
-
var r = "function" == typeof t && t.constructor;
|
|
219
|
-
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
220
|
-
}, r.mark = function (t) {
|
|
221
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
222
|
-
}, r.awrap = function (t) {
|
|
223
|
-
return {
|
|
224
|
-
__await: t
|
|
225
|
-
};
|
|
226
|
-
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
227
|
-
return this;
|
|
228
|
-
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
229
|
-
void 0 === i && (i = Promise);
|
|
230
|
-
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
231
|
-
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
232
|
-
return t.done ? t.value : a.next();
|
|
233
|
-
});
|
|
234
|
-
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
129
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
235
130
|
return this;
|
|
236
|
-
}),
|
|
131
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
237
132
|
return "[object Generator]";
|
|
238
|
-
}),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return function t() {
|
|
243
|
-
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
244
|
-
return t.done = !0, t;
|
|
133
|
+
}), (_regenerator = function () {
|
|
134
|
+
return {
|
|
135
|
+
w: i,
|
|
136
|
+
m: f
|
|
245
137
|
};
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
h = i[2];
|
|
269
|
-
if (-1 === i[0]) return n("end"), !1;
|
|
270
|
-
if (!c && !h) throw Error("try statement without catch or finally");
|
|
271
|
-
if (null != i[0] && i[0] <= u) {
|
|
272
|
-
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
273
|
-
if (u < h) return n(h), !1;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
abrupt: function (t, r) {
|
|
278
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
279
|
-
var n = this.tryEntries[e];
|
|
280
|
-
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
281
|
-
var o = n;
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
286
|
-
var i = o ? o[4] : {};
|
|
287
|
-
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
288
|
-
},
|
|
289
|
-
complete: function (t, r) {
|
|
290
|
-
if ("throw" === t.type) throw t.arg;
|
|
291
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
292
|
-
},
|
|
293
|
-
finish: function (t) {
|
|
294
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
295
|
-
var e = this.tryEntries[r];
|
|
296
|
-
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
catch: function (t) {
|
|
300
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
301
|
-
var e = this.tryEntries[r];
|
|
302
|
-
if (e[0] === t) {
|
|
303
|
-
var n = e[4];
|
|
304
|
-
if ("throw" === n.type) {
|
|
305
|
-
var o = n.arg;
|
|
306
|
-
m(e);
|
|
307
|
-
}
|
|
308
|
-
return o;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
throw Error("illegal catch attempt");
|
|
312
|
-
},
|
|
313
|
-
delegateYield: function (r, e, n) {
|
|
314
|
-
return this.delegate = {
|
|
315
|
-
i: x(r),
|
|
316
|
-
r: e,
|
|
317
|
-
n: n
|
|
318
|
-
}, "next" === this.method && (this.arg = t), f;
|
|
319
|
-
}
|
|
320
|
-
}, r;
|
|
138
|
+
})();
|
|
139
|
+
}
|
|
140
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
141
|
+
var i = Object.defineProperty;
|
|
142
|
+
try {
|
|
143
|
+
i({}, "", {});
|
|
144
|
+
} catch (e) {
|
|
145
|
+
i = 0;
|
|
146
|
+
}
|
|
147
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
148
|
+
function o(r, n) {
|
|
149
|
+
_regeneratorDefine(e, r, function (e) {
|
|
150
|
+
return this._invoke(r, n, e);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
r ? i ? i(e, r, {
|
|
154
|
+
value: n,
|
|
155
|
+
enumerable: !t,
|
|
156
|
+
configurable: !t,
|
|
157
|
+
writable: !t
|
|
158
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
159
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
321
160
|
}
|
|
322
161
|
function _taggedTemplateLiteralLoose(e, t) {
|
|
323
162
|
return t || (t = e.slice(0)), e.raw = t, e;
|
|
@@ -383,7 +222,7 @@ function styleInject(css, ref) {
|
|
|
383
222
|
}
|
|
384
223
|
|
|
385
224
|
var css_248z = "/* Base classes */\n.typography-module_display__ZHsz9 {\n margin: 0;\n font-family: var(--font-family-sans);\n line-height: 100%;\n}\n\n.typography-module_header__FVsLI {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 500;\n}\n\n.typography-module_subtitle__x3sSn {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 500;\n}\n\n.typography-module_bodycopy__-BY2U {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 400;\n}\n\n.typography-module_overline__y1yCC {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 500;\n text-transform: uppercase;\n}\n\n.typography-module_buttontext__Gp0W- {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 400;\n}\n\n.typography-module_captiontext__zyA-- {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 400;\n}\n\n.typography-module_navigationtext__Qj6Zw {\n margin: 0;\n font-family: var(--font-family-sans);\n font-weight: 500;\n}\n\n/* Size modifiers */\n.typography-module_display--large__RwPQD {\n font-size: 96px;\n font-weight: 700;\n letter-spacing: -5px;\n}\n\n.typography-module_display--small__XWUSJ {\n font-size: 68px;\n font-weight: 500;\n letter-spacing: -3px;\n}\n\n.typography-module_header--large__2vP3p {\n font-size: 44px;\n line-height: 48px;\n letter-spacing: -1.5px;\n}\n\n.typography-module_header--medium__OgzlB {\n font-size: 34px;\n line-height: 40px;\n letter-spacing: -1px;\n}\n\n.typography-module_header--small__zLuFf {\n font-size: 26px;\n line-height: 32px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_subtitle--large__1Ep9J {\n font-size: 19px;\n line-height: 26px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_subtitle--small__Vt9bZ {\n font-size: 17px;\n line-height: 24px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_bodycopy--large__BNzf2 {\n font-size: 19px;\n line-height: 26px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_bodycopy--medium__cwJEu {\n font-size: 17px;\n line-height: 24px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_bodycopy--small__fTLSM {\n font-size: 14px;\n line-height: 20px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_overline--large__79WUM {\n font-size: 14px;\n line-height: 18px;\n letter-spacing: 0.3px;\n}\n\n.typography-module_overline--small__MGEG6 {\n font-size: 12px;\n line-height: 14px;\n letter-spacing: 0.2px;\n}\n\n/* Button, Caption, Navigation text */\n.typography-module_buttontext__Gp0W- {\n font-size: 17px;\n line-height: 20px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_captiontext__zyA-- {\n font-size: 17px;\n line-height: 24px;\n letter-spacing: -0.5px;\n}\n\n.typography-module_navigationtext__Qj6Zw {\n font-size: 19px;\n line-height: 19px;\n letter-spacing: 0.4px;\n}\n\n/* Color modifiers */\n.typography-module_display--primary__9sTwU,\n.typography-module_header--primary__KF0PJ,\n.typography-module_subtitle--primary__yL-hS,\n.typography-module_bodycopy--primary__5Uo2D,\n.typography-module_overline--primary__a2NSa,\n.typography-module_buttontext--primary__HnmE3,\n.typography-module_captiontext--primary__mmafI,\n.typography-module_navigationtext--primary__vIsUl {\n color: var(--color-primary);\n}\n\n\n.typography-module_display--black__8hmsx,\n.typography-module_header--black__M3I14,\n.typography-module_subtitle--black__IQRSo,\n.typography-module_bodycopy--black__J8BNP,\n.typography-module_overline--black__RUDoj,\n.typography-module_buttontext--black__irjmz,\n.typography-module_captiontext--black__7axhP,\n.typography-module_navigationtext--black__wDz-G {\n color: var(--color-base-black);\n}\n\n.typography-module_display--white__3QA6W,\n.typography-module_header--white__mm-ex,\n.typography-module_subtitle--white__VzQ3K,\n.typography-module_bodycopy--white__NJ8J8,\n.typography-module_overline--white__cV5QV,\n.typography-module_buttontext--white__rrr8U,\n.typography-module_captiontext--white__OMFwW,\n.typography-module_navigationtext--white__5YDdY {\n color: var(--color-base-white);\n}\n\n.typography-module_display--red__khdLJ,\n.typography-module_header--red__hxuj9,\n.typography-module_subtitle--red__gSK7d,\n.typography-module_bodycopy--red__P5Mau,\n.typography-module_overline--red__OW5dE,\n.typography-module_buttontext--red__mlRi2,\n.typography-module_captiontext--red__jMQIK,\n.typography-module_navigationtext--red__-QADV {\n color: var(--color-primary-red);\n}\n\n.typography-module_display--grey__RsgTf,\n.typography-module_header--grey__rC0vN,\n.typography-module_subtitle--grey__1nkEx,\n.typography-module_bodycopy--grey__SNnaU,\n.typography-module_overline--grey__lGOsK,\n.typography-module_buttontext--grey__1Y4oX,\n.typography-module_captiontext--grey__V0MLc,\n.typography-module_navigationtext--grey__xi3sz {\n color: var(--color-base-dark-grey);\n}\n\n.typography-module_display--inherit__ZNOHM,\n.typography-module_header--inherit__qmHQE,\n.typography-module_subtitle--inherit__mly-X,\n.typography-module_bodycopy--inherit__CoC-f,\n.typography-module_overline--inherit__Cq4ni,\n.typography-module_buttontext--inherit__vguWx,\n.typography-module_captiontext--inherit__ya6gm,\n.typography-module_navigationtext--inherit__cJLWf {\n color: inherit;\n}\n\n/* Typography variants */\n.typography-module_display--serif__C0-Ve,\n.typography-module_header--serif__uTGCc {\n font-family: var(--font-family-serif);\n}\n\n.typography-module_display--em__h2bPV,\n.typography-module_header--em__UFQIA {\n font-family: var(--font-family-serif);\n font-style: italic;\n}\n\n.typography-module_display--bold__PG-8g,\n.typography-module_header--bold__InvJk,\n.typography-module_subtitle--bold__Subov,\n.typography-module_bodycopy--bold__nZX3C,\n.typography-module_overline--bold__3mUXy,\n.typography-module_buttontext--bold__rBKIJ,\n.typography-module_captiontext--bold__ebTyV,\n.typography-module_navigationtext--bold__SRlV2 {\n font-weight: 700;\n}\n\n/* Media queries */\n@media (max-width: 699px) {\n .typography-module_display--large__RwPQD {\n font-size: 38px;\n letter-spacing: -1.5px;\n }\n\n .typography-module_display--small__XWUSJ {\n font-size: 32px;\n letter-spacing: -1.5px;\n }\n\n .typography-module_header--large__2vP3p {\n font-size: 28px;\n line-height: 34px;\n letter-spacing: -1.5px;\n }\n\n .typography-module_header--medium__OgzlB {\n font-size: 24px;\n line-height: 28px;\n letter-spacing: -1px;\n }\n\n .typography-module_header--small__zLuFf {\n font-size: 20px;\n line-height: 26px;\n letter-spacing: -0.75px;\n }\n\n .typography-module_subtitle--large__1Ep9J {\n font-size: 17px;\n line-height: 24px;\n letter-spacing: -0.5px;\n }\n\n .typography-module_subtitle--small__Vt9bZ {\n font-size: 14px;\n line-height: 20px;\n letter-spacing: -0.2px;\n }\n\n .typography-module_bodycopy--large__BNzf2 {\n font-size: 17px;\n line-height: 24px;\n letter-spacing: -0.5px;\n }\n\n .typography-module_bodycopy--medium__cwJEu {\n font-size: 14px;\n line-height: 20px;\n letter-spacing: -0.2px;\n }\n\n .typography-module_bodycopy--small__fTLSM {\n font-size: 11px;\n line-height: 16px;\n letter-spacing: -0.2px;\n }\n\n .typography-module_overline--large__79WUM {\n line-height: 17px;\n letter-spacing: 0.3px;\n }\n\n .typography-module_overline--small__MGEG6 {\n line-height: 14px;\n letter-spacing: 0.3px;\n }\n}";
|
|
386
|
-
var
|
|
225
|
+
var typographyStyles = {"display":"typography-module_display__ZHsz9","header":"typography-module_header__FVsLI","subtitle":"typography-module_subtitle__x3sSn","bodycopy":"typography-module_bodycopy__-BY2U","overline":"typography-module_overline__y1yCC","buttontext":"typography-module_buttontext__Gp0W-","captiontext":"typography-module_captiontext__zyA--","navigationtext":"typography-module_navigationtext__Qj6Zw","display--large":"typography-module_display--large__RwPQD","display--small":"typography-module_display--small__XWUSJ","header--large":"typography-module_header--large__2vP3p","header--medium":"typography-module_header--medium__OgzlB","header--small":"typography-module_header--small__zLuFf","subtitle--large":"typography-module_subtitle--large__1Ep9J","subtitle--small":"typography-module_subtitle--small__Vt9bZ","bodycopy--large":"typography-module_bodycopy--large__BNzf2","bodycopy--medium":"typography-module_bodycopy--medium__cwJEu","bodycopy--small":"typography-module_bodycopy--small__fTLSM","overline--large":"typography-module_overline--large__79WUM","overline--small":"typography-module_overline--small__MGEG6","display--primary":"typography-module_display--primary__9sTwU","header--primary":"typography-module_header--primary__KF0PJ","subtitle--primary":"typography-module_subtitle--primary__yL-hS","bodycopy--primary":"typography-module_bodycopy--primary__5Uo2D","overline--primary":"typography-module_overline--primary__a2NSa","buttontext--primary":"typography-module_buttontext--primary__HnmE3","captiontext--primary":"typography-module_captiontext--primary__mmafI","navigationtext--primary":"typography-module_navigationtext--primary__vIsUl","display--black":"typography-module_display--black__8hmsx","header--black":"typography-module_header--black__M3I14","subtitle--black":"typography-module_subtitle--black__IQRSo","bodycopy--black":"typography-module_bodycopy--black__J8BNP","overline--black":"typography-module_overline--black__RUDoj","buttontext--black":"typography-module_buttontext--black__irjmz","captiontext--black":"typography-module_captiontext--black__7axhP","navigationtext--black":"typography-module_navigationtext--black__wDz-G","display--white":"typography-module_display--white__3QA6W","header--white":"typography-module_header--white__mm-ex","subtitle--white":"typography-module_subtitle--white__VzQ3K","bodycopy--white":"typography-module_bodycopy--white__NJ8J8","overline--white":"typography-module_overline--white__cV5QV","buttontext--white":"typography-module_buttontext--white__rrr8U","captiontext--white":"typography-module_captiontext--white__OMFwW","navigationtext--white":"typography-module_navigationtext--white__5YDdY","display--red":"typography-module_display--red__khdLJ","header--red":"typography-module_header--red__hxuj9","subtitle--red":"typography-module_subtitle--red__gSK7d","bodycopy--red":"typography-module_bodycopy--red__P5Mau","overline--red":"typography-module_overline--red__OW5dE","buttontext--red":"typography-module_buttontext--red__mlRi2","captiontext--red":"typography-module_captiontext--red__jMQIK","navigationtext--red":"typography-module_navigationtext--red__-QADV","display--grey":"typography-module_display--grey__RsgTf","header--grey":"typography-module_header--grey__rC0vN","subtitle--grey":"typography-module_subtitle--grey__1nkEx","bodycopy--grey":"typography-module_bodycopy--grey__SNnaU","overline--grey":"typography-module_overline--grey__lGOsK","buttontext--grey":"typography-module_buttontext--grey__1Y4oX","captiontext--grey":"typography-module_captiontext--grey__V0MLc","navigationtext--grey":"typography-module_navigationtext--grey__xi3sz","display--inherit":"typography-module_display--inherit__ZNOHM","header--inherit":"typography-module_header--inherit__qmHQE","subtitle--inherit":"typography-module_subtitle--inherit__mly-X","bodycopy--inherit":"typography-module_bodycopy--inherit__CoC-f","overline--inherit":"typography-module_overline--inherit__Cq4ni","buttontext--inherit":"typography-module_buttontext--inherit__vguWx","captiontext--inherit":"typography-module_captiontext--inherit__ya6gm","navigationtext--inherit":"typography-module_navigationtext--inherit__cJLWf","display--serif":"typography-module_display--serif__C0-Ve","header--serif":"typography-module_header--serif__uTGCc","display--em":"typography-module_display--em__h2bPV","header--em":"typography-module_header--em__UFQIA","display--bold":"typography-module_display--bold__PG-8g","header--bold":"typography-module_header--bold__InvJk","subtitle--bold":"typography-module_subtitle--bold__Subov","bodycopy--bold":"typography-module_bodycopy--bold__nZX3C","overline--bold":"typography-module_overline--bold__3mUXy","buttontext--bold":"typography-module_buttontext--bold__rBKIJ","captiontext--bold":"typography-module_captiontext--bold__ebTyV","navigationtext--bold":"typography-module_navigationtext--bold__SRlV2"};
|
|
387
226
|
styleInject(css_248z);
|
|
388
227
|
|
|
389
228
|
var _excluded = ["children", "size", "color", "className", "bold"],
|
|
@@ -404,7 +243,7 @@ var HarmonicHeader = function HarmonicHeader(_ref2) {
|
|
|
404
243
|
serif: serif,
|
|
405
244
|
em: em,
|
|
406
245
|
className: className
|
|
407
|
-
},
|
|
246
|
+
}, typographyStyles);
|
|
408
247
|
return /*#__PURE__*/React__default.createElement(Tag, {
|
|
409
248
|
className: classNames
|
|
410
249
|
}, children);
|
|
@@ -420,7 +259,7 @@ var HarmonicSubtitle = function HarmonicSubtitle(_ref3) {
|
|
|
420
259
|
size: size,
|
|
421
260
|
color: color,
|
|
422
261
|
className: className
|
|
423
|
-
},
|
|
262
|
+
}, typographyStyles);
|
|
424
263
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
425
264
|
className: classNames
|
|
426
265
|
}, children);
|
|
@@ -440,7 +279,7 @@ var BodyCopyHarmonic = function BodyCopyHarmonic(_ref4) {
|
|
|
440
279
|
color: color,
|
|
441
280
|
bold: bold,
|
|
442
281
|
className: className
|
|
443
|
-
},
|
|
282
|
+
}, typographyStyles);
|
|
444
283
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({
|
|
445
284
|
className: classNames
|
|
446
285
|
}, props), children);
|
|
@@ -457,7 +296,7 @@ var HarmonicOverline = function HarmonicOverline(_ref5) {
|
|
|
457
296
|
size: size,
|
|
458
297
|
color: color,
|
|
459
298
|
className: className
|
|
460
|
-
},
|
|
299
|
+
}, typographyStyles);
|
|
461
300
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({
|
|
462
301
|
className: classNames
|
|
463
302
|
}, props), children);
|
|
@@ -471,7 +310,7 @@ var ButtonText = function ButtonText(_ref6) {
|
|
|
471
310
|
var classNames = createClassNames('buttontext', {
|
|
472
311
|
color: color,
|
|
473
312
|
className: className
|
|
474
|
-
},
|
|
313
|
+
}, typographyStyles);
|
|
475
314
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
476
315
|
className: classNames
|
|
477
316
|
}, children);
|
|
@@ -484,7 +323,7 @@ var Caption = function Caption(_ref7) {
|
|
|
484
323
|
var classNames = createClassNames('captiontext', {
|
|
485
324
|
color: color,
|
|
486
325
|
className: className
|
|
487
|
-
},
|
|
326
|
+
}, typographyStyles);
|
|
488
327
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
489
328
|
className: classNames
|
|
490
329
|
}, children);
|
|
@@ -497,7 +336,7 @@ var NavigationText = function NavigationText(_ref8) {
|
|
|
497
336
|
var classNames = createClassNames('navigationtext', {
|
|
498
337
|
color: color,
|
|
499
338
|
className: className
|
|
500
|
-
},
|
|
339
|
+
}, typographyStyles);
|
|
501
340
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
502
341
|
className: classNames
|
|
503
342
|
}, children);
|
|
@@ -4755,45 +4594,43 @@ var VideoControls = function VideoControls(_ref2) {
|
|
|
4755
4594
|
document.removeEventListener('fullscreenchange', handleFullscreenChange);
|
|
4756
4595
|
};
|
|
4757
4596
|
}, []);
|
|
4758
|
-
var handleFullscreen = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
4597
|
+
var handleFullscreen = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
4759
4598
|
var videoContainer;
|
|
4760
|
-
return
|
|
4761
|
-
while (1) switch (_context.
|
|
4599
|
+
return _regenerator().w(function (_context) {
|
|
4600
|
+
while (1) switch (_context.n) {
|
|
4762
4601
|
case 0:
|
|
4763
4602
|
videoContainer = document.querySelector("#" + videoContainerId);
|
|
4764
4603
|
if (videoContainer != null && videoContainer.requestFullscreen) {
|
|
4765
|
-
_context.
|
|
4604
|
+
_context.n = 1;
|
|
4766
4605
|
break;
|
|
4767
4606
|
}
|
|
4768
|
-
return _context.
|
|
4769
|
-
case
|
|
4770
|
-
_context.
|
|
4607
|
+
return _context.a(2);
|
|
4608
|
+
case 1:
|
|
4609
|
+
_context.n = 2;
|
|
4771
4610
|
return videoContainer.requestFullscreen();
|
|
4772
|
-
case
|
|
4611
|
+
case 2:
|
|
4773
4612
|
setIsFullscreen(true);
|
|
4774
|
-
case
|
|
4775
|
-
|
|
4776
|
-
return _context.stop();
|
|
4613
|
+
case 3:
|
|
4614
|
+
return _context.a(2);
|
|
4777
4615
|
}
|
|
4778
4616
|
}, _callee);
|
|
4779
4617
|
})), []);
|
|
4780
|
-
var handleMinimise = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
4781
|
-
return
|
|
4782
|
-
while (1) switch (_context2.
|
|
4618
|
+
var handleMinimise = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
4619
|
+
return _regenerator().w(function (_context2) {
|
|
4620
|
+
while (1) switch (_context2.n) {
|
|
4783
4621
|
case 0:
|
|
4784
4622
|
if (document.fullscreenElement) {
|
|
4785
|
-
_context2.
|
|
4623
|
+
_context2.n = 1;
|
|
4786
4624
|
break;
|
|
4787
4625
|
}
|
|
4788
|
-
return _context2.
|
|
4789
|
-
case
|
|
4790
|
-
_context2.
|
|
4626
|
+
return _context2.a(2);
|
|
4627
|
+
case 1:
|
|
4628
|
+
_context2.n = 2;
|
|
4791
4629
|
return document.exitFullscreen();
|
|
4792
|
-
case
|
|
4630
|
+
case 2:
|
|
4793
4631
|
setIsFullscreen(false);
|
|
4794
|
-
case
|
|
4795
|
-
|
|
4796
|
-
return _context2.stop();
|
|
4632
|
+
case 3:
|
|
4633
|
+
return _context2.a(2);
|
|
4797
4634
|
}
|
|
4798
4635
|
}, _callee2);
|
|
4799
4636
|
})), []);
|
|
@@ -7066,11 +6903,11 @@ var Theme = function Theme(_ref) {
|
|
|
7066
6903
|
};
|
|
7067
6904
|
|
|
7068
6905
|
var _templateObject$I;
|
|
7069
|
-
var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject$I || (_templateObject$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n
|
|
7070
|
-
var theme = _ref.theme;
|
|
7071
|
-
return theme.colors.primary;
|
|
7072
|
-
});
|
|
6906
|
+
var TextContainer$1 = /*#__PURE__*/styled.div(_templateObject$I || (_templateObject$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-base-black);\n font-feature-settings: var(--font-feature-settings-body);\n text-transform: var(--text-transform-body);\n\n & h1,\n h2,\n h3,\n h4 {\n font-feature-settings: var(--font-feature-settings-header);\n text-transform: var(--text-transform-header);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 80px 0 16px;\n\n @media ", " {\n margin-top: 60px;\n }\n\n + p {\n margin-top: 0px;\n }\n }\n\n & h5,\n h6 {\n font-feature-settings: var(--font-feature-settings-subtitle);\n text-transform: var(--text-transform-subtitle);\n white-space: break-spaces;\n overflow-wrap: break-word;\n margin: 80px 0 16px;\n\n @media ", " {\n margin-top: 60px;\n }\n\n + p {\n margin-top: 10px;\n }\n }\n\n & a {\n color: var(--color-base-black);\n text-decoration: underline;\n cursor: pointer;\n }\n\n p {\n margin: 30px 0;\n }\n\n & ul {\n padding: 0;\n list-style: none;\n margin: 0 0 0 30px;\n\n li {\n text-indent: -20px;\n line-height: var(--line-height-listing);\n }\n }\n\n & ol {\n padding: 0;\n margin: 0 0 0 20px;\n\n li {\n line-height: var(--line-height-listing);\n }\n }\n\n & ul > li:before {\n display: inline-block;\n content: '\u2014';\n width: 0px;\n margin-left: 12px;\n margin-right: 8px;\n }\n"])), devices.mobileAndTablet, devices.mobileAndTablet);
|
|
7073
6907
|
|
|
6908
|
+
var addTypographyClasses = function addTypographyClasses(html) {
|
|
6909
|
+
return html.replace(/<h1>/g, "<h1 class=\"" + typographyStyles.header + " " + typographyStyles['header--large'] + "\">").replace(/<h2>/g, "<h2 class=\"" + typographyStyles.header + " " + typographyStyles['header--large'] + "\">").replace(/<h3>/g, "<h3 class=\"" + typographyStyles.header + " " + typographyStyles['header--medium'] + "\">").replace(/<h4>/g, "<h4 class=\"" + typographyStyles.header + " " + typographyStyles['header--medium'] + "\">").replace(/<h5>/g, "<h5 class=\"" + typographyStyles.header + " " + typographyStyles['header--small'] + "\">").replace(/<h6>/g, "<h6 class=\"" + typographyStyles.header + " " + typographyStyles['header--small'] + "\">");
|
|
6910
|
+
};
|
|
7074
6911
|
var TextOnly = function TextOnly(_ref) {
|
|
7075
6912
|
var _ref$text = _ref.text,
|
|
7076
6913
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -7081,15 +6918,20 @@ var TextOnly = function TextOnly(_ref) {
|
|
|
7081
6918
|
_ref$columnStartDevic = _ref.columnStartDevice,
|
|
7082
6919
|
columnStartDevice = _ref$columnStartDevic === void 0 ? 2 : _ref$columnStartDevic,
|
|
7083
6920
|
_ref$columnSpanDevice = _ref.columnSpanDevice,
|
|
7084
|
-
columnSpanDevice = _ref$columnSpanDevice === void 0 ? 12 : _ref$columnSpanDevice
|
|
7085
|
-
|
|
6921
|
+
columnSpanDevice = _ref$columnSpanDevice === void 0 ? 12 : _ref$columnSpanDevice,
|
|
6922
|
+
className = _ref.className;
|
|
6923
|
+
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
6924
|
+
className: className
|
|
6925
|
+
}, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
7086
6926
|
columnStartDesktop: columnStartDesktop,
|
|
7087
6927
|
columnSpanDesktop: columnSpanDesktop,
|
|
7088
6928
|
columnStartDevice: columnStartDevice,
|
|
7089
6929
|
columnSpanDevice: columnSpanDevice
|
|
7090
6930
|
}, /*#__PURE__*/React__default.createElement(TextContainer$1, {
|
|
6931
|
+
"data-testid": "text-container",
|
|
6932
|
+
className: typographyStyles.bodycopy + " " + typographyStyles['bodycopy--large'],
|
|
7091
6933
|
dangerouslySetInnerHTML: {
|
|
7092
|
-
__html: text
|
|
6934
|
+
__html: addTypographyClasses(text)
|
|
7093
6935
|
}
|
|
7094
6936
|
})));
|
|
7095
6937
|
};
|
|
@@ -11986,8 +11828,8 @@ var Wrapper$9 = /*#__PURE__*/styled('div')(_templateObject$1n || (_templateObjec
|
|
|
11986
11828
|
});
|
|
11987
11829
|
var SignUpFormWrapper = /*#__PURE__*/styled(Grid)(_templateObject2$15 || (_templateObject2$15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 0 var(--grid-column-gap);\n margin-bottom: 32px;\n\n @media ", " {\n margin-bottom: 30px;\n }\n"])), devices.mobile);
|
|
11988
11830
|
var SignUpTitleWrapper = /*#__PURE__*/styled('div')(_templateObject3$T || (_templateObject3$T = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: left;\n position: relative;\n top: -25px;\n left: -20px;\n height: 52px;\n background: var(--color-base-white);\n display: inline-block;\n padding: 0 20px;\n\n @media ", " {\n top: -18px;\n height: 37px;\n padding: 0 13px;\n left: -13px;\n }\n"])), devices.mobile);
|
|
11989
|
-
var Error
|
|
11990
|
-
var Form = /*#__PURE__*/styled.form(_templateObject5$B || (_templateObject5$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n align-items: center;\n ", " {\n margin-top: -20px;\n }\n a[href] {\n color: inherit;\n }\n"])), Error
|
|
11831
|
+
var Error = /*#__PURE__*/styled.div(_templateObject4$I || (_templateObject4$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 20px;\n color: var(--color-base-errorstate);\n\n a {\n text-decoration: underline;\n color: inherit;\n }\n"])));
|
|
11832
|
+
var Form = /*#__PURE__*/styled.form(_templateObject5$B || (_templateObject5$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n align-items: center;\n ", " {\n margin-top: -20px;\n }\n a[href] {\n color: inherit;\n }\n"])), Error);
|
|
11991
11833
|
var FormFooterWrapper = /*#__PURE__*/styled.div(_templateObject6$u || (_templateObject6$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 32px;\n display: flex;\n gap: 28px;\n align-items: center;\n\n @media ", " {\n flex-direction: column;\n align-items: flex-start;\n }\n"])), devices.mobile);
|
|
11992
11834
|
var ServerError = /*#__PURE__*/styled.div(_templateObject7$m || (_templateObject7$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: left;\n color: var(--color-base-errorstate);\n"])));
|
|
11993
11835
|
var CTALinkWrapper = /*#__PURE__*/styled.a(_templateObject8$g || (_templateObject8$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n\n @media ", " {\n text-decoration: underline;\n }\n"])), devices.mobile);
|
|
@@ -12168,18 +12010,18 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12168
12010
|
};
|
|
12169
12011
|
};
|
|
12170
12012
|
var handleFormSubmit = /*#__PURE__*/function () {
|
|
12171
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
12013
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
|
|
12172
12014
|
var formErrors, response;
|
|
12173
|
-
return
|
|
12174
|
-
while (1) switch (_context.
|
|
12015
|
+
return _regenerator().w(function (_context) {
|
|
12016
|
+
while (1) switch (_context.n) {
|
|
12175
12017
|
case 0:
|
|
12176
12018
|
e.preventDefault();
|
|
12177
12019
|
if (!isSuccess) {
|
|
12178
|
-
_context.
|
|
12020
|
+
_context.n = 1;
|
|
12179
12021
|
break;
|
|
12180
12022
|
}
|
|
12181
|
-
return _context.
|
|
12182
|
-
case
|
|
12023
|
+
return _context.a(2);
|
|
12024
|
+
case 1:
|
|
12183
12025
|
formErrors = {};
|
|
12184
12026
|
if (!isLoggedIn) {
|
|
12185
12027
|
if (!formValues.firstName) {
|
|
@@ -12197,16 +12039,16 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12197
12039
|
}
|
|
12198
12040
|
}
|
|
12199
12041
|
if (!(Object.keys(formErrors).length > 0)) {
|
|
12200
|
-
_context.
|
|
12042
|
+
_context.n = 2;
|
|
12201
12043
|
break;
|
|
12202
12044
|
}
|
|
12203
12045
|
setErrors(formErrors);
|
|
12204
|
-
return _context.
|
|
12205
|
-
case
|
|
12206
|
-
_context.
|
|
12046
|
+
return _context.a(2);
|
|
12047
|
+
case 2:
|
|
12048
|
+
_context.n = 3;
|
|
12207
12049
|
return submitHandler(isLoggedIn ? {} : formValues);
|
|
12208
|
-
case
|
|
12209
|
-
response = _context.
|
|
12050
|
+
case 3:
|
|
12051
|
+
response = _context.v;
|
|
12210
12052
|
if (response.success) {
|
|
12211
12053
|
setIsSuccess(true);
|
|
12212
12054
|
} else {
|
|
@@ -12216,9 +12058,8 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12216
12058
|
});
|
|
12217
12059
|
});
|
|
12218
12060
|
}
|
|
12219
|
-
case
|
|
12220
|
-
|
|
12221
|
-
return _context.stop();
|
|
12061
|
+
case 4:
|
|
12062
|
+
return _context.a(2);
|
|
12222
12063
|
}
|
|
12223
12064
|
}, _callee);
|
|
12224
12065
|
}));
|