@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 CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.9.3]
2
+ - Card: use the first button as a source for OnClick handler
3
+
1
4
  ## [0.9.2]
2
5
  - Add onClick handler to the Card component
3
6
 
@@ -59,274 +59,113 @@ function _objectWithoutPropertiesLoose(r, e) {
59
59
  }
60
60
  return t;
61
61
  }
62
- function _regeneratorRuntime() {
63
- _regeneratorRuntime = function () {
64
- return r;
65
- };
66
- var t,
67
- r = {},
68
- e = Object.prototype,
69
- n = e.hasOwnProperty,
70
- o = "function" == typeof Symbol ? Symbol : {},
71
- i = o.iterator || "@@iterator",
72
- a = o.asyncIterator || "@@asyncIterator",
73
- u = o.toStringTag || "@@toStringTag";
74
- function c(t, r, e, n) {
75
- Object.defineProperty(t, r, {
76
- value: e,
77
- enumerable: !n,
78
- configurable: !n,
79
- writable: !n
80
- });
81
- }
82
- try {
83
- c({}, "");
84
- } catch (t) {
85
- c = function (t, r, e) {
86
- return t[r] = e;
87
- };
88
- }
89
- function h(r, e, n, o) {
90
- var i = e && e.prototype instanceof Generator ? e : Generator,
91
- a = Object.create(i.prototype);
92
- return c(a, "_invoke", function (r, e, n) {
93
- var o = 1;
94
- return function (i, a) {
95
- if (3 === o) throw Error("Generator is already running");
96
- if (4 === o) {
97
- if ("throw" === i) throw a;
98
- return {
99
- value: t,
100
- done: !0
101
- };
102
- }
103
- for (n.method = i, n.arg = a;;) {
104
- var u = n.delegate;
105
- if (u) {
106
- var c = d(u, n);
107
- if (c) {
108
- if (c === f) continue;
109
- return c;
110
- }
62
+ function _regenerator() {
63
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
64
+ var e,
65
+ t,
66
+ r = "function" == typeof Symbol ? Symbol : {},
67
+ n = r.iterator || "@@iterator",
68
+ o = r.toStringTag || "@@toStringTag";
69
+ function i(r, n, o, i) {
70
+ var c = n && n.prototype instanceof Generator ? n : Generator,
71
+ u = Object.create(c.prototype);
72
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
73
+ var i,
74
+ c,
75
+ u,
76
+ f = 0,
77
+ p = o || [],
78
+ y = !1,
79
+ G = {
80
+ p: 0,
81
+ n: 0,
82
+ v: e,
83
+ a: d,
84
+ f: d.bind(e, 4),
85
+ d: function (t, r) {
86
+ return i = t, c = 0, u = e, G.n = r, a;
111
87
  }
112
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
113
- if (1 === o) throw o = 4, n.arg;
114
- n.dispatchException(n.arg);
115
- } else "return" === n.method && n.abrupt("return", n.arg);
116
- o = 3;
117
- var h = s(r, e, n);
118
- if ("normal" === h.type) {
119
- if (o = n.done ? 4 : 2, h.arg === f) continue;
120
- return {
121
- value: h.arg,
122
- done: n.done
123
- };
88
+ };
89
+ function d(r, n) {
90
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
91
+ var o,
92
+ i = p[t],
93
+ d = G.p,
94
+ l = i[2];
95
+ 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));
96
+ }
97
+ if (o || r > 1) return a;
98
+ throw y = !0, n;
99
+ }
100
+ return function (o, p, l) {
101
+ if (f > 1) throw TypeError("Generator is already running");
102
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
103
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
104
+ try {
105
+ if (f = 2, i) {
106
+ if (c || (o = "next"), t = i[o]) {
107
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
108
+ if (!t.done) return t;
109
+ u = t.value, c < 2 && (c = 0);
110
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
111
+ i = e;
112
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
113
+ } catch (t) {
114
+ i = e, c = 1, u = t;
115
+ } finally {
116
+ f = 1;
124
117
  }
125
- "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
126
118
  }
119
+ return {
120
+ value: t,
121
+ done: y
122
+ };
127
123
  };
128
- }(r, n, new Context(o || [])), !0), a;
129
- }
130
- function s(t, r, e) {
131
- try {
132
- return {
133
- type: "normal",
134
- arg: t.call(r, e)
135
- };
136
- } catch (t) {
137
- return {
138
- type: "throw",
139
- arg: t
140
- };
141
- }
124
+ }(r, o, i), !0), u;
142
125
  }
143
- r.wrap = h;
144
- var f = {};
126
+ var a = {};
145
127
  function Generator() {}
146
128
  function GeneratorFunction() {}
147
129
  function GeneratorFunctionPrototype() {}
148
- var l = {};
149
- c(l, i, function () {
150
- return this;
151
- });
152
- var p = Object.getPrototypeOf,
153
- y = p && p(p(x([])));
154
- y && y !== e && n.call(y, i) && (l = y);
155
- var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
156
- function g(t) {
157
- ["next", "throw", "return"].forEach(function (r) {
158
- c(t, r, function (t) {
159
- return this._invoke(r, t);
160
- });
161
- });
162
- }
163
- function AsyncIterator(t, r) {
164
- function e(o, i, a, u) {
165
- var c = s(t[o], t, i);
166
- if ("throw" !== c.type) {
167
- var h = c.arg,
168
- f = h.value;
169
- return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
170
- e("next", t, a, u);
171
- }, function (t) {
172
- e("throw", t, a, u);
173
- }) : r.resolve(f).then(function (t) {
174
- h.value = t, a(h);
175
- }, function (t) {
176
- return e("throw", t, a, u);
177
- });
178
- }
179
- u(c.arg);
180
- }
181
- var o;
182
- c(this, "_invoke", function (t, n) {
183
- function i() {
184
- return new r(function (r, o) {
185
- e(t, n, r, o);
186
- });
187
- }
188
- return o = o ? o.then(i, i) : i();
189
- }, !0);
190
- }
191
- function d(r, e) {
192
- var n = e.method,
193
- o = r.i[n];
194
- 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;
195
- var i = s(o, r.i, e.arg);
196
- if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
197
- var a = i.arg;
198
- 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);
199
- }
200
- function w(t) {
201
- this.tryEntries.push(t);
130
+ t = Object.getPrototypeOf;
131
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
132
+ return this;
133
+ }), t),
134
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
135
+ function f(e) {
136
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
202
137
  }
