lookbook 1.3.1 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/lookbook/css/themes/blue.css +3 -1
  3. data/app/assets/lookbook/css/themes/green.css +66 -0
  4. data/app/assets/lookbook/css/themes/indigo.css +3 -1
  5. data/app/assets/lookbook/css/themes/rose.css +66 -0
  6. data/app/assets/lookbook/css/themes/zinc.css +3 -1
  7. data/app/components/lookbook/base_component.rb +2 -2
  8. data/app/components/lookbook/code/component.css +2 -2
  9. data/app/components/lookbook/code/component.html.erb +2 -1
  10. data/app/components/lookbook/code/component.rb +15 -2
  11. data/app/components/lookbook/code/highlight_github.css +406 -0
  12. data/app/components/lookbook/nav/item/component.html.erb +1 -1
  13. data/app/components/lookbook/params/editor/component.html.erb +2 -2
  14. data/app/components/lookbook/params/field/component.css +3 -3
  15. data/app/components/lookbook/split_layout/component.html.erb +1 -1
  16. data/app/components/lookbook/tag_component.rb +1 -1
  17. data/app/components/lookbook/viewport/component.css +1 -1
  18. data/app/components/lookbook/viewport/component.html.erb +1 -1
  19. data/app/components/lookbook/viewport/component.rb +1 -1
  20. data/app/controllers/concerns/lookbook/targetable_concern.rb +2 -2
  21. data/app/helpers/lookbook/application_helper.rb +1 -1
  22. data/app/views/lookbook/inspector/panels/_notes.html.erb +2 -2
  23. data/app/views/lookbook/inspector/panels/_params.html.erb +1 -1
  24. data/config/app.yml +3 -0
  25. data/lib/lookbook/page.rb +1 -1
  26. data/lib/lookbook/services/code/code_beautifier.rb +1 -1
  27. data/lib/lookbook/services/code/code_highlighter.rb +1 -1
  28. data/lib/lookbook/stores/config_store.rb +5 -1
  29. data/lib/lookbook/stores/panel_store.rb +2 -2
  30. data/lib/lookbook/support/store.rb +1 -1
  31. data/lib/lookbook/tags/position_tag.rb +1 -1
  32. data/lib/lookbook/theme.rb +8 -0
  33. data/lib/lookbook/version.rb +1 -1
  34. data/public/lookbook-assets/css/lookbook.css +426 -315
  35. data/public/lookbook-assets/css/lookbook.css.map +1 -1
  36. data/public/lookbook-assets/css/themes/blue.css +3 -1
  37. data/public/lookbook-assets/css/themes/blue.css.map +1 -1
  38. data/public/lookbook-assets/css/themes/green.css +68 -0
  39. data/public/lookbook-assets/css/themes/green.css.map +1 -0
  40. data/public/lookbook-assets/css/themes/indigo.css +3 -1
  41. data/public/lookbook-assets/css/themes/indigo.css.map +1 -1
  42. data/public/lookbook-assets/css/themes/rose.css +68 -0
  43. data/public/lookbook-assets/css/themes/rose.css.map +1 -0
  44. data/public/lookbook-assets/css/themes/zinc.css +3 -1
  45. data/public/lookbook-assets/css/themes/zinc.css.map +1 -1
  46. data/public/lookbook-assets/js/embed.js +9 -0
  47. data/public/lookbook-assets/js/embed.js.map +1 -1
  48. data/public/lookbook-assets/js/lookbook.js +291 -569
  49. data/public/lookbook-assets/js/lookbook.js.map +1 -1
  50. metadata +9 -3
  51. data/app/components/lookbook/code/highlight_github_light.css +0 -217
@@ -5031,9 +5031,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5031
5031
  return getChildren(popper);
5032
5032
  }
5033
5033
  function getDelay(isShow) {
5034
- if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") {
5035
- return 0;
5036
- }
5034
+ if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") return 0;
5037
5035
  return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
5038
5036
  }
5039
5037
  function handleStyles() {
@@ -5041,13 +5039,9 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5041
5039
  popper.style.zIndex = "" + instance.props.zIndex;
5042
5040
  }
5043
5041
  function invokeHook(hook, args, shouldInvokePropsHook) {
5044
- if (shouldInvokePropsHook === void 0) {
5045
- shouldInvokePropsHook = true;
5046
- }
5042
+ if (shouldInvokePropsHook === void 0) shouldInvokePropsHook = true;
5047
5043
  pluginsHooks.forEach(function(pluginHooks) {
5048
- if (pluginHooks[hook]) {
5049
- pluginHooks[hook].apply(void 0, args);
5050
- }
5044
+ if (pluginHooks[hook]) pluginHooks[hook].apply(void 0, args);
5051
5045
  });
5052
5046
  if (shouldInvokePropsHook) {
5053
5047
  var _instance$props;
@@ -5056,37 +5050,26 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5056
5050
  }
5057
5051
  function handleAriaContentAttribute() {
5058
5052
  var aria = instance.props.aria;
5059
- if (!aria.content) {
5060
- return;
5061
- }
5053
+ if (!aria.content) return;
5062
5054
  var attr = "aria-" + aria.content;
5063
5055
  var id2 = popper.id;
5064
5056
  var nodes = normalizeToArray(instance.props.triggerTarget || reference);
5065
5057
  nodes.forEach(function(node) {
5066
5058
  var currentValue = node.getAttribute(attr);
5067
- if (instance.state.isVisible) {
5068
- node.setAttribute(attr, currentValue ? currentValue + " " + id2 : id2);
5069
- } else {
5059
+ if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id2 : id2);
5060
+ else {
5070
5061
  var nextValue = currentValue && currentValue.replace(id2, "").trim();
5071
- if (nextValue) {
5072
- node.setAttribute(attr, nextValue);
5073
- } else {
5074
- node.removeAttribute(attr);
5075
- }
5062
+ if (nextValue) node.setAttribute(attr, nextValue);
5063
+ else node.removeAttribute(attr);
5076
5064
  }
5077
5065
  });
5078
5066
  }
5079
5067
  function handleAriaExpandedAttribute() {
5080
- if (hasAriaExpanded || !instance.props.aria.expanded) {
5081
- return;
5082
- }
5068
+ if (hasAriaExpanded || !instance.props.aria.expanded) return;
5083
5069
  var nodes = normalizeToArray(instance.props.triggerTarget || reference);
5084
5070
  nodes.forEach(function(node) {
5085
- if (instance.props.interactive) {
5086
- node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
5087
- } else {
5088
- node.removeAttribute("aria-expanded");
5089
- }
5071
+ if (instance.props.interactive) node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
5072
+ else node.removeAttribute("aria-expanded");
5090
5073
  });
5091
5074
  }
5092
5075
  function cleanupInteractiveMouseListeners() {
@@ -5097,26 +5080,16 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5097
5080
  }
5098
5081
  function onDocumentPress(event) {
5099
5082
  if (currentInput.isTouch) {
5100
- if (didTouchMove || event.type === "mousedown") {
5101
- return;
5102
- }
5103
- }
5104
- if (instance.props.interactive && popper.contains(event.target)) {
5105
- return;
5083
+ if (didTouchMove || event.type === "mousedown") return;
5106
5084
  }
5085
+ if (instance.props.interactive && popper.contains(event.target)) return;
5107
5086
  if (getCurrentTarget().contains(event.target)) {
5108
- if (currentInput.isTouch) {
5109
- return;
5110
- }
5111
- if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) {
5112
- return;
5113
- }
5114
- } else {
5115
- invokeHook("onClickOutside", [
5116
- instance,
5117
- event
5118
- ]);
5119
- }
5087
+ if (currentInput.isTouch) return;
5088
+ if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) return;
5089
+ } else invokeHook("onClickOutside", [
5090
+ instance,
5091
+ event
5092
+ ]);
5120
5093
  if (instance.props.hideOnClick === true) {
5121
5094
  instance.clearDelayTimeouts();
5122
5095
  instance.hide();
@@ -5124,9 +5097,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5124
5097
  setTimeout(function() {
5125
5098
  didHideDueToDocumentMouseDown = false;
5126
5099
  });
5127
- if (!instance.state.isMounted) {
5128
- removeDocumentPress();
5129
- }
5100
+ if (!instance.state.isMounted) removeDocumentPress();
5130
5101
  }
