@khanacademy/wonder-blocks-clickable 2.4.1 → 2.4.3

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/dist/index.js DELETED
@@ -1,1388 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 11);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ([
89
- /* 0 */
90
- /***/ (function(module, exports) {
91
-
92
- module.exports = require("react");
93
-
94
- /***/ }),
95
- /* 1 */
96
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
-
98
- "use strict";
99
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isClientSideUrl; });
100
- /**
101
- * Returns:
102
- * - false for hrefs staring with http://, https://, //.
103
- * - false for '#', 'javascript:...', 'mailto:...', 'tel:...', etc.
104
- * - true for all other values, e.g. /foo/bar
105
- */
106
- const isClientSideUrl = href => {
107
- if (typeof href !== "string") {
108
- return false;
109
- }
110
-
111
- return !/^(https?:)?\/\//i.test(href) && !/^([^#]*#[\w-]*|[\w\-.]+:)/.test(href);
112
- };
113
-
114
- /***/ }),
115
- /* 2 */
116
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
117
-
118
- "use strict";
119
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ClickableBehavior; });
120
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
121
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
122
- // NOTE: Potentially add to this as more cases come up.
123
-
124
- const getAppropriateTriggersForRole = role => {
125
- switch (role) {
126
- // Triggers on ENTER, but not SPACE
127
- case "link":
128
- return {
129
- triggerOnEnter: true,
130
- triggerOnSpace: false
131
- };
132
- // Triggers on SPACE, but not ENTER
133
-
134
- case "checkbox":
135
- case "radio":
136
- case "listbox":
137
- return {
138
- triggerOnEnter: false,
139
- triggerOnSpace: true
140
- };
141
- // Triggers on both ENTER and SPACE
142
-
143
- case "button":
144
- case "menuitem":
145
- case "menu":
146
- case "option":
147
- default:
148
- return {
149
- triggerOnEnter: true,
150
- triggerOnSpace: true
151
- };
152
- }
153
- };
154
-
155
- const disabledHandlers = {
156
- onClick: () => void 0,
157
- onMouseEnter: () => void 0,
158
- onMouseLeave: () => void 0,
159
- onMouseDown: () => void 0,
160
- onMouseUp: () => void 0,
161
- onTouchStart: () => void 0,
162
- onTouchEnd: () => void 0,
163
- onTouchCancel: () => void 0,
164
- onKeyDown: () => void 0,
165
- onKeyUp: () => void 0
166
- };
167
- const keyCodes = {
168
- enter: 13,
169
- space: 32
170
- };
171
- const startState = {
172
- hovered: false,
173
- focused: false,
174
- pressed: false,
175
- waiting: false
176
- };
177
- /**
178
- * Add hover, focus, and active status updates to a clickable component.
179
- *
180
- * Via mouse:
181
- *
182
- * 1. Hover over button -> hover state
183
- * 2. Mouse down -> active state
184
- * 3. Mouse up -> default state
185
- * 4. Press tab -> focus state
186
- *
187
- * Via touch:
188
- *
189
- * 1. Touch down -> press state
190
- * 2. Touch up -> default state
191
- *
192
- * Via keyboard:
193
- *
194
- * 1. Tab to focus -> focus state
195
- * 2. Keydown (spacebar/enter) -> active state
196
- * 3. Keyup (spacebar/enter) -> focus state
197
- *
198
- * Warning: The event handlers returned (onClick, onMouseEnter, onMouseLeave,
199
- * onMouseDown, onMouseUp, onTouchStart, onTouchEnd, onTouchCancel,
200
- * onKeyDown, onKeyUp, onFocus, onBlur, tabIndex) should be passed on to the
201
- * component that has the ClickableBehavior. You cannot override these handlers
202
- * without potentially breaking the functionality of ClickableBehavior.
203
- *
204
- * There are internal props triggerOnEnter and triggerOnSpace that can be set to
205
- * false if one of those keys shouldn't count as a click on this component. Be
206
- * careful about setting those to false -- make certain that the component
207
- * shouldn't process that key.
208
- *
209
- * See [this
210
- document](https://docs.google.com/document/d/1DG5Rg2f0cawIL5R8UqnPQpd7pbdObk8OyjO5ryYQmBM/edit#)
211
- for a more thorough explanation of expected behaviors and potential cavaets.
212
- *
213
- * `ClickableBehavior` accepts a function as `children` which is passed state
214
- * and an object containing event handlers and some other props. The `children`
215
- * function should return a clickable React Element of some sort.
216
- *
217
- * Example:
218
- *
219
- * ```jsx
220
- * function MyClickableComponent(props: Props) {
221
- * const ClickableBehavior = getClickableBehavior();
222
- *
223
- * return (
224
- * <ClickableBehavior
225
- * disabled={props.disabled}
226
- * onClick={props.onClick}
227
- * tabIndex={0}
228
- * >
229
- * {({hovered}, childrenProps) => (
230
- * <RoundRect
231
- * textcolor="white"
232
- * backgroundColor={hovered ? "red" : "blue"}
233
- * {...childrenProps}
234
- * >
235
- * {props.children}
236
- * </RoundRect>
237
- * )}
238
- * </ClickableBehavior>
239
- * );
240
- * }
241
- * ```
242
- *
243
- * This follows a pattern called [Function as Child
244
- * Components](https://medium.com/merrickchristensen/function-as-child-components-5f3920a9ace9).
245
- *
246
- * **WARNING:** Do not use this component directly, use getClickableBehavior
247
- * instead. getClickableBehavior takes three arguments (href, directtNav, and
248
- * router) and returns either the default ClickableBehavior or a react-router
249
- * aware version.
250
- *
251
- * The react-router aware version is returned if `router` is a react-router-dom
252
- * router, `skipClientNav` is not `true`, and `href` is an internal URL.
253
- *
254
- * The `router` can be accessed via __RouterContext (imported from
255
- 'react-router') from a component rendered as a descendant of a BrowserRouter.
256
- See https://reacttraining.com/react-router/web/guides/basic-components.
257
- */
258
-
259
- class ClickableBehavior extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
260
- static getDerivedStateFromProps(props, state) {
261
- // If new props are disabled, reset the hovered/pressed states
262
- if (props.disabled) {
263
- // Keep the focused state for enabling keyboard navigation.
264
- return { ...startState,
265
- focused: state.focused
266
- };
267
- } else {
268
- // Cannot return undefined
269
- return null;
270
- }
271
- }
272
-
273
- constructor(props) {
274
- super(props);
275
-
276
- this.handleClick = e => {
277
- const {
278
- onClick = undefined,
279
- beforeNav = undefined,
280
- safeWithNav = undefined
281
- } = this.props;
282
-
283
- if (this.enterClick) {
284
- return;
285
- }
286
-
287
- if (onClick || beforeNav || safeWithNav) {
288
- this.waitingForClick = false;
289
- }
290
-
291
- this.runCallbackAndMaybeNavigate(e);
292
- };
293
-
294
- this.handleMouseEnter = e => {
295
- if (!this.waitingForClick) {
296
- this.setState({
297
- hovered: true
298
- });
299
- }
300
- };
301
-
302
- this.handleMouseLeave = () => {
303
- if (!this.waitingForClick) {
304
- this.setState({
305
- hovered: false,
306
- pressed: false,
307
- focused: false
308
- });
309
- }
310
- };
311
-
312
- this.handleMouseDown = () => {
313
- this.setState({
314
- pressed: true
315
- });
316
- };
317
-
318
- this.handleMouseUp = e => {
319
- this.setState({
320
- pressed: false,
321
- focused: false
322
- });
323
- };
324
-
325
- this.handleTouchStart = () => {
326
- this.setState({
327
- pressed: true
328
- });
329
- };
330
-
331
- this.handleTouchEnd = () => {
332
- this.setState({
333
- pressed: false
334
- });
335
- this.waitingForClick = true;
336
- };
337
-
338
- this.handleTouchCancel = () => {
339
- this.setState({
340
- pressed: false
341
- });
342
- this.waitingForClick = true;
343
- };
344
-
345
- this.handleKeyDown = e => {
346
- const {
347
- onKeyDown,
348
- role
349
- } = this.props;
350
-
351
- if (onKeyDown) {
352
- onKeyDown(e);
353
- }
354
-
355
- const keyCode = e.which || e.keyCode;
356
- const {
357
- triggerOnEnter,
358
- triggerOnSpace
359
- } = getAppropriateTriggersForRole(role);
360
-
361
- if (triggerOnEnter && keyCode === keyCodes.enter || triggerOnSpace && keyCode === keyCodes.space) {
362
- // This prevents space from scrolling down. It also prevents the
363
- // space and enter keys from triggering click events. We manually
364
- // call the supplied onClick and handle potential navigation in
365
- // handleKeyUp instead.
366
- e.preventDefault();
367
- this.setState({
368
- pressed: true
369
- });
370
- } else if (!triggerOnEnter && keyCode === keyCodes.enter) {
371
- // If the component isn't supposed to trigger on enter, we have to
372
- // keep track of the enter keydown to negate the onClick callback
373
- this.enterClick = true;
374
- }
375
- };
376
-
377
- this.handleKeyUp = e => {
378
- const {
379
- onKeyUp,
380
- role
381
- } = this.props;
382
-
383
- if (onKeyUp) {
384
- onKeyUp(e);
385
- }
386
-
387
- const keyCode = e.which || e.keyCode;
388
- const {
389
- triggerOnEnter,
390
- triggerOnSpace
391
- } = getAppropriateTriggersForRole(role);
392
-
393
- if (triggerOnEnter && keyCode === keyCodes.enter || triggerOnSpace && keyCode === keyCodes.space) {
394
- this.setState({
395
- pressed: false,
396
- focused: true
397
- });
398
- this.runCallbackAndMaybeNavigate(e);
399
- } else if (!triggerOnEnter && keyCode === keyCodes.enter) {
400
- this.enterClick = false;
401
- }
402
- };
403
-
404
- this.handleFocus = e => {
405
- this.setState({
406
- focused: true
407
- });
408
- };
409
-
410
- this.handleBlur = e => {
411
- this.setState({
412
- focused: false,
413
- pressed: false
414
- });
415
- };
416
-
417
- this.state = startState;
418
- this.waitingForClick = false;
419
- this.enterClick = false;
420
- }
421
-
422
- navigateOrReset(shouldNavigate) {
423
- if (shouldNavigate) {
424
- const {
425
- history,
426
- href,
427
- skipClientNav,
428
- target = undefined
429
- } = this.props;
430
-
431
- if (href) {
432
- if (target === "_blank") {
433
- window.open(href, "_blank");
434
- this.setState({
435
- waiting: false
436
- });
437
- } else if (history && !skipClientNav) {
438
- history.push(href);
439
- this.setState({
440
- waiting: false
441
- });
442
- } else {
443
- window.location.assign(href); // We don't bother clearing the waiting state, the full page
444
- // load navigation will do that for us by loading a new page.
445
- }
446
- }
447
- } else {
448
- this.setState({
449
- waiting: false
450
- });
451
- }
452
- }
453
-
454
- handleSafeWithNav(safeWithNav, shouldNavigate) {
455
- const {
456
- skipClientNav,
457
- history
458
- } = this.props;
459
-
460
- if (history && !skipClientNav || this.props.target === "_blank") {
461
- // client-side nav
462
- safeWithNav();
463
- this.navigateOrReset(shouldNavigate);
464
- return Promise.resolve();
465
- } else {
466
- if (!this.state.waiting) {
467
- // We only show the spinner for safeWithNav when doing
468
- // a full page load navigation since since the spinner is
469
- // indicating that we're waiting for navigation to occur.
470
- this.setState({
471
- waiting: true
472
- });
473
- }
474
-
475
- return safeWithNav().then(() => {
476
- if (!this.state.waiting) {
477
- // We only show the spinner for safeWithNav when doing
478
- // a full page load navigation since since the spinner is
479
- // indicating that we're waiting for navigation to occur.
480
- this.setState({
481
- waiting: true
482
- });
483
- }
484
-
485
- return;
486
- }).catch(error => {// We ignore the error here so that we always
487
- // navigate when using safeWithNav regardless of
488
- // whether we're doing a client-side nav or not.
489
- }).finally(() => {
490
- this.navigateOrReset(shouldNavigate);
491
- });
492
- }
493
- }
494
-
495
- runCallbackAndMaybeNavigate(e) {
496
- const {
497
- onClick = undefined,
498
- beforeNav = undefined,
499
- safeWithNav = undefined,
500
- href,
501
- type
502
- } = this.props;
503
- let shouldNavigate = true;
504
- let canSubmit = true;
505
-
506
- if (onClick) {
507
- onClick(e);
508
- } // If onClick() has called e.preventDefault() then we shouldn't
509
- // navigate.
510
-
511
-
512
- if (e.defaultPrevented) {
513
- shouldNavigate = false;
514
- canSubmit = false;
515
- }
516
-
517
- e.preventDefault();
518
-
519
- if (!href && type === "submit" && canSubmit) {
520
- let target = e.currentTarget;
521
-
522
- while (target) {
523
- if (target instanceof window.HTMLFormElement) {
524
- // This event must be marked as cancelable otherwise calling
525
- // e.preventDefault() on it won't do anything in Firefox.
526
- // Chrome and Safari allow calling e.preventDefault() on
527
- // non-cancelable events, but really they shouldn't.
528
- const event = new window.Event("submit", {
529
- cancelable: true
530
- });
531
- target.dispatchEvent(event);
532
- break;
533
- } // All events should be typed as SyntheticEvent<HTMLElement>.
534
- // Updating all of the places will take some time so I'll do
535
- // this later
536
- // $FlowFixMe[prop-missing]
537
-
538
-
539
- target = target.parentElement;
540
- }
541
- }
542
-
543
- if (beforeNav) {
544
- this.setState({
545
- waiting: true
546
- });
547
- beforeNav().then(() => {
548
- if (safeWithNav) {
549
- return this.handleSafeWithNav(safeWithNav, shouldNavigate);
550
- } else {
551
- return this.navigateOrReset(shouldNavigate);
552
- }
553
- }).catch(() => {});
554
- } else if (safeWithNav) {
555
- return this.handleSafeWithNav(safeWithNav, shouldNavigate);
556
- } else {
557
- this.navigateOrReset(shouldNavigate);
558
- }
559
- }
560
-
561
- render() {
562
- const childrenProps = this.props.disabled ? { ...disabledHandlers,
563
- // Keep these handlers for keyboard accessibility.
564
- onFocus: this.handleFocus,
565
- onBlur: this.handleBlur,
566
- tabIndex: this.props.tabIndex
567
- } : {
568
- onClick: this.handleClick,
569
- onMouseEnter: this.handleMouseEnter,
570
- onMouseLeave: this.handleMouseLeave,
571
- onMouseDown: this.handleMouseDown,
572
- onMouseUp: this.handleMouseUp,
573
- onTouchStart: this.handleTouchStart,
574
- onTouchEnd: this.handleTouchEnd,
575
- onTouchCancel: this.handleTouchCancel,
576
- onKeyDown: this.handleKeyDown,
577
- onKeyUp: this.handleKeyUp,
578
- onFocus: this.handleFocus,
579
- onBlur: this.handleBlur,
580
- tabIndex: this.props.tabIndex
581
- }; // When the link is set to open in a new window, we want to set some
582
- // `rel` attributes. This is to ensure that the links we're sending folks
583
- // to can't hijack the existing page. These defaults can be overriden
584
- // by passing in a different value for the `rel` prop.
585
- // More info: https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
586
-
587
- childrenProps.rel = this.props.rel || (this.props.target === "_blank" ? "noopener noreferrer" : undefined);
588
- const {
589
- children
590
- } = this.props;
591
- return children && children(this.state, childrenProps);
592
- }
593
-
594
- }
595
- ClickableBehavior.defaultProps = {
596
- disabled: false
597
- };
598
-
599
- /***/ }),
600
- /* 3 */
601
- /***/ (function(module, exports) {
602
-
603
- module.exports =
604
- /******/
605
- function (modules) {
606
- // webpackBootstrap
607
-
608
- /******/
609
- // The module cache
610
-
611
- /******/
612
- var installedModules = {};
613
- /******/
614
-
615
- /******/
616
- // The require function
617
-
618
- /******/
619
-
620
- function __webpack_require__(moduleId) {
621
- /******/
622
-
623
- /******/
624
- // Check if module is in cache
625
-
626
- /******/
627
- if (installedModules[moduleId]) {
628
- /******/
629
- return installedModules[moduleId].exports;
630
- /******/
631
- }
632
- /******/
633
- // Create a new module (and put it into the cache)
634
-
635
- /******/
636
-
637
-
638
- var module = installedModules[moduleId] = {
639
- /******/
640
- i: moduleId,
641
-
642
- /******/
643
- l: false,
644
-
645
- /******/
646
- exports: {}
647
- /******/
648
-
649
- };
650
- /******/
651
-
652
- /******/
653
- // Execute the module function
654
-
655
- /******/
656
-
657
- modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
658
- /******/
659
-
660
- /******/
661
- // Flag the module as loaded
662
-
663
- /******/
664
-
665
- module.l = true;
666
- /******/
667
-
668
- /******/
669
- // Return the exports of the module
670
-
671
- /******/
672
-
673
- return module.exports;
674
- /******/
675
- }
676
- /******/
677
-
678
- /******/
679
-
680
- /******/
681
- // expose the modules object (__webpack_modules__)
682
-
683
- /******/
684
-
685
-
686
- __webpack_require__.m = modules;
687
- /******/
688
-
689
- /******/
690
- // expose the module cache
691
-
692
- /******/
693
-
694
- __webpack_require__.c = installedModules;
695
- /******/
696
-
697
- /******/
698
- // define getter function for harmony exports
699
-
700
- /******/
701
-
702
- __webpack_require__.d = function (exports, name, getter) {
703
- /******/
704
- if (!__webpack_require__.o(exports, name)) {
705
- /******/
706
- Object.defineProperty(exports, name, {
707
- enumerable: true,
708
- get: getter
709
- });
710
- /******/
711
- }
712
- /******/
713
-
714
- };
715
- /******/
716
-
717
- /******/
718
- // define __esModule on exports
719
-
720
- /******/
721
-
722
-
723
- __webpack_require__.r = function (exports) {
724
- /******/
725
- if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
726
- /******/
727
- Object.defineProperty(exports, Symbol.toStringTag, {
728
- value: 'Module'
729
- });
730
- /******/
731
- }
732
- /******/
733
-
734
-
735
- Object.defineProperty(exports, '__esModule', {
736
- value: true
737
- });
738
- /******/
739
- };
740
- /******/
741
-
742
- /******/
743
- // create a fake namespace object
744
-
745
- /******/
746
- // mode & 1: value is a module id, require it
747
-
748
- /******/
749
- // mode & 2: merge all properties of value into the ns
750
-
751
- /******/
752
- // mode & 4: return value when already ns object
753
-
754
- /******/
755
- // mode & 8|1: behave like require
756
-
757
- /******/
758
-
759
-
760
- __webpack_require__.t = function (value, mode) {
761
- /******/
762
- if (mode & 1) value = __webpack_require__(value);
763
- /******/
764
-
765
- if (mode & 8) return value;
766
- /******/
767
-
768
- if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value;
769
- /******/
770
-
771
- var ns = Object.create(null);
772
- /******/
773
-
774
- __webpack_require__.r(ns);
775
- /******/
776
-
777
-
778
- Object.defineProperty(ns, 'default', {
779
- enumerable: true,
780
- value: value
781
- });
782
- /******/
783
-
784
- if (mode & 2 && typeof value != 'string') for (var key in value) __webpack_require__.d(ns, key, function (key) {
785
- return value[key];
786
- }.bind(null, key));
787
- /******/
788
-
789
- return ns;
790
- /******/
791
- };
792
- /******/
793
-
794
- /******/
795
- // getDefaultExport function for compatibility with non-harmony modules
796
-
797
- /******/
798
-
799
-
800
- __webpack_require__.n = function (module) {
801
- /******/
802
- var getter = module && module.__esModule ?
803
- /******/
804
- function getDefault() {
805
- return module['default'];
806
- } :
807
- /******/
808
- function getModuleExports() {
809
- return module;
810
- };
811
- /******/
812
-
813
- __webpack_require__.d(getter, 'a', getter);
814
- /******/
815
-
816
-
817
- return getter;
818
- /******/
819
- };
820
- /******/
821
-
822
- /******/
823
- // Object.prototype.hasOwnProperty.call
824
-
825
- /******/
826
-
827
-
828
- __webpack_require__.o = function (object, property) {
829
- return Object.prototype.hasOwnProperty.call(object, property);
830
- };
831
- /******/
832
-
833
- /******/
834
- // __webpack_public_path__
835
-
836
- /******/
837
-
838
-
839
- __webpack_require__.p = "";
840
- /******/
841
-
842
- /******/
843
-
844
- /******/
845
- // Load entry module and return exports
846
-
847
- /******/
848
-
849
- return __webpack_require__(__webpack_require__.s = 1);
850
- /******/
851
- }
852
- /************************************************************************/
853
-
854
- /******/
855
- ([
856
- /* 0 */
857
-
858
- /***/
859
- function (module, __webpack_exports__, __webpack_require__) {
860
- "use strict";
861
- /* harmony export (binding) */
862
-
863
- __webpack_require__.d(__webpack_exports__, "a", function () {
864
- return fade;
865
- });
866
- /* harmony export (binding) */
867
-
868
-
869
- __webpack_require__.d(__webpack_exports__, "b", function () {
870
- return mix;
871
- });
872
- /**
873
- * A color manipulation library useful for dynamically
874
- * mixing colors together.
875
- */
876
-
877
-
878
- const color6Regexp = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
879
- const color3Regexp = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i;
880
- const rgbaRegexp = /^rgba?\(\s*(\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\s*\)$/i; // Parse a color in #abcdef, rgb(...), or rgba(...) form into an object
881
- // with r,g,b,a keys.
882
-
883
- const parse = color => {
884
- if (typeof color !== "string") {
885
- throw new Error(`Failed to parse color: ${color}`);
886
- }
887
-
888
- const color3Match = color.match(color3Regexp);
889
-
890
- if (color3Match) {
891
- return {
892
- r: parseInt(`${color3Match[1]}${color3Match[1]}`, 16),
893
- g: parseInt(`${color3Match[2]}${color3Match[2]}`, 16),
894
- b: parseInt(`${color3Match[3]}${color3Match[3]}`, 16),
895
- a: 1
896
- };
897
- }
898
-
899
- const color6Match = color.match(color6Regexp);
900
-
901
- if (color6Match) {
902
- return {
903
- r: parseInt(color6Match[1], 16),
904
- g: parseInt(color6Match[2], 16),
905
- b: parseInt(color6Match[3], 16),
906
- a: 1
907
- };
908
- }
909
-
910
- const rgbaMatch = color.match(rgbaRegexp);
911
-
912
- if (rgbaMatch) {
913
- return {
914
- r: parseFloat(rgbaMatch[1]),
915
- g: parseFloat(rgbaMatch[2]),
916
- b: parseFloat(rgbaMatch[3]),
917
- a: rgbaMatch[4] ? parseFloat(rgbaMatch[4]) : 1
918
- };
919
- }
920
-
921
- throw new Error(`Failed to parse color: ${color}`);
922
- }; // Stringify the color in an `rgba()` or `#abcdef` format.
923
-
924
-
925
- const format = color => {
926
- const r = Math.round(color.r);
927
- const g = Math.round(color.g);
928
- const b = Math.round(color.b);
929
-
930
- if (color.a === 1) {
931
- const _s = c => {
932
- const asString = c.toString(16);
933
- return asString.length === 1 ? asString + asString : asString;
934
- };
935
-
936
- return `#${_s(r)}${_s(g)}${_s(b)}`;
937
- } else {
938
- return `rgba(${r},${g},${b},${color.a.toFixed(2)})`;
939
- }
940
- }; // Adjust the alpha value of a color.
941
-
942
-
943
- const fade = (color, percentage) => {
944
- if (percentage < 0 || percentage > 1) {
945
- throw new Error("Percentage must be between 0 and 1");
946
- }
947
-
948
- const components = parse(color);
949
- return format({ ...components,
950
- a: components.a * percentage
951
- });
952
- }; // Mix a color into a background color, using the alpha channel of the base
953
- // color to determine the linear blend.
954
-
955
-
956
- const mix = (color, background) => {
957
- const colorObj = parse(color);
958
- const bgObj = parse(background);
959
- return format({
960
- r: colorObj.r * colorObj.a + bgObj.r * (1 - colorObj.a),
961
- g: colorObj.g * colorObj.a + bgObj.g * (1 - colorObj.a),
962
- b: colorObj.b * colorObj.a + bgObj.b * (1 - colorObj.a),
963
- a: bgObj.a
964
- });
965
- };
966
- /***/
967
-
968
- },
969
- /* 1 */
970
-
971
- /***/
972
- function (module, __webpack_exports__, __webpack_require__) {
973
- "use strict";
974
-
975
- __webpack_require__.r(__webpack_exports__);
976
- /* harmony export (binding) */
977
-
978
-
979
- __webpack_require__.d(__webpack_exports__, "default", function () {
980
- return Color;
981
- });
982
- /* harmony export (binding) */
983
-
984
-
985
- __webpack_require__.d(__webpack_exports__, "SemanticColor", function () {
986
- return SemanticColor;
987
- });
988
- /* harmony import */
989
-
990
-
991
- var _util_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
992
- /* harmony reexport (safe) */
993
-
994
-
995
- __webpack_require__.d(__webpack_exports__, "mix", function () {
996
- return _util_utils_js__WEBPACK_IMPORTED_MODULE_0__["b"];
997
- });
998
- /* harmony reexport (safe) */
999
-
1000
-
1001
- __webpack_require__.d(__webpack_exports__, "fade", function () {
1002
- return _util_utils_js__WEBPACK_IMPORTED_MODULE_0__["a"];
1003
- });
1004
-
1005
- const offBlack = "#21242c";
1006
- const white = "#ffffff";
1007
- const Color = {
1008
- // Product
1009
- blue: "#1865f2",
1010
- purple: "#9059ff",
1011
- green: "#00a60e",
1012
- gold: "#ffb100",
1013
- red: "#d92916",
1014
- // Neutral
1015
- offBlack,
1016
- offBlack64: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1017
- /* fade */
1018
- "a"])(offBlack, 0.64),
1019
- offBlack50: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1020
- /* fade */
1021
- "a"])(offBlack, 0.5),
1022
- offBlack32: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1023
- /* fade */
1024
- "a"])(offBlack, 0.32),
1025
- offBlack16: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1026
- /* fade */
1027
- "a"])(offBlack, 0.16),
1028
- offBlack8: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1029
- /* fade */
1030
- "a"])(offBlack, 0.08),
1031
- offWhite: "#f7f8fa",
1032
- white,
1033
- white64: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1034
- /* fade */
1035
- "a"])(white, 0.64),
1036
- white50: Object(_util_utils_js__WEBPACK_IMPORTED_MODULE_0__[
1037
- /* fade */
1038
- "a"])(white, 0.5),
1039
- // Brand
1040
- darkBlue: "#0b2149",
1041
- teal: "#14bf96",
1042
- lightBlue: "#37c5fd",
1043
- pink: "#fa50ae"
1044
- };
1045
- const SemanticColor = {
1046
- controlDefault: Color.blue,
1047
- controlDestructive: Color.red
1048
- };
1049
- /***/
1050
- }
1051
- /******/
1052
- ]);
1053
-
1054
- /***/ }),
1055
- /* 4 */
1056
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1057
-
1058
- "use strict";
1059
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getClickableBehavior; });
1060
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1061
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1062
- /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
1063
- /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_1__);
1064
- /* harmony import */ var _components_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
1065
- /* harmony import */ var _is_client_side_url_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
1066
- /**
1067
- * Returns either the default ClickableBehavior or a react-router aware version.
1068
- *
1069
- * The react-router aware version is returned if `router` is a react-router-dom
1070
- * router, `skipClientNav` is not `true`, and `href` is an internal URL.
1071
- *
1072
- * The `router` can be accessed via __RouterContext (imported from 'react-router')
1073
- * from a component rendered as a descendant of a BrowserRouter.
1074
- * See https://reacttraining.com/react-router/web/guides/basic-components.
1075
- */
1076
-
1077
-
1078
-
1079
-
1080
- const ClickableBehaviorWithRouter = Object(react_router_dom__WEBPACK_IMPORTED_MODULE_1__["withRouter"])(_components_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"]);
1081
- function getClickableBehavior(
1082
- /**
1083
- * The URL to navigate to.
1084
- */
1085
- href,
1086
- /**
1087
- * Should we skip using the react router and go to the page directly.
1088
- */
1089
- skipClientNav,
1090
- /**
1091
- * router object added to the React context object by react-router-dom.
1092
- */
1093
- router) {
1094
- if (router && skipClientNav !== true && href && Object(_is_client_side_url_js__WEBPACK_IMPORTED_MODULE_3__[/* isClientSideUrl */ "a"])(href)) {
1095
- // We cast to `any` here since the type of ClickableBehaviorWithRouter
1096
- // is slightly different from the return type of this function.
1097
- // TODO(WB-1037): Always return the wrapped version once all routes have
1098
- // been ported to the app-shell in webapp.
1099
- return ClickableBehaviorWithRouter;
1100
- }
1101
-
1102
- return _components_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"];
1103
- }
1104
-
1105
- /***/ }),
1106
- /* 5 */
1107
- /***/ (function(module, exports) {
1108
-
1109
- module.exports = require("react-router-dom");
1110
-
1111
- /***/ }),
1112
- /* 6 */
1113
- /***/ (function(module, exports) {
1114
-
1115
- function _extends() {
1116
- module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
1117
- for (var i = 1; i < arguments.length; i++) {
1118
- var source = arguments[i];
1119
- for (var key in source) {
1120
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1121
- target[key] = source[key];
1122
- }
1123
- }
1124
- }
1125
- return target;
1126
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
1127
- return _extends.apply(this, arguments);
1128
- }
1129
- module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
1130
-
1131
- /***/ }),
1132
- /* 7 */
1133
- /***/ (function(module, exports) {
1134
-
1135
- module.exports = require("@khanacademy/wonder-blocks-core");
1136
-
1137
- /***/ }),
1138
- /* 8 */
1139
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1140
-
1141
- "use strict";
1142
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Clickable; });
1143
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
1144
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
1145
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
1146
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1147
- /* harmony import */ var aphrodite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
1148
- /* harmony import */ var aphrodite__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(aphrodite__WEBPACK_IMPORTED_MODULE_2__);
1149
- /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
1150
- /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_router_dom__WEBPACK_IMPORTED_MODULE_3__);
1151
- /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10);
1152
- /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_router__WEBPACK_IMPORTED_MODULE_4__);
1153
- /* harmony import */ var _khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7);
1154
- /* harmony import */ var _khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_5__);
1155
- /* harmony import */ var _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
1156
- /* harmony import */ var _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6__);
1157
- /* harmony import */ var _util_get_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4);
1158
- /* harmony import */ var _util_is_client_side_url_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
- const StyledAnchor = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_5__["addStyle"])("a");
1169
- const StyledButton = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_5__["addStyle"])("button");
1170
- const StyledLink = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_5__["addStyle"])(react_router_dom__WEBPACK_IMPORTED_MODULE_3__["Link"]);
1171
- /**
1172
- * A component to turn any custom component into a clickable one.
1173
- *
1174
- * Works by wrapping `ClickableBehavior` around the child element and styling
1175
- * the child appropriately and encapsulates routing logic which can be
1176
- * customized. Expects a function which returns an element as its child.
1177
- *
1178
- * Clickable allows your components to:
1179
- *
1180
- * - Handle mouse / touch / keyboard events
1181
- * - Match the standard behavior of the given role
1182
- * - Apply custom styles based on pressed / focused / hovered state
1183
- * - Perform Client Side Navigation when href is passed and the component is a
1184
- * descendent of a react-router Router.
1185
- *
1186
- * ### Usage
1187
- *
1188
- * ```jsx
1189
- * <Clickable onClick={() => alert("You clicked me!")}>
1190
- * {({hovered, focused, pressed}) =>
1191
- * <div
1192
- * style={[
1193
- * hovered && styles.hovered,
1194
- * focused && styles.focused,
1195
- * pressed && styles.pressed,
1196
- * ]}
1197
- * >
1198
- * Click Me!
1199
- * </div>
1200
- * }
1201
- * </Clickable>
1202
- * ```
1203
- */
1204
-
1205
- class Clickable extends react__WEBPACK_IMPORTED_MODULE_1__["Component"] {
1206
- constructor(...args) {
1207
- super(...args);
1208
-
1209
- this.getCorrectTag = (clickableState, router, commonProps) => {
1210
- const activeHref = this.props.href && !this.props.disabled;
1211
- const useClient = router && !this.props.skipClientNav && Object(_util_is_client_side_url_js__WEBPACK_IMPORTED_MODULE_8__[/* isClientSideUrl */ "a"])(this.props.href || ""); // NOTE: checking this.props.href here is redundant, but flow
1212
- // needs it to refine this.props.href to a string.
1213
-
1214
- if (activeHref && useClient && this.props.href) {
1215
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](StyledLink, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, commonProps, {
1216
- to: this.props.href,
1217
- role: this.props.role,
1218
- target: this.props.target || undefined,
1219
- "aria-disabled": this.props.disabled ? "true" : undefined
1220
- }), this.props.children(clickableState));
1221
- } else if (activeHref && !useClient) {
1222
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](StyledAnchor, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, commonProps, {
1223
- href: this.props.href,
1224
- role: this.props.role,
1225
- target: this.props.target || undefined,
1226
- "aria-disabled": this.props.disabled ? "true" : undefined
1227
- }), this.props.children(clickableState));
1228
- } else {
1229
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](StyledButton, _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, commonProps, {
1230
- type: "button",
1231
- "aria-disabled": this.props.disabled
1232
- }), this.props.children(clickableState));
1233
- }
1234
- };
1235
- }
1236
-
1237
- renderClickableBehavior(router) {
1238
- const {
1239
- href,
1240
- onClick,
1241
- skipClientNav,
1242
- beforeNav = undefined,
1243
- safeWithNav = undefined,
1244
- style,
1245
- target = undefined,
1246
- testId,
1247
- onKeyDown,
1248
- onKeyUp,
1249
- hideDefaultFocusRing,
1250
- light,
1251
- disabled,
1252
- ...restProps
1253
- } = this.props;
1254
- const ClickableBehavior = Object(_util_get_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(href, skipClientNav, router);
1255
-
1256
- const getStyle = state => [styles.reset, styles.link, !hideDefaultFocusRing && state.focused && (light ? styles.focusedLight : styles.focused), disabled && styles.disabled, style];
1257
-
1258
- if (beforeNav) {
1259
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ClickableBehavior, {
1260
- href: href,
1261
- onClick: onClick,
1262
- beforeNav: beforeNav,
1263
- safeWithNav: safeWithNav,
1264
- onKeyDown: onKeyDown,
1265
- onKeyUp: onKeyUp,
1266
- disabled: disabled
1267
- }, (state, childrenProps) => this.getCorrectTag(state, router, { ...restProps,
1268
- "data-test-id": testId,
1269
- style: getStyle(state),
1270
- ...childrenProps
1271
- }));
1272
- } else {
1273
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](ClickableBehavior, {
1274
- href: href,
1275
- onClick: onClick,
1276
- safeWithNav: safeWithNav,
1277
- onKeyDown: onKeyDown,
1278
- onKeyUp: onKeyUp,
1279
- target: target,
1280
- disabled: disabled
1281
- }, (state, childrenProps) => this.getCorrectTag(state, router, { ...restProps,
1282
- "data-test-id": testId,
1283
- style: getStyle(state),
1284
- ...childrenProps
1285
- }));
1286
- }
1287
- }
1288
-
1289
- render() {
1290
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react_router__WEBPACK_IMPORTED_MODULE_4__["__RouterContext"].Consumer, null, router => this.renderClickableBehavior(router));
1291
- }
1292
-
1293
- } // Source: https://gist.github.com/MoOx/9137295
1294
-
1295
- Clickable.defaultProps = {
1296
- light: false,
1297
- disabled: false
1298
- };
1299
- const styles = aphrodite__WEBPACK_IMPORTED_MODULE_2__["StyleSheet"].create({
1300
- reset: {
1301
- border: "none",
1302
- margin: 0,
1303
- padding: 0,
1304
- width: "auto",
1305
- overflow: "visible",
1306
- background: "transparent",
1307
- textDecoration: "none",
1308
-
1309
- /* inherit font & color from ancestor */
1310
- color: "inherit",
1311
- font: "inherit",
1312
- boxSizing: "border-box",
1313
- // This removes the 300ms click delay on mobile browsers by indicating that
1314
- // "double-tap to zoom" shouldn't be used on this element.
1315
- touchAction: "manipulation",
1316
- userSelect: "none",
1317
- // This is usual frowned upon b/c of accessibility. We expect users of Clickable
1318
- // to define their own focus styles.
1319
- outline: "none",
1320
-
1321
- /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
1322
- lineHeight: "normal",
1323
-
1324
- /* Corrects font smoothing for webkit */
1325
- WebkitFontSmoothing: "inherit",
1326
- MozOsxFontSmoothing: "inherit"
1327
- },
1328
- link: {
1329
- cursor: "pointer"
1330
- },
1331
- focused: {
1332
- ":focus": {
1333
- outline: `solid 2px ${_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6___default.a.blue}`
1334
- }
1335
- },
1336
- focusedLight: {
1337
- outline: `solid 2px ${_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6___default.a.white}`
1338
- },
1339
- disabled: {
1340
- color: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6___default.a.offBlack32,
1341
- cursor: "not-allowed",
1342
- ":focus": {
1343
- outline: "none"
1344
- },
1345
- ":focus-visible": {
1346
- outline: `solid 2px ${_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_6___default.a.blue}`
1347
- }
1348
- }
1349
- });
1350
-
1351
- /***/ }),
1352
- /* 9 */
1353
- /***/ (function(module, exports) {
1354
-
1355
- module.exports = require("aphrodite");
1356
-
1357
- /***/ }),
1358
- /* 10 */
1359
- /***/ (function(module, exports) {
1360
-
1361
- module.exports = require("react-router");
1362
-
1363
- /***/ }),
1364
- /* 11 */
1365
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1366
-
1367
- "use strict";
1368
- __webpack_require__.r(__webpack_exports__);
1369
- /* harmony import */ var _components_clickable_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
1370
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _components_clickable_js__WEBPACK_IMPORTED_MODULE_0__["a"]; });
1371
-
1372
- /* harmony import */ var _components_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
1373
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClickableBehavior", function() { return _components_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_1__["a"]; });
1374
-
1375
- /* harmony import */ var _util_get_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
1376
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getClickableBehavior", function() { return _util_get_clickable_behavior_js__WEBPACK_IMPORTED_MODULE_2__["a"]; });
1377
-
1378
- /* harmony import */ var _util_is_client_side_url_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
1379
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isClientSideUrl", function() { return _util_is_client_side_url_js__WEBPACK_IMPORTED_MODULE_3__["a"]; });
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
- /***/ })
1388
- /******/ ]);