203
- function m(r) {
204
- var e = r[4] || {};
205
- e.type = "normal", e.arg = t, r[4] = e;
206
- }
207
- function Context(t) {
208
- this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
209
- }
210
- function x(r) {
211
- if (null != r) {
212
- var e = r[i];
213
- if (e) return e.call(r);
214
- if ("function" == typeof r.next) return r;
215
- if (!isNaN(r.length)) {
216
- var o = -1,
217
- a = function e() {
218
- for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
219
- return e.value = t, e.done = !0, e;
220
- };
221
- return a.next = a;
222
- }
223
- }
224
- throw new TypeError(typeof r + " is not iterable");
225
- }
226
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
227
- var r = "function" == typeof t && t.constructor;
228
- return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
229
- }, r.mark = function (t) {
230
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
231
- }, r.awrap = function (t) {
232
- return {
233
- __await: t
234
- };
235
- }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
236
- return this;
237
- }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
238
- void 0 === i && (i = Promise);
239
- var a = new AsyncIterator(h(t, e, n, o), i);
240
- return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
241
- return t.done ? t.value : a.next();
242
- });
243
- }, g(v), c(v, u, "Generator"), c(v, i, function () {
138
+ 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 () {
244
139
  return this;
245
- }), c(v, "toString", function () {
140
+ }), _regeneratorDefine(u, "toString", function () {
246
141
  return "[object Generator]";
247
- }), r.keys = function (t) {
248
- var r = Object(t),
249
- e = [];
250
- for (var n in r) e.unshift(n);
251
- return function t() {
252
- for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
253
- return t.done = !0, t;
142
+ }), (_regenerator = function () {
143
+ return {
144
+ w: i,
145
+ m: f
254
146
  };
255
- }, r.values = x, Context.prototype = {
256
- constructor: Context,
257
- reset: function (r) {
258
- if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
259
- },
260
- stop: function () {
261
- this.done = !0;
262
- var t = this.tryEntries[0][4];
263
- if ("throw" === t.type) throw t.arg;
264
- return this.rval;
265
- },
266
- dispatchException: function (r) {
267
- if (this.done) throw r;
268
- var e = this;
269
- function n(t) {
270
- a.type = "throw", a.arg = r, e.next = t;
271
- }
272
- for (var o = e.tryEntries.length - 1; o >= 0; --o) {
273
- var i = this.tryEntries[o],
274
- a = i[4],
275
- u = this.prev,
276
- c = i[1],
277
- h = i[2];
278
- if (-1 === i[0]) return n("end"), !1;
279
- if (!c && !h) throw Error("try statement without catch or finally");
280
- if (null != i[0] && i[0] <= u) {
281
- if (u < c) return this.method = "next", this.arg = t, n(c), !0;
282
- if (u < h) return n(h), !1;
283
- }
284
- }
285
- },
286
- abrupt: function (t, r) {
287
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
288
- var n = this.tryEntries[e];
289
- if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
290
- var o = n;
291
- break;
292
- }
293
- }
294
- o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
295
- var i = o ? o[4] : {};
296
- return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
297
- },
298
- complete: function (t, r) {
299
- if ("throw" === t.type) throw t.arg;
300
- 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;
301
- },
302
- finish: function (t) {
303
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
304
- var e = this.tryEntries[r];
305
- if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
306
- }
307
- },
308
- catch: function (t) {
309
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
310
- var e = this.tryEntries[r];
311
- if (e[0] === t) {
312
- var n = e[4];
313
- if ("throw" === n.type) {
314
- var o = n.arg;
315
- m(e);
316
- }
317
- return o;
318
- }
319
- }
320
- throw Error("illegal catch attempt");
321
- },
322
- delegateYield: function (r, e, n) {
323
- return this.delegate = {
324
- i: x(r),
325
- r: e,
326
- n: n
327
- }, "next" === this.method && (this.arg = t), f;
328
- }
329
- }, r;
147
+ })();
148
+ }
149
+ function _regeneratorDefine(e, r, n, t) {
150
+ var i = Object.defineProperty;
151
+ try {
152
+ i({}, "", {});
153
+ } catch (e) {
154
+ i = 0;
155
+ }
156
+ _regeneratorDefine = function (e, r, n, t) {
157
+ function o(r, n) {
158
+ _regeneratorDefine(e, r, function (e) {
159
+ return this._invoke(r, n, e);
160
+ });
161
+ }
162
+ r ? i ? i(e, r, {
163
+ value: n,
164
+ enumerable: !t,
165
+ configurable: !t,
166
+ writable: !t
167
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
168
+ }, _regeneratorDefine(e, r, n, t);
330
169
  }
331
170
  function _taggedTemplateLiteralLoose(e, t) {
332
171
  return t || (t = e.slice(0)), e.raw = t, e;
@@ -364,7 +203,7 @@ var createClassNames = function createClassNames(baseClass, options, styles) {
364
203
  return classes.filter(Boolean).join(' ');
365
204
  };
366
205
 
367
- var styles = {"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"};
206
+ 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"};
368
207
 
369
208
  var _excluded = ["children", "size", "color", "className", "bold"],
370
209
  _excluded2 = ["children", "size", "color", "className"];
@@ -384,7 +223,7 @@ var HarmonicHeader = function HarmonicHeader(_ref2) {
384
223
  serif: serif,
385
224
  em: em,
386
225
  className: className
387
- }, styles);
226
+ }, typographyStyles);
388
227
  return /*#__PURE__*/React__default.createElement(Tag, {
389
228
  className: classNames
390
229
  }, children);