5131
5102
  }
5132
5103
  function onTouchMove() {
@@ -5151,9 +5122,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5151
5122
  }
5152
5123
  function onTransitionedOut(duration, callback) {
5153
5124
  onTransitionEnd(duration, function() {
5154
- if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
5155
- callback();
5156
- }
5125
+ if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) callback();
5157
5126
  });
5158
5127
  }
5159
5128
  function onTransitionedIn(duration, callback) {
@@ -5167,17 +5136,13 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5167
5136
  callback();
5168
5137
  }
5169
5138
  }
5170
- if (duration === 0) {
5171
- return callback();
5172
- }
5139
+ if (duration === 0) return callback();
5173
5140
  updateTransitionEndListener(box, "remove", currentTransitionEndListener);
5174
5141
  updateTransitionEndListener(box, "add", listener);
5175
5142
  currentTransitionEndListener = listener;
5176
5143
  }
5177
5144
  function on(eventType, handler, options) {
5178
- if (options === void 0) {
5179
- options = false;
5180
- }
5145
+ if (options === void 0) options = false;
5181
5146
  var nodes = normalizeToArray(instance.props.triggerTarget || reference);
5182
5147
  nodes.forEach(function(node) {
5183
5148
  node.addEventListener(eventType, handler, options);
@@ -5199,9 +5164,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5199
5164
  });
5200
5165
  }
5201
5166
  splitBySpaces(instance.props.trigger).forEach(function(eventType) {
5202
- if (eventType === "manual") {
5203
- return;
5204
- }
5167
+ if (eventType === "manual") return;
5205
5168
  on(eventType, onTrigger);
5206
5169
  switch(eventType){
5207
5170
  case "mouseenter":
@@ -5226,47 +5189,32 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5226
5189
  function onTrigger(event) {
5227
5190
  var _lastTriggerEvent;
5228
5191
  var shouldScheduleClickHide = false;
5229
- if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
5230
- return;
5231
- }
5192
+ if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
5232
5193
  var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === "focus";
5233
5194
  lastTriggerEvent = event;
5234
5195
  currentTarget = event.currentTarget;
5235
5196
  handleAriaExpandedAttribute();
5236
- if (!instance.state.isVisible && isMouseEvent(event)) {
5237
- mouseMoveListeners.forEach(function(listener) {
5238
- return listener(event);
5239
- });
5240
- }
5241
- if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
5242
- shouldScheduleClickHide = true;
5243
- } else {
5244
- scheduleShow(event);
5245
- }
5246
- if (event.type === "click") {
5247
- isVisibleFromClick = !shouldScheduleClickHide;
5248
- }
5249
- if (shouldScheduleClickHide && !wasFocused) {
5250
- scheduleHide(event);
5251
- }
5197
+ if (!instance.state.isVisible && isMouseEvent(event)) mouseMoveListeners.forEach(function(listener) {
5198
+ return listener(event);
5199
+ });
5200
+ if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
5201
+ else scheduleShow(event);
5202
+ if (event.type === "click") isVisibleFromClick = !shouldScheduleClickHide;
5203
+ if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
5252
5204
  }
5253
5205
  function onMouseMove(event) {
5254
5206
  var target = event.target;
5255
5207
  var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
5256
- if (event.type === "mousemove" && isCursorOverReferenceOrPopper) {
5257
- return;
5258
- }
5208
+ if (event.type === "mousemove" && isCursorOverReferenceOrPopper) return;
5259
5209
  var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper2) {
5260
5210
  var _instance$popperInsta;
5261
5211
  var instance2 = popper2._tippy;
5262
5212
  var state2 = (_instance$popperInsta = instance2.popperInstance) == null ? void 0 : _instance$popperInsta.state;
5263
- if (state2) {
5264
- return {
5265
- popperRect: popper2.getBoundingClientRect(),
5266
- popperState: state2,
5267
- props: props
5268
- };
5269
- }
5213
+ if (state2) return {
5214
+ popperRect: popper2.getBoundingClientRect(),
5215
+ popperState: state2,
5216
+ props: props
5217
+ };
5270
5218
  return null;
5271
5219
  }).filter(Boolean);
5272
5220
  if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
@@ -5276,9 +5224,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5276
5224
  }
5277
5225
  function onMouseLeave(event) {
5278
5226
  var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf("click") >= 0 && isVisibleFromClick;
5279
- if (shouldBail) {
5280
- return;
5281
- }
5227
+ if (shouldBail) return;
5282
5228
  if (instance.props.interactive) {
5283
5229
  instance.hideWithInteractivity(event);
5284
5230
  return;
@@ -5286,12 +5232,8 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5286
5232
  scheduleHide(event);
5287
5233
  }
5288
5234
  function onBlurOrFocusOut(event) {
5289
- if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) {
5290
- return;
5291
- }
5292
- if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
5293
- return;
5294
- }
5235
+ if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) return;
5236
+ if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
5295
5237
  scheduleHide(event);
5296
5238
  }
5297
5239
  function isEventListenerStopped(event) {
@@ -5321,15 +5263,9 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5321
5263
  "reference-hidden",
5322
5264
  "escaped"
5323
5265
  ].forEach(function(attr) {
5324
- if (attr === "placement") {
5325
- box.setAttribute("data-placement", state2.placement);
5326
- } else {
5327
- if (state2.attributes.popper["data-popper-" + attr]) {
5328
- box.setAttribute("data-" + attr, "");
5329
- } else {
5330
- box.removeAttribute("data-" + attr);
5331
- }
5332
- }
5266
+ if (attr === "placement") box.setAttribute("data-placement", state2.placement);
5267
+ else if (state2.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr, "");
5268
+ else box.removeAttribute("data-" + attr);
5333
5269
  });
5334
5270
  state2.attributes.popper = {};
5335
5271
  }
@@ -5367,15 +5303,13 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5367
5303
  },
5368
5304
  tippyModifier
5369
5305
  ];
5370
- if (getIsDefaultRenderFn() && arrow) {
5371
- modifiers.push({
5372
- name: "arrow",
5373
- options: {
5374
- element: arrow,
5375
- padding: 3
5376
- }
5377
- });
5378
- }
5306
+ if (getIsDefaultRenderFn() && arrow) modifiers.push({
5307
+ name: "arrow",
5308
+ options: {
5309
+ element: arrow,
5310
+ padding: 3
5311
+ }
5312
+ });
5379
5313
  modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
5380
5314
  instance.popperInstance = core.createPopper(computedReference, popper, Object.assign({}, popperOptions, {
5381
5315
  placement: placement,
@@ -5393,58 +5327,44 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5393
5327
  var appendTo = instance.props.appendTo;
5394
5328
  var parentNode;
5395
5329
  var node = getCurrentTarget();
5396
- if (instance.props.interactive && appendTo === defaultProps.appendTo || appendTo === "parent") {
5397
- parentNode = node.parentNode;
5398
- } else {
5399
- parentNode = invokeWithArgsOrReturn(appendTo, [
5400
- node
5401
- ]);
5402
- }
5403
- if (!parentNode.contains(popper)) {
5404
- parentNode.appendChild(popper);
5405
- }
5330
+ if (instance.props.interactive && appendTo === defaultProps.appendTo || appendTo === "parent") parentNode = node.parentNode;
5331
+ else parentNode = invokeWithArgsOrReturn(appendTo, [
5332
+ node
5333
+ ]);
5334
+ if (!parentNode.contains(popper)) parentNode.appendChild(popper);
5406
5335
  createPopperInstance();
5407
- if (true) {
5408
- warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, [
5409
- "Interactive tippy element may not be accessible via keyboard",
5410
- "navigation because it is not directly after the reference element",
5411
- "in the DOM source order.",
5412
- "\n\n",
5413
- "Using a wrapper <div> or <span> tag around the reference element",
5414
- "solves this by creating a new parentNode context.",
5415
- "\n\n",
5416
- "Specifying `appendTo: document.body` silences this warning, but it",
5417
- "assumes you are using a focus management solution to handle",
5418
- "keyboard navigation.",
5419
- "\n\n",
5420
- "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"
5421
- ].join(" "));
5422
- }
5336
+ warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, [
5337
+ "Interactive tippy element may not be accessible via keyboard",
5338
+ "navigation because it is not directly after the reference element",
5339
+ "in the DOM source order.",
5340
+ "\n\n",
5341
+ "Using a wrapper <div> or <span> tag around the reference element",
5342
+ "solves this by creating a new parentNode context.",
5343
+ "\n\n",
5344
+ "Specifying `appendTo: document.body` silences this warning, but it",
5345
+ "assumes you are using a focus management solution to handle",
5346
+ "keyboard navigation.",
5347
+ "\n\n",
5348
+ "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"
5349
+ ].join(" "));
5423
5350
  }
