1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opener = _____WB$wombat$assign$function_____("opener"); 10/******/ (function() { // webpackBootstrap 11/******/ var __webpack_modules__ = ({ 12
vendor: 24,821 bytes, lines 13-614
13/***/ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js": 14/*!***********************************************************************!*\ 15 !*** ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js ***! 16 \***********************************************************************/ 17/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 18 19"use strict"; 20__webpack_require__.r(__webpack_exports__); 21/* harmony import */ var _emotion_sheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/sheet */ "./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js"); 22/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Tokenizer.js"); 23/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Utility.js"); 24/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Enum.js"); 25/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Serializer.js"); 26/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Middleware.js"); 27/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Parser.js"); 28/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); 29/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); 30 31 32 33 34 35var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) { 36 var previous = 0; 37 var character = 0; 38 39 while (true) { 40 previous = character; 41 character = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)(); // &\f 42 43 if (previous === 38 && character === 12) { 44 points[index] = 1; 45 } 46 47 if ((0,stylis__WEBPACK_IMPORTED_MODULE_3__.token)(character)) { 48 break; 49 } 50 51 (0,stylis__WEBPACK_IMPORTED_MODULE_3__.next)(); 52 } 53 54 return (0,stylis__WEBPACK_IMPORTED_MODULE_3__.slice)(begin, stylis__WEBPACK_IMPORTED_MODULE_3__.position); 55}; 56 57var toRules = function toRules(parsed, points) { 58 // pretend we've started with a comma 59 var index = -1; 60 var character = 44; 61 62 do { 63 switch ((0,stylis__WEBPACK_IMPORTED_MODULE_3__.token)(character)) { 64 case 0: 65 // &\f 66 if (character === 38 && (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)() === 12) { 67 // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings 68 // stylis inserts \f after & to know when & where it should replace this sequence with the context selector 69 // and when it should just concatenate the outer and inner selectors 70 // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here 71 points[index] = 1; 72 } 73 74 parsed[index] += identifierWithPointTracking(stylis__WEBPACK_IMPORTED_MODULE_3__.position - 1, points, index); 75 break; 76 77 case 2: 78 parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_3__.delimit)(character); 79 break; 80 81 case 4: 82 // comma 83 if (character === 44) { 84 // colon 85 parsed[++index] = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)() === 58 ? '&\f' : ''; 86 points[index] = parsed[index].length; 87 break; 88 } 89 90 // fallthrough 91 92 default: 93 parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_4__.from)(character); 94 } 95 } while (character = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.next)()); 96 97 return parsed; 98}; 99 100var getRules = function getRules(value, points) { 101 return (0,stylis__WEBPACK_IMPORTED_MODULE_3__.dealloc)(toRules((0,stylis__WEBPACK_IMPORTED_MODULE_3__.alloc)(value), points)); 102}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11 103 104 105var fixedElements = /* #__PURE__ */new WeakMap(); 106var compat = function compat(element) { 107 if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo 108 // negative .length indicates that this rule has been already prefixed 109 element.length < 1) { 110 return; 111 } 112 113 var value = element.value, 114 parent = element.parent; 115 var isImplicitRule = element.column === parent.column && element.line === parent.line; 116 117 while (parent.type !== 'rule') { 118 parent = parent.parent; 119 if (!parent) return; 120 } // short-circuit for the simplest case 121 122 123 if (element.props.length === 1 && value.charCodeAt(0) !== 58 124 /* colon */ 125 && !fixedElements.get(parent)) { 126 return; 127 } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level) 128 // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent" 129 130 131 if (isImplicitRule) { 132 return; 133 } 134 135 fixedElements.set(element, true); 136 var points = []; 137 var rules = getRules(value, points); 138 var parentRules = parent.props; 139 140 for (var i = 0, k = 0; i < rules.length; i++) { 141 for (var j = 0; j < parentRules.length; j++, k++) { 142 element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; 143 } 144 } 145}; 146var removeLabel = function removeLabel(element) { 147 if (element.type === 'decl') { 148 var value = element.value; 149 150 if ( // charcode for l 151 value.charCodeAt(0) === 108 && // charcode for b 152 value.charCodeAt(2) === 98) { 153 // this ignores label 154 element["return"] = ''; 155 element.value = ''; 156 } 157 } 158}; 159var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; 160 161var isIgnoringComment = function isIgnoringComment(element) { 162 return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1; 163}; 164 165var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { 166 return function (element, index, children) { 167 if (element.type !== 'rule' || cache.compat) return; 168 var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); 169 170 if (unsafePseudoClasses) { 171 var isNested = element.parent === children[0]; // in nested rules comments become children of the "auto-inserted" rule 172 // 173 // considering this input: 174 // .a { 175 // .b /* comm */ {} 176 // color: hotpink; 177 // } 178 // we get output corresponding to this: 179 // .a { 180 // & { 181 // /* comm */ 182 // color: hotpink; 183 // } 184 // .b {} 185 // } 186 187 var commentContainer = isNested ? children[0].children : // global rule at the root level 188 children; 189 190 for (var i = commentContainer.length - 1; i >= 0; i--) { 191 var node = commentContainer[i]; 192 193 if (node.line < element.line) { 194 break; 195 } // it is quite weird but comments are *usually* put at `column: element.column - 1` 196 // so we seek *from the end* for the node that is earlier than the rule's `element` and check that 197 // this will also match inputs like this: 198 // .a { 199 // /* comm */ 200 // .b {} 201 // } 202 // 203 // but that is fine 204 // 205 // it would be the easiest to change the placement of the comment to be the first child of the rule: 206 // .a { 207 // .b { /* comm */ } 208 // } 209 // with such inputs we wouldn't have to search for the comment at all 210 // TODO: consider changing this comment placement in the next major version 211 212 213 if (node.column < element.column) { 214 if (isIgnoringComment(node)) { 215 return; 216 } 217 218 break; 219 } 220 } 221 222 unsafePseudoClasses.forEach(function (unsafePseudoClass) { 223 console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); 224 }); 225 } 226 }; 227}; 228 229var isImportRule = function isImportRule(element) { 230 return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; 231}; 232 233var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) { 234 for (var i = index - 1; i >= 0; i--) { 235 if (!isImportRule(children[i])) { 236 return true; 237 } 238 } 239 240 return false; 241}; // use this to remove incorrect elements from further processing 242// so they don't get handed to the `sheet` (or anything else) 243// as that could potentially lead to additional logs which in turn could be overhelming to the user 244 245 246var nullifyElement = function nullifyElement(element) { 247 element.type = ''; 248 element.value = ''; 249 element["return"] = ''; 250 element.children = ''; 251 element.props = ''; 252}; 253 254var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) { 255 if (!isImportRule(element)) { 256 return; 257 } 258 259 if (element.parent) { 260 console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); 261 nullifyElement(element); 262 } else if (isPrependedWithRegularRules(index, children)) { 263 console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); 264 nullifyElement(element); 265 } 266}; 267 268/* eslint-disable no-fallthrough */ 269 270function prefix(value, length) { 271 switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.hash)(value, length)) { 272 // color-adjust 273 case 5103: 274 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'print-' + value + value; 275 // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) 276 277 case 5737: 278 case 4201: 279 case 3177: 280 case 3433: 281 case 1641: 282 case 4457: 283 case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break 284 285 case 5572: 286 case 6356: 287 case 5844: 288 case 3191: 289 case 6645: 290 case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, 291 292 case 6391: 293 case 5879: 294 case 5623: 295 case 6135: 296 case 4599: 297 case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) 298 299 case 4215: 300 case 6389: 301 case 5109: 302 case 5365: 303 case 5621: 304 case 3829: 305 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + value; 306 // appearance, user-select, transform, hyphens, text-size-adjust 307 308 case 5349: 309 case 4246: 310 case 4810: 311 case 6968: 312 case 2756: 313 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; 314 // flex, flex-direction 315 316 case 6828: 317 case 4268: 318 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; 319 // order 320 321 case 6165: 322 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-' + value + value; 323 // align-items 324 325 case 5187: 326 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(\w+).+(:[^]+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-$1$2' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-$1$2') + value; 327 // align-self 328 329 case 5443: 330 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-item-' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /flex-|-self/, '') + value; 331 // align-content 332 333 case 4675: 334 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-line-pack' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /align-content|flex-|-self/, '') + value; 335 // flex-shrink 336 337 case 5548: 338 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'shrink', 'negative') + value; 339 // flex-basis 340 341 case 5292: 342 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'basis', 'preferred-size') + value; 343 // flex-grow 344 345 case 6060: 346 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, '-grow', '') + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'grow', 'positive') + value; 347 // transition 348 349 case 4554: 350 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /([^-])(transform)/g, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2') + value; 351 // cursor 352 353 case 6187: 354 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(zoom-|grab)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1'), /(image-set)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1'), value, '') + value; 355 // background, background-image 356 357 case 5495: 358 case 3959: 359 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(image-set\([^]*)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1' + '$`$1'); 360 // justify-content 361 362 case 4968: 363 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)(flex-)?(.*)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-pack:$3' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + value; 364 // (margin|padding)-inline-(start|end) 365 366 case 4095: 367 case 3583: 368 case 4068: 369 case 2532: 370 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+)-inline(.+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1$2') + value; 371 // (min|max)?(width|height|inline-size|block-size) 372 373 case 8116: 374 case 7059: 375 case 5753: 376 case 5535: 377 case 5445: 378 case 5701: 379 case 4933: 380 case 4677: 381 case 5533: 382 case 5789: 383 case 5021: 384 case 4765: 385 // stretch, max-content, min-content, fill-available 386 if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.strlen)(value) - 1 - length > 6) switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 1)) { 387 // (m)ax-content, (m)in-content 388 case 109: 389 // - 390 if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 4) !== 45) break; 391 // (f)ill-available, (f)it-content 392 393 case 102: 394 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)(.+)-([^]+)/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2-$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 3) == 108 ? '$3' : '$2-$3')) + value; 395 // (s)tretch 396 397 case 115: 398 return ~(0,stylis__WEBPACK_IMPORTED_MODULE_4__.indexof)(value, 'stretch') ? prefix((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'stretch', 'fill-available'), length) + value : value; 399 } 400 break; 401 // position: sticky 402 403 case 4949: 404 // (s)ticky? 405 if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 1) !== 115) break; 406 // display: (flex|inline-flex) 407 408 case 6444: 409 switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, (0,stylis__WEBPACK_IMPORTED_MODULE_4__.strlen)(value) - 3 - (~(0,stylis__WEBPACK_IMPORTED_MODULE_4__.indexof)(value, '!important') && 10))) { 410 // stic(k)y 411 case 107: 412 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, ':', ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT) + value; 413 // (inline-)?fl(e)x 414 415 case 101: 416 return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + '$2box$3') + value; 417 } 418 419 break; 420 // writing-mode 421 422 case 5936: 423 switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 11)) { 424 // vertical-l(r) 425 case 114: 426 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb') + value; 427 // vertical-r(l) 428 429 case 108: 430 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value; 431 // horizontal(-)tb 432 433 case 45: 434 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'lr') + value; 435 } 436 437 return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; 438 } 439 440 return value; 441} 442 443var prefixer = function prefixer(element, index, children, callback) { 444 if (element.length > -1) if (!element["return"]) switch (element.type) { 445 case stylis__WEBPACK_IMPORTED_MODULE_5__.DECLARATION: 446 element["return"] = prefix(element.value, element.length); 447 break; 448 449 case stylis__WEBPACK_IMPORTED_MODULE_5__.KEYFRAMES: 450 return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { 451 value: (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(element.value, '@', '@' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT) 452 })], callback); 453 454 case stylis__WEBPACK_IMPORTED_MODULE_5__.RULESET: 455 if (element.length) return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.combine)(element.props, function (value) { 456 switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.match)(value, /(::plac\w+|:read-\w+)/)) { 457 // :read-(only|write) 458 case ':read-only': 459 case ':read-write': 460 return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { 461 props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(read-\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + '$1')] 462 })], callback); 463 // :placeholder 464 465 case '::placeholder': 466 return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { 467 props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'input-$1')] 468 }), (0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { 469 props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + '$1')] 470 }), (0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { 471 props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'input-$1')] 472 })], callback); 473 } 474 475 return ''; 476 }); 477 } 478}; 479 480var defaultStylisPlugins = [prefixer]; 481 482var createCache = function createCache(options) { 483 var key = options.key; 484 485 if ( true && !key) { 486 throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements."); 487 } 488 489 if ( key === 'css') { 490 var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration 491 // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be) 492 // note this very very intentionally targets all style elements regardless of the key to ensure 493 // that creating a cache works inside of render of a React component 494 495 Array.prototype.forEach.call(ssrStyles, function (node) { 496 // we want to only move elements which have a space in the data-emotion attribute value 497 // because that indicates that it is an Emotion 11 server-side rendered style elements 498 // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector 499 // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes) 500 // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles 501 // will not result in the Emotion 10 styles being destroyed 502 var dataEmotionAttribute = node.getAttribute('data-emotion'); 503 504 if (dataEmotionAttribute.indexOf(' ') === -1) { 505 return; 506 } 507 document.head.appendChild(node); 508 node.setAttribute('data-s', ''); 509 }); 510 } 511 512 var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; 513 514 if (true) { 515 // $FlowFixMe 516 if (/[^a-z-]/.test(key)) { 517 throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed"); 518 } 519 } 520 521 var inserted = {}; 522 var container; 523 var nodesToHydrate = []; 524 525 { 526 container = options.container || document.head; 527 Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which 528 // means that the style elements we're looking at are only Emotion 11 server-rendered style elements 529 document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) { 530 var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe 531 532 for (var i = 1; i < attrib.length; i++) { 533 inserted[attrib[i]] = true; 534 } 535 536 nodesToHydrate.push(node); 537 }); 538 } 539 540 var _insert; 541 542 var omnipresentPlugins = [compat, removeLabel]; 543 544 if (true) { 545 omnipresentPlugins.push(createUnsafeSelectorsAlarm({ 546 get compat() { 547 return cache.compat; 548 } 549 550 }), incorrectImportAlarm); 551 } 552 553 { 554 var currentSheet; 555 var finalizingPlugins = [stylis__WEBPACK_IMPORTED_MODULE_6__.stringify, true ? function (element) { 556 if (!element.root) { 557 if (element["return"]) { 558 currentSheet.insert(element["return"]); 559 } else if (element.value && element.type !== stylis__WEBPACK_IMPORTED_MODULE_5__.COMMENT) { 560 // insert empty rule in non-production environments 561 // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet 562 currentSheet.insert(element.value + "{}"); 563 } 564 } 565 } : 0]; 566 var serializer = (0,stylis__WEBPACK_IMPORTED_MODULE_7__.middleware)(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); 567 568 var stylis = function stylis(styles) { 569 return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)((0,stylis__WEBPACK_IMPORTED_MODULE_8__.compile)(styles), serializer); 570 }; 571 572 _insert = function insert(selector, serialized, sheet, shouldCache) { 573 currentSheet = sheet; 574 575 if ( true && serialized.map !== undefined) { 576 currentSheet = { 577 insert: function insert(rule) { 578 sheet.insert(rule + serialized.map); 579 } 580 }; 581 } 582 583 stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); 584 585 if (shouldCache) { 586 cache.inserted[serialized.name] = true; 587 } 588 }; 589 } 590 591 var cache = { 592 key: key, 593 sheet: new _emotion_sheet__WEBPACK_IMPORTED_MODULE_0__.StyleSheet({ 594 key: key, 595 container: container, 596 nonce: options.nonce, 597 speedy: options.speedy, 598 prepend: options.prepend, 599 insertionPoint: options.insertionPoint 600 }), 601 nonce: options.nonce, 602 inserted: inserted, 603 registered: {}, 604 insert: _insert 605 }; 606 cache.sheet.hydrate(nodesToHydrate); 607 return cache; 608}; 609 610/* harmony default export */ __webpack_exports__["default"] = (createCache); 611 612 613/***/ }), 614
vendor: 2,117 bytes, lines 615-681
615/***/ "./node_modules/@emotion/hash/dist/emotion-hash.esm.js": 616/*!*************************************************************!*\ 617 !*** ./node_modules/@emotion/hash/dist/emotion-hash.esm.js ***! 618 \*************************************************************/ 619/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 620 621"use strict"; 622__webpack_require__.r(__webpack_exports__); 623/* eslint-disable */ 624// Inspired by https://github.com/garycourt/murmurhash-js 625// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86 626function murmur2(str) { 627 // 'm' and 'r' are mixing constants generated offline. 628 // They're not really 'magic', they just happen to work well. 629 // const m = 0x5bd1e995; 630 // const r = 24; 631 // Initialize the hash 632 var h = 0; // Mix 4 bytes at a time into the hash 633 634 var k, 635 i = 0, 636 len = str.length; 637 638 for (; len >= 4; ++i, len -= 4) { 639 k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24; 640 k = 641 /* Math.imul(k, m): */ 642 (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16); 643 k ^= 644 /* k >>> r: */ 645 k >>> 24; 646 h = 647 /* Math.imul(k, m): */ 648 (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ 649 /* Math.imul(h, m): */ 650 (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); 651 } // Handle the last few bytes of the input array 652 653 654 switch (len) { 655 case 3: 656 h ^= (str.charCodeAt(i + 2) & 0xff) << 16; 657 658 case 2: 659 h ^= (str.charCodeAt(i + 1) & 0xff) << 8; 660 661 case 1: 662 h ^= str.charCodeAt(i) & 0xff; 663 h = 664 /* Math.imul(h, m): */ 665 (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); 666 } // Do a few final mixes of the hash to ensure the last few 667 // bytes are well-incorporated. 668 669 670 h ^= h >>> 13; 671 h = 672 /* Math.imul(h, m): */ 673 (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); 674 return ((h ^ h >>> 15) >>> 0).toString(36); 675} 676 677/* harmony default export */ __webpack_exports__["default"] = (murmur2); 678 679 680/***/ }), 681
vendor: 688 bytes, lines 682-702
682/***/ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js": 683/*!*******************************************************************!*\ 684 !*** ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js ***! 685 \*******************************************************************/ 686/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 687 688"use strict"; 689__webpack_require__.r(__webpack_exports__); 690function memoize(fn) { 691 var cache = Object.create(null); 692 return function (arg) { 693 if (cache[arg] === undefined) cache[arg] = fn(arg); 694 return cache[arg]; 695 }; 696} 697 698/* harmony default export */ __webpack_exports__["default"] = (memoize); 699 700 701/***/ }), 702
vendor: 1,448 bytes, lines 703-727
703/***/ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js": 704/*!*****************************************************************************************************!*\ 705 !*** ./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js ***! 706 \*****************************************************************************************************/ 707/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 708 709"use strict"; 710__webpack_require__.r(__webpack_exports__); 711/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); 712/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__); 713 714 715// this file isolates this package that is not tree-shakeable 716// and if this module doesn't actually contain any logic of its own 717// then Rollup just use 'hoist-non-react-statics' directly in other chunks 718 719var hoistNonReactStatics = (function (targetComponent, sourceComponent) { 720 return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default()(targetComponent, sourceComponent); 721}); 722 723/* harmony default export */ __webpack_exports__["default"] = (hoistNonReactStatics); 724 725 726/***/ }), 727
vendor: 12,194 bytes, lines 728-994
728/***/ "./node_modules/@emotion/react/dist/emotion-element-6a883da9.browser.esm.js": 729/*!**********************************************************************************!*\ 730 !*** ./node_modules/@emotion/react/dist/emotion-element-6a883da9.browser.esm.js ***! 731 \**********************************************************************************/ 732/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 733 734"use strict"; 735__webpack_require__.r(__webpack_exports__); 736/* harmony export */ __webpack_require__.d(__webpack_exports__, { 737/* harmony export */ "C": function() { return /* binding */ CacheProvider; }, 738/* harmony export */ "E": function() { return /* binding */ Emotion; }, 739/* harmony export */ "T": function() { return /* binding */ ThemeContext; }, 740/* harmony export */ "_": function() { return /* binding */ __unsafe_useEmotionCache; }, 741/* harmony export */ "a": function() { return /* binding */ ThemeProvider; }, 742/* harmony export */ "b": function() { return /* binding */ withTheme; }, 743/* harmony export */ "c": function() { return /* binding */ createEmotionProps; }, 744/* harmony export */ "h": function() { return /* binding */ hasOwnProperty; }, 745/* harmony export */ "u": function() { return /* binding */ useTheme; }, 746/* harmony export */ "w": function() { return /* binding */ withEmotionCache; } 747/* harmony export */ }); 748/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 749/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 750/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); 751/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); 752/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); 753/* harmony import */ var _isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js */ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js"); 754/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); 755/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); 756/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"); 757 758 759 760 761 762 763 764 765 766var hasOwnProperty = {}.hasOwnProperty; 767 768var EmotionCacheContext = /* #__PURE__ */(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)( // we're doing this to avoid preconstruct's dead code elimination in this one case 769// because this module is primarily intended for the browser and node 770// but it's also required in react native and similar environments sometimes 771// and we could have a special build just for that 772// but this is much easier and the native packages 773// might use a different theme context in the future anyway 774typeof HTMLElement !== 'undefined' ? /* #__PURE__ */(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__["default"])({ 775 key: 'css' 776}) : null); 777 778if (true) { 779 EmotionCacheContext.displayName = 'EmotionCacheContext'; 780} 781 782var CacheProvider = EmotionCacheContext.Provider; 783var __unsafe_useEmotionCache = function useEmotionCache() { 784 return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); 785}; 786 787var withEmotionCache = function withEmotionCache(func) { 788 // $FlowFixMe 789 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) { 790 // the cache will never be null in the browser 791 var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); 792 return func(props, cache, ref); 793 }); 794}; 795 796var ThemeContext = /* #__PURE__ */(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({}); 797 798if (true) { 799 ThemeContext.displayName = 'EmotionThemeContext'; 800} 801 802var useTheme = function useTheme() { 803 return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ThemeContext); 804}; 805 806var getTheme = function getTheme(outerTheme, theme) { 807 if (typeof theme === 'function') { 808 var mergedTheme = theme(outerTheme); 809 810 if ( true && (mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) { 811 throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!'); 812 } 813 814 return mergedTheme; 815 } 816 817 if ( true && (theme == null || typeof theme !== 'object' || Array.isArray(theme))) { 818 throw new Error('[ThemeProvider] Please make your theme prop a plain object'); 819 } 820 821 return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, outerTheme, theme); 822}; 823 824var createCacheWithTheme = /* #__PURE__ */(0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (outerTheme) { 825 return (0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (theme) { 826 return getTheme(outerTheme, theme); 827 }); 828}); 829var ThemeProvider = function ThemeProvider(props) { 830 var theme = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ThemeContext); 831 832 if (props.theme !== theme) { 833 theme = createCacheWithTheme(theme)(props.theme); 834 } 835 836 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(ThemeContext.Provider, { 837 value: theme 838 }, props.children); 839}; 840function withTheme(Component) { 841 var componentName = Component.displayName || Component.name || 'Component'; 842 843 var render = function render(props, ref) { 844 var theme = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ThemeContext); 845 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ 846 theme: theme, 847 ref: ref 848 }, props)); 849 }; // $FlowFixMe 850 851 852 var WithTheme = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(render); 853 WithTheme.displayName = "WithTheme(" + componentName + ")"; 854 return (0,_isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_7__["default"])(WithTheme, Component); 855} 856 857var getLastPart = function getLastPart(functionName) { 858 // The match may be something like 'Object.createEmotionProps' or 859 // 'Loader.prototype.render' 860 var parts = functionName.split('.'); 861 return parts[parts.length - 1]; 862}; 863 864var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) { 865 // V8 866 var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line); 867 if (match) return getLastPart(match[1]); // Safari / Firefox 868 869 match = /^([A-Za-z0-9$.]+)@/.exec(line); 870 if (match) return getLastPart(match[1]); 871 return undefined; 872}; 873 874var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS 875// identifiers, thus we only need to replace what is a valid character for JS, 876// but not for CSS. 877 878var sanitizeIdentifier = function sanitizeIdentifier(identifier) { 879 return identifier.replace(/\$/g, '-'); 880}; 881 882var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) { 883 if (!stackTrace) return undefined; 884 var lines = stackTrace.split('\n'); 885 886 for (var i = 0; i < lines.length; i++) { 887 var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error" 888 889 if (!functionName) continue; // If we reach one of these, we have gone too far and should quit 890 891 if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an 892 // uppercase letter 893 894 if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); 895 } 896 897 return undefined; 898}; 899 900var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; 901var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; 902var createEmotionProps = function createEmotionProps(type, props) { 903 if ( true && typeof props.css === 'string' && // check if there is a css declaration 904 props.css.indexOf(':') !== -1) { 905 throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`"); 906 } 907 908 var newProps = {}; 909 910 for (var key in props) { 911 if (hasOwnProperty.call(props, key)) { 912 newProps[key] = props[key]; 913 } 914 } 915 916 newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when 917 // the label hasn't already been computed 918 919 if ( true && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) { 920 var label = getLabelFromStackTrace(new Error().stack); 921 if (label) newProps[labelPropName] = label; 922 } 923 924 return newProps; 925}; 926 927var Insertion = function Insertion(_ref) { 928 var cache = _ref.cache, 929 serialized = _ref.serialized, 930 isStringTag = _ref.isStringTag; 931 (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.registerStyles)(cache, serialized, isStringTag); 932 var rules = (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_6__.useInsertionEffectAlwaysWithSyncFallback)(function () { 933 return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.insertStyles)(cache, serialized, isStringTag); 934 }); 935 936 return null; 937}; 938 939var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) { 940 var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works 941 // not passing the registered cache to serializeStyles because it would 942 // make certain babel optimisations not possible 943 944 if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { 945 cssProp = cache.registered[cssProp]; 946 } 947 948 var WrappedComponent = props[typePropName]; 949 var registeredStyles = [cssProp]; 950 var className = ''; 951 952 if (typeof props.className === 'string') { 953 className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.getRegisteredStyles)(cache.registered, registeredStyles, props.className); 954 } else if (props.className != null) { 955 className = props.className + " "; 956 } 957 958 var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_5__.serializeStyles)(registeredStyles, undefined, (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ThemeContext)); 959 960 if ( true && serialized.name.indexOf('-') === -1) { 961 var labelFromStack = props[labelPropName]; 962 963 if (labelFromStack) { 964 serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_5__.serializeStyles)([serialized, 'label:' + labelFromStack + ';']); 965 } 966 } 967 968 className += cache.key + "-" + serialized.name; 969 var newProps = {}; 970 971 for (var key in props) { 972 if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ( false || key !== labelPropName)) { 973 newProps[key] = props[key]; 974 } 975 } 976 977 newProps.ref = ref; 978 newProps.className = className; 979 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Insertion, { 980 cache: cache, 981 serialized: serialized, 982 isStringTag: typeof WrappedComponent === 'string' 983 }), /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(WrappedComponent, newProps)); 984}); 985 986if (true) { 987 Emotion.displayName = 'EmotionCssPropInternal'; 988} 989 990 991 992 993/***/ }), 994
vendor: 16,830 bytes, lines 995-1432
995/***/ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js": 996/*!***********************************************************************!*\ 997 !*** ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js ***! 998 \***********************************************************************/ 999/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 1000 1001"use strict"; 1002__webpack_require__.r(__webpack_exports__); 1003/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1004/* harmony export */ "CacheProvider": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.C; }, 1005/* harmony export */ "ClassNames": function() { return /* binding */ ClassNames; }, 1006/* harmony export */ "Global": function() { return /* binding */ Global; }, 1007/* harmony export */ "ThemeContext": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.T; }, 1008/* harmony export */ "ThemeProvider": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.a; }, 1009/* harmony export */ "__unsafe_useEmotionCache": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__._; }, 1010/* harmony export */ "createElement": function() { return /* binding */ jsx; }, 1011/* harmony export */ "css": function() { return /* binding */ css; }, 1012/* harmony export */ "jsx": function() { return /* binding */ jsx; }, 1013/* harmony export */ "keyframes": function() { return /* binding */ keyframes; }, 1014/* harmony export */ "useTheme": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.u; }, 1015/* harmony export */ "withEmotionCache": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.w; }, 1016/* harmony export */ "withTheme": function() { return /* reexport safe */ _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.b; } 1017/* harmony export */ }); 1018/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 1019/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 1020/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); 1021/* harmony import */ var _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./emotion-element-6a883da9.browser.esm.js */ "./node_modules/@emotion/react/dist/emotion-element-6a883da9.browser.esm.js"); 1022/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); 1023/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); 1024/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); 1025/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_5__); 1026/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); 1027/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); 1028/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"); 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041var pkg = { 1042 name: "@emotion/react", 1043 version: "11.10.6", 1044 main: "dist/emotion-react.cjs.js", 1045 module: "dist/emotion-react.esm.js", 1046 browser: { 1047 "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js" 1048 }, 1049 exports: { 1050 ".": { 1051 module: { 1052 worker: "./dist/emotion-react.worker.esm.js", 1053 browser: "./dist/emotion-react.browser.esm.js", 1054 "default": "./dist/emotion-react.esm.js" 1055 }, 1056 "default": "./dist/emotion-react.cjs.js" 1057 }, 1058 "./jsx-runtime": { 1059 module: { 1060 worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js", 1061 browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js", 1062 "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js" 1063 }, 1064 "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" 1065 }, 1066 "./_isolated-hnrs": { 1067 module: { 1068 worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js", 1069 browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js", 1070 "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js" 1071 }, 1072 "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" 1073 }, 1074 "./jsx-dev-runtime": { 1075 module: { 1076 worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js", 1077 browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js", 1078 "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js" 1079 }, 1080 "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" 1081 }, 1082 "./package.json": "./package.json", 1083 "./types/css-prop": "./types/css-prop.d.ts", 1084 "./macro": "./macro.js" 1085 }, 1086 types: "types/index.d.ts", 1087 files: [ 1088 "src", 1089 "dist", 1090 "jsx-runtime", 1091 "jsx-dev-runtime", 1092 "_isolated-hnrs", 1093 "types/*.d.ts", 1094 "macro.js", 1095 "macro.d.ts", 1096 "macro.js.flow" 1097 ], 1098 sideEffects: false, 1099 author: "Emotion Contributors", 1100 license: "MIT", 1101 scripts: { 1102 "test:typescript": "dtslint types" 1103 }, 1104 dependencies: { 1105 "@babel/runtime": "^7.18.3", 1106 "@emotion/babel-plugin": "^11.10.6", 1107 "@emotion/cache": "^11.10.5", 1108 "@emotion/serialize": "^1.1.1", 1109 "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", 1110 "@emotion/utils": "^1.2.0", 1111 "@emotion/weak-memoize": "^0.3.0", 1112 "hoist-non-react-statics": "^3.3.1" 1113 }, 1114 peerDependencies: { 1115 react: ">=16.8.0" 1116 }, 1117 peerDependenciesMeta: { 1118 "@types/react": { 1119 optional: true 1120 } 1121 }, 1122 devDependencies: { 1123 "@definitelytyped/dtslint": "0.0.112", 1124 "@emotion/css": "11.10.6", 1125 "@emotion/css-prettifier": "1.1.1", 1126 "@emotion/server": "11.10.0", 1127 "@emotion/styled": "11.10.6", 1128 "html-tag-names": "^1.1.2", 1129 react: "16.14.0", 1130 "svg-tag-names": "^1.1.1", 1131 typescript: "^4.5.5" 1132 }, 1133 repository: "https://github.com/emotion-js/emotion/tree/main/packages/react", 1134 publishConfig: { 1135 access: "public" 1136 }, 1137 "umd:main": "dist/emotion-react.umd.min.js", 1138 preconstruct: { 1139 entrypoints: [ 1140 "./index.js", 1141 "./jsx-runtime.js", 1142 "./jsx-dev-runtime.js", 1143 "./_isolated-hnrs.js" 1144 ], 1145 umdName: "emotionReact", 1146 exports: { 1147 envConditions: [ 1148 "browser", 1149 "worker" 1150 ], 1151 extra: { 1152 "./types/css-prop": "./types/css-prop.d.ts", 1153 "./macro": "./macro.js" 1154 } 1155 } 1156 } 1157}; 1158 1159var jsx = function jsx(type, props) { 1160 var args = arguments; 1161 1162 if (props == null || !_emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.h.call(props, 'css')) { 1163 // $FlowFixMe 1164 return react__WEBPACK_IMPORTED_MODULE_0__.createElement.apply(undefined, args); 1165 } 1166 1167 var argsLength = args.length; 1168 var createElementArgArray = new Array(argsLength); 1169 createElementArgArray[0] = _emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.E; 1170 createElementArgArray[1] = (0,_emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.c)(type, props); 1171 1172 for (var i = 2; i < argsLength; i++) { 1173 createElementArgArray[i] = args[i]; 1174 } // $FlowFixMe 1175 1176 1177 return react__WEBPACK_IMPORTED_MODULE_0__.createElement.apply(null, createElementArgArray); 1178}; 1179 1180var warnedAboutCssPropForGlobal = false; // maintain place over rerenders. 1181// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild 1182// initial client-side render from SSR, use place of hydrating tag 1183 1184var Global = /* #__PURE__ */(0,_emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.w)(function (props, cache) { 1185 if ( true && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is 1186 // probably using the custom createElement which 1187 // means it will be turned into a className prop 1188 // $FlowFixMe I don't really want to add it to the type since it shouldn't be used 1189 props.className || props.css)) { 1190 console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"); 1191 warnedAboutCssPropForGlobal = true; 1192 } 1193 1194 var styles = props.styles; 1195 var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_7__.serializeStyles)([styles], undefined, (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.T)); 1196 // but it is based on a constant that will never change at runtime 1197 // it's effectively like having two implementations and switching them out 1198 // so it's not actually breaking anything 1199 1200 1201 var sheetRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); 1202 (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_8__.useInsertionEffectWithLayoutFallback)(function () { 1203 var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675 1204 1205 var sheet = new cache.sheet.constructor({ 1206 key: key, 1207 nonce: cache.sheet.nonce, 1208 container: cache.sheet.container, 1209 speedy: cache.sheet.isSpeedy 1210 }); 1211 var rehydrating = false; // $FlowFixMe 1212 1213 var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]"); 1214 1215 if (cache.sheet.tags.length) { 1216 sheet.before = cache.sheet.tags[0]; 1217 } 1218 1219 if (node !== null) { 1220 rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s 1221 1222 node.setAttribute('data-emotion', key); 1223 sheet.hydrate([node]); 1224 } 1225 1226 sheetRef.current = [sheet, rehydrating]; 1227 return function () { 1228 sheet.flush(); 1229 }; 1230 }, [cache]); 1231 (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_8__.useInsertionEffectWithLayoutFallback)(function () { 1232 var sheetRefCurrent = sheetRef.current; 1233 var sheet = sheetRefCurrent[0], 1234 rehydrating = sheetRefCurrent[1]; 1235 1236 if (rehydrating) { 1237 sheetRefCurrent[1] = false; 1238 return; 1239 } 1240 1241 if (serialized.next !== undefined) { 1242 // insert keyframes 1243 (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_6__.insertStyles)(cache, serialized.next, true); 1244 } 1245 1246 if (sheet.tags.length) { 1247 // if this doesn't exist then it will be null so the style element will be appended 1248 var element = sheet.tags[sheet.tags.length - 1].nextElementSibling; 1249 sheet.before = element; 1250 sheet.flush(); 1251 } 1252 1253 cache.insert("", serialized, sheet, false); 1254 }, [cache, serialized.name]); 1255 return null; 1256}); 1257 1258if (true) { 1259 Global.displayName = 'EmotionGlobal'; 1260} 1261 1262function css() { 1263 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 1264 args[_key] = arguments[_key]; 1265 } 1266 1267 return (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_7__.serializeStyles)(args); 1268} 1269 1270var keyframes = function keyframes() { 1271 var insertable = css.apply(void 0, arguments); 1272 var name = "animation-" + insertable.name; // $FlowFixMe 1273 1274 return { 1275 name: name, 1276 styles: "@keyframes " + name + "{" + insertable.styles + "}", 1277 anim: 1, 1278 toString: function toString() { 1279 return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; 1280 } 1281 }; 1282}; 1283 1284var classnames = function classnames(args) { 1285 var len = args.length; 1286 var i = 0; 1287 var cls = ''; 1288 1289 for (; i < len; i++) { 1290 var arg = args[i]; 1291 if (arg == null) continue; 1292 var toAdd = void 0; 1293 1294 switch (typeof arg) { 1295 case 'boolean': 1296 break; 1297 1298 case 'object': 1299 { 1300 if (Array.isArray(arg)) { 1301 toAdd = classnames(arg); 1302 } else { 1303 if ( true && arg.styles !== undefined && arg.name !== undefined) { 1304 console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.'); 1305 } 1306 1307 toAdd = ''; 1308 1309 for (var k in arg) { 1310 if (arg[k] && k) { 1311 toAdd && (toAdd += ' '); 1312 toAdd += k; 1313 } 1314 } 1315 } 1316 1317 break; 1318 } 1319 1320 default: 1321 { 1322 toAdd = arg; 1323 } 1324 } 1325 1326 if (toAdd) { 1327 cls && (cls += ' '); 1328 cls += toAdd; 1329 } 1330 } 1331 1332 return cls; 1333}; 1334 1335function merge(registered, css, className) { 1336 var registeredStyles = []; 1337 var rawClassName = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_6__.getRegisteredStyles)(registered, registeredStyles, className); 1338 1339 if (registeredStyles.length < 2) { 1340 return className; 1341 } 1342 1343 return rawClassName + css(registeredStyles); 1344} 1345 1346var Insertion = function Insertion(_ref) { 1347 var cache = _ref.cache, 1348 serializedArr = _ref.serializedArr; 1349 var rules = (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_8__.useInsertionEffectAlwaysWithSyncFallback)(function () { 1350 1351 for (var i = 0; i < serializedArr.length; i++) { 1352 var res = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_6__.insertStyles)(cache, serializedArr[i], false); 1353 } 1354 }); 1355 1356 return null; 1357}; 1358 1359var ClassNames = /* #__PURE__ */(0,_emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.w)(function (props, cache) { 1360 var hasRendered = false; 1361 var serializedArr = []; 1362 1363 var css = function css() { 1364 if (hasRendered && "development" !== 'production') { 1365 throw new Error('css can only be used during render'); 1366 } 1367 1368 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 1369 args[_key] = arguments[_key]; 1370 } 1371 1372 var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_7__.serializeStyles)(args, cache.registered); 1373 serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx` 1374 1375 (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_6__.registerStyles)(cache, serialized, false); 1376 return cache.key + "-" + serialized.name; 1377 }; 1378 1379 var cx = function cx() { 1380 if (hasRendered && "development" !== 'production') { 1381 throw new Error('cx can only be used during render'); 1382 } 1383 1384 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { 1385 args[_key2] = arguments[_key2]; 1386 } 1387 1388 return merge(cache.registered, css, classnames(args)); 1389 }; 1390 1391 var content = { 1392 css: css, 1393 cx: cx, 1394 theme: (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_emotion_element_6a883da9_browser_esm_js__WEBPACK_IMPORTED_MODULE_2__.T) 1395 }; 1396 var ele = props.children(content); 1397 hasRendered = true; 1398 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Insertion, { 1399 cache: cache, 1400 serializedArr: serializedArr 1401 }), ele); 1402}); 1403 1404if (true) { 1405 ClassNames.displayName = 'EmotionClassNames'; 1406} 1407 1408if (true) { 1409 var isBrowser = "object" !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked 1410 1411 var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined'; 1412 1413 if (isBrowser && !isTestEnv) { 1414 // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later 1415 var globalContext = // $FlowIgnore 1416 typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef 1417 : isBrowser ? window : __webpack_require__.g; 1418 var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__"; 1419 1420 if (globalContext[globalKey]) { 1421 console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.'); 1422 } 1423 1424 globalContext[globalKey] = true; 1425 } 1426} 1427 1428 1429 1430 1431/***/ }), 1432
vendor: 11,941 bytes, lines 1433-1766
1433/***/ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js": 1434/*!*******************************************************************************!*\ 1435 !*** ./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js ***! 1436 \*******************************************************************************/ 1437/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 1438 1439"use strict"; 1440__webpack_require__.r(__webpack_exports__); 1441/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1442/* harmony export */ "serializeStyles": function() { return /* binding */ serializeStyles; } 1443/* harmony export */ }); 1444/* harmony import */ var _emotion_hash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/hash */ "./node_modules/@emotion/hash/dist/emotion-hash.esm.js"); 1445/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/unitless */ "./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"); 1446/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); 1447 1448 1449 1450 1451var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; 1452var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; 1453var hyphenateRegex = /[A-Z]|^ms/g; 1454var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; 1455 1456var isCustomProperty = function isCustomProperty(property) { 1457 return property.charCodeAt(1) === 45; 1458}; 1459 1460var isProcessableValue = function isProcessableValue(value) { 1461 return value != null && typeof value !== 'boolean'; 1462}; 1463 1464var processStyleName = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_2__["default"])(function (styleName) { 1465 return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); 1466}); 1467 1468var processStyleValue = function processStyleValue(key, value) { 1469 switch (key) { 1470 case 'animation': 1471 case 'animationName': 1472 { 1473 if (typeof value === 'string') { 1474 return value.replace(animationRegex, function (match, p1, p2) { 1475 cursor = { 1476 name: p1, 1477 styles: p2, 1478 next: cursor 1479 }; 1480 return p1; 1481 }); 1482 } 1483 } 1484 } 1485 1486 if (_emotion_unitless__WEBPACK_IMPORTED_MODULE_1__["default"][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { 1487 return value + 'px'; 1488 } 1489 1490 return value; 1491}; 1492 1493if (true) { 1494 var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; 1495 var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; 1496 var oldProcessStyleValue = processStyleValue; 1497 var msPattern = /^-ms-/; 1498 var hyphenPattern = /-(.)/g; 1499 var hyphenatedCache = {}; 1500 1501 processStyleValue = function processStyleValue(key, value) { 1502 if (key === 'content') { 1503 if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { 1504 throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); 1505 } 1506 } 1507 1508 var processed = oldProcessStyleValue(key, value); 1509 1510 if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) { 1511 hyphenatedCache[key] = true; 1512 console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) { 1513 return _char.toUpperCase(); 1514 }) + "?"); 1515 } 1516 1517 return processed; 1518 }; 1519} 1520 1521var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.'; 1522 1523function handleInterpolation(mergedProps, registered, interpolation) { 1524 if (interpolation == null) { 1525 return ''; 1526 } 1527 1528 if (interpolation.__emotion_styles !== undefined) { 1529 if ( true && interpolation.toString() === 'NO_COMPONENT_SELECTOR') { 1530 throw new Error(noComponentSelectorMessage); 1531 } 1532 1533 return interpolation; 1534 } 1535 1536 switch (typeof interpolation) { 1537 case 'boolean': 1538 { 1539 return ''; 1540 } 1541 1542 case 'object': 1543 { 1544 if (interpolation.anim === 1) { 1545 cursor = { 1546 name: interpolation.name, 1547 styles: interpolation.styles, 1548 next: cursor 1549 }; 1550 return interpolation.name; 1551 } 1552 1553 if (interpolation.styles !== undefined) { 1554 var next = interpolation.next; 1555 1556 if (next !== undefined) { 1557 // not the most efficient thing ever but this is a pretty rare case 1558 // and there will be very few iterations of this generally 1559 while (next !== undefined) { 1560 cursor = { 1561 name: next.name, 1562 styles: next.styles, 1563 next: cursor 1564 }; 1565 next = next.next; 1566 } 1567 } 1568 1569 var styles = interpolation.styles + ";"; 1570 1571 if ( true && interpolation.map !== undefined) { 1572 styles += interpolation.map; 1573 } 1574 1575 return styles; 1576 } 1577 1578 return createStringFromObject(mergedProps, registered, interpolation); 1579 } 1580 1581 case 'function': 1582 { 1583 if (mergedProps !== undefined) { 1584 var previousCursor = cursor; 1585 var result = interpolation(mergedProps); 1586 cursor = previousCursor; 1587 return handleInterpolation(mergedProps, registered, result); 1588 } else if (true) { 1589 console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`"); 1590 } 1591 1592 break; 1593 } 1594 1595 case 'string': 1596 if (true) { 1597 var matched = []; 1598 var replaced = interpolation.replace(animationRegex, function (match, p1, p2) { 1599 var fakeVarName = "animation" + matched.length; 1600 matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`"); 1601 return "${" + fakeVarName + "}"; 1602 }); 1603 1604 if (matched.length) { 1605 console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`")); 1606 } 1607 } 1608 1609 break; 1610 } // finalize string values (regular strings and functions interpolated into css calls) 1611 1612 1613 if (registered == null) { 1614 return interpolation; 1615 } 1616 1617 var cached = registered[interpolation]; 1618 return cached !== undefined ? cached : interpolation; 1619} 1620 1621function createStringFromObject(mergedProps, registered, obj) { 1622 var string = ''; 1623 1624 if (Array.isArray(obj)) { 1625 for (var i = 0; i < obj.length; i++) { 1626 string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; 1627 } 1628 } else { 1629 for (var _key in obj) { 1630 var value = obj[_key]; 1631 1632 if (typeof value !== 'object') { 1633 if (registered != null && registered[value] !== undefined) { 1634 string += _key + "{" + registered[value] + "}"; 1635 } else if (isProcessableValue(value)) { 1636 string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; 1637 } 1638 } else { 1639 if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') { 1640 throw new Error(noComponentSelectorMessage); 1641 } 1642 1643 if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { 1644 for (var _i = 0; _i < value.length; _i++) { 1645 if (isProcessableValue(value[_i])) { 1646 string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; 1647 } 1648 } 1649 } else { 1650 var interpolated = handleInterpolation(mergedProps, registered, value); 1651 1652 switch (_key) { 1653 case 'animation': 1654 case 'animationName': 1655 { 1656 string += processStyleName(_key) + ":" + interpolated + ";"; 1657 break; 1658 } 1659 1660 default: 1661 { 1662 if ( true && _key === 'undefined') { 1663 console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); 1664 } 1665 1666 string += _key + "{" + interpolated + "}"; 1667 } 1668 } 1669 } 1670 } 1671 } 1672 } 1673 1674 return string; 1675} 1676 1677var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; 1678var sourceMapPattern; 1679 1680if (true) { 1681 sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; 1682} // this is the cursor for keyframes 1683// keyframes are stored on the SerializedStyles object as a linked list 1684 1685 1686var cursor; 1687var serializeStyles = function serializeStyles(args, registered, mergedProps) { 1688 if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { 1689 return args[0]; 1690 } 1691 1692 var stringMode = true; 1693 var styles = ''; 1694 cursor = undefined; 1695 var strings = args[0]; 1696 1697 if (strings == null || strings.raw === undefined) { 1698 stringMode = false; 1699 styles += handleInterpolation(mergedProps, registered, strings); 1700 } else { 1701 if ( true && strings[0] === undefined) { 1702 console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); 1703 } 1704 1705 styles += strings[0]; 1706 } // we start at 1 since we've already handled the first arg 1707 1708 1709 for (var i = 1; i < args.length; i++) { 1710 styles += handleInterpolation(mergedProps, registered, args[i]); 1711 1712 if (stringMode) { 1713 if ( true && strings[i] === undefined) { 1714 console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); 1715 } 1716 1717 styles += strings[i]; 1718 } 1719 } 1720 1721 var sourceMap; 1722 1723 if (true) { 1724 styles = styles.replace(sourceMapPattern, function (match) { 1725 sourceMap = match; 1726 return ''; 1727 }); 1728 } // using a global regex with .exec is stateful so lastIndex has to be reset each time 1729 1730 1731 labelPattern.lastIndex = 0; 1732 var identifierName = ''; 1733 var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 1734 1735 while ((match = labelPattern.exec(styles)) !== null) { 1736 identifierName += '-' + // $FlowFixMe we know it's not null 1737 match[1]; 1738 } 1739 1740 var name = (0,_emotion_hash__WEBPACK_IMPORTED_MODULE_0__["default"])(styles) + identifierName; 1741 1742 if (true) { 1743 // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it) 1744 return { 1745 name: name, 1746 styles: styles, 1747 map: sourceMap, 1748 next: cursor, 1749 toString: function toString() { 1750 return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; 1751 } 1752 }; 1753 } 1754 1755 return { 1756 name: name, 1757 styles: styles, 1758 next: cursor 1759 }; 1760}; 1761 1762 1763 1764 1765/***/ }), 1766
vendor: 5,285 bytes, lines 1767-1935
1767/***/ "./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js": 1768/*!***********************************************************************!*\ 1769 !*** ./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js ***! 1770 \***********************************************************************/ 1771/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 1772 1773"use strict"; 1774__webpack_require__.r(__webpack_exports__); 1775/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1776/* harmony export */ "StyleSheet": function() { return /* binding */ StyleSheet; } 1777/* harmony export */ }); 1778/* 1779 1780Based off glamor's StyleSheet, thanks Sunil â¤ï¸ 1781 1782high performance StyleSheet for css-in-js systems 1783 1784- uses multiple style tags behind the scenes for millions of rules 1785- uses `insertRule` for appending in production for *much* faster performance 1786 1787// usage 1788 1789import { StyleSheet } from '@emotion/sheet' 1790 1791let styleSheet = new StyleSheet({ key: '', container: document.head }) 1792 1793styleSheet.insert('#box { border: 1px solid red; }') 1794- appends a css rule into the stylesheet 1795 1796styleSheet.flush() 1797- empties the stylesheet of all its contents 1798 1799*/ 1800// $FlowFixMe 1801function sheetForTag(tag) { 1802 if (tag.sheet) { 1803 // $FlowFixMe 1804 return tag.sheet; 1805 } // this weirdness brought to you by firefox 1806 1807 /* istanbul ignore next */ 1808 1809 1810 for (var i = 0; i < document.styleSheets.length; i++) { 1811 if (document.styleSheets[i].ownerNode === tag) { 1812 // $FlowFixMe 1813 return document.styleSheets[i]; 1814 } 1815 } 1816} 1817 1818function createStyleElement(options) { 1819 var tag = document.createElement('style'); 1820 tag.setAttribute('data-emotion', options.key); 1821 1822 if (options.nonce !== undefined) { 1823 tag.setAttribute('nonce', options.nonce); 1824 } 1825 1826 tag.appendChild(document.createTextNode('')); 1827 tag.setAttribute('data-s', ''); 1828 return tag; 1829} 1830 1831var StyleSheet = /*#__PURE__*/function () { 1832 // Using Node instead of HTMLElement since container may be a ShadowRoot 1833 function StyleSheet(options) { 1834 var _this = this; 1835 1836 this._insertTag = function (tag) { 1837 var before; 1838 1839 if (_this.tags.length === 0) { 1840 if (_this.insertionPoint) { 1841 before = _this.insertionPoint.nextSibling; 1842 } else if (_this.prepend) { 1843 before = _this.container.firstChild; 1844 } else { 1845 before = _this.before; 1846 } 1847 } else { 1848 before = _this.tags[_this.tags.length - 1].nextSibling; 1849 } 1850 1851 _this.container.insertBefore(tag, before); 1852 1853 _this.tags.push(tag); 1854 }; 1855 1856 this.isSpeedy = options.speedy === undefined ? "development" === 'production' : options.speedy; 1857 this.tags = []; 1858 this.ctr = 0; 1859 this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets 1860 1861 this.key = options.key; 1862 this.container = options.container; 1863 this.prepend = options.prepend; 1864 this.insertionPoint = options.insertionPoint; 1865 this.before = null; 1866 } 1867 1868 var _proto = StyleSheet.prototype; 1869 1870 _proto.hydrate = function hydrate(nodes) { 1871 nodes.forEach(this._insertTag); 1872 }; 1873 1874 _proto.insert = function insert(rule) { 1875 // the max length is how many rules we have per style tag, it's 65000 in speedy mode 1876 // it's 1 in dev because we insert source maps that map a single rule to a location 1877 // and you can only have one source map per style tag 1878 if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { 1879 this._insertTag(createStyleElement(this)); 1880 } 1881 1882 var tag = this.tags[this.tags.length - 1]; 1883 1884 if (true) { 1885 var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105; 1886 1887 if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) { 1888 // this would only cause problem in speedy mode 1889 // but we don't want enabling speedy to affect the observable behavior 1890 // so we report this error at all times 1891 console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.'); 1892 } 1893 this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule; 1894 } 1895 1896 if (this.isSpeedy) { 1897 var sheet = sheetForTag(tag); 1898 1899 try { 1900 // this is the ultrafast version, works across browsers 1901 // the big drawback is that the css won't be editable in devtools 1902 sheet.insertRule(rule, sheet.cssRules.length); 1903 } catch (e) { 1904 if ( true && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) { 1905 console.error("There was a problem inserting the following rule: \"" + rule + "\"", e); 1906 } 1907 } 1908 } else { 1909 tag.appendChild(document.createTextNode(rule)); 1910 } 1911 1912 this.ctr++; 1913 }; 1914 1915 _proto.flush = function flush() { 1916 // $FlowFixMe 1917 this.tags.forEach(function (tag) { 1918 return tag.parentNode && tag.parentNode.removeChild(tag); 1919 }); 1920 this.tags = []; 1921 this.ctr = 0; 1922 1923 if (true) { 1924 this._alreadyInsertedOrderInsensitiveRule = false; 1925 } 1926 }; 1927 1928 return StyleSheet; 1929}(); 1930 1931 1932 1933 1934/***/ }), 1935
vendor: 1,400 bytes, lines 1936-1997
1936/***/ "./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js": 1937/*!*********************************************************************!*\ 1938 !*** ./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js ***! 1939 \*********************************************************************/ 1940/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 1941 1942"use strict"; 1943__webpack_require__.r(__webpack_exports__); 1944var unitlessKeys = { 1945 animationIterationCount: 1, 1946 borderImageOutset: 1, 1947 borderImageSlice: 1, 1948 borderImageWidth: 1, 1949 boxFlex: 1, 1950 boxFlexGroup: 1, 1951 boxOrdinalGroup: 1, 1952 columnCount: 1, 1953 columns: 1, 1954 flex: 1, 1955 flexGrow: 1, 1956 flexPositive: 1, 1957 flexShrink: 1, 1958 flexNegative: 1, 1959 flexOrder: 1, 1960 gridRow: 1, 1961 gridRowEnd: 1, 1962 gridRowSpan: 1, 1963 gridRowStart: 1, 1964 gridColumn: 1, 1965 gridColumnEnd: 1, 1966 gridColumnSpan: 1, 1967 gridColumnStart: 1, 1968 msGridRow: 1, 1969 msGridRowSpan: 1, 1970 msGridColumn: 1, 1971 msGridColumnSpan: 1, 1972 fontWeight: 1, 1973 lineHeight: 1, 1974 opacity: 1, 1975 order: 1, 1976 orphans: 1, 1977 tabSize: 1, 1978 widows: 1, 1979 zIndex: 1, 1980 zoom: 1, 1981 WebkitLineClamp: 1, 1982 // SVG-related properties 1983 fillOpacity: 1, 1984 floodOpacity: 1, 1985 stopOpacity: 1, 1986 strokeDasharray: 1, 1987 strokeDashoffset: 1, 1988 strokeMiterlimit: 1, 1989 strokeOpacity: 1, 1990 strokeWidth: 1 1991}; 1992 1993/* harmony default export */ __webpack_exports__["default"] = (unitlessKeys); 1994 1995 1996/***/ }), 1997
vendor: 1,761 bytes, lines 1998-2027
1998/***/ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js": 1999/*!***********************************************************************************************************************************!*\ 2000 !*** ./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js ***! 2001 \***********************************************************************************************************************************/ 2002/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2003 2004"use strict"; 2005__webpack_require__.r(__webpack_exports__); 2006/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2007/* harmony export */ "useInsertionEffectAlwaysWithSyncFallback": function() { return /* binding */ useInsertionEffectAlwaysWithSyncFallback; }, 2008/* harmony export */ "useInsertionEffectWithLayoutFallback": function() { return /* binding */ useInsertionEffectWithLayoutFallback; } 2009/* harmony export */ }); 2010/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 2011/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 2012 2013 2014 2015var syncFallback = function syncFallback(create) { 2016 return create(); 2017}; 2018 2019var useInsertionEffect = react__WEBPACK_IMPORTED_MODULE_0__['useInsertion' + 'Effect'] ? react__WEBPACK_IMPORTED_MODULE_0__['useInsertion' + 'Effect'] : false; 2020var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; 2021var useInsertionEffectWithLayoutFallback = useInsertionEffect || react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; 2022 2023 2024 2025 2026/***/ }), 2027
vendor: 2,558 bytes, lines 2028-2088
2028/***/ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js": 2029/*!***********************************************************************!*\ 2030 !*** ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js ***! 2031 \***********************************************************************/ 2032/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2033 2034"use strict"; 2035__webpack_require__.r(__webpack_exports__); 2036/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2037/* harmony export */ "getRegisteredStyles": function() { return /* binding */ getRegisteredStyles; }, 2038/* harmony export */ "insertStyles": function() { return /* binding */ insertStyles; }, 2039/* harmony export */ "registerStyles": function() { return /* binding */ registerStyles; } 2040/* harmony export */ }); 2041var isBrowser = "object" !== 'undefined'; 2042function getRegisteredStyles(registered, registeredStyles, classNames) { 2043 var rawClassName = ''; 2044 classNames.split(' ').forEach(function (className) { 2045 if (registered[className] !== undefined) { 2046 registeredStyles.push(registered[className] + ";"); 2047 } else { 2048 rawClassName += className + " "; 2049 } 2050 }); 2051 return rawClassName; 2052} 2053var registerStyles = function registerStyles(cache, serialized, isStringTag) { 2054 var className = cache.key + "-" + serialized.name; 2055 2056 if ( // we only need to add the styles to the registered cache if the 2057 // class name could be used further down 2058 // the tree but if it's a string tag, we know it won't 2059 // so we don't have to add it to registered cache. 2060 // this improves memory usage since we can avoid storing the whole style string 2061 (isStringTag === false || // we need to always store it if we're in compat mode and 2062 // in node since emotion-server relies on whether a style is in 2063 // the registered cache to know whether a style is global or not 2064 // also, note that this check will be dead code eliminated in the browser 2065 isBrowser === false ) && cache.registered[className] === undefined) { 2066 cache.registered[className] = serialized.styles; 2067 } 2068}; 2069var insertStyles = function insertStyles(cache, serialized, isStringTag) { 2070 registerStyles(cache, serialized, isStringTag); 2071 var className = cache.key + "-" + serialized.name; 2072 2073 if (cache.inserted[serialized.name] === undefined) { 2074 var current = serialized; 2075 2076 do { 2077 var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); 2078 2079 current = current.next; 2080 } while (current !== undefined); 2081 } 2082}; 2083 2084 2085 2086 2087/***/ }), 2088
vendor: 905 bytes, lines 2089-2116
2089/***/ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js": 2090/*!*****************************************************************************!*\ 2091 !*** ./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js ***! 2092 \*****************************************************************************/ 2093/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2094 2095"use strict"; 2096__webpack_require__.r(__webpack_exports__); 2097var weakMemoize = function weakMemoize(func) { 2098 // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps 2099 var cache = new WeakMap(); 2100 return function (arg) { 2101 if (cache.has(arg)) { 2102 // $FlowFixMe 2103 return cache.get(arg); 2104 } 2105 2106 var ret = func(arg); 2107 cache.set(arg, ret); 2108 return ret; 2109 }; 2110}; 2111 2112/* harmony default export */ __webpack_exports__["default"] = (weakMemoize); 2113 2114 2115/***/ }), 2116
2117/***/ "./includes/blocks/src/commons/loader/index.js": 2118/*!*****************************************************!*\ 2119 !*** ./includes/blocks/src/commons/loader/index.js ***! 2120 \*****************************************************/ 2121/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2122 2123"use strict"; 2124__webpack_require__.r(__webpack_exports__); 2125/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 2126/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); 2127/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); 2128/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); 2129/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); 2130/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); 2131 2132 2133 2134class WisdmLoader extends (react__WEBPACK_IMPORTED_MODULE_1___default().Component) { 2135 constructor(props) { 2136 super(props); 2137 } 2138 render() { 2139 let loadingData = ''; 2140 let show_text = ''; 2141 if (true == this.props.text) { 2142 show_text = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { 2143 className: "supporting-text" 2144 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Your report is being generated.', 'learndash-reports-by-wisdmlabs')); 2145 } 2146 loadingData = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2147 class: "wisdm-learndash-reports-chart-block" 2148 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2149 class: "wisdm-learndash-reports-revenue-from-courses graph-card-container" 2150 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2151 class: "wisdm-graph-loading" 2152 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { 2153 src: wisdm_learndash_reports_front_end_script_total_revenue_earned.plugin_asset_url + '/images/loader.svg' 2154 }), show_text))); 2155 return loadingData; 2156 } 2157} 2158/* harmony default export */ __webpack_exports__["default"] = (WisdmLoader); 2159 2160/***/ }), 2161
2162/***/ "./includes/blocks/src/dummy-quiz-reports/index.js": 2163/*!*********************************************************!*\ 2164 !*** ./includes/blocks/src/dummy-quiz-reports/index.js ***! 2165 \*********************************************************/ 2166/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2167 2168"use strict"; 2169__webpack_require__.r(__webpack_exports__); 2170/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 2171/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); 2172/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); 2173/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); 2174/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); 2175/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); 2176/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style.scss */ "./includes/blocks/src/dummy-quiz-reports/style.scss"); 2177/* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js"); 2178 2179 2180 2181 2182 2183class DummyFilters extends react__WEBPACK_IMPORTED_MODULE_1__.Component { 2184 constructor(props) { 2185 super(props); 2186 } 2187 render() { 2188 let body = ''; 2189 body = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2190 className: "quiz-report-filters-wrapper wrld-dummy-filters" 2191 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2192 className: "wrld-pro-note" 2193 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2194 className: "wrld-pro-note-content" 2195 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("b", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Note: ', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Below is the dummy representation of the Quiz Reports available in WISDM Reports PRO.', 'learndash-reports-by-wisdmlabs')))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2196 className: "select-view" 2197 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Select View', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2198 className: "quiz-report-types" 2199 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", { 2200 id: "dfr", 2201 type: "radio", 2202 name: "quiz-report-types", 2203 defaultValue: "default-quiz-reports", 2204 defaultChecked: "" 2205 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", { 2206 htmlFor: "dfr", 2207 className: "" 2208 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Default Quiz Report View', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", { 2209 id: "cqr", 2210 type: "radio", 2211 name: "quiz-report-types", 2212 defaultValue: "custom-quiz-reports", 2213 checked: true 2214 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", { 2215 htmlFor: "cqr", 2216 className: "checked" 2217 }, " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Customized Quiz Report View', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2218 className: "quiz-eporting-filter-section custom-filters" 2219 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2220 className: "quiz-reporting-custom-filters" 2221 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2222 className: "selector" 2223 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2224 className: "selector-label" 2225 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Courses', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2226 class: "select-control" 2227 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_4__["default"], { 2228 isDisabled: true, 2229 value: { 2230 value: null, 2231 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('All', 'learndash-reports-by-wisdmlabs') 2232 }, 2233 isClearable: true 2234 }
2234))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2235 className: "selector" 2236 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2237 className: "selector-label" 2238 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Groups', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2239 className: "select-control" 2240 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_4__["default"], { 2241 isDisabled: true, 2242 value: { 2243 value: null, 2244 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('All', 'learndash-reports-by-wisdmlabs') 2245 }, 2246 isClearable: true 2247 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2248 className: "selector" 2249 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2250 className: "selector-label" 2251 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Quizzes', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_4__["default"], { 2252 isDisabled: true, 2253 value: { 2254 value: null, 2255 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('All', 'learndash-reports-by-wisdmlabs') 2256 }, 2257 isClearable: true 2258 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2259 className: "filter-buttons" 2260 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { 2261 className: "filter-button-container" 2262 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", { 2263 className: "button-customize-preview" 2264 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('CUSTOMIZE REPORT', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", { 2265 className: "button-quiz-preview" 2266 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('APPLY FILTERS', 'learndash-reports-by-wisdmlabs'))))))); 2267 return body; 2268 } 2269} 2270/* harmony default export */ __webpack_exports__["default"] = (DummyFilters); 2271 2272/***/ }), 2273
2274/***/ "./includes/blocks/src/report-filters/component-date-filter.js": 2275/*!*********************************************************************!*\ 2276 !*** ./includes/blocks/src/report-filters/component-date-filter.js ***! 2277 \*********************************************************************/ 2278/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2279 2280"use strict"; 2281__webpack_require__.r(__webpack_exports__); 2282/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); 2283/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); 2284/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 2285/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); 2286/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); 2287/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); 2288/* harmony import */ var daterangepicker_daterangepicker_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! daterangepicker/daterangepicker.css */ "./node_modules/daterangepicker/daterangepicker.css"); 2289 2290 2291 2292 2293var daterangepicker = __webpack_require__(/*! daterangepicker */ "./node_modules/daterangepicker/daterangepicker.js"); 2294class ComponentDatepicker extends react__WEBPACK_IMPORTED_MODULE_2__.Component { 2295 constructor(props) { 2296 super(props); 2297 // this.state = { 2298 // start : moment(new Date(wisdm_ld_reports_common_script_data.start_date)), 2299 // end : moment(new Date(wisdm_ld_reports_common_script_data.end_date)), 2300 // } 2301 this.state = { 2302 start: moment(props.start * 1000), 2303 end: moment(props.end * 1000) 2304 }; 2305 this.durationUpdated = this.durationUpdated.bind(this); 2306 } 2307 componentDidMount() { 2308 let lbl_today = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Today', 'learndash-reports-by-wisdmlabs'); 2309 let lbl_yesterday = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Yesterday', 'learndash-reports-by-wisdmlabs'); 2310 let lbl_last_7_days = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Last 7 Days', 'learndash-reports-by-wisdmlabs'); 2311 let lbl_last_30_days = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Last 30 Days', 'learndash-reports-by-wisdmlabs'); 2312 let lbl_this_month = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('This Month', 'learndash-reports-by-wisdmlabs'); 2313 let lbl_last_month = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Last Month', 'learndash-reports-by-wisdmlabs'); 2314 let custom_ranges = {}; 2315 custom_ranges[lbl_today] = [moment(), moment()], custom_ranges[lbl_yesterday] = [moment().subtract(1, 'days'), moment().subtract(1, 'days')], custom_ranges[lbl_last_7_days] = [moment().subtract(6, 'days'), moment()], custom_ranges[lbl_last_30_days] = [moment().subtract(29, 'days'), moment()], custom_ranges[lbl_this_month] = [moment().startOf('month'), moment().endOf('month')], custom_ranges[lbl_last_month] = [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]; 2316 let locale_config = { 2317 "applyLabel": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Select', 'learndash-reports-by-wisdmlabs'), 2318 "cancelLabel": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Cancel', 'learndash-reports-by-wisdmlabs'), 2319 "fromLabel": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('From', 'learndash-reports-by-wisdmlabs'), 2320 "toLabel": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('To', 'learndash-reports-by-wisdmlabs'), 2321 "customRangeLabel": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Custom Range', 'learndash-reports-by-wisdmlabs'), 2322 "weekLabel": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('W', 'learndash-reports-by-wisdmlabs'), 2323 "daysOfWeek": [(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Su', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Mo', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Tu', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('We', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Th', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Fr', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Sa', 'learndash-reports-by-wisdmlabs')], 2324 "monthNames": [(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('January', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('February', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('March', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('April', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('May', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('June', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('July', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('August', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('September', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('October', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('November', 'learndash-reports-by-wisdmlabs'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('December', 'learndash-reports-by-wisdmlabs')] 2325 }; 2326 jQuery('.js-daterangepicker-predefined2').daterangepicker({ 2327 locale: locale_config, 2328 startDate: this.state.start, 2329 endDate: this.state.end, 2330 ranges: custom_ranges, 2331 maxDate: moment() 2332 }, durationUpdatedCallback); 2333 durationUpdatedCallback(this.state.start, this.state.end); 2334 document.addEventListener('date_updated', this.durationUpdated); 2335 const element = document.getElementsByClassName('edit-post-visual-editor__content-area'); 2336 if (element.length) { 2337 const width = element[0].clientWidth; 2338 if (width > 1199) { 2339 for (const el of element) { 2340 el.classList.add('wrld-xl'); 2341 } 2342 } else if (width > 992) { 2343 for (const el of element) { 2344 el.classList.add('wrld-lg'); 2345 } 2346 } else if (width > 768) { 2347 for (const el of element) { 2348 el.classList.add('wrld-m'); 2349 } 2350 } else if (width > 584) { 2351 for (const el of element) { 2352 el.classList.add('wrld-s'); 2353 } 2354 } else { 2355 for (const el of element) { 2356 el.classList.add('wrld-xs'); 2357 } 2358 } 2359 } 2360 } 2361 durationUpdated(event) { 2362 this.setState({ 2363 start: moment(new Date(event.detail.startDateObject)), 2364 end: moment(new Date(event.detail.endDateObject)) 2365 }); 2366 } 2367 render() { 2368 return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { 2369 class: "wisdm-learndash-reports-date-filters-container2" 2370 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { 2371 className: "js-daterangepicker-predefined2" 2372 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createElement)("span", null, this.state.start.format('MMM D, YYYY'), " - ", this.state.end.format('MMM D, YYYY')))); 2373 } 2374} 2375/* harmony default export */ __webpack_exports__["default"] = (ComponentDatepicker); 2376function durationUpdatedCallback(start, end) { 2377 jQuery('.js-daterangepicker-predefined2').on('apply.daterangepicker', function (ev, picker) { 2378 //do something, like clearing an input 2379 const durationEvent = new CustomEvent("date_updated", { 2380 "detail": { 2381 "startDate": start.unix(), 2382 "endDate": end.unix(), 2383 "startDateObject": start, 2384 "endDateObject": end 2385 } 2386 }); 2387 document.dispatchEvent(durationEvent); 2388 }); 2389} 2390document.addEventListener("DOMContentLoaded", function (event) { 2391 function durationUpdatedOldCallback(start, end) { 2392 // To trigger the Event 2393 jQuery('.js-daterangepicker-predefined2 span').html(start.format('MMM D, YYYY') + ' - ' + end.format('MMM D, YYYY')); 2394 jQuery('.js-daterangepicker-predefined2').on('apply.daterangepicker', function (ev, picker) { 2395 const durationEvent = new CustomEvent("date_updated", { 2396 "detail": { 2397 "startDate": start.unix(), 2398 "endDate": end.unix(), 2399 "startDateObject": start, 2400 "endDateObject": end 2401 } 2402 }); 2403 document.dispatchEvent(durationEvent); 2404 }); 2405 } 2406 let elem = document.getElementsByClassName('export-date-range'); 2407 if (elem.length > 0) { 2408 ReactDOM.render(react__WEBPACK_IMPORTED_MODULE_2___default().createElement(ComponentDatepicker), elem[0]); 2409 } else { 2410 //Backword compatibility with version < 1.0.3 2411 var start = moment(new Date(wisdm_ld_reports_common_script_data.start_date)); 2412 var end = moment(new Date(wisdm_ld_reports_common_script_data.end_date)); 2413 // jQuery('.report-title > span').text(start.format('MMM D, YYYY') + ' - ' + end.format('MMM D, YYYY')); 2414 // To trigger the Event 2415 2416 jQuery('.js-daterangepicker-predefined2').daterangepicker({ 2417 startDate: start, 2418 endDate: end, 2419 ranges: { 2420 'Today': [moment(), moment()], 2421 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], 2422 'Last 7 Days': [moment().subtract(6, 'days'), moment()], 2423 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 2424 'This Month': [moment().startOf('month'), moment().endOf('month')], 2425 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] 2426 }, 2427 maxDate: moment() 2428 }, durationUpdatedOldCallback); 2429 durationUpdatedOldCallback(start, end); 2430 } 2431}); 2432 2433/***/ }), 2434
2435/***/ "./includes/blocks/src/report-filters/index-report-filters.js": 2436/*!********************************************************************!*\ 2437 !*** ./includes/blocks/src/report-filters/index-report-filters.js ***! 2438 \********************************************************************/ 2439/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 2440 2441"use strict"; 2442__webpack_require__.r(__webpack_exports__); 2443/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.scss */ "./includes/blocks/src/report-filters/index.scss"); 2444/* harmony import */ var react_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-select */ "./node_modules/react-select/dist/react-select.esm.js"); 2445/* harmony import */ var react_select_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-select/async */ "./node_modules/react-select/async/dist/react-select-async.esm.js"); 2446/* harmony import */ var react_tabs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-tabs */ "./node_modules/react-tabs/esm/index.js"); 2447/* harmony import */ var react_tabs_style_react_tabs_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-tabs/style/react-tabs.css */ "./node_modules/react-tabs/style/react-tabs.css"); 2448/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); 2449/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); 2450/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); 2451/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); 2452/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react"); 2453/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__); 2454/* harmony import */ var _commons_loader_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../commons/loader/index.js */ "./includes/blocks/src/commons/loader/index.js"); 2455/* harmony import */ var _dummy_quiz_reports_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../dummy-quiz-reports/index.js */ "./includes/blocks/src/dummy-quiz-reports/index.js"); 2456/* harmony import */ var simple_react_modal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! simple-react-modal */ "./node_modules/simple-react-modal/build/simple-modal.js"); 2457/* harmony import */ var _component_date_filter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./component-date-filter.js */ "./includes/blocks/src/report-filters/component-date-filter.js"); 2458 2459 2460 2461var moment = __webpack_require__(/*! moment */ "moment"); 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472window.ld_api_settings = { 2473 'sfwd-courses': 'sfwd-courses', 2474 'sfwd-lessons': 'sfwd-lessons', 2475 'sfwd-topic': 'sfwd-topic', 2476 'sfwd-quiz': 'sfwd-quiz', 2477 'sfwd-question': 'sfwd-question', 2478 'users': 'users', 2479 'groups': 'groups' 2480}; 2481class Checkbox extends (react__WEBPACK_IMPORTED_MODULE_6___default().Component) { 2482 constructor(props) { 2483 super(props); 2484 this.state = { 2485 isChecked: props.isChecked == "yes" ? true : false, 2486 name: props.name, 2487 label: props.label, 2488 value: 'yes', 2489 always_checked: props.always_checked, 2490 disabled: props.always_checked == "yes" ? 'disabled' : '' 2491 }; 2492 } 2493 toggleChange = () => { 2494 if (this.state.always_checked != "yes") { 2495 this.setState({ 2496 isChecked: !this.state.isChecked 2497 }); 2498 } 2499 }; 2500 render() { 2501 return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 2502 class: "checkbox-wrapper" 2503 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("input", { 2504 type: "checkbox", 2505 name: this.state.name, 2506 value: this.state.value, 2507 defaultChecked: this.state.isChecked, 2508 onChange: this.toggleChange, 2509 disabled: this.state.disabled 2510 }), this.state.label)); 2511 } 2512} 2513class QuizFilters extends react__WEBPACK_IMPORTED_MODULE_6__.Component { 2514 constructor(props) { 2515 super(props); 2516 let selected_course = { 2517 value: -1, 2518 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2519 }; 2520 let selected_group = { 2521 value: -1, 2522 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2523 }; 2524 let selected_quiz = { 2525 value: -1, 2526 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2527 }; 2528 let start = moment(new Date(wisdm_ld_reports_common_script_data.start_date)).unix(); 2529 let end = moment(new Date(wisdm_ld_reports_common_script_data.end_date)).unix(); 2530 this.state = { 2531 isLoaded: false, 2532 error: null, 2533 report_type_selected: 'default-quiz-reports', 2534 courses_disabled: '', 2535 groups_disabled: false, 2536 quizes_disabled: false, 2537 show_quiz_filter_modal: false, 2538 show_bulk_export_modal: false, 2539 show_bulk_attempt_progress: 'wrld-hidden', 2540 show_bulk_learner_progress: 'wrld-hidden', 2541 show_bulk_attempt_download: 'wrld-hidden', 2542 show_bulk_learner_download: 'wrld-hidden', 2543 custom_report_fields: [], 2544 selected_courses: selected_course, 2545 selected_groups: selected_group, 2546 selected_quizes: selected_quiz, 2547 selectedElementsInDefaultFilter: null, 2548 start_date: moment(new Date(wisdm_ld_reports_common_script_data.start_date)).unix(), 2549 end_date: moment(new Date(wisdm_ld_reports_common_script_data.end_date)).unix(), 2550 export_start_date: start, 2551 export_end_date: end, 2552 selectedValue: report_preferences.settings, 2553 selectedFields: report_preferences.settings, 2554 selectedCourseTitle: report_preferences.selected_course_title, 2555 selectedGroupTitle: report_preferences.selected_group_title, 2556 selectedQuizTitle: report_preferences.selected_quiz_title, 2557 disabled_button: true, 2558 isPro: wisdm_ld_reports_common_script_data.is_pro_version_active 2559 }; 2560 this.durationUpdated = this.durationUpdated.bind(this); 2561 this.dateUpdated = this.dateUpdated.bind(this); 2562 this.onQuizReportViewChange = this.onQuizReportViewChange.bind(this); 2563 this.handleQuizFilterDefaultSearch = this.handleQuizFilterDefaultSearch.bind(this); 2564 this.openCustomizePreviewModal = this.openCustomizePreviewModal.bind(this); 2565 this.openBulkExportModal = this.openBulkExportModal.bind(this); 2566 this.openBulkProgressModal = this.openBulkProgressModal.bind(this); 2567 this.closeCustomizePreviewModal = this.closeCustomizePreviewModal.bind(this); 2568 this.closeBulkExportModal = this.closeBulkExportModal.bind(this); 2569 // this.closeBulkProgressModal = this.closeBulkProgressModal.bind(this); 2570 this.handleQuizSearch = this.handleQuizSearch.bind(this); 2571 this.handleCourseSearch = this.handleCourseSearch.bind(this); 2572 this.handleGroupSearch = this.handleGroupSearch.bind(this); 2573 this.handleDefaultQuizFilterChange = this.handleDefaultQuizFilterChange.bind(this); 2574 this.handleQuizCourseChange = this.handleQuizCourseChange.bind(this); 2575 this.handleQuizGroupChange = this.handleQuizGroupChange.bind(this); 2576 this.handleQuizChange = this.handleQuizChange.bind(this); 2577 this.applyQuizFilters = this.applyQuizFilters.bind(this); 2578 this.applyExportFilters = this.applyExportFilters.bind(this); 2579 this.previewCustomReport = this.previewCustomReport.bind(this); 2580 this.previewReport = this.previewReport.bind(this); 2581 this.defaultFiltersLoaded = this.defaultFiltersLoaded.bind(this); 2582 var localized_data_url = '/rp/v1/report-filters-data'; 2583 if (wisdm_ld_reports_common_script_data.wpml_lang) { 2584 localized_data_url += '/?wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 2585 } 2586 wp.apiFetch({ 2587 path: localized_data_url //Replace with the correct API 2588 }).then(response => { 2589 window.wisdm_learndash_reports_front_end_script_report_filters = response.wisdm_learndash_reports_front_end_script_report_filters; 2590 this.defaultFiltersLoaded(); 2591 }); 2592 } 2593 defaultFiltersLoaded() { 2594 let quiz_section_disabled = 'disabled'; 2595 let report_type_selected = 'default-quiz-reports'; 2596 let selected_course = { 2597 value: -1, 2598 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2599 }; 2600 let selected_group = { 2601 value: -1, 2602 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2603 }; 2604 let selected_quiz = { 2605 value: -1, 2606 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2607 }; 2608 let start = moment(new Date(wisdm_ld_reports_common_script_data.start_date)).unix(); 2609 let end = moment(new Date(wisdm_ld_reports_common_script_data.end_date)).unix(); 2610 if (false != wisdm_ld_reports_common_script_data.is_pro_version_active) { 2611 quiz_section_disabled = 'enabled'; 2612 }
2613 if (undefined != wisdm_learndash_reports_front_end_script_report_filters.qre_request_params && wisdm_learndash_reports_front_end_script_report_filters.qre_request_params.report == 'custom') { 2614 report_type_selected = 'custom-quiz-reports'; 2615 } 2616 let userType = wisdmLdReportsGetUserType(); 2617 let groups_disabled = false; 2618 let quizes_disabled = false; 2619 let categories_disabled = false; 2620 let courses = getCoursesByGroups(wisdm_learndash_reports_front_end_script_report_filters.courses); 2621 let quizes = getQuizesByCoursesAccessible(courses, wisdm_learndash_reports_front_end_script_report_filters.quizes); 2622 this.default_quizes = quizes; 2623 this.default_groups = wisdm_learndash_reports_front_end_script_report_filters.course_groups; 2624 if (undefined != wisdm_learndash_reports_front_end_script_report_filters.qre_filters) { 2625 let qre_filters = wisdm_learndash_reports_front_end_script_report_filters.qre_filters; 2626 let selected_course_id = undefined != qre_filters.course_filter && qre_filters.course_filter > 0 ? parseInt(qre_filters.course_filter) : -1; 2627 selected_course = getSelectionByValueId(selected_course_id, courses); 2628 let selected_group_id = undefined != qre_filters.group_filter && qre_filters.group_filter > 0 ? parseInt(qre_filters.group_filter) : -1; 2629 selected_group = getSelectionByValueId(selected_group_id, this.default_groups); 2630 let selected_quiz_id = undefined != qre_filters.quiz_filter && qre_filters.quiz_filter > 0 ? parseInt(qre_filters.quiz_filter) : -1; 2631 selected_quiz = getSelectionByValueId(selected_quiz_id, this.default_quizes); 2632 start = undefined != qre_filters.start_date ? parseInt(qre_filters.start_date) : start; 2633 end = undefined != qre_filters.end_date ? parseInt(qre_filters.end_date) : end; 2634 } 2635 if ('administrator' == userType) {} else if ('group_leader' == userType) { 2636 categories_disabled = true; 2637 groups_disabled = false; 2638 } 2639 this.setState({ 2640 report_type_selected: report_type_selected, 2641 groups_disabled: groups_disabled, 2642 quizes_disabled: quizes_disabled, 2643 categories: wisdm_learndash_reports_front_end_script_report_filters.course_categories, 2644 courses: courses, 2645 groups: this.default_groups, 2646 quizes: this.default_quizes, 2647 selected_courses: selected_course, 2648 selected_groups: selected_group, 2649 selected_quizes: selected_quiz, 2650 export_start_date: start, 2651 export_end_date: end 2652 }); 2653 } 2654 componentDidMount() { 2655 document.addEventListener('duration_updated', this.durationUpdated); 2656 document.addEventListener('date_updated', this.dateUpdated); 2657 // document.addEventListener('wrld-default-filters-loaded', this.defaultFiltersLoaded); 2658 2659 if (this.state.report_type_selected == 'default-quiz-reports') { 2660 wisdm_reports_change_block_visibility('.wp-block-wisdm-learndash-reports-time-spent-on-a-course', false); 2661 wisdm_reports_change_block_visibility('.wp-block-wisdm-learndash-reports-course-completion-rate', false); 2662 wisdm_reports_change_block_visibility('.wp-block-wisdm-learndash-reports-quiz-completion-rate-per-course', false); 2663 wisdm_reports_change_block_visibility('.wp-block-wisdm-learndash-reports-quiz-completion-time-per-course', false); 2664 wisdm_reports_change_block_visibility('.wp-block-wisdm-learndash-reports-learner-pass-fail-rate-per-course', false); 2665 wisdm_reports_change_block_visibility('.wp-block-wisdm-learndash-reports-average-quiz-attempts', false); 2666 } 2667 } 2668 componentDidUpdate() { 2669 jQuery('.export-attempt-results .dashicons-info-outline, .export-attempt-learner-answers .dashicons-info-outline').hover(function () { 2670 var $div = jQuery('<div/>').addClass('wdm-tooltip').css({ 2671 position: 'absolute', 2672 zIndex: 999, 2673 display: 'none' 2674 }).appendTo(jQuery(this)); 2675 $div.text(jQuery(this).attr('data-title')); 2676 var $font = jQuery(this).parents('.report-label').css('font-family'); 2677 $div.css('font-family', $font); 2678 $div.show(); 2679 }, function () { 2680 jQuery(this).find(".wdm-tooltip").remove(); 2681 }); 2682 } 2683 durationUpdated(event) { 2684 this.setState({ 2685 start_date: event.detail.startDate, 2686 end_date: event.detail.endDate 2687 }); 2688 } 2689 dateUpdated(event) { 2690 this.setState({ 2691 export_start_date: event.detail.startDate, 2692 export_end_date: event.detail.endDate 2693 }); 2694 // jQuery('.apply-bulk-filters').removeAttr('disabled'); 2695 this.setState({
2696 disabled_button: false 2697 }); 2698 /*const defaultEntryCounts = new CustomEvent("wrld-fetch-export-data-count", { 2699 "detail": { 2700 'start_date':this.state.export_start_date, 2701 'end_date':this.state.export_end_date, 2702 'selected_courses': this.state.selected_courses.value, 2703 'selected_groups': this.state.selected_groups.value, 2704 'selected_quizes': this.state.selected_quizes.value, 2705 }}); 2706 document.dispatchEvent(defaultEntryCounts);*/ 2707 } 2708 2709 handleQuizSearch = (inputString, callback) => { 2710 // perform a request 2711 let callback_path = '/ldlms/v1/' + ld_api_settings['sfwd-quiz'] + '/'; 2712 let requestResults = []; 2713 if (2 < inputString.length) { 2714 callback_path = callback_path + '?search=' + inputString; 2715 if (wisdm_ld_reports_common_script_data.wpml_lang) { 2716 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 2717 } 2718 wp.apiFetch({ 2719 path: callback_path //Replace with the correct API 2720 }).then(response => { 2721 if (false != response && response.length > 0) { 2722 response.forEach(element => { 2723 requestResults.push({ 2724 value: element.id, 2725 label: element.title.rendered 2726 }); 2727 }); 2728 } 2729 callback(requestResults); 2730 }).catch(error => { 2731 callback(requestResults); 2732 }); 2733 } 2734 }; 2735 handleQuizChange(selected_quizes) { 2736 if (null == selected_quizes) { 2737 this.setState({ 2738 selected_quizes: { 2739 value: -1 2740 }, 2741 selectedValue: { 2742 quiz_filter: -1 2743 }, 2744 selectedQuizTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2745 }); 2746 } else { 2747 this.setState({ 2748 selected_quizes: selected_quizes, 2749 selectedValue: { 2750 quiz_filter: selected_quizes 2751 }, 2752 selectedQuizTitle: selected_quizes.label 2753 }); 2754 } 2755 // jQuery('.apply-bulk-filters').removeAttr('disabled'); 2756 this.setState({ 2757 disabled_button: false 2758 }); 2759 /*const defaultEntryCounts = new CustomEvent("wrld-fetch-export-data-count", { 2760 "detail": { 2761 'start_date':this.state.export_start_date, 2762 'end_date':this.state.export_end_date, 2763 'selected_courses': this.state.selected_courses.value, 2764 'selected_groups': this.state.selected_groups.value, 2765 'selected_quizes': this.state.selected_quizes.value, 2766 }}); 2767 document.dispatchEvent(defaultEntryCounts);*/ 2768 } 2769 2770 handleQuizFilterDefaultSearch(inputString, callback) { 2771 // perform a request 2772 let callback_path = '/rp/v1/qre-live-search/?search_term='; 2773 let requestResults = []; 2774 if (2 < inputString.length) { 2775 callback_path = callback_path + inputString; 2776 if (wisdm_ld_reports_common_script_data.wpml_lang) { 2777 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 2778 } 2779 wp.apiFetch({ 2780 path: callback_path //Replace with the correct API 2781 }).then(response => { 2782 let userResults = []; 2783 let quizResults = []; 2784 let courseResults = []; 2785 if (false != response && response.search_results.length > 0) { 2786 response.search_results.forEach(element => { 2787 if ('user' == element.type) { 2788 userResults.push({ 2789 value: element.ID, 2790 label: element.title, 2791 type: element.type 2792 }); 2793 } else if ('quiz' == element.type) { 2794 quizResults.push({ 2795 value: element.ID, 2796 label: element.title, 2797 type: element.type 2798 }); 2799 } else if ('post' == element.type) { 2800 courseResults.push({ 2801 value: element.ID, 2802 label: element.title, 2803 type: element.type 2804 }); 2805 } 2806 }); 2807 requestResults = [{ 2808 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Users', 'learndash-reports-by-wisdmlabs'), 2809 options: userResults 2810 }, { 2811 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Quizzes', 'learndash-reports-by-wisdmlabs'), 2812 options: quizResults 2813 }, { 2814 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Courses', 'learndash-reports-by-wisdmlabs'), 2815 options: courseResults 2816 }]; 2817 } 2818 callback(requestResults); 2819 }).catch(error => { 2820 callback(requestResults); 2821 }); 2822 } else { 2823 callback(requestResults); 2824 } 2825 } 2826 handleDefaultQuizFilterChange(selectedElements) { 2827 this.setState({ 2828 selectedElementsInDefaultFilter: selectedElements 2829 }); 2830 } 2831 onQuizReportViewChange(event) { 2832 this.setState({ 2833 report_type_selected: event.target.value 2834 });
2835 let custom_report_type = ''; 2836 if ('default-quiz-reports' == event.target.value) { 2837 custom_report_type = ''; 2838 } else if ('custom-quiz-reports' == event.target.value) { 2839 custom_report_type = 'custom'; 2840 } 2841 document.dispatchEvent(new CustomEvent("wisdm-ld-custom-report-type-select", { 2842 "detail": { 2843 'report_selector': custom_report_type 2844 } 2845 })); 2846 } 2847 handleQuizCourseChange(selected_course) { 2848 if (null == selected_course) { 2849 this.setState({ 2850 selected_courses: { 2851 value: -1 2852 }, 2853 selectedValue: { 2854 course_filter: -1 2855 }, 2856 selectedCourseTitle: 'All', 2857 quizes: this.default_quizes, 2858 groups: this.default_groups 2859 }); 2860 } else { 2861 let course_quizes = this.getCourseQuizes(selected_course.value, this.default_quizes); 2862 let course_groups = this.getCourseGroups(selected_course.value, this.default_groups); 2863 this.setState({ 2864 selected_courses: selected_course, 2865 selectedValue: { 2866 course_filter: selected_course 2867 }, 2868 selectedCourseTitle: selected_course.label, 2869 quizes: course_quizes, 2870 selectedValue: { 2871 quiz_filter: -1 2872 }, 2873 selectedQuizTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 2874 groups: course_groups 2875 }); 2876 } 2877 this.setState({ 2878 disabled_button: false 2879 }); 2880 // jQuery('.apply-bulk-filters').removeAttr('disabled'); 2881 /*const defaultEntryCounts = new CustomEvent("wrld-fetch-export-data-count", { 2882 "detail": { 2883 'start_date':this.state.export_start_date, 2884 'end_date':this.state.export_end_date, 2885 'selected_courses': this.state.selected_courses.value, 2886 'selected_groups': this.state.selected_groups.value, 2887 'selected_quizes': this.state.selected_quizes.value, 2888 }}); 2889 document.dispatchEvent(defaultEntryCounts);*/ 2890 } 2891 2892 getCourseQuizes(course_id, quiz_list) { 2893 let course_quizes = []; 2894 quiz_list.forEach(function (quiz) { 2895 if (quiz.course_id == course_id) { 2896 course_quizes.push(quiz); 2897 } 2898 }); 2899 return course_quizes; 2900 } 2901 getCourseGroups(course_id) { 2902 let group_list = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; 2903 let course_groups = []; 2904 if (group_list.length > 0) { 2905 group_list.forEach(function (group) { 2906 if (!('courses_enrolled' in group)) { 2907 return; 2908 } 2909 if (group.courses_enrolled.includes(course_id)) { 2910 course_groups.push(group); 2911 } 2912 }); 2913 } 2914 return course_groups; 2915 } 2916 handleQuizGroupChange(groups_selected) { 2917 if (null == groups_selected) { 2918 this.setState({ 2919 selected_groups: { 2920 value: -1, 2921 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 2922 }, 2923 selectedValue: { 2924 group_filter: -1 2925 } 2926 }); 2927 } else { 2928 this.setState({ 2929 selected_groups: groups_selected, 2930 selectedValue: { 2931 group_filter: groups_selected 2932 }, 2933 selectedGroupTitle: groups_selected.label 2934 }); 2935 } 2936 this.setState({ 2937 disabled_button: false 2938 }); 2939 2940 // jQuery('.apply-bulk-filters').removeAttr('disabled'); 2941 /*const defaultEntryCounts = new CustomEvent("wrld-fetch-export-data-count", { 2942 "detail": { 2943 'start_date':this.state.export_start_date, 2944 'end_date':this.state.export_end_date, 2945 'selected_courses': this.state.selected_courses.value, 2946 'selected_groups': this.state.selected_groups.value, 2947 'selected_quizes': this.state.selected_quizes.value, 2948 }}); 2949 document.dispatchEvent(defaultEntryCounts);*/ 2950 } 2951 2952 applyExportFilters() { 2953 this.setState({ 2954 disabled_button: true, 2955 show_bulk_attempt_download: 'wrld-hidden', 2956 show_bulk_learner_download: 'wrld-hidden' 2957 }); 2958 jQuery('.report-export-buttons button').removeAttr('disabled'); 2959 jQuery('.bulk-export-download').addClass('wrld-hidden').html(''); 2960 // event.currentTarget.disabled = true; 2961 const defaultEntryCounts = new CustomEvent("wrld-fetch-export-data-count", { 2962 "detail": { 2963 'start_date': this.state.export_start_date, 2964 'end_date': this.state.export_end_date, 2965 'selected_courses': this.state.selected_courses.value, 2966 'selected_groups': this.state.selected_groups.value, 2967 'selected_quizes': this.state.selected_quizes.value 2968 } 2969 }); 2970 document.dispatchEvent(defaultEntryCounts); 2971 } 2972 handleCourseSearch(inputString, callback) { 2973 // perform a request
2974 let callback_path = '/ldlms/v1/sfwd-courses/?search='; 2975 let requestResults = []; 2976 if (2 < inputString.length) { 2977 callback_path = callback_path + inputString; 2978 wp.apiFetch({ 2979 path: callback_path //Replace with the correct API 2980 }).then(response => { 2981 if (false != response && response.length > 0) { 2982 response.forEach(element => { 2983 requestResults.push({ 2984 value: element.id, 2985 label: element.title.rendered 2986 }); 2987 }); 2988 } 2989 callback(requestResults); 2990 }).catch(error => { 2991 callback(requestResults); 2992 }); 2993 } 2994 } 2995 handleGroupSearch(inputString, callback) { 2996 // perform a request 2997 let callback_path = '/ldlms/v1/groups/?search='; 2998 let requestResults = []; 2999 if (2 < inputString.length) { 3000 callback_path = callback_path + inputString; 3001 wp.apiFetch({ 3002 path: callback_path //Replace with the correct API 3003 }).then(response => { 3004 if (false != response && response.length > 0) { 3005 response.forEach(element => { 3006 requestResults.push({ 3007 value: element.id, 3008 label: element.title.rendered 3009 }); 3010 }); 3011 } 3012 callback(requestResults); 3013 }).catch(error => { 3014 callback(requestResults); 3015 }); 3016 } 3017 } 3018 handleUserSearch(inputString, callback) { 3019 // perform a request 3020 let requestResults = []; 3021 if (3 > inputString.length) { 3022 return callback(requestResults); 3023 } 3024 if ('group_leader' == wisdmLdReportsGetUserType()) { 3025 let groupUsers = wrldGetGroupAdminUsers(); 3026 groupUsers.forEach(user => { 3027 if (user.display_name.toLowerCase().includes(inputString.toLowerCase()) || user.user_nicename.toLowerCase().includes(inputString.toLowerCase())) { 3028 requestResults.push({ 3029 value: user.id, 3030 label: user.display_name 3031 }); 3032 } 3033 }); 3034 callback(requestResults); 3035 } else { 3036 let callback_path = '/wp/v2/users/?search='; 3037 callback_path = callback_path + inputString + '&reports=1'; 3038 wp.apiFetch({ 3039 path: callback_path //Replace with the correct API 3040 }).then(response => { 3041 if (false != response && response.length > 0) { 3042 response.forEach(element => { 3043 requestResults.push({ 3044 value: element.id, 3045 label: element.name 3046 }); 3047 }); 3048 } 3049 callback(requestResults); 3050 }).catch(error => { 3051 callback(requestResults); 3052 }); 3053 } 3054 } 3055 openCustomizePreviewModal() { 3056 document.body.classList.add('wrld-open'); 3057 this.setState({ 3058 show_quiz_filter_modal: true 3059 }); 3060 } 3061 closeCustomizePreviewModal() { 3062 document.body.classList.remove('wrld-open'); 3063 this.setState({ 3064 show_quiz_filter_modal: false 3065 }); 3066 } 3067 openBulkExportModal() { 3068 document.body.classList.add('wrld-open'); 3069 this.setState({ 3070 show_bulk_export_modal: true 3071 }); 3072 const defaultEntryCounts = new CustomEvent("wrld-fetch-export-data-count", { 3073 "detail": { 3074 'start_date': this.state.export_start_date, 3075 'end_date': this.state.export_end_date, 3076 'selected_courses': this.state.selected_courses.value, 3077 'selected_groups': this.state.selected_groups.value, 3078 'selected_quizes': this.state.selected_quizes.value 3079 } 3080 }); 3081 document.dispatchEvent(defaultEntryCounts); 3082 // setTimeout(function(){ 3083 // console.log(jQuery('div[data-modal="true"] > div')); 3084 // jQuery('div[data-modal="true"] > div').css({ 3085 // 'padding-top': '0px !important', 3086 // 'padding-right': '0px !important', 3087 // 'padding-left': '0px !important' 3088 // }); 3089 // }, 8200); 3090 } 3091 3092 closeBulkExportModal() { 3093 document.body.classList.remove('wrld-open'); 3094 this.setState({ 3095 show_bulk_export_modal: false, 3096 show_bulk_attempt_progress: 'wrld-hidden', 3097 show_bulk_learner_progress: 'wrld-hidden' 3098 }); 3099 } 3100 openBulkProgressModal(type) { 3101 // document.body.classList.add('wrld-open'); 3102 if ('attempt' === type) { 3103 this.setState({ 3104 show_bulk_attempt_progress: '' 3105 }); 3106 } else { 3107 this.setState({ 3108 show_bulk_learner_progress: '' 3109 }); 3110 } 3111 } 3112 closeBulkProgressModal() { 3113 document.body.classList.remove('wrld-open'); 3114 this.setState({ 3115 show_bulk_progress_modal: false 3116 }); 3117 } 3118 applyQuizFilters() { 3119 if (null != this.state.selectedElementsInDefaultFilter) { 3120 let selecion_label = this.state.selectedElementsInDefaultFilter.label; 3121 let selection_type = this.state.selectedElementsInDefaultFilter.type; 3122 let selection_id = this.state.selectedElementsInDefaultFilter.value; 3123 const defaultQuizReport = new CustomEvent("wisdm-ld-reports-default-quiz-report-filters-applied", { 3124 "detail": { 3125 'start_date': this.state.start_date, 3126 'end_date': this.state.end_date, 3127 'selection_label': selecion_label, 3128 'selection_type': selection_type, 3129 'selection_id': selection_id 3130 } 3131 }); 3132 document.dispatchEvent(defaultQuizReport); 3133 } 3134 } 3135 previewReport() { 3136 // const defaultCustomQuizReport = new CustomEvent("wisdm-ld-reports-default-custom-quiz-report-filters-applied", { 3137 // "detail": { 3138 // 'start_date':this.state.start_date, 3139 // 'end_date':this.state.end_date, 3140 // 'selected_courses': this.state.selected_courses.value, 3141 // 'selected_groups': this.state.selected_groups.value, 3142 // 'selected_quizes': this.state.selected_quizes.value, 3143 // }}); 3144 // document.dispatchEvent(defaultCustomQuizReport); 3145 this.previewCustomReport(); 3146 } 3147 previewCustomReport() { 3148 let fields_selected = {};
3149 let course_completion_dates_from = jQuery('#course-completion-from-date').val(); 3150 let course_completion_dates_to = jQuery('#course-completion-to-date').val(); 3151 jQuery('.quiz-filter-modal').find('input[type=checkbox]').each(function (ind, el) { 3152 if (jQuery(el).is(':checked')) { 3153 let index = jQuery(el).attr('name'); 3154 fields_selected[index] = jQuery(el).val(); 3155 } 3156 }); 3157 jQuery('.quiz-filter-modal').find('select, input[type=text]').each(function (ind, el) { 3158 let index = jQuery(el).attr('name'); 3159 fields_selected[index] = jQuery(el).val(); 3160 }); 3161 fields_selected['course_filter'] = this.state.selected_courses.value; 3162 fields_selected['group_filter'] = this.state.selected_groups.value; 3163 fields_selected['quiz_filter'] = this.state.selected_quizes.value; 3164 if (jQuery('.quiz-filter-modal').length === 0) { 3165 fields_selected['select_event'] = 1; 3166 let field_values = this.state.selectedFields; 3167 field_values.course_filter = this.state.selected_courses.value; 3168 field_values.group_filter = this.state.selected_groups.value; 3169 field_values.quiz_filter = this.state.selected_quizes.value; 3170 this.setState({ 3171 selectedFields: field_values 3172 }); 3173 } else { 3174 this.setState({ 3175 selectedFields: fields_selected 3176 }); 3177 } 3178 3179 // fields_selected['category_filter'] = this.state.selected_categories.value; 3180 3181 const customQuizReport = new CustomEvent("wisdm-ld-reports-custom-quiz-report-filters-applied", { 3182 "detail": { 3183 'start_date': this.state.export_start_date, 3184 'end_date': this.state.export_end_date, 3185 'course_completion_dates_from': course_completion_dates_from, 3186 'course_completion_dates_to': course_completion_dates_to, 3187 'fields_selected': fields_selected, 3188 'selected_courses': this.state.selected_courses.value, 3189 'selected_groups': this.state.selected_groups.value, 3190 'selected_quizes': this.state.selected_quizes.value 3191 } 3192 }); 3193 document.dispatchEvent(customQuizReport); 3194 this.closeCustomizePreviewModal(); 3195 } 3196 exportAttemptCSV(event) { 3197 jQuery(event.target).attr('disabled', 'disabled'); 3198 this.exportAttemptResults('csv'); 3199 } 3200 exportAttemptXLSX(event) { 3201 jQuery(event.target).attr('disabled', 'disabled'); 3202 this.exportAttemptResults('xlsx'); 3203 } 3204 exportLearnerCSV(event) { 3205 jQuery(event.target).attr('disabled', 'disabled'); 3206 this.exportLearnerResults('csv'); 3207 } 3208 exportLearnerXLSX(event) { 3209 jQuery(event.target).attr('disabled', 'disabled'); 3210 this.exportLearnerResults('xlsx'); 3211 } 3212 exportAttemptResults(type) { 3213 const attemptQuizReport = new CustomEvent("wrld-bulk-export-attempt-results", { 3214 "detail": { 3215 'start_date': this.state.export_start_date, 3216 'end_date': this.state.export_end_date, 3217 'selected_courses': this.state.selected_courses.value, 3218 'selected_groups': this.state.selected_groups.value, 3219 'selected_quizes': this.state.selected_quizes.value, 3220 'type': type 3221 } 3222 }); 3223 document.dispatchEvent(attemptQuizReport); 3224 this.openBulkProgressModal('attempt'); 3225 } 3226 exportLearnerResults(type) { 3227 const learnerQuizReport = new CustomEvent("wrld-bulk-export-learner-results", { 3228 "detail": { 3229 'start_date': this.state.export_start_date, 3230 'end_date': this.state.export_end_date, 3231 'selected_courses': this.state.selected_courses.value, 3232 'selected_groups': this.state.selected_groups.value, 3233 'selected_quizes': this.state.selected_quizes.value, 3234 'type': type 3235 } 3236 }); 3237 document.dispatchEvent(learnerQuizReport); 3238 this.openBulkProgressModal('learner'); 3239 } 3240 render() { 3241 let body = ''; 3242 let customFilterDropDowns = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3243 class: "quiz-reporting-custom-filters" 3244 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3245 class: "selector" 3246 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3247 class: "selector-label" 3248 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Courses', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3249 class: "select-control" 3250 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 3251 isDisabled: this.state.courses_disabled 3252 // loadOptions={this.handleCourseSearch} 3253 , 3254 options: this.state.courses, 3255 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 3256 onChange: this.handleQuizCourseChange, 3257 isClearable: "true", 3258 value: { 3259 value: this.state.selectedValue.course_filter, 3260 label: this.state.selectedCourseTitle 3261 } 3262 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3263 class: "selector" 3264 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3265 class: "selector-label" 3266 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Groups', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3267 class: "select-control" 3268 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 3269 onChange: this.handleQuizGroupChange, 3270 options: this.state.groups, 3271 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 3272 isClearable: "true", 3273 value: this.state.selected_groups 3274 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3275 class: "selector" 3276 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3277 class: "selector-label" 3278 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Quizzes', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3279 class: "select-control" 3280 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"] 3281 // loadOptions={this.handleQuizSearch} 3282 , { 3283 onChange: this.handleQuizChange, 3284 options: this.state.quizes, 3285 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 3286 isClearable: "true", 3287 value: { 3288 value: this.state.selectedValue.quiz_filter, 3289 label: this.state.selectedQuizTitle 3290 } 3291 })))); 3292 //Default Filers 3293 let filterSection = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3294 class: "quiz-eporting-filter-section default-filters" 3295 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3296 class: "selector search-input" 3297 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3298 class: "selector-label" 3299 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Search', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3300 class: "select-control" 3301 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select_async__WEBPACK_IMPORTED_MODULE_1__["default"], { 3302 components: { 3303 DropdownIndicator: () => null, 3304 IndicatorSeparator: () => null, 3305 NoOptionsMessage: element => { 3306 return element.selectProps.inputValue.length > 2 ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' No learners/quizzes/courses found for the search string \'', 'learndash-reports-by-wisdmlabs') + element.selectProps.inputValue + '\'' : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' Type 3 or more letters to
3306search', 'learndash-reports-by-wisdmlabs'); 3307 } 3308 }, 3309 closeMenuOnSelect: false, 3310 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Search any user, quiz or course', 'learndash-reports-by-wisdmlabs'), 3311 loadOptions: this.handleQuizFilterDefaultSearch, 3312 onChange: this.handleDefaultQuizFilterChange, 3313 isClearable: "true" 3314 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3315 class: "selector button-filter" 3316 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3317 class: "apply-filters" 3318 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3319 onClick: this.applyQuizFilters 3320 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Show Reports', 'learndash-reports-by-wisdmlabs')))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(simple_react_modal__WEBPACK_IMPORTED_MODULE_9__["default"], { 3321 show: this.state.show_bulk_export_modal, 3322 onClose: this.closeBulkExportModal, 3323 containerStyle: { 3324 width: '50%' 3325 }, 3326 className: "bulk_export_modal" 3327 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3328 class: "close-modal dashicons dashicons-no", 3329 onClick: this.closeBulkExportModal 3330 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3331 className: "header bulk-export-header wrld-hidden" 3332 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3333 className: "filter-section" 3334 }, customFilterDropDowns, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3335 className: "date-container" 3336 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3337 className: "calendar-label" 3338 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('DATE OF ATTEMPT', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3339 className: "export-date-range" 3340 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(_component_date_filter_js__WEBPACK_IMPORTED_MODULE_10__["default"], { 3341 start: this.state.export_start_date, 3342 end: this.state.export_end_date 3343 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3344 className: "apply_filters" 3345 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3346 className: "apply-bulk-filters", 3347 onClick: this.applyExportFilters, 3348 disabled: this.state.disabled_button 3349 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('APPLY FILTERS', 'learndash-reports-by-wisdmlabs')))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3350 className: "bulk-export-heading" 3351 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Export', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null, "Total quiz attempts - ", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, "???"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null, " selected"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3352 className: "export-attempt-results" 3353 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3354 className: "report-label" 3355 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Export all quiz attempts result', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3356 className: "dashicons dashicons-info-outline", 3357 "data-title": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('This report exports the summarized information of all quiz attempts', 'learndash-reports-by-wisdmlabs') 3358 })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3359 className: "report-export-buttons" 3360 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3361 className: "export-attempt-csv", 3362 onClick: this.exportAttemptCSV.bind(this) 3363 }, "CSV"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3364 className: "export-attempt-xlsx", 3365 onClick: this.exportAttemptXLSX.bind(this) 3366 }, "XLSX")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3367 className: "export-link-wrapper" 3368 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3369 className: `bulk-export-download ${this.state.show_bulk_attempt_download}` 3370 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3371 className: `bulk-export-progress ${this.state.show_bulk_attempt_progress}` 3372 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Downloading progress:', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("progress", { 3373 value: "0", 3374 max: "100" 3375 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null)))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3376 className: "export-attempt-learner-answers" 3377 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3378 className: "report-label" 3379 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Export quiz attempts learner answers', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3380 className: "dashicons dashicons-info-outline", 3381 "data-title": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('This report exports the actual answers provided by learners for all the quiz attempts', 'learndash-reports-by-wisdmlabs') 3382 })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3383 className: "report-export-buttons" 3384 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3385 className: "export-learner-csv", 3386 onClick: this.exportLearnerCSV.bind(this) 3387 }, "CSV"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3388 className: "export-learner-xlsx", 3389 onClick: this.exportLearnerXLSX.bind(this) 3390 }, "XLSX")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3391 className: "export-link-wrapper" 3392 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3393 className: `bulk-export-download ${this.state.show_bulk_learner_download}` 3394 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3395 className: `bulk-export-progress ${this.state.show_bulk_learner_progress}` 3396 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Downloading progress:', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("progress", { 3397 value: "0", 3398 max: "100" 3399 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null)))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3400 className: "export-note" 3401 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Note: We recommend to download atmost 10000 number of quiz attempts to avoid server timeout.', 'learndash-reports-by-wisdmlabs')))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3402 class: "button-bulk-export", 3403 onClick: this.openBulkExportModal 3404 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Bulk Export', 'learndash-reports-by-wisdmlabs'))); 3405 //Custom Filers 3406 if ("custom-quiz-reports" === this.state.report_type_selected) { 3407 customFilterDropDowns = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3408 class: "quiz-reporting-custom-filters" 3409 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3410 class: "selector" 3411 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3412 class: "selector-label" 3413 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Courses', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3414 class: "select-control" 3415 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 3416 isDisabled: this.state.courses_disabled 3417 // loadOptions={this.handleCourseSearch} 3418 , 3419 options: this.state.courses, 3420 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 3421 onChange: this.handleQuizCourseChange, 3422 isClearable: "true", 3423 value: { 3424 value: this.state.selectedValue.course_filter, 3425 label: this.state.selectedCourseTitle 3426 } 3427 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3428 class: "selector" 3429 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3430 class: "selector-label" 3431 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Groups', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3432 class: "select-control" 3433 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 3434 onChange: this.handleQuizGroupChange, 3435 options: this.state.groups, 3436 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 3437 isClearable: "true", 3438 value: this.state.selected_groups 3439 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3440 class: "selector" 3441 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3442 class: "selector-label" 3443 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Quizzes', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3444 class: "select-control" 3445 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"] 3446 // loadOptions={this.handleQuizSearch} 3447 , { 3448 onChange: this.handleQuizChange, 3449 options: this.state.quizes, 3450 placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs'), 3451 isClearable: "true", 3452 value: { 3453 value: this.state.selectedValue.quiz_filter, 3454 label: this.state.selectedQuizTitle 3455 } 3456 })))); 3457 filterSection = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3458 class: "quiz-eporting-filter-section custom-filters" 3459 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3460 class: "help-section" 3461 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Customize your Quiz Results and analyze them in a detailed view. Please select the appropriate filters and the fields (by clicking on the Customize Report Button) and click on Apply Filters to display the reports below.', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("p", { 3462 class: "note" 3463 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("b", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Note:', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' It may take a while for a report to be generated depending of the amount of the data selected.', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3464 className: "filter-wrap" 3465 }, customFilterDropDowns, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3466 className: "date-container" 3467 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3468 className: "calendar-label" 3469 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('DATE OF ATTEMPT', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(_component_date_filter_js__WEBPACK_IMPORTED_MODULE_10__["default"], { 3470 start: this.state.export_start_date, 3471 end: this.state.export_end_date 3472 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3473 class: "filter-buttons" 3474 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3475 class: "filter-button-container" 3476 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(simple_react_modal__WEBPACK_IMPORTED_MODULE_9__["default"], { 3477 show: this.state.show_quiz_filter_modal, 3478 onClose: this.closeCustomizePreviewModal, 3479 containerStyle: { 3480 width: '80%' 3481 } 3482 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3483 class: "quiz-filter-modal" 3484 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3485 class: "header" 3486 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("h2", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Customize Report', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3487 class: "quiz-reporting-custom-filters lr-dropdowns" 3488 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3489 class: "selector" 3490 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3491 class: "selector-label" 3492 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All Attempts Report Fields', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3493 class: "select-control" 3494 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3495 isChecked: "yes", 3496 always_checked: "yes", 3497 name: "user_name", 3498 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Username', 'learndash-reports-by-wisdmlabs') 3499 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3500 isChecked: "yes", 3501 always_checked: "yes", 3502 name: "quiz_title", 3503 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Quiz', 'learndash-reports-by-wisdmlabs') 3504 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3505 isChecked: "yes", 3506 always_checked: "yes", 3507 name: "course_title", 3508 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Course', 'learndash-reports-by-wisdmlabs') 3509 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3510 isChecked: this.state.selectedFields.course_category, 3511 name: "course_category", 3512 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Course Category', 'learndash-reports-by-wisdmlabs') 3513 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3514 isChecked: this.state.selectedFields.group_name, 3515 name: "group_name", 3516 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Group', 'learndash-reports-by-wisdmlabs') 3517 }), (0,_
3517wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3518 isChecked: this.state.selectedFields.user_email, 3519 name: "user_email", 3520 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('User Email', 'learndash-reports-by-wisdmlabs') 3521 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3522 isChecked: this.state.selectedFields.quiz_status, 3523 name: "quiz_status", 3524 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Quiz Status', 'learndash-reports-by-wisdmlabs') 3525 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3526 isChecked: "yes", 3527 always_checked: "yes", 3528 name: "quiz_category", 3529 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Quiz Category', 'learndash-reports-by-wisdmlabs') 3530 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3531 isChecked: "yes", 3532 always_checked: "yes", 3533 name: "quiz_points_earned", 3534 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Points Earned', 'learndash-reports-by-wisdmlabs') 3535 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3536 isChecked: this.state.selectedFields.quiz_score_percent, 3537 name: "quiz_score_percent", 3538 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Score (in%)', 'learndash-reports-by-wisdmlabs') 3539 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3540 isChecked: "yes", 3541 always_checked: "yes", 3542 name: "date_of_attempt", 3543 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Date of attempt', 'learndash-reports-by-wisdmlabs') 3544 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3545 isChecked: "yes", 3546 always_checked: "yes", 3547 name: "time_taken", 3548 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Time Taken', 'learndash-reports-by-wisdmlabs') 3549 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3550 class: "selector" 3551 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3552 class: "selector-label" 3553 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Question Response Report Fields', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3554 class: "select-control" 3555 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3556 isChecked: this.state.selectedFields.question_type, 3557 name: "question_type", 3558 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Question Type', 'learndash-reports-by-wisdmlabs') 3559 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3560 isChecked: this.state.selectedFields.user_first_name, 3561 name: "user_first_name", 3562 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('First Name', 'learndash-reports-by-wisdmlabs') 3563 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(Checkbox, { 3564 isChecked: this.state.selectedFields.user_last_name, 3565 name: "user_last_name", 3566 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Last Name', 'learndash-reports-by-wisdmlabs') 3567 })))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3568 class: "modal-action-buttons" 3569 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3570 class: "button-customize-preview cancel", 3571 onClick: this.closeCustomizePreviewModal 3572 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Cancel', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3573 class: "button-quiz-preview", 3574 onClick: this.previewCustomReport 3575 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Apply', 'learndash-reports-by-wisdmlabs'))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3576 class: "button-customize-preview", 3577 onClick: this.openCustomizePreviewModal 3578 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('CUSTOMIZE REPORT', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3579 class: "button-quiz-preview", 3580 onClick: this.previewReport 3581 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('APPLY FILTERS', 'learndash-reports-by-wisdmlabs')))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(simple_react_modal__WEBPACK_IMPORTED_MODULE_9__["default"], { 3582 show: this.state.show_bulk_export_modal, 3583 onClose: this.closeBulkExportModal, 3584 containerStyle: { 3585 width: '50%' 3586 }, 3587 className: "bulk_export_modal" 3588 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3589 class: "close-modal dashicons dashicons-no", 3590 onClick: this.closeBulkExportModal 3591 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3592 className: "header bulk-export-header" 3593 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3594 className: "filter-section" 3595 }, customFilterDropDowns, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3596 className: "date-container" 3597 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3598 className: "calendar-label" 3599 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('DATE OF ATTEMPT', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3600 className: "export-date-range" 3601 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(_component_date_filter_js__WEBPACK_IMPORTED_MODULE_10__["default"], { 3602 start: this.state.export_start_date, 3603 end: this.state.export_end_date 3604 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3605 className: "apply_filters" 3606 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3607 className: "apply-bulk-filters", 3608 disabled: this.state.disabled_button, 3609 onClick: this.applyExportFilters 3610 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('APPLY FILTERS', 'learndash-reports-by-wisdmlabs')))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3611 className: "bulk-export-heading" 3612 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("h3", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Export', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null, "Total quiz attempts - ", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, "???"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null, " selected"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3613 className: "export-attempt-results" 3614 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3615 className: "report-label" 3616 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Export all quiz attempts result', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3617 className: "dashicons dashicons-info-outline", 3618 "data-title": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('This report exports the summarized information of all quiz attempts', 'learndash-reports-by-wisdmlabs') 3619 })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3620 className: "report-export-buttons" 3621 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3622 className: "export-attempt-csv", 3623 onClick: this.exportAttemptCSV.bind(this) 3624 }, "CSV"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3625 className: "export-attempt-xlsx", 3626 onClick: this.exportAttemptXLSX.bind(this) 3627 }, "XLSX")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3628 className: "export-link-wrapper" 3629 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3630 className: `bulk-export-download ${this.state.show_bulk_attempt_download}` 3631 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3632 className: `bulk-export-progress ${this.state.show_bulk_attempt_progress}` 3633 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Downloading progress:', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("progress", { 3634 value: "0", 3635 max: "100" 3636 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null)))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3637 className: "export-attempt-learner-answers" 3638 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3639 className: "report-label" 3640 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Export quiz attempts learner answers', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3641 className: "dashicons dashicons-info-outline", 3642 "data-title": (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('This report exports the actual answers provided by learners for all the quiz attempts', 'learndash-reports-by-wisdmlabs') 3643 })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3644 className: "report-export-buttons" 3645 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3646 className: "export-learner-csv", 3647 onClick: this.exportLearnerCSV.bind(this) 3648 }, "CSV"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3649 className: "export-learner-xlsx", 3650 onClick: this.exportLearnerXLSX.bind(this) 3651 }, "XLSX")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3652 className: "export-link-wrapper" 3653 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3654 className: `bulk-export-download ${this.state.show_bulk_learner_download}` 3655 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3656 className: `bulk-export-progress ${this.state.show_bulk_learner_progress}` 3657 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Downloading progress:', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("progress", { 3658 value: "0", 3659 max: "100" 3660 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null)))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3661 className: "export-note" 3662 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Note: We recommend to download atmost 10000 number of quiz attempts to avoid server timeout.', 'learndash-reports-by-wisdmlabs')))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 3663 class: "button-bulk-export", 3664 onClick: this.openBulkExportModal 3665 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Bulk Export', 'learndash-reports-by-wisdmlabs'))); 3666 } 3667 if ('disabled' == this.quiz_section_disabled) { 3668 body = ''; 3669 } else { 3670 let default_quizz_reports_label = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Default', 'learndash-reports-by-wisdmlabs') + ' ' + wisdm_reports_get_ld_custom_lebel_if_avaiable('Quiz') + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Report View', 'learndash-reports-by-wisdmlabs'); 3671 let custom_quizz_reports_label = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Customized', 'learndash-reports-by-wisdmlabs') + ' ' + wisdm_reports_get_ld_custom_lebel_if_avaiable('Quiz') + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Report View', 'learndash-reports-by-wisdmlabs'); 3672 body = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3673 class: "quiz-report-filters-wrapper" 3674 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3675 class: "select-view" 3676 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Select View', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 3677 class: "quiz-report-types", 3678 onChange: this.onQuizReportViewChange 3679 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("input", { 3680 id: "dfr", 3681 type: "radio", 3682 value: "default-quiz-reports", 3683 name: "quiz-report-types", 3684 checked: "default-quiz-reports" === this.state.report_type_selected 3685 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", { 3686 for: "dfr", 3687 class: "default-quiz-reports" === this.state.report_type_selected ? 'checked' : '' 3688 }, default_quizz_reports_label), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("input", { 3689 id: "cqr", 3690 type: "radio", 3691 value: "custom-quiz-reports", 3692 name: "quiz-report-types", 3693 checked: "custom-quiz-reports" === this.state.report_type_selected 3694 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", { 3695 for: "cqr", 3696 class: "custom-quiz-reports" === this.state.report_type_selected ? 'checked' : '' 3697 }, " ", custom_quizz_reports_label)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null, filterSection)); 3698 } 3699 return body; 3700 } 3701} 3702class ReportFilters extends react__WEBPACK_IMPORTED_MODULE_6__.Component { 3703 constructor(props) { 3704 super(props); 3705 window.callStack = []; 3706 let learners_disabled = true;
3707 let categories_disabled = true; 3708 let groups_disabled = true; 3709 let courses_disabled = false; 3710 var localized_data_url = '/rp/v1/report-filters-data'; 3711 this.state = { 3712 isLoaded: false, 3713 error: null, 3714 loading_categories: false, 3715 loading_groups: false, 3716 loading_courses: false, 3717 loading_lessons: false, 3718 loading_topics: false, 3719 loading_learners: false, 3720 selected_categories: { 3721 value: null, 3722 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3723 }, 3724 selected_groups: { 3725 value: null, 3726 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3727 }, 3728 selected_courses: { 3729 value: null, 3730 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3731 }, 3732 selected_lessons: { 3733 value: null, 3734 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3735 }, 3736 selected_topics: { 3737 value: null, 3738 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3739 }, 3740 selected_learners: null, 3741 categories_disabled: categories_disabled, 3742 groups_disabled: groups_disabled, 3743 courses_disabled: courses_disabled, 3744 lessons_disabled: true, 3745 topics_disabled: true, 3746 courses: [], 3747 default_courses: [], 3748 learners_disabled: learners_disabled, 3749 // active_tab:tab_selected, 3750 start_date: moment(new Date(wisdm_ld_reports_common_script_data.start_date)).unix(), 3751 end_date: moment(new Date(wisdm_ld_reports_common_script_data.end_date)).unix(), 3752 report_type_selected: 'default-course-reports', 3753 isPro: wisdm_ld_reports_common_script_data.is_pro_version_active 3754 }; 3755 window.globalfilters = { 3756 'detail': { 3757 'start_date': this.state.start_date, 3758 'end_date': this.state.end_date, 3759 'selected_categories': this.state.selected_categories.value, 3760 'selected_groups': this.state.selected_groups.value, 3761 'selected_courses': this.state.selected_courses.value, 3762 'selected_lessons': this.state.selected_lessons.value, 3763 'selected_topics': this.state.selected_topics.value, 3764 'selected_learners': null != this.state.selected_learners ? this.state.selected_learners.value : null 3765 } 3766 }; 3767 if (wisdm_ld_reports_common_script_data.wpml_lang) { 3768 localized_data_url += '/?wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 3769 } 3770 wp.apiFetch({ 3771 path: localized_data_url //Replace with the correct API 3772 }).then(response => { 3773 window.wisdm_learndash_reports_front_end_script_report_filters = response.wisdm_learndash_reports_front_end_script_report_filters; 3774 if (false != wisdm_ld_reports_common_script_data.is_pro_version_active) { 3775 this.state.learners_disabled = false; 3776 this.state.categories_disabled = false; 3777 this.state.groups_disabled = false; 3778 } 3779 window.ld_api_settings = wisdm_learndash_reports_front_end_script_report_filters.ld_api_settings; 3780 let tab_selected = 'quiz-reports' == wisdm_learndash_reports_front_end_script_report_filters.report_type ? 1 : 0; 3781 this.state.active_tab = tab_selected; 3782 this.getDefaultOptions(); 3783 let url = '/ldlms/v1/' + ld_api_settings['sfwd-courses'] + '?per_page=-1'; 3784 if (wisdm_learndash_reports_front_end_script_report_filters.exclude_courses.length > 0 && false != wisdm_ld_reports_common_script_data.is_pro_version_active) { 3785 for (var i = 0; i < wisdm_learndash_reports_front_end_script_report_filters.exclude_courses.length; i++) { 3786 url += '&exclude[]=' + wisdm_learndash_reports_front_end_script_report_filters.exclude_courses[i]; 3787 } 3788 } 3789 // wp.apiFetch({ 3790 // path: url //Replace with the correct API 3791 // }).then(response => { 3792 let lock_icon = ''; 3793 let quiz_section_disabled = ''; 3794 if (false == wisdm_ld_reports_common_script_data.is_pro_version_active) { 3795 lock_icon = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 3796 title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Please upgrade the plugin to access this feature', 'learndash-reports-by-wisdmlabs'), 3797 class: "dashicons dashicons-lock ld-reports" 3798 }); 3799 quiz_section_disabled = 'disabled'; 3800 } 3801 // let courses = this.getCourseListFromJson(response); 3802 let courses = window.wisdm_learndash_reports_front_end_script_report_filters.courses;
3803 console.log(courses); 3804 this.setState({ 3805 isLoaded: true, 3806 lock_icon: lock_icon, 3807 quiz_section_disabled: quiz_section_disabled, 3808 categories: wisdm_learndash_reports_front_end_script_report_filters.course_categories, 3809 groups: wisdm_learndash_reports_front_end_script_report_filters.course_groups, 3810 courses: courses, 3811 default_courses: courses, 3812 courses_disabled: false, 3813 lessons: [], 3814 topics: [], 3815 learners: [], 3816 isPro: wisdm_ld_reports_common_script_data.is_pro_version_active 3817 }); 3818 // }); 3819 const defaultOptionsLoaded = new CustomEvent("wrld-default-filters-loaded"); 3820 document.dispatchEvent(defaultOptionsLoaded); 3821 }); 3822 this.durationUpdated = this.durationUpdated.bind(this); 3823 this.applyFilters = this.applyFilters.bind(this); 3824 this.handleTabSelection = this.handleTabSelection.bind(this); 3825 this.changeCourseReportType = this.changeCourseReportType.bind(this); 3826 } 3827 durationUpdated(event) { 3828 this.setState({ 3829 start_date: event.detail.startDate, 3830 end_date: event.detail.endDate 3831 }); 3832 // this.setState({selected_categories:{value:null,label:__('All', 'learndash-reports-by-wisdmlabs')},selected_groups:{value:null,label:__('All', 'learndash-reports-by-wisdmlabs')},selected_courses:{value:null,label:__('All', 'learndash-reports-by-wisdmlabs')},selected_lessons:{value:null,label:__('All', 'learndash-reports-by-wisdmlabs')},selected_topics:{value:null,label:__('All', 'learndash-reports-by-wisdmlabs')},selected_learners:null,}); 3833 } 3834 3835 getCourseListFromJson(response) { 3836 let courseList = []; 3837 if (response.length == 0) { 3838 return courseList; //no courses found 3839 } 3840 3841 for (let i = 0; i < response.length; i++) { 3842 courseList.push({ 3843 value: response[i].id, 3844 label: response[i].title.rendered 3845 }); 3846 } 3847 courseList = getCoursesByGroups(courseList); 3848 return courseList; 3849 } 3850 getLessonListFromJson(response) { 3851 let lessonList = []; 3852 if (response.length == 0) { 3853 return false; //no courses found 3854 } 3855 3856 for (let i = 0; i < response.length; i++) { 3857 lessonList.push({ 3858 value: response[i].id, 3859 label: response[i].title.rendered 3860 }); 3861 } 3862 return lessonList; 3863 } 3864 getTopicListFromJson(response) { 3865 let topicList = []; 3866 if (response.length == 0) { 3867 return false; //no courses found 3868 } 3869 3870 for (let i = 0; i < response.length; i++) { 3871 topicList.push({ 3872 value: response[i].id, 3873 label: response[i].title.rendered 3874 }); 3875 } 3876 return topicList; 3877 } 3878 componentDidMount() { 3879 document.addEventListener('duration_updated', this.durationUpdated); 3880 } 3881 handleCategoryChange = selectedCategory => { 3882 if (null == selectedCategory) { 3883 this.setState({ 3884 selected_categories: { 3885 value: null, 3886 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3887 } 3888 }); 3889 this.updateSelectorsFor('category', null); 3890 this.setState({ 3891 courses: this.state.default_courses 3892 }); 3893 } else { 3894 this.setState({ 3895 selected_categories: selectedCategory 3896 }); 3897 this.updateSelectorsFor('category', selectedCategory.value, '/ldlms/v1/' + ld_api_settings['sfwd-courses']); 3898 } 3899 }; 3900 handleAdminGroupChange = selectedGroup => {
3901 let categorySelectedByAdmin = this.state.selected_categories.value; 3902 if (null == selectedGroup) { 3903 this.setState({ 3904 selected_groups: { 3905 value: null, 3906 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3907 }, 3908 selected_courses: { 3909 value: null, 3910 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3911 } 3912 }); 3913 this.updateSelectorsFor('group', null, '/ldlms/v1/' + ld_api_settings['sfwd-courses'] + '?test=1'); 3914 this.setState({ 3915 courses: this.state.default_courses, 3916 categories_disabled: false 3917 }); 3918 } else { 3919 this.setState({ 3920 selected_groups: selectedGroup, 3921 categories_disabled: true, 3922 selected_courses: { 3923 value: null, 3924 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3925 } 3926 }); 3927 let callback_url = '/ldlms/v1/' + ld_api_settings['sfwd-courses'] + '?include=' + selectedGroup.courses_enrolled; 3928 if (categorySelectedByAdmin != null) { 3929 //including category filter in url 3930 callback_url = callback_url + '&ld_course_category[]=' + categorySelectedByAdmin; 3931 let url = ''; 3932 if (wisdm_learndash_reports_front_end_script_report_filters.exclude_courses.length > 0 && false != wisdm_ld_reports_common_script_data.is_pro_version_active) { 3933 for (var i = 0; i < wisdm_learndash_reports_front_end_script_report_filters.exclude_courses.length; i++) { 3934 url += '&exclude[]=' + wisdm_learndash_reports_front_end_script_report_filters.exclude_courses[i]; 3935 } 3936 } 3937 callback_url += url; 3938 } 3939 this.updateSelectorsFor('group', selectedGroup.value, callback_url); 3940 } 3941 //update courses/lessons/topics fetched 3942 this.setState({ 3943 courses_disabled: false 3944 }); 3945 }; 3946 handleGroupChange = selectedGroup => { 3947 if (null == selectedGroup || null == selectedGroup.value) { 3948 this.setState({ 3949 selected_groups: { 3950 value: null, 3951 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3952 }, 3953 selected_courses: { 3954 value: null, 3955 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3956 } 3957 }); 3958 this.updateSelectorsFor('group', null, '/ldlms/v1/' + ld_api_settings['sfwd-courses'] + '?test=1'); 3959 this.setState({ 3960 courses: this.state.default_courses, 3961 categories_disabled: false 3962 }); 3963 } else { 3964 this.setState({ 3965 selected_groups: selectedGroup, 3966 categories_disabled: true, 3967 selected_courses: { 3968 value: null, 3969 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3970 } 3971 }); 3972 this.updateSelectorsFor('group', selectedGroup.value, '/ldlms/v1/' + ld_api_settings['sfwd-courses'] + '?include=' + selectedGroup.courses_enrolled); 3973 } 3974 //update courses/lessons/topics fetched 3975 this.setState({ 3976 courses_disabled: false 3977 }); 3978 }; 3979 handleCourseChange = selectedCourse => { 3980 if (null == selectedCourse) { 3981 this.setState({ 3982 selected_courses: { 3983 value: null, 3984 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 3985 } 3986 }); 3987 this.updateSelectorsFor('course', null); 3988 } else { 3989 this.setState({ 3990 selected_courses: selectedCourse 3991 }); 3992 this.updateSelectorsFor('course', selectedCourse.value, '/ldlms/v1/' + ld_api_settings['sfwd-lessons'] + '/'); 3993 } 3994 }; 3995 handleLessonChange = selectedLesson => { 3996 if (null == selectedLesson) { 3997 this.setState({ 3998 selected_lessons: { 3999 value: null, 4000 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4001 } 4002 }); 4003 this.updateSelectorsFor('lesson', null); 4004 } else { 4005 this.setState({
4006 selected_lessons: selectedLesson 4007 }); 4008 this.updateSelectorsFor('lesson', selectedLesson.value, 'ldlms/v1/' + ld_api_settings['sfwd-topic'] + '/'); 4009 } 4010 }; 4011 handleTopicChange = selectedTopic => { 4012 if (null == selectedTopic) { 4013 this.setState({ 4014 selected_topics: { 4015 value: null, 4016 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4017 } 4018 }); 4019 this.updateSelectorsFor('topic', null); 4020 } else { 4021 this.setState({ 4022 selected_topics: selectedTopic 4023 }); 4024 this.updateSelectorsFor('topic', selectedTopic.value); 4025 } 4026 }; 4027 handleLearnerChange = selectedLearner => { 4028 if (null == selectedLearner) { 4029 this.setState({ 4030 selected_learners: null, 4031 courses_disabled: false, 4032 categories_disabled: false 4033 }); 4034 // this.updateSelectorsFor('learner', null); 4035 } else { 4036 this.setState({ 4037 selected_learners: selectedLearner 4038 }); 4039 this.setState({ 4040 selected_categories: { 4041 value: null, 4042 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4043 }, 4044 selected_courses: { 4045 value: null, 4046 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4047 }, 4048 selected_lessons: { 4049 value: null, 4050 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4051 }, 4052 selected_topics: { 4053 value: null, 4054 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4055 } 4056 }); //Clear category, course , lesson, topics selected. 4057 // this.updateSelectorsFor('learner', selectedLearner.value); 4058 } 4059 }; 4060 4061 handleLearnerSearch = (inputString, callback) => { 4062 // perform a request 4063 let requestResults = []; 4064 // if (3>inputString.length) { 4065 // return callback(requestResults); 4066 // } 4067 if ('group_leader' == wisdmLdReportsGetUserType()) { 4068 let groupUsers = wrldGetGroupAdminUsers(); 4069 groupUsers.forEach(user => { 4070 if (user.display_name.toLowerCase().includes(inputString.toLowerCase()) || user.user_nicename.toLowerCase().includes(inputString.toLowerCase())) { 4071 requestResults.push({ 4072 value: user.id, 4073 label: user.display_name 4074 }); 4075 } 4076 }); 4077 callback(requestResults); 4078 } else { 4079 let callback_path = '/wp/v2/users/?search='; 4080 callback_path = callback_path + inputString + '&reports=1'; 4081 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4082 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4083 } 4084 wp.apiFetch({ 4085 path: callback_path //Replace with the correct API 4086 }).then(response => { 4087 if (false != response && response.length > 0) { 4088 response.forEach(element => { 4089 requestResults.push({ 4090 value: element.id, 4091 label: element.name 4092 }); 4093 }); 4094 } 4095 callback(requestResults); 4096 }).catch(error => { 4097 callback(requestResults); 4098 }); 4099 } 4100 }; 4101 getDefaultOptions = () => { 4102 // perform a request 4103 let requestResults = []; 4104 // if (3>inputString.length) { 4105 // return callback(requestResults); 4106 // } 4107 4108 if ('group_leader' == wisdmLdReportsGetUserType()) { 4109 let groupUsers = wrldGetGroupAdminUsers(); 4110 groupUsers.forEach(user => { 4111 // if (user.display_name.toLowerCase().includes(inputString.toLowerCase()) || user.user_nicename.toLowerCase().includes(inputString.toLowerCase())) { 4112 // requestResults.push({value:user.id, label:user.display_name}); 4113 // } 4114 4115 requestResults.push({ 4116 value: user.id, 4117 label: user.display_name 4118 }); 4119 }); 4120 // return requestResults; 4121 this.setState({ 4122 default_options: requestResults 4123 }); 4124 } else { 4125 let callback_path = '/wp/v2/users/?search='; 4126 callback_path = callback_path + '&per_page=5' + '&reports=1'; 4127 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4128 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4129 } 4130 wp.apiFetch({ 4131 path: callback_path //Replace with the correct API 4132 }).then(response => { 4133 if (false != response && response.length > 0) { 4134 response.forEach(element => { 4135 requestResults.push({
4136 value: element.id, 4137 label: element.name 4138 }); 4139 }); 4140 } 4141 this.setState({ 4142 default_options: requestResults 4143 }); 4144 }).catch(error => { 4145 return requestResults; 4146 }); 4147 } 4148 }; 4149 updateSelectorsFor(element, selection) { 4150 let callback_path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '/wp/v2/categories'; 4151 switch (element) { 4152 case 'category': 4153 callback_path = callback_path + '?ld_course_category[]=' + selection + '&per_page=-1'; 4154 let url = ''; 4155 if (wisdm_learndash_reports_front_end_script_report_filters.exclude_courses.length > 0 && false != wisdm_ld_reports_common_script_data.is_pro_version_active) { 4156 for (var i = 0; i < wisdm_learndash_reports_front_end_script_report_filters.exclude_courses.length; i++) { 4157 url += '&exclude[]=' + wisdm_learndash_reports_front_end_script_report_filters.exclude_courses[i]; 4158 } 4159 } 4160 callback_path += url; 4161 if (null == selection) { 4162 this.setState({ 4163 courses: [], 4164 lessons: [], 4165 topics: [], 4166 selected_courses: { 4167 value: null, 4168 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4169 }, 4170 selected_lessons: { 4171 value: null, 4172 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4173 }, 4174 selected_topics: { 4175 value: null, 4176 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4177 }, 4178 lessons_disabled: true, 4179 topics_disabled: true 4180 }); 4181 } else { 4182 this.setState({ 4183 loading_courses: true 4184 }); 4185 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4186 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4187 } 4188 wp.apiFetch({ 4189 path: callback_path //Replace with the correct API 4190 }).then(response => { 4191 let courses = this.getCourseListFromJson(response); 4192 if (false != courses && courses.length > 0) { 4193 //if selected course is not in the list then clear the field 4194 let course_in_the_list = false; 4195 let selected_course_id = this.state.selected_courses.value; 4196 courses.forEach(function (course) { 4197 if (null != selected_course_id && course.value == selected_course_id) { 4198 course_in_the_list = true; 4199 } 4200 }); 4201 if (!course_in_the_list) { 4202 this.setState({ 4203 selected_courses: { 4204 value: null, 4205 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4206 }, 4207 selected_lessons: { 4208 value: null, 4209 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4210 }, 4211 selected_topics: { 4212 value: null, 4213 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4214 }, 4215 lessons_disabled: true, 4216 topics_disabled: true 4217 }); 4218 } 4219 this.setState({ 4220 courses: courses, 4221 courses_disabled: false, 4222 loading_courses: false 4223 }); 4224 } 4225 }).catch(error => { 4226 this.setState({ 4227 selected_courses: { 4228 value: null, 4229 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4230 }, 4231 selected_lessons: { 4232 value: null, 4233 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4234 }, 4235 selected_topics: { 4236 value: null, 4237 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4238 }, 4239 lessons_disabled: true, 4240 topics_disabled: true 4241 }); 4242 }); 4243 } 4244 break; 4245 case 'group': 4246 callback_path = callback_path + '&per_page=-1'; 4247 if (null == selection) { 4248 this.setState({ 4249 lessons: [], 4250 topics: [], 4251 selected_courses: { 4252 value: null, 4253 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4254 }, 4255 selected_lessons: { 4256 value: null, 4257 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4258 }, 4259 selected_topics: { 4260 value: null, 4261 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4262 }, 4263 lessons_disabled: true, 4264 topics_disabled: true 4265 }); 4266 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4267 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4268 } 4269 wp.apiFetch({ 4270 path: callback_path //Replace with the correct API 4271 }).then(response => { 4272 let courses = this.getCourseListFromJson(response); 4273 if (false != courses && courses.length > 0) { 4274 this.setState({ 4275 courses: courses, 4276 lessons: [], 4277 topics: [], 4278 courses_disabled: false, 4279 loading_courses: false, 4280 selected_courses: { 4281 value: null, 4282 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4283 }, 4284 selected_lessons: { 4285 value: null, 4286 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4287 }, 4288 selected_topics: { 4289 value: null, 4290 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4291 } 4292 }); 4293 } else { 4294 this.setState({ 4295 courses: [], 4296 lessons: [], 4297 topics: [], 4298 course: { 4299 value: null, 4300 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4301 }, 4302 loading_courses: false, 4303 selected_courses: { 4304 value: null, 4305 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4306 }, 4307 selected_lessons: { 4308 value: null, 4309 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4310 }, 4311 selected_topics: { 4312 value: null, 4313 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4314 } 4315 }); 4316 } 4317 }); 4318 } else { 4319 this.setState({ 4320 loading_courses: true 4321 }); 4322 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4323 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4324 } 4325 wp.apiFetch({ 4326 path: callback_path //Replace with the correct API 4327 }).then(response => { 4328 let courses = this.getCourseListFromJson(response); 4329 if (false != courses && courses.length > 0) { 4330 this.setState({ 4331 courses: courses, 4332 courses_disabled: false, 4333 loading_courses: false 4334 }); 4335 } else { 4336 this.setState({ 4337 courses: [], 4338 lessons: [], 4339 topics: [], 4340 selected_courses: { 4341 value: null, 4342 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4343 }, 4344 selected_lessons: { 4345 value: null, 4346 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4347 }, 4348 selected_topics: { 4349 value: null, 4350 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4351 }, 4352 lessons_disabled: true, 4353 topics_disabled: true, 4354 loading_courses: false 4355 }); 4356 } 4357 }); 4358 } 4359 break; 4360 case 'course': 4361 callback_path = callback_path + '?course=' + selection + '&per_page=-1'; 4362 if (null == selection) { 4363 this.setState({ 4364 lessons: [], 4365 topics: [], 4366 lessons_disabled: true, 4367 topics_disabled: true, 4368 selected_lessons: { 4369 value: null, 4370 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4371 }, 4372 selected_topics: { 4373 value: null, 4374 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4375 } 4376 }); 4377 } else { 4378 this.setState({ 4379 loading_lessons: true 4380 }); 4381 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4382 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4383 } 4384 wp.apiFetch({ 4385 path: callback_path //Replace with the correct API 4386 }).then(response => { 4387 let lessons = this.getLessonListFromJson(response); 4388 if (false != lessons && lessons.length > 0) { 4389 this.setState({ 4390 selected_lessons: { 4391 value: null, 4392 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4393 }, 4394 selected_topics: { 4395 value: null, 4396 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4397 }, 4398 lessons: lessons, 4399 lessons_disabled: false, 4400 loading_lessons: false 4401 }); 4402 } else { 4403 this.setState({ 4404 selected_lessons: { 4405 value: null, 4406 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4407 }, 4408 selected_topics: { 4409 value: null, 4410 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4411 }, 4412 lessons: lessons, 4413 lessons_disabled: true, 4414 loading_lessons: false 4415 }); 4416 } 4417 }).catch(error => { 4418 this.setState({ 4419 selected_lessons: { 4420 value: null, 4421 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4422 }, 4423 selected_topics: { 4424 value: null, 4425 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4426 }, 4427 lessons_disabled: false, 4428 loading_lessons: false 4429 }); 4430 }); 4431 ; 4432 } 4433 break; 4434 case 'lesson': 4435 callback_path = callback_path + '?course=' + this.state.selected_courses.value + '&lesson=' + selection + '&per_page=-1'; 4436 if (null == selection) { 4437 this.setState({ 4438 topics: [], 4439 topics_disabled: true, 4440 selected_topics: { 4441 value: null, 4442 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4443 } 4444 }); 4445 } else { 4446 this.setState({ 4447 loading_topics: true 4448 }); 4449 if (wisdm_ld_reports_common_script_data.wpml_lang) { 4450 callback_path += '&wpml_lang=' + wisdm_ld_reports_common_script_data.wpml_lang; 4451 } 4452 wp.apiFetch({ 4453 path: callback_path //Replace with the correct API 4454 }).then(response => { 4455 let topics = this.getTopicListFromJson(response); 4456 if (false != topics && topics.length > 0) { 4457 this.setState({ 4458 selected_topics: { 4459 value: null, 4460 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4461 }, 4462 topics: topics, 4463 topics_disabled: false, 4464 loading_topics: false 4465 }); 4466 } else { 4467 this.setState({ 4468 selected_topics: { 4469 value: null, 4470 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4471 }, 4472 topics: topics, 4473 topics_disabled: true, 4474 loading_topics: false 4475 }); 4476 } 4477 }); 4478 } 4479 break; 4480 case 'topic': 4481 callback_path = callback_path + '?course_topic=' + selection; 4482 //Callback & action if required. 4483 break; 4484 case 'learner': 4485 callback_path = callback_path + '?learner=' + selection; 4486 //Callback & action if required. 4487 break; 4488 default: 4489 break; 4490 } 4491 } 4492 4493 /** 4494 * Triggers the apply filters event with the 4495 */ 4496 applyFilters() { 4497 window.globalfilters = { 4498 'detail': { 4499 'start_date': this.state.start_date, 4500 'end_date': this.state.end_date, 4501 'selected_categories': this.state.selected_categories.value, 4502 'selected_groups': this.state.selected_groups.value, 4503 'selected_courses': this.state.selected_courses.value, 4504 'selected_lessons': this.state.selected_lessons.value, 4505 'selected_topics': this.state.selected_topics.value, 4506 'selected_learners': null != this.state.selected_learners ? this.state.selected_learners.value : null 4507 } 4508 }; 4509 const applyFilters = new CustomEvent("wisdm-ld-reports-filters-applied", { 4510 "detail": { 4511 'start_date': this.state.start_date, 4512 'end_date': this.state.end_date, 4513 'selected_categories': this.state.selected_categories.value, 4514 'selected_categories_obj': this.state.selected_categories, 4515 'selected_groups': this.state.selected_groups.value, 4516 'selected_groups_obj': this.state.selected_groups, 4517 'selected_courses': this.state.selected_courses.value, 4518 'selected_courses_obj': this.state.selected_courses, 4519 'selected_lessons': this.state.selected_lessons.value, 4520 'selected_lessons_obj': this.state.selected_lessons, 4521 'selected_topics': this.state.selected_topics.value, 4522 'selected_topics_obj': this.state.selected_topics, 4523 'selected_learners': null != this.state.selected_learners ? this.state.selected_learners.value : null, 4524 'selected_learners_obj': null != this.state.selected_learners ? this.state.selected_learners : null 4525 } 4526 }); 4527 if (null == this.state.selected_learners && 'learner-specific-course-reports' == this.state.report_type_selected) { 4528 alert("Please select a learner from the dropdown"); 4529 return; 4530 } 4531 document.dispatchEvent(applyFilters); 4532 } 4533 handleTabSelection(tab_key) { 4534 this.setState({ 4535 active_tab: tab_key 4536 }); 4537 let tabSwitchEvent = new CustomEvent("wisdm-ld-reports-report-type-selected", { 4538 "detail": { 4539 'active_reports_tab': 'default-ld-re
4539ports', 4540 'report_type': this.state.report_type_selected 4541 } 4542 }); 4543 if (1 == tab_key) { 4544 tabSwitchEvent = new CustomEvent("wisdm-ld-reports-report-type-selected", { 4545 "detail": { 4546 'active_reports_tab': 'quiz-reports' 4547 } 4548 }); 4549 document.dispatchEvent(new CustomEvent("wisdm-ld-custom-report-type-select", { 4550 "detail": { 4551 'report_selector': '' 4552 } 4553 })); 4554 } 4555 document.dispatchEvent(tabSwitchEvent); 4556 if (1 == tab_key) { 4557 jQuery('.ld-course-field').hide(); 4558 } else { 4559 jQuery('.ld-course-field').css('display', 'flex'); 4560 } 4561 } 4562 changeCourseReportType(event) { 4563 this.setState({ 4564 report_type_selected: event.target.value 4565 }); 4566 let report_type = ''; 4567 if ('default-course-reports' == event.target.value) { 4568 report_type = 'default-course-reports'; 4569 this.setState({ 4570 selected_learners: null, 4571 lessons_disabled: true, 4572 topics_disabled: true, 4573 courses: this.state.default_courses, 4574 categories_disabled: false 4575 }); 4576 } else if ('learner-specific-course-reports' == event.target.value) { 4577 report_type = 'learner-specific-course-reports'; 4578 this.setState({ 4579 selected_groups: { 4580 value: null, 4581 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4582 }, 4583 selected_categories: { 4584 value: null, 4585 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4586 }, 4587 selected_courses: { 4588 value: null, 4589 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4590 }, 4591 selected_lessons: { 4592 value: null, 4593 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4594 }, 4595 selected_topics: { 4596 value: null, 4597 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4598 }, 4599 lessons_disabled: true, 4600 topics_disabled: true 4601 }); 4602 } 4603 __webpack_require__.g.reportTypeForTooltip = report_type; 4604 document.dispatchEvent(new CustomEvent("wisdm-ldrp-course-report-type-changed", { 4605 "detail": { 4606 'report_type': report_type 4607 } 4608 })); 4609 } 4610 render() { 4611 let user_selector_for_demo = ''; 4612 if (wisdm_ld_reports_common_script_data.is_demo) { 4613 user_selector_for_demo = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4614 className: "demo-pre-selection-options" 4615 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4616 className: "try-searching" 4617 }, "(Try Searching)"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4618 className: "sample-name", 4619 onClick: () => { 4620 this.setState({ 4621 selected_learners: { 4622 value: 18, 4623 label: 'Paul John' 4624 } 4625 }); 4626 } 4627 }, "Paul John"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, "Or"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4628 className: "sample-name", 4629 onClick: () => { 4630 this.setState({ 4631 selected_learners: { 4632 value: 7, 4633 label: 'Michelle Schowalter' 4634 } 4635 }); 4636 } 4637 }, "Michelle Schowalter"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("sapn", null, ")")); 4638 } 4639 let upgrade_section = ''; 4640 let proclass = 'select-control'; 4641 let wrldplaceholder = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Search', 'learndash-reports-by-wisdmlabs'); 4642 let quiz_section = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(_dummy_quiz_reports_index_js__WEBPACK_IMPORTED_MODULE_8__["default"], null); 4643 let gl_class = ''; 4644 let userType = wisdmLdReportsGetUserType(); 4645 if (this.state.isPro) { 4646 quiz_section = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(QuizFilters, null); 4647 } 4648 if (true != this.state.isPro) { 4649 upgrade_section = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4650 className: "wrld-pro-note" 4651 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4652 className: "wrld-pro-note-content" 4653 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("b", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Note: ', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Below is the dummy representation of the Learner Reports available in WISDM Reports PRO.', 'learndash-reports-by-wisdmlabs')))); 4654 proclass = 'ldr-pro'; 4655 wrldplaceholder = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('PAUL JOHN', 'learndash-reports-by-wisdmlabs'); 4656 if ('group_leader' == userType || 'instructor' == userType) { 4657 gl_class = 'wrld-gl'; 4658 } 4659 } 4660 let body = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null); 4661 if (!this.state.isLoaded) { 4662 // yet loading 4663 body = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(_commons_loader_index_js__WEBPACK_IMPORTED_MODULE_7__["default"], null); 4664 } else if (this.state.error) { 4665 // error 4666 body = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4667 class: "wisdm-learndash-reports-chart-block error" 4668 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", null, this.state.error.message)); 4669 } else { 4670 let conditionalCategoryGroupSelector = ''; 4671 let conditionalAdminGroup = ''; 4672 let userType = wisdmLdReportsGetUserType(); 4673 if ('administrator' == userType) { 4674 conditionalCategoryGroupSelector = null; 4675 conditionalAdminGroup = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4676 className: "wisdm-learndash-reports-report-filters admin-group-category-container " + this.state.report_type_selected 4677 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4678 class: "selector admin-cg-selector" 4679 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4680 class: "selector-label" 4681 }, " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Categories', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4682 className: proclass 4683 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 4684 isDisabled: this.state.categories_disabled, 4685 isLoading: this.state.loading_categories, 4686 onChange: this.handleCategoryChange, 4687 options: this.state.categories, 4688 value: this.state.selected_categories, 4689 isClearable: "true" 4690 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4691 class: "selector admin-cg-selector" 4692 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4693 class: "selector-label" 4694 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Groups', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4695 class: "select-control" 4696 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 4697 isDisabled: this.state.groups_disabled, 4698 isLoading: this.state.loading_groups, 4699 onChange: this.handleAdminGroupChange, 4700 options: this.state.groups, 4701 value: this.state.selected_groups, 4702 isClearable: "true" 4703 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4704 class: "selector admin-cg-selector d-none" 4705 })); 4706 } else if ('group_leader' == userType) { 4707 conditionalCategoryGroupSelector = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4708 class: "selector" 4709 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4710 class: "selector-label" 4711 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Groups', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4712 class: "select-control" 4713 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 4714 isDisabled: this.state.groups_disabled, 4715 isLoading: this.state.loading_groups, 4716 onChange: this.handleGroupChange, 4717 options: this.state.groups, 4718 value: this.state.selected_groups, 4719 isClearable: "true" 4720 }))); 4721 } 4722 let tabQR = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.Tab, null, this.state.lock_icon, " ", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4723 class: "wrld-labels" 4724 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Quiz') + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Reports ', 'learndash-reports-by-wisdmlabs'))); 4725 if (this.state.quiz_section_disabled == 'disabled') { 4726 if ('group_leader' == userType || 'instructor' == userType) { 4727 tabQR = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.Tab, { 4728 disabled: true 4729 }, this.state.lock_icon, " ", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4730 class: "wrld-labels" 4731 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Quiz') + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Reports ', 'learndash-reports-by-wisdmlabs'))); 4732 } else { 4733 tabQR = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.Tab, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4734 class: "wrld-labels" 4735 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Quiz') + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Reports ', 'learndash-reports-by-wisdmlabs'))); 4736 } 4737 } 4738 body = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4739 class: "wisdm-learndash-reports-chart-block", 4740 id: "wisdm-learndash-report-filters-container" 4741 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.Tabs, { 4742 selectedIndex: this.state.active_tab, 4743 onSelect: this.handleTabSelection 4744 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.TabList, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.Tab, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4745 class: "wrld-labels" 4746 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Course') + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' Reports', 'learndash-reports-by-wisdmlabs'))), tabQR), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.TabPanel, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4747 className: "wisdm-learndash-reports-course-report-tools-wrap" 4748 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4749 class: "course-report-by", 4750 onChange: this.changeCourseReportType 4751 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("input", { 4752 id: "csr", 4753 type: "radio", 4754 value: "default-course-reports", 4755 name: "course-report-types", 4756 checked: "default-course-reports" === this.state.report_type_selected 4757 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", { 4758 for: "csr", 4759 class: "default-course-reports" === this.state.report_type_selected ? 'checked' : '' 4760 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4761 class: "wrld-labels" 4762 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Course') + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' Specific Reports', 'learndash-reports-by-wisdmlabs'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("input", { 4763 id: "lsr", 4764 className: gl_class, 4765 type: "radio", 4766 value: "learner-specific-course-reports", 4767 name: "course-report-types", 4768 checked: "learner-specific-course-reports" === this.state.report_type_selected 4769 }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("label", { 4770 id: gl_class, 4771 for: "lsr", 4772 class: "learner-specific-course-reports" === this.state.report_type_selected ? 'checked' : '' 4773 }, " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Learner Specific Reports', 'learndash-reports-by-wisdmlabs'))), "learner-specific-course-reports" === this.state.report_type_selected ? '' : conditionalAdminGroup, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4774 className: "wisdm-learndash-reports-report-filters " + this.state.report_type_selected 4775 }, conditionalCategoryGroupSelector, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4776 class: "selector" 4777 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4778 class: "selector-label" 4779 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Courses')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4780 class: "select-control" 4781 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 4782 isDisabled: this.state.courses_disabled, 4783 isLoading: this.state.loading_courses, 4784 onChange: this.handleCourseChange, 4785 options: this.state.courses, 4786 value: this.state.selected_courses, 4787 isClearable: "true" 4788 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4789 class: "selector" 4790 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4791 class: "selector-label" 4792 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Lessons')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4793 class: "select-control" 4794 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 4795 isDisabled: this.state.lessons_disabled, 4796 isLoading: this.state.loading_lessons, 4797 onChange: this.handleLessonChange, 4798 options: this.state.lessons, 4799 value: this.state.selected_lessons, 4800 isClearable: "true" 4801 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4802 class: "selector" 4803 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4804 class: "selector-label" 4805 }, wisdm_reports_get_ld_custom_lebel_if_avaiable('Topics')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4806 class: "select-control" 4807 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select__WEBPACK_IMPORTED_MODULE_11__["default"], { 4808 isDisabled: this.state.topics_disabled, 4809 isLoading: this.state.loading_topics, 4810 onChange: this.handleTopicChange, 4811 options: this.state.topics, 4812 value: this.state.selected_topics, 4813 isClearable: "true" 4814 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4815 class: "selector lr-apply" 4816 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4817
4817 class: "apply-filters" 4818 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 4819 onClick: this.applyFilters 4820 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Apply', 'learndash-reports-by-wisdmlabs'))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4821 className: "wisdm-learndash-reports-report-filters-for-users " + this.state.report_type_selected 4822 }, upgrade_section, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4823 class: "selector lr-learner" 4824 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4825 class: "selector-label" 4826 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Learners', 'learndash-reports-by-wisdmlabs'), this.state.lock_icon, user_selector_for_demo), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4827 className: proclass 4828 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_select_async__WEBPACK_IMPORTED_MODULE_1__["default"], { 4829 components: { 4830 DropdownIndicator: () => null, 4831 IndicatorSeparator: () => null, 4832 NoOptionsMessage: element => { 4833 return element.selectProps.inputValue.length > 2 ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' No learners found for the search string\'', 'learndash-reports-by-wisdmlabs') + element.selectProps.inputValue + '\'' : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)(' Type 3 or more letters to search', 'learndash-reports-by-wisdmlabs'); 4834 } 4835 }, 4836 placeholder: wrldplaceholder, 4837 isDisabled: this.state.learners_disabled, 4838 value: this.state.selected_learners, 4839 loadOptions: this.handleLearnerSearch, 4840 onChange: this.handleLearnerChange, 4841 isClearable: "true", 4842 defaultOptions: this.state.default_options 4843 }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4844 class: "selector" 4845 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("div", { 4846 class: "apply-filters" 4847 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("button", { 4848 onClick: this.applyFilters 4849 }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Apply', 'learndash-reports-by-wisdmlabs')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("span", { 4850 className: "wrld-applied" 4851 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)("i", { 4852 class: "dashicons dashicons-saved" 4853 }), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Applied', 'learndash-reports-by-wisdmlabs'))))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(react_tabs__WEBPACK_IMPORTED_MODULE_2__.TabPanel, null, quiz_section))); 4854 } 4855 return body; 4856 } 4857} 4858/* harmony default export */ __webpack_exports__["default"] = (ReportFilters); 4859 4860/** 4861 * Based on the current user roles aray this function desides wether a user is a group 4862 * leader or an Administrator and returns the same. 4863 */ 4864function wisdmLdReportsGetUserType() { 4865 let userRoles = wisdm_ld_reports_common_script_data.user_roles; 4866 if ('object' == typeof userRoles) { 4867 userRoles = Object.keys(userRoles).map(key => userRoles[key]); 4868 } 4869 if (undefined == userRoles || userRoles.length == 0) { 4870 return null; 4871 } 4872 if (userRoles.includes('administrator')) { 4873 return 'administrator'; 4874 } else if (userRoles.includes('group_leader')) { 4875 return 'group_leader'; 4876 } else if (userRoles.includes('wdm_instructor')) { 4877 return 'instructor'; 4878 } 4879 return null; 4880} 4881function getCoursesByGroups(courseList) { 4882 let user_type = wisdmLdReportsGetUserType(); 4883 let filtered_courses = []; 4884 if ('group_leader' == user_type) { 4885 let course_groups = wisdm_learndash_reports_front_end_script_report_filters.course_groups; 4886 let group_course_list = []; 4887 if (course_groups.length > 0) { 4888 course_groups.forEach(function (course_group) { 4889 if (!('courses_enrolled' in course_group)) { 4890 return; 4891 } 4892 let courses = course_group.courses_enrolled;
4893 courses.forEach(function (course_id) { 4894 if (!group_course_list.includes(course_id)) { 4895 group_course_list.push(course_id); 4896 } 4897 }); 4898 }); 4899 } 4900 if (group_course_list.length > 0) { 4901 courseList.forEach(function (course) { 4902 if (group_course_list.includes(course.value)) { 4903 filtered_courses.push(course); 4904 } 4905 }); 4906 } 4907 } else if ('instructor' == user_type) { 4908 filtered_courses = wisdm_learndash_reports_front_end_script_report_filters.courses; 4909 } else { 4910 filtered_courses = courseList; 4911 } 4912 return filtered_courses; 4913} 4914function getQuizesByCoursesAccessible(courseList, quizes) { 4915 let user_type = wisdmLdReportsGetUserType(); 4916 let filtered_quizes = []; 4917 if ('group_leader' == user_type) { 4918 let courseIds = Array(); 4919 courseList.forEach(function (course) { 4920 courseIds.push(course.value); 4921 }); 4922 quizes.forEach(function (quiz) { 4923 if (courseIds.includes(parseInt(quiz.course_id))) { 4924 filtered_quizes.push(quiz); 4925 } 4926 }); 4927 } else if ('instructor' == user_type) { 4928 filtered_quizes = quizes; 4929 } else { 4930 filtered_quizes = quizes; 4931 } 4932 return filtered_quizes; 4933} 4934function getSelectionByValueId(selectionId) { 4935 let list = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; 4936 let selectedItem = { 4937 value: -1, 4938 label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('All', 'learndash-reports-by-wisdmlabs') 4939 }; 4940 if (-1 == selectionId) { 4941 return selectedItem; 4942 } 4943 if (list.length > 0) { 4944 list.forEach(function (item) { 4945 if (selectionId == item.value) { 4946 selectedItem = item; 4947 } 4948 }); 4949 } 4950 return selectedItem; 4951} 4952 4953/** 4954 * If user is the group admin this function returns an array of unique 4955 * user ids which are enrolled in the groups accessible to the current user. 4956 */ 4957function wrldGetGroupAdminUsers() { 4958 let user_accessible_groups = wisdm_learndash_reports_front_end_script_report_filters.course_groups; 4959 let allGroupUsers = Array(); 4960 let includedUserIds = Array(); 4961 if (user_accessible_groups.length < 1) { 4962 return allGroupUsers; 4963 } 4964 user_accessible_groups.forEach(function (group) { 4965 if (!('group_users' in group)) { 4966 return; 4967 } 4968 let groupUsers = group.group_users; 4969 groupUsers.forEach(function (user) { 4970 if (!includedUserIds.includes(user.id)) { 4971 allGroupUsers.push(user); 4972 includedUserIds.push(user.id); 4973 } 4974 }); 4975 }); 4976 return allGroupUsers; 4977} 4978document.addEventListener("DOMContentLoaded", function (event) { 4979 let elem = document.getElementsByClassName('wisdm-learndash-reports-report-filters front'); 4980 if (elem.length > 0) { 4981 ReactDOM.render(react__WEBPACK_IMPORTED_MODULE_6___default().createElement(ReportFilters), elem[0]); 4982 } 4983}); 4984 4985/***/ }), 4986
vendor: 924 bytes, lines 4987-5001
4987/***/ "./node_modules/clsx/dist/clsx.m.js": 4988/*!******************************************!*\ 4989 !*** ./node_modules/clsx/dist/clsx.m.js ***! 4990 \******************************************/ 4991/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 4992 4993"use strict"; 4994__webpack_require__.r(__webpack_exports__); 4995/* harmony export */ __webpack_require__.d(__webpack_exports__, { 4996/* harmony export */ "clsx": function() { return /* binding */ clsx; } 4997/* harmony export */ }); 4998function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ __webpack_exports__["default"] = (clsx); 4999 5000/***/ }), 5001
vendor: 66,309 bytes, lines 5002-6577
5002/***/ "./node_modules/daterangepicker/daterangepicker.js": 5003/*!*********************************************************!*\ 5004 !*** ./node_modules/daterangepicker/daterangepicker.js ***! 5005 \*********************************************************/ 5006/***/ (function(module, exports, __webpack_require__) { 5007 5008var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** 5009* @version: 3.1 5010* @author: Dan Grossman http://www.dangrossman.info/ 5011* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved. 5012* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php 5013* @website: http://www.daterangepicker.com/ 5014*/ 5015// Following the UMD template https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js 5016(function (root, factory) { 5017 if (true) { 5018 // AMD. Make globaly available as well 5019 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! moment */ "moment"), __webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (moment, jquery) { 5020 if (!jquery.fn) jquery.fn = {}; // webpack server rendering 5021 if (typeof moment !== 'function' && moment.hasOwnProperty('default')) moment = moment['default'] 5022 return factory(moment, jquery); 5023 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 5024 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 5025 } else { var moment, jQuery; } 5026}(this, function(moment, $) { 5027 var DateRangePicker = function(element, options, cb) { 5028 5029 //default settings for options 5030 this.parentEl = 'body'; 5031 this.element = $(element); 5032 this.startDate = moment().startOf('day'); 5033 this.endDate = moment().endOf('day'); 5034 this.minDate = false; 5035 this.maxDate = false; 5036 this.maxSpan = false; 5037 this.autoApply = false; 5038 this.singleDatePicker = false; 5039 this.showDropdowns = false; 5040 this.minYear = moment().subtract(100, 'year').format('YYYY'); 5041 this.maxYear = moment().add(100, 'year').format('YYYY'); 5042 this.showWeekNumbers = false; 5043 this.showISOWeekNumbers = false; 5044 this.showCustomRangeLabel = true; 5045 this.timePicker = false; 5046 this.timePicker24Hour = false; 5047 this.timePickerIncrement = 1; 5048 this.timePickerSeconds = false; 5049 this.linkedCalendars = true; 5050 this.autoUpdateInput = true; 5051 this.alwaysShowCalendars = false; 5052 this.ranges = {}; 5053 5054 this.opens = 'right'; 5055 if (this.element.hasClass('pull-right')) 5056 this.opens = 'left'; 5057 5058 this.drops = 'down'; 5059 if (this.element.hasClass('dropup')) 5060 this.drops = 'up'; 5061 5062 this.buttonClasses = 'btn btn-sm'; 5063 this.applyButtonClasses = 'btn-primary'; 5064 this.cancelButtonClasses = 'btn-default'; 5065 5066 this.locale = { 5067 direction: 'ltr', 5068 format: moment.localeData().longDateFormat('L'), 5069 separator: ' - ', 5070 applyLabel: 'Apply', 5071 cancelLabel: 'Cancel', 5072 weekLabel: 'W', 5073 customRangeLabel: 'Custom Range', 5074 daysOfWeek: moment.weekdaysMin(), 5075 monthNames: moment.monthsShort(), 5076 firstDay: moment.localeData().firstDayOfWeek() 5077 }; 5078 5079 this.callback = function() { }; 5080 5081 //some state information 5082 this.isShowing = false; 5083 this.leftCalendar = {}; 5084 this.rightCalendar = {}; 5085 5086 //custom options from user 5087 if (typeof options !== 'object' || options === null) 5088 options = {}; 5089 5090 //allow setting options with data attributes 5091 //data-api options will be overwritten with custom javascript options 5092 options = $.extend(this.element.data(), options); 5093 5094 //html template for the picker UI 5095 if (typeof options.template !== 'string' && !(options.template instanceof $)) 5096 options.template = 5097 '<div class="daterangepicker">' + 5098 '<div class="ranges"></div>' + 5099 '<div class="drp-calendar left">' + 5100 '<div class="calendar-table"></div>' + 5101 '<div class="calendar-time"></div>' + 5102 '</div>' + 5103 '<div class="drp-calendar right">' + 5104 '<div class="calendar-table"></div>' + 5105 '<div class="calendar-time"></div>' + 5106 '</div>' + 5107 '<div class="drp-buttons">' + 5108 '<span class="drp-selected"></span>' + 5109 '<button class="cancelBtn" type="button"></button>' + 5110 '<button class="applyBtn" disabled="disabled" type="button"></button> ' + 5111 '</div>' + 5112 '</div>'; 5113 5114 this.parentEl = (options.parentEl && $(options.parentEl).length) ? $(options.parentEl) : $(this.parentEl); 5115 this.container = $(options.template).appendTo(this.parentEl); 5116 5117 // 5118 // handle all the possible options overriding defaults 5119 // 5120 5121 if (typeof options.locale === 'object') { 5122 5123 if (typeof options.locale.direction === 'string') 5124 this.locale.direction = options.locale.direction; 5125 5126 if (typeof options.locale.format === 'string') 5127 this.locale.format = options.locale.format; 5128 5129 if (typeof options.locale.separator === 'string') 5130 this.locale.separator = options.locale.separator; 5131 5132 if (typeof options.locale.daysOfWeek === 'object') 5133 this.locale.daysOfWeek = options.locale.daysOfWeek.slice(); 5134 5135 if (typeof options.locale.monthNames === 'object') 5136 this.locale.monthNames = options.locale.monthNames.slice(); 5137 5138 if (typeof options.locale.firstDay === 'number') 5139 this.locale.firstDay = options.locale.firstDay; 5140 5141 if (typeof options.locale.applyLabel === 'string') 5142 this.locale.applyLabel = options.locale.applyLabel; 5143 5144 if (typeof options.locale.cancelLabel === 'string') 5145 this.locale.cancelLabel = options.locale.cancelLabel; 5146 5147 if (typeof options.locale.weekLabel === 'string') 5148 this.locale.weekLabel = options.locale.weekLabel; 5149 5150 if (typeof options.locale.customRangeLabel === 'string'){ 5151 //Support unicode chars in the custom range name. 5152 var elem = document.createElement('textarea'); 5153 elem.innerHTML = options.locale.customRangeLabel; 5154 var rangeHtml = elem.value; 5155 this.locale.customRangeLabel = rangeHtml; 5156 } 5157 } 5158 this.container.addClass(this.locale.direction); 5159 5160 if (typeof options.startDate === 'string') 5161 this.startDate = moment(options.startDate, this.locale.format); 5162 5163 if (typeof options.endDate === 'string') 5164 this.endDate = moment(options.endDate, this.locale.format); 5165 5166 if (typeof options.minDate === 'string') 5167 this.minDate = moment(options.minDate, this.locale.format); 5168 5169 if (typeof options.maxDate === 'string') 5170 this.maxDate = moment(options.maxDate, this.locale.format); 5171 5172 if (typeof options.startDate === 'object') 5173 this.startDate = moment(options.startDate); 5174 5175 if (typeof options.endDate === 'object') 5176 this.endDate = moment(options.endDate); 5177 5178 if (typeof options.minDate === 'object') 5179 this.minDate = moment(options.minDate); 5180 5181 if (typeof options.maxDate === 'object') 5182 this.maxDate = moment(options.maxDate); 5183 5184 // sanity check for bad options 5185 if (this.minDate && this.startDate.isBefore(this.minDate)) 5186 this.startDate = this.minDate.clone(); 5187 5188 // sanity check for bad options 5189 if (this.maxDate && this.endDate.isAfter(this.maxDate)) 5190 this.endDate = this.maxDate.clone(); 5191 5192 if (typeof options.applyButtonClasses === 'string') 5193 this.applyButtonClasses = options.applyButtonClasses; 5194 5195 if (typeof options.applyClass === 'string') //backwards compat 5196 this.applyButtonClasses = options.applyClass; 5197 5198 if (typeof options.cancelButtonClasses === 'string') 5199 this.cancelButtonClasses = options.cancelButtonClasses; 5200 5201 if (typeof options.cancelClass === 'string') //backwards compat 5202 this.cancelButtonClasses = options.cancelClass; 5203 5204 if (typeof options.maxSpan === 'object') 5205 this.maxSpan = options.maxSpan; 5206 5207 if (typeof options.dateLimit === 'object') //backwards compat 5208 this.maxSpan = options.dateLimit; 5209 5210 if (typeof options.opens === 'string') 5211 this.opens = options.opens; 5212 5213 if (typeof options.drops === 'string') 5214 this.drops = options.drops; 5215 5216 if (typeof options.showWeekNumbers === 'boolean') 5217 this.showWeekNumbers = options.showWeekNumbers; 5218 5219 if (typeof options.showISOWeekNumbers === 'boolean') 5220 this.showISOWeekNumbers = options.showISOWeekNumbers; 5221 5222 if (typeof options.buttonClasses === 'string') 5223 this.buttonClasses = options.buttonClasses; 5224 5225 if (typeof options.buttonClasses === 'object') 5226 this.buttonClasses = options.buttonClasses.join(' '); 5227 5228 if (typeof options.showDropdowns === 'boolean') 5229 this.showDropdowns = options.showDropdowns; 5230 5231 if (typeof options.minYear === 'number') 5232 this.minYear = options.minYear; 5233 5234 if (typeof options.maxYear === 'number') 5235 this.maxYear = options.maxYear; 5236 5237 if (typeof options.showCustomRangeLabel === 'boolean') 5238 this.showCustomRangeLabel = options.showCustomRangeLabel; 5239 5240 if (typeof options.singleDatePicker === 'boolean') { 5241 this.singleDatePicker = options.singleDatePicker; 5242 if (this.singleDatePicker) 5243 this.endDate = this.startDate.clone(); 5244 } 5245 5246 if (typeof options.timePicker === 'boolean') 5247 this.timePicker = options.timePicker; 5248 5249 if (typeof options.timePickerSeconds === 'boolean') 5250 this.timePickerSeconds = options.timePickerSeconds; 5251 5252 if (typeof options.timePickerIncrement === 'number') 5253 this.timePickerIncrement = options.timePickerIncrement; 5254 5255 if (typeof options.timePicker24Hour === 'boolean') 5256 this.timePicker24Hour = options.timePicker24Hour; 5257 5258 if (typeof options.autoApply === 'boolean') 5259 this.autoApply = options.autoApply; 5260 5261 if (typeof options.autoUpdateInput === 'boolean') 5262 this.autoUpdateInput = options.autoUpdateInput; 5263 5264 if (typeof options.linkedCalendars === 'boolean') 5265 this.linkedCalendars = options.linkedCalendars; 5266 5267 if (typeof options.isInvalidDate === 'function') 5268 this.isInvalidDate = options.isInvalidDate; 5269 5270 if (typeof options.isCustomDate === 'function') 5271 this.isCustomDate = options.isCustomDate; 5272 5273 if (typeof options.alwaysShowCalendars === 'boolean') 5274 this.alwaysShowCalendars = options.alwaysShowCalendars; 5275 5276 // update day names order to firstDay 5277 if (this.locale.firstDay != 0) { 5278 var iterator = this.locale.firstDay; 5279 while (iterator > 0) { 5280 this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()); 5281 iterator--; 5282 } 5283 } 5284 5285 var start, end, range; 5286 5287 //if no start/end dates set, check if an input element contains initial values 5288 if (typeof options.startDate === 'undefined' && typeof options.endDate === 'undefined') { 5289 if ($(this.element).is(':text')) { 5290 var val = $(this.element).val(), 5291 split = val.split(this.locale.separator); 5292 5293 start = end = null; 5294 5295 if (split.length == 2) { 5296 start = moment(split[0], this.locale.format); 5297 end = moment(split[1], this.locale.format); 5298 } else if (this.singleDatePicker && val !== "") { 5299 start = moment(val, this.locale.format); 5300 end = moment(val, this.locale.format); 5301 } 5302 if (start !== null && end !== null) { 5303 this.setStartDate(start); 5304 this.setEndDate(end); 5305 } 5306 } 5307 } 5308 5309 if (typeof options.ranges === 'object') { 5310 for (range in options.ranges) { 5311 5312 if (typeof options.ranges[range][0] === 'string') 5313 start = moment(options.ranges[range][0], this.locale.format); 5314 else 5315 start = moment(options.ranges[range][0]); 5316 5317 if (typeof options.ranges[range][1] === 'string') 5318 end = moment(options.ranges[range][1], this.locale.format); 5319 else 5320 end = moment(options.ranges[range][1]); 5321 5322 // If the start or end date exceed those allowed by the minDate or maxSpan 5323 // options, shorten the range to the allowable period. 5324 if (this.minDate && start.isBefore(this.minDate)) 5325 start = this.minDate.clone(); 5326 5327 var maxDate = this.maxDate; 5328 if (this.maxSpan && maxDate && start.clone().add(this.maxSpan).isAfter(maxDate)) 5329 maxDate = start.clone().add(this.maxSpan); 5330 if (maxDate && end.isAfter(maxDate)) 5331 end = maxDate.clone(); 5332 5333 // If the end of the range is before the minimum or the start of the range is 5334 // after the maximum, don't display this range option at all. 5335 if ((this.minDate && end.isBefore(this.minDate, this.timepicker ? 'minute' : 'day')) 5336 || (maxDate && start.isAfter(maxDate, this.timepicker ? 'minute' : 'day'))) 5337 continue; 5338 5339 //Support unicode chars in the range names. 5340 var elem = document.createElement('textarea'); 5341 elem.innerHTML = range; 5342 var rangeHtml = elem.value; 5343 5344 this.ranges[rangeHtml] = [start, end]; 5345 } 5346 5347 var list = '<ul>'; 5348 for (range in this.ranges) { 5349 list += '<li data-range-key="' + range + '">' + range + '</li>'; 5350 } 5351 if (this.showCustomRangeLabel) { 5352 list += '<li data-range-key="' + this.locale.customRangeLabel + '">' + this.locale.customRangeLabel + '</li>'; 5353 } 5354 list += '</ul>'; 5355 this.container.find('.ranges').prepend(list); 5356 } 5357 5358 if (typeof cb === 'function') { 5359 this.callback = cb; 5360 } 5361 5362 if (!this.timePicker) { 5363 this.startDate = this.startDate.startOf('day'); 5364 this.endDate = this.endDate.endOf('day'); 5365 this.container.find('.calendar-time').hide(); 5366 } 5367 5368 //can't be used together for now 5369 if (this.timePicker && this.autoApply) 5370 this.autoApply = false; 5371 5372 if (this.autoApply) { 5373 this.container.addClass('auto-apply'); 5374 } 5375 5376 if (typeof options.ranges === 'object') 5377 this.container.addClass('show-ranges'); 5378 5379 if (this.singleDatePicker) { 5380 this.container.addClass('single'); 5381 this.container.find('.drp-calendar.left').addClass('single'); 5382 this.container.find('.drp-calendar.left').show(); 5383 this.container.find('.drp-calendar.right').hide(); 5384 if (!this.timePicker && this.autoApply) { 5385 this.container.addClass('auto-apply'); 5386 } 5387 } 5388 5389 if ((typeof options.ranges === 'undefined' && !this.singleDatePicker) || this.alwaysShowCalendars) { 5390 this.container.addClass('show-calendar'); 5391 } 5392 5393 this.container.addClass('opens' + this.opens); 5394 5395 //apply CSS classes and labels to buttons 5396 this.container.find('.applyBtn, .cancelBtn').addClass(this.buttonClasses); 5397 if (this.applyButtonClasses.length) 5398 this.container.find('.applyBtn').addClass(this.applyButtonClasses); 5399 if (this.cancelButtonClasses.length) 5400 this.container.find('.cancelBtn').addClass(this.cancelButtonClasses); 5401 this.container.find('.applyBtn').html(this.locale.applyLabel); 5402 this.container.find('.cancelBtn').html(this.locale.cancelLabel); 5403 5404 // 5405 // event listeners 5406 // 5407 5408 this.container.find('.drp-calendar') 5409 .on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this)) 5410 .on('click.daterangepicker', '.next', $.proxy(this.clickNext, this)) 5411 .on('mousedown.daterangepicker', 'td.available', $.proxy(this.clickDate, this)) 5412 .on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this)) 5413 .on('change.daterangepicker', 'select.yearselect', $.proxy(this.monthOrYearChanged, this)) 5414 .on('change.daterangepicker', 'select.monthselect', $.proxy(this.monthOrYearChanged, this)) 5415 .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this)); 5416 5417 this.container.find('.ranges') 5418 .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this)); 5419 5420 this.container.find('.drp-buttons') 5421 .on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this)) 5422 .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this)); 5423 5424 if (this.element.is('input') || this.element.is('button')) { 5425 this.element.on({ 5426 'click.daterangepicker': $.proxy(this.show, this), 5427 'focus.daterangepicker': $.proxy(this.show, this), 5428 'keyup.daterangepicker': $.proxy(this.elementChanged, this), 5429 'keydown.daterangepicker': $.proxy(this.keydown, this) //IE 11 compatibility 5430 }); 5431 } else { 5432 this.element.on('click.daterangepicker', $.proxy(this.toggle, this)); 5433 this.element.on('keydown.daterangepicker', $.proxy(this.toggle, this)); 5434 } 5435 5436 // 5437 // if attached to a text input, set the initial value 5438 // 5439 5440 this.updateElement(); 5441 5442 }; 5443 5444 DateRangePicker.prototype = { 5445 5446 constructor: DateRangePicker, 5447 5448 setStartDate: function(startDate) { 5449 if (typeof startDate === 'string') 5450 this.startDate = moment(startDate, this.locale.format); 5451 5452 if (typeof startDate === 'object') 5453 this.startDate = moment(startDate); 5454 5455 if (!this.timePicker) 5456 this.startDate = this.startDate.startOf('day'); 5457 5458 if (this.timePicker && this.timePickerIncrement) 5459 this.startDate.minute(Math.round(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement); 5460 5461 if (this.minDate && this.startDate.isBefore(this.minDate)) { 5462 this.startDate = this.minDate.clone(); 5463 if (this.timePicker && this.timePickerIncrement) 5464 this.startDate.minute(Math.round(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement); 5465 } 5466 5467 if (this.maxDate && this.startDate.isAfter(this.maxDate)) { 5468 this.startDate = this.maxDate.clone(); 5469 if (this.timePicker && this.timePickerIncrement) 5470 this.startDate.minute(Math.floor(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement); 5471 } 5472 5473 if (!this.isShowing) 5474 this.updateElement(); 5475 5476 this.updateMonthsInView(); 5477 }, 5478 5479 setEndDate: function(endDate) { 5480 if (typeof endDate === 'string') 5481 this.endDate = moment(endDate, this.locale.format); 5482 5483 if (typeof endDate === 'object') 5484 this.endDate = moment(endDate); 5485 5486 if (!this.timePicker) 5487 this.endDate = this.endDate.endOf('day'); 5488 5489 if (this.timePicker && this.timePickerIncrement) 5490 this.endDate.minute(Math.round(this.endDate.minute() / this.timePickerIncrement) * this.timePickerIncrement); 5491 5492 if (this.endDate.isBefore(this.startDate)) 5493 this.endDate = this.startDate.clone(); 5494 5495 if (this.maxDate && this.endDate.isAfter(this.maxDate)) 5496 this.endDate = this.maxDate.clone(); 5497 5498 if (this.maxSpan && this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)) 5499 this.endDate = this.startDate.clone().add(this.maxSpan); 5500 5501 this.previousRightTime = this.endDate.clone(); 5502 5503 this.container.find('.drp-selected').html(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format)); 5504 5505 if (!this.isShowing) 5506 this.updateElement(); 5507 5508 this.updateMonthsInView(); 5509 }, 5510 5511 isInvalidDate: function() { 5512 return false; 5513 }, 5514 5515 isCustomDate: function() { 5516 return false; 5517 }, 5518 5519 updateView: function() { 5520 if (this.timePicker) { 5521 this.renderTimePicker('left'); 5522 this.renderTimePicker('right'); 5523 if (!this.endDate) { 5524 this.container.find('.right .calendar-time select').prop('disabled', true).addClass('disabled'); 5525 } else { 5526 this.container.find('.right .calendar-time select').prop('disabled', false).removeClass('disabled'); 5527 } 5528 } 5529 if (this.endDate) 5530 this.container.find('.drp-selected').html(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format)); 5531 this.updateMonthsInView(); 5532 this.updateCalendars(); 5533 this.updateFormInputs(); 5534 }, 5535 5536 updateMonthsInView: function() { 5537 if (this.endDate) { 5538 5539 //if both dates are visible already, do nothing 5540 if (!this.singleDatePicker && this.leftCalendar.month && this.rightCalendar.month && 5541 (this.startDate.format('YYYY-MM') == this.leftCalendar.month.format('YYYY-MM') || this.startDate.format('YYYY-MM') == this.rightCalendar.month.format('YYYY-MM')) 5542 && 5543 (this.endDate.format('YYYY-MM') == this.leftCalendar.month.format('YYYY-MM') || this.endDate.format('YYYY-MM') == this.rightCalendar.month.format('YYYY-MM')) 5544 ) { 5545 return; 5546 } 5547 5548 this.leftCalendar.month = this.startDate.clone().date(2); 5549 if (!this.linkedCalendars && (this.endDate.month() != this.startDate.month() || this.endDate.year() != this.startDate.year())) { 5550 this.rightCalendar.month = this.endDate.clone().date(2); 5551 } else { 5552 this.rightCalendar.month = this.startDate.clone().date(2).add(1, 'month'); 5553 } 5554 5555 } else { 5556 if (this.leftCalendar.month.format('YYYY-MM') != this.startDate.format('YYYY-MM') && this.rightCalendar.month.format('YYYY-MM') != this.startDate.format('YYYY-MM')) { 5557 this.leftCalendar.month = this.startDate.clone().date(2); 5558 this.rightCalendar.month = this.startDate.clone().date(2).add(1, 'month'); 5559 } 5560 } 5561 if (this.maxDate && this.linkedCalendars && !this.singleDatePicker && this.rightCalendar.month > this.maxDate) { 5562 this.rightCalendar.month = this.maxDate.clone().date(2); 5563 this.leftCalendar.month = this.maxDate.clone().date(2).subtract(1, 'month'); 5564 } 5565 }, 5566 5567 updateCalendars: function() { 5568 5569 if (this.timePicker) { 5570 var hour, minute, second; 5571 if (this.endDate) { 5572 hour = parseInt(this.container.find('.left .hourselect').val(), 10); 5573 minute = parseInt(this.container.find('.left .minuteselect').val(), 10); 5574 if (isNaN(minute)) { 5575 minute = parseInt(this.container.find('.left .minuteselect option:last').val(), 10); 5576 } 5577 second = this.timePickerSeconds ? parseInt(this.container.find('.left .secondselect').val(), 10) : 0; 5578 if (!this.timePicker24Hour) { 5579 var ampm = this.container.find('.left .ampmselect').val(); 5580 if (ampm === 'PM' && hour < 12) 5581 hour += 12; 5582 if (ampm === 'AM' && hour === 12) 5583 hour = 0; 5584 } 5585 } else { 5586 hour = parseInt(this.container.find('.right .hourselect').val(), 10); 5587 minute = parseInt(this.container.find('.right .minuteselect').val(), 10); 5588 if (isNaN(minute)) { 5589 minute = parseInt(this.container.find('.right .minuteselect option:last').val(), 10); 5590 } 5591 second = this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10) : 0; 5592 if (!this.timePicker24Hour) { 5593 var ampm = this.container.find('.right .ampmselect').val(); 5594 if (ampm === 'PM' && hour < 12) 5595 hour += 12; 5596 if (ampm === 'AM' && hour === 12) 5597 hour = 0; 5598 } 5599 } 5600 this.leftCalendar.month.hour(hour).minute(minute).second(second); 5601 this.rightCalendar.month.hour(hour).minute(minute).second(second); 5602 } 5603 5604 this.renderCalendar('left'); 5605 this.renderCalendar('right'); 5606 5607 //highlight any predefined range matching the current start and end dates 5608 this.container.find('.ranges li').removeClass('active'); 5609 if (this.endDate == null) return; 5610 5611 this.calculateChosenLabel(); 5612 }, 5613 5614 renderCalendar: function(side) { 5615 5616 // 5617 // Build the matrix of dates that will populate the calendar 5618 // 5619 5620 var calendar = side == 'left' ? this.leftCalendar : this.rightCalendar; 5621 var month = calendar.month.month(); 5622 var year = calendar.month.year(); 5623 var hour = calendar.month.hour(); 5624 var minute = calendar.month.minute(); 5625 var second = calendar.month.second(); 5626 var daysInMonth = moment([year, month]).daysInMonth(); 5627 var firstDay = moment([year, month, 1]); 5628 var lastDay = moment([year, month, daysInMonth]); 5629 var lastMonth = moment(firstDay).subtract(1, 'month').month(); 5630 var lastYear = moment(firstDay).subtract(1, 'month').year(); 5631 var daysInLastMonth = moment([lastYear, lastMonth]).daysInMonth(); 5632 var dayOfWeek = firstDay.day(); 5633 5634 //initialize a 6 rows x 7 columns array for the calendar 5635 var calendar = []; 5636 calendar.firstDay = firstDay; 5637 calendar.lastDay = lastDay; 5638 5639 for (var i = 0; i < 6; i++) { 5640 calendar[i] = []; 5641 } 5642 5643 //populate the calendar with date objects 5644 var startDay = daysInLastMonth - dayOfWeek + this.locale.firstDay + 1; 5645 if (startDay > daysInLastMonth) 5646 startDay -= 7; 5647 5648 if (dayOfWeek == this.locale.firstDay) 5649 startDay = daysInLastMonth - 6; 5650 5651 var curDate = moment([lastYear, lastMonth, startDay, 12, minute, second]); 5652 5653 var col, row; 5654 for (var i = 0, col = 0, row = 0; i < 42; i++, col++, curDate = moment(curDate).add(24, 'hour')) { 5655 if (i > 0 && col % 7 === 0) { 5656 col = 0; 5657 row++; 5658 } 5659 calendar[row][col] = curDate.clone().hour(hour).minute(minute).second(second); 5660 curDate.hour(12); 5661 5662 if (this.minDate && calendar[row][col].format('YYYY-MM-DD') == this.minDate.format('YYYY-MM-DD') && calendar[row][col].isBefore(this.minDate) && side == 'left') { 5663 calendar[row][col] = this.minDate.clone(); 5664 } 5665 5666 if (this.maxDate && calendar[row][col].format('YYYY-MM-DD') == this.maxDate.format('YYYY-MM-DD') && calendar[row][col].isAfter(this.maxDate) && side == 'right') { 5667 calendar[row][col] = this.maxDate.clone(); 5668 } 5669 5670 } 5671 5672 //make the calendar object available to hoverDate/clickDate 5673 if (side == 'left') { 5674 this.leftCalendar.calendar = calendar; 5675 } else { 5676 this.rightCalendar.calendar = calendar; 5677 } 5678 5679 // 5680 // Display the calendar 5681 // 5682 5683 var minDate = side == 'left' ? this.minDate : this.startDate; 5684 var maxDate = this.maxDate; 5685 var selected = side == 'left' ? this.startDate : this.endDate; 5686 var arrow = this.locale.direction == 'ltr' ? {left: 'chevron-left', right: 'chevron-right'} : {left: 'chevron-right', right: 'chevron-left'}; 5687 5688 var html = '<table class="table-condensed">'; 5689 html += '<thead>'; 5690 html += '<tr>'; 5691 5692 // add empty cell for week number 5693 if (this.showWeekNumbers || this.showISOWeekNumbers) 5694 html += '<th></th>'; 5695 5696 if ((!minDate || minDate.isBefore(calendar.firstDay)) && (!this.linkedCalendars || side == 'left')) { 5697 html += '<th class="prev available"><span></span></th>'; 5698 } else { 5699 html += '<th></th>'; 5700 } 5701 5702 var dateHtml = this.locale.monthNames[calendar[1][1].month()] + calendar[1][1].format(" YYYY"); 5703 5704 if (this.showDropdowns) { 5705 var currentMonth = calendar[1][1].month(); 5706 var currentYear = calendar[1][1].year(); 5707 var maxYear = (maxDate && maxDate.year()) || (this.maxYear); 5708 var minYear = (minDate && minDate.year()) || (this.minYear); 5709 var inMinYear = currentYear == minYear; 5710 var inMaxYear = currentYear == maxYear; 5711 5712 var monthHtml = '<select class="monthselect">'; 5713 for (var m = 0; m < 12; m++) { 5714 if ((!inMinYear || (minDate && m >= minDate.month())) && (!inMaxYear || (maxDate && m <= maxDate.month()))) { 5715 monthHtml += "<option value='" + m + "'" + 5716 (m === currentMonth ? " selected='selected'" : "") + 5717 ">" + this.locale.monthNames[m] + "</option>"; 5718 } else { 5719 monthHtml += "<option value='" + m + "'" + 5720 (m === currentMonth ? " selected='selected'" : "") + 5721 " disabled='disabled'>" + this.locale.monthNames[m] + "</option>"; 5722 } 5723 } 5724 monthHtml += "</select>"; 5725 5726 var yearHtml = '<select class="yearselect">'; 5727 for (var y = minYear; y <= maxYear; y++) { 5728 yearHtml += '<option value="' + y + '"' + 5729 (y === currentYear ? ' selected="selected"' : '') + 5730 '>' + y + '</option>'; 5731 } 5732 yearHtml += '</select>'; 5733 5734 dateHtml = monthHtml + yearHtml; 5735 } 5736 5737 html += '<th colspan="5" class="month">' + dateHtml + '</th>'; 5738 if ((!maxDate || maxDate.isAfter(calendar.lastDay)) && (!this.linkedCalendars || side == 'right' || this.singleDatePicker)) { 5739 html += '<th class="next available"><span></span></th>'; 5740 } else { 5741 html += '<th></th>'; 5742 } 5743 5744 html += '</tr>'; 5745 html += '<tr>'; 5746 5747 // add week number label 5748 if (this.showWeekNumbers || this.showISOWeekNumbers) 5749 html += '<th class="week">' + this.locale.weekLabel + '</th>'; 5750 5751 $.each(this.locale.daysOfWeek, function(index, dayOfWeek) { 5752 html += '<th>' + dayOfWeek + '</th>'; 5753 }); 5754 5755 html += '</tr>'; 5756 html += '</thead>'; 5757 html += '<tbody>'; 5758 5759 //adjust maxDate to reflect the maxSpan setting in order to 5760 //grey out end dates beyond the maxSpan 5761 if (this.endDate == null && this.maxSpan) { 5762 var maxLimit = this.startDate.clone().add(this.maxSpan).endOf('day'); 5763 if (!maxDate || maxLimit.isBefore(maxDate)) { 5764 maxDate = maxLimit; 5765 } 5766 } 5767 5768 for (var row = 0; row < 6; row++) { 5769 html += '<tr>'; 5770 5771 // add week number 5772 if (this.showWeekNumbers) 5773 html += '<td class="week">' + calendar[row][0].week() + '</td>'; 5774 else if (this.showISOWeekNumbers) 5775 html += '<td class="week">' + calendar[row][0].isoWeek() + '</td>'; 5776 5777 for (var col = 0; col < 7; col++) { 5778 5779 var classes = []; 5780 5781 //highlight today's date 5782 if (calendar[row][col].isSame(new Date(), "day")) 5783 classes.push('today'); 5784 5785 //highlight weekends 5786 if (calendar[row][col].isoWeekday() > 5) 5787 classes.push('weekend'); 5788 5789 //grey out the dates in other months displayed at beginning and end of this calendar 5790 if (calendar[row][col].month() != calendar[1][1].month()) 5791 classes.push('off', 'ends'); 5792 5793 //don't allow selection of dates before the minimum date 5794 if (this.minDate && calendar[row][col].isBefore(this.minDate, 'day')) 5795 classes.push('off', 'disabled'); 5796 5797 //don't allow selection of dates after the maximum date 5798 if (maxDate && calendar[row][col].isAfter(maxDate, 'day')) 5799 classes.push('off', 'disabled'); 5800 5801 //don't allow selection of date if a custom function decides it's invalid 5802 if (this.isInvalidDate(calendar[row][col])) 5803 classes.push('off', 'disabled'); 5804 5805 //highlight the currently selected start date 5806 if (calendar[row][col].format('YYYY-MM-DD') == this.startDate.format('YYYY-MM-DD')) 5807 classes.push('active', 'start-date'); 5808 5809 //highlight the currently selected end date 5810 if (this.endDate != null && calendar[row][col].format('YYYY-MM-DD') == this.endDate.format('YYYY-MM-DD')) 5811 classes.push('active', 'end-date'); 5812 5813 //highlight dates in-between the selected dates 5814 if (this.endDate != null && calendar[row][col] > this.startDate && calendar[row][col] < this.endDate) 5815 classes.push('in-range'); 5816 5817 //apply custom classes for this date 5818 var isCustom = this.isCustomDate(calendar[row][col]); 5819 if (isCustom !== false) { 5820 if (typeof isCustom === 'string') 5821 classes.push(isCustom); 5822 else 5823 Array.prototype.push.apply(classes, isCustom); 5824 } 5825 5826 var cname = '', disabled = false; 5827 for (var i = 0; i < classes.length; i++) { 5828 cname += classes[i] + ' '; 5829 if (classes[i] == 'disabled') 5830 disabled = true; 5831 } 5832 if (!disabled) 5833 cname += 'available'; 5834 5835 html += '<td class="' + cname.replace(/^\s+|\s+$/g, '') + '" data-title="' + 'r' + row + 'c' + col + '">' + calendar[row][col].date() + '</td>'; 5836 5837 } 5838 html += '</tr>'; 5839 } 5840 5841 html += '</tbody>'; 5842 html += '</table>'; 5843 5844 this.container.find('.drp-calendar.' + side + ' .calendar-table').html(html); 5845 5846 }, 5847 5848 renderTimePicker: function(side) { 5849 5850 // Don't bother updating the time picker if it's currently disabled 5851 // because an end date hasn't been clicked yet 5852 if (side == 'right' && !this.endDate) return; 5853 5854 var html, selected, minDate, maxDate = this.maxDate; 5855 5856 if (this.maxSpan && (!this.maxDate || this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))) 5857 maxDate = this.startDate.clone().add(this.maxSpan); 5858 5859 if (side == 'left') { 5860 selected = this.startDate.clone(); 5861 minDate = this.minDate; 5862 } else if (side == 'right') { 5863 selected = this.endDate.clone(); 5864 minDate = this.startDate; 5865 5866 //Preserve the time already selected 5867 var timeSelector = this.container.find('.drp-calendar.right .calendar-time'); 5868 if (timeSelector.html() != '') { 5869 5870 selected.hour(!isNaN(selected.hour()) ? selected.hour() : timeSelector.find('.hourselect option:selected').val()); 5871 selected.minute(!isNaN(selected.minute()) ? selected.minute() : timeSelector.find('.minuteselect option:selected').val()); 5872 selected.second(!isNaN(selected.second()) ? selected.second() : timeSelector.find('.secondselect option:selected').val()); 5873 5874 if (!this.timePicker24Hour) { 5875 var ampm = timeSelector.find('.ampmselect option:selected').val(); 5876 if (ampm === 'PM' && selected.hour() < 12) 5877 selected.hour(selected.hour() + 12); 5878 if (ampm === 'AM' && selected.hour() === 12) 5879 selected.hour(0); 5880 } 5881 5882 } 5883 5884 if (selected.isBefore(this.startDate)) 5885 selected = this.startDate.clone(); 5886 5887 if (maxDate && selected.isAfter(maxDate)) 5888 selected = maxDate.clone(); 5889 5890 } 5891 5892 // 5893 // hours 5894 // 5895 5896 html = '<select class="hourselect">'; 5897 5898 var start = this.timePicker24Hour ? 0 : 1; 5899 var end = this.timePicker24Hour ? 23 : 12; 5900 5901 for (var i = start; i <= end; i++) { 5902 var i_in_24 = i; 5903 if (!this.timePicker24Hour) 5904 i_in_24 = selected.hour() >= 12 ? (i == 12 ? 12 : i + 12) : (i == 12 ? 0 : i); 5905 5906 var time = selected.clone().hour(i_in_24); 5907 var disabled = false; 5908 if (minDate && time.minute(59).isBefore(minDate)) 5909 disabled = true; 5910 if (maxDate && time.minute(0).isAfter(maxDate)) 5911 disabled = true; 5912 5913 if (i_in_24 == selected.hour() && !disabled) { 5914 html += '<option value="' + i + '" selected="selected">' + i + '</option>'; 5915 } else if (disabled) { 5916 html += '<option value="' + i + '" disabled="disabled" class="disabled">' + i + '</option>'; 5917 } else { 5918 html += '<option value="' + i + '">' + i + '</option>'; 5919 } 5920 } 5921 5922 html += '</select> '; 5923 5924 // 5925 // minutes 5926 // 5927 5928 html += ': <select class="minuteselect">'; 5929 5930 for (var i = 0; i < 60; i += this.timePickerIncrement) { 5931 var padded = i < 10 ? '0' + i : i; 5932 var time = selected.clone().minute(i); 5933 5934 var disabled = false; 5935 if (minDate && time.second(59).isBefore(minDate)) 5936 disabled = true; 5937 if (maxDate && time.second(0).isAfter(maxDate)) 5938 disabled = true; 5939 5940 if (selected.minute() == i && !disabled) { 5941 html += '<option value="' + i + '" selected="selected">' + padded + '</option>'; 5942 } else if (disabled) { 5943 html += '<option value="' + i + '" disabled="disabled" class="disabled">' + padded + '</option>'; 5944 } else { 5945 html += '<option value="' + i + '">' + padded + '</option>'; 5946 } 5947 } 5948 5949 html += '</select> '; 5950 5951 // 5952 // seconds 5953 // 5954 5955 if (this.timePickerSeconds) { 5956 html += ': <select class="secondselect">'; 5957 5958 for (var i = 0; i < 60; i++) { 5959 var padded = i < 10 ? '0' + i : i; 5960 var time = selected.clone().second(i); 5961 5962 var disabled = false; 5963 if (minDate && time.isBefore(minDate)) 5964 disabled = true; 5965 if (maxDate && time.isAfter(maxDate)) 5966 disabled = true; 5967 5968 if (selected.second() == i && !disabled) { 5969 html += '<option value="' + i + '" selected="selected">' + padded + '</option>'; 5970 } else if (disabled) { 5971 html += '<option value="' + i + '" disabled="disabled" class="disabled">' + padded + '</option>'; 5972 } else { 5973 html += '<option value="' + i + '">' + padded + '</option>'; 5974 } 5975 } 5976 5977 html += '</select> '; 5978 } 5979 5980 // 5981 // AM/PM 5982 // 5983 5984 if (!this.timePicker24Hour) { 5985 html += '<select class="ampmselect">'; 5986 5987 var am_html = ''; 5988 var pm_html = ''; 5989 5990 if (minDate && selected.clone().hour(12).minute(0).second(0).isBefore(minDate)) 5991 am_html = ' disabled="disabled" class="disabled"'; 5992 5993 if (maxDate && selected.clone().hour(0).minute(0).second(0).isAfter(maxDate)) 5994 pm_html = ' disabled="disabled" class="disabled"'; 5995 5996 if (selected.hour() >= 12) { 5997 html += '<option value="AM"' + am_html + '>AM</option><option value="PM" selected="selected"' + pm_html + '>PM</option>'; 5998 } else { 5999 html += '<option value="AM" selected="selected"' + am_html + '>AM</option><option value="PM"' + pm_html + '>PM</option>'; 6000 } 6001 6002 html += '</select>'; 6003 } 6004 6005 this.container.find('.drp-calendar.' + side + ' .calendar-time').html(html); 6006 6007 }, 6008 6009 updateFormInputs: function() { 6010 6011 if (this.singleDatePicker || (this.endDate && (this.startDate.isBefore(this.endDate) || this.startDate.isSame(this.endDate)))) { 6012 this.container.find('button.applyBtn').prop('disabled', false); 6013 } else { 6014 this.container.find('button.applyBtn').prop('disabled', true); 6015 } 6016 6017 }, 6018 6019 move: function() { 6020 var parentOffset = { top: 0, left: 0 }, 6021 containerTop, 6022 drops = this.drops; 6023 6024 var parentRightEdge = $(window).width(); 6025 if (!this.parentEl.is('body')) { 6026 parentOffset = { 6027 top: this.parentEl.offset().top - this.parentEl.scrollTop(), 6028 left: this.parentEl.offset().left - this.parentEl.scrollLeft() 6029 }; 6030 parentRightEdge = this.parentEl[0].clientWidth + this.parentEl.offset().left; 6031 } 6032 6033 switch (drops) { 6034 case 'auto': 6035 containerTop = this.element.offset().top + this.element.outerHeight() - parentOffset.top; 6036 if (containerTop + this.container.outerHeight() >= this.parentEl[0].scrollHeight) { 6037 containerTop = this.element.offset().top - this.container.outerHeight() - parentOffset.top; 6038 drops = 'up'; 6039 } 6040 break; 6041 case 'up': 6042 containerTop = this.element.offset().top - this.container.outerHeight() - parentOffset.top; 6043 break; 6044 default: 6045 containerTop = this.element.offset().top + this.element.outerHeight() - parentOffset.top; 6046 break; 6047 } 6048 6049 // Force the container to it's actual width 6050 this.container.css({ 6051 top: 0, 6052 left: 0, 6053 right: 'auto' 6054 }); 6055 var containerWidth = this.container.outerWidth(); 6056 6057 this.container.toggleClass('drop-up', drops == 'up'); 6058 6059 if (this.opens == 'left') { 6060 var containerRight = parentRightEdge - this.element.offset().left - this.element.outerWidth(); 6061 if (containerWidth + containerRight > $(window).width()) { 6062 this.container.css({ 6063 top: containerTop, 6064 right: 'auto', 6065 left: 9 6066 }); 6067 } else { 6068 this.container.css({ 6069 top: containerTop, 6070 right: containerRight, 6071 left: 'auto' 6072 }); 6073 } 6074 } else if (this.opens == 'center') { 6075 var containerLeft = this.element.offset().left - parentOffset.left + this.element.outerWidth() / 2 6076 - containerWidth / 2; 6077 if (containerLeft < 0) { 6078 this.container.css({ 6079 top: containerTop, 6080 right: 'auto', 6081 left: 9 6082 }); 6083 } else if (containerLeft + containerWidth > $(window).width()) { 6084 this.container.css({ 6085 top: containerTop, 6086 left: 'auto', 6087 right: 0 6088 }); 6089 } else { 6090 this.container.css({ 6091 top: containerTop, 6092 left: containerLeft, 6093 right: 'auto' 6094 }); 6095 } 6096 } else { 6097 var containerLeft = this.element.offset().left - parentOffset.left; 6098 if (containerLeft + containerWidth > $(window).width()) { 6099 this.container.css({ 6100 top: containerTop, 6101 left: 'auto', 6102 right: 0 6103 }); 6104 } else { 6105 this.container.css({ 6106 top: containerTop, 6107 left: containerLeft, 6108 right: 'auto' 6109 }); 6110 } 6111 } 6112 }, 6113 6114 show: function(e) { 6115 if (this.isShowing) return; 6116 6117 // Create a click proxy that is private to this instance of datepicker, for unbinding 6118 this._outsideClickProxy = $.proxy(function(e) { this.outsideClick(e); }, this); 6119 6120 // Bind global datepicker mousedown for hiding and 6121 $(document) 6122 .on('mousedown.daterangepicker', this._outsideClickProxy) 6123 // also support mobile devices 6124 .on('touchend.daterangepicker', this._outsideClickProxy) 6125 // also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them 6126 .on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy) 6127 // and also close when focus changes to outside the picker (eg. tabbing between controls) 6128 .on('focusin.daterangepicker', this._outsideClickProxy); 6129 6130 // Reposition the picker if the window is resized while it's open 6131 $(window).on('resize.daterangepicker', $.proxy(function(e) { this.move(e); }, this)); 6132 6133 this.oldStartDate = this.startDate.clone(); 6134 this.oldEndDate = this.endDate.clone(); 6135 this.previousRightTime = this.endDate.clone(); 6136 6137 this.updateView(); 6138 this.container.show(); 6139 this.move(); 6140 this.element.trigger('show.daterangepicker', this); 6141 this.isShowing = true; 6142 }, 6143 6144 hide: function(e) { 6145 if (!this.isShowing) return; 6146 6147 //incomplete date selection, revert to last values 6148 if (!this.endDate) { 6149 this.startDate = this.oldStartDate.clone(); 6150 this.endDate = this.oldEndDate.clone(); 6151 } 6152 6153 //if a new date range was selected, invoke the user callback function 6154 if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate)) 6155 this.callback(this.startDate.clone(), this.endDate.clone(), this.chosenLabel); 6156 6157 //if picker is attached to a text input, update it 6158 this.updateElement(); 6159 6160 $(document).off('.daterangepicker'); 6161 $(window).off('.daterangepicker'); 6162 this.container.hide(); 6163 this.element.trigger('hide.daterangepicker', this); 6164 this.isShowing = false; 6165 }, 6166 6167 toggle: function(e) { 6168 if (this.isShowing) { 6169 this.hide(); 6170 } else { 6171 this.show(); 6172 } 6173 }, 6174 6175 outsideClick: function(e) { 6176 var target = $(e.target); 6177 // if the page is clicked anywhere except within the daterangerpicker/button 6178 // itself then call this.hide() 6179 if ( 6180 // ie modal dialog fix 6181 e.type == "focusin" || 6182 target.closest(this.element).length || 6183 target.closest(this.container).length || 6184 target.closest('.calendar-table').length 6185 ) return; 6186 this.hide(); 6187 this.element.trigger('outsideClick.daterangepicker', this); 6188 }, 6189 6190 showCalendars: function() { 6191 this.container.addClass('show-calendar'); 6192 this.move(); 6193 this.element.trigger('showCalendar.daterangepicker', this); 6194 }, 6195 6196 hideCalendars: function() { 6197 this.container.removeClass('show-calendar'); 6198 this.element.trigger('hideCalendar.daterangepicker', this); 6199 }, 6200 6201 clickRange: function(e) { 6202 var label = e.target.getAttribute('data-range-key'); 6203 this.chosenLabel = label; 6204 if (label == this.locale.customRangeLabel) { 6205 this.showCalendars(); 6206 } else { 6207 var dates = this.ranges[label]; 6208 this.startDate = dates[0]; 6209 this.endDate = dates[1]; 6210 6211 if (!this.timePicker) { 6212 this.startDate.startOf('day'); 6213 this.endDate.endOf('day'); 6214 } 6215 6216 if (!this.alwaysShowCalendars) 6217 this.hideCalendars(); 6218 this.clickApply(); 6219 } 6220 }, 6221 6222 clickPrev: function(e) { 6223 var cal = $(e.target).parents('.drp-calendar'); 6224 if (cal.hasClass('left')) { 6225 this.leftCalendar.month.subtract(1, 'month'); 6226 if (this.linkedCalendars) 6227 this.rightCalendar.month.subtract(1, 'month'); 6228 } else { 6229 this.rightCalendar.month.subtract(1, 'month'); 6230 } 6231 this.updateCalendars(); 6232 }, 6233 6234 clickNext: function(e) { 6235 var cal = $(e.target).parents('.drp-calendar'); 6236 if (cal.hasClass('left')) { 6237 this.leftCalendar.month.add(1, 'month'); 6238 } else { 6239 this.rightCalendar.month.add(1, 'month'); 6240 if (this.linkedCalendars) 6241 this.leftCalendar.month.add(1, 'month'); 6242 } 6243 this.updateCalendars(); 6244 }, 6245 6246 hoverDate: function(e) { 6247 6248 //ignore dates that can't be selected 6249 if (!$(e.target).hasClass('available')) return; 6250 6251 var title = $(e.target).attr('data-title'); 6252 var row = title.substr(1, 1); 6253 var col = title.substr(3, 1); 6254 var cal = $(e.target).parents('.drp-calendar'); 6255 var date = cal.hasClass('left') ? this.leftCalendar.calendar[row][col] : this.rightCalendar.calendar[row][col]; 6256 6257 //highlight the dates between the start date and the date being hovered as a potential end date 6258 var leftCalendar = this.leftCalendar; 6259 var rightCalendar = this.rightCalendar; 6260 var startDate = this.startDate; 6261 if (!this.endDate) { 6262 this.container.find('.drp-calendar tbody td').each(function(index, el) { 6263 6264 //skip week numbers, only look at dates 6265 if ($(el).hasClass('week')) return; 6266 6267 var title = $(el).attr('data-title'); 6268 var row = title.substr(1, 1); 6269 var col = title.substr(3, 1); 6270 var cal = $(el).parents('.drp-calendar'); 6271 var dt = cal.hasClass('left') ? leftCalendar.calendar[row][col] : rightCalendar.calendar[row][col]; 6272 6273 if ((dt.isAfter(startDate) && dt.isBefore(date)) || dt.isSame(date, 'day')) { 6274 $(el).addClass('in-range'); 6275 } else { 6276 $(el).removeClass('in-range'); 6277 } 6278 6279 }); 6280 } 6281 6282 }, 6283 6284 clickDate: function(e) { 6285 6286 if (!$(e.target).hasClass('available')) return; 6287 6288 var title = $(e.target).attr('data-title'); 6289 var row = title.substr(1, 1); 6290 var col = title.substr(3, 1); 6291 var cal = $(e.target).parents('.drp-calendar'); 6292 var date = cal.hasClass('left') ? this.leftCalendar.calendar[row][col] : this.rightCalendar.calendar[row][col]; 6293 6294 // 6295 // this function needs to do a few things: 6296 // * alternate between selecting a start and end date for the range, 6297 // * if the time picker is enabled, apply the hour/minute/second from the select boxes to the clicked date 6298 // * if autoapply is enabled, and an end date was chosen, apply the selection 6299 // * if single date picker mode, and time picker isn't enabled, apply the selection immediately 6300 // * if one of the inputs above the calendars was focused, cancel that manual input 6301 // 6302 6303 if (this.endDate || date.isBefore(this.startDate, 'day')) { //picking start 6304 if (this.timePicker) { 6305 var hour = parseInt(this.container.find('.left .hourselect').val(), 10); 6306 if (!this.timePicker24Hour) { 6307 var ampm = this.container.find('.left .ampmselect').val(); 6308 if (ampm === 'PM' && hour < 12) 6309 hour += 12; 6310 if (ampm === 'AM' && hour === 12) 6311 hour = 0; 6312 } 6313 var minute = parseInt(this.container.find('.left .minuteselect').val(), 10); 6314 if (isNaN(minute)) { 6315 minute = parseInt(this.container.find('.left .minuteselect option:last').val(), 10); 6316 } 6317 var second = this.timePickerSeconds ? parseInt(this.container.find('.left .secondselect').val(), 10) : 0; 6318 date = date.clone().hour(hour).minute(minute).second(second); 6319 } 6320 this.endDate = null; 6321 this.setStartDate(date.clone()); 6322 } else if (!this.endDate && date.isBefore(this.startDate)) { 6323 //special case: clicking the same date for start/end, 6324 //but the time of the end date is before the start date 6325 this.setEndDate(this.startDate.clone()); 6326 } else { // picking end 6327 if (this.timePicker) { 6328 var hour = parseInt(this.container.find('.right .hourselect').val(), 10); 6329 if (!this.timePicker24Hour) { 6330 var ampm = this.container.find('.right .ampmselect').val(); 6331 if (ampm === 'PM' && hour < 12) 6332 hour += 12; 6333 if (ampm === 'AM' && hour === 12) 6334 hour = 0; 6335 } 6336 var minute = parseInt(this.container.find('.right .minuteselect').val(), 10); 6337 if (isNaN(minute)) { 6338 minute = parseInt(this.container.find('.right .minuteselect option:last').val(), 10); 6339 } 6340 var second = this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10) : 0; 6341 date = date.clone().hour(hour).minute(minute).second(second); 6342 } 6343 this.setEndDate(date.clone()); 6344 if (this.autoApply) { 6345 this.calculateChosenLabel(); 6346 this.clickApply(); 6347 } 6348 } 6349 6350 if (this.singleDatePicker) { 6351 this.setEndDate(this.startDate); 6352 if (!this.timePicker && this.autoApply) 6353 this.clickApply(); 6354 } 6355 6356 this.updateView(); 6357 6358 //This is to cancel the blur event handler if the mouse was in one of the inputs 6359 e.stopPropagation(); 6360 6361 }, 6362 6363 calculateChosenLabel: function () { 6364 var customRange = true; 6365 var i = 0; 6366 for (var range in this.ranges) { 6367 if (this.timePicker) { 6368 var format = this.timePickerSeconds ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD HH:mm"; 6369 //ignore times when comparing dates if time picker seconds is not enabled 6370 if (this.startDate.format(format) == this.ranges[range][0].format(format) && this.endDate.format(format) == this.ranges[range][1].format(format)) { 6371 customRange = false; 6372 this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')').addClass('active').attr('data-range-key'); 6373 break; 6374 } 6375 } else { 6376 //ignore times when comparing dates if time picker is not enabled 6377 if (this.startDate.format('YYYY-MM-DD') == this.ranges[range][0].format('YYYY-MM-DD') && this.endDate.format('YYYY-MM-DD') == this.ranges[range][1].format('YYYY-MM-DD')) { 6378 customRange = false; 6379 this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')').addClass('active').attr('data-range-key'); 6380 break; 6381 } 6382 } 6383 i++; 6384 } 6385 if (customRange) { 6386 if (this.showCustomRangeLabel) { 6387 this.chosenLabel = this.container.find('.ranges li:last').addClass('active').attr('data-range-key'); 6388 } else { 6389 this.chosenLabel = null; 6390 } 6391 this.showCalendars(); 6392 } 6393 }, 6394 6395 clickApply: function(e) { 6396 this.hide(); 6397 this.element.trigger('apply.daterangepicker', this); 6398 }, 6399 6400 clickCancel: function(e) { 6401 this.startDate = this.oldStartDate; 6402 this.endDate = this.oldEndDate; 6403 this.hide(); 6404 this.element.trigger('cancel.daterangepicker', this); 6405 }, 6406 6407 monthOrYearChanged: function(e) { 6408 var isLeft = $(e.target).closest('.drp-calendar').hasClass('left'), 6409 leftOrRight = isLeft ? 'left' : 'right', 6410 cal = this.container.find('.drp-calendar.'+leftOrRight); 6411 6412 // Month must be Number for new moment versions 6413 var month = parseInt(cal.find('.monthselect').val(), 10); 6414 var year = cal.find('.yearselect').val(); 6415 6416 if (!isLeft) { 6417 if (year < this.startDate.year() || (year == this.startDate.year() && month < this.startDate.month())) { 6418 month = this.startDate.month(); 6419 year = this.startDate.year(); 6420 } 6421 } 6422 6423 if (this.minDate) { 6424 if (year < this.minDate.year() || (year == this.minDate.year() && month < this.minDate.month())) { 6425 month = this.minDate.month(); 6426 year = this.minDate.year(); 6427 } 6428 } 6429 6430 if (this.maxDate) { 6431 if (year > this.maxDate.year() || (year == this.maxDate.year() && month > this.maxDate.month())) { 6432 month = this.maxDate.month(); 6433 year = this.maxDate.year(); 6434 } 6435 } 6436 6437 if (isLeft) { 6438 this.leftCalendar.month.month(month).year(year); 6439 if (this.linkedCalendars) 6440 this.rightCalendar.month = this.leftCalendar.month.clone().add(1, 'month'); 6441 } else { 6442 this.rightCalendar.month.month(month).year(year); 6443 if (this.linkedCalendars) 6444 this.leftCalendar.month = this.rightCalendar.month.clone().subtract(1, 'month'); 6445 } 6446 this.updateCalendars(); 6447 }, 6448 6449 timeChanged: function(e) { 6450 6451 var cal = $(e.target).closest('.drp-calendar'), 6452 isLeft = cal.hasClass('left'); 6453 6454 var hour = parseInt(cal.find('.hourselect').val(), 10); 6455 var minute = parseInt(cal.find('.minuteselect').val(), 10); 6456 if (isNaN(minute)) { 6457 minute = parseInt(cal.find('.minuteselect option:last').val(), 10); 6458 } 6459 var second = this.timePickerSeconds ? parseInt(cal.find('.secondselect').val(), 10) : 0; 6460 6461 if (!this.timePicker24Hour) { 6462 var ampm = cal.find('.ampmselect').val(); 6463 if (ampm === 'PM' && hour < 12) 6464 hour += 12; 6465 if (ampm === 'AM' && hour === 12) 6466 hour = 0; 6467 } 6468 6469 if (isLeft) { 6470 var start = this.startDate.clone(); 6471 start.hour(hour); 6472 start.minute(minute); 6473 start.second(second); 6474 this.setStartDate(start); 6475 if (this.singleDatePicker) { 6476 this.endDate = this.startDate.clone(); 6477 } else if (this.endDate && this.endDate.format('YYYY-MM-DD') == start.format('YYYY-MM-DD') && this.endDate.isBefore(start)) { 6478 this.setEndDate(start.clone()); 6479 } 6480 } else if (this.endDate) { 6481 var end = this.endDate.clone(); 6482 end.hour(hour); 6483 end.minute(minute); 6484 end.second(second); 6485 this.setEndDate(end); 6486 } 6487 6488 //update the calendars so all clickable dates reflect the new time component 6489 this.updateCalendars(); 6490 6491 //update the form inputs above the calendars with the new time 6492 this.updateFormInputs(); 6493 6494 //re-render the time pickers because changing one selection can affect what's enabled in another 6495 this.renderTimePicker('left'); 6496 this.renderTimePicker('right'); 6497 6498 }, 6499 6500 elementChanged: function() { 6501 if (!this.element.is('input')) return; 6502 if (!this.element.val().length) return; 6503 6504 var dateString = this.element.val().split(this.locale.separator), 6505 start = null, 6506 end = null; 6507 6508 if (dateString.length === 2) { 6509 start = moment(dateString[0], this.locale.format); 6510 end = moment(dateString[1], this.locale.format); 6511 } 6512 6513 if (this.singleDatePicker || start === null || end === null) { 6514 start = moment(this.element.val(), this.locale.format); 6515 end = start; 6516 } 6517 6518 if (!start.isValid() || !end.isValid()) return; 6519 6520 this.setStartDate(start); 6521 this.setEndDate(end); 6522 this.updateView(); 6523 }, 6524 6525 keydown: function(e) { 6526 //hide on tab or enter 6527 if ((e.keyCode === 9) || (e.keyCode === 13)) { 6528 this.hide(); 6529 } 6530 6531 //hide on esc and prevent propagation 6532 if (e.keyCode === 27) { 6533 e.preventDefault(); 6534 e.stopPropagation(); 6535 6536 this.hide(); 6537 } 6538 }, 6539 6540 updateElement: function() { 6541 if (this.element.is('input') && this.autoUpdateInput) { 6542 var newValue = this.startDate.format(this.locale.format); 6543 if (!this.singleDatePicker) { 6544 newValue += this.locale.separator + this.endDate.format(this.locale.format); 6545 } 6546 if (newValue !== this.element.val()) { 6547 this.element.val(newValue).trigger('change'); 6548 } 6549 } 6550 }, 6551 6552 remove: function() { 6553 this.container.remove(); 6554 this.element.off('.daterangepicker'); 6555 this.element.removeData(); 6556 } 6557 6558 }; 6559 6560 $.fn.daterangepicker = function(options, callback) { 6561 var implementOptions = $.extend(true, {}, $.fn.daterangepicker.defaultOptions, options); 6562 this.each(function() { 6563 var el = $(this); 6564 if (el.data('daterangepicker')) 6565 el.data('daterangepicker').remove(); 6566 el.data('daterangepicker', new DateRangePicker(el, implementOptions, callback)); 6567 }); 6568 return this; 6569 }; 6570 6571 return DateRangePicker; 6572 6573})); 6574 6575 6576/***/ }), 6577
vendor: 3,267 bytes, lines 6578-6691
6578/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": 6579/*!**********************************************************************************!*\ 6580 !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***! 6581 \**********************************************************************************/ 6582/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 6583 6584"use strict"; 6585 6586 6587var reactIs = __webpack_require__(/*! react-is */ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js"); 6588 6589/** 6590 * Copyright 2015, Yahoo! Inc. 6591 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. 6592 */ 6593var REACT_STATICS = { 6594 childContextTypes: true, 6595 contextType: true, 6596 contextTypes: true, 6597 defaultProps: true, 6598 displayName: true, 6599 getDefaultProps: true, 6600 getDerivedStateFromError: true, 6601 getDerivedStateFromProps: true, 6602 mixins: true, 6603 propTypes: true, 6604 type: true 6605}; 6606var KNOWN_STATICS = { 6607 name: true, 6608 length: true, 6609 prototype: true, 6610 caller: true, 6611 callee: true, 6612 arguments: true, 6613 arity: true 6614}; 6615var FORWARD_REF_STATICS = { 6616 '$$typeof': true, 6617 render: true, 6618 defaultProps: true, 6619 displayName: true, 6620 propTypes: true 6621}; 6622var MEMO_STATICS = { 6623 '$$typeof': true, 6624 compare: true, 6625 defaultProps: true, 6626 displayName: true, 6627 propTypes: true, 6628 type: true 6629}; 6630var TYPE_STATICS = {}; 6631TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; 6632TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; 6633 6634function getStatics(component) { 6635 // React v16.11 and below 6636 if (reactIs.isMemo(component)) { 6637 return MEMO_STATICS; 6638 } // React v16.12 and above 6639 6640 6641 return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; 6642} 6643 6644var defineProperty = Object.defineProperty; 6645var getOwnPropertyNames = Object.getOwnPropertyNames; 6646var getOwnPropertySymbols = Object.getOwnPropertySymbols; 6647var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 6648var getPrototypeOf = Object.getPrototypeOf; 6649var objectPrototype = Object.prototype; 6650function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { 6651 if (typeof sourceComponent !== 'string') { 6652 // don't hoist over string (html) components 6653 if (objectPrototype) { 6654 var inheritedComponent = getPrototypeOf(sourceComponent); 6655 6656 if (inheritedComponent && inheritedComponent !== objectPrototype) { 6657 hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); 6658 } 6659 } 6660 6661 var keys = getOwnPropertyNames(sourceComponent); 6662 6663 if (getOwnPropertySymbols) { 6664 keys = keys.concat(getOwnPropertySymbols(sourceComponent)); 6665 } 6666 6667 var targetStatics = getStatics(targetComponent); 6668 var sourceStatics = getStatics(sourceComponent); 6669 6670 for (var i = 0; i < keys.length; ++i) { 6671 var key = keys[i]; 6672 6673 if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { 6674 var descriptor = getOwnPropertyDescriptor(sourceComponent, key); 6675 6676 try { 6677 // Avoid failures from read-only properties 6678 defineProperty(targetComponent, key, descriptor); 6679 } catch (e) {} 6680 } 6681 } 6682 } 6683 6684 return targetComponent; 6685} 6686 6687module.exports = hoistNonReactStatics; 6688 6689 6690/***/ }), 6691
vendor: 7,417 bytes, lines 6692-6883
6692/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js": 6693/*!************************************************************************************************!*\ 6694 !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js ***! 6695 \************************************************************************************************/ 6696/***/ (function(__unused_webpack_module, exports) { 6697 6698"use strict"; 6699/** @license React v16.13.1 6700 * react-is.development.js 6701 * 6702 * Copyright (c) Facebook, Inc. and its affiliates. 6703 * 6704 * This source code is licensed under the MIT license found in the 6705 * LICENSE file in the root directory of this source tree. 6706 */ 6707 6708 6709 6710 6711 6712if (true) { 6713 (function() { 6714'use strict'; 6715 6716// The Symbol used to tag the ReactElement-like types. If there is no native Symbol 6717// nor polyfill, then a plain number is used for performance. 6718var hasSymbol = typeof Symbol === 'function' && Symbol.for; 6719var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; 6720var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; 6721var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; 6722var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; 6723var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; 6724var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; 6725var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary 6726// (unstable) APIs that have been removed. Can we remove the symbols? 6727 6728var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; 6729var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; 6730var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; 6731var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; 6732var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; 6733var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; 6734var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; 6735var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; 6736var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; 6737var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; 6738var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; 6739 6740function isValidElementType(type) { 6741 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. 6742 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); 6743} 6744 6745function typeOf(object) { 6746 if (typeof object === 'object' && object !== null) { 6747 var $$typeof = object.$$typeof; 6748 6749 switch ($$typeof) { 6750 case REACT_ELEMENT_TYPE: 6751 var type = object.type; 6752 6753 switch (type) { 6754 case REACT_ASYNC_MODE_TYPE: 6755 case REACT_CONCURRENT_MODE_TYPE: 6756 case REACT_FRAGMENT_TYPE: 6757 case REACT_PROFILER_TYPE: 6758 case REACT_STRICT_MODE_TYPE: 6759 case REACT_SUSPENSE_TYPE: 6760 return type; 6761 6762 default: 6763 var $$typeofType = type && type.$$typeof; 6764 6765 switch ($$typeofType) { 6766 case REACT_CONTEXT_TYPE: 6767 case REACT_FORWARD_REF_TYPE: 6768 case REACT_LAZY_TYPE: 6769 case REACT_MEMO_TYPE: 6770 case REACT_PROVIDER_TYPE: 6771 return $$typeofType; 6772 6773 default: 6774 return $$typeof; 6775 } 6776 6777 } 6778 6779 case REACT_PORTAL_TYPE: 6780 return $$typeof; 6781 } 6782 } 6783 6784 return undefined; 6785} // AsyncMode is deprecated along with isAsyncMode 6786 6787var AsyncMode = REACT_ASYNC_MODE_TYPE; 6788var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; 6789var ContextConsumer = REACT_CONTEXT_TYPE; 6790var ContextProvider = REACT_PROVIDER_TYPE; 6791var Element = REACT_ELEMENT_TYPE; 6792var ForwardRef = REACT_FORWARD_REF_TYPE; 6793var Fragment = REACT_FRAGMENT_TYPE; 6794var Lazy = REACT_LAZY_TYPE; 6795var Memo = REACT_MEMO_TYPE; 6796var Portal = REACT_PORTAL_TYPE; 6797var Profiler = REACT_PROFILER_TYPE; 6798var StrictMode = REACT_STRICT_MODE_TYPE; 6799var Suspense = REACT_SUSPENSE_TYPE; 6800var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated 6801 6802function isAsyncMode(object) { 6803 { 6804 if (!hasWarnedAboutDeprecatedIsAsyncMode) { 6805 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint 6806 6807 console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); 6808 } 6809 } 6810 6811 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; 6812} 6813function isConcurrentMode(object) { 6814 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; 6815} 6816function isContextConsumer(object) { 6817 return typeOf(object) === REACT_CONTEXT_TYPE; 6818} 6819function isContextProvider(object) { 6820 return typeOf(object) === REACT_PROVIDER_TYPE; 6821} 6822function isElement(object) { 6823 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 6824} 6825function isForwardRef(object) { 6826 return typeOf(object) === REACT_FORWARD_REF_TYPE; 6827} 6828function isFragment(object) { 6829 return typeOf(object) === REACT_FRAGMENT_TYPE; 6830} 6831function isLazy(object) { 6832 return typeOf(object) === REACT_LAZY_TYPE; 6833} 6834function isMemo(object) { 6835 return typeOf(object) === REACT_MEMO_TYPE; 6836} 6837function isPortal(object) { 6838 return typeOf(object) === REACT_PORTAL_TYPE; 6839} 6840function isProfiler(object) { 6841 return typeOf(object) === REACT_PROFILER_TYPE; 6842} 6843function isStrictMode(object) { 6844 return typeOf(object) === REACT_STRICT_MODE_TYPE; 6845} 6846function isSuspense(object) { 6847 return typeOf(object) === REACT_SUSPENSE_TYPE; 6848} 6849 6850exports.AsyncMode = AsyncMode; 6851exports.ConcurrentMode = ConcurrentMode; 6852exports.ContextConsumer = ContextConsumer; 6853exports.ContextProvider = ContextProvider; 6854exports.Element = Element; 6855exports.ForwardRef = ForwardRef; 6856exports.Fragment = Fragment; 6857exports.Lazy = Lazy; 6858exports.Memo = Memo; 6859exports.Portal = Portal; 6860exports.Profiler = Profiler; 6861exports.StrictMode = StrictMode; 6862exports.Suspense = Suspense; 6863exports.isAsyncMode = isAsyncMode; 6864exports.isConcurrentMode = isConcurrentMode; 6865exports.isContextConsumer = isContextConsumer; 6866exports.isContextProvider = isContextProvider; 6867exports.isElement = isElement; 6868exports.isForwardRef = isForwardRef; 6869exports.isFragment = isFragment; 6870exports.isLazy = isLazy; 6871exports.isMemo = isMemo; 6872exports.isPortal = isPortal; 6873exports.isProfiler = isProfiler; 6874exports.isStrictMode = isStrictMode; 6875exports.isSuspense = isSuspense; 6876exports.isValidElementType = isValidElementType; 6877exports.typeOf = typeOf; 6878 })(); 6879} 6880 6881 6882/***/ }), 6883
vendor: 622 bytes, lines 6884-6899
6884/***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js": 6885/*!*****************************************************************************!*\ 6886 !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/index.js ***! 6887 \*****************************************************************************/ 6888/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 6889 6890"use strict"; 6891 6892 6893if (false) {} else { 6894 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js"); 6895} 6896 6897 6898/***/ }), 6899
vendor: 1,906 bytes, lines 6900-6965
6900/***/ "./node_modules/memoize-one/dist/memoize-one.esm.js": 6901/*!**********************************************************!*\ 6902 !*** ./node_modules/memoize-one/dist/memoize-one.esm.js ***! 6903 \**********************************************************/ 6904/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 6905 6906"use strict"; 6907__webpack_require__.r(__webpack_exports__); 6908/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6909/* harmony export */ "default": function() { return /* binding */ memoizeOne; } 6910/* harmony export */ }); 6911var safeIsNaN = Number.isNaN || 6912 function ponyfill(value) { 6913 return typeof value === 'number' && value !== value; 6914 }; 6915function isEqual(first, second) { 6916 if (first === second) { 6917 return true; 6918 } 6919 if (safeIsNaN(first) && safeIsNaN(second)) { 6920 return true; 6921 } 6922 return false; 6923} 6924function areInputsEqual(newInputs, lastInputs) { 6925 if (newInputs.length !== lastInputs.length) { 6926 return false; 6927 } 6928 for (var i = 0; i < newInputs.length; i++) { 6929 if (!isEqual(newInputs[i], lastInputs[i])) { 6930 return false; 6931 } 6932 } 6933 return true; 6934} 6935 6936function memoizeOne(resultFn, isEqual) { 6937 if (isEqual === void 0) { isEqual = areInputsEqual; } 6938 var cache = null; 6939 function memoized() { 6940 var newArgs = []; 6941 for (var _i = 0; _i < arguments.length; _i++) { 6942 newArgs[_i] = arguments[_i]; 6943 } 6944 if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) { 6945 return cache.lastResult; 6946 } 6947 var lastResult = resultFn.apply(this, newArgs); 6948 cache = { 6949 lastResult: lastResult, 6950 lastArgs: newArgs, 6951 lastThis: this, 6952 }; 6953 return lastResult; 6954 } 6955 memoized.clear = function clear() { 6956 cache = null; 6957 }; 6958 return memoized; 6959} 6960 6961 6962 6963 6964/***/ }), 6965
vendor: 448 bytes, lines 6966-6978
6966/***/ "./node_modules/daterangepicker/daterangepicker.css": 6967/*!**********************************************************!*\ 6968 !*** ./node_modules/daterangepicker/daterangepicker.css ***! 6969 \**********************************************************/ 6970/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 6971 6972"use strict"; 6973__webpack_require__.r(__webpack_exports__); 6974// extracted by mini-css-extract-plugin 6975 6976 6977/***/ }), 6978
vendor: 432 bytes, lines 6979-6991
6979/***/ "./node_modules/react-tabs/style/react-tabs.css": 6980/*!******************************************************!*\ 6981 !*** ./node_modules/react-tabs/style/react-tabs.css ***! 6982 \******************************************************/ 6983/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 6984 6985"use strict"; 6986__webpack_require__.r(__webpack_exports__); 6987// extracted by mini-css-extract-plugin 6988 6989 6990/***/ }), 6991
6992/***/ "./includes/blocks/src/dummy-quiz-reports/style.scss": 6993/*!***********************************************************!*\ 6994 !*** ./includes/blocks/src/dummy-quiz-reports/style.scss ***! 6995 \***********************************************************/ 6996/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 6997 6998"use strict"; 6999__webpack_require__.r(__webpack_exports__); 7000// extracted by mini-css-extract-plugin 7001 7002 7003/***/ }), 7004
7005/***/ "./includes/blocks/src/report-filters/index.scss": 7006/*!*******************************************************!*\ 7007 !*** ./includes/blocks/src/report-filters/index.scss ***! 7008 \*******************************************************/ 7009/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 7010 7011"use strict"; 7012__webpack_require__.r(__webpack_exports__); 7013// extracted by mini-css-extract-plugin 7014 7015 7016/***/ }), 7017
vendor: 2,348 bytes, lines 7018-7118
7018/***/ "./node_modules/object-assign/index.js": 7019/*!*********************************************!*\ 7020 !*** ./node_modules/object-assign/index.js ***! 7021 \*********************************************/ 7022/***/ (function(module) { 7023 7024"use strict"; 7025/* 7026object-assign 7027(c) Sindre Sorhus 7028@license MIT 7029*/ 7030 7031 7032/* eslint-disable no-unused-vars */ 7033var getOwnPropertySymbols = Object.getOwnPropertySymbols; 7034var hasOwnProperty = Object.prototype.hasOwnProperty; 7035var propIsEnumerable = Object.prototype.propertyIsEnumerable; 7036 7037function toObject(val) { 7038 if (val === null || val === undefined) { 7039 throw new TypeError('Object.assign cannot be called with null or undefined'); 7040 } 7041 7042 return Object(val); 7043} 7044 7045function shouldUseNative() { 7046 try { 7047 if (!Object.assign) { 7048 return false; 7049 } 7050 7051 // Detect buggy property enumeration order in older V8 versions. 7052 7053 // https://bugs.chromium.org/p/v8/issues/detail?id=4118 7054 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers 7055 test1[5] = 'de'; 7056 if (Object.getOwnPropertyNames(test1)[0] === '5') { 7057 return false; 7058 } 7059 7060 // https://bugs.chromium.org/p/v8/issues/detail?id=3056 7061 var test2 = {}; 7062 for (var i = 0; i < 10; i++) { 7063 test2['_' + String.fromCharCode(i)] = i; 7064 } 7065 var order2 = Object.getOwnPropertyNames(test2).map(function (n) { 7066 return test2[n]; 7067 }); 7068 if (order2.join('') !== '0123456789') { 7069 return false; 7070 } 7071 7072 // https://bugs.chromium.org/p/v8/issues/detail?id=3056 7073 var test3 = {}; 7074 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { 7075 test3[letter] = letter; 7076 }); 7077 if (Object.keys(Object.assign({}, test3)).join('') !== 7078 'abcdefghijklmnopqrst') { 7079 return false; 7080 } 7081 7082 return true; 7083 } catch (err) { 7084 // We don't expect any of the above to throw, but better to be safe. 7085 return false; 7086 } 7087} 7088 7089module.exports = shouldUseNative() ? Object.assign : function (target, source) { 7090 var from; 7091 var to = toObject(target); 7092 var symbols; 7093 7094 for (var s = 1; s < arguments.length; s++) { 7095 from = Object(arguments[s]); 7096 7097 for (var key in from) { 7098 if (hasOwnProperty.call(from, key)) { 7099 to[key] = from[key]; 7100 } 7101 } 7102 7103 if (getOwnPropertySymbols) { 7104 symbols = getOwnPropertySymbols(from); 7105 for (var i = 0; i < symbols.length; i++) { 7106 if (propIsEnumerable.call(from, symbols[i])) { 7107 to[symbols[i]] = from[symbols[i]]; 7108 } 7109 } 7110 } 7111 } 7112 7113 return to; 7114}; 7115 7116 7117/***/ }), 7118
vendor: 4,209 bytes, lines 7119-7232
7119/***/ "./node_modules/prop-types/checkPropTypes.js": 7120/*!***************************************************!*\ 7121 !*** ./node_modules/prop-types/checkPropTypes.js ***! 7122 \***************************************************/ 7123/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 7124 7125"use strict"; 7126/** 7127 * Copyright (c) 2013-present, Facebook, Inc. 7128 * 7129 * This source code is licensed under the MIT license found in the 7130 * LICENSE file in the root directory of this source tree. 7131 */ 7132 7133 7134 7135var printWarning = function() {}; 7136 7137if (true) { 7138 var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); 7139 var loggedTypeFailures = {}; 7140 var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); 7141 7142 printWarning = function(text) { 7143 var message = 'Warning: ' + text; 7144 if (typeof console !== 'undefined') { 7145 console.error(message); 7146 } 7147 try { 7148 // --- Welcome to debugging React --- 7149 // This error was thrown as a convenience so that you can use this stack 7150 // to find the callsite that caused this warning to fire. 7151 throw new Error(message); 7152 } catch (x) { /**/ } 7153 }; 7154} 7155 7156/** 7157 * Assert that the values match with the type specs. 7158 * Error messages are memorized and will only be shown once. 7159 * 7160 * @param {object} typeSpecs Map of name to a ReactPropType 7161 * @param {object} values Runtime values that need to be type-checked 7162 * @param {string} location e.g. "prop", "context", "child context" 7163 * @param {string} componentName Name of the component for error messages. 7164 * @param {?Function} getStack Returns the component stack. 7165 * @private 7166 */ 7167function checkPropTypes(typeSpecs, values, location, componentName, getStack) { 7168 if (true) { 7169 for (var typeSpecName in typeSpecs) { 7170 if (has(typeSpecs, typeSpecName)) { 7171 var error; 7172 // Prop type validation may throw. In case they do, we don't want to 7173 // fail the render phase where it didn't fail before. So we log it. 7174 // After these have been cleaned up, we'll let them throw. 7175 try { 7176 // This is intentionally an invariant that gets caught. It's the same 7177 // behavior as without this statement except with a better message. 7178 if (typeof typeSpecs[typeSpecName] !== 'function') { 7179 var err = Error( 7180 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 7181 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 7182 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' 7183 ); 7184 err.name = 'Invariant Violation'; 7185 throw err; 7186 } 7187 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 7188 } catch (ex) { 7189 error = ex; 7190 } 7191 if (error && !(error instanceof Error)) { 7192 printWarning( 7193 (componentName || 'React class') + ': type specification of ' + 7194 location + ' `' + typeSpecName + '` is invalid; the type checker ' + 7195 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 7196 'You may have forgotten to pass an argument to the type checker ' + 7197 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 7198 'shape all require an argument).' 7199 ); 7200 } 7201 if (error instanceof Error && !(error.message in loggedTypeFailures)) { 7202 // Only monitor this failure once because there tends to be a lot of the 7203 // same error. 7204 loggedTypeFailures[error.message] = true; 7205 7206 var stack = getStack ? getStack() : ''; 7207 7208 printWarning( 7209 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') 7210 ); 7211 } 7212 } 7213 } 7214 } 7215} 7216 7217/** 7218 * Resets warning cache when testing. 7219 * 7220 * @private 7221 */ 7222checkPropTypes.resetWarningCache = function() { 7223 if (true) { 7224 loggedTypeFailures = {}; 7225 } 7226} 7227 7228module.exports = checkPropTypes; 7229 7230 7231/***/ }), 7232
vendor: 23,220 bytes, lines 7233-7853
7233/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js": 7234/*!************************************************************!*\ 7235 !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***! 7236 \************************************************************/ 7237/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 7238 7239"use strict"; 7240/** 7241 * Copyright (c) 2013-present, Facebook, Inc. 7242 * 7243 * This source code is licensed under the MIT license found in the 7244 * LICENSE file in the root directory of this source tree. 7245 */ 7246 7247 7248 7249var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/prop-types/node_modules/react-is/index.js"); 7250var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); 7251 7252var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); 7253var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); 7254var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js"); 7255 7256var printWarning = function() {}; 7257 7258if (true) { 7259 printWarning = function(text) { 7260 var message = 'Warning: ' + text; 7261 if (typeof console !== 'undefined') { 7262 console.error(message); 7263 } 7264 try { 7265 // --- Welcome to debugging React --- 7266 // This error was thrown as a convenience so that you can use this stack 7267 // to find the callsite that caused this warning to fire. 7268 throw new Error(message); 7269 } catch (x) {} 7270 }; 7271} 7272 7273function emptyFunctionThatReturnsNull() { 7274 return null; 7275} 7276 7277module.exports = function(isValidElement, throwOnDirectAccess) { 7278 /* global Symbol */ 7279 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; 7280 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. 7281 7282 /** 7283 * Returns the iterator method function contained on the iterable object. 7284 * 7285 * Be sure to invoke the function with the iterable as context: 7286 * 7287 * var iteratorFn = getIteratorFn(myIterable); 7288 * if (iteratorFn) { 7289 * var iterator = iteratorFn.call(myIterable); 7290 * ... 7291 * } 7292 * 7293 * @param {?object} maybeIterable 7294 * @return {?function} 7295 */ 7296 function getIteratorFn(maybeIterable) { 7297 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 7298 if (typeof iteratorFn === 'function') { 7299 return iteratorFn; 7300 } 7301 } 7302 7303 /** 7304 * Collection of methods that allow declaration and validation of props that are 7305 * supplied to React components. Example usage: 7306 * 7307 * var Props = require('ReactPropTypes'); 7308 * var MyArticle = React.createClass({ 7309 * propTypes: { 7310 * // An optional string prop named "description". 7311 * description: Props.string, 7312 * 7313 * // A required enum prop named "category". 7314 * category: Props.oneOf(['News','Photos']).isRequired, 7315 * 7316 * // A prop named "dialog" that requires an instance of Dialog. 7317 * dialog: Props.instanceOf(Dialog).isRequired 7318 * }, 7319 * render: function() { ... } 7320 * }); 7321 * 7322 * A more formal specification of how these methods are used: 7323 * 7324 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) 7325 * decl := ReactPropTypes.{type}(.isRequired)? 7326 * 7327 * Each and every declaration produces a function with the same signature. This 7328 * allows the creation of custom validation functions. For example: 7329 * 7330 * var MyLink = React.createClass({ 7331 * propTypes: { 7332 * // An optional string or URI prop named "href". 7333 * href: function(props, propName, componentName) { 7334 * var propValue = props[propName]; 7335 * if (propValue != null && typeof propValue !== 'string' && 7336 * !(propValue instanceof URI)) { 7337 * return new Error( 7338 * 'Expected a string or an URI for ' + propName + ' in ' + 7339 * componentName 7340 * ); 7341 * } 7342 * } 7343 * }, 7344 * render: function() {...} 7345 * }); 7346 * 7347 * @internal 7348 */ 7349 7350 var ANONYMOUS = '<<anonymous>>'; 7351 7352 // Important! 7353 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. 7354 var ReactPropTypes = { 7355 array: createPrimitiveTypeChecker('array'), 7356 bigint: createPrimitiveTypeChecker('bigint'), 7357 bool: createPrimitiveTypeChecker('boolean'), 7358 func: createPrimitiveTypeChecker('function'), 7359 number: createPrimitiveTypeChecker('number'), 7360 object: createPrimitiveTypeChecker('object'), 7361 string: createPrimitiveTypeChecker('string'), 7362 symbol: createPrimitiveTypeChecker('symbol'), 7363 7364 any: createAnyTypeChecker(), 7365 arrayOf: createArrayOfTypeChecker, 7366 element: createElementTypeChecker(), 7367 elementType: createElementTypeTypeChecker(), 7368 instanceOf: createInstanceTypeChecker, 7369 node: createNodeChecker(), 7370 objectOf: createObjectOfTypeChecker, 7371 oneOf: createEnumTypeChecker, 7372 oneOfType: createUnionTypeChecker, 7373 shape: createShapeTypeChecker, 7374 exact: createStrictShapeTypeChecker, 7375 }; 7376 7377 /** 7378 * inlined Object.is polyfill to avoid requiring consumers ship their own 7379 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is 7380 */ 7381 /*eslint-disable no-self-compare*/ 7382 function is(x, y) { 7383 // SameValue algorithm 7384 if (x === y) { 7385 // Steps 1-5, 7-10 7386 // Steps 6.b-6.e: +0 != -0 7387 return x !== 0 || 1 / x === 1 / y; 7388 } else { 7389 // Step 6.a: NaN == NaN 7390 return x !== x && y !== y; 7391 } 7392 } 7393 /*eslint-enable no-self-compare*/ 7394 7395 /** 7396 * We use an Error-like object for backward compatibility as people may call 7397 * PropTypes directly and inspect their output. However, we don't use real 7398 * Errors anymore. We don't inspect their stack anyway, and creating them 7399 * is prohibitively expensive if they are created too often, such as what 7400 * happens in oneOfType() for any type before the one that matched. 7401 */ 7402 function PropTypeError(message, data) { 7403 this.message = message; 7404 this.data = data && typeof data === 'object' ? data: {}; 7405 this.stack = ''; 7406 } 7407 // Make `instanceof Error` still work for returned errors. 7408 PropTypeError.prototype = Error.prototype; 7409 7410 function createChainableTypeChecker(validate) { 7411 if (true) { 7412 var manualPropTypeCallCache = {}; 7413 var manualPropTypeWarningCount = 0; 7414 } 7415 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { 7416 componentName = componentName || ANONYMOUS; 7417 propFullName = propFullName || propName; 7418 7419 if (secret !== ReactPropTypesSecret) { 7420 if (throwOnDirectAccess) { 7421 // New behavior only for users of `prop-types` package 7422 var err = new Error( 7423 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 7424 'Use `PropTypes.checkPropTypes()` to call them. ' + 7425 'Read more at http://fb.me/use-check-prop-types' 7426 ); 7427 err.name = 'Invariant Violation'; 7428 throw err; 7429 } else if ( true && typeof console !== 'undefined') { 7430 // Old behavior for people using React.PropTypes 7431 var cacheKey = componentName + ':' + propName; 7432 if ( 7433 !manualPropTypeCallCache[cacheKey] && 7434 // Avoid spamming the console because they are often not actionable except for lib authors 7435 manualPropTypeWarningCount < 3 7436 ) { 7437 printWarning( 7438 'You are manually calling a React.PropTypes validation ' + 7439 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 7440 'and will throw in the standalone `prop-types` package. ' + 7441 'You may be seeing this warning due to a third-party PropTypes ' + 7442 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' 7443 ); 7444 manualPropTypeCallCache[cacheKey] = true; 7445 manualPropTypeWarningCount++; 7446 } 7447 } 7448 } 7449 if (props[propName] == null) { 7450 if (isRequired) { 7451 if (props[propName] === null) { 7452 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); 7453 } 7454 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); 7455 } 7456 return null; 7457 } else { 7458 return validate(props, propName, componentName, location, propFullName); 7459 } 7460 } 7461 7462 var chainedCheckType = checkType.bind(null, false); 7463 chainedCheckType.isRequired = checkType.bind(null, true); 7464 7465 return chainedCheckType; 7466 } 7467 7468 function createPrimitiveTypeChecker(expectedType) { 7469 function validate(props, propName, componentName, location, propFullName, secret) { 7470 var propValue = props[propName]; 7471 var propType = getPropType(propValue); 7472 if (propType !== expectedType) { 7473 // `propValue` being instance of, say, date/regexp, pass the 'object' 7474 // check, but we can offer a more precise error message here rather than 7475 // 'of type `object`'. 7476 var preciseType = getPreciseType(propValue); 7477 7478 return new PropTypeError( 7479 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), 7480 {expectedType: expectedType} 7481 ); 7482 } 7483 return null; 7484 } 7485 return createChainableTypeChecker(validate); 7486 } 7487 7488 function createAnyTypeChecker() { 7489 return createChainableTypeChecker(emptyFunctionThatReturnsNull); 7490 } 7491 7492 function createArrayOfTypeChecker(typeChecker) { 7493 function validate(props, propName, componentName, location, propFullName) { 7494 if (typeof typeChecker !== 'function') { 7495 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); 7496 } 7497 var propValue = props[propName]; 7498 if (!Array.isArray(propValue)) { 7499 var propType = getPropType(propValue); 7500 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); 7501 } 7502 for (var i = 0; i < propValue.length; i++) { 7503 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); 7504 if (error instanceof Error) { 7505 return error; 7506 } 7507 } 7508 return null; 7509 } 7510 return createChainableTypeChecker(validate); 7511 } 7512 7513 function createElementTypeChecker() { 7514 function validate(props, propName, componentName, location, propFullName) { 7515 var propValue = props[propName]; 7516 if (!isValidElement(propValue)) { 7517 var propType = getPropType(propValue); 7518 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); 7519 } 7520 return null; 7521 } 7522 return createChainableTypeChecker(validate); 7523 } 7524 7525 function createElementTypeTypeChecker() { 7526 function validate(props, propName, componentName, location, propFullName) { 7527 var propValue = props[propName]; 7528 if (!ReactIs.isValidElementType(propValue)) { 7529 var propType = getPropType(propValue); 7530 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); 7531 } 7532 return null; 7533 } 7534 return createChainableTypeChecker(validate); 7535 } 7536 7537 function createInstanceTypeChecker(expectedClass) { 7538 function validate(props, propName, componentName, location, propFullName) { 7539 if (!(props[propName] instanceof expectedClass)) { 7540 var expectedClassName = expectedClass.name || ANONYMOUS; 7541 var actualClassName = getClassName(props[propName]); 7542 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); 7543 } 7544 return null; 7545 } 7546 return createChainableTypeChecker(validate); 7547 } 7548 7549 function createEnumTypeChecker(expectedValues) { 7550 if (!Array.isArray(expectedValues)) { 7551 if (true) { 7552 if (arguments.length > 1) { 7553 printWarning( 7554 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 7555 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' 7556 ); 7557 } else { 7558 printWarning('Invalid argument supplied to oneOf, expected an array.'); 7559 } 7560 } 7561 return emptyFunctionThatReturnsNull; 7562 } 7563 7564 function validate(props, propName, componentName, location, propFullName) { 7565 var propValue = props[propName]; 7566 for (var i = 0; i < expectedValues.length; i++) { 7567 if (is(propValue, expectedValues[i])) { 7568 return null; 7569 } 7570 } 7571 7572 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { 7573 var type = getPreciseType(value); 7574 if (type === 'symbol') { 7575 return String(value); 7576 } 7577 return value; 7578 }); 7579 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); 7580 } 7581 return createChainableTypeChecker(validate); 7582 } 7583 7584 function createObjectOfTypeChecker(typeChecker) { 7585 function validate(props, propName, componentName, location, propFullName) { 7586 if (typeof typeChecker !== 'function') { 7587 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); 7588 } 7589 var propValue = props[propName]; 7590 var propType = getPropType(propValue); 7591 if (propType !== 'object') { 7592 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); 7593 } 7594 for (var key in propValue) { 7595 if (has(propValue, key)) { 7596 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 7597 if (error instanceof Error) { 7598 return error; 7599 } 7600 } 7601 } 7602 return null; 7603 } 7604 return createChainableTypeChecker(validate); 7605 } 7606 7607 function createUnionTypeChecker(arrayOfTypeCheckers) { 7608 if (!Array.isArray(arrayOfTypeCheckers)) { 7609 true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0; 7610 return emptyFunctionThatReturnsNull; 7611 } 7612 7613 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 7614 var checker = arrayOfTypeCheckers[i]; 7615 if (typeof checker !== 'function') { 7616 printWarning( 7617 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 7618 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' 7619 ); 7620 return emptyFunctionThatReturnsNull; 7621 } 7622 } 7623 7624 function validate(props, propName, componentName, location, propFullName) { 7625 var expectedTypes = []; 7626 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 7627 var checker = arrayOfTypeCheckers[i]; 7628 var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); 7629 if (checkerResult == null) { 7630 return null; 7631 } 7632 if (checkerResult.data && has(checkerResult.data, 'expectedType')) { 7633 expectedTypes.push(checkerResult.data.expectedType); 7634 } 7635 } 7636 var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; 7637 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); 7638 } 7639 return createChainableTypeChecker(validate); 7640 } 7641 7642 function createNodeChecker() { 7643 function validate(props, propName, componentName, location, propFullName) { 7644 if (!isNode(props[propName])) { 7645 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); 7646 } 7647 return null; 7648 } 7649 return createChainableTypeChecker(validate); 7650 } 7651 7652 function invalidValidatorError(componentName, location, propFullName, key, type) { 7653 return new PropTypeError( 7654 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 7655 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' 7656 ); 7657 } 7658 7659 function createShapeTypeChecker(shapeTypes) { 7660 function validate(props, propName, componentName, location, propFullName) { 7661 var propValue = props[propName]; 7662 var propType = getPropType(propValue); 7663 if (propType !== 'object') { 7664 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); 7665 } 7666 for (var key in shapeTypes) { 7667 var checker = shapeTypes[key]; 7668 if (typeof checker !== 'function') { 7669 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); 7670 } 7671 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 7672 if (error) { 7673 return error; 7674 } 7675 } 7676 return null; 7677 } 7678 return createChainableTypeChecker(validate); 7679 } 7680 7681 function createStrictShapeTypeChecker(shapeTypes) { 7682 function validate(props, propName, componentName, location, propFullName) { 7683 var propValue = props[propName]; 7684 var propType = getPropType(propValue); 7685 if (propType !== 'object') { 7686 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); 7687 } 7688 // We need to check all keys in case some are required but missing from props. 7689 var allKeys = assign({}, props[propName], shapeTypes); 7690 for (var key in allKeys) { 7691 var checker = shapeTypes[key]; 7692 if (has(shapeTypes, key) && typeof checker !== 'function') { 7693 return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); 7694 } 7695 if (!checker) { 7696 return new PropTypeError( 7697 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + 7698 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + 7699 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') 7700 ); 7701 } 7702 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); 7703 if (error) { 7704 return error; 7705 } 7706 } 7707 return null; 7708 } 7709 7710 return createChainableTypeChecker(validate); 7711 } 7712 7713 function isNode(propValue) { 7714 switch (typeof propValue) { 7715 case 'number': 7716 case 'string': 7717 case 'undefined': 7718 return true; 7719 case 'boolean': 7720 return !propValue; 7721 case 'object': 7722 if (Array.isArray(propValue)) { 7723 return propValue.every(isNode); 7724 } 7725 if (propValue === null || isValidElement(propValue)) { 7726 return true; 7727 } 7728 7729 var iteratorFn = getIteratorFn(propValue); 7730 if (iteratorFn) { 7731 var iterator = iteratorFn.call(propValue); 7732 var step; 7733 if (iteratorFn !== propValue.entries) { 7734 while (!(step = iterator.next()).done) { 7735 if (!isNode(step.value)) { 7736 return false; 7737 } 7738 } 7739 } else { 7740 // Iterator will provide entry [k,v] tuples rather than values. 7741 while (!(step = iterator.next()).done) { 7742 var entry = step.value; 7743 if (entry) { 7744 if (!isNode(entry[1])) { 7745 return false; 7746 } 7747 } 7748 } 7749 } 7750 } else { 7751 return false; 7752 } 7753 7754 return true; 7755 default: 7756 return false; 7757 } 7758 } 7759 7760 function isSymbol(propType, propValue) { 7761 // Native Symbol. 7762 if (propType === 'symbol') { 7763 return true; 7764 } 7765 7766 // falsy value can't be a Symbol 7767 if (!propValue) { 7768 return false; 7769 } 7770 7771 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' 7772 if (propValue['@@toStringTag'] === 'Symbol') { 7773 return true; 7774 } 7775 7776 // Fallback for non-spec compliant Symbols which are polyfilled. 7777 if (typeof Symbol === 'function' && propValue instanceof Symbol) { 7778 return true; 7779 } 7780 7781 return false; 7782 } 7783 7784 // Equivalent of `typeof` but with special handling for array and regexp. 7785 function getPropType(propValue) { 7786 var propType = typeof propValue; 7787 if (Array.isArray(propValue)) { 7788 return 'array'; 7789 } 7790 if (propValue instanceof RegExp) { 7791 // Old webkits (at least until Android 4.0) return 'function' rather than 7792 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ 7793 // passes PropTypes.object. 7794 return 'object'; 7795 } 7796 if (isSymbol(propType, propValue)) { 7797 return 'symbol'; 7798 } 7799 return propType; 7800 } 7801 7802 // This handles more types than `getPropType`. Only used for error messages. 7803 // See `createPrimitiveTypeChecker`. 7804 function getPreciseType(propValue) { 7805 if (typeof propValue === 'undefined' || propValue === null) { 7806 return '' + propValue; 7807 } 7808 var propType = getPropType(propValue); 7809 if (propType === 'object') { 7810 if (propValue instanceof Date) { 7811 return 'date'; 7812 } else if (propValue instanceof RegExp) { 7813 return 'regexp'; 7814 } 7815 } 7816 return propType; 7817 } 7818 7819 // Returns a string that is postfixed to a warning about an invalid type. 7820 // For example, "undefined" or "of type array" 7821 function getPostfixForTypeWarning(value) { 7822 var type = getPreciseType(value); 7823 switch (type) { 7824 case 'array': 7825 case 'object': 7826 return 'an ' + type; 7827 case 'boolean': 7828 case 'date': 7829 case 'regexp': 7830 return 'a ' + type; 7831 default: 7832 return type; 7833 } 7834 } 7835 7836 // Returns class name of the object, if any. 7837 function getClassName(propValue) { 7838 if (!propValue.constructor || !propValue.constructor.name) { 7839 return ANONYMOUS; 7840 } 7841 return propValue.constructor.name; 7842 } 7843 7844 ReactPropTypes.checkPropTypes = checkPropTypes; 7845 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; 7846 ReactPropTypes.PropTypes = ReactPropTypes; 7847 7848 return ReactPropTypes; 7849}; 7850 7851 7852/***/ }), 7853
vendor: 918 bytes, lines 7854-7878
7854/***/ "./node_modules/prop-types/index.js": 7855/*!******************************************!*\ 7856 !*** ./node_modules/prop-types/index.js ***! 7857 \******************************************/ 7858/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 7859 7860/** 7861 * Copyright (c) 2013-present, Facebook, Inc. 7862 * 7863 * This source code is licensed under the MIT license found in the 7864 * LICENSE file in the root directory of this source tree. 7865 */ 7866 7867if (true) { 7868 var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/prop-types/node_modules/react-is/index.js"); 7869 7870 // By explicitly using `prop-types` you are opting into new development behavior. 7871 // http://fb.me/prop-types-in-prod 7872 var throwOnDirectAccess = true; 7873 module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); 7874} else {} 7875 7876 7877/***/ }), 7878
vendor: 618 bytes, lines 7879-7901
7879/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": 7880/*!*************************************************************!*\ 7881 !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! 7882 \*************************************************************/ 7883/***/ (function(module) { 7884 7885"use strict"; 7886/** 7887 * Copyright (c) 2013-present, Facebook, Inc. 7888 * 7889 * This source code is licensed under the MIT license found in the 7890 * LICENSE file in the root directory of this source tree. 7891 */ 7892 7893 7894 7895var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; 7896 7897module.exports = ReactPropTypesSecret; 7898 7899 7900/***/ }), 7901
vendor: 305 bytes, lines 7902-7912
7902/***/ "./node_modules/prop-types/lib/has.js": 7903/*!********************************************!*\ 7904 !*** ./node_modules/prop-types/lib/has.js ***! 7905 \********************************************/ 7906/***/ (function(module) { 7907 7908module.exports = Function.call.bind(Object.prototype.hasOwnProperty); 7909 7910 7911/***/ }), 7912
vendor: 7,365 bytes, lines 7913-8104
7913/***/ "./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": 7914/*!***********************************************************************************!*\ 7915 !*** ./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***! 7916 \***********************************************************************************/ 7917/***/ (function(__unused_webpack_module, exports) { 7918 7919"use strict"; 7920/** @license React v16.13.1 7921 * react-is.development.js 7922 * 7923 * Copyright (c) Facebook, Inc. and its affiliates. 7924 * 7925 * This source code is licensed under the MIT license found in the 7926 * LICENSE file in the root directory of this source tree. 7927 */ 7928 7929 7930 7931 7932 7933if (true) { 7934 (function() { 7935'use strict'; 7936 7937// The Symbol used to tag the ReactElement-like types. If there is no native Symbol 7938// nor polyfill, then a plain number is used for performance. 7939var hasSymbol = typeof Symbol === 'function' && Symbol.for; 7940var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; 7941var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; 7942var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; 7943var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; 7944var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; 7945var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; 7946var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary 7947// (unstable) APIs that have been removed. Can we remove the symbols? 7948 7949var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; 7950var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; 7951var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; 7952var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; 7953var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; 7954var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; 7955var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; 7956var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; 7957var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; 7958var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; 7959var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; 7960 7961function isValidElementType(type) { 7962 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. 7963 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); 7964} 7965 7966function typeOf(object) { 7967 if (typeof object === 'object' && object !== null) { 7968 var $$typeof = object.$$typeof; 7969 7970 switch ($$typeof) { 7971 case REACT_ELEMENT_TYPE: 7972 var type = object.type; 7973 7974 switch (type) { 7975 case REACT_ASYNC_MODE_TYPE: 7976 case REACT_CONCURRENT_MODE_TYPE: 7977 case REACT_FRAGMENT_TYPE: 7978 case REACT_PROFILER_TYPE: 7979 case REACT_STRICT_MODE_TYPE: 7980 case REACT_SUSPENSE_TYPE: 7981 return type; 7982 7983 default: 7984 var $$typeofType = type && type.$$typeof; 7985 7986 switch ($$typeofType) { 7987 case REACT_CONTEXT_TYPE: 7988 case REACT_FORWARD_REF_TYPE: 7989 case REACT_LAZY_TYPE: 7990 case REACT_MEMO_TYPE: 7991 case REACT_PROVIDER_TYPE: 7992 return $$typeofType; 7993 7994 default: 7995 return $$typeof; 7996 } 7997 7998 } 7999 8000 case REACT_PORTAL_TYPE: 8001 return $$typeof; 8002 } 8003 } 8004 8005 return undefined; 8006} // AsyncMode is deprecated along with isAsyncMode 8007 8008var AsyncMode = REACT_ASYNC_MODE_TYPE; 8009var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; 8010var ContextConsumer = REACT_CONTEXT_TYPE; 8011var ContextProvider = REACT_PROVIDER_TYPE; 8012var Element = REACT_ELEMENT_TYPE; 8013var ForwardRef = REACT_FORWARD_REF_TYPE; 8014var Fragment = REACT_FRAGMENT_TYPE; 8015var Lazy = REACT_LAZY_TYPE; 8016var Memo = REACT_MEMO_TYPE; 8017var Portal = REACT_PORTAL_TYPE; 8018var Profiler = REACT_PROFILER_TYPE; 8019var StrictMode = REACT_STRICT_MODE_TYPE; 8020var Suspense = REACT_SUSPENSE_TYPE; 8021var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated 8022 8023function isAsyncMode(object) { 8024 { 8025 if (!hasWarnedAboutDeprecatedIsAsyncMode) { 8026 hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint 8027 8028 console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); 8029 } 8030 } 8031 8032 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; 8033} 8034function isConcurrentMode(object) { 8035 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; 8036} 8037function isContextConsumer(object) { 8038 return typeOf(object) === REACT_CONTEXT_TYPE; 8039} 8040function isContextProvider(object) { 8041 return typeOf(object) === REACT_PROVIDER_TYPE; 8042} 8043function isElement(object) { 8044 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 8045} 8046function isForwardRef(object) { 8047 return typeOf(object) === REACT_FORWARD_REF_TYPE; 8048} 8049function isFragment(object) { 8050 return typeOf(object) === REACT_FRAGMENT_TYPE; 8051} 8052function isLazy(object) { 8053 return typeOf(object) === REACT_LAZY_TYPE; 8054} 8055function isMemo(object) { 8056 return typeOf(object) === REACT_MEMO_TYPE; 8057} 8058function isPortal(object) { 8059 return typeOf(object) === REACT_PORTAL_TYPE; 8060} 8061function isProfiler(object) { 8062 return typeOf(object) === REACT_PROFILER_TYPE; 8063} 8064function isStrictMode(object) { 8065 return typeOf(object) === REACT_STRICT_MODE_TYPE; 8066} 8067function isSuspense(object) { 8068 return typeOf(object) === REACT_SUSPENSE_TYPE; 8069} 8070 8071exports.AsyncMode = AsyncMode; 8072exports.ConcurrentMode = ConcurrentMode; 8073exports.ContextConsumer = ContextConsumer; 8074exports.ContextProvider = ContextProvider; 8075exports.Element = Element; 8076exports.ForwardRef = ForwardRef; 8077exports.Fragment = Fragment; 8078exports.Lazy = Lazy; 8079exports.Memo = Memo; 8080exports.Portal = Portal; 8081exports.Profiler = Profiler; 8082exports.StrictMode = StrictMode; 8083exports.Suspense = Suspense; 8084exports.isAsyncMode = isAsyncMode; 8085exports.isConcurrentMode = isConcurrentMode; 8086exports.isContextConsumer = isContextConsumer; 8087exports.isContextProvider = isContextProvider; 8088exports.isElement = isElement; 8089exports.isForwardRef = isForwardRef; 8090exports.isFragment = isFragment; 8091exports.isLazy = isLazy; 8092exports.isMemo = isMemo; 8093exports.isPortal = isPortal; 8094exports.isProfiler = isProfiler; 8095exports.isStrictMode = isStrictMode; 8096exports.isSuspense = isSuspense; 8097exports.isValidElementType = isValidElementType; 8098exports.typeOf = typeOf; 8099 })(); 8100} 8101 8102 8103/***/ }), 8104
vendor: 557 bytes, lines 8105-8120
8105/***/ "./node_modules/prop-types/node_modules/react-is/index.js": 8106/*!****************************************************************!*\ 8107 !*** ./node_modules/prop-types/node_modules/react-is/index.js ***! 8108 \****************************************************************/ 8109/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 8110 8111"use strict"; 8112 8113 8114if (false) {} else { 8115 module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); 8116} 8117 8118 8119/***/ }), 8120
vendor: 5,435 bytes, lines 8121-8189
8121/***/ "./node_modules/react-select/async/dist/react-select-async.esm.js": 8122/*!************************************************************************!*\ 8123 !*** ./node_modules/react-select/async/dist/react-select-async.esm.js ***! 8124 \************************************************************************/ 8125/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 8126 8127"use strict"; 8128__webpack_require__.r(__webpack_exports__); 8129/* harmony export */ __webpack_require__.d(__webpack_exports__, { 8130/* harmony export */ "useAsync": function() { return /* reexport safe */ _dist_useAsync_fd9b28d9_esm_js__WEBPACK_IMPORTED_MODULE_2__.u; } 8131/* harmony export */ }); 8132/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); 8133/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); 8134/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); 8135/* harmony import */ var _dist_Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../dist/Select-40119e12.esm.js */ "./node_modules/react-select/dist/Select-40119e12.esm.js"); 8136/* harmony import */ var _dist_useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../dist/useStateManager-7e1e8489.esm.js */ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js"); 8137/* harmony import */ var _dist_useAsync_fd9b28d9_esm_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../dist/useAsync-fd9b28d9.esm.js */ "./node_modules/react-select/dist/useAsync-fd9b28d9.esm.js"); 8138/* harmony import */ var _babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); 8139/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); 8140/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); 8141/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); 8142/* harmony import */ var _babel_runtime_helpers_createSuper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js"); 8143/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); 8144/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); 8145/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); 8146/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 8147/* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ "./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"); 8148/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); 8149/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react-dom */ "react-dom"); 8150/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_14__); 8151/* harmony import */ var use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! use-isomorphic-layout-effect */ "./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js"); 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177var AsyncSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) { 8178 var stateManagedProps = (0,_dist_useAsync_fd9b28d9_esm_js__WEBPACK_IMPORTED_MODULE_2__.u)(props); 8179 var selectProps = (0,_dist_useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_16__.u)(stateManagedProps); 8180 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_dist_Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_17__.S, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8181 ref: ref 8182 }, selectProps)); 8183}); 8184 8185/* harmony default export */ __webpack_exports__["default"] = (AsyncSelect); 8186 8187 8188/***/ }), 8189
vendor: 108,277 bytes, lines 8190-10785
8190/***/ "./node_modules/react-select/dist/Select-40119e12.esm.js": 8191/*!***************************************************************!*\ 8192 !*** ./node_modules/react-select/dist/Select-40119e12.esm.js ***! 8193 \***************************************************************/ 8194/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 8195 8196"use strict"; 8197__webpack_require__.r(__webpack_exports__); 8198/* harmony export */ __webpack_require__.d(__webpack_exports__, { 8199/* harmony export */ "S": function() { return /* binding */ Select; }, 8200/* harmony export */ "a": function() { return /* binding */ defaultProps; }, 8201/* harmony export */ "b": function() { return /* binding */ getOptionLabel$1; }, 8202/* harmony export */ "c": function() { return /* binding */ createFilter; }, 8203/* harmony export */ "d": function() { return /* binding */ defaultTheme; }, 8204/* harmony export */ "g": function() { return /* binding */ getOptionValue$1; }, 8205/* harmony export */ "m": function() { return /* binding */ mergeStyles; } 8206/* harmony export */ }); 8207/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); 8208/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); 8209/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); 8210/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); 8211/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); 8212/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js"); 8213/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); 8214/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react"); 8215/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__); 8216/* harmony import */ var _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./index-a86253bb.esm.js */ "./node_modules/react-select/dist/index-a86253bb.esm.js"); 8217/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); 8218/* harmony import */ var memoize_one__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! memoize-one */ "./node_modules/memoize-one/dist/memoize-one.esm.js"); 8219/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } 8235 8236// Assistive text to describe visual elements. Hidden for sighted users. 8237var _ref = false ? 0 : { 8238 name: "1f43avz-a11yText-A11yText", 8239 styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;", 8240 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */", 8241 toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2 8242}; 8243var A11yText = function A11yText(props) { 8244 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8245 css: _ref 8246 }, props)); 8247}; 8248 8249var defaultAriaLiveMessages = { 8250 guidance: function guidance(props) { 8251 var isSearchable = props.isSearchable, 8252 isMulti = props.isMulti, 8253 isDisabled = props.isDisabled, 8254 tabSelectsValue = props.tabSelectsValue, 8255 context = props.context; 8256 switch (context) { 8257 case 'menu': 8258 return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu").concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', "."); 8259 case 'input': 8260 return "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : ''); 8261 case 'value': 8262 return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; 8263 default: 8264 return ''; 8265 } 8266 }, 8267 onChange: function onChange(props) { 8268 var action = props.action, 8269 _props$label = props.label, 8270 label = _props$label === void 0 ? '' : _props$label, 8271 labels = props.labels, 8272 isDisabled = props.isDisabled; 8273 switch (action) { 8274 case 'deselect-option': 8275 case 'pop-value': 8276 case 'remove-value': 8277 return "option ".concat(label, ", deselected."); 8278 case 'clear': 8279 return 'All selected options have been cleared.'; 8280 case 'initial-input-focus': 8281 return "option".concat(labels.length > 1 ? 's' : '', " ").concat(labels.join(','), ", selected."); 8282 case 'select-option': 8283 return isDisabled ? "option ".concat(label, " is disabled. Select another option.") : "option ".concat(label, ", selected."); 8284 default: 8285 return ''; 8286 } 8287 }, 8288 onFocus: function onFocus(props) { 8289 var context = props.context, 8290 focused = props.focused, 8291 options = props.options, 8292 _props$label2 = props.label, 8293 label = _props$label2 === void 0 ? '' : _props$label2, 8294 selectValue = props.selectValue, 8295 isDisabled = props.isDisabled, 8296 isSelected = props.isSelected; 8297 var getArrayIndex = function getArrayIndex(arr, item) { 8298 return arr && arr.length ? "".concat(arr.indexOf(item) + 1, " of ").concat(arr.length) : ''; 8299 }; 8300 if (context === 'value' && selectValue) { 8301 return "value ".concat(label, " focused, ").concat(getArrayIndex(selectValue, focused), "."); 8302 } 8303 if (context === 'menu') { 8304 var disabled = isDisabled ? ' disabled' : ''; 8305 var status = "".concat(isSelected ? 'selected' : 'focused').concat(disabled); 8306 return "option ".concat(label, " ").concat(status, ", ").concat(getArrayIndex(options, focused), "."); 8307 } 8308 return ''; 8309 }, 8310 onFilter: function onFilter(props) { 8311 var inputValue = props.inputValue, 8312 resultsMessage = props.resultsMessage; 8313 return "".concat(resultsMessage).concat(inputValue ? ' for search term ' + inputValue : '', "."); 8314 } 8315}; 8316 8317var LiveRegion = function LiveRegion(props) { 8318 var ariaSelection = props.ariaSelection, 8319 focusedOption = props.focusedOption, 8320 focusedValue = props.focusedValue, 8321 focusableOptions = props.focusableOptions, 8322 isFocused = props.isFocused, 8323 selectValue = props.selectValue, 8324 selectProps = props.selectProps, 8325 id = props.id; 8326 var ariaLiveMessages = selectProps.ariaLiveMessages, 8327 getOptionLabel = selectProps.getOptionLabel, 8328 inputValue = selectProps.inputValue, 8329 isMulti = selectProps.isMulti, 8330 isOptionDisabled = selectProps.isOptionDisabled, 8331 isSearchable = selectProps.isSearchable, 8332 menuIsOpen = selectProps.menuIsOpen, 8333 options = selectProps.options, 8334 screenReaderStatus = selectProps.screenReaderStatus, 8335 tabSelectsValue = selectProps.tabSelectsValue; 8336 var ariaLabel = selectProps['aria-label']; 8337 var ariaLive = selectProps['aria-live']; 8338 8339 // Update aria live message configuration when prop changes 8340 var messages = (0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () { 8341 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, defaultAriaLiveMessages), ariaLiveMessages || {}); 8342 }, [ariaLiveMessages]); 8343 8344 // Update aria live selected option when prop changes 8345 var ariaSelected = (0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () { 8346 var message = ''; 8347 if (ariaSelection && messages.onChange) { 8348 var option = ariaSelection.option, 8349 selectedOptions = ariaSelection.options, 8350 removedValue = ariaSelection.removedValue, 8351 removedValues = ariaSelection.removedValues, 8352 value = ariaSelection.value; 8353 // select-option when !isMulti does not return option so we assume selected option is value 8354 var asOption = function asOption(val) { 8355 return !Array.isArray(val) ? val : null; 8356 }; 8357 8358 // If there is just one item from the action then get its label 8359 var selected = removedValue || option || asOption(value); 8360 var label = selected ? getOptionLabel(selected) : ''; 8361 8362 // If there are multiple items from the action then return an array of labels 8363 var multiSelected = selectedOptions || removedValues || undefined; 8364 var labels = multiSelected ? multiSelected.map(getOptionLabel) : []; 8365 var onChangeProps = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({ 8366 // multiSelected items are usually items that have already been selected 8367 // or set by the user as a default value so we assume they are not disabled 8368 isDisabled: selected && isOptionDisabled(selected, selectValue), 8369 label: label, 8370 labels: labels 8371 }, ariaSelection); 8372 message = messages.onChange(onChangeProps); 8373 } 8374 return message; 8375 }, [ariaSelection, messages, isOptionDisabled, selectValue, getOptionLabel]); 8376 var ariaFocused = (0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () { 8377 var focusMsg = ''; 8378 var focused = focusedOption || focusedValue; 8379 var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption)); 8380 if (focused && messages.onFocus) { 8381 var onFocusProps = { 8382 focused: focused, 8383 label: getOptionLabel(focused), 8384 isDisabled: isOptionDisabled(focused, selectValue), 8385 isSelected: isSelected, 8386 options: focusableOptions, 8387 context: focused === focusedOption ? 'menu' : 'value', 8388 selectValue: selectValue 8389 }; 8390 focusMsg = messages.onFocus(onFocusProps); 8391 } 8392 return focusMsg; 8393 }, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue]); 8394 var ariaResults = (0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () { 8395 var resultsMsg = ''; 8396 if (menuIsOpen && options.length && messages.onFilter) { 8397 var resultsMessage = screenReaderStatus({ 8398 count: focusableOptions.length 8399 }); 8400 resultsMsg = messages.onFilter({ 8401 inputValue: inputValue, 8402 resultsMessage: resultsMessage 8403 }); 8404 } 8405 return resultsMsg; 8406 }, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus]); 8407 var ariaGuidance = (0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () { 8408 var guidanceMsg = ''; 8409 if (messages.guidance) { 8410 var context = focusedValue ? 'value' : menuIsOpen ? 'menu' : 'input'; 8411 guidanceMsg = messages.guidance({ 8412 'aria-label': ariaLabel, 8413 context: context, 8414 isDisabled: focusedOption && isOptionDisabled(focusedOption, selectValue), 8415 isMulti: isMulti, 8416 isSearchable: isSearchable, 8417 tabSelectsValue: tabSelectsValue 8418 }); 8419 } 8420 return guidanceMsg; 8421 }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]); 8422 var ariaContext = "".concat(ariaFocused, " ").concat(ariaResults, " ").concat(ariaGuidance); 8423 var ScreenReaderText = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Fragment, null, (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", { 8424 id: "aria-selection" 8425 }, ariaSelected), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", { 8426 id: "aria-context" 8427 }, ariaContext)); 8428 var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus'; 8429 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Fragment, null, (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)(A11yText, { 8430 id: id 8431 }, isInitialFocus && ScreenReaderText), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)(A11yText, { 8432 "aria-live": ariaLive, 8433 "aria-atomic": "false", 8434 "aria-relevant": "additions text" 8435 }, isFocused && !isInitialFocus && ScreenReaderText)); 8436}; 8437 8438var diacritics = [{ 8439 base: 'A', 8440 letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F" 8441}, { 8442 base: 'AA', 8443 letters: "\uA732" 8444}, { 8445 base: 'AE', 8446 letters: "\xC6\u01FC\u01E2" 8447}, { 8448 base: 'AO', 8449 letters: "\uA734" 8450}, { 8451 base: 'AU', 8452 letters: "\uA736" 8453}, { 8454 base: 'AV', 8455 letters: "\uA738\uA73A" 8456}, { 8457 base: 'AY', 8458 letters: "\uA73C" 8459}, { 8460 base: 'B', 8461 letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181" 8462}, { 8463 base: 'C', 8464 letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E" 8465}, { 8466 base: 'D', 8467 letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779" 8468}, { 8469 base: 'DZ', 8470 letters: "\u01F1\u01C4" 8471}, { 8472 base: 'Dz', 8473 letters: "\u01F2\u01C5" 8474}, { 8475 base: 'E', 8476 letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E" 8477}, { 8478 base: 'F', 8479 letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B" 8480}, { 8481 base: 'G', 8482 letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E" 8483}, { 8484 base: 'H', 8485 letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D" 8486}, { 8487 base: 'I', 8488 letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197" 8489}, { 8490 base: 'J', 8491 letters: "J\u24BF\uFF2A\u0134\u0248" 8492}, { 8493 base: 'K', 8494 letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2" 8495}, { 8496 base: 'L', 8497 letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780" 8498}, { 8499 base: 'LJ', 8500 letters: "\u01C7" 8501}, { 8502 base: 'Lj', 8503 letters: "\u01C8" 8504}, { 8505 base: 'M', 8506 letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C" 8507}, { 8508 base: 'N', 8509 letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4" 8510}, { 8511 base: 'NJ', 8512 letters: "\u01CA" 8513}, { 8514 base: 'Nj', 8515 letters: "\u01CB" 8516}, { 8517 base: 'O', 8518 letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C" 8519}, { 8520 base: 'OI', 8521 letters: "\u01A2" 8522}, { 8523 base: 'OO', 8524 letters: "\uA74E" 8525}, { 8526 base: 'OU', 8527 letters: "\u0222" 8528}, { 8529 base: 'P', 8530 letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754" 8531}, { 8532 base: 'Q', 8533 letters: "Q\u24C6\uFF31\uA756\uA758\u024A" 8534}, { 8535 base: 'R', 8536 letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782" 8537}, { 8538 base: 'S', 8539 letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784" 8540}, { 8541 base: 'T', 8542 letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786" 8543}, { 8544 base: 'TZ', 8545 letters: "\uA728" 8546}, { 8547 base: 'U', 8548 letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244" 8549}, { 8550 base: 'V', 8551 letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245" 8552}, { 8553 base: 'VY', 8554 letters: "\uA760" 8555}, { 8556 base: 'W', 8557 letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72" 8558}, { 8559 base: 'X', 8560 letters: "X\u24CD\uFF38\u1E8A\u1E8C" 8561}, { 8562 base: 'Y', 8563 letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE" 8564}, { 8565 base: 'Z', 8566 letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762" 8567}, { 8568 base: 'a', 8569 letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250" 8570}, { 8571 base: 'aa', 8572 letters: "\uA733" 8573}, { 8574 base: 'ae', 8575 letters: "\xE6\u01FD\u01E3" 8576}, { 8577 base: 'ao', 8578 letters: "\uA735" 8579}, { 8580 base: 'au', 8581 letters: "\uA737" 8582}, { 8583 base: 'av', 8584 letters: "\uA739\uA73B" 8585}, { 8586 base: 'ay', 8587 letters: "\uA73D" 8588}, { 8589 base: 'b', 8590 letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253" 8591}, { 8592 base: 'c', 8593 letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184" 8594}, { 8595 base: 'd', 8596 letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A" 8597}, { 8598 base: 'dz', 8599 letters: "\u01F3\u01C6" 8600}, { 8601 base: 'e', 8602 letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD" 8603}, { 8604 base: 'f', 8605 letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C" 8606}, { 8607 base: 'g', 8608 letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F" 8609}, { 8610 base: 'h', 8611 letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265" 8612}, { 8613 base: 'hv', 8614 letters: "\u0195" 8615}, { 8616 base: 'i', 8617 letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131" 8618}, { 8619 base: 'j', 8620 letters: "j\u24D9\uFF4A\u0135\u01F0\u0249" 8621}, { 8622 base: 'k', 8623 letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3" 8624}, { 8625 base: 'l', 8626 letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747" 8627}, { 8628 base: 'lj', 8629 letters: "\u01C9" 8630}, { 8631 base: 'm', 8632 letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F" 8633}, { 8634 base: 'n', 8635 letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5" 8636}, { 8637 base: 'nj', 8638 letters: "\u01CC" 8639}, { 8640 base: 'o', 8641 letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275" 8642}, { 8643 base: 'oi', 8644 letters: "\u01A3" 8645}, { 8646 base: 'ou', 8647 letters: "\u0223" 8648}, { 8649 base: 'oo', 8650 letters: "\uA74F" 8651}, { 8652 base: 'p', 8653 letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755" 8654}, { 8655 base: 'q', 8656 letters: "q\u24E0\uFF51\u024B\uA757\uA759" 8657}, { 8658 base: 'r', 8659 letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783" 8660}, { 8661 base: 's', 8662 letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B" 8663}, { 8664 base: 't', 8665 letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787" 8666}, { 8667 base: 'tz', 8668 letters: "\uA729" 8669}, { 8670 base: 'u', 8671 letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289" 8672}, { 8673 base: 'v', 8674 letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C" 8675}, { 8676 base: 'vy', 8677 letters: "\uA761" 8678}, { 8679 base: 'w', 8680 letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73" 8681}, { 8682 base: 'x', 8683 letters: "x\u24E7\uFF58\u1E8B\u1E8D" 8684}, { 8685 base: 'y', 8686 letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF" 8687}, { 8688 base: 'z', 8689 letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763" 8690}]; 8691var anyDiacritic = new RegExp('[' + diacritics.map(function (d) { 8692 return d.letters; 8693}).join('') + ']', 'g'); 8694var diacriticToBase = {}; 8695for (var i = 0; i < diacritics.length; i++) { 8696 var diacritic = diacritics[i]; 8697 for (var j = 0; j < diacritic.letters.length; j++) { 8698 diacriticToBase[diacritic.letters[j]] = diacritic.base; 8699 } 8700} 8701var stripDiacritics = function stripDiacritics(str) { 8702 return str.replace(anyDiacritic, function (match) { 8703 return diacriticToBase[match]; 8704 }); 8705}; 8706 8707var memoizedStripDiacriticsForInput = (0,memoize_one__WEBPACK_IMPORTED_MODULE_10__["default"])(stripDiacritics); 8708var trimString = function trimString(str) { 8709 return str.replace(/^\s+|\s+$/g, ''); 8710}; 8711var defaultStringify = function defaultStringify(option) { 8712 return "".concat(option.label, " ").concat(option.value); 8713}; 8714var createFilter = function createFilter(config) { 8715 return function (option, rawInput) { 8716 // eslint-disable-next-line no-underscore-dangle 8717 if (option.data.__isNew__) return true; 8718 var _ignoreCase$ignoreAcc = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({ 8719 ignoreCase: true, 8720 ignoreAccents: true, 8721 stringify: defaultStringify, 8722 trim: true, 8723 matchFrom: 'any' 8724 }, config), 8725 ignoreCase = _ignoreCase$ignoreAcc.ignoreCase, 8726 ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents, 8727 stringify = _ignoreCase$ignoreAcc.stringify, 8728 trim = _ignoreCase$ignoreAcc.trim, 8729 matchFrom = _ignoreCase$ignoreAcc.matchFrom; 8730 var input = trim ? trimString(rawInput) : rawInput; 8731 var candidate = trim ? trimString(stringify(option)) : stringify(option); 8732 if (ignoreCase) { 8733 input = input.toLowerCase(); 8734 candidate = candidate.toLowerCase(); 8735 } 8736 if (ignoreAccents) { 8737 input = memoizedStripDiacriticsForInput(input); 8738 candidate = stripDiacritics(candidate); 8739 } 8740 return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1; 8741 }; 8742}; 8743 8744var _excluded = ["innerRef"]; 8745function DummyInput(_ref) { 8746 var innerRef = _ref.innerRef, 8747 props = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__["default"])(_ref, _excluded); 8748 // Remove animation props not meant for HTML elements 8749 var filteredProps = (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.r)(props, 'onExited', 'in', 'enter', 'exit', 'appear'); 8750 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8751 ref: innerRef 8752 }, filteredProps, { 8753 css: /*#__PURE__*/(0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.css)({ 8754 label: 'dummyInput', 8755 // get rid of any default styles 8756 background: 0, 8757 border: 0, 8758 // important! this hides the flashing cursor 8759 caretColor: 'transparent', 8760 fontSize: 'inherit', 8761 gridArea: '1 / 1 / 2 / 3', 8762 outline: 0, 8763 padding: 0, 8764 // important! without `width` browsers won't allow focus 8765 width: 1, 8766 // remove cursor on desktop 8767 color: 'transparent', 8768 // remove cursor on mobile whilst maintaining "scroll into view" behaviour 8769 left: -100, 8770 opacity: 0, 8771 position: 'relative', 8772 transform: 'scale(.01)' 8773 }, false ? 0 : ";label:DummyInput;", false ? 0 : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */") 8774 })); 8775} 8776 8777var cancelScroll = function cancelScroll(event) { 8778 event.preventDefault(); 8779 event.stopPropagation(); 8780}; 8781function useScrollCapture(_ref) { 8782 var isEnabled = _ref.isEnabled, 8783 onBottomArrive = _ref.onBottomArrive, 8784 onBottomLeave = _ref.onBottomLeave, 8785 onTopArrive = _ref.onTopArrive, 8786 onTopLeave = _ref.onTopLeave; 8787 var isBottom = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(false); 8788 var isTop = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(false); 8789 var touchStart = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(0); 8790 var scrollTarget = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null); 8791 var handleEventDelta = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (event, delta) { 8792 if (scrollTarget.current === null) return; 8793 var _scrollTarget$current = scrollTarget.current, 8794 scrollTop = _scrollTarget$current.scrollTop, 8795 scrollHeight = _scrollTarget$current.scrollHeight, 8796 clientHeight = _scrollTarget$current.clientHeight; 8797 var target = scrollTarget.current; 8798 var isDeltaPositive = delta > 0; 8799 var availableScroll = scrollHeight - clientHeight - scrollTop; 8800 var shouldCancelScroll = false; 8801 8802 // reset bottom/top flags 8803 if (availableScroll > delta && isBottom.current) { 8804 if (onBottomLeave) onBottomLeave(event); 8805 isBottom.current = false; 8806 } 8807 if (isDeltaPositive && isTop.current) { 8808 if (onTopLeave) onTopLeave(event); 8809 isTop.current = false; 8810 } 8811 8812 // bottom limit 8813 if (isDeltaPositive && delta > availableScroll) { 8814 if (onBottomArrive && !isBottom.current) { 8815 onBottomArrive(event); 8816 } 8817 target.scrollTop = scrollHeight; 8818 shouldCancelScroll = true; 8819 isBottom.current = true; 8820 8821 // top limit 8822 } else if (!isDeltaPositive && -delta > scrollTop) { 8823 if (onTopArrive && !isTop.current) { 8824 onTopArrive(event); 8825 } 8826 target.scrollTop = 0; 8827 shouldCancelScroll = true; 8828 isTop.current = true; 8829 } 8830 8831 // cancel scroll 8832 if (shouldCancelScroll) { 8833 cancelScroll(event); 8834 } 8835 }, [onBottomArrive, onBottomLeave, onTopArrive, onTopLeave]); 8836 var onWheel = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (event) { 8837 handleEventDelta(event, event.deltaY); 8838 }, [handleEventDelta]); 8839 var onTouchStart = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (event) { 8840 // set touch start so we can calculate touchmove delta 8841 touchStart.current = event.changedTouches[0].clientY; 8842 }, []); 8843 var onTouchMove = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (event) { 8844 var deltaY = touchStart.current - event.changedTouches[0].clientY; 8845 handleEventDelta(event, deltaY); 8846 }, [handleEventDelta]); 8847 var startListening = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (el) { 8848 // bail early if no element is available to attach to 8849 if (!el) return; 8850 var notPassive = _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.s ? { 8851 passive: false 8852 } : false; 8853 el.addEventListener('wheel', onWheel, notPassive); 8854 el.addEventListener('touchstart', onTouchStart, notPassive); 8855 el.addEventListener('touchmove', onTouchMove, notPassive); 8856 }, [onTouchMove, onTouchStart, onWheel]); 8857 var stopListening = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (el) { 8858 // bail early if no element is available to detach from 8859 if (!el) return; 8860 el.removeEventListener('wheel', onWheel, false); 8861 el.removeEventListener('touchstart', onTouchStart, false); 8862 el.removeEventListener('touchmove', onTouchMove, false); 8863 }, [onTouchMove, onTouchStart, onWheel]); 8864 (0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () { 8865 if (!isEnabled) return; 8866 var element = scrollTarget.current; 8867 startListening(element); 8868 return function () { 8869 stopListening(element); 8870 }; 8871 }, [isEnabled, startListening, stopListening]); 8872 return function (element) { 8873 scrollTarget.current = element; 8874 }; 8875} 8876 8877var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position']; 8878var LOCK_STYLES = { 8879 boxSizing: 'border-box', 8880 // account for possible declaration `width: 100%;` on body 8881 overflow: 'hidden', 8882 position: 'relative', 8883 height: '100%' 8884}; 8885function preventTouchMove(e) { 8886 e.preventDefault(); 8887} 8888function allowTouchMove(e) { 8889 e.stopPropagation(); 8890} 8891function preventInertiaScroll() { 8892 var top = this.scrollTop; 8893 var totalScroll = this.scrollHeight; 8894 var currentScroll = top + this.offsetHeight; 8895 if (top === 0) { 8896 this.scrollTop = 1; 8897 } else if (currentScroll === totalScroll) { 8898 this.scrollTop = top - 1; 8899 } 8900} 8901 8902// `ontouchstart` check works on most browsers 8903// `maxTouchPoints` works on IE10/11 and Surface 8904function isTouchDevice() { 8905 return 'ontouchstart' in window || navigator.maxTouchPoints; 8906} 8907var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); 8908var activeScrollLocks = 0; 8909var listenerOptions = { 8910 capture: false, 8911 passive: false 8912}; 8913function useScrollLock(_ref) { 8914 var isEnabled = _ref.isEnabled, 8915 _ref$accountForScroll = _ref.accountForScrollbars, 8916 accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll; 8917 var originalStyles = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)({}); 8918 var scrollTarget = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null); 8919 var addScrollLock = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (touchScrollTarget) { 8920 if (!canUseDOM) return; 8921 var target = document.body; 8922 var targetStyle = target && target.style; 8923 if (accountForScrollbars) { 8924 // store any styles already applied to the body 8925 STYLE_KEYS.forEach(function (key) { 8926 var val = targetStyle && targetStyle[key]; 8927 originalStyles.current[key] = val; 8928 }); 8929 } 8930 8931 // apply the lock styles and padding if this is the first scroll lock 8932 if (accountForScrollbars && activeScrollLocks < 1) { 8933 var currentPadding = parseInt(originalStyles.current.paddingRight, 10) || 0; 8934 var clientWidth = document.body ? document.body.clientWidth : 0; 8935 var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0; 8936 Object.keys(LOCK_STYLES).forEach(function (key) { 8937 var val = LOCK_STYLES[key]; 8938 if (targetStyle) { 8939 targetStyle[key] = val; 8940 } 8941 }); 8942 if (targetStyle) { 8943 targetStyle.paddingRight = "".concat(adjustedPadding, "px"); 8944 } 8945 } 8946 8947 // account for touch devices 8948 if (target && isTouchDevice()) { 8949 // Mobile Safari ignores { overflow: hidden } declaration on the body. 8950 target.addEventListener('touchmove', preventTouchMove, listenerOptions); 8951 8952 // Allow scroll on provided target 8953 if (touchScrollTarget) { 8954 touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, listenerOptions); 8955 touchScrollTarget.addEventListener('touchmove', allowTouchMove, listenerOptions); 8956 } 8957 } 8958 8959 // increment active scroll locks 8960 activeScrollLocks += 1; 8961 }, [accountForScrollbars]); 8962 var removeScrollLock = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (touchScrollTarget) { 8963 if (!canUseDOM) return; 8964 var target = document.body; 8965 var targetStyle = target && target.style; 8966 8967 // safely decrement active scroll locks 8968 activeScrollLocks = Math.max(activeScrollLocks - 1, 0); 8969 8970 // reapply original body styles, if any 8971 if (accountForScrollbars && activeScrollLocks < 1) { 8972 STYLE_KEYS.forEach(function (key) { 8973 var val = originalStyles.current[key]; 8974 if (targetStyle) { 8975 targetStyle[key] = val; 8976 } 8977 }); 8978 } 8979 8980 // remove touch listeners 8981 if (target && isTouchDevice()) { 8982 target.removeEventListener('touchmove', preventTouchMove, listenerOptions); 8983 if (touchScrollTarget) { 8984 touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, listenerOptions); 8985 touchScrollTarget.removeEventListener('touchmove', allowTouchMove, listenerOptions); 8986 } 8987 } 8988 }, [accountForScrollbars]); 8989 (0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () { 8990 if (!isEnabled) return; 8991 var element = scrollTarget.current; 8992 addScrollLock(element); 8993 return function () { 8994 removeScrollLock(element); 8995 }; 8996 }, [isEnabled, addScrollLock, removeScrollLock]); 8997 return function (element) { 8998 scrollTarget.current = element; 8999 }; 9000} 9001 9002function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } 9003var blurSelectInput = function blurSelectInput() { 9004 return document.activeElement && document.activeElement.blur(); 9005}; 9006var _ref2$1 = false ? 0 : { 9007 name: "bp8cua-ScrollManager", 9008 styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;", 9009 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9ICgpID0+XG4gIGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgJiYgKGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgYXMgSFRNTEVsZW1lbnQpLmJsdXIoKTtcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gU2Nyb2xsTWFuYWdlcih7XG4gIGNoaWxkcmVuLFxuICBsb2NrRW5hYmxlZCxcbiAgY2FwdHVyZUVuYWJsZWQgPSB0cnVlLFxuICBvbkJvdHRvbUFycml2ZSxcbiAgb25Cb3R0b21MZWF2ZSxcbiAgb25Ub3BBcnJpdmUsXG4gIG9uVG9wTGVhdmUsXG59OiBQcm9wcykge1xuICBjb25zdCBzZXRTY3JvbGxDYXB0dXJlVGFyZ2V0ID0gdXNlU2Nyb2xsQ2FwdHVyZSh7XG4gICAgaXNFbmFibGVkOiBjYXB0dXJlRW5hYmxlZCxcbiAgICBvbkJvdHRvbUFycml2ZSxcbiAgICBvbkJvdHRvbUxlYXZlLFxuICAgIG9uVG9wQXJyaXZlLFxuICAgIG9uVG9wTGVhdmUsXG4gIH0pO1xuICBjb25zdCBzZXRTY3JvbGxMb2NrVGFyZ2V0ID0gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmOiBSZWZDYWxsYmFjazxIVE1MRWxlbWVudD4gPSAoZWxlbWVudCkgPT4ge1xuICAgIHNldFNjcm9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */", 9010 toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1 9011}; 9012function ScrollManager(_ref) { 9013 var children = _ref.children, 9014 lockEnabled = _ref.lockEnabled, 9015 _ref$captureEnabled = _ref.captureEnabled, 9016 captureEnabled = _ref$captureEnabled === void 0 ? true : _ref$captureEnabled, 9017 onBottomArrive = _ref.onBottomArrive, 9018 onBottomLeave = _ref.onBottomLeave, 9019 onTopArrive = _ref.onTopArrive, 9020 onTopLeave = _ref.onTopLeave; 9021 var setScrollCaptureTarget = useScrollCapture({ 9022 isEnabled: captureEnabled, 9023 onBottomArrive: onBottomArrive, 9024 onBottomLeave: onBottomLeave, 9025 onTopArrive: onTopArrive, 9026 onTopLeave: onTopLeave 9027 }); 9028 var setScrollLockTarget = useScrollLock({ 9029 isEnabled: lockEnabled 9030 }); 9031 var targetRef = function targetRef(element) { 9032 setScrollCaptureTarget(element); 9033 setScrollLockTarget(element); 9034 }; 9035 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Fragment, null, lockEnabled && (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", { 9036 onClick: blurSelectInput, 9037 css: _ref2$1 9038 }), children(targetRef)); 9039} 9040 9041function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } 9042var _ref2 = false ? 0 : { 9043 name: "5kkxb2-requiredInput-RequiredInput", 9044 styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;", 9045 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuICByZWFkb25seSBvbkZvY3VzOiBGb2N1c0V2ZW50SGFuZGxlcjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0+ID0gKHsgbmFtZSwgb25Gb2N1cyB9KSA9PiAoXG4gIDxpbnB1dFxuICAgIHJlcXVpcmVkXG4gICAgbmFtZT17bmFtZX1cbiAgICB0YWJJbmRleD17LTF9XG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */", 9046 toString: _EMOTION_STRINGIFIED_CSS_ERROR__ 9047}; 9048var RequiredInput = function RequiredInput(_ref) { 9049 var name = _ref.name, 9050 onFocus = _ref.onFocus; 9051 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_9__.jsx)("input", { 9052 required: true, 9053 name: name, 9054 tabIndex: -1, 9055 onFocus: onFocus, 9056 css: _ref2 9057 // Prevent `Switching from uncontrolled to controlled` error 9058 , 9059 value: "", 9060 onChange: function onChange() {} 9061 }); 9062}; 9063 9064var formatGroupLabel = function formatGroupLabel(group) { 9065 return group.label; 9066}; 9067var getOptionLabel$1 = function getOptionLabel(option) { 9068 return option.label; 9069}; 9070var getOptionValue$1 = function getOptionValue(option) { 9071 return option.value; 9072}; 9073var isOptionDisabled = function isOptionDisabled(option) { 9074 return !!option.isDisabled; 9075}; 9076 9077var defaultStyles = { 9078 clearIndicator: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.a, 9079 container: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.b, 9080 control: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.d, 9081 dropdownIndicator: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.e, 9082 group: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.g, 9083 groupHeading: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.f, 9084 indicatorsContainer: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.i, 9085 indicatorSeparator: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.h, 9086 input: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.j, 9087 loadingIndicator: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.l, 9088 loadingMessage: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.k, 9089 menu: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.m, 9090 menuList: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.n, 9091 menuPortal: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.o, 9092 multiValue: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.p, 9093 multiValueLabel: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.q, 9094 multiValueRemove: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.t, 9095 noOptionsMessage: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.u, 9096 option: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.v, 9097 placeholder: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.w, 9098 singleValue: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.x, 9099 valueContainer: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.y 9100}; 9101// Merge Utility 9102// Allows consumers to extend a base Select with additional styles 9103 9104function mergeStyles(source) { 9105 var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 9106 // initialize with source styles 9107 var styles = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, source); 9108 9109 // massage in target styles 9110 Object.keys(target).forEach(function (keyAsString) { 9111 var key = keyAsString; 9112 if (source[key]) { 9113 styles[key] = function (rsCss, props) { 9114 return target[key](source[key](rsCss, props), props); 9115 }; 9116 } else { 9117 styles[key] = target[key]; 9118 } 9119 }); 9120 return styles; 9121} 9122 9123var colors = { 9124 primary: '#2684FF', 9125 primary75: '#4C9AFF', 9126 primary50: '#B2D4FF', 9127 primary25: '#DEEBFF', 9128 danger: '#DE350B', 9129 dangerLight: '#FFBDAD', 9130 neutral0: 'hsl(0, 0%, 100%)', 9131 neutral5: 'hsl(0, 0%, 95%)', 9132 neutral10: 'hsl(0, 0%, 90%)', 9133 neutral20: 'hsl(0, 0%, 80%)', 9134 neutral30: 'hsl(0, 0%, 70%)', 9135 neutral40: 'hsl(0, 0%, 60%)', 9136 neutral50: 'hsl(0, 0%, 50%)', 9137 neutral60: 'hsl(0, 0%, 40%)', 9138 neutral70: 'hsl(0, 0%, 30%)', 9139 neutral80: 'hsl(0, 0%, 20%)', 9140 neutral90: 'hsl(0, 0%, 10%)' 9141}; 9142var borderRadius = 4; 9143// Used to calculate consistent margin/padding on elements 9144var baseUnit = 4; 9145// The minimum height of the control 9146var controlHeight = 38; 9147// The amount of space between the control and menu */ 9148var menuGutter = baseUnit * 2; 9149var spacing = { 9150 baseUnit: baseUnit, 9151 controlHeight: controlHeight, 9152 menuGutter: menuGutter 9153}; 9154var defaultTheme = { 9155 borderRadius: borderRadius, 9156 colors: colors, 9157 spacing: spacing 9158}; 9159 9160var defaultProps = { 9161 'aria-live': 'polite', 9162 backspaceRemovesValue: true, 9163 blurInputOnSelect: (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.z)(), 9164 captureMenuScroll: !(0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.z)(), 9165 classNames: {}, 9166 closeMenuOnSelect: true, 9167 closeMenuOnScroll: false, 9168 components: {}, 9169 controlShouldRenderValue: true, 9170 escapeClearsValue: false, 9171 filterOption: createFilter(), 9172 formatGroupLabel: formatGroupLabel, 9173 getOptionLabel: getOptionLabel$1, 9174 getOptionValue: getOptionValue$1, 9175 isDisabled: false, 9176 isLoading: false, 9177 isMulti: false, 9178 isRtl: false, 9179 isSearchable: true, 9180 isOptionDisabled: isOptionDisabled, 9181 loadingMessage: function loadingMessage() { 9182 return 'Loading...'; 9183 }, 9184 maxMenuHeight: 300, 9185 minMenuHeight: 140, 9186 menuIsOpen: false, 9187 menuPlacement: 'bottom', 9188 menuPosition: 'absolute', 9189 menuShouldBlockScroll: false, 9190 menuShouldScrollIntoView: !(0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.A)(), 9191 noOptionsMessage: function noOptionsMessage() { 9192 return 'No options'; 9193 }, 9194 openMenuOnFocus: false, 9195 openMenuOnClick: true, 9196 options: [], 9197 pageSize: 5, 9198 placeholder: 'Select...', 9199 screenReaderStatus: function screenReaderStatus(_ref) { 9200 var count = _ref.count; 9201 return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available"); 9202 }, 9203 styles: {}, 9204 tabIndex: 0, 9205 tabSelectsValue: true, 9206 unstyled: false 9207}; 9208function toCategorizedOption(props, option, selectValue, index) { 9209 var isDisabled = _isOptionDisabled(props, option, selectValue); 9210 var isSelected = _isOptionSelected(props, option, selectValue); 9211 var label = getOptionLabel(props, option); 9212 var value = getOptionValue(props, option); 9213 return { 9214 type: 'option', 9215 data: option, 9216 isDisabled: isDisabled, 9217 isSelected: isSelected, 9218 label: label, 9219 value: value, 9220 index: index 9221 }; 9222} 9223function buildCategorizedOptions(props, selectValue) { 9224 return props.options.map(function (groupOrOption, groupOrOptionIndex) { 9225 if ('options' in groupOrOption) { 9226 var categorizedOptions = groupOrOption.options.map(function (option, optionIndex) { 9227 return toCategorizedOption(props, option, selectValue, optionIndex); 9228 }).filter(function (categorizedOption) { 9229 return isFocusable(props, categorizedOption); 9230 }); 9231 return categorizedOptions.length > 0 ? { 9232 type: 'group', 9233 data: groupOrOption, 9234 options: categorizedOptions, 9235 index: groupOrOptionIndex 9236 } : undefined; 9237 } 9238 var categorizedOption = toCategorizedOption(props, groupOrOption, selectValue, groupOrOptionIndex); 9239 return isFocusable(props, categorizedOption) ? categorizedOption : undefined; 9240 }).filter(_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.G); 9241} 9242function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) { 9243 return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) { 9244 if (categorizedOption.type === 'group') { 9245 optionsAccumulator.push.apply(optionsAccumulator, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__["default"])(categorizedOption.options.map(function (option) { 9246 return option.data; 9247 }))); 9248 } else { 9249 optionsAccumulator.push(categorizedOption.data); 9250 } 9251 return optionsAccumulator; 9252 }, []); 9253} 9254function buildFocusableOptions(props, selectValue) { 9255 return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue)); 9256} 9257function isFocusable(props, categorizedOption) { 9258 var _props$inputValue = props.inputValue, 9259 inputValue = _props$inputValue === void 0 ? '' : _props$inputValue; 9260 var data = categorizedOption.data, 9261 isSelected = categorizedOption.isSelected, 9262 label = categorizedOption.label, 9263 value = categorizedOption.value; 9264 return (!shouldHideSelectedOptions(props) || !isSelected) && _filterOption(props, { 9265 label: label, 9266 value: value, 9267 data: data 9268 }, inputValue); 9269} 9270function getNextFocusedValue(state, nextSelectValue) { 9271 var focusedValue = state.focusedValue, 9272 lastSelectValue = state.selectValue; 9273 var lastFocusedIndex = lastSelectValue.indexOf(focusedValue); 9274 if (lastFocusedIndex > -1) { 9275 var nextFocusedIndex = nextSelectValue.indexOf(focusedValue); 9276 if (nextFocusedIndex > -1) { 9277 // the focused value is still in the selectValue, return it 9278 return focusedValue; 9279 } else if (lastFocusedIndex < nextSelectValue.length) { 9280 // the focusedValue is not present in the next selectValue array by 9281 // reference, so return the new value at the same index 9282 return nextSelectValue[lastFocusedIndex]; 9283 } 9284 } 9285 return null; 9286} 9287function getNextFocusedOption(state, options) { 9288 var lastFocusedOption = state.focusedOption; 9289 return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0]; 9290} 9291var getOptionLabel = function getOptionLabel(props, data) { 9292 return props.getOptionLabel(data); 9293}; 9294var getOptionValue = function getOptionValue(props, data) { 9295 return props.getOptionValue(data); 9296}; 9297function _isOptionDisabled(props, option, selectValue) { 9298 return typeof props.isOptionDisabled === 'function' ? props.isOptionDisabled(option, selectValue) : false; 9299} 9300function _isOptionSelected(props, option, selectValue) { 9301 if (selectValue.indexOf(option) > -1) return true; 9302 if (typeof props.isOptionSelected === 'function') { 9303 return props.isOptionSelected(option, selectValue); 9304 } 9305 var candidate = getOptionValue(props, option); 9306 return selectValue.some(function (i) { 9307 return getOptionValue(props, i) === candidate; 9308 }); 9309} 9310function _filterOption(props, option, inputValue) { 9311 return props.filterOption ? props.filterOption(option, inputValue) : true; 9312} 9313var shouldHideSelectedOptions = function shouldHideSelectedOptions(props) { 9314 var hideSelectedOptions = props.hideSelectedOptions, 9315 isMulti = props.isMulti; 9316 if (hideSelectedOptions === undefined) return isMulti; 9317 return hideSelectedOptions; 9318}; 9319var instanceId = 1; 9320var Select = /*#__PURE__*/function (_Component) { 9321 (0,_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(Select, _Component); 9322 var _super = (0,_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__["default"])(Select); 9323 // Misc. Instance Properties 9324 // ------------------------------ 9325 9326 // TODO 9327 9328 // Refs 9329 // ------------------------------ 9330 9331 // Lifecycle 9332 // ------------------------------ 9333 9334 function Select(_props) { 9335 var _this; 9336 (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Select); 9337 _this = _super.call(this, _props); 9338 _this.state = { 9339 ariaSelection: null, 9340 focusedOption: null, 9341 focusedValue: null, 9342 inputIsHidden: false, 9343 isFocused: false, 9344 selectValue: [], 9345 clearFocusValueOnUpdate: false, 9346 prevWasFocused: false, 9347 inputIsHiddenAfterUpdate: undefined, 9348 prevProps: undefined 9349 }; 9350 _this.blockOptionHover = false; 9351 _this.isComposing = false; 9352 _this.commonProps = void 0; 9353 _this.initialTouchX = 0; 9354 _this.initialTouchY = 0; 9355 _this.instancePrefix = ''; 9356 _this.openAfterFocus = false; 9357 _this.scrollToFocusedOptionOnUpdate = false; 9358 _this.userIsDragging = void 0; 9359 _this.controlRef = null; 9360 _this.getControlRef = function (ref) { 9361 _this.controlRef = ref; 9362 }; 9363 _this.focusedOptionRef = null; 9364 _this.getFocusedOptionRef = function (ref) { 9365 _this.focusedOptionRef = ref; 9366 }; 9367 _this.menuListRef = null; 9368 _this.getMenuListRef = function (ref) { 9369 _this.menuListRef = ref; 9370 }; 9371 _this.inputRef = null; 9372 _this.getInputRef = function (ref) { 9373 _this.inputRef = ref; 9374 }; 9375 _this.focus = _this.focusInput; 9376 _this.blur = _this.blurInput; 9377 _this.onChange = function (newValue, actionMeta) { 9378 var _this$props = _this.props, 9379 onChange = _this$props.onChange, 9380 name = _this$props.name; 9381 actionMeta.name = name; 9382 _this.ariaOnChange(newValue, actionMeta); 9383 onChange(newValue, actionMeta); 9384 }; 9385 _this.setValue = function (newValue, action, option) { 9386 var _this$props2 = _this.props, 9387 closeMenuOnSelect = _this$props2.closeMenuOnSelect, 9388 isMulti = _this$props2.isMulti, 9389 inputValue = _this$props2.inputValue; 9390 _this.onInputChange('', { 9391 action: 'set-value', 9392 prevInputValue: inputValue 9393 }); 9394 if (closeMenuOnSelect) { 9395 _this.setState({ 9396 inputIsHiddenAfterUpdate: !isMulti 9397 }); 9398 _this.onMenuClose(); 9399 } 9400 // when the select value should change, we should reset focusedValue 9401 _this.setState({ 9402 clearFocusValueOnUpdate: true 9403 }); 9404 _this.onChange(newValue, { 9405 action: action, 9406 option: option 9407 }); 9408 }; 9409 _this.selectOption = function (newValue) { 9410 var _this$props3 = _this.props, 9411 blurInputOnSelect = _this$props3.blurInputOnSelect, 9412 isMulti = _this$props3.isMulti, 9413 name = _this$props3.name; 9414 var selectValue = _this.state.selectValue; 9415 var deselected = isMulti && _this.isOptionSelected(newValue, selectValue); 9416 var isDisabled = _this.isOptionDisabled(newValue, selectValue); 9417 if (deselected) { 9418 var candidate = _this.getOptionValue(newValue); 9419 _this.setValue((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.B)(selectValue.filter(function (i) { 9420 return _this.getOptionValue(i) !== candidate; 9421 })), 'deselect-option', newValue); 9422 } else if (!isDisabled) { 9423 // Select option if option is not disabled 9424 if (isMulti) { 9425 _this.setValue((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.B)([].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__["default"])(selectValue), [newValue])), 'select-option', newValue); 9426 } else { 9427 _this.setValue((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.C)(newValue), 'select-option'); 9428 } 9429 } else { 9430 _this.ariaOnChange((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.C)(newValue), { 9431 action: 'select-option', 9432 option: newValue, 9433 name: name 9434 }); 9435 return; 9436 } 9437 if (blurInputOnSelect) { 9438 _this.blurInput(); 9439 } 9440 }; 9441 _this.removeValue = function (removedValue) { 9442 var isMulti = _this.props.isMulti; 9443 var selectValue = _this.state.selectValue; 9444 var candidate = _this.getOptionValue(removedValue); 9445 var newValueArray = selectValue.filter(function (i) { 9446 return _this.getOptionValue(i) !== candidate; 9447 }); 9448 var newValue = (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.D)(isMulti, newValueArray, newValueArray[0] || null); 9449 _this.onChange(newValue, { 9450 action: 'remove-value', 9451 removedValue: removedValue 9452 }); 9453 _this.focusInput(); 9454 }; 9455 _this.clearValue = function () { 9456 var selectValue = _this.state.selectValue; 9457 _this.onChange((0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.D)(_this.props.isMulti, [], null), { 9458 action: 'clear', 9459 removedValues: selectValue 9460 }); 9461 }; 9462 _this.popValue = function () { 9463 var isMulti = _this.props.isMulti; 9464 var selectValue = _this.state.selectValue; 9465 var lastSelectedValue = selectValue[selectValue.length - 1]; 9466 var newValueArray = selectValue.slice(0, selectValue.length - 1); 9467 var newValue = (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.D)(isMulti, newValueArray, newValueArray[0] || null); 9468 _this.onChange(newValue, { 9469 action: 'pop-value', 9470 removedValue: lastSelectedValue 9471 }); 9472 }; 9473 _this.getValue = function () { 9474 return _this.state.selectValue; 9475 }; 9476 _this.cx = function () { 9477 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 9478 args[_key] = arguments[_key]; 9479 } 9480 return _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.E.apply(void 0, [_this.props.classNamePrefix].concat(args)); 9481 }; 9482 _this.getOptionLabel = function (data) { 9483 return getOptionLabel(_this.props, data); 9484 }; 9485 _this.getOptionValue = function (data) { 9486 return getOptionValue(_this.props, data); 9487 }; 9488 _this.getStyles = function (key, props) { 9489 var unstyled = _this.props.unstyled; 9490 var base = defaultStyles[key](props, unstyled); 9491 base.boxSizing = 'border-box'; 9492 var custom = _this.props.styles[key]; 9493 return custom ? custom(base, props) : base; 9494 }; 9495 _this.getClassNames = function (key, props) { 9496 var _this$props$className, _this$props$className2; 9497 return (_this$props$className = (_this$props$className2 = _this.props.classNames)[key]) === null || _this$props$className === void 0 ? void 0 : _this$props$className.call(_this$props$className2, props); 9498 }; 9499 _this.getElementId = function (element) { 9500 return "".concat(_this.instancePrefix, "-").concat(element); 9501 }; 9502 _this.getComponents = function () { 9503 return (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.F)(_this.props); 9504 }; 9505 _this.buildCategorizedOptions = function () { 9506 return buildCategorizedOptions(_this.props, _this.state.selectValue); 9507 }; 9508 _this.getCategorizedOptions = function () { 9509 return _this.props.menuIsOpen ? _this.buildCategorizedOptions() : []; 9510 }; 9511 _this.buildFocusableOptions = function () { 9512 return buildFocusableOptionsFromCategorizedOptions(_this.buildCategorizedOptions()); 9513 }; 9514 _this.getFocusableOptions = function () { 9515 return _this.props.menuIsOpen ? _this.buildFocusableOptions() : []; 9516 }; 9517 _this.ariaOnChange = function (value, actionMeta) { 9518 _this.setState({ 9519 ariaSelection: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({ 9520 value: value 9521 }, actionMeta) 9522 }); 9523 }; 9524 _this.onMenuMouseDown = function (event) { 9525 if (event.button !== 0) { 9526 return; 9527 } 9528 event.stopPropagation(); 9529 event.preventDefault(); 9530 _this.focusInput(); 9531 }; 9532 _this.onMenuMouseMove = function (event) { 9533 _this.blockOptionHover = false; 9534 }; 9535 _this.onControlMouseDown = function (event) { 9536 // Event captured by dropdown indicator 9537 if (event.defaultPrevented) { 9538 return; 9539 } 9540 var openMenuOnClick = _this.props.openMenuOnClick; 9541 if (!_this.state.isFocused) { 9542 if (openMenuOnClick) { 9543 _this.openAfterFocus = true; 9544 } 9545 _this.focusInput(); 9546 } else if (!_this.props.menuIsOpen) { 9547 if (openMenuOnClick) { 9548 _this.openMenu('first'); 9549 } 9550 } else { 9551 if (event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') { 9552 _this.onMenuClose(); 9553 } 9554 } 9555 if (event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') { 9556 event.preventDefault(); 9557 } 9558 }; 9559 _this.onDropdownIndicatorMouseDown = function (event) { 9560 // ignore mouse events that weren't triggered by the primary button 9561 if (event && event.type === 'mousedown' && event.button !== 0) { 9562 return; 9563 } 9564 if (_this.props.isDisabled) return; 9565 var _this$props4 = _this.props, 9566 isMulti = _this$props4.isMulti, 9567 menuIsOpen = _this$props4.menuIsOpen; 9568 _this.focusInput(); 9569 if (menuIsOpen) { 9570 _this.setState({ 9571 inputIsHiddenAfterUpdate: !isMulti 9572 }); 9573 _this.onMenuClose(); 9574 } else { 9575 _this.openMenu('first'); 9576 } 9577 event.preventDefault(); 9578 }; 9579 _this.onClearIndicatorMouseDown = function (event) { 9580 // ignore mouse events that weren't triggered by the primary button 9581 if (event && event.type === 'mousedown' && event.button !== 0) { 9582 return; 9583 } 9584 _this.clearValue(); 9585 event.preventDefault(); 9586 _this.openAfterFocus = false; 9587 if (event.type === 'touchend') { 9588 _this.focusInput(); 9589 } else { 9590 setTimeout(function () { 9591 return _this.focusInput(); 9592 }); 9593 } 9594 }; 9595 _this.onScroll = function (event) { 9596 if (typeof _this.props.closeMenuOnScroll === 'boolean') { 9597 if (event.target instanceof HTMLElement && (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.H)(event.target)) { 9598 _this.props.onMenuClose(); 9599 } 9600 } else if (typeof _this.props.closeMenuOnScroll === 'function') { 9601 if (_this.props.closeMenuOnScroll(event)) { 9602 _this.props.onMenuClose(); 9603 } 9604 } 9605 }; 9606 _this.onCompositionStart = function () { 9607 _this.isComposing = true; 9608 }; 9609 _this.onCompositionEnd = function () { 9610 _this.isComposing = false; 9611 }; 9612 _this.onTouchStart = function (_ref2) { 9613 var touches = _ref2.touches; 9614 var touch = touches && touches.item(0); 9615 if (!touch) { 9616 return; 9617 } 9618 _this.initialTouchX = touch.clientX; 9619 _this.initialTouchY = touch.clientY; 9620 _this.userIsDragging = false; 9621 }; 9622 _this.onTouchMove = function (_ref3) { 9623 var touches = _ref3.touches; 9624 var touch = touches && touches.item(0); 9625 if (!touch) { 9626 return; 9627 } 9628 var deltaX = Math.abs(touch.clientX - _this.initialTouchX); 9629 var deltaY = Math.abs(touch.clientY - _this.initialTouchY); 9630 var moveThreshold = 5; 9631 _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold; 9632 }; 9633 _this.onTouchEnd = function (event) { 9634 if (_this.userIsDragging) return; 9635 9636 // close the menu if the user taps outside 9637 // we're checking on event.target here instead of event.currentTarget, because we want to assert information 9638 // on events on child elements, not the document (which we've attached this handler to). 9639 if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) { 9640 _this.blurInput(); 9641 } 9642 9643 // reset move vars 9644 _this.initialTouchX = 0; 9645 _this.initialTouchY = 0; 9646 }; 9647 _this.onControlTouchEnd = function (event) { 9648 if (_this.userIsDragging) return; 9649 _this.onControlMouseDown(event); 9650 }; 9651 _this.onClearIndicatorTouchEnd = function (event) { 9652 if (_this.userIsDragging) return; 9653 _this.onClearIndicatorMouseDown(event); 9654 }; 9655 _this.onDropdownIndicatorTouchEnd = function (event) { 9656 if (_this.userIsDragging) return; 9657 _this.onDropdownIndicatorMouseDown(event); 9658 }; 9659 _this.handleInputChange = function (event) { 9660 var prevInputValue = _this.props.inputValue; 9661 var inputValue = event.currentTarget.value; 9662 _this.setState({ 9663 inputIsHiddenAfterUpdate: false 9664 }); 9665 _this.onInputChange(inputValue, { 9666 action: 'input-change', 9667 prevInputValue: prevInputValue 9668 }); 9669 if (!_this.props.menuIsOpen) { 9670 _this.onMenuOpen(); 9671 } 9672 }; 9673 _this.onInputFocus = function (event) { 9674 if (_this.props.onFocus) { 9675 _this.props.onFocus(event); 9676 } 9677 _this.setState({ 9678 inputIsHiddenAfterUpdate: false, 9679 isFocused: true 9680 }); 9681 if (_this.openAfterFocus || _this.props.openMenuOnFocus) { 9682 _this.openMenu('first'); 9683 } 9684 _this.openAfterFocus = false; 9685 }; 9686 _this.onInputBlur = function (event) { 9687 var prevInputValue = _this.props.inputValue; 9688 if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) { 9689 _this.inputRef.focus(); 9690 return; 9691 } 9692 if (_this.props.onBlur) { 9693 _this.props.onBlur(event); 9694 } 9695 _this.onInputChange('', { 9696 action: 'input-blur', 9697 prevInputValue: prevInputValue 9698 }); 9699 _this.onMenuClose(); 9700 _this.setState({ 9701 focusedValue: null, 9702 isFocused: false 9703 }); 9704 }; 9705 _this.onOptionHover = function (focusedOption) { 9706 if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) { 9707 return; 9708 } 9709 _this.setState({ 9710 focusedOption: focusedOption 9711 }); 9712 }; 9713 _this.shouldHideSelectedOptions = function () { 9714 return shouldHideSelectedOptions(_this.props); 9715 }; 9716 _this.onValueInputFocus = function (e) { 9717 e.preventDefault(); 9718 e.stopPropagation(); 9719 _this.focus(); 9720 }; 9721 _this.onKeyDown = function (event) { 9722 var _this$props5 = _this.props, 9723 isMulti = _this$props5.isMulti, 9724 backspaceRemovesValue = _this$props5.backspaceRemovesValue, 9725 escapeClearsValue = _this$props5.escapeClearsValue, 9726 inputValue = _this$props5.inputValue, 9727 isClearable = _this$props5.isClearable, 9728 isDisabled = _this$props5.isDisabled, 9729 menuIsOpen = _this$props5.menuIsOpen, 9730 onKeyDown = _this$props5.onKeyDown, 9731 tabSelectsValue = _this$props5.tabSelectsValue, 9732 openMenuOnFocus = _this$props5.openMenuOnFocus; 9733 var _this$state = _this.state, 9734 focusedOption = _this$state.focusedOption, 9735 focusedValue = _this$state.focusedValue, 9736 selectValue = _this$state.selectValue; 9737 if (isDisabled) return; 9738 if (typeof onKeyDown === 'function') { 9739 onKeyDown(event); 9740 if (event.defaultPrevented) { 9741 return; 9742 } 9743 } 9744 9745 // Block option hover events when the user has just pressed a key 9746 _this.blockOptionHover = true; 9747 switch (event.key) { 9748 case 'ArrowLeft': 9749 if (!isMulti || inputValue) return; 9750 _this.focusValue('previous'); 9751 break; 9752 case 'ArrowRight': 9753 if (!isMulti || inputValue) return; 9754 _this.focusValue('next'); 9755 break; 9756 case 'Delete': 9757 case 'Backspace': 9758 if (inputValue) return; 9759 if (focusedValue) { 9760 _this.removeValue(focusedValue); 9761 } else { 9762 if (!backspaceRemovesValue) return; 9763 if (isMulti) { 9764 _this.popValue(); 9765 } else if (isClearable) { 9766 _this.clearValue(); 9767 } 9768 } 9769 break; 9770 case 'Tab': 9771 if (_this.isComposing) return; 9772 if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || 9773 // don't capture the event if the menu opens on focus and the focused 9774 // option is already selected; it breaks the flow of navigation 9775 openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) { 9776 return; 9777 } 9778 _this.selectOption(focusedOption); 9779 break; 9780 case 'Enter': 9781 if (event.keyCode === 229) { 9782 // ignore the keydown event from an Input Method Editor(IME) 9783 // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode 9784 break; 9785 } 9786 if (menuIsOpen) { 9787 if (!focusedOption) return; 9788 if (_this.isComposing) return; 9789 _this.selectOption(focusedOption); 9790 break; 9791 } 9792 return; 9793 case 'Escape': 9794 if (menuIsOpen) { 9795 _this.setState({ 9796 inputIsHiddenAfterUpdate: false 9797 }); 9798 _this.onInputChange('', { 9799 action: 'menu-close', 9800 prevInputValue: inputValue 9801 }); 9802 _this.onMenuClose(); 9803 } else if (isClearable && escapeClearsValue) { 9804 _this.clearValue(); 9805 } 9806 break; 9807 case ' ': 9808 // space 9809 if (inputValue) { 9810 return; 9811 } 9812 if (!menuIsOpen) { 9813 _this.openMenu('first'); 9814 break; 9815 } 9816 if (!focusedOption) return; 9817 _this.selectOption(focusedOption); 9818 break; 9819 case 'ArrowUp': 9820 if (menuIsOpen) { 9821 _this.focusOption('up'); 9822 } else { 9823 _this.openMenu('last'); 9824 } 9825 break; 9826 case 'ArrowDown': 9827 if (menuIsOpen) { 9828 _this.focusOption('down'); 9829 } else { 9830 _this.openMenu('first'); 9831 } 9832 break; 9833 case 'PageUp': 9834 if (!menuIsOpen) return; 9835 _this.focusOption('pageup'); 9836 break; 9837 case 'PageDown': 9838 if (!menuIsOpen) return; 9839 _this.focusOption('pagedown'); 9840 break; 9841 case 'Home': 9842 if (!menuIsOpen) return; 9843 _this.focusOption('first'); 9844 break; 9845 case 'End': 9846 if (!menuIsOpen) return; 9847 _this.focusOption('last'); 9848 break; 9849 default: 9850 return; 9851 } 9852 event.preventDefault(); 9853 }; 9854 _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId); 9855 _this.state.selectValue = (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.I)(_props.value); 9856 9857 // Set focusedOption if menuIsOpen is set on init (e.g. defaultMenuIsOpen) 9858 if (_props.menuIsOpen && _this.state.selectValue.length) { 9859 var focusableOptions = _this.buildFocusableOptions(); 9860 var optionIndex = focusableOptions.indexOf(_this.state.selectValue[0]); 9861 _this.state.focusedOption = focusableOptions[optionIndex]; 9862 } 9863 return _this; 9864 } 9865 (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(Select, [{ 9866 key: "componentDidMount", 9867 value: function componentDidMount() { 9868 this.startListeningComposition(); 9869 this.startListeningToTouch(); 9870 if (this.props.closeMenuOnScroll && document && document.addEventListener) { 9871 // Listen to all scroll events, and filter them out inside of 'onScroll' 9872 document.addEventListener('scroll', this.onScroll, true); 9873 } 9874 if (this.props.autoFocus) { 9875 this.focusInput(); 9876 } 9877 9878 // Scroll focusedOption into view if menuIsOpen is set on mount (e.g. defaultMenuIsOpen) 9879 if (this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef) { 9880 (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.J)(this.menuListRef, this.focusedOptionRef); 9881 } 9882 } 9883 }, { 9884 key: "componentDidUpdate", 9885 value: function componentDidUpdate(prevProps) { 9886 var _this$props6 = this.props, 9887 isDisabled = _this$props6.isDisabled, 9888 menuIsOpen = _this$props6.menuIsOpen; 9889 var isFocused = this.state.isFocused; 9890 if ( 9891 // ensure focus is restored correctly when the control becomes enabled 9892 isFocused && !isDisabled && prevProps.isDisabled || 9893 // ensure focus is on the Input when the menu opens 9894 isFocused && menuIsOpen && !prevProps.menuIsOpen) { 9895 this.focusInput(); 9896 } 9897 if (isFocused && isDisabled && !prevProps.isDisabled) { 9898 // ensure select state gets blurred in case Select is programmatically disabled while focused 9899 // eslint-disable-next-line react/no-did-update-set-state 9900 this.setState({ 9901 isFocused: false 9902 }, this.onMenuClose); 9903 } else if (!isFocused && !isDisabled && prevProps.isDisabled && this.inputRef === document.activeElement) { 9904 // ensure select state gets focused in case Select is programatically re-enabled while focused (Firefox) 9905 // eslint-disable-next-line react/no-did-update-set-state 9906 this.setState({ 9907 isFocused: true 9908 }); 9909 } 9910 9911 // scroll the focused option into view if necessary 9912 if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) { 9913 (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.J)(this.menuListRef, this.focusedOptionRef); 9914 this.scrollToFocusedOptionOnUpdate = false; 9915 } 9916 } 9917 }, { 9918 key: "componentWillUnmount", 9919 value: function componentWillUnmount() { 9920 this.stopListeningComposition(); 9921 this.stopListeningToTouch(); 9922 document.removeEventListener('scroll', this.onScroll, true); 9923 } 9924 9925 // ============================== 9926 // Consumer Handlers 9927 // ============================== 9928 }, { 9929 key: "onMenuOpen", 9930 value: function onMenuOpen() { 9931 this.props.onMenuOpen(); 9932 } 9933 }, { 9934 key: "onMenuClose", 9935 value: function onMenuClose() { 9936 this.onInputChange('', { 9937 action: 'menu-close', 9938 prevInputValue: this.props.inputValue 9939 }); 9940 this.props.onMenuClose(); 9941 } 9942 }, { 9943 key: "onInputChange", 9944 value: function onInputChange(newValue, actionMeta) { 9945 this.props.onInputChange(newValue, actionMeta); 9946 } 9947 9948 // ============================== 9949 // Methods 9950 // ============================== 9951 }, { 9952 key: "focusInput", 9953 value: function focusInput() { 9954 if (!this.inputRef) return; 9955 this.inputRef.focus(); 9956 } 9957 }, { 9958 key: "blurInput", 9959 value: function blurInput() { 9960 if (!this.inputRef) return; 9961 this.inputRef.blur(); 9962 } 9963 9964 // aliased for consumers 9965 }, { 9966 key: "openMenu", 9967 value: function openMenu(focusOption) { 9968 var _this2 = this; 9969 var _this$state2 = this.state, 9970 selectValue = _this$state2.selectValue, 9971 isFocused = _this$state2.isFocused; 9972 var focusableOptions = this.buildFocusableOptions(); 9973 var openAtIndex = focusOption === 'first' ? 0 : focusableOptions.length - 1; 9974 if (!this.props.isMulti) { 9975 var selectedIndex = focusableOptions.indexOf(selectValue[0]); 9976 if (selectedIndex > -1) { 9977 openAtIndex = selectedIndex; 9978 } 9979 } 9980 9981 // only scroll if the menu isn't already open 9982 this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef); 9983 this.setState({ 9984 inputIsHiddenAfterUpdate: false, 9985 focusedValue: null, 9986 focusedOption: focusableOptions[openAtIndex] 9987 }, function () { 9988 return _this2.onMenuOpen(); 9989 }); 9990 } 9991 }, { 9992 key: "focusValue", 9993 value: function focusValue(direction) { 9994 var _this$state3 = this.state, 9995 selectValue = _this$state3.selectValue, 9996 focusedValue = _this$state3.focusedValue; 9997 9998 // Only multiselects support value focusing 9999 if (!this.props.isMulti) return; 10000 this.setState({ 10001 focusedOption: null 10002 }); 10003 var focusedIndex = selectValue.indexOf(focusedValue); 10004 if (!focusedValue) { 10005 focusedIndex = -1; 10006 } 10007 var lastIndex = selectValue.length - 1; 10008 var nextFocus = -1; 10009 if (!selectValue.length) return; 10010 switch (direction) { 10011 case 'previous': 10012 if (focusedIndex === 0) { 10013 // don't cycle from the start to the end 10014 nextFocus = 0; 10015 } else if (focusedIndex === -1) { 10016 // if nothing is focused, focus the last value first 10017 nextFocus = lastIndex; 10018 } else { 10019 nextFocus = focusedIndex - 1; 10020 } 10021 break; 10022 case 'next': 10023 if (focusedIndex > -1 && focusedIndex < lastIndex) { 10024 nextFocus = focusedIndex + 1; 10025 } 10026 break; 10027 } 10028 this.setState({ 10029 inputIsHidden: nextFocus !== -1, 10030 focusedValue: selectValue[nextFocus] 10031 }); 10032 } 10033 }, { 10034 key: "focusOption", 10035 value: function focusOption() { 10036 var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first'; 10037 var pageSize = this.props.pageSize; 10038 var focusedOption = this.state.focusedOption; 10039 var options = this.getFocusableOptions(); 10040 if (!options.length) return; 10041 var nextFocus = 0; // handles 'first' 10042 var focusedIndex = options.indexOf(focusedOption); 10043 if (!focusedOption) { 10044 focusedIndex = -1; 10045 } 10046 if (direction === 'up') { 10047 nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1; 10048 } else if (direction === 'down') { 10049 nextFocus = (focusedIndex + 1) % options.length; 10050 } else if (direction === 'pageup') { 10051 nextFocus = focusedIndex - pageSize; 10052 if (nextFocus < 0) nextFocus = 0; 10053 } else if (direction === 'pagedown') { 10054 nextFocus = focusedIndex + pageSize; 10055 if (nextFocus > options.length - 1) nextFocus = options.length - 1; 10056 } else if (direction === 'last') { 10057 nextFocus = options.length - 1; 10058 } 10059 this.scrollToFocusedOptionOnUpdate = true; 10060 this.setState({ 10061 focusedOption: options[nextFocus], 10062 focusedValue: null 10063 }); 10064 } 10065 }, { 10066 key: "getTheme", 10067 value: 10068 // ============================== 10069 // Getters 10070 // ============================== 10071 10072 function getTheme() { 10073 // Use the default theme if there are no customisations. 10074 if (!this.props.theme) { 10075 return defaultTheme; 10076 } 10077 // If the theme prop is a function, assume the function 10078 // knows how to merge the passed-in default theme with 10079 // its own modifications. 10080 if (typeof this.props.theme === 'function') { 10081 return this.props.theme(defaultTheme); 10082 } 10083 // Otherwise, if a plain theme object was passed in, 10084 // overlay it with the default theme. 10085 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, defaultTheme), this.props.theme); 10086 } 10087 }, { 10088 key: "getCommonProps", 10089 value: function getCommonProps() { 10090 var clearValue = this.clearValue, 10091 cx = this.cx, 10092 getStyles = this.getStyles, 10093 getClassNames = this.getClassNames, 10094 getValue = this.getValue, 10095 selectOption = this.selectOption, 10096 setValue = this.setValue, 10097 props = this.props; 10098 var isMulti = props.isMulti, 10099 isRtl = props.isRtl, 10100 options = props.options; 10101 var hasValue = this.hasValue(); 10102 return { 10103 clearValue: clearValue, 10104 cx: cx, 10105 getStyles: getStyles, 10106 getClassNames: getClassNames, 10107 getValue: getValue, 10108 hasValue: hasValue, 10109 isMulti: isMulti, 10110 isRtl: isRtl, 10111 options: options, 10112 selectOption: selectOption, 10113 selectProps: props, 10114 setValue: setValue, 10115 theme: this.getTheme() 10116 }; 10117 } 10118 }, { 10119 key: "hasValue", 10120 value: function hasValue() { 10121 var selectValue = this.state.selectValue; 10122 return selectValue.length > 0; 10123 } 10124 }, { 10125 key: "hasOptions", 10126 value: function hasOptions() { 10127 return !!this.getFocusableOptions().length; 10128 } 10129 }, { 10130 key: "isClearable", 10131 value: function isClearable() { 10132 var _this$props7 = this.props, 10133 isClearable = _this$props7.isClearable, 10134 isMulti = _this$props7.isMulti; 10135 10136 // single select, by default, IS NOT clearable 10137 // multi select, by default, IS clearable 10138 if (isClearable === undefined) return isMulti; 10139 return isClearable; 10140 } 10141 }, { 10142 key: "isOptionDisabled", 10143 value: function isOptionDisabled(option, selectValue) { 10144 return _isOptionDisabled(this.props, option, selectValue); 10145 } 10146 }, { 10147 key: "isOptionSelected", 10148 value: function isOptionSelected(option, selectValue) { 10149 return _isOptionSelected(this.props, option, selectValue); 10150 } 10151 }, { 10152 key: "filterOption", 10153 value: function filterOption(option, inputValue) { 10154 return _filterOption(this.props, option, inputValue); 10155 } 10156 }, { 10157 key: "formatOptionLabel", 10158 value: function formatOptionLabel(data, context) { 10159 if (typeof this.props.formatOptionLabel === 'function') { 10160 var _inputValue = this.props.inputValue; 10161 var _selectValue = this.state.selectValue; 10162 return this.props.formatOptionLabel(data, { 10163 context: context, 10164 inputValue: _inputValue, 10165 selectValue: _selectValue 10166 }); 10167 } else { 10168 return this.getOptionLabel(data); 10169 } 10170 } 10171 }, { 10172 key: "formatGroupLabel", 10173 value: function formatGroupLabel(data) { 10174 return this.props.formatGroupLabel(data); 10175 } 10176 10177 // ============================== 10178 // Mouse Handlers 10179 // ============================== 10180 }, { 10181 key: "startListeningComposition", 10182 value: 10183 // ============================== 10184 // Composition Handlers 10185 // ============================== 10186 10187 function startListeningComposition() { 10188 if (document && document.addEventListener) { 10189 document.addEventListener('compositionstart', this.onCompositionStart, false); 10190 document.addEventListener('compositionend', this.onCompositionEnd, false); 10191 } 10192 } 10193 }, { 10194 key: "stopListeningComposition", 10195 value: function stopListeningComposition() { 10196 if (document && document.removeEventListener) { 10197 document.removeEventListener('compositionstart', this.onCompositionStart); 10198 document.removeEventListener('compositionend', this.onCompositionEnd); 10199 } 10200 } 10201 }, { 10202 key: "startListeningToTouch", 10203 value: 10204 // ============================== 10205 // Touch Handlers 10206 // ============================== 10207 10208 function startListeningToTouch() { 10209 if (document && document.addEventListener) { 10210 document.addEventListener('touchstart', this.onTouchStart, false); 10211 document.addEventListener('touchmove', this.onTouchMove, false); 10212 document.addEventListener('touchend', this.onTouchEnd, false); 10213 } 10214 } 10215 }, { 10216 key: "stopListeningToTouch", 10217 value: function stopListeningToTouch() { 10218 if (document && document.removeEventListener) { 10219 document.removeEventListener('touchstart', this.onTouchStart); 10220 document.removeEventListener('touchmove', this.onTouchMove); 10221 document.removeEventListener('touchend', this.onTouchEnd); 10222 } 10223 } 10224 }, { 10225 key: "renderInput", 10226 value: 10227 // ============================== 10228 // Renderers 10229 // ============================== 10230 function renderInput() { 10231 var _this$props8 = this.props, 10232 isDisabled = _this$props8.isDisabled, 10233 isSearchable = _this$props8.isSearchable, 10234 inputId = _this$props8.inputId, 10235 inputValue = _this$props8.inputValue, 10236 tabIndex = _this$props8.tabIndex, 10237 form = _this$props8.form, 10238 menuIsOpen = _this$props8.menuIsOpen, 10239 required = _this$props8.required; 10240 var _this$getComponents = this.getComponents(), 10241 Input = _this$getComponents.Input; 10242 var _this$state4 = this.state, 10243 inputIsHidden = _this$state4.inputIsHidden, 10244 ariaSelection = _this$state4.ariaSelection; 10245 var commonProps = this.commonProps; 10246 var id = inputId || this.getElementId('input'); 10247 10248 // aria attributes makes the JSX "noisy", separated for clarity 10249 var ariaAttributes = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({ 10250 'aria-autocomplete': 'list', 10251 'aria-expanded': menuIsOpen, 10252 'aria-haspopup': true, 10253 'aria-errormessage': this.props['aria-errormessage'], 10254 'aria-invalid': this.props['aria-invalid'], 10255 'aria-label': this.props['aria-label'], 10256 'aria-labelledby': this.props['aria-labelledby'], 10257 'aria-required': required, 10258 role: 'combobox' 10259 }, menuIsOpen && { 10260 'aria-controls': this.getElementId('listbox'), 10261 'aria-owns': this.getElementId('listbox') 10262 }), !isSearchable && { 10263 'aria-readonly': true 10264 }), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus' && { 10265 'aria-describedby': this.getElementId('live-region') 10266 } : { 10267 'aria-describedby': this.getElementId('placeholder') 10268 }); 10269 if (!isSearchable) { 10270 // use a dummy input to maintain focus/blur functionality 10271 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(DummyInput, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ 10272 id: id, 10273 innerRef: this.getInputRef, 10274 onBlur: this.onInputBlur, 10275 onChange: _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.K, 10276 onFocus: this.onInputFocus, 10277 disabled: isDisabled, 10278 tabIndex: tabIndex, 10279 inputMode: "none", 10280 form: form, 10281 value: "" 10282 }, ariaAttributes)); 10283 } 10284 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(Input, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10285 autoCapitalize: "none", 10286 autoComplete: "off", 10287 autoCorrect: "off", 10288 id: id, 10289 innerRef: this.getInputRef, 10290 isDisabled: isDisabled, 10291 isHidden: inputIsHidden, 10292 onBlur: this.onInputBlur, 10293 onChange: this.handleInputChange, 10294 onFocus: this.onInputFocus, 10295 spellCheck: "false", 10296 tabIndex: tabIndex, 10297 form: form, 10298 type: "text", 10299 value: inputValue 10300 }, ariaAttributes)); 10301 } 10302 }, { 10303 key: "renderPlaceholderOrValue", 10304 value: function renderPlaceholderOrValue() { 10305 var _this3 = this; 10306 var _this$getComponents2 = this.getComponents(), 10307 MultiValue = _this$getComponents2.MultiValue, 10308 MultiValueContainer = _this$getComponents2.MultiValueContainer, 10309 MultiValueLabel = _this$getComponents2.MultiValueLabel, 10310 MultiValueRemove = _this$getComponents2.MultiValueRemove, 10311 SingleValue = _this$getComponents2.SingleValue, 10312 Placeholder = _this$getComponents2.Placeholder; 10313 var commonProps = this.commonProps; 10314 var _this$props9 = this.props, 10315 controlShouldRenderValue = _this$props9.controlShouldRenderValue, 10316 isDisabled = _this$props9.isDisabled, 10317 isMulti = _this$props9.isMulti, 10318 inputValue = _this$props9.inputValue, 10319 placeholder = _this$props9.placeholder; 10320 var _this$state5 = this.state, 10321 selectValue = _this$state5.selectValue, 10322 focusedValue = _this$state5.focusedValue, 10323 isFocused = _this$state5.isFocused; 10324 if (!this.hasValue() || !controlShouldRenderValue) { 10325 return inputValue ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(Placeholder, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10326 key: "placeholder", 10327 isDisabled: isDisabled, 10328 isFocused: isFocused, 10329 innerProps: { 10330 id: this.getElementId('placeholder') 10331 } 10332 }), placeholder); 10333 } 10334 if (isMulti) { 10335 return selectValue.map(function (opt, index) { 10336 var isOptionFocused = opt === focusedValue; 10337 var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt)); 10338 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(MultiValue, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10339 components: { 10340 Container: MultiValueContainer, 10341 Label: MultiValueLabel, 10342 Remove: MultiValueRemove 10343 }, 10344 isFocused: isOptionFocused, 10345 isDisabled: isDisabled, 10346 key: key, 10347 index: index, 10348 removeProps: { 10349 onClick: function onClick() { 10350 return _this3.removeValue(opt); 10351 }, 10352 onTouchEnd: function onTouchEnd() { 10353 return _this3.removeValue(opt); 10354 }, 10355 onMouseDown: function onMouseDown(e) { 10356 e.preventDefault(); 10357 } 10358 }, 10359 data: opt 10360 }), _this3.formatOptionLabel(opt, 'value')); 10361 }); 10362 } 10363 if (inputValue) { 10364 return null; 10365 } 10366 var singleValue = selectValue[0]; 10367 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(SingleValue, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10368 data: singleValue, 10369 isDisabled: isDisabled 10370 }), this.formatOptionLabel(singleValue, 'value')); 10371 } 10372 }, { 10373 key: "renderClearIndicator", 10374 value: function renderClearIndicator() { 10375 var _this$getComponents3 = this.getComponents(), 10376 ClearIndicator = _this$getComponents3.ClearIndicator; 10377 var commonProps = this.commonProps; 10378 var _this$props10 = this.props, 10379 isDisabled = _this$props10.isDisabled, 10380 isLoading = _this$props10.isLoading; 10381 var isFocused = this.state.isFocused; 10382 if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) { 10383 return null; 10384 } 10385 var innerProps = { 10386 onMouseDown: this.onClearIndicatorMouseDown, 10387 onTouchEnd: this.onClearIndicatorTouchEnd, 10388 'aria-hidden': 'true' 10389 }; 10390 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(ClearIndicator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10391 innerProps: innerProps, 10392 isFocused: isFocused 10393 })); 10394 } 10395 }, { 10396 key: "renderLoadingIndicator", 10397 value: function renderLoadingIndicator() { 10398 var _this$getComponents4 = this.getComponents(), 10399 LoadingIndicator = _this$getComponents4.LoadingIndicator; 10400 var commonProps = this.commonProps; 10401 var _this$props11 = this.props, 10402 isDisabled = _this$props11.isDisabled, 10403 isLoading = _this$props11.isLoading; 10404 var isFocused = this.state.isFocused; 10405 if (!LoadingIndicator || !isLoading) return null; 10406 var innerProps = { 10407 'aria-hidden': 'true' 10408 }; 10409 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(LoadingIndicator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10410 innerProps: innerProps, 10411 isDisabled: isDisabled, 10412 isFocused: isFocused 10413 })); 10414 } 10415 }, { 10416 key: "renderIndicatorSeparator", 10417 value: function renderIndicatorSeparator() { 10418 var _this$getComponents5 = this.getComponents(), 10419 DropdownIndicator = _this$getComponents5.DropdownIndicator, 10420 IndicatorSeparator = _this$getComponents5.IndicatorSeparator; 10421 10422 // separator doesn't make sense without the dropdown indicator 10423 if (!DropdownIndicator || !IndicatorSeparator) return null; 10424 var commonProps = this.commonProps; 10425 var isDisabled = this.props.isDisabled; 10426 var isFocused = this.state.isFocused; 10427 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(IndicatorSeparator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10428 isDisabled: isDisabled, 10429 isFocused: isFocused 10430 })); 10431 } 10432 }, { 10433 key: "renderDropdownIndicator", 10434 value: function renderDropdownIndicator() { 10435 var _this$getComponents6 = this.getComponents(), 10436 DropdownIndicator = _this$getComponents6.DropdownIndicator; 10437 if (!DropdownIndicator) return null; 10438 var commonProps = this.commonProps; 10439 var isDisabled = this.props.isDisabled; 10440 var isFocused = this.state.isFocused; 10441 var innerProps = { 10442 onMouseDown: this.onDropdownIndicatorMouseDown, 10443 onTouchEnd: this.onDropdownIndicatorTouchEnd, 10444 'aria-hidden': 'true' 10445 }; 10446 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(DropdownIndicator, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10447 innerProps: innerProps, 10448 isDisabled: isDisabled, 10449 isFocused: isFocused 10450 })); 10451 } 10452 }, { 10453 key: "renderMenu", 10454 value: function renderMenu() { 10455 var _this4 = this; 10456 var _this$getComponents7 = this.getComponents(), 10457 Group = _this$getComponents7.Group, 10458 GroupHeading = _this$getComponents7.GroupHeading, 10459 Menu = _this$getComponents7.Menu, 10460 MenuList = _this$getComponents7.MenuList, 10461 MenuPortal = _this$getComponents7.MenuPortal, 10462 LoadingMessage = _this$getComponents7.LoadingMessage, 10463 NoOptionsMessage = _this$getComponents7.NoOptionsMessage, 10464 Option = _this$getComponents7.Option; 10465 var commonProps = this.commonProps; 10466 var focusedOption = this.state.focusedOption; 10467 var _this$props12 = this.props, 10468 captureMenuScroll = _this$props12.captureMenuScroll, 10469 inputValue = _this$props12.inputValue, 10470 isLoading = _this$props12.isLoading, 10471 loadingMessage = _this$props12.loadingMessage, 10472 minMenuHeight = _this$props12.minMenuHeight, 10473 maxMenuHeight = _this$props12.maxMenuHeight, 10474 menuIsOpen = _this$props12.menuIsOpen, 10475 menuPlacement = _this$props12.menuPlacement, 10476 menuPosition = _this$props12.menuPosition, 10477 menuPortalTarget = _this$props12.menuPortalTarget, 10478 menuShouldBlockScroll = _this$props12.menuShouldBlockScroll, 10479 menuShouldScrollIntoView = _this$props12.menuShouldScrollIntoView, 10480 noOptionsMessage = _this$props12.noOptionsMessage, 10481 onMenuScrollToTop = _this$props12.onMenuScrollToTop, 10482 onMenuScrollToBottom = _this$props12.onMenuScrollToBottom; 10483 if (!menuIsOpen) return null; 10484 10485 // TODO: Internal Option Type here 10486 var render = function render(props, id) { 10487 var type = props.type, 10488 data = props.data, 10489 isDisabled = props.isDisabled, 10490 isSelected = props.isSelected, 10491 label = props.label, 10492 value = props.value; 10493 var isFocused = focusedOption === data; 10494 var onHover = isDisabled ? undefined : function () { 10495 return _this4.onOptionHover(data); 10496 }; 10497 var onSelect = isDisabled ? undefined : function () { 10498 return _this4.selectOption(data); 10499 }; 10500 var optionId = "".concat(_this4.getElementId('option'), "-").concat(id); 10501 var innerProps = { 10502 id: optionId, 10503 onClick: onSelect, 10504 onMouseMove: onHover, 10505 onMouseOver: onHover, 10506 tabIndex: -1 10507 }; 10508 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(Option, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10509 innerProps: innerProps, 10510 data: data, 10511 isDisabled: isDisabled, 10512 isSelected: isSelected, 10513 key: optionId, 10514 label: label, 10515 type: type, 10516 value: value, 10517 isFocused: isFocused, 10518 innerRef: isFocused ? _this4.getFocusedOptionRef : undefined 10519 }), _this4.formatOptionLabel(props.data, 'menu')); 10520 }; 10521 var menuUI; 10522 if (this.hasOptions()) { 10523 menuUI = this.getCategorizedOptions().map(function (item) { 10524 if (item.type === 'group') { 10525 var _data = item.data, 10526 options = item.options, 10527 groupIndex = item.index; 10528 var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex); 10529 var headingId = "".concat(groupId, "-heading"); 10530 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(Group, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10531 key: groupId, 10532 data: _data, 10533 options: options, 10534 Heading: GroupHeading, 10535 headingProps: { 10536 id: headingId, 10537 data: item.data 10538 }, 10539 label: _this4.formatGroupLabel(item.data) 10540 }), item.options.map(function (option) { 10541 return render(option, "".concat(groupIndex, "-").concat(option.index)); 10542 })); 10543 } else if (item.type === 'option') { 10544 return render(item, "".concat(item.index)); 10545 } 10546 }); 10547 } else if (isLoading) { 10548 var message = loadingMessage({ 10549 inputValue: inputValue 10550 }); 10551 if (message === null) return null; 10552 menuUI = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(LoadingMessage, commonProps, message); 10553 } else { 10554 var _message = noOptionsMessage({ 10555 inputValue: inputValue 10556 }); 10557 if (_message === null) return null; 10558 menuUI = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(NoOptionsMessage, commonProps, _message); 10559 } 10560 var menuPlacementProps = { 10561 minMenuHeight: minMenuHeight, 10562 maxMenuHeight: maxMenuHeight, 10563 menuPlacement: menuPlacement, 10564 menuPosition: menuPosition, 10565 menuShouldScrollIntoView: menuShouldScrollIntoView 10566 }; 10567 var menuElement = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.M, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, menuPlacementProps), function (_ref4) { 10568 var ref = _ref4.ref, 10569 _ref4$placerProps = _ref4.placerProps, 10570 placement = _ref4$placerProps.placement, 10571 maxHeight = _ref4$placerProps.maxHeight; 10572 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(Menu, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, menuPlacementProps, { 10573 innerRef: ref, 10574 innerProps: { 10575 onMouseDown: _this4.onMenuMouseDown, 10576 onMouseMove: _this4.onMenuMouseMove, 10577 id: _this4.getElementId('listbox') 10578 }, 10579 isLoading: isLoading, 10580 placement: placement 10581 }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(ScrollManager, { 10582 captureEnabled: captureMenuScroll, 10583 onTopArrive: onMenuScrollToTop, 10584 onBottomArrive: onMenuScrollToBottom, 10585 lockEnabled: menuShouldBlockScroll 10586 }, function (scrollTargetRef) { 10587 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(MenuList, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10588 innerRef: function innerRef(instance) { 10589 _this4.getMenuListRef(instance); 10590 scrollTargetRef(instance); 10591 }, 10592 isLoading: isLoading, 10593 maxHeight: maxHeight, 10594 focusedOption: focusedOption 10595 }), menuUI); 10596 })); 10597 }); 10598 10599 // positioning behaviour is almost identical for portalled and fixed, 10600 // so we use the same component. the actual portalling logic is forked 10601 // within the component based on `menuPosition` 10602 return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(MenuPortal, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10603 appendTo: menuPortalTarget, 10604 controlElement: this.controlRef, 10605 menuPlacement: menuPlacement, 10606 menuPosition: menuPosition 10607 }), menuElement) : menuElement; 10608 } 10609 }, { 10610 key: "renderFormField", 10611 value: function renderFormField() { 10612 var _this5 = this; 10613 var _this$props13 = this.props, 10614 delimiter = _this$props13.delimiter, 10615 isDisabled = _this$props13.isDisabled, 10616 isMulti = _this$props13.isMulti, 10617 name = _this$props13.name, 10618 required = _this$props13.required; 10619 var selectValue = this.state.selectValue; 10620 if (!name || isDisabled) return; 10621 if (required && !this.hasValue()) { 10622 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(RequiredInput, { 10623 name: name, 10624 onFocus: this.onValueInputFocus 10625 }); 10626 } 10627 if (isMulti) { 10628 if (delimiter) { 10629 var value = selectValue.map(function (opt) { 10630 return _this5.getOptionValue(opt); 10631 }).join(delimiter); 10632 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement("input", { 10633 name: name, 10634 type: "hidden", 10635 value: value 10636 }); 10637 } else { 10638 var input = selectValue.length > 0 ? selectValue.map(function (opt, i) { 10639 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement("input", { 10640 key: "i-".concat(i), 10641 name: name, 10642 type: "hidden", 10643 value: _this5.getOptionValue(opt) 10644 }); 10645 }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement("input", { 10646 name: name, 10647 type: "hidden", 10648 value: "" 10649 }); 10650 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement("div", null, input); 10651 } 10652 } else { 10653 var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : ''; 10654 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement("input", { 10655 name: name, 10656 type: "hidden", 10657 value: _value 10658 }); 10659 } 10660 } 10661 }, { 10662 key: "renderLiveRegion", 10663 value: function renderLiveRegion() { 10664 var commonProps = this.commonProps; 10665 var _this$state6 = this.state, 10666 ariaSelection = _this$state6.ariaSelection, 10667 focusedOption = _this$state6.focusedOption, 10668 focusedValue = _this$state6.focusedValue, 10669 isFocused = _this$state6.isFocused, 10670 selectValue = _this$state6.selectValue; 10671 var focusableOptions = this.getFocusableOptions(); 10672 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(LiveRegion, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10673 id: this.getElementId('live-region'), 10674 ariaSelection: ariaSelection, 10675 focusedOption: focusedOption, 10676 focusedValue: focusedValue, 10677 isFocused: isFocused, 10678 selectValue: selectValue, 10679 focusableOptions: focusableOptions 10680 })); 10681 } 10682 }, { 10683 key: "render", 10684 value: function render() { 10685 var _this$getComponents8 = this.getComponents(), 10686 Control = _this$getComponents8.Control, 10687 IndicatorsContainer = _this$getComponents8.IndicatorsContainer, 10688 SelectContainer = _this$getComponents8.SelectContainer, 10689 ValueContainer = _this$getComponents8.ValueContainer; 10690 var _this$props14 = this.props, 10691 className = _this$props14.className, 10692 id = _this$props14.id, 10693 isDisabled = _this$props14.isDisabled, 10694 menuIsOpen = _this$props14.menuIsOpen; 10695 var isFocused = this.state.isFocused; 10696 var commonProps = this.commonProps = this.getCommonProps(); 10697 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(SelectContainer, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10698 className: className, 10699 innerProps: { 10700 id: id, 10701 onKeyDown: this.onKeyDown 10702 }, 10703 isDisabled: isDisabled, 10704 isFocused: isFocused 10705 }), this.renderLiveRegion(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(Control, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10706 innerRef: this.getControlRef, 10707 innerProps: { 10708 onMouseDown: this.onControlMouseDown, 10709 onTouchEnd: this.onControlTouchEnd 10710 }, 10711 isDisabled: isDisabled, 10712 isFocused: isFocused, 10713 menuIsOpen: menuIsOpen 10714 }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(ValueContainer, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10715 isDisabled: isDisabled 10716 }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(IndicatorsContainer, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { 10717 isDisabled: isDisabled 10718 }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField()); 10719 } 10720 }], [{ 10721 key: "getDerivedStateFromProps", 10722 value: function getDerivedStateFromProps(props, state) { 10723 var prevProps = state.prevProps, 10724 clearFocusValueOnUpdate = state.clearFocusValueOnUpdate, 10725 inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate, 10726 ariaSelection = state.ariaSelection, 10727 isFocused = state.isFocused, 10728 prevWasFocused = state.prevWasFocused; 10729 var options = props.options, 10730 value = props.value, 10731 menuIsOpen = props.menuIsOpen, 10732 inputValue = props.inputValue, 10733 isMulti = props.isMulti; 10734 var selectValue = (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.I)(value); 10735 var newMenuOptionsState = {}; 10736 if (prevProps && (value !== prevProps.value || options !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) { 10737 var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : []; 10738 var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null; 10739 var focusedOption = getNextFocusedOption(state, focusableOptions); 10740 newMenuOptionsState = { 10741 selectValue: selectValue, 10742 focusedOption: focusedOption, 10743 focusedValue: focusedValue, 10744 clearFocusValueOnUpdate: false 10745 }; 10746 } 10747 // some updates should toggle the state of the input visibility 10748 var newInputIsHiddenState = inputIsHiddenAfterUpdate != null && props !== prevProps ? { 10749 inputIsHidden: inputIsHiddenAfterUpdate, 10750 inputIsHiddenAfterUpdate: undefined 10751 } : {}; 10752 var newAriaSelection = ariaSelection; 10753 var hasKeptFocus = isFocused && prevWasFocused; 10754 if (isFocused && !hasKeptFocus) { 10755 // If `value` or `defaultValue` props are not empty then announce them 10756 // when the Select is initially focused 10757 newAriaSelection = { 10758 value: (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_11__.D)(isMulti, selectValue, selectValue[0] || null), 10759 options: selectValue, 10760 action: 'initial-input-focus' 10761 }; 10762 hasKeptFocus = !prevWasFocused; 10763 } 10764 10765 // If the 'initial-input-focus' action has been set already 10766 // then reset the ariaSelection to null 10767 if ((ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus') { 10768 newAriaSelection = null; 10769 } 10770 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, newMenuOptionsState), newInputIsHiddenState), {}, { 10771 prevProps: props, 10772 ariaSelection: newAriaSelection, 10773 prevWasFocused: hasKeptFocus 10774 }); 10775 } 10776 }]); 10777 return Select; 10778}(react__WEBPACK_IMPORTED_MODULE_7__.Component); 10779Select.defaultProps = defaultProps; 10780 10781 10782 10783 10784/***/ }), 10785
vendor: 80,436 bytes, lines 10786-12223
10786/***/ "./node_modules/react-select/dist/index-a86253bb.esm.js": 10787/*!**************************************************************!*\ 10788 !*** ./node_modules/react-select/dist/index-a86253bb.esm.js ***! 10789 \**************************************************************/ 10790/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 10791 10792"use strict"; 10793__webpack_require__.r(__webpack_exports__); 10794/* harmony export */ __webpack_require__.d(__webpack_exports__, { 10795/* harmony export */ "A": function() { return /* binding */ isMobileDevice; }, 10796/* harmony export */ "B": function() { return /* binding */ multiValueAsValue; }, 10797/* harmony export */ "C": function() { return /* binding */ singleValueAsValue; }, 10798/* harmony export */ "D": function() { return /* binding */ valueTernary; }, 10799/* harmony export */ "E": function() { return /* binding */ classNames; }, 10800/* harmony export */ "F": function() { return /* binding */ defaultComponents; }, 10801/* harmony export */ "G": function() { return /* binding */ notNullish; }, 10802/* harmony export */ "H": function() { return /* binding */ isDocumentElement; }, 10803/* harmony export */ "I": function() { return /* binding */ cleanValue; }, 10804/* harmony export */ "J": function() { return /* binding */ scrollIntoView; }, 10805/* harmony export */ "K": function() { return /* binding */ noop; }, 10806/* harmony export */ "L": function() { return /* binding */ handleInputChange; }, 10807/* harmony export */ "M": function() { return /* binding */ MenuPlacer; }, 10808/* harmony export */ "a": function() { return /* binding */ clearIndicatorCSS; }, 10809/* harmony export */ "b": function() { return /* binding */ containerCSS; }, 10810/* harmony export */ "c": function() { return /* binding */ components; }, 10811/* harmony export */ "d": function() { return /* binding */ css$1; }, 10812/* harmony export */ "e": function() { return /* binding */ dropdownIndicatorCSS; }, 10813/* harmony export */ "f": function() { return /* binding */ groupHeadingCSS; }, 10814/* harmony export */ "g": function() { return /* binding */ groupCSS; }, 10815/* harmony export */ "h": function() { return /* binding */ indicatorSeparatorCSS; }, 10816/* harmony export */ "i": function() { return /* binding */ indicatorsContainerCSS; }, 10817/* harmony export */ "j": function() { return /* binding */ inputCSS; }, 10818/* harmony export */ "k": function() { return /* binding */ loadingMessageCSS; }, 10819/* harmony export */ "l": function() { return /* binding */ loadingIndicatorCSS; }, 10820/* harmony export */ "m": function() { return /* binding */ menuCSS; }, 10821/* harmony export */ "n": function() { return /* binding */ menuListCSS; }, 10822/* harmony export */ "o": function() { return /* binding */ menuPortalCSS; }, 10823/* harmony export */ "p": function() { return /* binding */ multiValueCSS; }, 10824/* harmony export */ "q": function() { return /* binding */ multiValueLabelCSS; }, 10825/* harmony export */ "r": function() { return /* binding */ removeProps; }, 10826/* harmony export */ "s": function() { return /* binding */ supportsPassiveEvents; }, 10827/* harmony export */ "t": function() { return /* binding */ multiValueRemoveCSS; }, 10828/* harmony export */ "u": function() { return /* binding */ noOptionsMessageCSS; }, 10829/* harmony export */ "v": function() { return /* binding */ optionCSS; }, 10830/* harmony export */ "w": function() { return /* binding */ placeholderCSS; }, 10831/* harmony export */ "x": function() { return /* binding */ css; }, 10832/* harmony export */ "y": function() { return /* binding */ valueContainerCSS; }, 10833/* harmony export */ "z": function() { return /* binding */ isTouchCapable; } 10834/* harmony export */ }); 10835/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); 10836/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); 10837/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); 10838/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); 10839/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); 10840/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 10841/* harmony import */ var _babel_runtime_helpers_esm_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/taggedTemplateLiteral */ "./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"); 10842/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); 10843/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react"); 10844/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__); 10845/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-dom */ "react-dom"); 10846/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__); 10847/* harmony import */ var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @floating-ui/dom */ "./node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs"); 10848/* harmony import */ var use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! use-isomorphic-layout-effect */ "./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js"); 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862var _excluded$3 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"]; 10863// ============================== 10864// NO OP 10865// ============================== 10866 10867var noop = function noop() {}; 10868 10869// ============================== 10870// Class Name Prefixer 10871// ============================== 10872 10873/** 10874 String representation of component state for styling with class names. 10875 10876 Expects an array of strings OR a string/object pair: 10877 - className(['comp', 'comp-arg', 'comp-arg-2']) 10878 @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2' 10879 - className('comp', { some: true, state: false }) 10880 @returns 'react-select__comp react-select__comp--some' 10881*/ 10882function applyPrefixToName(prefix, name) { 10883 if (!name) { 10884 return prefix; 10885 } else if (name[0] === '-') { 10886 return prefix + name; 10887 } else { 10888 return prefix + '__' + name; 10889 } 10890} 10891function classNames(prefix, state) { 10892 for (var _len = arguments.length, classNameList = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { 10893 classNameList[_key - 2] = arguments[_key]; 10894 } 10895 var arr = [].concat(classNameList); 10896 if (state && prefix) { 10897 for (var key in state) { 10898 if (state.hasOwnProperty(key) && state[key]) { 10899 arr.push("".concat(applyPrefixToName(prefix, key))); 10900 } 10901 } 10902 } 10903 return arr.filter(function (i) { 10904 return i; 10905 }).map(function (i) { 10906 return String(i).trim(); 10907 }).join(' '); 10908} 10909// ============================== 10910// Clean Value 10911// ============================== 10912 10913var cleanValue = function cleanValue(value) { 10914 if (isArray(value)) return value.filter(Boolean); 10915 if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__["default"])(value) === 'object' && value !== null) return [value]; 10916 return []; 10917}; 10918 10919// ============================== 10920// Clean Common Props 10921// ============================== 10922 10923var cleanCommonProps = function cleanCommonProps(props) { 10924 //className 10925 props.className; 10926 props.clearValue; 10927 props.cx; 10928 props.getStyles; 10929 props.getClassNames; 10930 props.getValue; 10931 props.hasValue; 10932 props.isMulti; 10933 props.isRtl; 10934 props.options; 10935 props.selectOption; 10936 props.selectProps; 10937 props.setValue; 10938 props.theme; 10939 var innerProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, _excluded$3); 10940 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps); 10941}; 10942 10943// ============================== 10944// Get Style Props 10945// ============================== 10946 10947var getStyleProps = function getStyleProps(props, name, classNamesState) { 10948 var cx = props.cx, 10949 getStyles = props.getStyles, 10950 getClassNames = props.getClassNames, 10951 className = props.className; 10952 return { 10953 css: getStyles(name, props), 10954 className: cx(classNamesState !== null && classNamesState !== void 0 ? classNamesState : {}, getClassNames(name, props), className) 10955 }; 10956}; 10957 10958// ============================== 10959// Handle Input Change 10960// ============================== 10961 10962function handleInputChange(inputValue, actionMeta, onInputChange) { 10963 if (onInputChange) { 10964 var _newValue = onInputChange(inputValue, actionMeta); 10965 if (typeof _newValue === 'string') return _newValue; 10966 } 10967 return inputValue; 10968} 10969 10970// ============================== 10971// Scroll Helpers 10972// ============================== 10973 10974function isDocumentElement(el) { 10975 return [document.documentElement, document.body, window].indexOf(el) > -1; 10976} 10977 10978// Normalized Scroll Top 10979// ------------------------------ 10980 10981function normalizedHeight(el) { 10982 if (isDocumentElement(el)) { 10983 return window.innerHeight; 10984 } 10985 return el.clientHeight; 10986} 10987 10988// Normalized scrollTo & scrollTop 10989// ------------------------------ 10990 10991function getScrollTop(el) { 10992 if (isDocumentElement(el)) { 10993 return window.pageYOffset; 10994 } 10995 return el.scrollTop; 10996} 10997function scrollTo(el, top) { 10998 // with a scroll distance, we perform scroll on the element 10999 if (isDocumentElement(el)) { 11000 window.scrollTo(0, top); 11001 return; 11002 } 11003 el.scrollTop = top; 11004} 11005 11006// Get Scroll Parent 11007// ------------------------------ 11008 11009function getScrollParent(element) { 11010 var style = getComputedStyle(element); 11011 var excludeStaticParent = style.position === 'absolute'; 11012 var overflowRx = /(auto|scroll)/; 11013 if (style.position === 'fixed') return document.documentElement; 11014 for (var parent = element; parent = parent.parentElement;) { 11015 style = getComputedStyle(parent); 11016 if (excludeStaticParent && style.position === 'static') { 11017 continue; 11018 } 11019 if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) { 11020 return parent; 11021 } 11022 } 11023 return document.documentElement; 11024} 11025 11026// Animated Scroll To 11027// ------------------------------ 11028 11029/** 11030 @param t: time (elapsed) 11031 @param b: initial value 11032 @param c: amount of change 11033 @param d: duration 11034*/ 11035function easeOutCubic(t, b, c, d) { 11036 return c * ((t = t / d - 1) * t * t + 1) + b; 11037} 11038function animatedScrollTo(element, to) { 11039 var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200; 11040 var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop; 11041 var start = getScrollTop(element); 11042 var change = to - start; 11043 var increment = 10; 11044 var currentTime = 0; 11045 function animateScroll() { 11046 currentTime += increment; 11047 var val = easeOutCubic(currentTime, start, change, duration); 11048 scrollTo(element, val); 11049 if (currentTime < duration) { 11050 window.requestAnimationFrame(animateScroll); 11051 } else { 11052 callback(element); 11053 } 11054 } 11055 animateScroll(); 11056} 11057 11058// Scroll Into View 11059// ------------------------------ 11060 11061function scrollIntoView(menuEl, focusedEl) { 11062 var menuRect = menuEl.getBoundingClientRect(); 11063 var focusedRect = focusedEl.getBoundingClientRect(); 11064 var overScroll = focusedEl.offsetHeight / 3; 11065 if (focusedRect.bottom + overScroll > menuRect.bottom) { 11066 scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight)); 11067 } else if (focusedRect.top - overScroll < menuRect.top) { 11068 scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0)); 11069 } 11070} 11071 11072// ============================== 11073// Get bounding client object 11074// ============================== 11075 11076// cannot get keys using array notation with DOMRect 11077function getBoundingClientObj(element) { 11078 var rect = element.getBoundingClientRect(); 11079 return { 11080 bottom: rect.bottom, 11081 height: rect.height, 11082 left: rect.left, 11083 right: rect.right, 11084 top: rect.top, 11085 width: rect.width 11086 }; 11087} 11088 11089// ============================== 11090// Touch Capability Detector 11091// ============================== 11092 11093function isTouchCapable() { 11094 try { 11095 document.createEvent('TouchEvent'); 11096 return true; 11097 } catch (e) { 11098 return false; 11099 } 11100} 11101 11102// ============================== 11103// Mobile Device Detector 11104// ============================== 11105 11106function isMobileDevice() { 11107 try { 11108 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 11109 } catch (e) { 11110 return false; 11111 } 11112} 11113 11114// ============================== 11115// Passive Event Detector 11116// ============================== 11117 11118// https://github.com/rafgraph/detect-it/blob/main/src/index.ts#L19-L36 11119var passiveOptionAccessed = false; 11120var options = { 11121 get passive() { 11122 return passiveOptionAccessed = true; 11123 } 11124}; 11125// check for SSR 11126var w = typeof window !== 'undefined' ? window : {}; 11127if (w.addEventListener && w.removeEventListener) { 11128 w.addEventListener('p', noop, options); 11129 w.removeEventListener('p', noop, false); 11130} 11131var supportsPassiveEvents = passiveOptionAccessed; 11132function notNullish(item) { 11133 return item != null; 11134} 11135function isArray(arg) { 11136 return Array.isArray(arg); 11137} 11138function valueTernary(isMulti, multiValue, singleValue) { 11139 return isMulti ? multiValue : singleValue; 11140} 11141function singleValueAsValue(singleValue) { 11142 return singleValue; 11143} 11144function multiValueAsValue(multiValue) { 11145 return multiValue; 11146} 11147var removeProps = function removeProps(propsObj) { 11148 for (var _len2 = arguments.length, properties = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { 11149 properties[_key2 - 1] = arguments[_key2]; 11150 } 11151 var propsMap = Object.entries(propsObj).filter(function (_ref) { 11152 var _ref2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, 1), 11153 key = _ref2[0]; 11154 return !properties.includes(key); 11155 }); 11156 return propsMap.reduce(function (newProps, _ref3) { 11157 var _ref4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref3, 2), 11158 key = _ref4[0], 11159 val = _ref4[1]; 11160 newProps[key] = val; 11161 return newProps; 11162 }, {}); 11163}; 11164 11165function getMenuPlacement(_ref) { 11166 var preferredMaxHeight = _ref.maxHeight, 11167 menuEl = _ref.menuEl, 11168 minHeight = _ref.minHeight, 11169 preferredPlacement = _ref.placement, 11170 shouldScroll = _ref.shouldScroll, 11171 isFixedPosition = _ref.isFixedPosition, 11172 controlHeight = _ref.controlHeight; 11173 var scrollParent = getScrollParent(menuEl); 11174 var defaultState = { 11175 placement: 'bottom', 11176 maxHeight: preferredMaxHeight 11177 }; 11178 11179 // something went wrong, return default state 11180 if (!menuEl || !menuEl.offsetParent) return defaultState; 11181 11182 // we can't trust `scrollParent.scrollHeight` --> it may increase when 11183 // the menu is rendered 11184 var _scrollParent$getBoun = scrollParent.getBoundingClientRect(), 11185 scrollHeight = _scrollParent$getBoun.height; 11186 var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), 11187 menuBottom = _menuEl$getBoundingCl.bottom, 11188 menuHeight = _menuEl$getBoundingCl.height, 11189 menuTop = _menuEl$getBoundingCl.top; 11190 var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(), 11191 containerTop = _menuEl$offsetParent$.top; 11192 var viewHeight = isFixedPosition ? window.innerHeight : normalizedHeight(scrollParent); 11193 var scrollTop = getScrollTop(scrollParent); 11194 var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10); 11195 var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10); 11196 var viewSpaceAbove = containerTop - marginTop; 11197 var viewSpaceBelow = viewHeight - menuTop; 11198 var scrollSpaceAbove = viewSpaceAbove + scrollTop; 11199 var scrollSpaceBelow = scrollHeight - scrollTop - menuTop; 11200 var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom; 11201 var scrollUp = scrollTop + menuTop - marginTop; 11202 var scrollDuration = 160; 11203 switch (preferredPlacement) { 11204 case 'auto': 11205 case 'bottom': 11206 // 1: the menu will fit, do nothing 11207 if (viewSpaceBelow >= menuHeight) { 11208 return { 11209 placement: 'bottom', 11210 maxHeight: preferredMaxHeight 11211 }; 11212 } 11213 11214 // 2: the menu will fit, if scrolled 11215 if (scrollSpaceBelow >= menuHeight && !isFixedPosition) { 11216 if (shouldScroll) { 11217 animatedScrollTo(scrollParent, scrollDown, scrollDuration); 11218 } 11219 return { 11220 placement: 'bottom', 11221 maxHeight: preferredMaxHeight 11222 }; 11223 } 11224 11225 // 3: the menu will fit, if constrained 11226 if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) { 11227 if (shouldScroll) { 11228 animatedScrollTo(scrollParent, scrollDown, scrollDuration); 11229 } 11230 11231 // we want to provide as much of the menu as possible to the user, 11232 // so give them whatever is available below rather than the minHeight. 11233 var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom; 11234 return { 11235 placement: 'bottom', 11236 maxHeight: constrainedHeight 11237 }; 11238 } 11239 11240 // 4. Forked beviour when there isn't enough space below 11241 11242 // AUTO: flip the menu, render above 11243 if (preferredPlacement === 'auto' || isFixedPosition) { 11244 // may need to be constrained after flipping 11245 var _constrainedHeight = preferredMaxHeight; 11246 var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove; 11247 if (spaceAbove >= minHeight) { 11248 _constrainedHeight = Math.min(spaceAbove - marginBottom - controlHeight, preferredMaxHeight); 11249 } 11250 return { 11251 placement: 'top', 11252 maxHeight: _constrainedHeight 11253 }; 11254 } 11255 11256 // BOTTOM: allow browser to increase scrollable area and immediately set scroll 11257 if (preferredPlacement === 'bottom') { 11258 if (shouldScroll) { 11259 scrollTo(scrollParent, scrollDown); 11260 } 11261 return { 11262 placement: 'bottom', 11263 maxHeight: preferredMaxHeight 11264 }; 11265 } 11266 break; 11267 case 'top': 11268 // 1: the menu will fit, do nothing 11269 if (viewSpaceAbove >= menuHeight) { 11270 return { 11271 placement: 'top', 11272 maxHeight: preferredMaxHeight 11273 }; 11274 } 11275 11276 // 2: the menu will fit, if scrolled 11277 if (scrollSpaceAbove >= menuHeight && !isFixedPosition) { 11278 if (shouldScroll) { 11279 animatedScrollTo(scrollParent, scrollUp, scrollDuration); 11280 } 11281 return { 11282 placement: 'top', 11283 maxHeight: preferredMaxHeight 11284 }; 11285 } 11286 11287 // 3: the menu will fit, if constrained 11288 if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { 11289 var _constrainedHeight2 = preferredMaxHeight; 11290 11291 // we want to provide as much of the menu as possible to the user, 11292 // so give them whatever is available below rather than the minHeight. 11293 if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { 11294 _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop; 11295 } 11296 if (shouldScroll) { 11297 animatedScrollTo(scrollParent, scrollUp, scrollDuration); 11298 } 11299 return { 11300 placement: 'top', 11301 maxHeight: _constrainedHeight2 11302 }; 11303 } 11304 11305 // 4. not enough space, the browser WILL NOT increase scrollable area when 11306 // absolutely positioned element rendered above the viewport (only below). 11307 // Flip the menu, render below 11308 return { 11309 placement: 'bottom', 11310 maxHeight: preferredMaxHeight 11311 }; 11312 default: 11313 throw new Error("Invalid placement provided \"".concat(preferredPlacement, "\".")); 11314 } 11315 return defaultState; 11316} 11317 11318// Menu Component 11319// ------------------------------ 11320 11321function alignToControl(placement) { 11322 var placementToCSSProp = { 11323 bottom: 'top', 11324 top: 'bottom' 11325 }; 11326 return placement ? placementToCSSProp[placement] : 'bottom'; 11327} 11328var coercePlacement = function coercePlacement(p) { 11329 return p === 'auto' ? 'bottom' : p; 11330}; 11331var menuCSS = function menuCSS(_ref2, unstyled) { 11332 var _objectSpread2; 11333 var placement = _ref2.placement, 11334 _ref2$theme = _ref2.theme, 11335 borderRadius = _ref2$theme.borderRadius, 11336 spacing = _ref2$theme.spacing, 11337 colors = _ref2$theme.colors; 11338 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((_objectSpread2 = { 11339 label: 'menu' 11340 }, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_objectSpread2, alignToControl(placement), '100%'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_objectSpread2, "position", 'absolute'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_objectSpread2, "width", '100%'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_objectSpread2, "zIndex", 1), _objectSpread2), unstyled ? {} : { 11341 backgroundColor: colors.neutral0, 11342 borderRadius: borderRadius, 11343 boxShadow: '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)', 11344 marginBottom: spacing.menuGutter, 11345 marginTop: spacing.menuGutter 11346 }); 11347}; 11348var PortalPlacementContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_7__.createContext)(null); 11349 11350// NOTE: internal only 11351var MenuPlacer = function MenuPlacer(props) { 11352 var children = props.children, 11353 minMenuHeight = props.minMenuHeight, 11354 maxMenuHeight = props.maxMenuHeight, 11355 menuPlacement = props.menuPlacement, 11356 menuPosition = props.menuPosition, 11357 menuShouldScrollIntoView = props.menuShouldScrollIntoView, 11358 theme = props.theme; 11359 var _ref3 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useContext)(PortalPlacementContext) || {}, 11360 setPortalPlacement = _ref3.setPortalPlacement; 11361 var ref = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null); 11362 var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(maxMenuHeight), 11363 _useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2), 11364 maxHeight = _useState2[0], 11365 setMaxHeight = _useState2[1]; 11366 var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(null), 11367 _useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2), 11368 placement = _useState4[0], 11369 setPlacement = _useState4[1]; 11370 var controlHeight = theme.spacing.controlHeight; 11371 (0,use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_9__["default"])(function () { 11372 var menuEl = ref.current; 11373 if (!menuEl) return; 11374 11375 // DO NOT scroll if position is fixed 11376 var isFixedPosition = menuPosition === 'fixed'; 11377 var shouldScroll = menuShouldScrollIntoView && !isFixedPosition; 11378 var state = getMenuPlacement({ 11379 maxHeight: maxMenuHeight, 11380 menuEl: menuEl, 11381 minHeight: minMenuHeight, 11382 placement: menuPlacement, 11383 shouldScroll: shouldScroll, 11384 isFixedPosition: isFixedPosition, 11385 controlHeight: controlHeight 11386 }); 11387 setMaxHeight(state.maxHeight); 11388 setPlacement(state.placement); 11389 setPortalPlacement === null || setPortalPlacement === void 0 ? void 0 : setPortalPlacement(state.placement); 11390 }, [maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, setPortalPlacement, controlHeight]); 11391 return children({ 11392 ref: ref, 11393 placerProps: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props), {}, { 11394 placement: placement || coercePlacement(menuPlacement), 11395 maxHeight: maxHeight 11396 }) 11397 }); 11398}; 11399var Menu = function Menu(props) { 11400 var children = props.children, 11401 innerRef = props.innerRef, 11402 innerProps = props.innerProps; 11403 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'menu', { 11404 menu: true 11405 }), { 11406 ref: innerRef 11407 }, innerProps), children); 11408}; 11409 11410// ============================== 11411// Menu List 11412// ============================== 11413 11414var menuListCSS = function menuListCSS(_ref4, unstyled) { 11415 var maxHeight = _ref4.maxHeight, 11416 baseUnit = _ref4.theme.spacing.baseUnit; 11417 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11418 maxHeight: maxHeight, 11419 overflowY: 'auto', 11420 position: 'relative', 11421 // required for offset[Height, Top] > keyboard scroll 11422 WebkitOverflowScrolling: 'touch' 11423 }, unstyled ? {} : { 11424 paddingBottom: baseUnit, 11425 paddingTop: baseUnit 11426 }); 11427}; 11428var MenuList = function MenuList(props) { 11429 var children = props.children, 11430 innerProps = props.innerProps, 11431 innerRef = props.innerRef, 11432 isMulti = props.isMulti; 11433 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'menuList', { 11434 'menu-list': true, 11435 'menu-list--is-multi': isMulti 11436 }), { 11437 ref: innerRef 11438 }, innerProps), children); 11439}; 11440 11441// ============================== 11442// Menu Notices 11443// ============================== 11444 11445var noticeCSS = function noticeCSS(_ref5, unstyled) { 11446 var _ref5$theme = _ref5.theme, 11447 baseUnit = _ref5$theme.spacing.baseUnit, 11448 colors = _ref5$theme.colors; 11449 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11450 textAlign: 'center' 11451 }, unstyled ? {} : { 11452 color: colors.neutral40, 11453 padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px") 11454 }); 11455}; 11456var noOptionsMessageCSS = noticeCSS; 11457var loadingMessageCSS = noticeCSS; 11458var NoOptionsMessage = function NoOptionsMessage(props) { 11459 var children = props.children, 11460 innerProps = props.innerProps; 11461 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'noOptionsMessage', { 11462 'menu-notice': true, 11463 'menu-notice--no-options': true 11464 }), innerProps), children); 11465}; 11466NoOptionsMessage.defaultProps = { 11467 children: 'No options' 11468}; 11469var LoadingMessage = function LoadingMessage(props) { 11470 var children = props.children, 11471 innerProps = props.innerProps; 11472 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'loadingMessage', { 11473 'menu-notice': true, 11474 'menu-notice--loading': true 11475 }), innerProps), children); 11476}; 11477LoadingMessage.defaultProps = { 11478 children: 'Loading...' 11479}; 11480 11481// ============================== 11482// Menu Portal 11483// ============================== 11484 11485var menuPortalCSS = function menuPortalCSS(_ref6) { 11486 var rect = _ref6.rect, 11487 offset = _ref6.offset, 11488 position = _ref6.position; 11489 return { 11490 left: rect.left, 11491 position: position, 11492 top: offset, 11493 width: rect.width, 11494 zIndex: 1 11495 }; 11496}; 11497var MenuPortal = function MenuPortal(props) { 11498 var appendTo = props.appendTo, 11499 children = props.children, 11500 controlElement = props.controlElement, 11501 innerProps = props.innerProps, 11502 menuPlacement = props.menuPlacement, 11503 menuPosition = props.menuPosition; 11504 var menuPortalRef = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null); 11505 var cleanupRef = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null); 11506 var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(coercePlacement(menuPlacement)), 11507 _useState6 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState5, 2), 11508 placement = _useState6[0], 11509 setPortalPlacement = _useState6[1]; 11510 var portalPlacementContext = (0,react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () { 11511 return { 11512 setPortalPlacement: setPortalPlacement 11513 }; 11514 }, []); 11515 var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(null), 11516 _useState8 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState7, 2), 11517 computedPosition = _useState8[0], 11518 setComputedPosition = _useState8[1]; 11519 var updateComputedPosition = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function () { 11520 if (!controlElement) return; 11521 var rect = getBoundingClientObj(controlElement); 11522 var scrollDistance = menuPosition === 'fixed' ? 0 : window.pageYOffset; 11523 var offset = rect[placement] + scrollDistance; 11524 if (offset !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset) || rect.left !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left) || rect.width !== (computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width)) { 11525 setComputedPosition({ 11526 offset: offset, 11527 rect: rect 11528 }); 11529 } 11530 }, [controlElement, menuPosition, placement, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width]); 11531 (0,use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_9__["default"])(function () { 11532 updateComputedPosition(); 11533 }, [updateComputedPosition]); 11534 var runAutoUpdate = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function () { 11535 if (typeof cleanupRef.current === 'function') { 11536 cleanupRef.current(); 11537 cleanupRef.current = null; 11538 } 11539 if (controlElement && menuPortalRef.current) { 11540 cleanupRef.current = (0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_11__.autoUpdate)(controlElement, menuPortalRef.current, updateComputedPosition, { 11541 elementResize: 'ResizeObserver' in window 11542 }); 11543 } 11544 }, [controlElement, updateComputedPosition]); 11545 (0,use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_9__["default"])(function () { 11546 runAutoUpdate(); 11547 }, [runAutoUpdate]); 11548 var setMenuPortalElement = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (menuPortalElement) { 11549 menuPortalRef.current = menuPortalElement; 11550 runAutoUpdate(); 11551 }, [runAutoUpdate]); 11552 11553 // bail early if required elements aren't present 11554 if (!appendTo && menuPosition !== 'fixed' || !computedPosition) return null; 11555 11556 // same wrapper element whether fixed or portalled 11557 var menuWrapper = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 11558 ref: setMenuPortalElement 11559 }, getStyleProps((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props), {}, { 11560 offset: computedPosition.offset, 11561 position: menuPosition, 11562 rect: computedPosition.rect 11563 }), 'menuPortal', { 11564 'menu-portal': true 11565 }), innerProps), children); 11566 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(PortalPlacementContext.Provider, { 11567 value: portalPlacementContext 11568 }, appendTo ? /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_8__.createPortal)(menuWrapper, appendTo) : menuWrapper); 11569}; 11570 11571// ============================== 11572// Root Container 11573// ============================== 11574 11575var containerCSS = function containerCSS(_ref) { 11576 var isDisabled = _ref.isDisabled, 11577 isRtl = _ref.isRtl; 11578 return { 11579 label: 'container', 11580 direction: isRtl ? 'rtl' : undefined, 11581 pointerEvents: isDisabled ? 'none' : undefined, 11582 // cancel mouse events when disabled 11583 position: 'relative' 11584 }; 11585}; 11586var SelectContainer = function SelectContainer(props) { 11587 var children = props.children, 11588 innerProps = props.innerProps, 11589 isDisabled = props.isDisabled, 11590 isRtl = props.isRtl; 11591 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'container', { 11592 '--is-disabled': isDisabled, 11593 '--is-rtl': isRtl 11594 }), innerProps), children); 11595}; 11596 11597// ============================== 11598// Value Container 11599// ============================== 11600 11601var valueContainerCSS = function valueContainerCSS(_ref2, unstyled) { 11602 var spacing = _ref2.theme.spacing, 11603 isMulti = _ref2.isMulti, 11604 hasValue = _ref2.hasValue, 11605 controlShouldRenderValue = _ref2.selectProps.controlShouldRenderValue; 11606 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11607 alignItems: 'center', 11608 display: isMulti && hasValue && controlShouldRenderValue ? 'flex' : 'grid', 11609 flex: 1, 11610 flexWrap: 'wrap', 11611 WebkitOverflowScrolling: 'touch', 11612 position: 'relative', 11613 overflow: 'hidden' 11614 }, unstyled ? {} : { 11615 padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px") 11616 }); 11617}; 11618var ValueContainer = function ValueContainer(props) { 11619 var children = props.children, 11620 innerProps = props.innerProps, 11621 isMulti = props.isMulti, 11622 hasValue = props.hasValue; 11623 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'valueContainer', { 11624 'value-container': true, 11625 'value-container--is-multi': isMulti, 11626 'value-container--has-value': hasValue 11627 }), innerProps), children); 11628}; 11629 11630// ============================== 11631// Indicator Container 11632// ============================== 11633 11634var indicatorsContainerCSS = function indicatorsContainerCSS() { 11635 return { 11636 alignItems: 'center', 11637 alignSelf: 'stretch', 11638 display: 'flex', 11639 flexShrink: 0 11640 }; 11641}; 11642var IndicatorsContainer = function IndicatorsContainer(props) { 11643 var children = props.children, 11644 innerProps = props.innerProps; 11645 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'indicatorsContainer', { 11646 indicators: true 11647 }), innerProps), children); 11648}; 11649 11650var _templateObject; 11651var _excluded$2 = ["size"]; 11652function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } 11653 11654// ============================== 11655// Dropdown & Clear Icons 11656// ============================== 11657var _ref2 = false ? 0 : { 11658 name: "tj5bde-Svg", 11659 styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;", 11660 map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+XG4pID0+IHtcbiAgY29uc3QgeyBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2xvYWRpbmdJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgICAgey4uLmlubmVyUHJvcHN9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */", 11661 toString: _EMOTION_STRINGIFIED_CSS_ERROR__ 11662}; 11663var Svg = function Svg(_ref) { 11664 var size = _ref.size, 11665 props = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_ref, _excluded$2); 11666 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("svg", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 11667 height: size, 11668 width: size, 11669 viewBox: "0 0 20 20", 11670 "aria-hidden": "true", 11671 focusable: "false", 11672 css: _ref2 11673 }, props)); 11674}; 11675var CrossIcon = function CrossIcon(props) { 11676 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(Svg, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 11677 size: 20 11678 }, props), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("path", { 11679 d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" 11680 })); 11681}; 11682var DownChevron = function DownChevron(props) { 11683 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(Svg, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 11684 size: 20 11685 }, props), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("path", { 11686 d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" 11687 })); 11688}; 11689 11690// ============================== 11691// Dropdown & Clear Buttons 11692// ============================== 11693 11694var baseCSS = function baseCSS(_ref3, unstyled) { 11695 var isFocused = _ref3.isFocused, 11696 _ref3$theme = _ref3.theme, 11697 baseUnit = _ref3$theme.spacing.baseUnit, 11698 colors = _ref3$theme.colors; 11699 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11700 label: 'indicatorContainer', 11701 display: 'flex', 11702 transition: 'color 150ms' 11703 }, unstyled ? {} : { 11704 color: isFocused ? colors.neutral60 : colors.neutral20, 11705 padding: baseUnit * 2, 11706 ':hover': { 11707 color: isFocused ? colors.neutral80 : colors.neutral40 11708 } 11709 }); 11710}; 11711var dropdownIndicatorCSS = baseCSS; 11712var DropdownIndicator = function DropdownIndicator(props) { 11713 var children = props.children, 11714 innerProps = props.innerProps; 11715 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'dropdownIndicator', { 11716 indicator: true, 11717 'dropdown-indicator': true 11718 }), innerProps), children || (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(DownChevron, null)); 11719}; 11720var clearIndicatorCSS = baseCSS; 11721var ClearIndicator = function ClearIndicator(props) { 11722 var children = props.children, 11723 innerProps = props.innerProps; 11724 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'clearIndicator', { 11725 indicator: true, 11726 'clear-indicator': true 11727 }), innerProps), children || (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(CrossIcon, null)); 11728}; 11729 11730// ============================== 11731// Separator 11732// ============================== 11733 11734var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4, unstyled) { 11735 var isDisabled = _ref4.isDisabled, 11736 _ref4$theme = _ref4.theme, 11737 baseUnit = _ref4$theme.spacing.baseUnit, 11738 colors = _ref4$theme.colors; 11739 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11740 label: 'indicatorSeparator', 11741 alignSelf: 'stretch', 11742 width: 1 11743 }, unstyled ? {} : { 11744 backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20, 11745 marginBottom: baseUnit * 2, 11746 marginTop: baseUnit * 2 11747 }); 11748}; 11749var IndicatorSeparator = function IndicatorSeparator(props) { 11750 var innerProps = props.innerProps; 11751 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, innerProps, getStyleProps(props, 'indicatorSeparator', { 11752 'indicator-separator': true 11753 }))); 11754}; 11755 11756// ============================== 11757// Loading 11758// ============================== 11759 11760var loadingDotAnimations = (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.keyframes)(_templateObject || (_templateObject = (0,_babel_runtime_helpers_esm_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_5__["default"])(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))); 11761var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5, unstyled) { 11762 var isFocused = _ref5.isFocused, 11763 size = _ref5.size, 11764 _ref5$theme = _ref5.theme, 11765 colors = _ref5$theme.colors, 11766 baseUnit = _ref5$theme.spacing.baseUnit; 11767 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11768 label: 'loadingIndicator', 11769 display: 'flex', 11770 transition: 'color 150ms', 11771 alignSelf: 'center', 11772 fontSize: size, 11773 lineHeight: 1, 11774 marginRight: size, 11775 textAlign: 'center', 11776 verticalAlign: 'middle' 11777 }, unstyled ? {} : { 11778 color: isFocused ? colors.neutral60 : colors.neutral20, 11779 padding: baseUnit * 2 11780 }); 11781}; 11782var LoadingDot = function LoadingDot(_ref6) { 11783 var delay = _ref6.delay, 11784 offset = _ref6.offset; 11785 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("span", { 11786 css: /*#__PURE__*/(0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.css)({ 11787 animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"), 11788 backgroundColor: 'currentColor', 11789 borderRadius: '1em', 11790 display: 'inline-block', 11791 marginLeft: offset ? '1em' : undefined, 11792 height: '1em', 11793 verticalAlign: 'top', 11794 width: '1em' 11795 }, false ? 0 : ";label:LoadingDot;", false ? 0 : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+XG4pID0+IHtcbiAgY29uc3QgeyBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2xvYWRpbmdJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgICAgey4uLmlubmVyUHJvcHN9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */") 11796 }); 11797}; 11798var LoadingIndicator = function LoadingIndicator(props) { 11799 var innerProps = props.innerProps, 11800 isRtl = props.isRtl; 11801 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'loadingIndicator', { 11802 indicator: true, 11803 'loading-indicator': true 11804 }), innerProps), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(LoadingDot, { 11805 delay: 0, 11806 offset: isRtl 11807 }), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(LoadingDot, { 11808 delay: 160, 11809 offset: true 11810 }), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(LoadingDot, { 11811 delay: 320, 11812 offset: !isRtl 11813 })); 11814}; 11815LoadingIndicator.defaultProps = { 11816 size: 4 11817}; 11818 11819var css$1 = function css(_ref, unstyled) { 11820 var isDisabled = _ref.isDisabled, 11821 isFocused = _ref.isFocused, 11822 _ref$theme = _ref.theme, 11823 colors = _ref$theme.colors, 11824 borderRadius = _ref$theme.borderRadius, 11825 spacing = _ref$theme.spacing; 11826 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11827 label: 'control', 11828 alignItems: 'center', 11829 cursor: 'default', 11830 display: 'flex', 11831 flexWrap: 'wrap', 11832 justifyContent: 'space-between', 11833 minHeight: spacing.controlHeight, 11834 outline: '0 !important', 11835 position: 'relative', 11836 transition: 'all 100ms' 11837 }, unstyled ? {} : { 11838 backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0, 11839 borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20, 11840 borderRadius: borderRadius, 11841 borderStyle: 'solid', 11842 borderWidth: 1, 11843 boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : undefined, 11844 '&:hover': { 11845 borderColor: isFocused ? colors.primary : colors.neutral30 11846 } 11847 }); 11848}; 11849var Control = function Control(props) { 11850 var children = props.children, 11851 isDisabled = props.isDisabled, 11852 isFocused = props.isFocused, 11853 innerRef = props.innerRef, 11854 innerProps = props.innerProps, 11855 menuIsOpen = props.menuIsOpen; 11856 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 11857 ref: innerRef 11858 }, getStyleProps(props, 'control', { 11859 control: true, 11860 'control--is-disabled': isDisabled, 11861 'control--is-focused': isFocused, 11862 'control--menu-is-open': menuIsOpen 11863 }), innerProps), children); 11864}; 11865 11866var _excluded$1 = ["data"]; 11867var groupCSS = function groupCSS(_ref, unstyled) { 11868 var spacing = _ref.theme.spacing; 11869 return unstyled ? {} : { 11870 paddingBottom: spacing.baseUnit * 2, 11871 paddingTop: spacing.baseUnit * 2 11872 }; 11873}; 11874var Group = function Group(props) { 11875 var children = props.children, 11876 cx = props.cx, 11877 getStyles = props.getStyles, 11878 getClassNames = props.getClassNames, 11879 Heading = props.Heading, 11880 headingProps = props.headingProps, 11881 innerProps = props.innerProps, 11882 label = props.label, 11883 theme = props.theme, 11884 selectProps = props.selectProps; 11885 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'group', { 11886 group: true 11887 }), innerProps), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(Heading, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, headingProps, { 11888 selectProps: selectProps, 11889 theme: theme, 11890 getStyles: getStyles, 11891 getClassNames: getClassNames, 11892 cx: cx 11893 }), label), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", null, children)); 11894}; 11895var groupHeadingCSS = function groupHeadingCSS(_ref2, unstyled) { 11896 var _ref2$theme = _ref2.theme, 11897 colors = _ref2$theme.colors, 11898 spacing = _ref2$theme.spacing; 11899 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11900 label: 'group', 11901 cursor: 'default', 11902 display: 'block' 11903 }, unstyled ? {} : { 11904 color: colors.neutral40, 11905 fontSize: '75%', 11906 fontWeight: 500, 11907 marginBottom: '0.25em', 11908 paddingLeft: spacing.baseUnit * 3, 11909 paddingRight: spacing.baseUnit * 3, 11910 textTransform: 'uppercase' 11911 }); 11912}; 11913var GroupHeading = function GroupHeading(props) { 11914 var _cleanCommonProps = cleanCommonProps(props); 11915 _cleanCommonProps.data; 11916 var innerProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_cleanCommonProps, _excluded$1); 11917 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'groupHeading', { 11918 'group-heading': true 11919 }), innerProps)); 11920}; 11921 11922var _excluded = ["innerRef", "isDisabled", "isHidden", "inputClassName"]; 11923var inputCSS = function inputCSS(_ref, unstyled) { 11924 var isDisabled = _ref.isDisabled, 11925 value = _ref.value, 11926 _ref$theme = _ref.theme, 11927 spacing = _ref$theme.spacing, 11928 colors = _ref$theme.colors; 11929 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11930 visibility: isDisabled ? 'hidden' : 'visible', 11931 // force css to recompute when value change due to @emotion bug. 11932 // We can remove it whenever the bug is fixed. 11933 transform: value ? 'translateZ(0)' : '' 11934 }, containerStyle), unstyled ? {} : { 11935 margin: spacing.baseUnit / 2, 11936 paddingBottom: spacing.baseUnit / 2, 11937 paddingTop: spacing.baseUnit / 2, 11938 color: colors.neutral80 11939 }); 11940}; 11941var spacingStyle = { 11942 gridArea: '1 / 2', 11943 font: 'inherit', 11944 minWidth: '2px', 11945 border: 0, 11946 margin: 0, 11947 outline: 0, 11948 padding: 0 11949}; 11950var containerStyle = { 11951 flex: '1 1 auto', 11952 display: 'inline-grid', 11953 gridArea: '1 / 1 / 2 / 3', 11954 gridTemplateColumns: '0 min-content', 11955 '&:after': (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11956 content: 'attr(data-value) " "', 11957 visibility: 'hidden', 11958 whiteSpace: 'pre' 11959 }, spacingStyle) 11960}; 11961var inputStyle = function inputStyle(isHidden) { 11962 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11963 label: 'input', 11964 color: 'inherit', 11965 background: 0, 11966 opacity: isHidden ? 0 : 1, 11967 width: '100%' 11968 }, spacingStyle); 11969}; 11970var Input = function Input(props) { 11971 var cx = props.cx, 11972 value = props.value; 11973 var _cleanCommonProps = cleanCommonProps(props), 11974 innerRef = _cleanCommonProps.innerRef, 11975 isDisabled = _cleanCommonProps.isDisabled, 11976 isHidden = _cleanCommonProps.isHidden, 11977 inputClassName = _cleanCommonProps.inputClassName, 11978 innerProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_cleanCommonProps, _excluded); 11979 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'input', { 11980 'input-container': true 11981 }), { 11982 "data-value": value || '' 11983 }), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 11984 className: cx({ 11985 input: true 11986 }, inputClassName), 11987 ref: innerRef, 11988 style: inputStyle(isHidden), 11989 disabled: isDisabled 11990 }, innerProps))); 11991}; 11992 11993var multiValueCSS = function multiValueCSS(_ref, unstyled) { 11994 var _ref$theme = _ref.theme, 11995 spacing = _ref$theme.spacing, 11996 borderRadius = _ref$theme.borderRadius, 11997 colors = _ref$theme.colors; 11998 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 11999 label: 'multiValue', 12000 display: 'flex', 12001 minWidth: 0 12002 }, unstyled ? {} : { 12003 backgroundColor: colors.neutral10, 12004 borderRadius: borderRadius / 2, 12005 margin: spacing.baseUnit / 2 12006 }); 12007}; 12008var multiValueLabelCSS = function multiValueLabelCSS(_ref2, unstyled) { 12009 var _ref2$theme = _ref2.theme, 12010 borderRadius = _ref2$theme.borderRadius, 12011 colors = _ref2$theme.colors, 12012 cropWithEllipsis = _ref2.cropWithEllipsis; 12013 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 12014 overflow: 'hidden', 12015 textOverflow: cropWithEllipsis || cropWithEllipsis === undefined ? 'ellipsis' : undefined, 12016 whiteSpace: 'nowrap' 12017 }, unstyled ? {} : { 12018 borderRadius: borderRadius / 2, 12019 color: colors.neutral80, 12020 fontSize: '85%', 12021 padding: 3, 12022 paddingLeft: 6 12023 }); 12024}; 12025var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3, unstyled) { 12026 var _ref3$theme = _ref3.theme, 12027 spacing = _ref3$theme.spacing, 12028 borderRadius = _ref3$theme.borderRadius, 12029 colors = _ref3$theme.colors, 12030 isFocused = _ref3.isFocused; 12031 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 12032 alignItems: 'center', 12033 display: 'flex' 12034 }, unstyled ? {} : { 12035 borderRadius: borderRadius / 2, 12036 backgroundColor: isFocused ? colors.dangerLight : undefined, 12037 paddingLeft: spacing.baseUnit, 12038 paddingRight: spacing.baseUnit, 12039 ':hover': { 12040 backgroundColor: colors.dangerLight, 12041 color: colors.danger 12042 } 12043 }); 12044}; 12045var MultiValueGeneric = function MultiValueGeneric(_ref4) { 12046 var children = _ref4.children, 12047 innerProps = _ref4.innerProps; 12048 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", innerProps, children); 12049}; 12050var MultiValueContainer = MultiValueGeneric; 12051var MultiValueLabel = MultiValueGeneric; 12052function MultiValueRemove(_ref5) { 12053 var children = _ref5.children, 12054 innerProps = _ref5.innerProps; 12055 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 12056 role: "button" 12057 }, innerProps), children || (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(CrossIcon, { 12058 size: 14 12059 })); 12060} 12061var MultiValue = function MultiValue(props) { 12062 var children = props.children, 12063 components = props.components, 12064 data = props.data, 12065 innerProps = props.innerProps, 12066 isDisabled = props.isDisabled, 12067 removeProps = props.removeProps, 12068 selectProps = props.selectProps; 12069 var Container = components.Container, 12070 Label = components.Label, 12071 Remove = components.Remove; 12072 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(Container, { 12073 data: data, 12074 innerProps: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, getStyleProps(props, 'multiValue', { 12075 'multi-value': true, 12076 'multi-value--is-disabled': isDisabled 12077 })), innerProps), 12078 selectProps: selectProps 12079 }, (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(Label, { 12080 data: data, 12081 innerProps: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, getStyleProps(props, 'multiValueLabel', { 12082 'multi-value__label': true 12083 })), 12084 selectProps: selectProps 12085 }, children), (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)(Remove, { 12086 data: data, 12087 innerProps: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, getStyleProps(props, 'multiValueRemove', { 12088 'multi-value__remove': true 12089 })), {}, { 12090 'aria-label': "Remove ".concat(children || 'option') 12091 }, removeProps), 12092 selectProps: selectProps 12093 })); 12094}; 12095 12096var optionCSS = function optionCSS(_ref, unstyled) { 12097 var isDisabled = _ref.isDisabled, 12098 isFocused = _ref.isFocused, 12099 isSelected = _ref.isSelected, 12100 _ref$theme = _ref.theme, 12101 spacing = _ref$theme.spacing, 12102 colors = _ref$theme.colors; 12103 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 12104 label: 'option', 12105 cursor: 'default', 12106 display: 'block', 12107 fontSize: 'inherit', 12108 width: '100%', 12109 userSelect: 'none', 12110 WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)' 12111 }, unstyled ? {} : { 12112 backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent', 12113 color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit', 12114 padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"), 12115 // provide some affordance on touch devices 12116 ':active': { 12117 backgroundColor: !isDisabled ? isSelected ? colors.primary : colors.primary50 : undefined 12118 } 12119 }); 12120}; 12121var Option = function Option(props) { 12122 var children = props.children, 12123 isDisabled = props.isDisabled, 12124 isFocused = props.isFocused, 12125 isSelected = props.isSelected, 12126 innerRef = props.innerRef, 12127 innerProps = props.innerProps; 12128 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'option', { 12129 option: true, 12130 'option--is-disabled': isDisabled, 12131 'option--is-focused': isFocused, 12132 'option--is-selected': isSelected 12133 }), { 12134 ref: innerRef, 12135 "aria-disabled": isDisabled 12136 }, innerProps), children); 12137}; 12138 12139var placeholderCSS = function placeholderCSS(_ref, unstyled) { 12140 var _ref$theme = _ref.theme, 12141 spacing = _ref$theme.spacing, 12142 colors = _ref$theme.colors; 12143 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 12144 label: 'placeholder', 12145 gridArea: '1 / 1 / 2 / 3' 12146 }, unstyled ? {} : { 12147 color: colors.neutral50, 12148 marginLeft: spacing.baseUnit / 2, 12149 marginRight: spacing.baseUnit / 2 12150 }); 12151}; 12152var Placeholder = function Placeholder(props) { 12153 var children = props.children, 12154 innerProps = props.innerProps; 12155 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'placeholder', { 12156 placeholder: true 12157 }), innerProps), children); 12158}; 12159 12160var css = function css(_ref, unstyled) { 12161 var isDisabled = _ref.isDisabled, 12162 _ref$theme = _ref.theme, 12163 spacing = _ref$theme.spacing, 12164 colors = _ref$theme.colors; 12165 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({ 12166 label: 'singleValue', 12167 gridArea: '1 / 1 / 2 / 3', 12168 maxWidth: '100%', 12169 overflow: 'hidden', 12170 textOverflow: 'ellipsis', 12171 whiteSpace: 'nowrap' 12172 }, unstyled ? {} : { 12173 color: isDisabled ? colors.neutral40 : colors.neutral80, 12174 marginLeft: spacing.baseUnit / 2, 12175 marginRight: spacing.baseUnit / 2 12176 }); 12177}; 12178var SingleValue = function SingleValue(props) { 12179 var children = props.children, 12180 isDisabled = props.isDisabled, 12181 innerProps = props.innerProps; 12182 return (0,_emotion_react__WEBPACK_IMPORTED_MODULE_10__.jsx)("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, getStyleProps(props, 'singleValue', { 12183 'single-value': true, 12184 'single-value--is-disabled': isDisabled 12185 }), innerProps), children); 12186}; 12187 12188var components = { 12189 ClearIndicator: ClearIndicator, 12190 Control: Control, 12191 DropdownIndicator: DropdownIndicator, 12192 DownChevron: DownChevron, 12193 CrossIcon: CrossIcon, 12194 Group: Group, 12195 GroupHeading: GroupHeading, 12196 IndicatorsContainer: IndicatorsContainer, 12197 IndicatorSeparator: IndicatorSeparator, 12198 Input: Input, 12199 LoadingIndicator: LoadingIndicator, 12200 Menu: Menu, 12201 MenuList: MenuList, 12202 MenuPortal: MenuPortal, 12203 LoadingMessage: LoadingMessage, 12204 NoOptionsMessage: NoOptionsMessage, 12205 MultiValue: MultiValue, 12206 MultiValueContainer: MultiValueContainer, 12207 MultiValueLabel: MultiValueLabel, 12208 MultiValueRemove: MultiValueRemove, 12209 Option: Option, 12210 Placeholder: Placeholder, 12211 SelectContainer: SelectContainer, 12212 SingleValue: SingleValue, 12213 ValueContainer: ValueContainer 12214}; 12215var defaultComponents = function defaultComponents(props) { 12216 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, components), props.components); 12217}; 12218 12219 12220 12221 12222/***/ }), 12223
vendor: 6,778 bytes, lines 12224-12315
12224/***/ "./node_modules/react-select/dist/react-select.esm.js": 12225/*!************************************************************!*\ 12226 !*** ./node_modules/react-select/dist/react-select.esm.js ***! 12227 \************************************************************/ 12228/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12229 12230"use strict"; 12231__webpack_require__.r(__webpack_exports__); 12232/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12233/* harmony export */ "NonceProvider": function() { return /* binding */ NonceProvider; }, 12234/* harmony export */ "components": function() { return /* reexport safe */ _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__.c; }, 12235/* harmony export */ "createFilter": function() { return /* reexport safe */ _Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_3__.c; }, 12236/* harmony export */ "defaultTheme": function() { return /* reexport safe */ _Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_3__.d; }, 12237/* harmony export */ "mergeStyles": function() { return /* reexport safe */ _Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_3__.m; }, 12238/* harmony export */ "useStateManager": function() { return /* reexport safe */ _useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_0__.u; } 12239/* harmony export */ }); 12240/* harmony import */ var _useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useStateManager-7e1e8489.esm.js */ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js"); 12241/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); 12242/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); 12243/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); 12244/* harmony import */ var _Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Select-40119e12.esm.js */ "./node_modules/react-select/dist/Select-40119e12.esm.js"); 12245/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-element-6a883da9.browser.esm.js"); 12246/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); 12247/* harmony import */ var _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index-a86253bb.esm.js */ "./node_modules/react-select/dist/index-a86253bb.esm.js"); 12248/* harmony import */ var _babel_runtime_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); 12249/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); 12250/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); 12251/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"); 12252/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js"); 12253/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js"); 12254/* harmony import */ var _babel_runtime_helpers_createSuper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js"); 12255/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); 12256/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 12257/* harmony import */ var _babel_runtime_helpers_taggedTemplateLiteral__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ "./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"); 12258/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); 12259/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! react-dom */ "react-dom"); 12260/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_17__); 12261/* harmony import */ var use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! use-isomorphic-layout-effect */ "./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js"); 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288var StateManagedSelect = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) { 12289 var baseSelectProps = (0,_useStateManager_7e1e8489_esm_js__WEBPACK_IMPORTED_MODULE_0__.u)(props); 12290 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_Select_40119e12_esm_js__WEBPACK_IMPORTED_MODULE_3__.S, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({ 12291 ref: ref 12292 }, baseSelectProps)); 12293}); 12294 12295var NonceProvider = (function (_ref) { 12296 var nonce = _ref.nonce, 12297 children = _ref.children, 12298 cacheKey = _ref.cacheKey; 12299 var emotionCache = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () { 12300 return (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_4__["default"])({ 12301 key: cacheKey, 12302 nonce: nonce 12303 }); 12304 }, [cacheKey, nonce]); 12305 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_19__.C, { 12306 value: emotionCache 12307 }, children); 12308}); 12309 12310/* harmony default export */ __webpack_exports__["default"] = (StateManagedSelect); 12311 12312 12313 12314/***/ }), 12315
vendor: 9,123 bytes, lines 12316-12476
12316/***/ "./node_modules/react-select/dist/useAsync-fd9b28d9.esm.js": 12317/*!*****************************************************************!*\ 12318 !*** ./node_modules/react-select/dist/useAsync-fd9b28d9.esm.js ***! 12319 \*****************************************************************/ 12320/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12321 12322"use strict"; 12323__webpack_require__.r(__webpack_exports__); 12324/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12325/* harmony export */ "u": function() { return /* binding */ useAsync; } 12326/* harmony export */ }); 12327/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); 12328/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); 12329/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); 12330/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); 12331/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react"); 12332/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__); 12333/* harmony import */ var _index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index-a86253bb.esm.js */ "./node_modules/react-select/dist/index-a86253bb.esm.js"); 12334 12335 12336 12337 12338 12339 12340 12341var _excluded = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"]; 12342function useAsync(_ref) { 12343 var _ref$defaultOptions = _ref.defaultOptions, 12344 propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions, 12345 _ref$cacheOptions = _ref.cacheOptions, 12346 cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions, 12347 propsLoadOptions = _ref.loadOptions; 12348 _ref.options; 12349 var _ref$isLoading = _ref.isLoading, 12350 propsIsLoading = _ref$isLoading === void 0 ? false : _ref$isLoading, 12351 propsOnInputChange = _ref.onInputChange, 12352 _ref$filterOption = _ref.filterOption, 12353 filterOption = _ref$filterOption === void 0 ? null : _ref$filterOption, 12354 restSelectProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_ref, _excluded); 12355 var propsInputValue = restSelectProps.inputValue; 12356 var lastRequest = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(undefined); 12357 var mounted = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(false); 12358 var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(Array.isArray(propsDefaultOptions) ? propsDefaultOptions : undefined), 12359 _useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2), 12360 defaultOptions = _useState2[0], 12361 setDefaultOptions = _useState2[1]; 12362 var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(typeof propsInputValue !== 'undefined' ? propsInputValue : ''), 12363 _useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2), 12364 stateInputValue = _useState4[0], 12365 setStateInputValue = _useState4[1]; 12366 var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(propsDefaultOptions === true), 12367 _useState6 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState5, 2), 12368 isLoading = _useState6[0], 12369 setIsLoading = _useState6[1]; 12370 var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(undefined), 12371 _useState8 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState7, 2), 12372 loadedInputValue = _useState8[0], 12373 setLoadedInputValue = _useState8[1]; 12374 var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]), 12375 _useState10 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState9, 2), 12376 loadedOptions = _useState10[0], 12377 setLoadedOptions = _useState10[1]; 12378 var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false), 12379 _useState12 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState11, 2), 12380 passEmptyOptions = _useState12[0], 12381 setPassEmptyOptions = _useState12[1]; 12382 var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)({}), 12383 _useState14 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState13, 2), 12384 optionsCache = _useState14[0], 12385 setOptionsCache = _useState14[1]; 12386 var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(undefined), 12387 _useState16 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState15, 2), 12388 prevDefaultOptions = _useState16[0], 12389 setPrevDefaultOptions = _useState16[1]; 12390 var _useState17 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(undefined), 12391 _useState18 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState17, 2), 12392 prevCacheOptions = _useState18[0], 12393 setPrevCacheOptions = _useState18[1]; 12394 if (cacheOptions !== prevCacheOptions) { 12395 setOptionsCache({}); 12396 setPrevCacheOptions(cacheOptions); 12397 } 12398 if (propsDefaultOptions !== prevDefaultOptions) { 12399 setDefaultOptions(Array.isArray(propsDefaultOptions) ? propsDefaultOptions : undefined); 12400 setPrevDefaultOptions(propsDefaultOptions); 12401 } 12402 (0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () { 12403 mounted.current = true; 12404 return function () { 12405 mounted.current = false; 12406 }; 12407 }, []); 12408 var loadOptions = (0,react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(function (inputValue, callback) { 12409 if (!propsLoadOptions) return callback(); 12410 var loader = propsLoadOptions(inputValue, callback); 12411 if (loader && typeof loader.then === 'function') { 12412 loader.then(callback, function () { 12413 return callback(); 12414 }); 12415 } 12416 }, [propsLoadOptions]); 12417 (0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () { 12418 if (propsDefaultOptions === true) { 12419 loadOptions(stateInputValue, function (options) { 12420 if (!mounted.current) return; 12421 setDefaultOptions(options || []); 12422 setIsLoading(!!lastRequest.current); 12423 }); 12424 } 12425 // NOTE: this effect is designed to only run when the component mounts, 12426 // so we don't want to include any hook dependencies 12427 // eslint-disable-next-line react-hooks/exhaustive-deps 12428 }, []); 12429 var onInputChange = (0,react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(function (newValue, actionMeta) { 12430 var inputValue = (0,_index_a86253bb_esm_js__WEBPACK_IMPORTED_MODULE_5__.L)(newValue, actionMeta, propsOnInputChange); 12431 if (!inputValue) { 12432 lastRequest.current = undefined; 12433 setStateInputValue(''); 12434 setLoadedInputValue(''); 12435 setLoadedOptions([]); 12436 setIsLoading(false); 12437 setPassEmptyOptions(false); 12438 return; 12439 } 12440 if (cacheOptions && optionsCache[inputValue]) { 12441 setStateInputValue(inputValue); 12442 setLoadedInputValue(inputValue); 12443 setLoadedOptions(optionsCache[inputValue]); 12444 setIsLoading(false); 12445 setPassEmptyOptions(false); 12446 } else { 12447 var request = lastRequest.current = {}; 12448 setStateInputValue(inputValue); 12449 setIsLoading(true); 12450 setPassEmptyOptions(!loadedInputValue); 12451 loadOptions(inputValue, function (options) { 12452 if (!mounted) return; 12453 if (request !== lastRequest.current) return; 12454 lastRequest.current = undefined; 12455 setIsLoading(false); 12456 setLoadedInputValue(inputValue); 12457 setLoadedOptions(options || []); 12458 setPassEmptyOptions(false); 12459 setOptionsCache(options ? (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, optionsCache), {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, inputValue, options)) : optionsCache); 12460 }); 12461 } 12462 }, [cacheOptions, loadOptions, loadedInputValue, optionsCache, propsOnInputChange]); 12463 var options = passEmptyOptions ? [] : stateInputValue && loadedInputValue ? loadedOptions : defaultOptions || []; 12464 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, restSelectProps), {}, { 12465 options: options, 12466 isLoading: isLoading || propsIsLoading, 12467 onInputChange: onInputChange, 12468 filterOption: filterOption 12469 }); 12470} 12471 12472 12473 12474 12475/***/ }), 12476
vendor: 5,238 bytes, lines 12477-12569
12477/***/ "./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js": 12478/*!************************************************************************!*\ 12479 !*** ./node_modules/react-select/dist/useStateManager-7e1e8489.esm.js ***! 12480 \************************************************************************/ 12481/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12482 12483"use strict"; 12484__webpack_require__.r(__webpack_exports__); 12485/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12486/* harmony export */ "u": function() { return /* binding */ useStateManager; } 12487/* harmony export */ }); 12488/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); 12489/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); 12490/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"); 12491/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); 12492/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); 12493 12494 12495 12496 12497 12498var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"]; 12499function useStateManager(_ref) { 12500 var _ref$defaultInputValu = _ref.defaultInputValue, 12501 defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu, 12502 _ref$defaultMenuIsOpe = _ref.defaultMenuIsOpen, 12503 defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, 12504 _ref$defaultValue = _ref.defaultValue, 12505 defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, 12506 propsInputValue = _ref.inputValue, 12507 propsMenuIsOpen = _ref.menuIsOpen, 12508 propsOnChange = _ref.onChange, 12509 propsOnInputChange = _ref.onInputChange, 12510 propsOnMenuClose = _ref.onMenuClose, 12511 propsOnMenuOpen = _ref.onMenuOpen, 12512 propsValue = _ref.value, 12513 restSelectProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, _excluded); 12514 var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(propsInputValue !== undefined ? propsInputValue : defaultInputValue), 12515 _useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState, 2), 12516 stateInputValue = _useState2[0], 12517 setStateInputValue = _useState2[1]; 12518 var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(propsMenuIsOpen !== undefined ? propsMenuIsOpen : defaultMenuIsOpen), 12519 _useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState3, 2), 12520 stateMenuIsOpen = _useState4[0], 12521 setStateMenuIsOpen = _useState4[1]; 12522 var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(propsValue !== undefined ? propsValue : defaultValue), 12523 _useState6 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState5, 2), 12524 stateValue = _useState6[0], 12525 setStateValue = _useState6[1]; 12526 var onChange = (0,react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (value, actionMeta) { 12527 if (typeof propsOnChange === 'function') { 12528 propsOnChange(value, actionMeta); 12529 } 12530 setStateValue(value); 12531 }, [propsOnChange]); 12532 var onInputChange = (0,react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (value, actionMeta) { 12533 var newValue; 12534 if (typeof propsOnInputChange === 'function') { 12535 newValue = propsOnInputChange(value, actionMeta); 12536 } 12537 setStateInputValue(newValue !== undefined ? newValue : value); 12538 }, [propsOnInputChange]); 12539 var onMenuOpen = (0,react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function () { 12540 if (typeof propsOnMenuOpen === 'function') { 12541 propsOnMenuOpen(); 12542 } 12543 setStateMenuIsOpen(true); 12544 }, [propsOnMenuOpen]); 12545 var onMenuClose = (0,react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function () { 12546 if (typeof propsOnMenuClose === 'function') { 12547 propsOnMenuClose(); 12548 } 12549 setStateMenuIsOpen(false); 12550 }, [propsOnMenuClose]); 12551 var inputValue = propsInputValue !== undefined ? propsInputValue : stateInputValue; 12552 var menuIsOpen = propsMenuIsOpen !== undefined ? propsMenuIsOpen : stateMenuIsOpen; 12553 var value = propsValue !== undefined ? propsValue : stateValue; 12554 return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, restSelectProps), {}, { 12555 inputValue: inputValue, 12556 menuIsOpen: menuIsOpen, 12557 onChange: onChange, 12558 onInputChange: onInputChange, 12559 onMenuClose: onMenuClose, 12560 onMenuOpen: onMenuOpen, 12561 value: value 12562 }); 12563} 12564 12565 12566 12567 12568/***/ }), 12569
vendor: 4,862 bytes, lines 12570-12665
12570/***/ "./node_modules/react-tabs/esm/components/Tab.js": 12571/*!*******************************************************!*\ 12572 !*** ./node_modules/react-tabs/esm/components/Tab.js ***! 12573 \*******************************************************/ 12574/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12575 12576"use strict"; 12577__webpack_require__.r(__webpack_exports__); 12578/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); 12579/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); 12580/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 12581/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 12582/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.m.js"); 12583var _excluded = ["children", "className", "disabled", "disabledClassName", "focus", "id", "panelId", "selected", "selectedClassName", "tabIndex", "tabRef"]; 12584 12585function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } 12586 12587function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } 12588 12589 12590 12591 12592var DEFAULT_CLASS = 'react-tabs__tab'; 12593var DEFAULT_PROPS = { 12594 className: DEFAULT_CLASS, 12595 disabledClassName: DEFAULT_CLASS + "--disabled", 12596 focus: false, 12597 id: null, 12598 panelId: null, 12599 selected: false, 12600 selectedClassName: DEFAULT_CLASS + "--selected" 12601}; 12602var propTypes = true ? { 12603 children: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]), 12604 className: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)]), 12605 disabled: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool), 12606 tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12607 disabledClassName: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12608 focus: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool), 12609 // private 12610 id: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12611 // private 12612 panelId: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12613 // private 12614 selected: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool), 12615 // private 12616 selectedClassName: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12617 tabRef: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func) 12618} : 0; 12619 12620var Tab = function Tab(props) { 12621 var _cx; 12622 12623 var nodeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); 12624 12625 var children = props.children, 12626 className = props.className, 12627 disabled = props.disabled, 12628 disabledClassName = props.disabledClassName, 12629 focus = props.focus, 12630 id = props.id, 12631 panelId = props.panelId, 12632 selected = props.selected, 12633 selectedClassName = props.selectedClassName, 12634 tabIndex = props.tabIndex, 12635 tabRef = props.tabRef, 12636 attributes = _objectWithoutPropertiesLoose(props, _excluded); 12637 12638 (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { 12639 if (selected && focus) { 12640 nodeRef.current.focus(); 12641 } 12642 }, [selected, focus]); 12643 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", _extends({}, attributes, { 12644 className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className, (_cx = {}, _cx[selectedClassName] = selected, _cx[disabledClassName] = disabled, _cx)), 12645 ref: function ref(node) { 12646 nodeRef.current = node; 12647 if (tabRef) tabRef(node); 12648 }, 12649 role: "tab", 12650 id: id, 12651 "aria-selected": selected ? 'true' : 'false', 12652 "aria-disabled": disabled ? 'true' : 'false', 12653 "aria-controls": panelId, 12654 tabIndex: tabIndex || (selected ? '0' : null), 12655 "data-rttab": true 12656 }), children); 12657}; 12658 12659Tab.propTypes = true ? propTypes : 0; 12660Tab.tabsRole = 'Tab'; 12661Tab.defaultProps = DEFAULT_PROPS; 12662/* harmony default export */ __webpack_exports__["default"] = (Tab); 12663 12664/***/ }), 12665
vendor: 2,894 bytes, lines 12666-12713
12666/***/ "./node_modules/react-tabs/esm/components/TabList.js": 12667/*!***********************************************************!*\ 12668 !*** ./node_modules/react-tabs/esm/components/TabList.js ***! 12669 \***********************************************************/ 12670/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12671 12672"use strict"; 12673__webpack_require__.r(__webpack_exports__); 12674/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); 12675/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); 12676/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 12677/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 12678/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.m.js"); 12679var _excluded = ["children", "className"]; 12680 12681function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } 12682 12683function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } 12684 12685 12686 12687 12688var defaultProps = { 12689 className: 'react-tabs__tab-list' 12690}; 12691var propTypes = true ? { 12692 children: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array)]), 12693 className: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)]) 12694} : 0; 12695 12696var TabList = function TabList(props) { 12697 var children = props.children, 12698 className = props.className, 12699 attributes = _objectWithoutPropertiesLoose(props, _excluded); 12700 12701 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("ul", _extends({}, attributes, { 12702 className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className), 12703 role: "tablist" 12704 }), children); 12705}; 12706 12707TabList.tabsRole = 'TabList'; 12708TabList.propTypes = true ? propTypes : 0; 12709TabList.defaultProps = defaultProps; 12710/* harmony default export */ __webpack_exports__["default"] = (TabList); 12711 12712/***/ }), 12713
vendor: 3,662 bytes, lines 12714-12781
12714/***/ "./node_modules/react-tabs/esm/components/TabPanel.js": 12715/*!************************************************************!*\ 12716 !*** ./node_modules/react-tabs/esm/components/TabPanel.js ***! 12717 \************************************************************/ 12718/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12719 12720"use strict"; 12721__webpack_require__.r(__webpack_exports__); 12722/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); 12723/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); 12724/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 12725/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 12726/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.m.js"); 12727var _excluded = ["children", "className", "forceRender", "id", "selected", "selectedClassName", "tabId"]; 12728 12729function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } 12730 12731function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } 12732 12733 12734 12735 12736var DEFAULT_CLASS = 'react-tabs__tab-panel'; 12737var defaultProps = { 12738 className: DEFAULT_CLASS, 12739 forceRender: false, 12740 selectedClassName: DEFAULT_CLASS + "--selected" 12741}; 12742var propTypes = true ? { 12743 children: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node), 12744 className: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)]), 12745 forceRender: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool), 12746 id: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12747 // private 12748 selected: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool), 12749 // private 12750 selectedClassName: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), 12751 tabId: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string) // private 12752 12753} : 0; 12754 12755var TabPanel = function TabPanel(props) { 12756 var _cx; 12757 12758 var children = props.children, 12759 className = props.className, 12760 forceRender = props.forceRender, 12761 id = props.id, 12762 selected = props.selected, 12763 selectedClassName = props.selectedClassName, 12764 tabId = props.tabId, 12765 attributes = _objectWithoutPropertiesLoose(props, _excluded); 12766 12767 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({}, attributes, { 12768 className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)), 12769 role: "tabpanel", 12770 id: id, 12771 "aria-labelledby": tabId 12772 }), forceRender || selected ? children : null); 12773}; 12774 12775TabPanel.tabsRole = 'TabPanel'; 12776TabPanel.propTypes = true ? propTypes : 0; 12777TabPanel.defaultProps = defaultProps; 12778/* harmony default export */ __webpack_exports__["default"] = (TabPanel); 12779 12780/***/ }), 12781
vendor: 7,067 bytes, lines 12782-12926
12782/***/ "./node_modules/react-tabs/esm/components/Tabs.js": 12783/*!********************************************************!*\ 12784 !*** ./node_modules/react-tabs/esm/components/Tabs.js ***! 12785 \********************************************************/ 12786/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12787 12788"use strict"; 12789__webpack_require__.r(__webpack_exports__); 12790/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); 12791/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); 12792/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 12793/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 12794/* harmony import */ var _helpers_propTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/propTypes */ "./node_modules/react-tabs/esm/helpers/propTypes.js"); 12795/* harmony import */ var _UncontrolledTabs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./UncontrolledTabs */ "./node_modules/react-tabs/esm/components/UncontrolledTabs.js"); 12796/* harmony import */ var _helpers_count__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/count */ "./node_modules/react-tabs/esm/helpers/count.js"); 12797function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } 12798 12799 12800 12801 12802 12803 12804var MODE_CONTROLLED = 0; 12805var MODE_UNCONTROLLED = 1; 12806var propTypes = true ? { 12807 children: _helpers_propTypes__WEBPACK_IMPORTED_MODULE_1__.childrenPropType, 12808 direction: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(['rtl', 'ltr']), 12809 className: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)]), 12810 defaultFocus: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), 12811 defaultIndex: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), 12812 disabledTabClassName: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), 12813 disableUpDownKeys: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), 12814 domRef: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func), 12815 focusTabOnClick: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), 12816 forceRenderTabPanel: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool), 12817 onSelect: _helpers_propTypes__WEBPACK_IMPORTED_MODULE_1__.onSelectPropType, 12818 selectedIndex: _helpers_propTypes__WEBPACK_IMPORTED_MODULE_1__.selectedIndexPropType, 12819 selectedTabClassName: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), 12820 selectedTabPanelClassName: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), 12821 environment: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object) 12822} : 0; 12823var defaultProps = { 12824 defaultFocus: false, 12825 focusTabOnClick: true, 12826 forceRenderTabPanel: false, 12827 selectedIndex: null, 12828 defaultIndex: null, 12829 environment: null, 12830 disableUpDownKeys: false 12831}; 12832 12833var getModeFromProps = function getModeFromProps(props) { 12834 return props.selectedIndex === null ? MODE_UNCONTROLLED : MODE_CONTROLLED; 12835}; 12836 12837var checkForIllegalModeChange = function checkForIllegalModeChange(props, mode) { 12838 if ( true && mode != undefined && mode !== getModeFromProps(props)) { 12839 throw new Error("Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\nFor more information about controlled and uncontrolled mode of react-tabs see https://github.com/reactjs/react-tabs#controlled-vs-uncontrolled-mode."); 12840 } 12841}; 12842/** 12843 * State: 12844 * mode: Initialized only once from props and never changes 12845 * selectedIndex: null if controlled mode, otherwise initialized with prop defaultIndex, changed on selection of tabs, has effect to ensure it never gets out of bound 12846 * focus: Because we never remove focus from the Tabs this state is only used to indicate that we should focus the current tab. 12847 * It is initialized from the prop defaultFocus, and after the first render it is reset back to false. Later it can become true again when using keys to navigate the tabs. 12848 */ 12849 12850 12851var Tabs = function Tabs(props) { 12852 var children = props.children, 12853 defaultFocus = props.defaultFocus, 12854 defaultIndex = props.defaultIndex, 12855 focusTabOnClick = props.focusTabOnClick, 12856 onSelect = props.onSelect; 12857 12858 var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultFocus), 12859 focus = _useState[0], 12860 setFocus = _useState[1]; 12861 12862 var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(getModeFromProps(props)), 12863 mode = _useState2[0]; 12864 12865 var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(mode === MODE_UNCONTROLLED ? defaultIndex || 0 : null), 12866 selectedIndex = _useState3[0], 12867 setSelectedIndex = _useState3[1]; 12868 12869 (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { 12870 // Reset focus after initial render, see comment above 12871 setFocus(false); 12872 }, []); 12873 12874 if (mode === MODE_UNCONTROLLED) { 12875 // Ensure that we handle removed tabs and don't let selectedIndex get out of bounds 12876 var tabsCount = (0,_helpers_count__WEBPACK_IMPORTED_MODULE_3__.getTabsCount)(children); 12877 (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { 12878 if (selectedIndex != null) { 12879 var maxTabIndex = Math.max(0, tabsCount - 1); 12880 setSelectedIndex(Math.min(selectedIndex, maxTabIndex)); 12881 } 12882 }, [tabsCount]); 12883 } 12884 12885 checkForIllegalModeChange(props, mode); 12886 12887 var handleSelected = function handleSelected(index, last, event) { 12888 // Call change event handler 12889 if (typeof onSelect === 'function') { 12890 // Check if the change event handler cancels the tab change 12891 if (onSelect(index, last, event) === false) return; 12892 } // Always set focus on tabs unless it is disabled 12893 12894 12895 if (focusTabOnClick) { 12896 setFocus(true); 12897 } 12898 12899 if (mode === MODE_UNCONTROLLED) { 12900 // Update selected index 12901 setSelectedIndex(index); 12902 } 12903 }; 12904 12905 var subProps = _extends({}, props); 12906 12907 subProps.focus = focus; 12908 subProps.onSelect = handleSelected; 12909 12910 if (selectedIndex != null) { 12911 subProps.selectedIndex = selectedIndex; 12912 } 12913 12914 delete subProps.defaultFocus; 12915 delete subProps.defaultIndex; 12916 delete subProps.focusTabOnClick; 12917 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_UncontrolledTabs__WEBPACK_IMPORTED_MODULE_2__["default"], subProps, children); 12918}; 12919 12920Tabs.propTypes = true ? propTypes : 0; 12921Tabs.defaultProps = defaultProps; 12922Tabs.tabsRole = 'Tabs'; 12923/* harmony default export */ __webpack_exports__["default"] = (Tabs); 12924 12925/***/ }), 12926
vendor: 15,542 bytes, lines 12927-13331
12927/***/ "./node_modules/react-tabs/esm/components/UncontrolledTabs.js": 12928/*!********************************************************************!*\ 12929 !*** ./node_modules/react-tabs/esm/components/UncontrolledTabs.js ***! 12930 \********************************************************************/ 12931/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 12932 12933"use strict"; 12934__webpack_require__.r(__webpack_exports__); 12935/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); 12936/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__); 12937/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 12938/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 12939/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.m.js"); 12940/* harmony import */ var _helpers_uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/uuid */ "./node_modules/react-tabs/esm/helpers/uuid.js"); 12941/* harmony import */ var _helpers_propTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/propTypes */ "./node_modules/react-tabs/esm/helpers/propTypes.js"); 12942/* harmony import */ var _helpers_count__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/count */ "./node_modules/react-tabs/esm/helpers/count.js"); 12943/* harmony import */ var _helpers_childrenDeepMap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/childrenDeepMap */ "./node_modules/react-tabs/esm/helpers/childrenDeepMap.js"); 12944/* harmony import */ var _helpers_elementTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/elementTypes */ "./node_modules/react-tabs/esm/helpers/elementTypes.js"); 12945var _excluded = ["children", "className", "disabledTabClassName", "domRef", "focus", "forceRenderTabPanel", "onSelect", "selectedIndex", "selectedTabClassName", "selectedTabPanelClassName", "environment", "disableUpDownKeys"]; 12946 12947function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } 12948 12949function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960function isNode(node) { 12961 return node && 'getAttribute' in node; 12962} // Determine if a node from event.target is a Tab element 12963 12964 12965function isTabNode(node) { 12966 return isNode(node) && node.getAttribute('data-rttab'); 12967} // Determine if a tab node is disabled 12968 12969 12970function isTabDisabled(node) { 12971 return isNode(node) && node.getAttribute('aria-disabled') === 'true'; 12972} 12973 12974var canUseActiveElement; 12975 12976function determineCanUseActiveElement(environment) { 12977 var env = environment || (typeof window !== 'undefined' ? window : undefined); 12978 12979 try { 12980 canUseActiveElement = !!(typeof env !== 'undefined' && env.document && env.document.activeElement); 12981 } catch (e) { 12982 // Work around for IE bug when accessing document.activeElement in an iframe 12983 // Refer to the following resources: 12984 // http://stackoverflow.com/a/10982960/369687 12985 // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599 12986 // istanbul ignore next 12987 canUseActiveElement = false; 12988 } 12989} 12990 12991var defaultProps = { 12992 className: 'react-tabs', 12993 focus: false 12994}; 12995var propTypes = true ? { 12996 children: _helpers_propTypes__WEBPACK_IMPORTED_MODULE_3__.childrenPropType, 12997 direction: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(['rtl', 'ltr']), 12998 className: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object)]), 12999 disabledTabClassName: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), 13000 disableUpDownKeys: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), 13001 domRef: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), 13002 focus: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), 13003 forceRenderTabPanel: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), 13004 onSelect: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func.isRequired), 13005 selectedIndex: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number.isRequired), 13006 selectedTabClassName: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), 13007 selectedTabPanelClassName: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), 13008 environment: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object) 13009} : 0; 13010 13011var UncontrolledTabs = function UncontrolledTabs(props) { 13012 var tabNodes = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)([]); 13013 var tabIds = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)([]); 13014 var panelIds = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)([]); 13015 13016 var _ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); 13017 13018 function setSelected(index, event) { 13019 // Check index boundary 13020 if (index < 0 || index >= getTabsCount()) return; 13021 var onSelect = props.onSelect, 13022 selectedIndex = props.selectedIndex; // Call change event handler 13023 13024 onSelect(index, selectedIndex, event); 13025 } 13026 13027 function getNextTab(index) { 13028 var count = getTabsCount(); // Look for non-disabled tab from index to the last tab on the right 13029 13030 for (var i = index + 1; i < count; i++) { 13031 if (!isTabDisabled(getTab(i))) { 13032 return i; 13033 } 13034 } // If no tab found, continue searching from first on left to index 13035 13036 13037 for (var _i = 0; _i < index; _i++) { 13038 if (!isTabDisabled(getTab(_i))) { 13039 return _i; 13040 } 13041 } // All tabs are disabled, return index 13042 13043 /* istanbul ignore next */ 13044 13045 13046 return index; 13047 } 13048 13049 function getPrevTab(index) { 13050 var i = index; // Look for non-disabled tab from index to first tab on the left 13051 13052 while (i--) { 13053 if (!isTabDisabled(getTab(i))) { 13054 return i; 13055 } 13056 } // If no tab found, continue searching from last tab on right to index 13057 13058 13059 i = getTabsCount(); 13060 13061 while (i-- > index) { 13062 if (!isTabDisabled(getTab(i))) { 13063 return i; 13064 } 13065 } // All tabs are disabled, return index 13066 13067 /* istanbul ignore next */ 13068 13069 13070 return index; 13071 } 13072 13073 function getFirstTab() { 13074 var count = getTabsCount(); // Look for non disabled tab from the first tab 13075 13076 for (var i = 0; i < count; i++) { 13077 if (!isTabDisabled(getTab(i))) { 13078 return i; 13079 } 13080 } 13081 /* istanbul ignore next */ 13082 13083 13084 return null; 13085 } 13086 13087 function getLastTab() { 13088 var i = getTabsCount(); // Look for non disabled tab from the last tab 13089 13090 while (i--) { 13091 if (!isTabDisabled(getTab(i))) { 13092 return i; 13093 } 13094 } 13095 /* istanbul ignore next */ 13096 13097 13098 return null; 13099 } 13100 13101 function getTabsCount() { 13102 var children = props.children; 13103 return (0,_helpers_count__WEBPACK_IMPORTED_MODULE_4__.getTabsCount)(children); 13104 } 13105 13106 function getTab(index) { 13107 return tabNodes.current["tabs-" + index]; 13108 } 13109 13110 function getChildren() { 13111 var index = 0; 13112 var children = props.children, 13113 disabledTabClassName = props.disabledTabClassName, 13114 focus = props.focus, 13115 forceRenderTabPanel = props.forceRenderTabPanel, 13116 selectedIndex = props.selectedIndex, 13117 selectedTabClassName = props.selectedTabClassName, 13118 selectedTabPanelClassName = props.selectedTabPanelClassName, 13119 environment = props.environment; 13120 tabIds.current = tabIds.current || []; 13121 panelIds.current = panelIds.current || []; 13122 var diff = tabIds.current.length - getTabsCount(); // Add ids if new tabs have been added 13123 // Don't bother removing ids, just keep them in case they are added again 13124 // This is more efficient, and keeps the uuid counter under control 13125 13126 while (diff++ < 0) { 13127 tabIds.current.push((0,_helpers_uuid__WEBPACK_IMPORTED_MODULE_2__["default"])()); 13128 panelIds.current.push((0,_helpers_uuid__WEBPACK_IMPORTED_MODULE_2__["default"])()); 13129 } // Map children to dynamically setup refs 13130 13131 13132 return (0,_helpers_childrenDeepMap__WEBPACK_IMPORTED_MODULE_5__.deepMap)(children, function (child) { 13133 var result = child; // Clone TabList and Tab components to have refs 13134 13135 if ((0,_helpers_elementTypes__WEBPACK_IMPORTED_MODULE_6__.isTabList)(child)) { 13136 var listIndex = 0; // Figure out if the current focus in the DOM is set on a Tab 13137 // If it is we should keep the focus on the next selected tab 13138 13139 var wasTabFocused = false; 13140 13141 if (canUseActiveElement == null) { 13142 determineCanUseActiveElement(environment); 13143 } 13144 13145 var env = environment || (typeof window !== 'undefined' ? window : undefined); 13146 13147 if (canUseActiveElement && env) { 13148 wasTabFocused = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children).filter(_helpers_elementTypes__WEBPACK_IMPORTED_MODULE_6__.isTab).some(function (tab, i) { 13149 return env.document.activeElement === getTab(i); 13150 }); 13151 } 13152 13153 result = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { 13154 children: (0,_helpers_childrenDeepMap__WEBPACK_IMPORTED_MODULE_5__.deepMap)(child.props.children, function (tab) { 13155 var key = "tabs-" + listIndex; 13156 var selected = selectedIndex === listIndex; 13157 var props = { 13158 tabRef: function tabRef(node) { 13159 tabNodes.current[key] = node; 13160 }, 13161 id: tabIds.current[listIndex], 13162 panelId: panelIds.current[listIndex], 13163 selected: selected, 13164 focus: selected && (focus || wasTabFocused) 13165 }; 13166 if (selectedTabClassName) props.selectedClassName = selectedTabClassName; 13167 if (disabledTabClassName) props.disabledClassName = disabledTabClassName; 13168 listIndex++; 13169 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(tab, props); 13170 }) 13171 }); 13172 } else if ((0,_helpers_elementTypes__WEBPACK_IMPORTED_MODULE_6__.isTabPanel)(child)) { 13173 var _props = { 13174 id: panelIds.current[index], 13175 tabId: tabIds.current[index], 13176 selected: selectedIndex === index 13177 }; 13178 if (forceRenderTabPanel) _props.forceRender = forceRenderTabPanel; 13179 if (selectedTabPanelClassName) _props.selectedClassName = selectedTabPanelClassName; 13180 index++; 13181 result = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, _props); 13182 } 13183 13184 return result; 13185 }); 13186 } 13187 13188 function handleKeyDown(e) { 13189 var direction = props.direction, 13190 disableUpDownKeys = props.disableUpDownKeys; 13191 13192 if (isTabFromContainer(e.target)) { 13193 var index = props.selectedIndex; 13194 var preventDefault = false; 13195 var useSelectedIndex = false; 13196 13197 if (e.code === 'Space' || e.keyCode === 32 13198 /* space */ 13199 || e.code === 'Enter' || e.keyCode === 13 13200 /* enter */ 13201 ) { 13202 preventDefault = true; 13203 useSelectedIndex = false; 13204 handleClick(e); 13205 } // keyCode is deprecated and only used here for IE 13206 13207 13208 if (e.code === 'ArrowLeft' || e.keyCode === 37 13209 /* arrow left */ 13210 || !disableUpDownKeys && (e.keyCode === 38 || e.code === 'ArrowUp') 13211 /* arrow up */ 13212 ) { 13213 // Select next tab to the left, validate if up arrow is not disabled 13214 if (direction === 'rtl') { 13215 index = getNextTab(index); 13216 } else { 13217 index = getPrevTab(index); 13218 } 13219 13220 preventDefault = true; 13221 useSelectedIndex = true; 13222 } else if (e.code === 'ArrowRight' || e.keyCode === 39 13223 /* arrow right */ 13224 || !disableUpDownKeys && (e.keyCode === 40 || e.code === 'ArrowDown') 13225 /* arrow down */ 13226 ) { 13227 // Select next tab to the right, validate if down arrow is not disabled 13228 if (direction === 'rtl') { 13229 index = getPrevTab(index); 13230 } else { 13231 index = getNextTab(index); 13232 } 13233 13234 preventDefault = true; 13235 useSelectedIndex = true; 13236 } else if (e.keyCode === 35 || e.code === 'End') { 13237 // Select last tab (End key) 13238 index = getLastTab(); 13239 preventDefault = true; 13240 useSelectedIndex = true; 13241 } else if (e.keyCode === 36 || e.code === 'Home') { 13242 // Select first tab (Home key) 13243 index = getFirstTab(); 13244 preventDefault = true; 13245 useSelectedIndex = true; 13246 } // This prevents scrollbars from moving around 13247 13248 13249 if (preventDefault) { 13250 e.preventDefault(); 13251 } // Only use the selected index in the state if we're not using the tabbed index 13252 13253 13254 if (useSelectedIndex) { 13255 setSelected(index, e); 13256 } 13257 } 13258 } 13259 13260 function handleClick(e) { 13261 var node = e.target; 13262 13263 do { 13264 if (isTabFromContainer(node)) { 13265 if (isTabDisabled(node)) { 13266 return; 13267 } 13268 13269 var index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node); 13270 setSelected(index, e); 13271 return; 13272 } 13273 } while ((node = node.parentNode) != null); 13274 } 13275 /** 13276 * Determine if a node from event.target is a Tab element for the current Tabs container. 13277 * If the clicked element is not a Tab, it returns false. 13278 * If it finds another Tabs container between the Tab and `this`, it returns false. 13279 */ 13280 13281 13282 function isTabFromContainer(node) { 13283 // return immediately if the clicked element is not a Tab. 13284 if (!isTabNode(node)) { 13285 return false; 13286 } // Check if the first occurrence of a Tabs container is `this` one. 13287 13288 13289 var nodeAncestor = node.parentElement; 13290 13291 do { 13292 if (nodeAncestor === _ref.current) return true; 13293 if (nodeAncestor.getAttribute('data-rttabs')) break; 13294 nodeAncestor = nodeAncestor.parentElement; 13295 } while (nodeAncestor); 13296 13297 return false; 13298 } 13299 13300 var children = props.children, 13301 className = props.className, 13302 disabledTabClassName = props.disabledTabClassName, 13303 domRef = props.domRef, 13304 focus = props.focus, 13305 forceRenderTabPanel = props.forceRenderTabPanel, 13306 onSelect = props.onSelect, 13307 selectedIndex = props.selectedIndex, 13308 selectedTabClassName = props.selectedTabClassName, 13309 selectedTabPanelClassName = props.selectedTabPanelClassName, 13310 environment = props.environment, 13311 disableUpDownKeys = props.disableUpDownKeys, 13312 attributes = _objectWithoutPropertiesLoose(props, _excluded); 13313 13314 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({}, attributes, { 13315 className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className), 13316 onClick: handleClick, 13317 onKeyDown: handleKeyDown, 13318 ref: function ref(node) { 13319 _ref.current = node; 13320 if (domRef) domRef(node); 13321 }, 13322 "data-rttabs": true 13323 }), getChildren()); 13324}; 13325 13326UncontrolledTabs.defaultProps = defaultProps; 13327UncontrolledTabs.propTypes = true ? propTypes : 0; 13328/* harmony default export */ __webpack_exports__["default"] = (UncontrolledTabs); 13329 13330/***/ }), 13331
vendor: 3,085 bytes, lines 13332-13392
13332/***/ "./node_modules/react-tabs/esm/helpers/childrenDeepMap.js": 13333/*!****************************************************************!*\ 13334 !*** ./node_modules/react-tabs/esm/helpers/childrenDeepMap.js ***! 13335 \****************************************************************/ 13336/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13337 13338"use strict"; 13339__webpack_require__.r(__webpack_exports__); 13340/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13341/* harmony export */ "deepForEach": function() { return /* binding */ deepForEach; }, 13342/* harmony export */ "deepMap": function() { return /* binding */ deepMap; } 13343/* harmony export */ }); 13344/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 13345/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 13346/* harmony import */ var _elementTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elementTypes */ "./node_modules/react-tabs/esm/helpers/elementTypes.js"); 13347function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } 13348 13349 13350 13351 13352function isTabChild(child) { 13353 return (0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTab)(child) || (0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTabList)(child) || (0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTabPanel)(child); 13354} 13355 13356function deepMap(children, callback) { 13357 return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, function (child) { 13358 // null happens when conditionally rendering TabPanel/Tab 13359 // see https://github.com/reactjs/react-tabs/issues/37 13360 if (child === null) return null; 13361 13362 if (isTabChild(child)) { 13363 return callback(child); 13364 } 13365 13366 if (child.props && child.props.children && typeof child.props.children === 'object') { 13367 // Clone the child that has children and map them too 13368 return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, _extends({}, child.props, { 13369 children: deepMap(child.props.children, callback) 13370 })); 13371 } 13372 13373 return child; 13374 }); 13375} 13376function deepForEach(children, callback) { 13377 return react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, function (child) { 13378 // null happens when conditionally rendering TabPanel/Tab 13379 // see https://github.com/reactjs/react-tabs/issues/37 13380 if (child === null) return; 13381 13382 if ((0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTab)(child) || (0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTabPanel)(child)) { 13383 callback(child); 13384 } else if (child.props && child.props.children && typeof child.props.children === 'object') { 13385 if ((0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTabList)(child)) callback(child); 13386 deepForEach(child.props.children, callback); 13387 } 13388 }); 13389} 13390 13391/***/ }), 13392
vendor: 1,177 bytes, lines 13393-13417
13393/***/ "./node_modules/react-tabs/esm/helpers/count.js": 13394/*!******************************************************!*\ 13395 !*** ./node_modules/react-tabs/esm/helpers/count.js ***! 13396 \******************************************************/ 13397/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13398 13399"use strict"; 13400__webpack_require__.r(__webpack_exports__); 13401/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13402/* harmony export */ "getTabsCount": function() { return /* binding */ getTabsCount; } 13403/* harmony export */ }); 13404/* harmony import */ var _childrenDeepMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./childrenDeepMap */ "./node_modules/react-tabs/esm/helpers/childrenDeepMap.js"); 13405/* harmony import */ var _elementTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elementTypes */ "./node_modules/react-tabs/esm/helpers/elementTypes.js"); 13406 13407 13408function getTabsCount(children) { 13409 var tabCount = 0; 13410 (0,_childrenDeepMap__WEBPACK_IMPORTED_MODULE_0__.deepForEach)(children, function (child) { 13411 if ((0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTab)(child)) tabCount++; 13412 }); 13413 return tabCount; 13414} 13415 13416/***/ }), 13417
vendor: 1,021 bytes, lines 13418-13442
13418/***/ "./node_modules/react-tabs/esm/helpers/elementTypes.js": 13419/*!*************************************************************!*\ 13420 !*** ./node_modules/react-tabs/esm/helpers/elementTypes.js ***! 13421 \*************************************************************/ 13422/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13423 13424"use strict"; 13425__webpack_require__.r(__webpack_exports__); 13426/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13427/* harmony export */ "isTab": function() { return /* binding */ isTab; }, 13428/* harmony export */ "isTabList": function() { return /* binding */ isTabList; }, 13429/* harmony export */ "isTabPanel": function() { return /* binding */ isTabPanel; } 13430/* harmony export */ }); 13431function makeTypeChecker(tabsRole) { 13432 return function (element) { 13433 return !!element.type && element.type.tabsRole === tabsRole; 13434 }; 13435} 13436 13437var isTab = makeTypeChecker('Tab'); 13438var isTabList = makeTypeChecker('TabList'); 13439var isTabPanel = makeTypeChecker('TabPanel'); 13440 13441/***/ }), 13442
vendor: 4,326 bytes, lines 13443-13527
13443/***/ "./node_modules/react-tabs/esm/helpers/propTypes.js": 13444/*!**********************************************************!*\ 13445 !*** ./node_modules/react-tabs/esm/helpers/propTypes.js ***! 13446 \**********************************************************/ 13447/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13448 13449"use strict"; 13450__webpack_require__.r(__webpack_exports__); 13451/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13452/* harmony export */ "childrenPropType": function() { return /* binding */ childrenPropType; }, 13453/* harmony export */ "onSelectPropType": function() { return /* binding */ onSelectPropType; }, 13454/* harmony export */ "selectedIndexPropType": function() { return /* binding */ selectedIndexPropType; } 13455/* harmony export */ }); 13456/* harmony import */ var _childrenDeepMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./childrenDeepMap */ "./node_modules/react-tabs/esm/helpers/childrenDeepMap.js"); 13457/* harmony import */ var _elementTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elementTypes */ "./node_modules/react-tabs/esm/helpers/elementTypes.js"); 13458 13459 13460function childrenPropType(props, propName, componentName) { 13461 var error; 13462 var tabsCount = 0; 13463 var panelsCount = 0; 13464 var tabListFound = false; 13465 var listTabs = []; 13466 var children = props[propName]; 13467 (0,_childrenDeepMap__WEBPACK_IMPORTED_MODULE_0__.deepForEach)(children, function (child) { 13468 if ((0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTabList)(child)) { 13469 if (child.props && child.props.children && typeof child.props.children === 'object') { 13470 (0,_childrenDeepMap__WEBPACK_IMPORTED_MODULE_0__.deepForEach)(child.props.children, function (listChild) { 13471 return listTabs.push(listChild); 13472 }); 13473 } 13474 13475 if (tabListFound) { 13476 error = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed."); 13477 } 13478 13479 tabListFound = true; 13480 } 13481 13482 if ((0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTab)(child)) { 13483 if (!tabListFound || listTabs.indexOf(child) === -1) { 13484 error = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components " + "have to be inside the 'TabList' component."); 13485 } 13486 13487 tabsCount++; 13488 } else if ((0,_elementTypes__WEBPACK_IMPORTED_MODULE_1__.isTabPanel)(child)) { 13489 panelsCount++; 13490 } 13491 }); 13492 13493 if (!error && tabsCount !== panelsCount) { 13494 error = new Error("There should be an equal number of 'Tab' and 'TabPanel' in `" + componentName + "`. " + ("Received " + tabsCount + " 'Tab' and " + panelsCount + " 'TabPanel'.")); 13495 } 13496 13497 return error; 13498} 13499function onSelectPropType(props, propName, componentName, location, propFullName) { 13500 var prop = props[propName]; 13501 var name = propFullName || propName; 13502 var error = null; 13503 13504 if (prop && typeof prop !== 'function') { 13505 error = new Error("Invalid " + location + " `" + name + "` of type `" + typeof prop + "` supplied " + ("to `" + componentName + "`, expected `function`.")); 13506 } else if (props.selectedIndex != null && prop == null) { 13507 error = new Error("The " + location + " `" + name + "` is marked as required in `" + componentName + "`, but " + "its value is `undefined` or `null`.\n" + "`onSelect` is required when `selectedIndex` is also set. Not doing so will " + "make the tabs not do anything, as `selectedIndex` indicates that you want to " + "handle the selected tab yourself.\n" + "If you only want to set the inital tab replace `selectedIndex` with `defaultIndex`."); 13508 } 13509 13510 return error; 13511} 13512function selectedIndexPropType(props, propName, componentName, location, propFullName) { 13513 var prop = props[propName]; 13514 var name = propFullName || propName; 13515 var error = null; 13516 13517 if (prop != null && typeof prop !== 'number') { 13518 error = new Error("Invalid " + location + " `" + name + "` of type `" + typeof prop + "` supplied to " + ("`" + componentName + "`, expected `number`.")); 13519 } else if (props.defaultIndex != null && prop != null) { 13520 return new Error("The " + location + " `" + name + "` cannot be used together with `defaultIndex` " + ("in `" + componentName + "`.\n") + ("Either remove `" + name + "` to let `" + componentName + "` handle the selected ") + "tab internally or remove `defaultIndex` to handle it yourself."); 13521 } 13522 13523 return error; 13524} 13525 13526/***/ }), 13527
vendor: 772 bytes, lines 13528-13550
13528/***/ "./node_modules/react-tabs/esm/helpers/uuid.js": 13529/*!*****************************************************!*\ 13530 !*** ./node_modules/react-tabs/esm/helpers/uuid.js ***! 13531 \*****************************************************/ 13532/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13533 13534"use strict"; 13535__webpack_require__.r(__webpack_exports__); 13536/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13537/* harmony export */ "default": function() { return /* binding */ uuid; }, 13538/* harmony export */ "reset": function() { return /* binding */ reset; } 13539/* harmony export */ }); 13540// Get a universally unique identifier 13541var count = 0; 13542function uuid() { 13543 return "react-tabs-" + count++; 13544} 13545function reset() { 13546 count = 0; 13547} 13548 13549/***/ }), 13550
vendor: 1,992 bytes, lines 13551-13578
13551/***/ "./node_modules/react-tabs/esm/index.js": 13552/*!**********************************************!*\ 13553 !*** ./node_modules/react-tabs/esm/index.js ***! 13554 \**********************************************/ 13555/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13556 13557"use strict"; 13558__webpack_require__.r(__webpack_exports__); 13559/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13560/* harmony export */ "Tab": function() { return /* reexport safe */ _components_Tab__WEBPACK_IMPORTED_MODULE_2__["default"]; }, 13561/* harmony export */ "TabList": function() { return /* reexport safe */ _components_TabList__WEBPACK_IMPORTED_MODULE_1__["default"]; }, 13562/* harmony export */ "TabPanel": function() { return /* reexport safe */ _components_TabPanel__WEBPACK_IMPORTED_MODULE_3__["default"]; }, 13563/* harmony export */ "Tabs": function() { return /* reexport safe */ _components_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"]; }, 13564/* harmony export */ "resetIdCounter": function() { return /* reexport safe */ _helpers_uuid__WEBPACK_IMPORTED_MODULE_4__.reset; } 13565/* harmony export */ }); 13566/* harmony import */ var _components_Tabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Tabs */ "./node_modules/react-tabs/esm/components/Tabs.js"); 13567/* harmony import */ var _components_TabList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/TabList */ "./node_modules/react-tabs/esm/components/TabList.js"); 13568/* harmony import */ var _components_Tab__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Tab */ "./node_modules/react-tabs/esm/components/Tab.js"); 13569/* harmony import */ var _components_TabPanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/TabPanel */ "./node_modules/react-tabs/esm/components/TabPanel.js"); 13570/* harmony import */ var _helpers_uuid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers/uuid */ "./node_modules/react-tabs/esm/helpers/uuid.js"); 13571 13572 13573 13574 13575 13576 13577/***/ }), 13578
vendor: 6,221 bytes, lines 13579-13727
13579/***/ "./node_modules/simple-react-modal/build/simple-modal.js": 13580/*!***************************************************************!*\ 13581 !*** ./node_modules/simple-react-modal/build/simple-modal.js ***! 13582 \***************************************************************/ 13583/***/ (function(__unused_webpack_module, exports, __webpack_require__) { 13584 13585"use strict"; 13586 13587 13588Object.defineProperty(exports, "__esModule", ({ 13589 value: true 13590})); 13591 13592var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); 13593 13594var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; 13595 13596var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; 13597 13598function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } 13599 13600function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } 13601 13602function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } 13603 13604var _react = __webpack_require__(/*! react */ "react"); 13605 13606var _react2 = _interopRequireDefault(_react); 13607 13608var _styles = __webpack_require__(/*! ./styles */ "./node_modules/simple-react-modal/build/styles.js"); 13609 13610var _styles2 = _interopRequireDefault(_styles); 13611 13612var Modal = (function (_React$Component) { 13613 _inherits(Modal, _React$Component); 13614 13615 function Modal(props) { 13616 _classCallCheck(this, Modal); 13617 13618 _get(Object.getPrototypeOf(Modal.prototype), 'constructor', this).call(this); 13619 this.hideOnOuterClick = this.hideOnOuterClick.bind(this); 13620 this.fadeIn = this.fadeIn.bind(this); 13621 this.fadeOut = this.fadeOut.bind(this); 13622 13623 var opacity = 0, 13624 display = 'block', 13625 visibility = 'hidden'; 13626 13627 if (props.show) { 13628 opacity = 1; 13629 display = 'block'; 13630 visibility = 'visible'; 13631 } 13632 13633 this.state = { 13634 opacity: opacity, 13635 display: display, 13636 visibility: visibility, 13637 show: props.show 13638 }; 13639 } 13640 13641 _createClass(Modal, [{ 13642 key: 'hideOnOuterClick', 13643 value: function hideOnOuterClick(event) { 13644 if (this.props.closeOnOuterClick === false) return; 13645 if (event.target.dataset.modal && this.props.onClose instanceof Function) this.props.onClose(event); 13646 } 13647 }, { 13648 key: 'componentWillReceiveProps', 13649 value: function componentWillReceiveProps(props) { 13650 if (this.props.show != props.show) { 13651 if (this.props.transitionSpeed) { 13652 if (props.show == true) this.fadeIn();else this.fadeOut(); 13653 } else this.setState({ show: props.show }); 13654 } 13655 } 13656 }, { 13657 key: 'fadeIn', 13658 value: function fadeIn() { 13659 var _this = this; 13660 13661 this.setState({ 13662 display: 'block', 13663 visibility: 'visible', 13664 show: true 13665 }, function () { 13666 setTimeout(function () { 13667 _this.setState({ opacity: 1 }); 13668 }, 10); 13669 }); 13670 } 13671 }, { 13672 key: 'fadeOut', 13673 value: function fadeOut() { 13674 var _this2 = this; 13675 13676 this.setState({ opacity: 0 }, function () { 13677 setTimeout(function () { 13678 _this2.setState({ show: false }); 13679 }, _this2.props.transitionSpeed); 13680 }); 13681 } 13682 }, { 13683 key: 'render', 13684 value: function render() { 13685 if (!this.state.show) return null; 13686 var modalStyle = undefined, 13687 containerStyle = undefined; 13688 //completely overwrite if they use a class 13689 if (this.props.className) { 13690 modalStyle = this.props.style; 13691 containerStyle = this.props.containerStyle; 13692 } else { 13693 modalStyle = _extends({}, _styles2['default'].modal, this.props.style); 13694 containerStyle = _extends({}, _styles2['default'].container, this.props.containerStyle); 13695 } 13696 if (this.props.transitionSpeed) modalStyle = _extends({}, this.state, modalStyle); 13697 13698 return _react2['default'].createElement( 13699 'div', 13700 _extends({}, _filteredProps(this.props), { style: modalStyle, onClick: this.hideOnOuterClick, 'data-modal': 'true' }), 13701 _react2['default'].createElement( 13702 'div', 13703 { className: this.props.containerClassName, style: containerStyle }, 13704 this.props.children 13705 ) 13706 ); 13707 } 13708 }]); 13709 13710 return Modal; 13711})(_react2['default'].Component); 13712 13713exports["default"] = Modal; 13714 13715function _filteredProps(props) { 13716 var filtered = _extends({}, props); 13717 ['containerStyle', 'containerClassName', 'closeOnOuterClick', 'show', 'onClose', 'transitionSpeed'].map(function (p) { 13718 delete filtered[p]; 13719 }); 13720 return filtered; 13721} 13722 13723var closeStyle = _styles2['default'].close; 13724exports.closeStyle = closeStyle; 13725 13726/***/ }), 13727
vendor: 1,209 bytes, lines 13728-13786
13728/***/ "./node_modules/simple-react-modal/build/styles.js": 13729/*!*********************************************************!*\ 13730 !*** ./node_modules/simple-react-modal/build/styles.js ***! 13731 \*********************************************************/ 13732/***/ (function(module, exports) { 13733 13734"use strict"; 13735 13736 13737Object.defineProperty(exports, "__esModule", ({ 13738 value: true 13739})); 13740var modal = { 13741 position: 'fixed', 13742 fontFamily: 'Arial, Helvetica, sans-serif', 13743 top: 0, 13744 right: 0, 13745 bottom: 0, 13746 left: 0, 13747 background: 'rgba(0, 0, 0, 0.8)', 13748 zIndex: 99999, 13749 transition: 'opacity 1s ease-in', 13750 pointerEvents: 'auto', 13751 overflowY: 'auto' 13752}; 13753 13754var container = { 13755 width: '400px', 13756 position: 'relative', 13757 margin: '10% auto', 13758 padding: '5px 20px 13px 20px', 13759 background: '#fff' 13760}; 13761 13762var close = { 13763 background: '#606061', 13764 color: '#FFFFFF', 13765 lineHeight: '25px', 13766 position: 'absolute', 13767 right: '-12px', 13768 textAlign: 'center', 13769 top: '-10px', 13770 width: '24px', 13771 textDecoration: 'none', 13772 fontWeight: 'bold', 13773 borderRadius: '12px', 13774 boxShadow: '1px 1px 3px #000', 13775 cursor: 'pointer' 13776}; 13777 13778exports["default"] = { 13779 modal: modal, 13780 container: container, 13781 close: close 13782}; 13783module.exports = exports['default']; 13784 13785/***/ }), 13786
vendor: 2,216 bytes, lines 13787-13871
13787/***/ "./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js": 13788/*!****************************************************************************************************!*\ 13789 !*** ./node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js ***! 13790 \****************************************************************************************************/ 13791/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 13792 13793"use strict"; 13794__webpack_require__.r(__webpack_exports__); 13795/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); 13796/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 13797 13798 13799var index = react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect ; 13800 13801/* harmony default export */ __webpack_exports__["default"] = (index); 13802 13803 13804/***/ }), 13805 13806/***/ "react": 13807/*!************************!*\ 13808 !*** external "React" ***! 13809 \************************/ 13810/***/ (function(module) { 13811 13812"use strict"; 13813module.exports = window["React"]; 13814 13815/***/ }), 13816 13817/***/ "react-dom": 13818/*!***************************!*\ 13819 !*** external "ReactDOM" ***! 13820 \***************************/ 13821/***/ (function(module) { 13822 13823"use strict"; 13824module.exports = window["ReactDOM"]; 13825 13826/***/ }), 13827 13828/***/ "jquery": 13829/*!*************************!*\ 13830 !*** external "jQuery" ***! 13831 \*************************/ 13832/***/ (function(module) { 13833 13834"use strict"; 13835module.exports = window["jQuery"]; 13836 13837/***/ }), 13838 13839/***/ "moment": 13840/*!*************************!*\ 13841 !*** external "moment" ***! 13842 \*************************/ 13843/***/ (function(module) { 13844 13845"use strict"; 13846module.exports = window["moment"]; 13847 13848/***/ }), 13849 13850/***/ "@wordpress/element": 13851/*!*********************************!*\ 13852 !*** external ["wp","element"] ***! 13853 \*********************************/ 13854/***/ (function(module) { 13855 13856"use strict"; 13857module.exports = window["wp"]["element"]; 13858 13859/***/ }), 13860 13861/***/ "@wordpress/i18n": 13862/*!******************************!*\ 13863 !*** external ["wp","i18n"] ***! 13864 \******************************/ 13865/***/ (function(module) { 13866 13867"use strict"; 13868module.exports = window["wp"]["i18n"]; 13869 13870/***/ }), 13871
vendor: 829 bytes, lines 13872-13890
13872/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js": 13873/*!*********************************************************************!*\ 13874 !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***! 13875 \*********************************************************************/ 13876/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 13877 13878"use strict"; 13879__webpack_require__.r(__webpack_exports__); 13880/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13881/* harmony export */ "default": function() { return /* binding */ _arrayLikeToArray; } 13882/* harmony export */ }); 13883function _arrayLikeToArray(arr, len) { 13884 if (len == null || len > arr.length) len = arr.length; 13885 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; 13886 return arr2; 13887} 13888 13889/***/ }), 13890
vendor: 705 bytes, lines 13891-13907
13891/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js": 13892/*!*******************************************************************!*\ 13893 !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***! 13894 \*******************************************************************/ 13895/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 13896 13897"use strict"; 13898__webpack_require__.r(__webpack_exports__); 13899/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13900/* harmony export */ "default": function() { return /* binding */ _arrayWithHoles; } 13901/* harmony export */ }); 13902function _arrayWithHoles(arr) { 13903 if (Array.isArray(arr)) return arr; 13904} 13905 13906/***/ }), 13907
vendor: 982 bytes, lines 13908-13926
13908/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js": 13909/*!**********************************************************************!*\ 13910 !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***! 13911 \**********************************************************************/ 13912/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 13913 13914"use strict"; 13915__webpack_require__.r(__webpack_exports__); 13916/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13917/* harmony export */ "default": function() { return /* binding */ _arrayWithoutHoles; } 13918/* harmony export */ }); 13919/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"); 13920 13921function _arrayWithoutHoles(arr) { 13922 if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr); 13923} 13924 13925/***/ }), 13926
vendor: 845 bytes, lines 13927-13946
13927/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js": 13928/*!**************************************************************************!*\ 13929 !*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***! 13930 \**************************************************************************/ 13931/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 13932 13933"use strict"; 13934__webpack_require__.r(__webpack_exports__); 13935/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13936/* harmony export */ "default": function() { return /* binding */ _assertThisInitialized; } 13937/* harmony export */ }); 13938function _assertThisInitialized(self) { 13939 if (self === void 0) { 13940 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13941 } 13942 return self; 13943} 13944 13945/***/ }), 13946
vendor: 795 bytes, lines 13947-13965
13947/***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js": 13948/*!*******************************************************************!*\ 13949 !*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! 13950 \*******************************************************************/ 13951/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 13952 13953"use strict"; 13954__webpack_require__.r(__webpack_exports__); 13955/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13956/* harmony export */ "default": function() { return /* binding */ _classCallCheck; } 13957/* harmony export */ }); 13958function _classCallCheck(instance, Constructor) { 13959 if (!(instance instanceof Constructor)) { 13960 throw new TypeError("Cannot call a class as a function"); 13961 } 13962} 13963 13964/***/ }), 13965
vendor: 1,507 bytes, lines 13966-13998
13966/***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js": 13967/*!****************************************************************!*\ 13968 !*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***! 13969 \****************************************************************/ 13970/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 13971 13972"use strict"; 13973__webpack_require__.r(__webpack_exports__); 13974/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13975/* harmony export */ "default": function() { return /* binding */ _createClass; } 13976/* harmony export */ }); 13977/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); 13978 13979function _defineProperties(target, props) { 13980 for (var i = 0; i < props.length; i++) { 13981 var descriptor = props[i]; 13982 descriptor.enumerable = descriptor.enumerable || false; 13983 descriptor.configurable = true; 13984 if ("value" in descriptor) descriptor.writable = true; 13985 Object.defineProperty(target, (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(descriptor.key), descriptor); 13986 } 13987} 13988function _createClass(Constructor, protoProps, staticProps) { 13989 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 13990 if (staticProps) _defineProperties(Constructor, staticProps); 13991 Object.defineProperty(Constructor, "prototype", { 13992 writable: false 13993 }); 13994 return Constructor; 13995} 13996 13997/***/ }), 13998
vendor: 1,906 bytes, lines 13999-14032
13999/***/ "./node_modules/@babel/runtime/helpers/esm/createSuper.js": 14000/*!****************************************************************!*\ 14001 !*** ./node_modules/@babel/runtime/helpers/esm/createSuper.js ***! 14002 \****************************************************************/ 14003/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14004 14005"use strict"; 14006__webpack_require__.r(__webpack_exports__); 14007/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14008/* harmony export */ "default": function() { return /* binding */ _createSuper; } 14009/* harmony export */ }); 14010/* harmony import */ var _getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"); 14011/* harmony import */ var _isNativeReflectConstruct_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"); 14012/* harmony import */ var _possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./possibleConstructorReturn.js */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"); 14013 14014 14015 14016function _createSuper(Derived) { 14017 var hasNativeReflectConstruct = (0,_isNativeReflectConstruct_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); 14018 return function _createSuperInternal() { 14019 var Super = (0,_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Derived), 14020 result; 14021 if (hasNativeReflectConstruct) { 14022 var NewTarget = (0,_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this).constructor; 14023 result = Reflect.construct(Super, arguments, NewTarget); 14024 } else { 14025 result = Super.apply(this, arguments); 14026 } 14027 return (0,_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this, result); 14028 }; 14029} 14030 14031/***/ }), 14032
vendor: 1,147 bytes, lines 14033-14062
14033/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js": 14034/*!*******************************************************************!*\ 14035 !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! 14036 \*******************************************************************/ 14037/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14038 14039"use strict"; 14040__webpack_require__.r(__webpack_exports__); 14041/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14042/* harmony export */ "default": function() { return /* binding */ _defineProperty; } 14043/* harmony export */ }); 14044/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); 14045 14046function _defineProperty(obj, key, value) { 14047 key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key); 14048 if (key in obj) { 14049 Object.defineProperty(obj, key, { 14050 value: value, 14051 enumerable: true, 14052 configurable: true, 14053 writable: true 14054 }); 14055 } else { 14056 obj[key] = value; 14057 } 14058 return obj; 14059} 14060 14061/***/ }), 14062
vendor: 1,000 bytes, lines 14063-14090
14063/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js": 14064/*!************************************************************!*\ 14065 !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***! 14066 \************************************************************/ 14067/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14068 14069"use strict"; 14070__webpack_require__.r(__webpack_exports__); 14071/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14072/* harmony export */ "default": function() { return /* binding */ _extends; } 14073/* harmony export */ }); 14074function _extends() { 14075 _extends = Object.assign ? Object.assign.bind() : function (target) { 14076 for (var i = 1; i < arguments.length; i++) { 14077 var source = arguments[i]; 14078 for (var key in source) { 14079 if (Object.prototype.hasOwnProperty.call(source, key)) { 14080 target[key] = source[key]; 14081 } 14082 } 14083 } 14084 return target; 14085 }; 14086 return _extends.apply(this, arguments); 14087} 14088 14089/***/ }), 14090
vendor: 856 bytes, lines 14091-14110
14091/***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js": 14092/*!*******************************************************************!*\ 14093 !*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***! 14094 \*******************************************************************/ 14095/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14096 14097"use strict"; 14098__webpack_require__.r(__webpack_exports__); 14099/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14100/* harmony export */ "default": function() { return /* binding */ _getPrototypeOf; } 14101/* harmony export */ }); 14102function _getPrototypeOf(o) { 14103 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { 14104 return o.__proto__ || Object.getPrototypeOf(o); 14105 }; 14106 return _getPrototypeOf(o); 14107} 14108 14109/***/ }), 14110
vendor: 1,338 bytes, lines 14111-14142
14111/***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js": 14112/*!*************************************************************!*\ 14113 !*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***! 14114 \*************************************************************/ 14115/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14116 14117"use strict"; 14118__webpack_require__.r(__webpack_exports__); 14119/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14120/* harmony export */ "default": function() { return /* binding */ _inherits; } 14121/* harmony export */ }); 14122/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"); 14123 14124function _inherits(subClass, superClass) { 14125 if (typeof superClass !== "function" && superClass !== null) { 14126 throw new TypeError("Super expression must either be null or a function"); 14127 } 14128 subClass.prototype = Object.create(superClass && superClass.prototype, { 14129 constructor: { 14130 value: subClass, 14131 writable: true, 14132 configurable: true 14133 } 14134 }); 14135 Object.defineProperty(subClass, "prototype", { 14136 writable: false 14137 }); 14138 if (superClass) (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass); 14139} 14140 14141/***/ }), 14142
vendor: 1,037 bytes, lines 14143-14167
14143/***/ "./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js": 14144/*!*****************************************************************************!*\ 14145 !*** ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js ***! 14146 \*****************************************************************************/ 14147/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14148 14149"use strict"; 14150__webpack_require__.r(__webpack_exports__); 14151/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14152/* harmony export */ "default": function() { return /* binding */ _isNativeReflectConstruct; } 14153/* harmony export */ }); 14154function _isNativeReflectConstruct() { 14155 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 14156 if (Reflect.construct.sham) return false; 14157 if (typeof Proxy === "function") return true; 14158 try { 14159 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 14160 return true; 14161 } catch (e) { 14162 return false; 14163 } 14164} 14165 14166/***/ }), 14167
vendor: 799 bytes, lines 14168-14184
14168/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js": 14169/*!********************************************************************!*\ 14170 !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! 14171 \********************************************************************/ 14172/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14173 14174"use strict"; 14175__webpack_require__.r(__webpack_exports__); 14176/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14177/* harmony export */ "default": function() { return /* binding */ _iterableToArray; } 14178/* harmony export */ }); 14179function _iterableToArray(iter) { 14180 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); 14181} 14182 14183/***/ }), 14184
vendor: 1,392 bytes, lines 14185-14225
14185/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js": 14186/*!*************************************************************************!*\ 14187 !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***! 14188 \*************************************************************************/ 14189/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14190 14191"use strict"; 14192__webpack_require__.r(__webpack_exports__); 14193/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14194/* harmony export */ "default": function() { return /* binding */ _iterableToArrayLimit; } 14195/* harmony export */ }); 14196function _iterableToArrayLimit(arr, i) { 14197 var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; 14198 if (null != _i) { 14199 var _s, 14200 _e, 14201 _x, 14202 _r, 14203 _arr = [], 14204 _n = !0, 14205 _d = !1; 14206 try { 14207 if (_x = (_i = _i.call(arr)).next, 0 === i) { 14208 if (Object(_i) !== _i) return; 14209 _n = !1; 14210 } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); 14211 } catch (err) { 14212 _d = !0, _e = err; 14213 } finally { 14214 try { 14215 if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; 14216 } finally { 14217 if (_d) throw _e; 14218 } 14219 } 14220 return _arr; 14221 } 14222} 14223 14224/***/ }), 14225
vendor: 834 bytes, lines 14226-14242
14226/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js": 14227/*!********************************************************************!*\ 14228 !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***! 14229 \********************************************************************/ 14230/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14231 14232"use strict"; 14233__webpack_require__.r(__webpack_exports__); 14234/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14235/* harmony export */ "default": function() { return /* binding */ _nonIterableRest; } 14236/* harmony export */ }); 14237function _nonIterableRest() { 14238 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 14239} 14240 14241/***/ }), 14242
vendor: 841 bytes, lines 14243-14259
14243/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js": 14244/*!**********************************************************************!*\ 14245 !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***! 14246 \**********************************************************************/ 14247/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14248 14249"use strict"; 14250__webpack_require__.r(__webpack_exports__); 14251/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14252/* harmony export */ "default": function() { return /* binding */ _nonIterableSpread; } 14253/* harmony export */ }); 14254function _nonIterableSpread() { 14255 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 14256} 14257 14258/***/ }), 14259
vendor: 1,772 bytes, lines 14260-14296
14260/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js": 14261/*!******************************************************************!*\ 14262 !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! 14263 \******************************************************************/ 14264/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14265 14266"use strict"; 14267__webpack_require__.r(__webpack_exports__); 14268/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14269/* harmony export */ "default": function() { return /* binding */ _objectSpread2; } 14270/* harmony export */ }); 14271/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); 14272 14273function ownKeys(object, enumerableOnly) { 14274 var keys = Object.keys(object); 14275 if (Object.getOwnPropertySymbols) { 14276 var symbols = Object.getOwnPropertySymbols(object); 14277 enumerableOnly && (symbols = symbols.filter(function (sym) { 14278 return Object.getOwnPropertyDescriptor(object, sym).enumerable; 14279 })), keys.push.apply(keys, symbols); 14280 } 14281 return keys; 14282} 14283function _objectSpread2(target) { 14284 for (var i = 1; i < arguments.length; i++) { 14285 var source = null != arguments[i] ? arguments[i] : {}; 14286 i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { 14287 (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); 14288 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { 14289 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); 14290 }); 14291 } 14292 return target; 14293} 14294 14295/***/ }), 14296
vendor: 1,495 bytes, lines 14297-14327
14297/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js": 14298/*!****************************************************************************!*\ 14299 !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***! 14300 \****************************************************************************/ 14301/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14302 14303"use strict"; 14304__webpack_require__.r(__webpack_exports__); 14305/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14306/* harmony export */ "default": function() { return /* binding */ _objectWithoutProperties; } 14307/* harmony export */ }); 14308/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"); 14309 14310function _objectWithoutProperties(source, excluded) { 14311 if (source == null) return {}; 14312 var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(source, excluded); 14313 var key, i; 14314 if (Object.getOwnPropertySymbols) { 14315 var sourceSymbolKeys = Object.getOwnPropertySymbols(source); 14316 for (i = 0; i < sourceSymbolKeys.length; i++) { 14317 key = sourceSymbolKeys[i]; 14318 if (excluded.indexOf(key) >= 0) continue; 14319 if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; 14320 target[key] = source[key]; 14321 } 14322 } 14323 return target; 14324} 14325 14326/***/ }), 14327
vendor: 1,037 bytes, lines 14328-14353
14328/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js": 14329/*!*********************************************************************************!*\ 14330 !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***! 14331 \*********************************************************************************/ 14332/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14333 14334"use strict"; 14335__webpack_require__.r(__webpack_exports__); 14336/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14337/* harmony export */ "default": function() { return /* binding */ _objectWithoutPropertiesLoose; } 14338/* harmony export */ }); 14339function _objectWithoutPropertiesLoose(source, excluded) { 14340 if (source == null) return {}; 14341 var target = {}; 14342 var sourceKeys = Object.keys(source); 14343 var key, i; 14344 for (i = 0; i < sourceKeys.length; i++) { 14345 key = sourceKeys[i]; 14346 if (excluded.indexOf(key) >= 0) continue; 14347 target[key] = source[key]; 14348 } 14349 return target; 14350} 14351 14352/***/ }), 14353
vendor: 1,458 bytes, lines 14354-14379
14354/***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js": 14355/*!******************************************************************************!*\ 14356 !*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***! 14357 \******************************************************************************/ 14358/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14359 14360"use strict"; 14361__webpack_require__.r(__webpack_exports__); 14362/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14363/* harmony export */ "default": function() { return /* binding */ _possibleConstructorReturn; } 14364/* harmony export */ }); 14365/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 14366/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"); 14367 14368 14369function _possibleConstructorReturn(self, call) { 14370 if (call && ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(call) === "object" || typeof call === "function")) { 14371 return call; 14372 } else if (call !== void 0) { 14373 throw new TypeError("Derived constructors may only return object or undefined"); 14374 } 14375 return (0,_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__["default"])(self); 14376} 14377 14378/***/ }), 14379
vendor: 848 bytes, lines 14380-14400
14380/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js": 14381/*!*******************************************************************!*\ 14382 !*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! 14383 \*******************************************************************/ 14384/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14385 14386"use strict"; 14387__webpack_require__.r(__webpack_exports__); 14388/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14389/* harmony export */ "default": function() { return /* binding */ _setPrototypeOf; } 14390/* harmony export */ }); 14391function _setPrototypeOf(o, p) { 14392 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { 14393 o.__proto__ = p; 14394 return o; 14395 }; 14396 return _setPrototypeOf(o, p); 14397} 14398 14399/***/ }), 14400
vendor: 1,782 bytes, lines 14401-14425
14401/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js": 14402/*!******************************************************************!*\ 14403 !*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***! 14404 \******************************************************************/ 14405/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14406 14407"use strict"; 14408__webpack_require__.r(__webpack_exports__); 14409/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14410/* harmony export */ "default": function() { return /* binding */ _slicedToArray; } 14411/* harmony export */ }); 14412/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"); 14413/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"); 14414/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"); 14415/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js"); 14416 14417 14418 14419 14420function _slicedToArray(arr, i) { 14421 return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])(); 14422} 14423 14424/***/ }), 14425
vendor: 878 bytes, lines 14426-14449
14426/***/ "./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js": 14427/*!**************************************************************************!*\ 14428 !*** ./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js ***! 14429 \**************************************************************************/ 14430/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14431 14432"use strict"; 14433__webpack_require__.r(__webpack_exports__); 14434/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14435/* harmony export */ "default": function() { return /* binding */ _taggedTemplateLiteral; } 14436/* harmony export */ }); 14437function _taggedTemplateLiteral(strings, raw) { 14438 if (!raw) { 14439 raw = strings.slice(0); 14440 } 14441 return Object.freeze(Object.defineProperties(strings, { 14442 raw: { 14443 value: Object.freeze(raw) 14444 } 14445 })); 14446} 14447 14448/***/ }), 14449
vendor: 1,797 bytes, lines 14450-14474
14450/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js": 14451/*!**********************************************************************!*\ 14452 !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***! 14453 \**********************************************************************/ 14454/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14455 14456"use strict"; 14457__webpack_require__.r(__webpack_exports__); 14458/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14459/* harmony export */ "default": function() { return /* binding */ _toConsumableArray; } 14460/* harmony export */ }); 14461/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"); 14462/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"); 14463/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"); 14464/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableSpread.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"); 14465 14466 14467 14468 14469function _toConsumableArray(arr) { 14470 return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])(); 14471} 14472 14473/***/ }), 14474
vendor: 1,279 bytes, lines 14475-14500
14475/***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js": 14476/*!****************************************************************!*\ 14477 !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! 14478 \****************************************************************/ 14479/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14480 14481"use strict"; 14482__webpack_require__.r(__webpack_exports__); 14483/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14484/* harmony export */ "default": function() { return /* binding */ _toPrimitive; } 14485/* harmony export */ }); 14486/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 14487 14488function _toPrimitive(input, hint) { 14489 if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input; 14490 var prim = input[Symbol.toPrimitive]; 14491 if (prim !== undefined) { 14492 var res = prim.call(input, hint || "default"); 14493 if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(res) !== "object") return res; 14494 throw new TypeError("@@toPrimitive must return a primitive value."); 14495 } 14496 return (hint === "string" ? String : Number)(input); 14497} 14498 14499/***/ }), 14500
vendor: 1,193 bytes, lines 14501-14522
14501/***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": 14502/*!******************************************************************!*\ 14503 !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! 14504 \******************************************************************/ 14505/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14506 14507"use strict"; 14508__webpack_require__.r(__webpack_exports__); 14509/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14510/* harmony export */ "default": function() { return /* binding */ _toPropertyKey; } 14511/* harmony export */ }); 14512/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); 14513/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); 14514 14515 14516function _toPropertyKey(arg) { 14517 var key = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arg, "string"); 14518 return (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key) === "symbol" ? key : String(key); 14519} 14520 14521/***/ }), 14522
vendor: 947 bytes, lines 14523-14545
14523/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js": 14524/*!***********************************************************!*\ 14525 !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***! 14526 \***********************************************************/ 14527/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14528 14529"use strict"; 14530__webpack_require__.r(__webpack_exports__); 14531/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14532/* harmony export */ "default": function() { return /* binding */ _typeof; } 14533/* harmony export */ }); 14534function _typeof(obj) { 14535 "@babel/helpers - typeof"; 14536 14537 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { 14538 return typeof obj; 14539 } : function (obj) { 14540 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14541 }, _typeof(obj); 14542} 14543 14544/***/ }), 14545
vendor: 1,409 bytes, lines 14546-14569
14546/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js": 14547/*!*******************************************************************************!*\ 14548 !*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***! 14549 \*******************************************************************************/ 14550/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14551 14552"use strict"; 14553__webpack_require__.r(__webpack_exports__); 14554/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14555/* harmony export */ "default": function() { return /* binding */ _unsupportedIterableToArray; } 14556/* harmony export */ }); 14557/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"); 14558 14559function _unsupportedIterableToArray(o, minLen) { 14560 if (!o) return; 14561 if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen); 14562 var n = Object.prototype.toString.call(o).slice(8, -1); 14563 if (n === "Object" && o.constructor) n = o.constructor.name; 14564 if (n === "Map" || n === "Set") return Array.from(o); 14565 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen); 14566} 14567 14568/***/ }), 14569
vendor: 37,945 bytes, lines 14570-15712
14570/***/ "./node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs": 14571/*!**************************************************************************!*\ 14572 !*** ./node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs ***! 14573 \**************************************************************************/ 14574/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 14575 14576"use strict"; 14577__webpack_require__.r(__webpack_exports__); 14578/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14579/* harmony export */ "arrow": function() { return /* binding */ arrow; }, 14580/* harmony export */ "autoPlacement": function() { return /* binding */ autoPlacement; }, 14581/* harmony export */ "computePosition": function() { return /* binding */ computePosition; }, 14582/* harmony export */ "detectOverflow": function() { return /* binding */ detectOverflow; }, 14583/* harmony export */ "flip": function() { return /* binding */ flip; }, 14584/* harmony export */ "hide": function() { return /* binding */ hide; }, 14585/* harmony export */ "inline": function() { return /* binding */ inline; }, 14586/* harmony export */ "limitShift": function() { return /* binding */ limitShift; }, 14587/* harmony export */ "offset": function() { return /* binding */ offset; }, 14588/* harmony export */ "rectToClientRect": function() { return /* binding */ rectToClientRect; }, 14589/* harmony export */ "shift": function() { return /* binding */ shift; }, 14590/* harmony export */ "size": function() { return /* binding */ size; } 14591/* harmony export */ }); 14592function getAlignment(placement) { 14593 return placement.split('-')[1]; 14594} 14595 14596function getLengthFromAxis(axis) { 14597 return axis === 'y' ? 'height' : 'width'; 14598} 14599 14600function getSide(placement) { 14601 return placement.split('-')[0]; 14602} 14603 14604function getMainAxisFromPlacement(placement) { 14605 return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y'; 14606} 14607 14608function computeCoordsFromPlacement(_ref, placement, rtl) { 14609 let { 14610 reference, 14611 floating 14612 } = _ref; 14613 const commonX = reference.x + reference.width / 2 - floating.width / 2; 14614 const commonY = reference.y + reference.height / 2 - floating.height / 2; 14615 const mainAxis = getMainAxisFromPlacement(placement); 14616 const length = getLengthFromAxis(mainAxis); 14617 const commonAlign = reference[length] / 2 - floating[length] / 2; 14618 const side = getSide(placement); 14619 const isVertical = mainAxis === 'x'; 14620 let coords; 14621 switch (side) { 14622 case 'top': 14623 coords = { 14624 x: commonX, 14625 y: reference.y - floating.height 14626 }; 14627 break; 14628 case 'bottom': 14629 coords = { 14630 x: commonX, 14631 y: reference.y + reference.height 14632 }; 14633 break; 14634 case 'right': 14635 coords = { 14636 x: reference.x + reference.width, 14637 y: commonY 14638 }; 14639 break; 14640 case 'left': 14641 coords = { 14642 x: reference.x - floating.width, 14643 y: commonY 14644 }; 14645 break; 14646 default: 14647 coords = { 14648 x: reference.x, 14649 y: reference.y 14650 }; 14651 } 14652 switch (getAlignment(placement)) { 14653 case 'start': 14654 coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1); 14655 break; 14656 case 'end': 14657 coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1); 14658 break; 14659 } 14660 return coords; 14661} 14662 14663/** 14664 * Computes the `x` and `y` coordinates that will place the floating element 14665 * next to a reference element when it is given a certain positioning strategy. 14666 * 14667 * This export does not have any `platform` interface logic. You will need to 14668 * write one for the platform you are using Floating UI with. 14669 */ 14670const computePosition = async (reference, floating, config) => { 14671 const { 14672 placement = 'bottom', 14673 strategy = 'absolute', 14674 middleware = [], 14675 platform 14676 } = config; 14677 const validMiddleware = middleware.filter(Boolean); 14678 const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating)); 14679 { 14680 if (platform == null) { 14681 console.error(['Floating UI: `platform` property was not passed to config. If you', 'want to use Floating UI on the web, install @floating-ui/dom', 'instead of the /core package. Otherwise, you can create your own', '`platform`: https://floating-ui.com/docs/platform'].join(' ')); 14682 } 14683 if (validMiddleware.filter(_ref => { 14684 let { 14685 name 14686 } = _ref; 14687 return name === 'autoPlacement' || name === 'flip'; 14688 }).length > 1) { 14689 throw new Error(['Floating UI: duplicate `flip` and/or `autoPlacement` middleware', 'detected. This will lead to an infinite loop. Ensure only one of', 'either has been passed to the `middleware` array.'].join(' ')); 14690 } 14691 if (!reference || !floating) { 14692 console.error(['Floating UI: The reference and/or floating element was not defined', 'when `computePosition()` was called. Ensure that both elements have', 'been created and can be measured.'].join(' ')); 14693 } 14694 } 14695 let rects = await platform.getElementRects({ 14696 reference, 14697 floating, 14698 strategy 14699 }); 14700 let { 14701 x, 14702 y 14703 } = computeCoordsFromPlacement(rects, placement, rtl); 14704 let statefulPlacement = placement; 14705 let middlewareData = {}; 14706 let resetCount = 0; 14707 for (let i = 0; i < validMiddleware.length; i++) { 14708 const { 14709 name, 14710 fn 14711 } = validMiddleware[i]; 14712 const { 14713 x: nextX, 14714 y: nextY, 14715 data, 14716 reset 14717 } = await fn({ 14718 x, 14719 y, 14720 initialPlacement: placement, 14721 placement: statefulPlacement, 14722 strategy, 14723 middlewareData, 14724 rects, 14725 platform, 14726 elements: { 14727 reference, 14728 floating 14729 } 14730 }); 14731 x = nextX != null ? nextX : x; 14732 y = nextY != null ? nextY : y; 14733 middlewareData = { 14734 ...middlewareData, 14735 [name]: { 14736 ...middlewareData[name], 14737 ...data 14738 } 14739 }; 14740 { 14741 if (resetCount > 50) { 14742 console.warn(['Floating UI: The middleware lifecycle appears to be running in an', 'infinite loop. This is usually caused by a `reset` continually', 'being returned without a break condition.'].join(' ')); 14743 } 14744 } 14745 if (reset && resetCount <= 50) { 14746 resetCount++; 14747 if (typeof reset === 'object') { 14748 if (reset.placement) { 14749 statefulPlacement = reset.placement; 14750 } 14751 if (reset.rects) { 14752 rects = reset.rects === true ? await platform.getElementRects({ 14753 reference, 14754 floating, 14755 strategy 14756 }) : reset.rects; 14757 } 14758 ({ 14759 x, 14760 y 14761 } = computeCoordsFromPlacement(rects, statefulPlacement, rtl)); 14762 } 14763 i = -1; 14764 continue; 14765 } 14766 } 14767 return { 14768 x, 14769 y, 14770 placement: statefulPlacement, 14771 strategy, 14772 middlewareData 14773 }; 14774}; 14775 14776function expandPaddingObject(padding) { 14777 return { 14778 top: 0, 14779 right: 0, 14780 bottom: 0, 14781 left: 0, 14782 ...padding 14783 }; 14784} 14785 14786function getSideObjectFromPadding(padding) { 14787 return typeof padding !== 'number' ? expandPaddingObject(padding) : { 14788 top: padding, 14789 right: padding, 14790 bottom: padding, 14791 left: padding 14792 }; 14793} 14794 14795function rectToClientRect(rect) { 14796 return { 14797 ...rect, 14798 top: rect.y, 14799 left: rect.x, 14800 right: rect.x + rect.width, 14801 bottom: rect.y + rect.height 14802 }; 14803} 14804 14805/** 14806 * Resolves with an object of overflow side offsets that determine how much the 14807 * element is overflowing a given clipping boundary on each side. 14808 * - positive = overflowing the boundary by that number of pixels 14809 * - negative = how many pixels left before it will overflow 14810 * - 0 = lies flush with the boundary 14811 * @see https://floating-ui.com/docs/detectOverflow 14812 */ 14813async function detectOverflow(state, options) { 14814 var _await$platform$isEle; 14815 if (options === void 0) { 14816 options = {}; 14817 } 14818 const { 14819 x, 14820 y, 14821 platform, 14822 rects, 14823 elements, 14824 strategy 14825 } = state; 14826 const { 14827 boundary = 'clippingAncestors', 14828 rootBoundary = 'viewport', 14829 elementContext = 'floating', 14830 altBoundary = false, 14831 padding = 0 14832 } = options; 14833 const paddingObject = getSideObjectFromPadding(padding); 14834 const altContext = elementContext === 'floating' ? 'reference' : 'floating'; 14835 const element = elements[altBoundary ? altContext : elementContext]; 14836 const clippingClientRect = rectToClientRect(await platform.getClippingRect({ 14837 element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))), 14838 boundary, 14839 rootBoundary, 14840 strategy 14841 })); 14842 const rect = elementContext === 'floating' ? { 14843 ...rects.floating, 14844 x, 14845 y 14846 } : rects.reference; 14847 const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)); 14848 const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || { 14849 x: 1, 14850 y: 1 14851 } : { 14852 x: 1, 14853 y: 1 14854 }; 14855 const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({ 14856 rect, 14857 offsetParent, 14858 strategy 14859 }) : rect); 14860 return { 14861 top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y, 14862 bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y, 14863 left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x, 14864 right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x 14865 }; 14866} 14867 14868const min = Math.min; 14869const max = Math.max; 14870 14871function within(min$1, value, max$1) { 14872 return max(min$1, min(value, max$1)); 14873} 14874 14875/** 14876 * Provides data to position an inner element of the floating element so that it 14877 * appears centered to the reference element. 14878 * @see https://floating-ui.com/docs/arrow 14879 */ 14880const arrow = options => ({ 14881 name: 'arrow', 14882 options, 14883 async fn(state) { 14884 // Since `element` is required, we don't Partial<> the type. 14885 const { 14886 element, 14887 padding = 0 14888 } = options || {}; 14889 const { 14890 x, 14891 y, 14892 placement, 14893 rects, 14894 platform 14895 } = state; 14896 if (element == null) { 14897 { 14898 console.warn('Floating UI: No `element` was passed to the `arrow` middleware.'); 14899 } 14900 return {}; 14901 } 14902 const paddingObject = getSideObjectFromPadding(padding); 14903 const coords = { 14904 x, 14905 y 14906 }; 14907 const axis = getMainAxisFromPlacement(placement); 14908 const length = getLengthFromAxis(axis); 14909 const arrowDimensions = await platform.getDimensions(element); 14910 const minProp = axis === 'y' ? 'top' : 'left'; 14911 const maxProp = axis === 'y' ? 'bottom' : 'right'; 14912 const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length]; 14913 const startDiff = coords[axis] - rects.reference[axis]; 14914 const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element)); 14915 let clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0; 14916 if (clientSize === 0) { 14917 clientSize = rects.floating[length]; 14918 } 14919 const centerToReference = endDiff / 2 - startDiff / 2; 14920 14921 // Make sure the arrow doesn't overflow the floating element if the center 14922 // point is outside the floating element's bounds. 14923 const min = paddingObject[minProp]; 14924 const max = clientSize - arrowDimensions[length] - paddingObject[maxProp]; 14925 const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference; 14926 const offset = within(min, center, max); 14927 14928 // If the reference is small enough that the arrow's padding causes it to 14929 // to point to nothing for an aligned placement, adjust the offset of the 14930 // floating element itself. This stops `shift()` from taking action, but can 14931 // be worked around by calling it again after the `arrow()` if desired. 14932 const shouldAddOffset = getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min ? paddingObject[minProp] : paddingObject[maxProp]) - arrowDimensions[length] / 2 < 0; 14933 const alignmentOffset = shouldAddOffset ? center < min ? min - center : max - center : 0; 14934 return { 14935 [axis]: coords[axis] - alignmentOffset, 14936 data: { 14937 [axis]: offset, 14938 centerOffset: center - offset 14939 } 14940 }; 14941 } 14942}); 14943 14944const sides = ['top', 'right', 'bottom', 'left']; 14945const allPlacements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []); 14946 14947const oppositeSideMap = { 14948 left: 'right', 14949 right: 'left', 14950 bottom: 'top', 14951 top: 'bottom' 14952}; 14953function getOppositePlacement(placement) { 14954 return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]); 14955} 14956 14957function getAlignmentSides(placement, rects, rtl) { 14958 if (rtl === void 0) { 14959 rtl = false; 14960 } 14961 const alignment = getAlignment(placement); 14962 const mainAxis = getMainAxisFromPlacement(placement); 14963 const length = getLengthFromAxis(mainAxis); 14964 let mainAlignmentSide = mainAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top'; 14965 if (rects.reference[length] > rects.floating[length]) { 14966 mainAlignmentSide = getOppositePlacement(mainAlignmentSide); 14967 } 14968 return { 14969 main: mainAlignmentSide, 14970 cross: getOppositePlacement(mainAlignmentSide) 14971 }; 14972} 14973 14974const oppositeAlignmentMap = { 14975 start: 'end', 14976 end: 'start' 14977}; 14978function getOppositeAlignmentPlacement(placement) { 14979 return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]); 14980} 14981 14982function getPlacementList(alignment, autoAlignment, allowedPlacements) { 14983 const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement); 14984 return allowedPlacementsSortedByAlignment.filter(placement => { 14985 if (alignment) { 14986 return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false); 14987 } 14988 return true; 14989 }); 14990} 14991/** 14992 * Optimizes the visibility of the floating element by choosing the placement 14993 * that has the most space available automatically, without needing to specify a 14994 * preferred placement. Alternative to `flip`. 14995 * @see https://floating-ui.com/docs/autoPlacement 14996 */ 14997const autoPlacement = function (options) { 14998 if (options === void 0) { 14999 options = {}; 15000 } 15001 return { 15002 name: 'autoPlacement', 15003 options, 15004 async fn(state) { 15005 var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE; 15006 const { 15007 rects, 15008 middlewareData, 15009 placement, 15010 platform, 15011 elements 15012 } = state; 15013 const { 15014 crossAxis = false, 15015 alignment, 15016 allowedPlacements = allPlacements, 15017 autoAlignment = true, 15018 ...detectOverflowOptions 15019 } = options; 15020 const placements = alignment !== undefined || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements; 15021 const overflow = await detectOverflow(state, detectOverflowOptions); 15022 const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0; 15023 const currentPlacement = placements[currentIndex]; 15024 if (currentPlacement == null) { 15025 return {}; 15026 } 15027 const { 15028 main, 15029 cross 15030 } = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))); 15031 15032 // Make `computeCoords` start from the right place. 15033 if (placement !== currentPlacement) { 15034 return { 15035 reset: { 15036 placement: placements[0] 15037 } 15038 }; 15039 } 15040 const currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]]; 15041 const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), { 15042 placement: currentPlacement, 15043 overflows: currentOverflows 15044 }]; 15045 const nextPlacement = placements[currentIndex + 1]; 15046 15047 // There are more placements to check. 15048 if (nextPlacement) { 15049 return { 15050 data: { 15051 index: currentIndex + 1, 15052 overflows: allOverflows 15053 }, 15054 reset: { 15055 placement: nextPlacement 15056 } 15057 }; 15058 } 15059 const placementsSortedByMostSpace = allOverflows.map(d => { 15060 const alignment = getAlignment(d.placement); 15061 return [d.placement, alignment && crossAxis ? 15062 // Check along the mainAxis and main crossAxis side. 15063 d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) : 15064 // Check only the mainAxis. 15065 d.overflows[0], d.overflows]; 15066 }).sort((a, b) => a[1] - b[1]); 15067 const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0, 15068 // Aligned placements should not check their opposite crossAxis 15069 // side. 15070 getAlignment(d[0]) ? 2 : 3).every(v => v <= 0)); 15071 const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0]; 15072 if (resetPlacement !== placement) { 15073 return { 15074 data: { 15075 index: currentIndex + 1, 15076 overflows: allOverflows 15077 }, 15078 reset: { 15079 placement: resetPlacement 15080 } 15081 }; 15082 } 15083 return {}; 15084 } 15085 }; 15086}; 15087 15088function getExpandedPlacements(placement) { 15089 const oppositePlacement = getOppositePlacement(placement); 15090 return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)]; 15091} 15092 15093function getSideList(side, isStart, rtl) { 15094 const lr = ['left', 'right']; 15095 const rl = ['right', 'left']; 15096 const tb = ['top', 'bottom']; 15097 const bt = ['bottom', 'top']; 15098 switch (side) { 15099 case 'top': 15100 case 'bottom': 15101 if (rtl) return isStart ? rl : lr; 15102 return isStart ? lr : rl; 15103 case 'left': 15104 case 'right': 15105 return isStart ? tb : bt; 15106 default: 15107 return []; 15108 } 15109} 15110function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) { 15111 const alignment = getAlignment(placement); 15112 let list = getSideList(getSide(placement), direction === 'start', rtl); 15113 if (alignment) { 15114 list = list.map(side => side + "-" + alignment); 15115 if (flipAlignment) { 15116 list = list.concat(list.map(getOppositeAlignmentPlacement)); 15117 } 15118 } 15119 return list; 15120} 15121 15122/** 15123 * Optimizes the visibility of the floating element by flipping the `placement` 15124 * in order to keep it in view when the preferred placement(s) will overflow the 15125 * clipping boundary. Alternative to `autoPlacement`. 15126 * @see https://floating-ui.com/docs/flip 15127 */ 15128const flip = function (options) { 15129 if (options === void 0) { 15130 options = {}; 15131 } 15132 return { 15133 name: 'flip', 15134 options, 15135 async fn(state) { 15136 var _middlewareData$flip; 15137 const { 15138 placement, 15139 middlewareData, 15140 rects, 15141 initialPlacement, 15142 platform, 15143 elements 15144 } = state; 15145 const { 15146 mainAxis: checkMainAxis = true, 15147 crossAxis: checkCrossAxis = true, 15148 fallbackPlacements: specifiedFallbackPlacements, 15149 fallbackStrategy = 'bestFit', 15150 fallbackAxisSideDirection = 'none', 15151 flipAlignment = true, 15152 ...detectOverflowOptions 15153 } = options; 15154 const side = getSide(placement); 15155 const isBasePlacement = getSide(initialPlacement) === initialPlacement; 15156 const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)); 15157 const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement)); 15158 if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') { 15159 fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl)); 15160 } 15161 const placements = [initialPlacement, ...fallbackPlacements]; 15162 const overflow = await detectOverflow(state, detectOverflowOptions); 15163 const overflows = []; 15164 let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || []; 15165 if (checkMainAxis) { 15166 overflows.push(overflow[side]); 15167 } 15168 if (checkCrossAxis) { 15169 const { 15170 main, 15171 cross 15172 } = getAlignmentSides(placement, rects, rtl); 15173 overflows.push(overflow[main], overflow[cross]); 15174 } 15175 overflowsData = [...overflowsData, { 15176 placement, 15177 overflows 15178 }]; 15179 15180 // One or more sides is overflowing. 15181 if (!overflows.every(side => side <= 0)) { 15182 var _middlewareData$flip2, _overflowsData$filter; 15183 const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1; 15184 const nextPlacement = placements[nextIndex]; 15185 if (nextPlacement) { 15186 // Try next placement and re-run the lifecycle. 15187 return { 15188 data: { 15189 index: nextIndex, 15190 overflows: overflowsData 15191 }, 15192 reset: { 15193 placement: nextPlacement 15194 } 15195 }; 15196 } 15197 15198 // First, find the candidates that fit on the mainAxis side of overflow, 15199 // then find the placement that fits the best on the main crossAxis side. 15200 let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement; 15201 15202 // Otherwise fallback. 15203 if (!resetPlacement) { 15204 switch (fallbackStrategy) { 15205 case 'bestFit': 15206 { 15207 var _overflowsData$map$so; 15208 const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0]; 15209 if (placement) { 15210 resetPlacement = placement; 15211 } 15212 break; 15213 } 15214 case 'initialPlacement': 15215 resetPlacement = initialPlacement; 15216 break; 15217 } 15218 } 15219 if (placement !== resetPlacement) { 15220 return { 15221 reset: { 15222 placement: resetPlacement 15223 } 15224 }; 15225 } 15226 } 15227 return {}; 15228 } 15229 }; 15230}; 15231 15232function getSideOffsets(overflow, rect) { 15233 return { 15234 top: overflow.top - rect.height, 15235 right: overflow.right - rect.width, 15236 bottom: overflow.bottom - rect.height, 15237 left: overflow.left - rect.width 15238 }; 15239} 15240function isAnySideFullyClipped(overflow) { 15241 return sides.some(side => overflow[side] >= 0); 15242} 15243/** 15244 * Provides data to hide the floating element in applicable situations, such as 15245 * when it is not in the same clipping context as the reference element. 15246 * @see https://floating-ui.com/docs/hide 15247 */ 15248const hide = function (options) { 15249 if (options === void 0) { 15250 options = {}; 15251 } 15252 return { 15253 name: 'hide', 15254 options, 15255 async fn(state) { 15256 const { 15257 strategy = 'referenceHidden', 15258 ...detectOverflowOptions 15259 } = options; 15260 const { 15261 rects 15262 } = state; 15263 switch (strategy) { 15264 case 'referenceHidden': 15265 { 15266 const overflow = await detectOverflow(state, { 15267 ...detectOverflowOptions, 15268 elementContext: 'reference' 15269 }); 15270 const offsets = getSideOffsets(overflow, rects.reference); 15271 return { 15272 data: { 15273 referenceHiddenOffsets: offsets, 15274 referenceHidden: isAnySideFullyClipped(offsets) 15275 } 15276 }; 15277 } 15278 case 'escaped': 15279 { 15280 const overflow = await detectOverflow(state, { 15281 ...detectOverflowOptions, 15282 altBoundary: true 15283 }); 15284 const offsets = getSideOffsets(overflow, rects.floating); 15285 return { 15286 data: { 15287 escapedOffsets: offsets, 15288 escaped: isAnySideFullyClipped(offsets) 15289 } 15290 }; 15291 } 15292 default: 15293 { 15294 return {}; 15295 } 15296 } 15297 } 15298 }; 15299}; 15300 15301/** 15302 * Provides improved positioning for inline reference elements that can span 15303 * over multiple lines, such as hyperlinks or range selections. 15304 * @see https://floating-ui.com/docs/inline 15305 */ 15306const inline = function (options) { 15307 if (options === void 0) { 15308 options = {}; 15309 } 15310 return { 15311 name: 'inline', 15312 options, 15313 async fn(state) { 15314 const { 15315 placement, 15316 elements, 15317 rects, 15318 platform, 15319 strategy 15320 } = state; 15321 // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a 15322 // ClientRect's bounds, despite the event listener being triggered. A 15323 // padding of 2 seems to handle this issue. 15324 const { 15325 padding = 2, 15326 x, 15327 y 15328 } = options; 15329 const fallback = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({ 15330 rect: rects.reference, 15331 offsetParent: await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)), 15332 strategy 15333 }) : rects.reference); 15334 const clientRects = (await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []; 15335 const paddingObject = getSideObjectFromPadding(padding); 15336 function getBoundingClientRect() { 15337 // There are two rects and they are disjoined. 15338 if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) { 15339 // Find the first rect in which the point is fully inside. 15340 return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback; 15341 } 15342 15343 // There are 2 or more connected rects. 15344 if (clientRects.length >= 2) { 15345 if (getMainAxisFromPlacement(placement) === 'x') { 15346 const firstRect = clientRects[0]; 15347 const lastRect = clientRects[clientRects.length - 1]; 15348 const isTop = getSide(placement) === 'top'; 15349 const top = firstRect.top; 15350 const bottom = lastRect.bottom; 15351 const left = isTop ? firstRect.left : lastRect.left; 15352 const right = isTop ? firstRect.right : lastRect.right; 15353 const width = right - left; 15354 const height = bottom - top; 15355 return { 15356 top, 15357 bottom, 15358 left, 15359 right, 15360 width, 15361 height, 15362 x: left, 15363 y: top 15364 }; 15365 } 15366 const isLeftSide = getSide(placement) === 'left'; 15367 const maxRight = max(...clientRects.map(rect => rect.right)); 15368 const minLeft = min(...clientRects.map(rect => rect.left)); 15369 const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight); 15370 const top = measureRects[0].top; 15371 const bottom = measureRects[measureRects.length - 1].bottom; 15372 const left = minLeft; 15373 const right = maxRight; 15374 const width = right - left; 15375 const height = bottom - top; 15376 return { 15377 top, 15378 bottom, 15379 left, 15380 right, 15381 width, 15382 height, 15383 x: left, 15384 y: top 15385 }; 15386 } 15387 return fallback; 15388 } 15389 const resetRects = await platform.getElementRects({ 15390 reference: { 15391 getBoundingClientRect 15392 }, 15393 floating: elements.floating, 15394 strategy 15395 }); 15396 if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) { 15397 return { 15398 reset: { 15399 rects: resetRects 15400 } 15401 }; 15402 } 15403 return {}; 15404 } 15405 }; 15406}; 15407 15408async function convertValueToCoords(state, value) { 15409 const { 15410 placement, 15411 platform, 15412 elements 15413 } = state; 15414 const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)); 15415 const side = getSide(placement); 15416 const alignment = getAlignment(placement); 15417 const isVertical = getMainAxisFromPlacement(placement) === 'x'; 15418 const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1; 15419 const crossAxisMulti = rtl && isVertical ? -1 : 1; 15420 const rawValue = typeof value === 'function' ? value(state) : value; 15421 15422 // eslint-disable-next-line prefer-const 15423 let { 15424 mainAxis, 15425 crossAxis, 15426 alignmentAxis 15427 } = typeof rawValue === 'number' ? { 15428 mainAxis: rawValue, 15429 crossAxis: 0, 15430 alignmentAxis: null 15431 } : { 15432 mainAxis: 0, 15433 crossAxis: 0, 15434 alignmentAxis: null, 15435 ...rawValue 15436 }; 15437 if (alignment && typeof alignmentAxis === 'number') { 15438 crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis; 15439 } 15440 return isVertical ? { 15441 x: crossAxis * crossAxisMulti, 15442 y: mainAxis * mainAxisMulti 15443 } : { 15444 x: mainAxis * mainAxisMulti, 15445 y: crossAxis * crossAxisMulti 15446 }; 15447} 15448 15449/** 15450 * Modifies the placement by translating the floating element along the 15451 * specified axes. 15452 * A number (shorthand for `mainAxis` or distance), or an axes configuration 15453 * object may be passed. 15454 * @see https://floating-ui.com/docs/offset 15455 */ 15456const offset = function (value) { 15457 if (value === void 0) { 15458 value = 0; 15459 } 15460 return { 15461 name: 'offset', 15462 options: value, 15463 async fn(state) { 15464 const { 15465 x, 15466 y 15467 } = state; 15468 const diffCoords = await convertValueToCoords(state, value); 15469 return { 15470 x: x + diffCoords.x, 15471 y: y + diffCoords.y, 15472 data: diffCoords 15473 }; 15474 } 15475 }; 15476}; 15477 15478function getCrossAxis(axis) { 15479 return axis === 'x' ? 'y' : 'x'; 15480} 15481 15482/** 15483 * Optimizes the visibility of the floating element by shifting it in order to 15484 * keep it in view when it will overflow the clipping boundary. 15485 * @see https://floating-ui.com/docs/shift 15486 */ 15487const shift = function (options) { 15488 if (options === void 0) { 15489 options = {}; 15490 } 15491 return { 15492 name: 'shift', 15493 options, 15494 async fn(state) { 15495 const { 15496 x, 15497 y, 15498 placement 15499 } = state; 15500 const { 15501 mainAxis: checkMainAxis = true, 15502 crossAxis: checkCrossAxis = false, 15503 limiter = { 15504 fn: _ref => { 15505 let { 15506 x, 15507 y 15508 } = _ref; 15509 return { 15510 x, 15511 y 15512 }; 15513 } 15514 }, 15515 ...detectOverflowOptions 15516 } = options; 15517 const coords = { 15518 x, 15519 y 15520 }; 15521 const overflow = await detectOverflow(state, detectOverflowOptions); 15522 const mainAxis = getMainAxisFromPlacement(getSide(placement)); 15523 const crossAxis = getCrossAxis(mainAxis); 15524 let mainAxisCoord = coords[mainAxis]; 15525 let crossAxisCoord = coords[crossAxis]; 15526 if (checkMainAxis) { 15527 const minSide = mainAxis === 'y' ? 'top' : 'left'; 15528 const maxSide = mainAxis === 'y' ? 'bottom' : 'right'; 15529 const min = mainAxisCoord + overflow[minSide]; 15530 const max = mainAxisCoord - overflow[maxSide]; 15531 mainAxisCoord = within(min, mainAxisCoord, max); 15532 } 15533 if (checkCrossAxis) { 15534 const minSide = crossAxis === 'y' ? 'top' : 'left'; 15535 const maxSide = crossAxis === 'y' ? 'bottom' : 'right'; 15536 const min = crossAxisCoord + overflow[minSide]; 15537 const max = crossAxisCoord - overflow[maxSide]; 15538 crossAxisCoord = within(min, crossAxisCoord, max); 15539 } 15540 const limitedCoords = limiter.fn({ 15541 ...state, 15542 [mainAxis]: mainAxisCoord, 15543 [crossAxis]: crossAxisCoord 15544 }); 15545 return { 15546 ...limitedCoords, 15547 data: { 15548 x: limitedCoords.x - x, 15549 y: limitedCoords.y - y 15550 } 15551 }; 15552 } 15553 }; 15554}; 15555/** 15556 * Built-in `limiter` that will stop `shift()` at a certain point. 15557 */ 15558const limitShift = function (options) { 15559 if (options === void 0) { 15560 options = {}; 15561 } 15562 return { 15563 options, 15564 fn(state) { 15565 const { 15566 x, 15567 y, 15568 placement, 15569 rects, 15570 middlewareData 15571 } = state; 15572 const { 15573 offset = 0, 15574 mainAxis: checkMainAxis = true, 15575 crossAxis: checkCrossAxis = true 15576 } = options; 15577 const coords = { 15578 x, 15579 y 15580 }; 15581 const mainAxis = getMainAxisFromPlacement(placement); 15582 const crossAxis = getCrossAxis(mainAxis); 15583 let mainAxisCoord = coords[mainAxis]; 15584 let crossAxisCoord = coords[crossAxis]; 15585 const rawOffset = typeof offset === 'function' ? offset(state) : offset; 15586 const computedOffset = typeof rawOffset === 'number' ? { 15587 mainAxis: rawOffset, 15588 crossAxis: 0 15589 } : { 15590 mainAxis: 0, 15591 crossAxis: 0, 15592 ...rawOffset 15593 }; 15594 if (checkMainAxis) { 15595 const len = mainAxis === 'y' ? 'height' : 'width'; 15596 const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis; 15597 const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis; 15598 if (mainAxisCoord < limitMin) { 15599 mainAxisCoord = limitMin; 15600 } else if (mainAxisCoord > limitMax) { 15601 mainAxisCoord = limitMax; 15602 } 15603 } 15604 if (checkCrossAxis) { 15605 var _middlewareData$offse, _middlewareData$offse2; 15606 const len = mainAxis === 'y' ? 'width' : 'height'; 15607 const isOriginSide = ['top', 'left'].includes(getSide(placement)); 15608 const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis); 15609 const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0); 15610 if (crossAxisCoord < limitMin) { 15611 crossAxisCoord = limitMin; 15612 } else if (crossAxisCoord > limitMax) { 15613 crossAxisCoord = limitMax; 15614 } 15615 } 15616 return { 15617 [mainAxis]: mainAxisCoord, 15618 [crossAxis]: crossAxisCoord 15619 }; 15620 } 15621 }; 15622}; 15623 15624/** 15625 * Provides data that allows you to change the size of the floating element â 15626 * for instance, prevent it from overflowing the clipping boundary or match the 15627 * width of the reference element. 15628 * @see https://floating-ui.com/docs/size 15629 */ 15630const size = function (options) { 15631 if (options === void 0) { 15632 options = {}; 15633 } 15634 return { 15635 name: 'size', 15636 options, 15637 async fn(state) { 15638 const { 15639 placement, 15640 rects, 15641 platform, 15642 elements 15643 } = state; 15644 const { 15645 apply = () => {}, 15646 ...detectOverflowOptions 15647 } = options; 15648 const overflow = await detectOverflow(state, detectOverflowOptions); 15649 const side = getSide(placement); 15650 const alignment = getAlignment(placement); 15651 const axis = getMainAxisFromPlacement(placement); 15652 const isXAxis = axis === 'x'; 15653 const { 15654 width, 15655 height 15656 } = rects.floating; 15657 let heightSide; 15658 let widthSide; 15659 if (side === 'top' || side === 'bottom') { 15660 heightSide = side; 15661 widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right'; 15662 } else { 15663 widthSide = side; 15664 heightSide = alignment === 'end' ? 'top' : 'bottom'; 15665 } 15666 const overflowAvailableHeight = height - overflow[heightSide]; 15667 const overflowAvailableWidth = width - overflow[widthSide]; 15668 let availableHeight = overflowAvailableHeight; 15669 let availableWidth = overflowAvailableWidth; 15670 if (isXAxis) { 15671 availableWidth = min( 15672 // Maximum clipping viewport width 15673 width - overflow.right - overflow.left, overflowAvailableWidth); 15674 } else { 15675 availableHeight = min( 15676 // Maximum clipping viewport height 15677 height - overflow.bottom - overflow.top, overflowAvailableHeight); 15678 } 15679 if (!state.middlewareData.shift && !alignment) { 15680 const xMin = max(overflow.left, 0); 15681 const xMax = max(overflow.right, 0); 15682 const yMin = max(overflow.top, 0); 15683 const yMax = max(overflow.bottom, 0); 15684 if (isXAxis) { 15685 availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)); 15686 } else { 15687 availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom)); 15688 } 15689 } 15690 await apply({ 15691 ...state, 15692 availableWidth, 15693 availableHeight 15694 }); 15695 const nextDimensions = await platform.getDimensions(elements.floating); 15696 if (width !== nextDimensions.width || height !== nextDimensions.height) { 15697 return { 15698 reset: { 15699 rects: true 15700 } 15701 }; 15702 } 15703 return {}; 15704 } 15705 }; 15706}; 15707 15708 15709 15710 15711/***/ }), 15712
vendor: 24,890 bytes, lines 15713-16408
15713/***/ "./node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs": 15714/*!************************************************************************!*\ 15715 !*** ./node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs ***! 15716 \************************************************************************/ 15717/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 15718 15719"use strict"; 15720__webpack_require__.r(__webpack_exports__); 15721/* harmony export */ __webpack_require__.d(__webpack_exports__, { 15722/* harmony export */ "arrow": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.arrow; }, 15723/* harmony export */ "autoPlacement": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.autoPlacement; }, 15724/* harmony export */ "autoUpdate": function() { return /* binding */ autoUpdate; }, 15725/* harmony export */ "computePosition": function() { return /* binding */ computePosition; }, 15726/* harmony export */ "detectOverflow": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.detectOverflow; }, 15727/* harmony export */ "flip": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.flip; }, 15728/* harmony export */ "getOverflowAncestors": function() { return /* binding */ getOverflowAncestors; }, 15729/* harmony export */ "hide": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.hide; }, 15730/* harmony export */ "inline": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.inline; }, 15731/* harmony export */ "limitShift": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.limitShift; }, 15732/* harmony export */ "offset": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.offset; }, 15733/* harmony export */ "platform": function() { return /* binding */ platform; }, 15734/* harmony export */ "shift": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.shift; }, 15735/* harmony export */ "size": function() { return /* reexport safe */ _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.size; } 15736/* harmony export */ }); 15737/* harmony import */ var _floating_ui_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @floating-ui/core */ "./node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs"); 15738 15739 15740 15741function getWindow(node) { 15742 var _node$ownerDocument; 15743 return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window; 15744} 15745 15746function getComputedStyle$1(element) { 15747 return getWindow(element).getComputedStyle(element); 15748} 15749 15750const min = Math.min; 15751const max = Math.max; 15752const round = Math.round; 15753 15754function getCssDimensions(element) { 15755 const css = getComputedStyle$1(element); 15756 let width = parseFloat(css.width); 15757 let height = parseFloat(css.height); 15758 const offsetWidth = element.offsetWidth; 15759 const offsetHeight = element.offsetHeight; 15760 const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight; 15761 if (shouldFallback) { 15762 width = offsetWidth; 15763 height = offsetHeight; 15764 } 15765 return { 15766 width, 15767 height, 15768 fallback: shouldFallback 15769 }; 15770} 15771 15772function getNodeName(node) { 15773 return isNode(node) ? (node.nodeName || '').toLowerCase() : ''; 15774} 15775 15776let uaString; 15777function getUAString() { 15778 if (uaString) { 15779 return uaString; 15780 } 15781 const uaData = navigator.userAgentData; 15782 if (uaData && Array.isArray(uaData.brands)) { 15783 uaString = uaData.brands.map(item => item.brand + "/" + item.version).join(' '); 15784 return uaString; 15785 } 15786 return navigator.userAgent; 15787} 15788 15789function isHTMLElement(value) { 15790 return value instanceof getWindow(value).HTMLElement; 15791} 15792function isElement(value) { 15793 return value instanceof getWindow(value).Element; 15794} 15795function isNode(value) { 15796 return value instanceof getWindow(value).Node; 15797} 15798function isShadowRoot(node) { 15799 // Browsers without `ShadowRoot` support. 15800 if (typeof ShadowRoot === 'undefined') { 15801 return false; 15802 } 15803 const OwnElement = getWindow(node).ShadowRoot; 15804 return node instanceof OwnElement || node instanceof ShadowRoot; 15805} 15806function isOverflowElement(element) { 15807 const { 15808 overflow, 15809 overflowX, 15810 overflowY, 15811 display 15812 } = getComputedStyle$1(element); 15813 return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display); 15814} 15815function isTableElement(element) { 15816 return ['table', 'td', 'th'].includes(getNodeName(element)); 15817} 15818function isContainingBlock(element) { 15819 // TODO: Try to use feature detection here instead. 15820 const isFirefox = /firefox/i.test(getUAString()); 15821 const css = getComputedStyle$1(element); 15822 const backdropFilter = css.backdropFilter || css.WebkitBackdropFilter; 15823 15824 // This is non-exhaustive but covers the most common CSS properties that 15825 // create a containing block. 15826 // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block 15827 return css.transform !== 'none' || css.perspective !== 'none' || (backdropFilter ? backdropFilter !== 'none' : false) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective'].some(value => css.willChange.includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => { 15828 // Add type check for old browsers. 15829 const contain = css.contain; 15830 return contain != null ? contain.includes(value) : false; 15831 }); 15832} 15833 15834/** 15835 * Determines whether or not `.getBoundingClientRect()` is affected by visual 15836 * viewport offsets. In Safari, the `x`/`y` offsets are values relative to the 15837 * visual viewport, while in other engines, they are values relative to the 15838 * layout viewport. 15839 */ 15840function isClientRectVisualViewportBased() { 15841 // TODO: Try to use feature detection here instead. Feature detection for 15842 // this can fail in various ways, making the userAgent check the most 15843 // reliable: 15844 // ⢠Always-visible scrollbar or not 15845 // ⢠Width of <html> 15846 15847 // Is Safari. 15848 return /^((?!chrome|android).)*safari/i.test(getUAString()); 15849} 15850function isLastTraversableNode(node) { 15851 return ['html', 'body', '#document'].includes(getNodeName(node)); 15852} 15853 15854function unwrapElement(element) { 15855 return !isElement(element) ? element.contextElement : element; 15856} 15857 15858const FALLBACK_SCALE = { 15859 x: 1, 15860 y: 1 15861}; 15862function getScale(element) { 15863 const domElement = unwrapElement(element); 15864 if (!isHTMLElement(domElement)) { 15865 return FALLBACK_SCALE; 15866 } 15867 const rect = domElement.getBoundingClientRect(); 15868 const { 15869 width, 15870 height, 15871 fallback 15872 } = getCssDimensions(domElement); 15873 let x = (fallback ? round(rect.width) : rect.width) / width; 15874 let y = (fallback ? round(rect.height) : rect.height) / height; 15875 15876 // 0, NaN, or Infinity should always fallback to 1. 15877 15878 if (!x || !Number.isFinite(x)) { 15879 x = 1; 15880 } 15881 if (!y || !Number.isFinite(y)) { 15882 y = 1; 15883 } 15884 return { 15885 x, 15886 y 15887 }; 15888} 15889 15890function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) { 15891 var _win$visualViewport, _win$visualViewport2; 15892 if (includeScale === void 0) { 15893 includeScale = false; 15894 } 15895 if (isFixedStrategy === void 0) { 15896 isFixedStrategy = false; 15897 } 15898 const clientRect = element.getBoundingClientRect(); 15899 const domElement = unwrapElement(element); 15900 let scale = FALLBACK_SCALE; 15901 if (includeScale) { 15902 if (offsetParent) { 15903 if (isElement(offsetParent)) { 15904 scale = getScale(offsetParent); 15905 } 15906 } else { 15907 scale = getScale(element); 15908 } 15909 } 15910 const win = domElement ? getWindow(domElement) : window; 15911 const addVisualOffsets = isClientRectVisualViewportBased() && isFixedStrategy; 15912 let x = (clientRect.left + (addVisualOffsets ? ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0 : 0)) / scale.x; 15913 let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y; 15914 let width = clientRect.width / scale.x; 15915 let height = clientRect.height / scale.y; 15916 if (domElement) { 15917 const win = getWindow(domElement); 15918 const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent; 15919 let currentIFrame = win.frameElement; 15920 while (currentIFrame && offsetParent && offsetWin !== win) { 15921 const iframeScale = getScale(currentIFrame); 15922 const iframeRect = currentIFrame.getBoundingClientRect(); 15923 const css = getComputedStyle(currentIFrame); 15924 iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x; 15925 iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y; 15926 x *= iframeScale.x; 15927 y *= iframeScale.y; 15928 width *= iframeScale.x; 15929 height *= iframeScale.y; 15930 x += iframeRect.x; 15931 y += iframeRect.y; 15932 currentIFrame = getWindow(currentIFrame).frameElement; 15933 } 15934 } 15935 return { 15936 width, 15937 height, 15938 top: y, 15939 right: x + width, 15940 bottom: y + height, 15941 left: x, 15942 x, 15943 y 15944 }; 15945} 15946 15947function getDocumentElement(node) { 15948 return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement; 15949} 15950 15951function getNodeScroll(element) { 15952 if (isElement(element)) { 15953 return { 15954 scrollLeft: element.scrollLeft, 15955 scrollTop: element.scrollTop 15956 }; 15957 } 15958 return { 15959 scrollLeft: element.pageXOffset, 15960 scrollTop: element.pageYOffset 15961 }; 15962} 15963 15964function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) { 15965 let { 15966 rect, 15967 offsetParent, 15968 strategy 15969 } = _ref; 15970 const isOffsetParentAnElement = isHTMLElement(offsetParent); 15971 const documentElement = getDocumentElement(offsetParent); 15972 if (offsetParent === documentElement) { 15973 return rect; 15974 } 15975 let scroll = { 15976 scrollLeft: 0, 15977 scrollTop: 0 15978 }; 15979 let scale = { 15980 x: 1, 15981 y: 1 15982 }; 15983 const offsets = { 15984 x: 0, 15985 y: 0 15986 }; 15987 if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') { 15988 if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) { 15989 scroll = getNodeScroll(offsetParent); 15990 } 15991 if (isHTMLElement(offsetParent)) { 15992 const offsetRect = getBoundingClientRect(offsetParent); 15993 scale = getScale(offsetParent); 15994 offsets.x = offsetRect.x + offsetParent.clientLeft; 15995 offsets.y = offsetRect.y + offsetParent.clientTop; 15996 } 15997 } 15998 return { 15999 width: rect.width * scale.x, 16000 height: rect.height * scale.y, 16001 x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x, 16002 y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y 16003 }; 16004} 16005 16006function getWindowScrollBarX(element) { 16007 // If <html> has a CSS width greater than the viewport, then this will be 16008 // incorrect for RTL. 16009 return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft; 16010} 16011 16012// Gets the entire size of the scrollable document area, even extending outside 16013// of the `<html>` and `<body>` rect bounds if horizontally scrollable. 16014function getDocumentRect(element) { 16015 const html = getDocumentElement(element); 16016 const scroll = getNodeScroll(element); 16017 const body = element.ownerDocument.body; 16018 const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth); 16019 const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight); 16020 let x = -scroll.scrollLeft + getWindowScrollBarX(element); 16021 const y = -scroll.scrollTop; 16022 if (getComputedStyle$1(body).direction === 'rtl') { 16023 x += max(html.clientWidth, body.clientWidth) - width; 16024 } 16025 return { 16026 width, 16027 height, 16028 x, 16029 y 16030 }; 16031} 16032 16033function getParentNode(node) { 16034 if (getNodeName(node) === 'html') { 16035 return node; 16036 } 16037 const result = 16038 // Step into the shadow DOM of the parent of a slotted node. 16039 node.assignedSlot || 16040 // DOM Element detected. 16041 node.parentNode || 16042 // ShadowRoot detected. 16043 isShadowRoot(node) && node.host || 16044 // Fallback. 16045 getDocumentElement(node); 16046 return isShadowRoot(result) ? result.host : result; 16047} 16048 16049function getNearestOverflowAncestor(node) { 16050 const parentNode = getParentNode(node); 16051 if (isLastTraversableNode(parentNode)) { 16052 // `getParentNode` will never return a `Document` due to the fallback 16053 // check, so it's either the <html> or <body> element. 16054 return parentNode.ownerDocument.body; 16055 } 16056 if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) { 16057 return parentNode; 16058 } 16059 return getNearestOverflowAncestor(parentNode); 16060} 16061 16062function getOverflowAncestors(node, list) { 16063 var _node$ownerDocument; 16064 if (list === void 0) { 16065 list = []; 16066 } 16067 const scrollableAncestor = getNearestOverflowAncestor(node); 16068 const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body); 16069 const win = getWindow(scrollableAncestor); 16070 if (isBody) { 16071 return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []); 16072 } 16073 return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor)); 16074} 16075 16076function getViewportRect(element, strategy) { 16077 const win = getWindow(element); 16078 const html = getDocumentElement(element); 16079 const visualViewport = win.visualViewport; 16080 let width = html.clientWidth; 16081 let height = html.clientHeight; 16082 let x = 0; 16083 let y = 0; 16084 if (visualViewport) { 16085 width = visualViewport.width; 16086 height = visualViewport.height; 16087 const visualViewportBased = isClientRectVisualViewportBased(); 16088 if (!visualViewportBased || visualViewportBased && strategy === 'fixed') { 16089 x = visualViewport.offsetLeft; 16090 y = visualViewport.offsetTop; 16091 } 16092 } 16093 return { 16094 width, 16095 height, 16096 x, 16097 y 16098 }; 16099} 16100 16101// Returns the inner client rect, subtracting scrollbars if present. 16102function getInnerBoundingClientRect(element, strategy) { 16103 const clientRect = getBoundingClientRect(element, true, strategy === 'fixed'); 16104 const top = clientRect.top + element.clientTop; 16105 const left = clientRect.left + element.clientLeft; 16106 const scale = isHTMLElement(element) ? getScale(element) : { 16107 x: 1, 16108 y: 1 16109 }; 16110 const width = element.clientWidth * scale.x; 16111 const height = element.clientHeight * scale.y; 16112 const x = left * scale.x; 16113 const y = top * scale.y; 16114 return { 16115 width, 16116 height, 16117 x, 16118 y 16119 }; 16120} 16121function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) { 16122 let rect; 16123 if (clippingAncestor === 'viewport') { 16124 rect = getViewportRect(element, strategy); 16125 } else if (clippingAncestor === 'document') { 16126 rect = getDocumentRect(getDocumentElement(element)); 16127 } else if (isElement(clippingAncestor)) { 16128 rect = getInnerBoundingClientRect(clippingAncestor, strategy); 16129 } else { 16130 const mutableRect = { 16131 ...clippingAncestor 16132 }; 16133 if (isClientRectVisualViewportBased()) { 16134 var _win$visualViewport, _win$visualViewport2; 16135 const win = getWindow(element); 16136 mutableRect.x -= ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0; 16137 mutableRect.y -= ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0; 16138 } 16139 rect = mutableRect; 16140 } 16141 return (0,_floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.rectToClientRect)(rect); 16142} 16143 16144// A "clipping ancestor" is an `overflow` element with the characteristic of 16145// clipping (or hiding) child elements. This returns all clipping ancestors 16146// of the given element up the tree. 16147function getClippingElementAncestors(element, cache) { 16148 const cachedResult = cache.get(element); 16149 if (cachedResult) { 16150 return cachedResult; 16151 } 16152 let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body'); 16153 let currentContainingBlockComputedStyle = null; 16154 const elementIsFixed = getComputedStyle$1(element).position === 'fixed'; 16155 let currentNode = elementIsFixed ? getParentNode(element) : element; 16156 16157 // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block 16158 while (isElement(currentNode) && !isLastTraversableNode(currentNode)) { 16159 const computedStyle = getComputedStyle$1(currentNode); 16160 const containingBlock = isContainingBlock(currentNode); 16161 const shouldIgnoreCurrentNode = computedStyle.position === 'fixed'; 16162 if (shouldIgnoreCurrentNode) { 16163 currentContainingBlockComputedStyle = null; 16164 } else { 16165 const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position); 16166 if (shouldDropCurrentNode) { 16167 // Drop non-containing blocks. 16168 result = result.filter(ancestor => ancestor !== currentNode); 16169 } else { 16170 // Record last containing block for next iteration. 16171 currentContainingBlockComputedStyle = computedStyle; 16172 } 16173 } 16174 currentNode = getParentNode(currentNode); 16175 } 16176 cache.set(element, result); 16177 return result; 16178} 16179 16180// Gets the maximum area that the element is visible in due to any number of 16181// clipping ancestors. 16182function getClippingRect(_ref) { 16183 let { 16184 element, 16185 boundary, 16186 rootBoundary, 16187 strategy 16188 } = _ref; 16189 const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary); 16190 const clippingAncestors = [...elementClippingAncestors, rootBoundary]; 16191 const firstClippingAncestor = clippingAncestors[0]; 16192 const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => { 16193 const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy); 16194 accRect.top = max(rect.top, accRect.top); 16195 accRect.right = min(rect.right, accRect.right); 16196 accRect.bottom = min(rect.bottom, accRect.bottom); 16197 accRect.left = max(rect.left, accRect.left); 16198 return accRect; 16199 }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy)); 16200 return { 16201 width: clippingRect.right - clippingRect.left, 16202 height: clippingRect.bottom - clippingRect.top, 16203 x: clippingRect.left, 16204 y: clippingRect.top 16205 }; 16206} 16207 16208function getDimensions(element) { 16209 if (isHTMLElement(element)) { 16210 return getCssDimensions(element); 16211 } 16212 return element.getBoundingClientRect(); 16213} 16214 16215function getTrueOffsetParent(element, polyfill) { 16216 if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') { 16217 return null; 16218 } 16219 if (polyfill) { 16220 return polyfill(element); 16221 } 16222 return element.offsetParent; 16223} 16224function getContainingBlock(element) { 16225 let currentNode = getParentNode(element); 16226 while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) { 16227 if (isContainingBlock(currentNode)) { 16228 return currentNode; 16229 } else { 16230 currentNode = getParentNode(currentNode); 16231 } 16232 } 16233 return null; 16234} 16235 16236// Gets the closest ancestor positioned element. Handles some edge cases, 16237// such as table ancestors and cross browser bugs. 16238function getOffsetParent(element, polyfill) { 16239 const window = getWindow(element); 16240 let offsetParent = getTrueOffsetParent(element, polyfill); 16241 while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') { 16242 offsetParent = getTrueOffsetParent(offsetParent, polyfill); 16243 } 16244 if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) { 16245 return window; 16246 } 16247 return offsetParent || getContainingBlock(element) || window; 16248} 16249 16250function getRectRelativeToOffsetParent(element, offsetParent, strategy) { 16251 const isOffsetParentAnElement = isHTMLElement(offsetParent); 16252 const documentElement = getDocumentElement(offsetParent); 16253 const rect = getBoundingClientRect(element, true, strategy === 'fixed', offsetParent); 16254 let scroll = { 16255 scrollLeft: 0, 16256 scrollTop: 0 16257 }; 16258 const offsets = { 16259 x: 0, 16260 y: 0 16261 }; 16262 if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') { 16263 if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) { 16264 scroll = getNodeScroll(offsetParent); 16265 } 16266 if (isHTMLElement(offsetParent)) { 16267 const offsetRect = getBoundingClientRect(offsetParent, true); 16268 offsets.x = offsetRect.x + offsetParent.clientLeft; 16269 offsets.y = offsetRect.y + offsetParent.clientTop; 16270 } else if (documentElement) { 16271 offsets.x = getWindowScrollBarX(documentElement); 16272 } 16273 } 16274 return { 16275 x: rect.left + scroll.scrollLeft - offsets.x, 16276 y: rect.top + scroll.scrollTop - offsets.y, 16277 width: rect.width, 16278 height: rect.height 16279 }; 16280} 16281 16282const platform = { 16283 getClippingRect, 16284 convertOffsetParentRelativeRectToViewportRelativeRect, 16285 isElement, 16286 getDimensions, 16287 getOffsetParent, 16288 getDocumentElement, 16289 getScale, 16290 async getElementRects(_ref) { 16291 let { 16292 reference, 16293 floating, 16294 strategy 16295 } = _ref; 16296 const getOffsetParentFn = this.getOffsetParent || getOffsetParent; 16297 const getDimensionsFn = this.getDimensions; 16298 return { 16299 reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy), 16300 floating: { 16301 x: 0, 16302 y: 0, 16303 ...(await getDimensionsFn(floating)) 16304 } 16305 }; 16306 }, 16307 getClientRects: element => Array.from(element.getClientRects()), 16308 isRTL: element => getComputedStyle$1(element).direction === 'rtl' 16309}; 16310 16311/** 16312 * Automatically updates the position of the floating element when necessary. 16313 * Should only be called when the floating element is mounted on the DOM or 16314 * visible on the screen. 16315 * @returns cleanup function that should be invoked when the floating element is 16316 * removed from the DOM or hidden from the screen. 16317 * @see https://floating-ui.com/docs/autoUpdate 16318 */ 16319function autoUpdate(reference, floating, update, options) { 16320 if (options === void 0) { 16321 options = {}; 16322 } 16323 const { 16324 ancestorScroll: _ancestorScroll = true, 16325 ancestorResize = true, 16326 elementResize = true, 16327 animationFrame = false 16328 } = options; 16329 const ancestorScroll = _ancestorScroll && !animationFrame; 16330 const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : []; 16331 ancestors.forEach(ancestor => { 16332 ancestorScroll && ancestor.addEventListener('scroll', update, { 16333 passive: true 16334 }); 16335 ancestorResize && ancestor.addEventListener('resize', update); 16336 }); 16337 let observer = null; 16338 if (elementResize) { 16339 let initialUpdate = true; 16340 observer = new ResizeObserver(() => { 16341 if (!initialUpdate) { 16342 update(); 16343 } 16344 initialUpdate = false; 16345 }); 16346 isElement(reference) && !animationFrame && observer.observe(reference); 16347 if (!isElement(reference) && reference.contextElement && !animationFrame) { 16348 observer.observe(reference.contextElement); 16349 } 16350 observer.observe(floating); 16351 } 16352 let frameId; 16353 let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null; 16354 if (animationFrame) { 16355 frameLoop(); 16356 } 16357 function frameLoop() { 16358 const nextRefRect = getBoundingClientRect(reference); 16359 if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) { 16360 update(); 16361 } 16362 prevRefRect = nextRefRect; 16363 frameId = requestAnimationFrame(frameLoop); 16364 } 16365 update(); 16366 return () => { 16367 var _observer; 16368 ancestors.forEach(ancestor => { 16369 ancestorScroll && ancestor.removeEventListener('scroll', update); 16370 ancestorResize && ancestor.removeEventListener('resize', update); 16371 }); 16372 (_observer = observer) == null ? void 0 : _observer.disconnect(); 16373 observer = null; 16374 if (animationFrame) { 16375 cancelAnimationFrame(frameId); 16376 } 16377 }; 16378} 16379 16380/** 16381 * Computes the `x` and `y` coordinates that will place the floating element 16382 * next to a reference element when it is given a certain CSS positioning 16383 * strategy. 16384 */ 16385const computePosition = (reference, floating, options) => { 16386 // This caches the expensive `getClippingElementAncestors` function so that 16387 // multiple lifecycle resets re-use the same result. It only lives for a 16388 // single call. If other functions become expensive, we can add them as well. 16389 const cache = new Map(); 16390 const mergedOptions = { 16391 platform, 16392 ...options 16393 }; 16394 const platformWithCache = { 16395 ...mergedOptions.platform, 16396 _c: cache 16397 }; 16398 return (0,_floating_ui_core__WEBPACK_IMPORTED_MODULE_0__.computePosition)(reference, floating, { 16399 ...mergedOptions, 16400 platform: platformWithCache 16401 }); 16402}; 16403 16404 16405 16406 16407/***/ }), 16408
vendor: 2,381 bytes, lines 16409-16460
16409/***/ "./node_modules/stylis/src/Enum.js": 16410/*!*****************************************!*\ 16411 !*** ./node_modules/stylis/src/Enum.js ***! 16412 \*****************************************/ 16413/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 16414 16415"use strict"; 16416__webpack_require__.r(__webpack_exports__); 16417/* harmony export */ __webpack_require__.d(__webpack_exports__, { 16418/* harmony export */ "CHARSET": function() { return /* binding */ CHARSET; }, 16419/* harmony export */ "COMMENT": function() { return /* binding */ COMMENT; }, 16420/* harmony export */ "COUNTER_STYLE": function() { return /* binding */ COUNTER_STYLE; }, 16421/* harmony export */ "DECLARATION": function() { return /* binding */ DECLARATION; }, 16422/* harmony export */ "DOCUMENT": function() { return /* binding */ DOCUMENT; }, 16423/* harmony export */ "FONT_FACE": function() { return /* binding */ FONT_FACE; }, 16424/* harmony export */ "FONT_FEATURE_VALUES": function() { return /* binding */ FONT_FEATURE_VALUES; }, 16425/* harmony export */ "IMPORT": function() { return /* binding */ IMPORT; }, 16426/* harmony export */ "KEYFRAMES": function() { return /* binding */ KEYFRAMES; }, 16427/* harmony export */ "MEDIA": function() { return /* binding */ MEDIA; }, 16428/* harmony export */ "MOZ": function() { return /* binding */ MOZ; }, 16429/* harmony export */ "MS": function() { return /* binding */ MS; }, 16430/* harmony export */ "NAMESPACE": function() { return /* binding */ NAMESPACE; }, 16431/* harmony export */ "PAGE": function() { return /* binding */ PAGE; }, 16432/* harmony export */ "RULESET": function() { return /* binding */ RULESET; }, 16433/* harmony export */ "SUPPORTS": function() { return /* binding */ SUPPORTS; }, 16434/* harmony export */ "VIEWPORT": function() { return /* binding */ VIEWPORT; }, 16435/* harmony export */ "WEBKIT": function() { return /* binding */ WEBKIT; } 16436/* harmony export */ }); 16437var MS = '-ms-' 16438var MOZ = '-moz-' 16439var WEBKIT = '-webkit-' 16440 16441var COMMENT = 'comm' 16442var RULESET = 'rule' 16443var DECLARATION = 'decl' 16444 16445var PAGE = '@page' 16446var MEDIA = '@media' 16447var IMPORT = '@import' 16448var CHARSET = '@charset' 16449var VIEWPORT = '@viewport' 16450var SUPPORTS = '@supports' 16451var DOCUMENT = '@document' 16452var NAMESPACE = '@namespace' 16453var KEYFRAMES = '@keyframes' 16454var FONT_FACE = '@font-face' 16455var COUNTER_STYLE = '@counter-style' 16456var FONT_FEATURE_VALUES = '@font-feature-values' 16457 16458 16459/***/ }), 16460
vendor: 5,850 bytes, lines 16461-16591
16461/***/ "./node_modules/stylis/src/Middleware.js": 16462/*!***********************************************!*\ 16463 !*** ./node_modules/stylis/src/Middleware.js ***! 16464 \***********************************************/ 16465/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 16466 16467"use strict"; 16468__webpack_require__.r(__webpack_exports__); 16469/* harmony export */ __webpack_require__.d(__webpack_exports__, { 16470/* harmony export */ "middleware": function() { return /* binding */ middleware; }, 16471/* harmony export */ "namespace": function() { return /* binding */ namespace; }, 16472/* harmony export */ "prefixer": function() { return /* binding */ prefixer; }, 16473/* harmony export */ "rulesheet": function() { return /* binding */ rulesheet; } 16474/* harmony export */ }); 16475/* harmony import */ var _Enum_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enum.js */ "./node_modules/stylis/src/Enum.js"); 16476/* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js"); 16477/* harmony import */ var _Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tokenizer.js */ "./node_modules/stylis/src/Tokenizer.js"); 16478/* harmony import */ var _Serializer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Serializer.js */ "./node_modules/stylis/src/Serializer.js"); 16479/* harmony import */ var _Prefixer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Prefixer.js */ "./node_modules/stylis/src/Prefixer.js"); 16480 16481 16482 16483 16484 16485 16486/** 16487 * @param {function[]} collection 16488 * @return {function} 16489 */ 16490function middleware (collection) { 16491 var length = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.sizeof)(collection) 16492 16493 return function (element, index, children, callback) { 16494 var output = '' 16495 16496 for (var i = 0; i < length; i++) 16497 output += collection[i](element, index, children, callback) || '' 16498 16499 return output 16500 } 16501} 16502 16503/** 16504 * @param {function} callback 16505 * @return {function} 16506 */ 16507function rulesheet (callback) { 16508 return function (element) { 16509 if (!element.root) 16510 if (element = element.return) 16511 callback(element) 16512 } 16513} 16514 16515/** 16516 * @param {object} element 16517 * @param {number} index 16518 * @param {object[]} children 16519 * @param {function} callback 16520 */ 16521function prefixer (element, index, children, callback) { 16522 if (element.length > -1) 16523 if (!element.return) 16524 switch (element.type) { 16525 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.DECLARATION: element.return = (0,_Prefixer_js__WEBPACK_IMPORTED_MODULE_2__.prefix)(element.value, element.length, children) 16526 return 16527 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.KEYFRAMES: 16528 return (0,_Serializer_js__WEBPACK_IMPORTED_MODULE_3__.serialize)([(0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__.copy)(element, {value: (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(element.value, '@', '@' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT)})], callback) 16529 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.RULESET: 16530 if (element.length) 16531 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.combine)(element.props, function (value) { 16532 switch ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(value, /(::plac\w+|:read-\w+)/)) { 16533 // :read-(only|write) 16534 case ':read-only': case ':read-write': 16535 return (0,_Serializer_js__WEBPACK_IMPORTED_MODULE_3__.serialize)([(0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__.copy)(element, {props: [(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /:(read-\w+)/, ':' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MOZ + '$1')]})], callback) 16536 // :placeholder 16537 case '::placeholder': 16538 return (0,_Serializer_js__WEBPACK_IMPORTED_MODULE_3__.serialize)([ 16539 (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__.copy)(element, {props: [(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /:(plac\w+)/, ':' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + 'input-$1')]}), 16540 (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__.copy)(element, {props: [(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /:(plac\w+)/, ':' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MOZ + '$1')]}), 16541 (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__.copy)(element, {props: [(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /:(plac\w+)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'input-$1')]}) 16542 ], callback) 16543 } 16544 16545 return '' 16546 }) 16547 } 16548} 16549 16550/** 16551 * @param {object} element 16552 * @param {number} index 16553 * @param {object[]} children 16554 */ 16555function namespace (element) { 16556 switch (element.type) { 16557 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.RULESET: 16558 element.props = element.props.map(function (value) { 16559 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.combine)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_4__.tokenize)(value), function (value, index, children) { 16560 switch ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, 0)) { 16561 // \f 16562 case 12: 16563 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.substr)(value, 1, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.strlen)(value)) 16564 // \0 ( + > ~ 16565 case 0: case 40: case 43: case 62: case 126: 16566 return value 16567 // : 16568 case 58: 16569 if (children[++index] === 'global') 16570 children[index] = '', children[++index] = '\f' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.substr)(children[index], index = 1, -1) 16571 // \s 16572 case 32: 16573 return index === 1 ? '' : value 16574 default: 16575 switch (index) { 16576 case 0: element = value 16577 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.sizeof)(children) > 1 ? '' : value 16578 case index = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.sizeof)(children) - 1: case 2: 16579 return index === 2 ? value + element + element : value + element 16580 default: 16581 return value 16582 } 16583 } 16584 }) 16585 }) 16586 } 16587} 16588 16589 16590/***/ }), 16591
vendor: 8,933 bytes, lines 16592-16804
16592/***/ "./node_modules/stylis/src/Parser.js": 16593/*!*******************************************!*\ 16594 !*** ./node_modules/stylis/src/Parser.js ***! 16595 \*******************************************/ 16596/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 16597 16598"use strict"; 16599__webpack_require__.r(__webpack_exports__); 16600/* harmony export */ __webpack_require__.d(__webpack_exports__, { 16601/* harmony export */ "comment": function() { return /* binding */ comment; }, 16602/* harmony export */ "compile": function() { return /* binding */ compile; }, 16603/* harmony export */ "declaration": function() { return /* binding */ declaration; }, 16604/* harmony export */ "parse": function() { return /* binding */ parse; }, 16605/* harmony export */ "ruleset": function() { return /* binding */ ruleset; } 16606/* harmony export */ }); 16607/* harmony import */ var _Enum_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enum.js */ "./node_modules/stylis/src/Enum.js"); 16608/* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js"); 16609/* harmony import */ var _Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tokenizer.js */ "./node_modules/stylis/src/Tokenizer.js"); 16610 16611 16612 16613 16614/** 16615 * @param {string} value 16616 * @return {object[]} 16617 */ 16618function compile (value) { 16619 return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.dealloc)(parse('', null, null, null, [''], value = (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.alloc)(value), 0, [0], value)) 16620} 16621 16622/** 16623 * @param {string} value 16624 * @param {object} root 16625 * @param {object?} parent 16626 * @param {string[]} rule 16627 * @param {string[]} rules 16628 * @param {string[]} rulesets 16629 * @param {number[]} pseudo 16630 * @param {number[]} points 16631 * @param {string[]} declarations 16632 * @return {object} 16633 */ 16634function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { 16635 var index = 0 16636 var offset = 0 16637 var length = pseudo 16638 var atrule = 0 16639 var property = 0 16640 var previous = 0 16641 var variable = 1 16642 var scanning = 1 16643 var ampersand = 1 16644 var character = 0 16645 var type = '' 16646 var props = rules 16647 var children = rulesets 16648 var reference = rule 16649 var characters = type 16650 16651 while (scanning) 16652 switch (previous = character, character = (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.next)()) { 16653 // ( 16654 case 40: 16655 if (previous != 108 && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.charat)(characters, length - 1) == 58) { 16656 if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.indexof)(characters += (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.delimit)(character), '&', '&\f'), '&\f') != -1) 16657 ampersand = -1 16658 break 16659 } 16660 // " ' [ 16661 case 34: case 39: case 91: 16662 characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.delimit)(character) 16663 break 16664 // \t \n \r \s 16665 case 9: case 10: case 13: case 32: 16666 characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.whitespace)(previous) 16667 break 16668 // \ 16669 case 92: 16670 characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.escaping)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.caret)() - 1, 7) 16671 continue 16672 // / 16673 case 47: 16674 switch ((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)()) { 16675 case 42: case 47: 16676 ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(comment((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.commenter)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.next)(), (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.caret)()), root, parent), declarations) 16677 break 16678 default: 16679 characters += '/' 16680 } 16681 break 16682 // { 16683 case 123 * variable: 16684 points[index++] = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) * ampersand 16685 // } ; \0 16686 case 125 * variable: case 59: case 0: 16687 switch (character) { 16688 // \0 } 16689 case 0: case 125: scanning = 0 16690 // ; 16691 case 59 + offset: 16692 if (property > 0 && ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) - length)) 16693 (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)(characters, ' ', '') + ';', rule, parent, length - 2), declarations) 16694 break 16695 // @ ; 16696 case 59: characters += ';' 16697 // { rule/at-rule 16698 default: 16699 ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets) 16700 16701 if (character === 123) 16702 if (offset === 0) 16703 parse(characters, root, reference, reference, props, rulesets, length, points, children) 16704 else 16705 switch (atrule === 99 && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.charat)(characters, 3) === 110 ? 100 : atrule) { 16706 // d m s 16707 case 100: case 109: case 115: 16708 parse(value, reference, reference, rule && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.append)(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children) 16709 break 16710 default: 16711 parse(characters, reference, reference, reference, [''], children, 0, points, children) 16712 } 16713 } 16714 16715 index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo 16716 break 16717 // : 16718 case 58: 16719 length = 1 + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters), property = previous 16720 default: 16721 if (variable < 1) 16722 if (character == 123) 16723 --variable 16724 else if (character == 125 && variable++ == 0 && (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.prev)() == 125) 16725 continue 16726 16727 switch (characters += (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.from)(character), character * variable) { 16728 // & 16729 case 38: 16730 ampersand = offset > 0 ? 1 : (characters += '\f', -1) 16731 break 16732 // , 16733 case 44: 16734 points[index++] = ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) - 1) * ampersand, ampersand = 1 16735 break 16736 // @ 16737 case 64: 16738 // - 16739 if ((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)() === 45) 16740 characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.delimit)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.next)()) 16741 16742 atrule = (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.peek)(), offset = length = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(type = characters += (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.identifier)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.caret)())), character++ 16743 break 16744 // - 16745 case 45: 16746 if (previous === 45 && (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.strlen)(characters) == 2) 16747 variable = 0 16748 } 16749 } 16750 16751 return rulesets 16752} 16753 16754/** 16755 * @param {string} value 16756 * @param {object} root 16757 * @param {object?} parent 16758 * @param {number} index 16759 * @param {number} offset 16760 * @param {string[]} rules 16761 * @param {number[]} points 16762 * @param {string} type 16763 * @param {string[]} props 16764 * @param {string[]} children 16765 * @param {number} length 16766 * @return {object} 16767 */ 16768function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) { 16769 var post = offset - 1 16770 var rule = offset === 0 ? rules : [''] 16771 var size = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.sizeof)(rule) 16772 16773 for (var i = 0, j = 0, k = 0; i < index; ++i) 16774 for (var x = 0, y = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, post + 1, post = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.abs)(j = points[i])), z = value; x < size; ++x) 16775 if (z = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.trim)(j > 0 ? rule[x] + ' ' + y : (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.replace)(y, /&\f/g, rule[x]))) 16776 props[k++] = z 16777 16778 return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.node)(value, root, parent, offset === 0 ? _Enum_js__WEBPACK_IMPORTED_MODULE_2__.RULESET : type, props, children, length) 16779} 16780 16781/** 16782 * @param {number} value 16783 * @param {object} root 16784 * @param {object?} parent 16785 * @return {object} 16786 */ 16787function comment (value, root, parent) { 16788 return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.node)(value, root, parent, _Enum_js__WEBPACK_IMPORTED_MODULE_2__.COMMENT, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.from)((0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.char)()), (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, 2, -2), 0) 16789} 16790 16791/** 16792 * @param {string} value 16793 * @param {object} root 16794 * @param {object?} parent 16795 * @param {number} length 16796 * @return {object} 16797 */ 16798function declaration (value, root, parent, length) { 16799 return (0,_Tokenizer_js__WEBPACK_IMPORTED_MODULE_0__.node)(value, root, parent, _Enum_js__WEBPACK_IMPORTED_MODULE_2__.DECLARATION, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, 0, length), (0,_Utility_js__WEBPACK_IMPORTED_MODULE_1__.substr)(value, length + 1, -1), length) 16800} 16801 16802 16803/***/ }), 16804
vendor: 11,643 bytes, lines 16805-16966
16805/***/ "./node_modules/stylis/src/Prefixer.js": 16806/*!*********************************************!*\ 16807 !*** ./node_modules/stylis/src/Prefixer.js ***! 16808 \*********************************************/ 16809/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 16810 16811"use strict"; 16812__webpack_require__.r(__webpack_exports__); 16813/* harmony export */ __webpack_require__.d(__webpack_exports__, { 16814/* harmony export */ "prefix": function() { return /* binding */ prefix; } 16815/* harmony export */ }); 16816/* harmony import */ var _Enum_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enum.js */ "./node_modules/stylis/src/Enum.js"); 16817/* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js"); 16818 16819 16820 16821/** 16822 * @param {string} value 16823 * @param {number} length 16824 * @param {object[]} children 16825 * @return {string} 16826 */ 16827function prefix (value, length, children) { 16828 switch ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.hash)(value, length)) { 16829 // color-adjust 16830 case 5103: 16831 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + 'print-' + value + value 16832 // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) 16833 case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: 16834 // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break 16835 case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: 16836 // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, 16837 case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: 16838 // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) 16839 case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: 16840 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + value 16841 // tab-size 16842 case 4789: 16843 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MOZ + value + value 16844 // appearance, user-select, transform, hyphens, text-size-adjust 16845 case 5349: case 4246: case 4810: case 6968: case 2756: 16846 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MOZ + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + value + value 16847 // writing-mode 16848 case 5936: 16849 switch ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, length + 11)) { 16850 // vertical-l(r) 16851 case 114: 16852 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb') + value 16853 // vertical-r(l) 16854 case 108: 16855 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value 16856 // horizontal(-)tb 16857 case 45: 16858 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /[svh]\w+-[tblr]{2}/, 'lr') + value 16859 // default: fallthrough to below 16860 } 16861 // flex, flex-direction, scroll-snap-type, writing-mode 16862 case 6828: case 4268: case 2903: 16863 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + value + value 16864 // order 16865 case 6165: 16866 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'flex-' + value + value 16867 // align-items 16868 case 5187: 16869 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(\w+).+(:[^]+)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + 'box-$1$2' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'flex-$1$2') + value 16870 // align-self 16871 case 5443: 16872 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'flex-item-' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /flex-|-self/g, '') + (!(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(value, /flex-|baseline/) ? _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'grid-row-' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /flex-|-self/g, '') : '') + value 16873 // align-content 16874 case 4675: 16875 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'flex-line-pack' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /align-content|flex-|-self/g, '') + value 16876 // flex-shrink 16877 case 5548: 16878 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, 'shrink', 'negative') + value 16879 // flex-basis 16880 case 5292: 16881 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, 'basis', 'preferred-size') + value 16882 // flex-grow 16883 case 6060: 16884 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + 'box-' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, '-grow', '') + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, 'grow', 'positive') + value 16885 // transition 16886 case 4554: 16887 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /([^-])(transform)/g, '$1' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$2') + value 16888 // cursor 16889 case 6187: 16890 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(zoom-|grab)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$1'), /(image-set)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$1'), value, '') + value 16891 // background, background-image 16892 case 5495: case 3959: 16893 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(image-set\([^]*)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$1' + '$`$1') 16894 // justify-content 16895 case 4968: 16896 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(.+:)(flex-)?(.*)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + 'box-pack:$3' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + value + value 16897 // justify-self 16898 case 4200: 16899 if (!(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(value, /flex-|baseline/)) return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'grid-column-align' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.substr)(value, length) + value 16900 break 16901 // grid-template-(columns|rows) 16902 case 2592: case 3360: 16903 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, 'template-', '') + value 16904 // grid-(row|column)-start 16905 case 4384: case 3616: 16906 if (children && children.some(function (element, index) { return length = index, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(element.props, /grid-\w+-end/) })) { 16907 return ~(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.indexof)(value + (children = children[length].value), 'span') ? value : (_Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, '-start', '') + value + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + 'grid-row-span:' + (~(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.indexof)(children, 'span') ? (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(children, /\d+/) : +(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(children, /\d+/) - +(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(value, /\d+/)) + ';') 16908 } 16909 return _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, '-start', '') + value 16910 // grid-(row|column)-end 16911 case 4896: case 4128: 16912 return (children && children.some(function (element) { return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.match)(element.props, /grid-\w+-start/) })) ? value : _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, '-end', '-span'), 'span ', '') + value 16913 // (margin|padding)-inline-(start|end) 16914 case 4095: case 3583: case 4068: case 2532: 16915 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(.+)-inline(.+)/, _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$1$2') + value 16916 // (min|max)?(width|height|inline-size|block-size) 16917 case 8116: case 7059: case 5753: case 5535: 16918 case 5445: case 5701: case 4933: case 4677: 16919 case 5533: case 5789: case 5021: case 4765: 16920 // stretch, max-content, min-content, fill-available 16921 if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.strlen)(value) - 1 - length > 6) 16922 switch ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, length + 1)) { 16923 // (m)ax-content, (m)in-content 16924 case 109: 16925 // - 16926 if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, length + 4) !== 45) 16927 break 16928 // (f)ill-available, (f)it-content 16929 case 102: 16930 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(.+:)(.+)-([^]+)/, '$1' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$2-$3' + '$1' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MOZ + ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, length + 3) == 108 ? '$3' : '$2-$3')) + value 16931 // (s)tretch 16932 case 115: 16933 return ~(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.indexof)(value, 'stretch') ? prefix((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, 'stretch', 'fill-available'), length, children) + value : value 16934 } 16935 break 16936 // grid-(column|row) 16937 case 5152: case 5920: 16938 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (_Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + a + ':' + b + f) + (c ? (_Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value }) 16939 // position: sticky 16940 case 4949: 16941 // stick(y)? 16942 if ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, length + 6) === 121) 16943 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, ':', ':' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT) + value 16944 break 16945 // display: (flex|inline-flex|grid|inline-grid) 16946 case 6444: 16947 switch ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, 14) === 45 ? 18 : 11)) { 16948 // (inline-)?fle(x) 16949 case 120: 16950 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + ((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.WEBKIT + '$2$3' + '$1' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS + '$2box$3') + value 16951 // (inline-)?gri(d) 16952 case 100: 16953 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, ':', ':' + _Enum_js__WEBPACK_IMPORTED_MODULE_1__.MS) + value 16954 } 16955 break 16956 // scroll-margin, scroll-margin-(top|right|bottom|left) 16957 case 5719: case 2647: case 2135: case 3927: case 2391: 16958 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.replace)(value, 'scroll-', 'scroll-snap-') + value 16959 } 16960 16961 return value 16962} 16963 16964 16965/***/ }), 16966
vendor: 2,135 bytes, lines 16967-17019
16967/***/ "./node_modules/stylis/src/Serializer.js": 16968/*!***********************************************!*\ 16969 !*** ./node_modules/stylis/src/Serializer.js ***! 16970 \***********************************************/ 16971/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 16972 16973"use strict"; 16974__webpack_require__.r(__webpack_exports__); 16975/* harmony export */ __webpack_require__.d(__webpack_exports__, { 16976/* harmony export */ "serialize": function() { return /* binding */ serialize; }, 16977/* harmony export */ "stringify": function() { return /* binding */ stringify; } 16978/* harmony export */ }); 16979/* harmony import */ var _Enum_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enum.js */ "./node_modules/stylis/src/Enum.js"); 16980/* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js"); 16981 16982 16983 16984/** 16985 * @param {object[]} children 16986 * @param {function} callback 16987 * @return {string} 16988 */ 16989function serialize (children, callback) { 16990 var output = '' 16991 var length = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.sizeof)(children) 16992 16993 for (var i = 0; i < length; i++) 16994 output += callback(children[i], i, children, callback) || '' 16995 16996 return output 16997} 16998 16999/** 17000 * @param {object} element 17001 * @param {number} index 17002 * @param {object[]} children 17003 * @param {function} callback 17004 * @return {string} 17005 */ 17006function stringify (element, index, children, callback) { 17007 switch (element.type) { 17008 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.IMPORT: case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.DECLARATION: return element.return = element.return || element.value 17009 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.COMMENT: return '' 17010 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}' 17011 case _Enum_js__WEBPACK_IMPORTED_MODULE_1__.RULESET: element.value = element.props.join(',') 17012 } 17013 17014 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.strlen)(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : '' 17015} 17016 17017 17018/***/ }), 17019
vendor: 7,600 bytes, lines 17020-17305
17020/***/ "./node_modules/stylis/src/Tokenizer.js": 17021/*!**********************************************!*\ 17022 !*** ./node_modules/stylis/src/Tokenizer.js ***! 17023 \**********************************************/ 17024/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 17025 17026"use strict"; 17027__webpack_require__.r(__webpack_exports__); 17028/* harmony export */ __webpack_require__.d(__webpack_exports__, { 17029/* harmony export */ "alloc": function() { return /* binding */ alloc; }, 17030/* harmony export */ "caret": function() { return /* binding */ caret; }, 17031/* harmony export */ "char": function() { return /* binding */ char; }, 17032/* harmony export */ "character": function() { return /* binding */ character; }, 17033/* harmony export */ "characters": function() { return /* binding */ characters; }, 17034/* harmony export */ "column": function() { return /* binding */ column; }, 17035/* harmony export */ "commenter": function() { return /* binding */ commenter; }, 17036/* harmony export */ "copy": function() { return /* binding */ copy; }, 17037/* harmony export */ "dealloc": function() { return /* binding */ dealloc; }, 17038/* harmony export */ "delimit": function() { return /* binding */ delimit; }, 17039/* harmony export */ "delimiter": function() { return /* binding */ delimiter; }, 17040/* harmony export */ "escaping": function() { return /* binding */ escaping; }, 17041/* harmony export */ "identifier": function() { return /* binding */ identifier; }, 17042/* harmony export */ "length": function() { return /* binding */ length; }, 17043/* harmony export */ "line": function() { return /* binding */ line; }, 17044/* harmony export */ "next": function() { return /* binding */ next; }, 17045/* harmony export */ "node": function() { return /* binding */ node; }, 17046/* harmony export */ "peek": function() { return /* binding */ peek; }, 17047/* harmony export */ "position": function() { return /* binding */ position; }, 17048/* harmony export */ "prev": function() { return /* binding */ prev; }, 17049/* harmony export */ "slice": function() { return /* binding */ slice; }, 17050/* harmony export */ "token": function() { return /* binding */ token; }, 17051/* harmony export */ "tokenize": function() { return /* binding */ tokenize; }, 17052/* harmony export */ "tokenizer": function() { return /* binding */ tokenizer; }, 17053/* harmony export */ "whitespace": function() { return /* binding */ whitespace; } 17054/* harmony export */ }); 17055/* harmony import */ var _Utility_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utility.js */ "./node_modules/stylis/src/Utility.js"); 17056 17057 17058var line = 1 17059var column = 1 17060var length = 0 17061var position = 0 17062var character = 0 17063var characters = '' 17064 17065/** 17066 * @param {string} value 17067 * @param {object | null} root 17068 * @param {object | null} parent 17069 * @param {string} type 17070 * @param {string[] | string} props 17071 * @param {object[] | string} children 17072 * @param {number} length 17073 */ 17074function node (value, root, parent, type, props, children, length) { 17075 return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''} 17076} 17077 17078/** 17079 * @param {object} root 17080 * @param {object} props 17081 * @return {object} 17082 */ 17083function copy (root, props) { 17084 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.assign)(node('', null, null, '', null, null, 0), root, {length: -root.length}, props) 17085} 17086 17087/** 17088 * @return {number} 17089 */ 17090function char () { 17091 return character 17092} 17093 17094/** 17095 * @return {number} 17096 */ 17097function prev () { 17098 character = position > 0 ? (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(characters, --position) : 0 17099 17100 if (column--, character === 10) 17101 column = 1, line-- 17102 17103 return character 17104} 17105 17106/** 17107 * @return {number} 17108 */ 17109function next () { 17110 character = position < length ? (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(characters, position++) : 0 17111 17112 if (column++, character === 10) 17113 column = 1, line++ 17114 17115 return character 17116} 17117 17118/** 17119 * @return {number} 17120 */ 17121function peek () { 17122 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.charat)(characters, position) 17123} 17124 17125/** 17126 * @return {number} 17127 */ 17128function caret () { 17129 return position 17130} 17131 17132/** 17133 * @param {number} begin 17134 * @param {number} end 17135 * @return {string} 17136 */ 17137function slice (begin, end) { 17138 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.substr)(characters, begin, end) 17139} 17140 17141/** 17142 * @param {number} type 17143 * @return {number} 17144 */ 17145function token (type) { 17146 switch (type) { 17147 // \0 \t \n \r \s whitespace token 17148 case 0: case 9: case 10: case 13: case 32: 17149 return 5 17150 // ! + , / > @ ~ isolate token 17151 case 33: case 43: case 44: case 47: case 62: case 64: case 126: 17152 // ; { } breakpoint token 17153 case 59: case 123: case 125: 17154 return 4 17155 // : accompanied token 17156 case 58: 17157 return 3 17158 // " ' ( [ opening delimit token 17159 case 34: case 39: case 40: case 91: 17160 return 2 17161 // ) ] closing delimit token 17162 case 41: case 93: 17163 return 1 17164 } 17165 17166 return 0 17167} 17168 17169/** 17170 * @param {string} value 17171 * @return {any[]} 17172 */ 17173function alloc (value) { 17174 return line = column = 1, length = (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.strlen)(characters = value), position = 0, [] 17175} 17176 17177/** 17178 * @param {any} value 17179 * @return {any} 17180 */ 17181function dealloc (value) { 17182 return characters = '', value 17183} 17184 17185/** 17186 * @param {number} type 17187 * @return {string} 17188 */ 17189function delimit (type) { 17190 return (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.trim)(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))) 17191} 17192 17193/** 17194 * @param {string} value 17195 * @return {string[]} 17196 */ 17197function tokenize (value) { 17198 return dealloc(tokenizer(alloc(value))) 17199} 17200 17201/** 17202 * @param {number} type 17203 * @return {string} 17204 */ 17205function whitespace (type) { 17206 while (character = peek()) 17207 if (character < 33) 17208 next() 17209 else 17210 break 17211 17212 return token(type) > 2 || token(character) > 3 ? '' : ' ' 17213} 17214 17215/** 17216 * @param {string[]} children 17217 * @return {string[]} 17218 */ 17219function tokenizer (children) { 17220 while (next()) 17221 switch (token(character)) { 17222 case 0: (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)(identifier(position - 1), children) 17223 break 17224 case 2: ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)(delimit(character), children) 17225 break 17226 default: ;(0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.append)((0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.from)(character), children) 17227 } 17228 17229 return children 17230} 17231 17232/** 17233 * @param {number} index 17234 * @param {number} count 17235 * @return {string} 17236 */ 17237function escaping (index, count) { 17238 while (--count && next()) 17239 // not 0-9 A-F a-f 17240 if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97)) 17241 break 17242 17243 return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32)) 17244} 17245 17246/** 17247 * @param {number} type 17248 * @return {number} 17249 */ 17250function delimiter (type) { 17251 while (next()) 17252 switch (character) { 17253 // ] ) " ' 17254 case type: 17255 return position 17256 // " ' 17257 case 34: case 39: 17258 if (type !== 34 && type !== 39) 17259 delimiter(character) 17260 break 17261 // ( 17262 case 40: 17263 if (type === 41) 17264 delimiter(type) 17265 break 17266 // \ 17267 case 92: 17268 next() 17269 break 17270 } 17271 17272 return position 17273} 17274 17275/** 17276 * @param {number} type 17277 * @param {number} index 17278 * @return {number} 17279 */ 17280function commenter (type, index) { 17281 while (next()) 17282 // // 17283 if (type + character === 47 + 10) 17284 break 17285 // /* 17286 else if (type + character === 42 + 42 && peek() === 47) 17287 break 17288 17289 return '/*' + slice(index, position - 1) + '*' + (0,_Utility_js__WEBPACK_IMPORTED_MODULE_0__.from)(type === 47 ? type : next()) 17290} 17291 17292/** 17293 * @param {number} index 17294 * @return {string} 17295 */ 17296function identifier (index) { 17297 while (!token(peek())) 17298 next() 17299 17300 return slice(index, position) 17301} 17302 17303 17304/***/ }), 17305
vendor: 3,486 bytes, lines 17306-17447
17306/***/ "./node_modules/stylis/src/Utility.js": 17307/*!********************************************!*\ 17308 !*** ./node_modules/stylis/src/Utility.js ***! 17309 \********************************************/ 17310/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 17311 17312"use strict"; 17313__webpack_require__.r(__webpack_exports__); 17314/* harmony export */ __webpack_require__.d(__webpack_exports__, { 17315/* harmony export */ "abs": function() { return /* binding */ abs; }, 17316/* harmony export */ "append": function() { return /* binding */ append; }, 17317/* harmony export */ "assign": function() { return /* binding */ assign; }, 17318/* harmony export */ "charat": function() { return /* binding */ charat; }, 17319/* harmony export */ "combine": function() { return /* binding */ combine; }, 17320/* harmony export */ "from": function() { return /* binding */ from; }, 17321/* harmony export */ "hash": function() { return /* binding */ hash; }, 17322/* harmony export */ "indexof": function() { return /* binding */ indexof; }, 17323/* harmony export */ "match": function() { return /* binding */ match; }, 17324/* harmony export */ "replace": function() { return /* binding */ replace; }, 17325/* harmony export */ "sizeof": function() { return /* binding */ sizeof; }, 17326/* harmony export */ "strlen": function() { return /* binding */ strlen; }, 17327/* harmony export */ "substr": function() { return /* binding */ substr; }, 17328/* harmony export */ "trim": function() { return /* binding */ trim; } 17329/* harmony export */ }); 17330/** 17331 * @param {number} 17332 * @return {number} 17333 */ 17334var abs = Math.abs 17335 17336/** 17337 * @param {number} 17338 * @return {string} 17339 */ 17340var from = String.fromCharCode 17341 17342/** 17343 * @param {object} 17344 * @return {object} 17345 */ 17346var assign = Object.assign 17347 17348/** 17349 * @param {string} value 17350 * @param {number} length 17351 * @return {number} 17352 */ 17353function hash (value, length) { 17354 return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0 17355} 17356 17357/** 17358 * @param {string} value 17359 * @return {string} 17360 */ 17361function trim (value) { 17362 return value.trim() 17363} 17364 17365/** 17366 * @param {string} value 17367 * @param {RegExp} pattern 17368 * @return {string?} 17369 */ 17370function match (value, pattern) { 17371 return (value = pattern.exec(value)) ? value[0] : value 17372} 17373 17374/** 17375 * @param {string} value 17376 * @param {(string|RegExp)} pattern 17377 * @param {string} replacement 17378 * @return {string} 17379 */ 17380function replace (value, pattern, replacement) { 17381 return value.replace(pattern, replacement) 17382} 17383 17384/** 17385 * @param {string} value 17386 * @param {string} search 17387 * @return {number} 17388 */ 17389function indexof (value, search) { 17390 return value.indexOf(search) 17391} 17392 17393/** 17394 * @param {string} value 17395 * @param {number} index 17396 * @return {number} 17397 */ 17398function charat (value, index) { 17399 return value.charCodeAt(index) | 0 17400} 17401 17402/** 17403 * @param {string} value 17404 * @param {number} begin 17405 * @param {number} end 17406 * @return {string} 17407 */ 17408function substr (value, begin, end) { 17409 return value.slice(begin, end) 17410} 17411 17412/** 17413 * @param {string} value 17414 * @return {number} 17415 */ 17416function strlen (value) { 17417 return value.length 17418} 17419 17420/** 17421 * @param {any[]} value 17422 * @return {number} 17423 */ 17424function sizeof (value) { 17425 return value.length 17426} 17427 17428/** 17429 * @param {any} value 17430 * @param {any[]} array 17431 * @return {any} 17432 */ 17433function append (value, array) { 17434 return array.push(value), value 17435} 17436 17437/** 17438 * @param {string[]} array 17439 * @param {function} callback 17440 * @return {string} 17441 */ 17442function combine (array, callback) { 17443 return array.map(callback).join('') 17444} 17445 17446 17447/***/ })
17447 17448 17449/******/ }); 17450/************************************************************************/ 17451/******/ // The module cache 17452/******/ var __webpack_module_cache__ = {}; 17453/******/ 17454/******/ // The require function 17455/******/ function __webpack_require__(moduleId) { 17456/******/ // Check if module is in cache 17457/******/ var cachedModule = __webpack_module_cache__[moduleId]; 17458/******/ if (cachedModule !== undefined) { 17459/******/ return cachedModule.exports; 17460/******/ } 17461/******/ // Create a new module (and put it into the cache) 17462/******/ var module = __webpack_module_cache__[moduleId] = { 17463/******/ // no module.id needed 17464/******/ // no module.loaded needed 17465/******/ exports: {} 17466/******/ }; 17467/******/ 17468/******/ // Execute the module function 17469/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); 17470/******/ 17471/******/ // Return the exports of the module 17472/******/ return module.exports; 17473/******/ } 17474/******/ 17475/******/ // expose the modules object (__webpack_modules__) 17476/******/ __webpack_require__.m = __webpack_modules__; 17477/******/ 17478/************************************************************************/ 17479/******/ /* webpack/runtime/chunk loaded */ 17480/******/ !function() { 17481/******/ var deferred = []; 17482/******/ __webpack_require__.O = function(result, chunkIds, fn, priority) { 17483/******/ if(chunkIds) { 17484/******/ priority = priority || 0; 17485/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; 17486/******/ deferred[i] = [chunkIds, fn, priority]; 17487/******/ return; 17488/******/ } 17489/******/ var notFulfilled = Infinity; 17490/******/ for (var i = 0; i < deferred.length; i++) { 17491/******/ var chunkIds = deferred[i][0]; 17492/******/ var fn = deferred[i][1]; 17493/******/ var priority = deferred[i][2]; 17494/******/ var fulfilled = true; 17495/******/ for (var j = 0; j < chunkIds.length; j++) { 17496/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) { 17497/******/ chunkIds.splice(j--, 1); 17498/******/ } else { 17499/******/ fulfilled = false; 17500/******/ if(priority < notFulfilled) notFulfilled = priority; 17501/******/ } 17502/******/ } 17503/******/ if(fulfilled) { 17504/******/ deferred.splice(i--, 1) 17505/******/ var r = fn(); 17506/******/ if (r !== undefined) result = r; 17507/******/ } 17508/******/ } 17509/******/ return result; 17510/******/ }; 17511/******/ }(); 17512/******/ 17513/******/ /* webpack/runtime/compat get default export */ 17514/******/ !function() { 17515/******/ // getDefaultExport function for compatibility with non-harmony modules 17516/******/ __webpack_require__.n = function(module) { 17517/******/ var getter = module && module.__esModule ? 17518/******/ function() { return module['default']; } : 17519/******/ function() { return module; }; 17520/******/ __webpack_require__.d(getter, { a: getter }); 17521/******/ return getter; 17522/******/ }; 17523/******/ }(); 17524/******/ 17525/******/ /* webpack/runtime/define property getters */ 17526/******/ !function() { 17527/******/ // define getter functions for harmony exports 17528/******/ __webpack_require__.d = function(exports, definition) { 17529/******/ for(var key in definition) { 17530/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 17531/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 17532/******/ } 17533/******/ } 17534/******/ }; 17535/******/ }(); 17536/******/ 17537/******/ /* webpack/runtime/global */ 17538/******/ !function() { 17539/******/ __webpack_require__.g = (function() { 17540/******/ if (typeof globalThis === 'object') return globalThis; 17541/******/ try { 17542/******/ return this || new Function('return this')(); 17543/******/ } catch (e) { 17544/******/ if (typeof window === 'object') return window; 17545/******/ } 17546/******/ })(); 17547/******/ }(); 17548/******/ 17549/******/ /* webpack/runtime/hasOwnProperty shorthand */ 17550/******/ !function() { 17551/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } 17552/******/ }(); 17553/******/ 17554/******/ /* webpack/runtime/make namespace object */ 17555/******/ !function() { 17556/******/ // define __esModule on exports 17557/******/ __webpack_require__.r = function(exports) { 17558/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 17559/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 17560/******/ } 17561/******/ Object.defineProperty(exports, '__esModule', { value: true }); 17562/******/ }; 17563/******/ }(); 17564/******/ 17565/******/ /* webpack/runtime/jsonp chunk loading */ 17566/******/ !function() { 17567/******/ // no baseURI 17568/******/ 17569/******/ // object to store loaded and loading chunks 17570/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched 17571/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
17572/******/ var installedChunks = { 17573/******/ "index-report-filters": 0, 17574/******/ "./style-index": 0 17575/******/ }; 17576/******/ 17577/******/ // no chunk on demand loading 17578/******/ 17579/******/ // no prefetching 17580/******/ 17581/******/ // no preloaded 17582/******/ 17583/******/ // no HMR 17584/******/ 17585/******/ // no HMR manifest 17586/******/ 17587/******/ __webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; }; 17588/******/ 17589/******/ // install a JSONP callback for chunk loading 17590/******/ var webpackJsonpCallback = function(parentChunkLoadingFunction, data) { 17591/******/ var chunkIds = data[0]; 17592/******/ var moreModules = data[1]; 17593/******/ var runtime = data[2]; 17594/******/ // add "moreModules" to the modules object, 17595/******/ // then flag all "chunkIds" as loaded and fire callback 17596/******/ var moduleId, chunkId, i = 0; 17597/******/ if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) { 17598/******/ for(moduleId in moreModules) { 17599/******/ if(__webpack_require__.o(moreModules, moduleId)) { 17600/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; 17601/******/ } 17602/******/ } 17603/******/ if(runtime) var result = runtime(__webpack_require__); 17604/******/ } 17605/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); 17606/******/ for(;i < chunkIds.length; i++) { 17607/******/ chunkId = chunkIds[i]; 17608/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { 17609/******/ installedChunks[chunkId][0](); 17610/******/ } 17611/******/ installedChunks[chunkId] = 0; 17612/******/ } 17613/******/ return __webpack_require__.O(result); 17614/******/ } 17615/******/ 17616/******/ var chunkLoadingGlobal = self["webpackChunklearndash_reports_by_wisdmlabs"] = self["webpackChunklearndash_reports_by_wisdmlabs"] || []; 17617/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); 17618/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); 17619/******/ }(); 17620/******/ 17621/************************************************************************/ 17622/******/ 17623/******/ // startup 17624/******/ // Load entry module and return exports 17625/******/ // This entry module depends on other loaded chunks and execution need to be delayed 17626/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["./style-index"], function() { return __webpack_require__("./includes/blocks/src/report-filters/index-report-filters.js"); }) 17627/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); 17628/******/ 17629/******/ })() 17630; 17631//# sourceMappingURL=index-report-filters.js.map 17632} 17633 17634/* 17635 FILE ARCHIVED ON 01:13:01 Sep 15, 2024 AND RETRIEVED FROM THE 17636 INTERNET ARCHIVE ON 11:46:09 Sep 19, 2026. 17637 JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. 17638 17639 ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. 17640 SECTION 108(a)(3)). 17641*/ 17642/* 17643playback timings (ms): 17644 captures_list: 0.678 17645 exclusion.robots: 0.094 17646 exclusion.robots.policy: 0.082 17647 esindex: 0.012 17648 cdx.remote: 24.206 17649 LoadShardBlock: 63.298 (3) 17650 PetaboxLoader3.datanode: 80.746 (5) 17651 PetaboxLoader3.resolve: 390.08 (2) 17652 load_resource: 443.384 17653 loaddict: 27.155 17654*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.