@@ -400,7 +239,7 @@ var HarmonicSubtitle = function HarmonicSubtitle(_ref3) {
400
239
  size: size,
401
240
  color: color,
402
241
  className: className
403
- }, styles);
242
+ }, typographyStyles);
404
243
  return /*#__PURE__*/React__default.createElement("p", {
405
244
  className: classNames
406
245
  }, children);
@@ -420,7 +259,7 @@ var BodyCopyHarmonic = function BodyCopyHarmonic(_ref4) {
420
259
  color: color,
421
260
  bold: bold,
422
261
  className: className
423
- }, styles);
262
+ }, typographyStyles);
424
263
  return /*#__PURE__*/React__default.createElement("p", Object.assign({
425
264
  className: classNames
426
265
  }, props), children);
@@ -437,7 +276,7 @@ var HarmonicOverline = function HarmonicOverline(_ref5) {
437
276
  size: size,
438
277
  color: color,
439
278
  className: className
440
- }, styles);
279
+ }, typographyStyles);
441
280
  return /*#__PURE__*/React__default.createElement("p", Object.assign({
442
281
  className: classNames
443
282
  }, props), children);
@@ -451,7 +290,7 @@ var ButtonText = function ButtonText(_ref6) {
451
290
  var classNames = createClassNames('buttontext', {
452
291
  color: color,
453
292
  className: className
454
- }, styles);
293
+ }, typographyStyles);
455
294
  return /*#__PURE__*/React__default.createElement("span", {
456
295
  className: classNames
457
296
  }, children);