5424
5351
  function getNestedPopperTree() {
5425
5352
  return arrayFrom(popper.querySelectorAll("[data-tippy-root]"));
5426
5353
  }
5427
5354
  function scheduleShow(event) {
5428
5355
  instance.clearDelayTimeouts();
5429
- if (event) {
5430
- invokeHook("onTrigger", [
5431
- instance,
5432
- event
5433
- ]);
5434
- }
5356
+ if (event) invokeHook("onTrigger", [
5357
+ instance,
5358
+ event
5359
+ ]);
5435
5360
  addDocumentPress();
5436
5361
  var delay = getDelay(true);
5437
5362
  var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
5438
- if (currentInput.isTouch && touchValue === "hold" && touchDelay) {
5439
- delay = touchDelay;
5440
- }
5441
- if (delay) {
5442
- showTimeout = setTimeout(function() {
5443
- instance.show();
5444
- }, delay);
5445
- } else {
5363
+ if (currentInput.isTouch && touchValue === "hold" && touchDelay) delay = touchDelay;
5364
+ if (delay) showTimeout = setTimeout(function() {
5446
5365
  instance.show();
5447
- }
5366
+ }, delay);
5367
+ else instance.show();
5448
5368
  }
5449
5369
  function scheduleHide(event) {
5450
5370
  instance.clearDelayTimeouts();
@@ -5459,21 +5379,14 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5459
5379
  if (instance.props.trigger.indexOf("mouseenter") >= 0 && instance.props.trigger.indexOf("click") >= 0 && [
5460
5380
  "mouseleave",
5461
5381
  "mousemove"
5462
- ].indexOf(event.type) >= 0 && isVisibleFromClick) {
5463
- return;
5464
- }
5382
+ ].indexOf(event.type) >= 0 && isVisibleFromClick) return;
5465
5383
  var delay = getDelay(false);
5466
- if (delay) {
5467
- hideTimeout = setTimeout(function() {
5468
- if (instance.state.isVisible) {
5469
- instance.hide();
5470
- }
5471
- }, delay);
5472
- } else {
5473
- scheduleHideAnimationFrame = requestAnimationFrame(function() {
5474
- instance.hide();
5475
- });
5476
- }
5384
+ if (delay) hideTimeout = setTimeout(function() {
5385
+ if (instance.state.isVisible) instance.hide();
5386
+ }, delay);
5387
+ else scheduleHideAnimationFrame = requestAnimationFrame(function() {
5388
+ instance.hide();
5389
+ });
5477
5390
  }
5478
5391
  function enable() {
5479
5392
  instance.state.isEnabled = true;
@@ -5488,12 +5401,8 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5488
5401
  cancelAnimationFrame(scheduleHideAnimationFrame);
5489
5402
  }
5490
5403
  function setProps(partialProps) {
5491
- if (true) {
5492
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
5493
- }
5494
- if (instance.state.isDestroyed) {
5495
- return;
5496
- }
5404
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
5405
+ if (instance.state.isDestroyed) return;
5497
5406
  invokeHook("onBeforeUpdate", [
5498
5407
  instance,
5499
5408
  partialProps
@@ -5509,18 +5418,13 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5509
5418
  cleanupInteractiveMouseListeners();
5510
5419
  debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
5511
5420
  }
5512
- if (prevProps.triggerTarget && !nextProps.triggerTarget) {
5513
- normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
5514
- node.removeAttribute("aria-expanded");
5515
- });
5516
- } else if (nextProps.triggerTarget) {
5517
- reference.removeAttribute("aria-expanded");
5518
- }
5421
+ if (prevProps.triggerTarget && !nextProps.triggerTarget) normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
5422
+ node.removeAttribute("aria-expanded");
5423
+ });
5424
+ else if (nextProps.triggerTarget) reference.removeAttribute("aria-expanded");
5519
5425
  handleAriaExpandedAttribute();
5520
5426
  handleStyles();
5521
- if (onUpdate) {
5522
- onUpdate(prevProps, nextProps);
5523
- }
5427
+ if (onUpdate) onUpdate(prevProps, nextProps);
5524
5428
  if (instance.popperInstance) {
5525
5429
  createPopperInstance();
5526
5430
  getNestedPopperTree().forEach(function(nestedPopper) {
@@ -5538,35 +5442,23 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5538
5442
  });
5539
5443
  }
5540
5444
  function show() {
5541
- if (true) {
5542
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
5543
- }
5445
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
5544
5446
  var isAlreadyVisible = instance.state.isVisible;
5545
5447
  var isDestroyed = instance.state.isDestroyed;
5546
5448
  var isDisabled = !instance.state.isEnabled;
5547
5449
  var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
5548
5450
  var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
5549
- if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
5550
- return;
5551
- }
5552
- if (getCurrentTarget().hasAttribute("disabled")) {
5553
- return;
5554
- }
5451
+ if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) return;
5452
+ if (getCurrentTarget().hasAttribute("disabled")) return;
5555
5453
  invokeHook("onShow", [
5556
5454
  instance
5557
5455
  ], false);
5558
- if (instance.props.onShow(instance) === false) {
5559
- return;
5560
- }
5456
+ if (instance.props.onShow(instance) === false) return;
5561
5457
  instance.state.isVisible = true;
5562
- if (getIsDefaultRenderFn()) {
5563
- popper.style.visibility = "visible";
5564
- }
5458
+ if (getIsDefaultRenderFn()) popper.style.visibility = "visible";
5565
5459
  handleStyles();
5566
5460
  addDocumentPress();