@@ -464,7 +303,7 @@ var Caption = function Caption(_ref7) {
464
303
  var classNames = createClassNames('captiontext', {
465
304
  color: color,
466
305
  className: className
467
- }, styles);
306
+ }, typographyStyles);
468
307
  return /*#__PURE__*/React__default.createElement("p", {
469
308
  className: classNames
470
309
  }, children);
@@ -477,7 +316,7 @@ var NavigationText = function NavigationText(_ref8) {
477
316
  var classNames = createClassNames('navigationtext', {
478
317
  color: color,
479
318
  className: className
480
- }, styles);
319
+ }, typographyStyles);
481
320
  return /*#__PURE__*/React__default.createElement("p", {
482
321
  className: classNames
483
322
  }, children);
@@ -4730,45 +4569,43 @@ var VideoControls = function VideoControls(_ref2) {
4730
4569
  document.removeEventListener('fullscreenchange', handleFullscreenChange);
4731
4570
  };
4732
4571
  }, []);
4733
- var handleFullscreen = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
4572
+ var handleFullscreen = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
4734
4573
  var videoContainer;
4735
- return _regeneratorRuntime().wrap(function _callee$(_context) {
4736
- while (1) switch (_context.prev = _context.next) {
4574
+ return _regenerator().w(function (_context) {
4575
+ while (1) switch (_context.n) {
4737
4576
  case 0:
4738
4577
  videoContainer = document.querySelector("#" + videoContainerId);
4739
4578
  if (videoContainer != null && videoContainer.requestFullscreen) {
4740
- _context.next = 3;
4579
+ _context.n = 1;
4741
4580
  break;
4742
4581
  }
4743
- return _context.abrupt("return");
4744
- case 3:
4745
- _context.next = 5;
4582
+ return _context.a(2);
4583
+ case 1:
4584
+ _context.n = 2;
4746
4585
  return videoContainer.requestFullscreen();
4747
- case 5:
4586
+ case 2:
4748
4587
  setIsFullscreen(true);
4749
- case 6:
4750
- case "end":
4751
- return _context.stop();
4588
+ case 3:
4589
+ return _context.a(2);
4752
4590
  }
4753
4591
  }, _callee);
4754
4592
  })), []);
4755
- var handleMinimise = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
4756
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4757
- while (1) switch (_context2.prev = _context2.next) {
4593
+ var handleMinimise = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
4594
+ return _regenerator().w(function (_context2) {
4595
+ while (1) switch (_context2.n) {
4758
4596
  case 0:
4759
4597
  if (document.fullscreenElement) {
4760
- _context2.next = 2;
4598
+ _context2.n = 1;
4761
4599
  break;
4762
4600
  }
4763
- return _context2.abrupt("return");
4764
- case 2:
4765
- _context2.next = 4;
4601
+ return _context2.a(2);
4602
+ case 1:
4603
+ _context2.n = 2;
4766
4604
  return document.exitFullscreen();
4767
- case 4:
4605
+ case 2:
4768
4606
  setIsFullscreen(false);
4769
- case 5:
4770
- case "end":
4771
- return _context2.stop();
4607
+ case 3:
4608
+ return _context2.a(2);
4772
4609
  }
4773
4610
  }, _callee2);
4774
4611
  })), []);
@@ -7041,11 +6878,11 @@ var Theme = function Theme(_ref) {
7041
6878
  };
7042
6879
 
7043
6880
  var _templateObject$I;
7044
- var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject$I || (_templateObject$I = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n font-feature-settings: var(--font-feature-settings-body);\n font-weight: var(--font-weight-body-1);\n letter-spacing: var(--letter-spacing-body-1);\n line-height: var(--line-height-body-1);\n text-transform: var(--text-transform-body);\n\n & h1,\n h2,\n h3,\n h4 {\n font-size: var(--font-size-header-4);\n font-family: var(--font-family-header);\n font-feature-settings: var(--font-feature-settings-header);\n font-weight: var(--font-weight-header-4);\n letter-spacing: var(--letter-spacing-header-4);\n line-height: var(--line-height-header-4);\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-size: var(--font-size-subtitle-1);\n font-family: var(--font-family-subtitle);\n font-feature-settings: var(--font-feature-settings-subtitle);\n font-weight: var(--font-weight-subtitle-1);\n letter-spacing: var(--letter-spacing-subtitle-1);\n line-height: var(--line-height-subtitle-1);\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: ", ";\n text-decoration: underline;\n cursor: pointer;\n }\n\n p {\n margin: 30px 0;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & strong {\n font-weight: bold;\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\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, function (_ref) {
7045
- var theme = _ref.theme;
7046
- return theme.colors.primary;
7047
- });
6881
+ var TextContainer$1 = /*#__PURE__*/styled__default.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);
7048
6882
 
6883
+ var addTypographyClasses = function addTypographyClasses(html) {
6884
+ 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'] + "\">");
6885
+ };
7049
6886
  var TextOnly = function TextOnly(_ref) {
7050
6887
  var _ref$text = _ref.text,
7051
6888
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -7056,15 +6893,20 @@ var TextOnly = function TextOnly(_ref) {
7056
6893
  _ref$columnStartDevic = _ref.columnStartDevice,
7057
6894
  columnStartDevice = _ref$columnStartDevic === void 0 ? 2 : _ref$columnStartDevic,
7058
6895
  _ref$columnSpanDevice = _ref.columnSpanDevice,
7059
- columnSpanDevice = _ref$columnSpanDevice === void 0 ? 12 : _ref$columnSpanDevice;
7060
- return /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
6896
+ columnSpanDevice = _ref$columnSpanDevice === void 0 ? 12 : _ref$columnSpanDevice,
6897
+ className = _ref.className;
6898
+ return /*#__PURE__*/React__default.createElement(Grid, {
6899
+ className: className
6900
+ }, /*#__PURE__*/React__default.createElement(GridItem, {
7061
6901
  columnStartDesktop: columnStartDesktop,
7062
6902
  columnSpanDesktop: columnSpanDesktop,
7063
6903
  columnStartDevice: columnStartDevice,
7064
6904
  columnSpanDevice: columnSpanDevice
7065
6905
  }, /*#__PURE__*/React__default.createElement(TextContainer$1, {
6906
+ "data-testid": "text-container",
6907
+ className: typographyStyles.bodycopy + " " + typographyStyles['bodycopy--large'],
7066
6908
  dangerouslySetInnerHTML: {
7067
- __html: text
6909
+ __html: addTypographyClasses(text)
7068
6910
  }
7069
6911
  })));
7070
6912
  };
@@ -11959,8 +11801,8 @@ var Wrapper$9 = /*#__PURE__*/styled__default('div')(_templateObject$1n || (_temp
11959
11801
  });
11960
11802
  var SignUpFormWrapper = /*#__PURE__*/styled__default(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);
11961
11803
  var SignUpTitleWrapper = /*#__PURE__*/styled__default('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);
11962
- var Error$1 = /*#__PURE__*/styled__default.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"])));
11963
- var Form = /*#__PURE__*/styled__default.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$1);
11804
+ var Error = /*#__PURE__*/styled__default.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"])));
11805
+ var Form = /*#__PURE__*/styled__default.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);
11964
11806
  var FormFooterWrapper = /*#__PURE__*/styled__default.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);