5567
- if (!instance.state.isMounted) {
5568
- popper.style.transition = "none";
5569
- }
5461
+ if (!instance.state.isMounted) popper.style.transition = "none";
5570
5462
  if (getIsDefaultRenderFn()) {
5571
5463
  var _getDefaultTemplateCh2 = getDefaultTemplateChildren(), box = _getDefaultTemplateCh2.box, content = _getDefaultTemplateCh2.content;
5572
5464
  setTransitionDuration([
@@ -5576,11 +5468,9 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5576
5468
  }
5577
5469
  onFirstUpdate = function onFirstUpdate2() {
5578
5470
  var _instance$popperInsta2;
5579
- if (!instance.state.isVisible || ignoreOnFirstUpdate) {
5580
- return;
5581
- }
5471
+ if (!instance.state.isVisible || ignoreOnFirstUpdate) return;
5582
5472
  ignoreOnFirstUpdate = true;
5583
- void popper.offsetHeight;
5473
+ popper.offsetHeight;
5584
5474
  popper.style.transition = instance.props.moveTransition;
5585
5475
  if (getIsDefaultRenderFn() && instance.props.animation) {
5586
5476
  var _getDefaultTemplateCh3 = getDefaultTemplateChildren(), _box = _getDefaultTemplateCh3.box, _content = _getDefaultTemplateCh3.content;
@@ -5596,46 +5486,36 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5596
5486
  handleAriaContentAttribute();
5597
5487
  handleAriaExpandedAttribute();
5598
5488
  pushIfUnique(mountedInstances, instance);
5599
- (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
5489
+ (_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
5600
5490
  instance.state.isMounted = true;
5601
5491
  invokeHook("onMount", [
5602
5492
  instance
5603
5493
  ]);
5604
- if (instance.props.animation && getIsDefaultRenderFn()) {
5605
- onTransitionedIn(duration, function() {
5606
- instance.state.isShown = true;
5607
- invokeHook("onShown", [
5608
- instance
5609
- ]);
5610
- });
5611
- }
5494
+ if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
5495
+ instance.state.isShown = true;
5496
+ invokeHook("onShown", [
5497
+ instance
5498
+ ]);
5499
+ });
5612
5500
  };
5613
5501
  mount();
5614
5502
  }
5615
5503
  function hide() {
5616
- if (true) {
5617
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
5618
- }
5504
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
5619
5505
  var isAlreadyHidden = !instance.state.isVisible;
5620
5506
  var isDestroyed = instance.state.isDestroyed;
5621
5507
  var isDisabled = !instance.state.isEnabled;
5622
5508
  var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
5623
- if (isAlreadyHidden || isDestroyed || isDisabled) {
5624
- return;
5625
- }
5509
+ if (isAlreadyHidden || isDestroyed || isDisabled) return;
5626
5510
  invokeHook("onHide", [
5627
5511
  instance
5628
5512
  ], false);
5629
- if (instance.props.onHide(instance) === false) {
5630
- return;
5631
- }
5513
+ if (instance.props.onHide(instance) === false) return;
5632
5514
  instance.state.isVisible = false;
5633
5515
  instance.state.isShown = false;
5634
5516
  ignoreOnFirstUpdate = false;
5635
5517
  isVisibleFromClick = false;
5636
- if (getIsDefaultRenderFn()) {
5637
- popper.style.visibility = "hidden";
5638
- }
5518
+ if (getIsDefaultRenderFn()) popper.style.visibility = "hidden";
5639
5519
  cleanupInteractiveMouseListeners();
5640
5520
  removeDocumentPress();
5641
5521
  handleStyles();
@@ -5655,38 +5535,24 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5655
5535
  handleAriaContentAttribute();
5656
5536
  handleAriaExpandedAttribute();
5657
5537
  if (instance.props.animation) {
5658
- if (getIsDefaultRenderFn()) {
5659
- onTransitionedOut(duration, instance.unmount);
5660
- }
5661
- } else {
5662
- instance.unmount();
5663
- }
5538
+ if (getIsDefaultRenderFn()) onTransitionedOut(duration, instance.unmount);
5539
+ } else instance.unmount();
5664
5540
  }
5665
5541
  function hideWithInteractivity(event) {
5666
- if (true) {
5667
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
5668
- }
5542
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
5669
5543
  getDocument().addEventListener("mousemove", debouncedOnMouseMove);
5670
5544
  pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
5671
5545
  debouncedOnMouseMove(event);
5672
5546
  }
5673
5547
  function unmount() {
5674
- if (true) {
5675
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
5676
- }
5677
- if (instance.state.isVisible) {
5678
- instance.hide();
5679
- }
5680
- if (!instance.state.isMounted) {
5681
- return;
5682
- }
5548
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
5549
+ if (instance.state.isVisible) instance.hide();
5550
+ if (!instance.state.isMounted) return;
5683
5551
  destroyPopperInstance();
5684
5552
  getNestedPopperTree().forEach(function(nestedPopper) {
5685
5553
  nestedPopper._tippy.unmount();
5686
5554
  });
5687
- if (popper.parentNode) {
5688
- popper.parentNode.removeChild(popper);
5689
- }
5555
+ if (popper.parentNode) popper.parentNode.removeChild(popper);
5690
5556
  mountedInstances = mountedInstances.filter(function(i) {
5691
5557
  return i !== instance;
5692
5558
  });
@@ -5696,12 +5562,8 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
5696
5562
  ]);
5697
5563
  }
5698
5564
  function destroy() {
5699
- if (true) {
5700
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
5701
- }
5702
- if (instance.state.isDestroyed) {
5703
- return;
5704
- }
5565
+ warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
5566
+ if (instance.state.isDestroyed) return;
5705
5567
  instance.clearDelayTimeouts();
5706
5568
  instance.unmount();
5707
5569
  removeListeners();
@@ -6930,11 +6792,11 @@ function $aabd7bdddb195dac$export$2e2bcd8739ae039(Alpine, { prefix: prefix }) {
6930
6792
  opts: {
6931
6793
  minVerticalSizes: [
6932
6794
  $aabd7bdddb195dac$var$inspector.drawer.minWidth,
6933
- $aabd7bdddb195dac$var$inspector.drawer.minWidth,
6795
+ $aabd7bdddb195dac$var$inspector.drawer.minWidth
6934
6796
  ],
6935
6797
  minHorizontalSizes: [
6936
6798
  $aabd7bdddb195dac$var$inspector.drawer.minHeight,
6937
- $aabd7bdddb195dac$var$inspector.drawer.minHeight,
6799
+ $aabd7bdddb195dac$var$inspector.drawer.minHeight
6938
6800
  ]
6939
6801
  }
6940
6802
  },
@@ -7843,13 +7705,17 @@ function $5439cede634b2921$var$toCamel(s) {
7843
7705
  }
7844
7706
 
7845
7707
 
7846
- var $1f889267678ff167$exports = {};
7708
+ var $6bbdc544786e8093$exports = {};
7847
7709
  var $cbd28b10fa9798c7$exports = {};
7848
7710
 
7849
7711
  $parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
7850
7712
 
7851
7713
  $parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$export$2e2bcd8739ae039);
7852
- function $59d97a6bab2b727e$export$2e2bcd8739ae039(element) {
7714
+ /**!
7715
+ * tippy.js v6.3.7
7716
+ * (c) 2017-2021 atomiks
7717
+ * MIT License
7718
+ */ function $59d97a6bab2b727e$export$2e2bcd8739ae039(element) {
7853
7719
  return element ? (element.nodeName || "").toLowerCase() : null;
7854
7720
  }
7855
7721
 
@@ -7945,7 +7811,6 @@ var $dfb41fce0bddd2d8$export$2e2bcd8739ae039 = {
7945
7811
  };
7946
7812
 
7947
7813
 
7948
-
7949
7814
  var $a435872b5ba665df$export$8960430cfd85939f = Math.max;
7950
7815
  var $a435872b5ba665df$export$96ec731ed4dcb222 = Math.min;
7951
7816
  var $a435872b5ba665df$export$2077e0241d6afd3c = Math.round;
@@ -8082,7 +7947,8 @@ function $a195ad21b1cffe79$export$2e2bcd8739ae039(elementOrVirtualElement, offse
8082
7947
  y: 0
8083
7948
  };
8084
7949
  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
8085
- if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== "body" || (0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $40149fb4267f270e$export$2e2bcd8739ae039)(offsetParent);
7950
+ if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
7951
+ (0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $40149fb4267f270e$export$2e2bcd8739ae039)(offsetParent);
8086
7952
  if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(offsetParent)) {
8087
7953
  offsets = (0, $b854957821c00430$export$2e2bcd8739ae039)(offsetParent, true);
8088
7954
  offsets.x += offsetParent.clientLeft;
@@ -8122,7 +7988,9 @@ function $b1adb38089003474$export$2e2bcd8739ae039(element) {
8122
7988
  if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) === "html") return element;
8123
7989
  return(// $FlowFixMe[incompatible-return]
8124
7990
  // $FlowFixMe[prop-missing]
8125
- element.assignedSlot || element.parentNode || ((0, $1fa2a5446b18c455$export$af51f0f06c0f328a)(element) ? element.host : null) || // $FlowFixMe[incompatible-call]: HTMLElement is a Node
7991
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
7992
+ element.parentNode || ((0, $1fa2a5446b18c455$export$af51f0f06c0f328a)(element) ? element.host : null) || // ShadowRoot detected
7993
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
8126
7994
  (0, $3e02d6708e2a16ac$export$2e2bcd8739ae039)(element) // fallback
8127
7995
  );
8128
7996
  }
@@ -8177,7 +8045,8 @@ function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
8177
8045
 
8178
8046
 
8179
8047
  function $4acba801a6bfbaa3$var$getTrueOffsetParent(element) {
8180
- if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || (0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position === "fixed") return null;
8048
+ if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || // https://github.com/popperjs/popper-core/issues/837
8049
+ (0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position === "fixed") return null;
8181
8050
  return element.offsetParent;
8182
8051
  } // `.offsetParent` reports `null` for fixed elements, while absolute elements
8183
8052
  // return the containing block
@@ -9441,7 +9310,6 @@ var $d3ca9c4a635d8f8b$export$8f7491d57c8f97a9 = /*#__PURE__*/ (0, $8e357be334f3f
9441
9310
  }); // eslint-disable-next-line import/no-unused-modules
9442
9311
 
9443
9312
 
9444
-
9445
9313
  var $b013befce1f6217f$export$c96c811c44a42da5 = '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
9446
9314
  var $b013befce1f6217f$var$BOX_CLASS = "tippy-box";