11965
11807
  var ServerError = /*#__PURE__*/styled__default.div(_templateObject7$m || (_templateObject7$m = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-align: left;\n color: var(--color-base-errorstate);\n"])));
11966
11808
  var CTALinkWrapper = /*#__PURE__*/styled__default.a(_templateObject8$g || (_templateObject8$g = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n\n @media ", " {\n text-decoration: underline;\n }\n"])), devices.mobile);
@@ -12141,18 +11983,18 @@ var SignUpForm = function SignUpForm(_ref) {
12141
11983
  };
12142
11984
  };
12143
11985
  var handleFormSubmit = /*#__PURE__*/function () {
12144
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
11986
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e) {
12145
11987
  var formErrors, response;
12146
- return _regeneratorRuntime().wrap(function _callee$(_context) {
12147
- while (1) switch (_context.prev = _context.next) {
11988
+ return _regenerator().w(function (_context) {
11989
+ while (1) switch (_context.n) {
12148
11990
  case 0:
12149
11991
  e.preventDefault();
12150
11992
  if (!isSuccess) {
12151
- _context.next = 3;
11993
+ _context.n = 1;
12152
11994
  break;
12153
11995
  }
12154
- return _context.abrupt("return");
12155
- case 3:
11996
+ return _context.a(2);
11997
+ case 1:
12156
11998
  formErrors = {};
12157
11999
  if (!isLoggedIn) {
12158
12000
  if (!formValues.firstName) {
@@ -12170,16 +12012,16 @@ var SignUpForm = function SignUpForm(_ref) {
12170
12012
  }
12171
12013
  }
12172
12014
  if (!(Object.keys(formErrors).length > 0)) {
12173
- _context.next = 8;
12015
+ _context.n = 2;
12174
12016
  break;
12175
12017
  }
12176
12018
  setErrors(formErrors);
12177
- return _context.abrupt("return");
12178
- case 8:
12179
- _context.next = 10;
12019
+ return _context.a(2);
12020
+ case 2:
12021
+ _context.n = 3;
12180
12022
  return submitHandler(isLoggedIn ? {} : formValues);
12181
- case 10:
12182
- response = _context.sent;
12023
+ case 3:
12024
+ response = _context.v;
12183
12025
  if (response.success) {
12184
12026
  setIsSuccess(true);
12185
12027
  } else {
@@ -12189,9 +12031,8 @@ var SignUpForm = function SignUpForm(_ref) {
12189
12031
  });
12190
12032
  });
12191
12033
  }
12192
- case 12:
12193
- case "end":
12194
- return _context.stop();
12034
+ case 4:
12035
+ return _context.a(2);
12195
12036
  }
12196
12037
  }, _callee);
12197
12038
  }));