9447
9315
  var $b013befce1f6217f$var$CONTENT_CLASS = "tippy-content";
@@ -10029,26 +9897,18 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10029
9897
  // For touch or keyboard input, force `0` delay for UX reasons
10030
9898
  // Also if the instance is mounted but not visible (transitioning out),
10031
9899
  // ignore delay
10032
- if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") {
10033
- return 0;
10034
- }
9900
+ if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") return 0;
10035
9901
  return $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, $b013befce1f6217f$var$defaultProps.delay);
10036
9902
  }
10037
9903
  function handleStyles(fromHide) {
10038
- if (fromHide === void 0) {
10039
- fromHide = false;
10040
- }
9904
+ if (fromHide === void 0) fromHide = false;
10041
9905
  popper.style.pointerEvents = instance.props.interactive && !fromHide ? "" : "none";
10042
9906
  popper.style.zIndex = "" + instance.props.zIndex;
10043
9907
  }
10044
9908
  function invokeHook(hook, args, shouldInvokePropsHook) {
10045
- if (shouldInvokePropsHook === void 0) {
10046
- shouldInvokePropsHook = true;
10047
- }
9909
+ if (shouldInvokePropsHook === void 0) shouldInvokePropsHook = true;
10048
9910
  pluginsHooks.forEach(function(pluginHooks) {
10049
- if (pluginHooks[hook]) {
10050
- pluginHooks[hook].apply(pluginHooks, args);
10051
- }
9911
+ if (pluginHooks[hook]) pluginHooks[hook].apply(pluginHooks, args);
10052
9912
  });
10053
9913
  if (shouldInvokePropsHook) {
10054
9914
  var _instance$props;
@@ -10057,37 +9917,26 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10057
9917
  }
10058
9918
  function handleAriaContentAttribute() {
10059
9919
  var aria = instance.props.aria;
10060
- if (!aria.content) {
10061
- return;
10062
- }
9920
+ if (!aria.content) return;
10063
9921
  var attr = "aria-" + aria.content;
10064
9922
  var id = popper.id;
10065
9923
  var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
10066
9924
  nodes.forEach(function(node) {
10067
9925
  var currentValue = node.getAttribute(attr);
10068
- if (instance.state.isVisible) {
10069
- node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
10070
- } else {
9926
+ if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
9927
+ else {
10071
9928
  var nextValue = currentValue && currentValue.replace(id, "").trim();
10072
- if (nextValue) {
10073
- node.setAttribute(attr, nextValue);
10074
- } else {
10075
- node.removeAttribute(attr);
10076
- }
9929
+ if (nextValue) node.setAttribute(attr, nextValue);
9930
+ else node.removeAttribute(attr);
10077
9931
  }
10078
9932
  });
10079
9933
  }
10080
9934
  function handleAriaExpandedAttribute() {
10081
- if (hasAriaExpanded || !instance.props.aria.expanded) {
10082
- return;
10083
- }
9935
+ if (hasAriaExpanded || !instance.props.aria.expanded) return;
10084
9936
  var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
10085
9937
  nodes.forEach(function(node) {
10086
- if (instance.props.interactive) {
10087
- node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
10088
- } else {
10089
- node.removeAttribute("aria-expanded");
10090
- }
9938
+ if (instance.props.interactive) node.setAttribute("aria-expanded", instance.state.isVisible && node === getCurrentTarget() ? "true" : "false");
9939
+ else node.removeAttribute("aria-expanded");
10091
9940
  });
10092
9941
  }
10093
9942
  function cleanupInteractiveMouseListeners() {
@@ -10099,29 +9948,20 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10099
9948
  function onDocumentPress(event) {
10100
9949
  // Moved finger to scroll instead of an intentional tap outside
10101
9950
  if ($b013befce1f6217f$var$currentInput.isTouch) {
10102
- if (didTouchMove || event.type === "mousedown") {
10103
- return;
10104
- }
9951
+ if (didTouchMove || event.type === "mousedown") return;
10105
9952
  }
10106
9953
  var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
10107
- if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget)) {
10108
- return;
10109
- } // Clicked on the event listeners target
9954
+ if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget)) return;
9955
+ // Clicked on the event listeners target
10110
9956
  if ($b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference).some(function(el) {
10111
9957
  return $b013befce1f6217f$var$actualContains(el, actualTarget);
10112
9958
  })) {
10113
- if ($b013befce1f6217f$var$currentInput.isTouch) {
10114
- return;
10115
- }
10116
- if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) {
10117
- return;
10118
- }
10119
- } else {
10120
- invokeHook("onClickOutside", [
10121
- instance,
10122
- event
10123
- ]);
10124
- }
9959
+ if ($b013befce1f6217f$var$currentInput.isTouch) return;
9960
+ if (instance.state.isVisible && instance.props.trigger.indexOf("click") >= 0) return;
9961
+ } else invokeHook("onClickOutside", [
9962
+ instance,
9963
+ event
9964
+ ]);
10125
9965
  if (instance.props.hideOnClick === true) {
10126
9966
  instance.clearDelayTimeouts();
10127
9967
  instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
@@ -10133,9 +9973,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10133
9973
  }); // The listener gets added in `scheduleShow()`, but this may be hiding it
10134
9974
  // before it shows, and hide()'s early bail-out behavior can prevent it
10135
9975
  // from being cleaned up
10136
- if (!instance.state.isMounted) {
10137
- removeDocumentPress();
10138
- }
9976
+ if (!instance.state.isMounted) removeDocumentPress();
10139
9977
  }
10140
9978
  }
10141
9979
  function onTouchMove() {
@@ -10160,9 +9998,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10160
9998
  }
10161
9999
  function onTransitionedOut(duration, callback) {
10162
10000
  onTransitionEnd(duration, function() {
10163
- if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
10164
- callback();
10165
- }
10001
+ if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) callback();
10166
10002
  });
10167
10003
  }
10168
10004
  function onTransitionedIn(duration, callback) {
@@ -10177,17 +10013,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10177
10013
  }
10178
10014
  } // Make callback synchronous if duration is 0
10179
10015
  // `transitionend` won't fire otherwise
10180
- if (duration === 0) {
10181
- return callback();
10182
- }
10016
+ if (duration === 0) return callback();
10183
10017
  $b013befce1f6217f$var$updateTransitionEndListener(box, "remove", currentTransitionEndListener);
10184
10018
  $b013befce1f6217f$var$updateTransitionEndListener(box, "add", listener);
10185
10019
  currentTransitionEndListener = listener;
10186
10020
  }
10187
10021
  function on(eventType, handler, options) {
10188
- if (options === void 0) {
10189
- options = false;
10190
- }
10022
+ if (options === void 0) options = false;
10191
10023
  var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
10192
10024
  nodes.forEach(function(node) {
10193
10025
  node.addEventListener(eventType, handler, options);
@@ -10209,9 +10041,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10209
10041
  });
10210
10042
  }
10211
10043
  $b013befce1f6217f$var$splitBySpaces(instance.props.trigger).forEach(function(eventType) {
10212
- if (eventType === "manual") {
10213
- return;
10214
- }
10044
+ if (eventType === "manual") return;
10215
10045
  on(eventType, onTrigger);
10216
10046
  switch(eventType){
10217
10047
  case "mouseenter":
@@ -10236,51 +10066,37 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10236
10066
  function onTrigger(event) {
10237
10067
  var _lastTriggerEvent;
10238
10068
  var shouldScheduleClickHide = false;
10239
- if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
10240
- return;
10241
- }
10069
+ if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
10242
10070
  var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === "focus";
10243
10071
  lastTriggerEvent = event;
10244
10072
  currentTarget = event.currentTarget;
10245
10073
  handleAriaExpandedAttribute();
10246
- if (!instance.state.isVisible && $b013befce1f6217f$var$isMouseEvent(event)) {
10247
- // If scrolling, `mouseenter` events can be fired if the cursor lands
10248
- // over a new target, but `mousemove` events don't get fired. This
10249
- // causes interactive tooltips to get stuck open until the cursor is
10250
- // moved
10251
- $b013befce1f6217f$var$mouseMoveListeners.forEach(function(listener) {
10252
- return listener(event);
10253
- });
10254
- } // Toggle show/hide when clicking click-triggered tooltips
10255
- if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
10256
- shouldScheduleClickHide = true;
10257
- } else {
10258
- scheduleShow(event);
10259
- }
10260
- if (event.type === "click") {
10261
- isVisibleFromClick = !shouldScheduleClickHide;
10262
- }
10263
- if (shouldScheduleClickHide && !wasFocused) {
10264
- scheduleHide(event);
10265
- }
10074
+ if (!instance.state.isVisible && $b013befce1f6217f$var$isMouseEvent(event)) // If scrolling, `mouseenter` events can be fired if the cursor lands
10075
+ // over a new target, but `mousemove` events don't get fired. This
10076
+ // causes interactive tooltips to get stuck open until the cursor is
10077
+ // moved
10078
+ $b013befce1f6217f$var$mouseMoveListeners.forEach(function(listener) {
10079
+ return listener(event);
10080
+ });
10081
+ // Toggle show/hide when clicking click-triggered tooltips
10082
+ if (event.type === "click" && (instance.props.trigger.indexOf("mouseenter") < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
10083
+ else scheduleShow(event);
10084
+ if (event.type === "click") isVisibleFromClick = !shouldScheduleClickHide;
10085
+ if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
10266
10086
  }
10267
10087
  function onMouseMove(event) {
10268
10088
  var target = event.target;
10269
10089
  var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
10270
- if (event.type === "mousemove" && isCursorOverReferenceOrPopper) {
10271
- return;
10272
- }
10090
+ if (event.type === "mousemove" && isCursorOverReferenceOrPopper) return;
10273
10091
  var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper) {
10274
10092
  var _instance$popperInsta;
10275
10093
  var instance = popper._tippy;
10276
10094
  var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
10277
- if (state) {
10278
- return {
10279
- popperRect: popper.getBoundingClientRect(),
10280
- popperState: state,
10281
- props: props
10282
- };
10283
- }
10095
+ if (state) return {
10096
+ popperRect: popper.getBoundingClientRect(),
10097
+ popperState: state,
10098
+ props: props
10099
+ };
10284
10100
  return null;
10285
10101
  }).filter(Boolean);
10286
10102
  if ($b013befce1f6217f$var$isCursorOutsideInteractiveBorder(popperTreeData, event)) {
@@ -10290,9 +10106,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10290
10106
  }
10291
10107
  function onMouseLeave(event) {
10292
10108
  var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf("click") >= 0 && isVisibleFromClick;
10293
- if (shouldBail) {
10294
- return;
10295
- }
10109
+ if (shouldBail) return;
10296
10110
  if (instance.props.interactive) {
10297
10111
  instance.hideWithInteractivity(event);
10298
10112
  return;
@@ -10300,12 +10114,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10300
10114
  scheduleHide(event);
10301
10115
  }
10302
10116
  function onBlurOrFocusOut(event) {
10303
- if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) {
10304
- return;
10305
- } // If focus was moved to within the popper
10306
- if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
10307
- return;
10308
- }
10117
+ if (instance.props.trigger.indexOf("focusin") < 0 && event.target !== getCurrentTarget()) return;
10118
+ // If focus was moved to within the popper
10119
+ if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
10309
10120
  scheduleHide(event);
10310
10121
  }
10311
10122
  function isEventListenerStopped(event) {
@@ -10335,15 +10146,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10335
10146
  "reference-hidden",
10336
10147
  "escaped"
10337
10148
  ].forEach(function(attr) {
10338
- if (attr === "placement") {
10339
- box.setAttribute("data-placement", state.placement);
10340
- } else {
10341
- if (state.attributes.popper["data-popper-" + attr]) {
10342
- box.setAttribute("data-" + attr, "");
10343
- } else {
10344
- box.removeAttribute("data-" + attr);
10345
- }
10346
- }
10149
+ if (attr === "placement") box.setAttribute("data-placement", state.placement);
10150
+ else if (state.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr, "");
10151
+ else box.removeAttribute("data-" + attr);
10347
10152
  });
10348
10153
  state.attributes.popper = {};
10349
10154
  }
@@ -10381,15 +10186,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10381
10186
  },
10382
10187
  tippyModifier
10383
10188
  ];
10384
- if (getIsDefaultRenderFn() && arrow) {
10385
- modifiers.push({
10386
- name: "arrow",
10387
- options: {
10388
- element: arrow,
10389
- padding: 3
10390
- }
10391
- });
10392
- }
10189
+ if (getIsDefaultRenderFn() && arrow) modifiers.push({
10190
+ name: "arrow",
10191
+ options: {
10192
+ element: arrow,
10193
+ padding: 3
10194
+ }
10195
+ });
10393
10196
  modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
10394
10197
  instance.popperInstance = (0, $d3ca9c4a635d8f8b$export$8f7491d57c8f97a9)(computedReference, popper, Object.assign({}, popperOptions, {
10395
10198
  placement: placement,
@@ -10411,61 +10214,33 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10411
10214
  // If there are clipping issues, the user can specify a different appendTo
10412
10215
  // and ensure focus management is handled correctly manually
10413
10216
  var node = getCurrentTarget();
10414
- if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo === "parent") {
10415
- parentNode = node.parentNode;
10416
- } else {
10417
- parentNode = $b013befce1f6217f$var$invokeWithArgsOrReturn(appendTo, [
10418
- node
10419
- ]);
10420
- } // The popper element needs to exist on the DOM before its position can be
10217
+ if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo === "parent") parentNode = node.parentNode;
10218
+ else parentNode = $b013befce1f6217f$var$invokeWithArgsOrReturn(appendTo, [
10219
+ node
10220
+ ]);
10221
+ // The popper element needs to exist on the DOM before its position can be
10421
10222
  // updated as Popper needs to read its dimensions
10422
- if (!parentNode.contains(popper)) {
10423
- parentNode.appendChild(popper);
10424
- }
10223
+ if (!parentNode.contains(popper)) parentNode.appendChild(popper);
10425
10224
  instance.state.isMounted = true;
10426
10225
  createPopperInstance();
10427
- /* istanbul ignore else */ if (false) {
10428
- // Accessibility check
10429
- $b013befce1f6217f$var$warnWhen(instance.props.interactive && appendTo === $b013befce1f6217f$var$defaultProps.appendTo && node.nextElementSibling !== popper, [
10430
- "Interactive tippy element may not be accessible via keyboard",
10431
- "navigation because it is not directly after the reference element",
10432
- "in the DOM source order.",
10433
- "\n\n",
10434
- "Using a wrapper <div> or <span> tag around the reference element",
10435
- "solves this by creating a new parentNode context.",
10436
- "\n\n",
10437
- "Specifying `appendTo: document.body` silences this warning, but it",
10438
- "assumes you are using a focus management solution to handle",
10439
- "keyboard navigation.",
10440
- "\n\n",
10441
- "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"
10442
- ].join(" "));
10443
- }
10444
10226
  }
10445
10227
  function getNestedPopperTree() {
10446
10228
  return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll("[data-tippy-root]"));
10447
10229
  }
10448
10230
  function scheduleShow(event) {
10449
10231
  instance.clearDelayTimeouts();
10450
- if (event) {
10451
- invokeHook("onTrigger", [
10452
- instance,
10453
- event
10454
- ]);
10455
- }
10232
+ if (event) invokeHook("onTrigger", [
10233
+ instance,
10234
+ event
10235
+ ]);
10456
10236
  addDocumentPress();
10457
10237
  var delay = getDelay(true);
10458
10238
  var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
10459
- if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === "hold" && touchDelay) {
10460
- delay = touchDelay;
10461
- }
10462
- if (delay) {
10463
- showTimeout = setTimeout(function() {
10464
- instance.show();
10465
- }, delay);
10466
- } else {
10239
+ if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === "hold" && touchDelay) delay = touchDelay;
10240
+ if (delay) showTimeout = setTimeout(function() {
10467
10241
  instance.show();
10468
- }
10242
+ }, delay);
10243
+ else instance.show();
10469
10244
  }
10470
10245
  function scheduleHide(event) {
10471
10246
  instance.clearDelayTimeouts();
@@ -10483,23 +10258,16 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10483
10258
  if (instance.props.trigger.indexOf("mouseenter") >= 0 && instance.props.trigger.indexOf("click") >= 0 && [
10484
10259
  "mouseleave",
10485
10260
  "mousemove"
10486
- ].indexOf(event.type) >= 0 && isVisibleFromClick) {
10487
- return;
10488
- }
10261
+ ].indexOf(event.type) >= 0 && isVisibleFromClick) return;
10489
10262
  var delay = getDelay(false);
10490
- if (delay) {
10491
- hideTimeout = setTimeout(function() {
10492
- if (instance.state.isVisible) {
10493
- instance.hide();
10494
- }
10495
- }, delay);
10496
- } else {
10497
- // Fixes a `transitionend` problem when it fires 1 frame too
10498
- // late sometimes, we don't want hide() to be called.
10499
- scheduleHideAnimationFrame = requestAnimationFrame(function() {
10500
- instance.hide();
10501
- });
10502
- }
10263
+ if (delay) hideTimeout = setTimeout(function() {
10264
+ if (instance.state.isVisible) instance.hide();
10265
+ }, delay);
10266
+ else // Fixes a `transitionend` problem when it fires 1 frame too
10267
+ // late sometimes, we don't want hide() to be called.
10268
+ scheduleHideAnimationFrame = requestAnimationFrame(function() {
10269
+ instance.hide();
10270
+ });
10503
10271
  } // ===========================================================================
10504
10272
  // 🔑 Public methods
10505
10273
  // ===========================================================================
@@ -10518,12 +10286,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10518
10286
  cancelAnimationFrame(scheduleHideAnimationFrame);
10519
10287
  }
10520
10288
  function setProps(partialProps) {
10521
- /* istanbul ignore else */ if (false) {
10522
- $b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("setProps"));
10523
- }
10524
- if (instance.state.isDestroyed) {
10525
- return;
10526
- }
10289
+ if (instance.state.isDestroyed) return;
10527
10290
  invokeHook("onBeforeUpdate", [
10528
10291
  instance,
10529
10292
  partialProps
@@ -10539,18 +10302,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10539
10302
  cleanupInteractiveMouseListeners();
10540
10303
  debouncedOnMouseMove = $b013befce1f6217f$var$debounce(onMouseMove, nextProps.interactiveDebounce);
10541
10304
  } // Ensure stale aria-expanded attributes are removed
10542
- if (prevProps.triggerTarget && !nextProps.triggerTarget) {
10543
- $b013befce1f6217f$var$normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
10544
- node.removeAttribute("aria-expanded");
10545
- });
10546
- } else if (nextProps.triggerTarget) {
10547
- reference.removeAttribute("aria-expanded");
10548
- }
10305
+ if (prevProps.triggerTarget && !nextProps.triggerTarget) $b013befce1f6217f$var$normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
10306
+ node.removeAttribute("aria-expanded");
10307
+ });
10308
+ else if (nextProps.triggerTarget) reference.removeAttribute("aria-expanded");
10549
10309
  handleAriaExpandedAttribute();
10550
10310
  handleStyles();
10551
- if (onUpdate) {
10552
- onUpdate(prevProps, nextProps);
10553
- }
10311
+ if (onUpdate) onUpdate(prevProps, nextProps);
10554
10312
  if (instance.popperInstance) {
10555
10313
  createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
10556
10314
  // and the nested ones get re-rendered first.
@@ -10573,37 +10331,26 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10573
10331
  });
10574
10332
  }
10575
10333
  function show() {
10576
- /* istanbul ignore else */ if (false) {
10577
- $b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("show"));
10578
- } // Early bail-out
10579
10334
  var isAlreadyVisible = instance.state.isVisible;
10580
10335
  var isDestroyed = instance.state.isDestroyed;
10581
10336
  var isDisabled = !instance.state.isEnabled;
10582
10337
  var isTouchAndTouchDisabled = $b013befce1f6217f$var$currentInput.isTouch && !instance.props.touch;
10583
10338
  var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 0, $b013befce1f6217f$var$defaultProps.duration);
10584
- if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
10585
- return;
10586
- } // Normalize `disabled` behavior across browsers.
10339
+ if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) return;
10340
+ // Normalize `disabled` behavior across browsers.
10587
10341
  // Firefox allows events on disabled elements, but Chrome doesn't.
10588
10342
  // Using a wrapper element (i.e. <span>) is recommended.
10589
- if (getCurrentTarget().hasAttribute("disabled")) {
10590
- return;
10591
- }
10343
+ if (getCurrentTarget().hasAttribute("disabled")) return;
10592
10344
  invokeHook("onShow", [
10593
10345
  instance
10594
10346
  ], false);
10595
- if (instance.props.onShow(instance) === false) {
10596
- return;
10597
- }
10347
+ if (instance.props.onShow(instance) === false) return;
10598
10348
  instance.state.isVisible = true;
10599
- if (getIsDefaultRenderFn()) {
10600
- popper.style.visibility = "visible";
10601
- }
10349
+ if (getIsDefaultRenderFn()) popper.style.visibility = "visible";
10602
10350
  handleStyles();
10603
10351
  addDocumentPress();
10604
- if (!instance.state.isMounted) {
10605
- popper.style.transition = "none";
10606
- } // If flipping to the opposite side after hiding at least once, the
10352
+ if (!instance.state.isMounted) popper.style.transition = "none";
10353
+ // If flipping to the opposite side after hiding at least once, the
10607
10354
  // animation will use the wrong placement without resetting the duration
10608
10355
  if (getIsDefaultRenderFn()) {
10609
10356
  var _getDefaultTemplateCh2 = getDefaultTemplateChildren(), box = _getDefaultTemplateCh2.box, content = _getDefaultTemplateCh2.content;
@@ -10614,11 +10361,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10614
10361
  }
10615
10362
  onFirstUpdate = function onFirstUpdate() {
10616
10363
  var _instance$popperInsta2;
10617
- if (!instance.state.isVisible || ignoreOnFirstUpdate) {
10618
- return;
10619
- }
10364
+ if (!instance.state.isVisible || ignoreOnFirstUpdate) return;
10620
10365
  ignoreOnFirstUpdate = true; // reflow
10621
- void popper.offsetHeight;
10366
+ popper.offsetHeight;
10622
10367
  popper.style.transition = instance.props.moveTransition;
10623
10368
  if (getIsDefaultRenderFn() && instance.props.animation) {
10624
10369
  var _getDefaultTemplateCh3 = getDefaultTemplateChildren(), _box = _getDefaultTemplateCh3.box, _content = _getDefaultTemplateCh3.content;
@@ -10635,45 +10380,34 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10635
10380
  handleAriaExpandedAttribute();
10636
10381
  $b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
10637
10382
  // popper has been positioned for the first time
10638
- (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
10383
+ (_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
10639
10384
  invokeHook("onMount", [
10640
10385
  instance
10641
10386
  ]);
10642
- if (instance.props.animation && getIsDefaultRenderFn()) {
10643
- onTransitionedIn(duration, function() {
10644
- instance.state.isShown = true;
10645
- invokeHook("onShown", [
10646
- instance
10647
- ]);
10648
- });
10649
- }
10387
+ if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
10388
+ instance.state.isShown = true;
10389
+ invokeHook("onShown", [
10390
+ instance
10391
+ ]);
10392
+ });
10650
10393
  };
10651
10394
  mount();
10652
10395
  }
10653
10396
  function hide() {
10654
- /* istanbul ignore else */ if (false) {
10655
- $b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("hide"));
10656
- } // Early bail-out
10657
10397
  var isAlreadyHidden = !instance.state.isVisible;
10658
10398
  var isDestroyed = instance.state.isDestroyed;
10659
10399
  var isDisabled = !instance.state.isEnabled;
10660
10400
  var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 1, $b013befce1f6217f$var$defaultProps.duration);
10661
- if (isAlreadyHidden || isDestroyed || isDisabled) {
10662
- return;
10663
- }
10401
+ if (isAlreadyHidden || isDestroyed || isDisabled) return;
10664
10402
  invokeHook("onHide", [
10665
10403
  instance
10666
10404
  ], false);
10667
- if (instance.props.onHide(instance) === false) {
10668
- return;
10669
- }
10405
+ if (instance.props.onHide(instance) === false) return;
10670
10406
  instance.state.isVisible = false;
10671
10407
  instance.state.isShown = false;
10672
10408
  ignoreOnFirstUpdate = false;
10673
10409
  isVisibleFromClick = false;
10674
- if (getIsDefaultRenderFn()) {
10675
- popper.style.visibility = "hidden";
10676
- }
10410
+ if (getIsDefaultRenderFn()) popper.style.visibility = "hidden";
10677
10411
  cleanupInteractiveMouseListeners();
10678
10412
  removeDocumentPress();
10679
10413
  handleStyles(true);
@@ -10693,40 +10427,24 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10693
10427
  handleAriaContentAttribute();
10694
10428
  handleAriaExpandedAttribute();
10695
10429
  if (instance.props.animation) {
10696
- if (getIsDefaultRenderFn()) {
10697
- onTransitionedOut(duration, instance.unmount);
10698
- }
10699
- } else {
10700
- instance.unmount();
10701
- }
10430
+ if (getIsDefaultRenderFn()) onTransitionedOut(duration, instance.unmount);
10431
+ } else instance.unmount();
10702
10432
  }
10703
10433
  function hideWithInteractivity(event) {
10704
- /* istanbul ignore else */ if (false) {
10705
- $b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("hideWithInteractivity"));
10706
- }
10707
10434
  getDocument().addEventListener("mousemove", debouncedOnMouseMove);
10708
10435
  $b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mouseMoveListeners, debouncedOnMouseMove);
10709
10436
  debouncedOnMouseMove(event);
10710
10437
  }
10711
10438
  function unmount() {
10712
- /* istanbul ignore else */ if (false) {
10713
- $b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("unmount"));
10714
- }
10715
- if (instance.state.isVisible) {
10716
- instance.hide();
10717
- }
10718
- if (!instance.state.isMounted) {
10719
- return;
10720
- }
10439
+ if (instance.state.isVisible) instance.hide();
10440
+ if (!instance.state.isMounted) return;
10721
10441
  destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
10722
10442
  // tree by default. This seems mainly for interactive tippies, but we should
10723
10443
  // find a workaround if possible
10724
10444
  getNestedPopperTree().forEach(function(nestedPopper) {
10725
10445
  nestedPopper._tippy.unmount();
10726
10446
  });
10727
- if (popper.parentNode) {
10728
- popper.parentNode.removeChild(popper);
10729
- }
10447
+ if (popper.parentNode) popper.parentNode.removeChild(popper);
10730
10448
  $b013befce1f6217f$var$mountedInstances = $b013befce1f6217f$var$mountedInstances.filter(function(i) {
10731
10449
  return i !== instance;
10732
10450
  });
@@ -10736,12 +10454,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
10736
10454
  ]);
10737
10455
  }
10738
10456
  function destroy() {
10739
- /* istanbul ignore else */ if (false) {
10740
- $b013befce1f6217f$var$warnWhen(instance.state.isDestroyed, $b013befce1f6217f$var$createMemoryLeakWarning("destroy"));
10741
- }
10742
- if (instance.state.isDestroyed) {
10743
- return;
10744
- }
10457
+ if (instance.state.isDestroyed) return;
10745
10458
  instance.clearDelayTimeouts();
10746
10459
  instance.unmount();
10747
10460
  removeListeners();
@@ -11515,16 +11228,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
11515
11228
  }
11516
11229
 
11517
11230
 
11518
- var $99486586f6691564$exports = {};
11519
-
11520
- $parcel$defineInteropFlag($99486586f6691564$exports);
11521
-
11522
- $parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
11523
- function $99486586f6691564$export$2e2bcd8739ae039() {
11524
- return {};
11525
- }
11526
-
11527
-
11528
11231
  var $47a1c62621be0c54$exports = {};
11529
11232
 
11530
11233
  $parcel$defineInteropFlag($47a1c62621be0c54$exports);
@@ -11614,12 +11317,46 @@ function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
11614
11317
  }
11615
11318
 
11616
11319
 
11320
+ var $e9904a14dabf652d$exports = {};
11321
+
11322
+ $parcel$defineInteropFlag($e9904a14dabf652d$exports);
11323
+
11324
+ $parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
11325
+ function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
11326
+ return {
11327
+ focussed: false,
11328
+ get active () {
11329
+ return store.active;
11330
+ },
11331
+ get text () {
11332
+ return store.text;
11333
+ },
11334
+ clear () {
11335
+ if (store.raw === "") this.$refs.input.blur();
11336
+ else store.raw = "";
11337
+ },
11338
+ focus () {
11339
+ this.$refs.input.focus();
11340
+ }
11341
+ };
11342
+ }
11343
+
11344
+
11617
11345
  var $e1f51f020443edd4$exports = {};
11618
11346
 
11619
11347
  $parcel$defineInteropFlag($e1f51f020443edd4$exports);
11620
11348
 
11621
11349
  $parcel$export($e1f51f020443edd4$exports, "default", () => $e1f51f020443edd4$export$2e2bcd8739ae039);
11622
11350
  var $ef5e88eaa61efd95$exports = {};
11351
+ /*
11352
+ * File: iframeResizer.js
11353
+ * Desc: Force iframes to size to content.
11354
+ * Requires: iframeResizer.contentWindow.js to be loaded into the target frame.
11355
+ * Doc: https://github.com/davidjbradshaw/iframe-resizer
11356
+ * Author: David J. Bradshaw - dave@bradshaw.net
11357
+ * Contributor: Jure Mav - jure.mav@gmail.com
11358
+ * Contributor: Reed Dadoune - reed@dadoune.com
11359
+ */ // eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names
11623
11360
  (function(undefined) {
11624
11361
  if (typeof window === "undefined") return; // don't run for server side render
11625
11362
  var count = 0, logEnabled = false, hiddenCheckEnabled = false, msgHeader = "message", msgHeaderLen = msgHeader.length, msgId = "[iFrameSizer]", msgIdLen = msgId.length, pagePosition = null, requestAnimationFrame = window.requestAnimationFrame, resetRequiredMethods = {
@@ -12479,28 +12216,13 @@ function $e1f51f020443edd4$export$2e2bcd8739ae039(id, embedStore) {
12479
12216
  }
12480
12217
 
12481
12218
 
12482
- var $e9904a14dabf652d$exports = {};
12219
+ var $99486586f6691564$exports = {};
12483
12220
 
12484
- $parcel$defineInteropFlag($e9904a14dabf652d$exports);
12221
+ $parcel$defineInteropFlag($99486586f6691564$exports);
12485
12222
 
12486
- $parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
12487
- function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
12488
- return {
12489
- focussed: false,
12490
- get active () {
12491
- return store.active;
12492
- },
12493
- get text () {
12494
- return store.text;
12495
- },
12496
- clear () {
12497
- if (store.raw === "") this.$refs.input.blur();
12498
- else store.raw = "";
12499
- },
12500
- focus () {
12501
- this.$refs.input.focus();
12502
- }
12503
- };
12223
+ $parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
12224
+ function $99486586f6691564$export$2e2bcd8739ae039() {
12225
+ return {};
12504
12226
  }
12505
12227
 
12506
12228
 
@@ -13356,13 +13078,13 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
13356
13078
  }
13357
13079
 
13358
13080
 
13359
- $1f889267678ff167$exports = {
13081
+ $6bbdc544786e8093$exports = {
13360
13082
  "button": $cbd28b10fa9798c7$exports,
13361
- "code": $99486586f6691564$exports,
13362
13083
  "copy_button": $47a1c62621be0c54$exports,
13363
13084
  "dimensions_display": $e398acaded942bbe$exports,
13364
- "embed": $e1f51f020443edd4$exports,
13365
13085
  "filter": $e9904a14dabf652d$exports,
13086
+ "embed": $e1f51f020443edd4$exports,
13087
+ "code": $99486586f6691564$exports,
13366
13088
  "icon": $36506012e0c6e9e3$exports,
13367
13089
  "nav": $d92d9d5253f84566$exports,
13368
13090
  "split_layout": $506dabb2bf255b38$exports,
@@ -13656,7 +13378,7 @@ const $d73574cc5e9b9e72$var$prefix = window.APP_NAME;
13656
13378
  // Components
13657
13379
  (0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $d709d0f4027033b2$export$2e2bcd8739ae039));
13658
13380
  [
13659
- $1f889267678ff167$exports,
13381
+ $6bbdc544786e8093$exports,
13660
13382
  $fe98e3f2bf49b28f$exports,
13661
13383
  $6c10158820e535ef$exports
13662
13384
  ].forEach((scripts)=>{