lookbook 2.3.6 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +31 -37
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/css/themes/blue.css +0 -1
- data/public/lookbook-assets/css/themes/green.css +0 -1
- data/public/lookbook-assets/css/themes/indigo.css +0 -1
- data/public/lookbook-assets/css/themes/rose.css +0 -1
- data/public/lookbook-assets/css/themes/zinc.css +0 -1
- data/public/lookbook-assets/js/iframe.js +193 -193
- data/public/lookbook-assets/js/index.js +821 -821
- data/public/lookbook-assets/js/index.js.map +1 -1
- data/public/lookbook-assets/js/lookbook-core.js +0 -37
- data/public/lookbook-assets/js/lookbook.js +252 -289
- metadata +2 -378
- data/assets/icons/activity-square.svg +0 -1
- data/assets/icons/ampersand.svg +0 -1
- data/assets/icons/ampersands.svg +0 -1
- data/assets/icons/antenna.svg +0 -1
- data/assets/icons/app-window.svg +0 -1
- data/assets/icons/archive-x.svg +0 -1
- data/assets/icons/area-chart.svg +0 -1
- data/assets/icons/arrow-big-down-dash.svg +0 -1
- data/assets/icons/arrow-big-left-dash.svg +0 -1
- data/assets/icons/arrow-big-right-dash.svg +0 -1
- data/assets/icons/arrow-big-up-dash.svg +0 -1
- data/assets/icons/arrow-down-0-1.svg +0 -1
- data/assets/icons/arrow-down-1-0.svg +0 -1
- data/assets/icons/arrow-down-a-z.svg +0 -1
- data/assets/icons/arrow-down-from-line.svg +0 -1
- data/assets/icons/arrow-down-left-from-circle.svg +0 -1
- data/assets/icons/arrow-down-left-square.svg +0 -1
- data/assets/icons/arrow-down-narrow-wide.svg +0 -1
- data/assets/icons/arrow-down-right-from-circle.svg +0 -1
- data/assets/icons/arrow-down-right-square.svg +0 -1
- data/assets/icons/arrow-down-square.svg +0 -1
- data/assets/icons/arrow-down-to-dot.svg +0 -1
- data/assets/icons/arrow-down-to-line.svg +0 -1
- data/assets/icons/arrow-down-up.svg +0 -1
- data/assets/icons/arrow-down-wide-narrow.svg +0 -1
- data/assets/icons/arrow-down-z-a.svg +0 -1
- data/assets/icons/arrow-left-from-line.svg +0 -1
- data/assets/icons/arrow-left-square.svg +0 -1
- data/assets/icons/arrow-left-to-line.svg +0 -1
- data/assets/icons/arrow-right-from-line.svg +0 -1
- data/assets/icons/arrow-right-left.svg +0 -1
- data/assets/icons/arrow-right-square.svg +0 -1
- data/assets/icons/arrow-right-to-line.svg +0 -1
- data/assets/icons/arrow-up-0-1.svg +0 -1
- data/assets/icons/arrow-up-1-0.svg +0 -1
- data/assets/icons/arrow-up-a-z.svg +0 -1
- data/assets/icons/arrow-up-from-dot.svg +0 -1
- data/assets/icons/arrow-up-from-line.svg +0 -1
- data/assets/icons/arrow-up-left-from-circle.svg +0 -1
- data/assets/icons/arrow-up-left-square.svg +0 -1
- data/assets/icons/arrow-up-narrow-wide.svg +0 -1
- data/assets/icons/arrow-up-right-from-circle.svg +0 -1
- data/assets/icons/arrow-up-right-square.svg +0 -1
- data/assets/icons/arrow-up-square.svg +0 -1
- data/assets/icons/arrow-up-to-line.svg +0 -1
- data/assets/icons/arrow-up-wide-narrow.svg +0 -1
- data/assets/icons/arrow-up-z-a.svg +0 -1
- data/assets/icons/arrows-up-from-line.svg +0 -1
- data/assets/icons/atom.svg +0 -1
- data/assets/icons/badge-alert.svg +0 -1
- data/assets/icons/badge-cent.svg +0 -1
- data/assets/icons/badge-check.svg +0 -1
- data/assets/icons/badge-dollar-sign.svg +0 -1
- data/assets/icons/badge-euro.svg +0 -1
- data/assets/icons/badge-help.svg +0 -1
- data/assets/icons/badge-indian-rupee.svg +0 -1
- data/assets/icons/badge-info.svg +0 -1
- data/assets/icons/badge-japanese-yen.svg +0 -1
- data/assets/icons/badge-minus.svg +0 -1
- data/assets/icons/badge-percent.svg +0 -1
- data/assets/icons/badge-plus.svg +0 -1
- data/assets/icons/badge-pound-sterling.svg +0 -1
- data/assets/icons/badge-russian-ruble.svg +0 -1
- data/assets/icons/badge-swiss-franc.svg +0 -1
- data/assets/icons/badge-x.svg +0 -1
- data/assets/icons/badge.svg +0 -1
- data/assets/icons/ban.svg +0 -1
- data/assets/icons/bar-chart-big.svg +0 -1
- data/assets/icons/bar-chart-horizontal-big.svg +0 -1
- data/assets/icons/bell-dot.svg +0 -1
- data/assets/icons/biohazard.svg +0 -1
- data/assets/icons/blocks.svg +0 -1
- data/assets/icons/book-copy.svg +0 -1
- data/assets/icons/book-down.svg +0 -1
- data/assets/icons/book-key.svg +0 -1
- data/assets/icons/book-lock.svg +0 -1
- data/assets/icons/book-marked.svg +0 -1
- data/assets/icons/book-minus.svg +0 -1
- data/assets/icons/book-plus.svg +0 -1
- data/assets/icons/book-template.svg +0 -1
- data/assets/icons/book-up-2.svg +0 -1
- data/assets/icons/book-up.svg +0 -1
- data/assets/icons/book-x.svg +0 -1
- data/assets/icons/bookmark-check.svg +0 -1
- data/assets/icons/bookmark-x.svg +0 -1
- data/assets/icons/boom-box.svg +0 -1
- data/assets/icons/braces.svg +0 -1
- data/assets/icons/brackets.svg +0 -1
- data/assets/icons/brain-circuit.svg +0 -1
- data/assets/icons/brain-cog.svg +0 -1
- data/assets/icons/brain.svg +0 -1
- data/assets/icons/bring-to-front.svg +0 -1
- data/assets/icons/bug-off.svg +0 -1
- data/assets/icons/bug-play.svg +0 -1
- data/assets/icons/bus-front.svg +0 -1
- data/assets/icons/cable-car.svg +0 -1
- data/assets/icons/cable.svg +0 -1
- data/assets/icons/cake-slice.svg +0 -1
- data/assets/icons/candlestick-chart.svg +0 -1
- data/assets/icons/candy-cane.svg +0 -1
- data/assets/icons/car-front.svg +0 -1
- data/assets/icons/car-taxi-front.svg +0 -1
- data/assets/icons/case-lower.svg +0 -1
- data/assets/icons/case-sensitive.svg +0 -1
- data/assets/icons/case-upper.svg +0 -1
- data/assets/icons/cassette-tape.svg +0 -1
- data/assets/icons/castle.svg +0 -1
- data/assets/icons/chevron-down-circle.svg +0 -1
- data/assets/icons/chevron-down-square.svg +0 -1
- data/assets/icons/chevron-left-circle.svg +0 -1
- data/assets/icons/chevron-left-square.svg +0 -1
- data/assets/icons/chevron-right-circle.svg +0 -1
- data/assets/icons/chevron-right-square.svg +0 -1
- data/assets/icons/chevron-up-circle.svg +0 -1
- data/assets/icons/chevron-up-square.svg +0 -1
- data/assets/icons/church.svg +0 -1
- data/assets/icons/circle-dashed.svg +0 -1
- data/assets/icons/circle-dollar-sign.svg +0 -1
- data/assets/icons/circle-dot-dashed.svg +0 -1
- data/assets/icons/circle-equal.svg +0 -1
- data/assets/icons/circle-off.svg +0 -1
- data/assets/icons/circle-slash-2.svg +0 -1
- data/assets/icons/circle-slash.svg +0 -1
- data/assets/icons/circuit-board.svg +0 -1
- data/assets/icons/clipboard-paste.svg +0 -1
- data/assets/icons/club.svg +0 -1
- data/assets/icons/combine.svg +0 -1
- data/assets/icons/computer.svg +0 -1
- data/assets/icons/contact-2.svg +0 -1
- data/assets/icons/container.svg +0 -1
- data/assets/icons/copy-check.svg +0 -1
- data/assets/icons/copy-minus.svg +0 -1
- data/assets/icons/copy-plus.svg +0 -1
- data/assets/icons/copy-slash.svg +0 -1
- data/assets/icons/copy-x.svg +0 -1
- data/assets/icons/database-zap.svg +0 -1
- data/assets/icons/dessert.svg +0 -1
- data/assets/icons/disc-2.svg +0 -1
- data/assets/icons/disc-3.svg +0 -1
- data/assets/icons/donut.svg +0 -1
- data/assets/icons/door-closed.svg +0 -1
- data/assets/icons/door-open.svg +0 -1
- data/assets/icons/dot.svg +0 -1
- data/assets/icons/drama.svg +0 -1
- data/assets/icons/ferris-wheel.svg +0 -1
- data/assets/icons/file-code-2.svg +0 -1
- data/assets/icons/file-stack.svg +0 -1
- data/assets/icons/fish-symbol.svg +0 -1
- data/assets/icons/fold-horizontal.svg +0 -1
- data/assets/icons/fold-vertical.svg +0 -1
- data/assets/icons/folder-dot.svg +0 -1
- data/assets/icons/folder-git-2.svg +0 -1
- data/assets/icons/folder-git.svg +0 -1
- data/assets/icons/folder-kanban.svg +0 -1
- data/assets/icons/folder-open-dot.svg +0 -1
- data/assets/icons/folder-root.svg +0 -1
- data/assets/icons/folder-sync.svg +0 -1
- data/assets/icons/gallery-horizontal-end.svg +0 -1
- data/assets/icons/gallery-horizontal.svg +0 -1
- data/assets/icons/gallery-thumbnails.svg +0 -1
- data/assets/icons/gallery-vertical-end.svg +0 -1
- data/assets/icons/gallery-vertical.svg +0 -1
- data/assets/icons/gantt-chart-square.svg +0 -1
- data/assets/icons/gantt-chart.svg +0 -1
- data/assets/icons/gauge-circle.svg +0 -1
- data/assets/icons/goal.svg +0 -1
- data/assets/icons/grid-2x2.svg +0 -1
- data/assets/icons/grid-3x3.svg +0 -1
- data/assets/icons/group.svg +0 -1
- data/assets/icons/hard-drive-download.svg +0 -1
- data/assets/icons/hard-drive-upload.svg +0 -1
- data/assets/icons/hdmi-port.svg +0 -1
- data/assets/icons/hotel.svg +0 -1
- data/assets/icons/iteration-ccw.svg +0 -1
- data/assets/icons/iteration-cw.svg +0 -1
- data/assets/icons/kanban-square-dashed.svg +0 -1
- data/assets/icons/kanban-square.svg +0 -1
- data/assets/icons/kanban.svg +0 -1
- data/assets/icons/key-round.svg +0 -1
- data/assets/icons/key-square.svg +0 -1
- data/assets/icons/layout-panel-left.svg +0 -1
- data/assets/icons/layout-panel-top.svg +0 -1
- data/assets/icons/leafy-green.svg +0 -1
- data/assets/icons/ligature.svg +0 -1
- data/assets/icons/list-filter.svg +0 -1
- data/assets/icons/list-restart.svg +0 -1
- data/assets/icons/list-todo.svg +0 -1
- data/assets/icons/list-tree.svg +0 -1
- data/assets/icons/lollipop.svg +0 -1
- data/assets/icons/m-square.svg +0 -1
- data/assets/icons/mailbox.svg +0 -1
- data/assets/icons/memory-stick.svg +0 -1
- data/assets/icons/menu-square.svg +0 -1
- data/assets/icons/merge.svg +0 -1
- data/assets/icons/message-square-dashed.svg +0 -1
- data/assets/icons/message-square-plus.svg +0 -1
- data/assets/icons/messages-square.svg +0 -1
- data/assets/icons/monitor-check.svg +0 -1
- data/assets/icons/monitor-dot.svg +0 -1
- data/assets/icons/monitor-down.svg +0 -1
- data/assets/icons/monitor-pause.svg +0 -1
- data/assets/icons/monitor-play.svg +0 -1
- data/assets/icons/monitor-stop.svg +0 -1
- data/assets/icons/monitor-up.svg +0 -1
- data/assets/icons/monitor-x.svg +0 -1
- data/assets/icons/moon-star.svg +0 -1
- data/assets/icons/mouse-pointer-square-dashed.svg +0 -1
- data/assets/icons/mouse-pointer-square.svg +0 -1
- data/assets/icons/move-down-left.svg +0 -1
- data/assets/icons/move-down-right.svg +0 -1
- data/assets/icons/move-down.svg +0 -1
- data/assets/icons/move-left.svg +0 -1
- data/assets/icons/move-right.svg +0 -1
- data/assets/icons/move-up-left.svg +0 -1
- data/assets/icons/move-up-right.svg +0 -1
- data/assets/icons/move-up.svg +0 -1
- data/assets/icons/orbit.svg +0 -1
- data/assets/icons/panel-bottom-close.svg +0 -1
- data/assets/icons/panel-bottom-inactive.svg +0 -1
- data/assets/icons/panel-bottom-open.svg +0 -1
- data/assets/icons/panel-bottom.svg +0 -1
- data/assets/icons/panel-left-close.svg +0 -1
- data/assets/icons/panel-left-inactive.svg +0 -1
- data/assets/icons/panel-left-open.svg +0 -1
- data/assets/icons/panel-left.svg +0 -1
- data/assets/icons/panel-right-close.svg +0 -1
- data/assets/icons/panel-right-inactive.svg +0 -1
- data/assets/icons/panel-right-open.svg +0 -1
- data/assets/icons/panel-right.svg +0 -1
- data/assets/icons/panel-top-close.svg +0 -1
- data/assets/icons/panel-top-inactive.svg +0 -1
- data/assets/icons/panel-top-open.svg +0 -1
- data/assets/icons/panel-top.svg +0 -1
- data/assets/icons/parentheses.svg +0 -1
- data/assets/icons/parking-circle-off.svg +0 -1
- data/assets/icons/parking-circle.svg +0 -1
- data/assets/icons/parking-meter.svg +0 -1
- data/assets/icons/parking-square-off.svg +0 -1
- data/assets/icons/parking-square.svg +0 -1
- data/assets/icons/paw-print.svg +0 -1
- data/assets/icons/pc-case.svg +0 -1
- data/assets/icons/pen-line.svg +0 -1
- data/assets/icons/pen-square.svg +0 -1
- data/assets/icons/pen.svg +0 -1
- data/assets/icons/pencil-line.svg +0 -1
- data/assets/icons/pencil-ruler.svg +0 -1
- data/assets/icons/percent-circle.svg +0 -1
- data/assets/icons/percent-diamond.svg +0 -1
- data/assets/icons/percent-square.svg +0 -1
- data/assets/icons/pi-square.svg +0 -1
- data/assets/icons/pi.svg +0 -1
- data/assets/icons/pilcrow-square.svg +0 -1
- data/assets/icons/plane-landing.svg +0 -1
- data/assets/icons/plane-takeoff.svg +0 -1
- data/assets/icons/play-square.svg +0 -1
- data/assets/icons/plug-zap-2.svg +0 -1
- data/assets/icons/pocket-knife.svg +0 -1
- data/assets/icons/popcorn.svg +0 -1
- data/assets/icons/popsicle.svg +0 -1
- data/assets/icons/presentation.svg +0 -1
- data/assets/icons/projector.svg +0 -1
- data/assets/icons/rabbit.svg +0 -1
- data/assets/icons/radar.svg +0 -1
- data/assets/icons/radiation.svg +0 -1
- data/assets/icons/radio-tower.svg +0 -1
- data/assets/icons/rail-symbol.svg +0 -1
- data/assets/icons/rainbow.svg +0 -1
- data/assets/icons/rat.svg +0 -1
- data/assets/icons/ratio.svg +0 -1
- data/assets/icons/receipt.svg +0 -1
- data/assets/icons/redo-dot.svg +0 -1
- data/assets/icons/refresh-ccw-dot.svg +0 -1
- data/assets/icons/refresh-cw-off.svg +0 -1
- data/assets/icons/repeat-2.svg +0 -1
- data/assets/icons/replace-all.svg +0 -1
- data/assets/icons/replace.svg +0 -1
- data/assets/icons/roller-coaster.svg +0 -1
- data/assets/icons/rows.svg +0 -1
- data/assets/icons/satellite-dish.svg +0 -1
- data/assets/icons/satellite.svg +0 -1
- data/assets/icons/save-all.svg +0 -1
- data/assets/icons/scatter-chart.svg +0 -1
- data/assets/icons/school-2.svg +0 -1
- data/assets/icons/school.svg +0 -1
- data/assets/icons/scissors-line-dashed.svg +0 -1
- data/assets/icons/scissors-square-dashed-bottom.svg +0 -1
- data/assets/icons/scissors-square.svg +0 -1
- data/assets/icons/scroll-text.svg +0 -1
- data/assets/icons/search-check.svg +0 -1
- data/assets/icons/search-code.svg +0 -1
- data/assets/icons/search-slash.svg +0 -1
- data/assets/icons/search-x.svg +0 -1
- data/assets/icons/send-horizontal.svg +0 -1
- data/assets/icons/send-to-back.svg +0 -1
- data/assets/icons/shapes.svg +0 -1
- data/assets/icons/shell.svg +0 -1
- data/assets/icons/shield-ban.svg +0 -1
- data/assets/icons/shield-ellipsis.svg +0 -1
- data/assets/icons/shield-half.svg +0 -1
- data/assets/icons/shield-minus.svg +0 -1
- data/assets/icons/shield-plus.svg +0 -1
- data/assets/icons/shield-question.svg +0 -1
- data/assets/icons/shield-x.svg +0 -1
- data/assets/icons/ship-wheel.svg +0 -1
- data/assets/icons/shopping-basket.svg +0 -1
- data/assets/icons/sigma-square.svg +0 -1
- data/assets/icons/snail.svg +0 -1
- data/assets/icons/space.svg +0 -1
- data/assets/icons/spade.svg +0 -1
- data/assets/icons/sparkle.svg +0 -1
- data/assets/icons/sparkles.svg +0 -1
- data/assets/icons/speech.svg +0 -1
- data/assets/icons/spell-check-2.svg +0 -1
- data/assets/icons/spell-check.svg +0 -1
- data/assets/icons/split.svg +0 -1
- data/assets/icons/spray-can.svg +0 -1
- data/assets/icons/square-asterisk.svg +0 -1
- data/assets/icons/square-code.svg +0 -1
- data/assets/icons/square-dashed-bottom-code.svg +0 -1
- data/assets/icons/square-dashed-bottom.svg +0 -1
- data/assets/icons/square-dot.svg +0 -1
- data/assets/icons/square-equal.svg +0 -1
- data/assets/icons/square-slash.svg +0 -1
- data/assets/icons/square-stack.svg +0 -1
- data/assets/icons/squirrel.svg +0 -1
- data/assets/icons/step-back.svg +0 -1
- data/assets/icons/step-forward.svg +0 -1
- data/assets/icons/store.svg +0 -1
- data/assets/icons/table-properties.svg +0 -1
- data/assets/icons/tablet-smartphone.svg +0 -1
- data/assets/icons/tally-1.svg +0 -1
- data/assets/icons/tally-2.svg +0 -1
- data/assets/icons/tally-3.svg +0 -1
- data/assets/icons/tally-4.svg +0 -1
- data/assets/icons/tally-5.svg +0 -1
- data/assets/icons/test-tube-2.svg +0 -1
- data/assets/icons/test-tube.svg +0 -1
- data/assets/icons/test-tubes.svg +0 -1
- data/assets/icons/text-quote.svg +0 -1
- data/assets/icons/text-select.svg +0 -1
- data/assets/icons/text.svg +0 -1
- data/assets/icons/theater.svg +0 -1
- data/assets/icons/touchpad-off.svg +0 -1
- data/assets/icons/touchpad.svg +0 -1
- data/assets/icons/tractor.svg +0 -1
- data/assets/icons/traffic-cone.svg +0 -1
- data/assets/icons/train-front-tunnel.svg +0 -1
- data/assets/icons/train-front.svg +0 -1
- data/assets/icons/train-track.svg +0 -1
- data/assets/icons/tram-front.svg +0 -1
- data/assets/icons/triangle-right.svg +0 -1
- data/assets/icons/turtle.svg +0 -1
- data/assets/icons/undo-dot.svg +0 -1
- data/assets/icons/unfold-horizontal.svg +0 -1
- data/assets/icons/unfold-vertical.svg +0 -1
- data/assets/icons/ungroup.svg +0 -1
- data/assets/icons/unplug.svg +0 -1
- data/assets/icons/user-2.svg +0 -1
- data/assets/icons/user-check-2.svg +0 -1
- data/assets/icons/user-circle-2.svg +0 -1
- data/assets/icons/user-circle.svg +0 -1
- data/assets/icons/user-cog-2.svg +0 -1
- data/assets/icons/user-minus-2.svg +0 -1
- data/assets/icons/user-plus-2.svg +0 -1
- data/assets/icons/user-square-2.svg +0 -1
- data/assets/icons/user-square.svg +0 -1
- data/assets/icons/user-x-2.svg +0 -1
- data/assets/icons/users-2.svg +0 -1
- data/assets/icons/variable.svg +0 -1
- data/assets/icons/videotape.svg +0 -1
- data/assets/icons/wallet-2.svg +0 -1
- data/assets/icons/wallet-cards.svg +0 -1
- data/assets/icons/wallpaper.svg +0 -1
- data/assets/icons/warehouse.svg +0 -1
- data/assets/icons/whole-word.svg +0 -1
- data/assets/icons/workflow.svg +0 -1
@@ -4930,7 +4930,7 @@ var $69a8ec8dbeef3157$var$require_tippy_cjs = $69a8ec8dbeef3157$var$__commonJS((
|
|
4930
4930
|
return value.replace(spacesAndTabs, " ").replace(lineStartWithSpaces, "").trim();
|
4931
4931
|
}
|
4932
4932
|
function getDevMessage(message) {
|
4933
|
-
return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\
|
4933
|
+
return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\u{1F477}\u200D This is a development-only message. It will be removed in production.\n ");
|
4934
4934
|
}
|
4935
4935
|
function getFormattedMessage(message) {
|
4936
4936
|
return [
|
@@ -6596,7 +6596,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6596
6596
|
* Licensed under the MIT license.
|
6597
6597
|
*/ (function(root, definition) {
|
6598
6598
|
"use strict";
|
6599
|
-
if (typeof define ===
|
6599
|
+
if (typeof define === 'function' && define.amd) define(definition);
|
6600
6600
|
else if (0, $5267f0d63de538ba$exports) $5267f0d63de538ba$exports = definition();
|
6601
6601
|
else root.log = definition();
|
6602
6602
|
})($5267f0d63de538ba$exports, function() {
|
@@ -6617,7 +6617,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6617
6617
|
// Cross-browser bind equivalent that works at least back to IE6
|
6618
6618
|
function bindMethod(obj, methodName) {
|
6619
6619
|
var method = obj[methodName];
|
6620
|
-
if (typeof method.bind ===
|
6620
|
+
if (typeof method.bind === 'function') return method.bind(obj);
|
6621
6621
|
else try {
|
6622
6622
|
return Function.prototype.bind.call(method, obj);
|
6623
6623
|
} catch (e) {
|
@@ -6645,11 +6645,11 @@ var $5267f0d63de538ba$exports = {};
|
|
6645
6645
|
// Build the best logging method possible for this env
|
6646
6646
|
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
6647
6647
|
function realMethod(methodName) {
|
6648
|
-
if (methodName ===
|
6648
|
+
if (methodName === 'debug') methodName = 'log';
|
6649
6649
|
if (typeof console === undefinedType) return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
6650
|
-
else if (methodName ===
|
6650
|
+
else if (methodName === 'trace' && isIE) return traceForIE;
|
6651
6651
|
else if (console[methodName] !== undefined) return bindMethod(console, methodName);
|
6652
|
-
else if (console.log !== undefined) return bindMethod(console,
|
6652
|
+
else if (console.log !== undefined) return bindMethod(console, 'log');
|
6653
6653
|
else return noop;
|
6654
6654
|
}
|
6655
6655
|
// These private functions always need `this` to be set properly
|
@@ -6705,7 +6705,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6705
6705
|
if (typeof name === "string") storageKey += ":" + name;
|
6706
6706
|
else if (typeof name === "symbol") storageKey = undefined;
|
6707
6707
|
function persistLevelIfPossible(levelNum) {
|
6708
|
-
var levelName = (logMethods[levelNum] ||
|
6708
|
+
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
6709
6709
|
if (typeof window === undefinedType || !storageKey) return;
|
6710
6710
|
// Use localStorage if available
|
6711
6711
|
try {
|
@@ -6823,18 +6823,18 @@ var $5267f0d63de538ba$exports = {};
|
|
6823
6823
|
return _loggersByName;
|
6824
6824
|
};
|
6825
6825
|
// ES6 default export, for compatibility
|
6826
|
-
defaultLogger[
|
6826
|
+
defaultLogger['default'] = defaultLogger;
|
6827
6827
|
return defaultLogger;
|
6828
6828
|
});
|
6829
6829
|
|
6830
6830
|
|
6831
6831
|
var $1ffebed09abdb92f$exports = {};
|
6832
6832
|
(function(root, factory) {
|
6833
|
-
if (typeof define ===
|
6833
|
+
if (typeof define === 'function' && define.amd) define(factory);
|
6834
6834
|
else if (0, $1ffebed09abdb92f$exports) $1ffebed09abdb92f$exports = factory();
|
6835
6835
|
else root.prefix = factory(root);
|
6836
6836
|
})($1ffebed09abdb92f$exports, function(root) {
|
6837
|
-
|
6837
|
+
'use strict';
|
6838
6838
|
var merge = function(target) {
|
6839
6839
|
var i = 1;
|
6840
6840
|
var length = arguments.length;
|
@@ -6845,37 +6845,37 @@ var $1ffebed09abdb92f$exports = {};
|
|
6845
6845
|
return target;
|
6846
6846
|
};
|
6847
6847
|
var defaults = {
|
6848
|
-
template:
|
6848
|
+
template: '[%t] %l:',
|
6849
6849
|
levelFormatter: function(level) {
|
6850
6850
|
return level.toUpperCase();
|
6851
6851
|
},
|
6852
6852
|
nameFormatter: function(name) {
|
6853
|
-
return name ||
|
6853
|
+
return name || 'root';
|
6854
6854
|
},
|
6855
6855
|
timestampFormatter: function(date) {
|
6856
|
-
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,
|
6856
|
+
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1');
|
6857
6857
|
},
|
6858
6858
|
format: undefined
|
6859
6859
|
};
|
6860
6860
|
var loglevel;
|
6861
6861
|
var configs = {};
|
6862
6862
|
var reg = function(rootLogger) {
|
6863
|
-
if (!rootLogger || !rootLogger.getLogger) throw new TypeError(
|
6863
|
+
if (!rootLogger || !rootLogger.getLogger) throw new TypeError('Argument is not a root logger');
|
6864
6864
|
loglevel = rootLogger;
|
6865
6865
|
};
|
6866
6866
|
var apply = function(logger, config) {
|
6867
|
-
if (!logger || !logger.setLevel) throw new TypeError(
|
6867
|
+
if (!logger || !logger.setLevel) throw new TypeError('Argument is not a logger');
|
6868
6868
|
/* eslint-disable vars-on-top */ var originalFactory = logger.methodFactory;
|
6869
|
-
var name = logger.name ||
|
6870
|
-
var parent = configs[name] || configs[
|
6869
|
+
var name = logger.name || '';
|
6870
|
+
var parent = configs[name] || configs[''] || defaults;
|
6871
6871
|
/* eslint-enable vars-on-top */ function methodFactory(methodName, logLevel, loggerName) {
|
6872
6872
|
var originalMethod = originalFactory(methodName, logLevel, loggerName);
|
6873
|
-
var options = configs[loggerName] || configs[
|
6874
|
-
var hasTimestamp = options.template.indexOf(
|
6875
|
-
var hasLevel = options.template.indexOf(
|
6876
|
-
var hasName = options.template.indexOf(
|
6873
|
+
var options = configs[loggerName] || configs[''];
|
6874
|
+
var hasTimestamp = options.template.indexOf('%t') !== -1;
|
6875
|
+
var hasLevel = options.template.indexOf('%l') !== -1;
|
6876
|
+
var hasName = options.template.indexOf('%n') !== -1;
|
6877
6877
|
return function() {
|
6878
|
-
var content =
|
6878
|
+
var content = '';
|
6879
6879
|
var length = arguments.length;
|
6880
6880
|
var args = Array(length);
|
6881
6881
|
var key = 0;
|
@@ -6892,8 +6892,8 @@ var $1ffebed09abdb92f$exports = {};
|
|
6892
6892
|
if (hasLevel) content = content.replace(/%l/, level);
|
6893
6893
|
if (hasName) content = content.replace(/%n/, lname);
|
6894
6894
|
}
|
6895
|
-
if (args.length && typeof args[0] ===
|
6896
|
-
args[0] = content +
|
6895
|
+
if (args.length && typeof args[0] === 'string') // concat prefix with first argument to support string substitutions
|
6896
|
+
args[0] = content + ' ' + args[0];
|
6897
6897
|
else args.unshift(content);
|
6898
6898
|
}
|
6899
6899
|
originalMethod.apply(undefined, args);
|
@@ -6905,7 +6905,7 @@ var $1ffebed09abdb92f$exports = {};
|
|
6905
6905
|
if (config.template) config.format = undefined;
|
6906
6906
|
configs[name] = merge({}, parent, config);
|
6907
6907
|
logger.setLevel(logger.getLevel());
|
6908
|
-
if (!loglevel) logger.warn(
|
6908
|
+
if (!loglevel) logger.warn('It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md');
|
6909
6909
|
return logger;
|
6910
6910
|
};
|
6911
6911
|
var api = {
|
@@ -8030,102 +8030,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8030
8030
|
}
|
8031
8031
|
|
8032
8032
|
|
8033
|
-
var $
|
8034
|
-
var $99486586f6691564$exports = {};
|
8035
|
-
|
8036
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
8037
|
-
|
8038
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
8039
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
8040
|
-
return {};
|
8041
|
-
}
|
8042
|
-
|
8043
|
-
|
8044
|
-
var $e398acaded942bbe$exports = {};
|
8045
|
-
|
8046
|
-
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
8047
|
-
|
8048
|
-
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
8049
|
-
|
8050
|
-
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
8051
|
-
return {
|
8052
|
-
width: 0,
|
8053
|
-
height: 0,
|
8054
|
-
resizing: false,
|
8055
|
-
target: null,
|
8056
|
-
init () {
|
8057
|
-
this.target = document.querySelector(targetSelector);
|
8058
|
-
if (this.target) {
|
8059
|
-
this.width = Math.round(this.target.clientWidth);
|
8060
|
-
this.height = Math.round(this.target.clientHeight);
|
8061
|
-
this.createObserver();
|
8062
|
-
}
|
8063
|
-
},
|
8064
|
-
createObserver () {
|
8065
|
-
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
8066
|
-
this.width = width;
|
8067
|
-
this.height = height;
|
8068
|
-
});
|
8069
|
-
},
|
8070
|
-
tearDown () {
|
8071
|
-
if (this.observer) this.observer.disconnect();
|
8072
|
-
}
|
8073
|
-
};
|
8074
|
-
}
|
8075
|
-
|
8076
|
-
|
8077
|
-
var $216ef7001f59f21d$exports = {};
|
8078
|
-
|
8079
|
-
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
8080
|
-
|
8081
|
-
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
8082
|
-
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
8083
|
-
return {};
|
8084
|
-
}
|
8085
|
-
|
8086
|
-
|
8087
|
-
var $47a1c62621be0c54$exports = {};
|
8088
|
-
|
8089
|
-
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
8090
|
-
|
8091
|
-
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
8092
|
-
var $4e31c85e11272811$exports = {};
|
8093
|
-
|
8094
|
-
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
8095
|
-
|
8096
|
-
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
8097
|
-
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
8098
|
-
|
8099
|
-
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
8100
|
-
let copyTimeout = null;
|
8101
|
-
return Object.assign(context, {
|
8102
|
-
copied: false,
|
8103
|
-
async copyToClipboard (target = null) {
|
8104
|
-
let targetEl;
|
8105
|
-
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
8106
|
-
else if (typeof target === "string") targetEl = document.querySelector(target);
|
8107
|
-
if (!targetEl) {
|
8108
|
-
this.warn("Could not find copy target");
|
8109
|
-
return false;
|
8110
|
-
}
|
8111
|
-
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
8112
|
-
await window.navigator.clipboard.writeText(content);
|
8113
|
-
this.copied = true;
|
8114
|
-
if (copyTimeout) clearTimeout(copyTimeout);
|
8115
|
-
copyTimeout = setTimeout(()=>{
|
8116
|
-
this.copied = false;
|
8117
|
-
this.onCopyComplete();
|
8118
|
-
}, 1000);
|
8119
|
-
return content;
|
8120
|
-
},
|
8121
|
-
onCopyComplete () {}
|
8122
|
-
});
|
8123
|
-
}
|
8124
|
-
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
8125
|
-
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
8126
|
-
}
|
8127
|
-
|
8128
|
-
|
8033
|
+
var $c9dfaeb25bf110ce$exports = {};
|
8129
8034
|
var $cbd28b10fa9798c7$exports = {};
|
8130
8035
|
|
8131
8036
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -8136,13 +8041,13 @@ $parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$exp
|
|
8136
8041
|
* (c) 2017-2021 atomiks
|
8137
8042
|
* MIT License
|
8138
8043
|
*/ function $59d97a6bab2b727e$export$2e2bcd8739ae039(element) {
|
8139
|
-
return element ? (element.nodeName ||
|
8044
|
+
return element ? (element.nodeName || '').toLowerCase() : null;
|
8140
8045
|
}
|
8141
8046
|
|
8142
8047
|
|
8143
8048
|
function $f41f4520bee001a7$export$2e2bcd8739ae039(node) {
|
8144
8049
|
if (node == null) return window;
|
8145
|
-
if (node.toString() !==
|
8050
|
+
if (node.toString() !== '[object Window]') {
|
8146
8051
|
var ownerDocument = node.ownerDocument;
|
8147
8052
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
8148
8053
|
}
|
@@ -8160,7 +8065,7 @@ function $1fa2a5446b18c455$export$1b3bfaa9684536aa(node) {
|
|
8160
8065
|
}
|
8161
8066
|
function $1fa2a5446b18c455$export$af51f0f06c0f328a(node) {
|
8162
8067
|
// IE 11 has no ShadowRoot
|
8163
|
-
if (typeof ShadowRoot ===
|
8068
|
+
if (typeof ShadowRoot === 'undefined') return false;
|
8164
8069
|
var OwnElement = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(node).ShadowRoot;
|
8165
8070
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
8166
8071
|
}
|
@@ -8181,7 +8086,7 @@ function $dfb41fce0bddd2d8$var$applyStyles(_ref) {
|
|
8181
8086
|
Object.keys(attributes).forEach(function(name) {
|
8182
8087
|
var value = attributes[name];
|
8183
8088
|
if (value === false) element.removeAttribute(name);
|
8184
|
-
else element.setAttribute(name, value === true ?
|
8089
|
+
else element.setAttribute(name, value === true ? '' : value);
|
8185
8090
|
});
|
8186
8091
|
});
|
8187
8092
|
}
|
@@ -8190,12 +8095,12 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8190
8095
|
var initialStyles = {
|
8191
8096
|
popper: {
|
8192
8097
|
position: state.options.strategy,
|
8193
|
-
left:
|
8194
|
-
top:
|
8195
|
-
margin:
|
8098
|
+
left: '0',
|
8099
|
+
top: '0',
|
8100
|
+
margin: '0'
|
8196
8101
|
},
|
8197
8102
|
arrow: {
|
8198
|
-
position:
|
8103
|
+
position: 'absolute'
|
8199
8104
|
},
|
8200
8105
|
reference: {}
|
8201
8106
|
};
|
@@ -8208,7 +8113,7 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8208
8113
|
var attributes = state.attributes[name] || {};
|
8209
8114
|
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
8210
8115
|
var style = styleProperties.reduce(function(style, property) {
|
8211
|
-
style[property] =
|
8116
|
+
style[property] = '';
|
8212
8117
|
return style;
|
8213
8118
|
}, {}); // arrow is optional + virtual elements
|
8214
8119
|
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || !(0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element)) return;
|
@@ -8220,13 +8125,13 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8220
8125
|
};
|
8221
8126
|
} // eslint-disable-next-line import/no-unused-modules
|
8222
8127
|
var $dfb41fce0bddd2d8$export$2e2bcd8739ae039 = {
|
8223
|
-
name:
|
8128
|
+
name: 'applyStyles',
|
8224
8129
|
enabled: true,
|
8225
|
-
phase:
|
8130
|
+
phase: 'write',
|
8226
8131
|
fn: $dfb41fce0bddd2d8$var$applyStyles,
|
8227
8132
|
effect: $dfb41fce0bddd2d8$var$effect,
|
8228
8133
|
requires: [
|
8229
|
-
|
8134
|
+
'computeStyles'
|
8230
8135
|
]
|
8231
8136
|
};
|
8232
8137
|
|
@@ -8241,7 +8146,7 @@ function $beb42d7aceecf8c8$export$2e2bcd8739ae039() {
|
|
8241
8146
|
var uaData = navigator.userAgentData;
|
8242
8147
|
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) return uaData.brands.map(function(item) {
|
8243
8148
|
return item.brand + "/" + item.version;
|
8244
|
-
}).join(
|
8149
|
+
}).join(' ');
|
8245
8150
|
return navigator.userAgent;
|
8246
8151
|
}
|
8247
8152
|
|
@@ -8367,7 +8272,7 @@ function $a195ad21b1cffe79$export$2e2bcd8739ae039(elementOrVirtualElement, offse
|
|
8367
8272
|
y: 0
|
8368
8273
|
};
|
8369
8274
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
8370
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !==
|
8275
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
8371
8276
|
(0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $40149fb4267f270e$export$2e2bcd8739ae039)(offsetParent);
|
8372
8277
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(offsetParent)) {
|
8373
8278
|
offsets = (0, $b854957821c00430$export$2e2bcd8739ae039)(offsetParent, true);
|
@@ -8405,7 +8310,7 @@ function $e287ac773d355028$export$2e2bcd8739ae039(element) {
|
|
8405
8310
|
|
8406
8311
|
|
8407
8312
|
function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
8408
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) ===
|
8313
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) === 'html') return element;
|
8409
8314
|
return(// $FlowFixMe[incompatible-return]
|
8410
8315
|
// $FlowFixMe[prop-missing]
|
8411
8316
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
@@ -8421,9 +8326,9 @@ function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
|
8421
8326
|
|
8422
8327
|
function $8fec37e99f881747$export$2e2bcd8739ae039(node) {
|
8423
8328
|
if ([
|
8424
|
-
|
8425
|
-
|
8426
|
-
|
8329
|
+
'html',
|
8330
|
+
'body',
|
8331
|
+
'#document'
|
8427
8332
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(node)) >= 0) // $FlowFixMe[incompatible-return]: assume body is always available
|
8428
8333
|
return node.ownerDocument.body;
|
8429
8334
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(node) && (0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(node)) return node;
|
@@ -8455,9 +8360,9 @@ function $f14b4e1cd31512ee$export$2e2bcd8739ae039(element, list) {
|
|
8455
8360
|
|
8456
8361
|
function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
8457
8362
|
return [
|
8458
|
-
|
8459
|
-
|
8460
|
-
|
8363
|
+
'table',
|
8364
|
+
'td',
|
8365
|
+
'th'
|
8461
8366
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element)) >= 0;
|
8462
8367
|
}
|
8463
8368
|
|
@@ -8466,7 +8371,7 @@ function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
|
8466
8371
|
|
8467
8372
|
function $4acba801a6bfbaa3$var$getTrueOffsetParent(element) {
|
8468
8373
|
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || // https://github.com/popperjs/popper-core/issues/837
|
8469
|
-
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position ===
|
8374
|
+
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position === 'fixed') return null;
|
8470
8375
|
return element.offsetParent;
|
8471
8376
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
8472
8377
|
// return the containing block
|
@@ -8476,21 +8381,21 @@ function $4acba801a6bfbaa3$var$getContainingBlock(element) {
|
|
8476
8381
|
if (isIE && (0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element)) {
|
8477
8382
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
8478
8383
|
var elementCss = (0, $392247934674b5b4$export$2e2bcd8739ae039)(element);
|
8479
|
-
if (elementCss.position ===
|
8384
|
+
if (elementCss.position === 'fixed') return null;
|
8480
8385
|
}
|
8481
8386
|
var currentNode = (0, $b1adb38089003474$export$2e2bcd8739ae039)(element);
|
8482
8387
|
if ((0, $1fa2a5446b18c455$export$af51f0f06c0f328a)(currentNode)) currentNode = currentNode.host;
|
8483
8388
|
while((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(currentNode) && [
|
8484
|
-
|
8485
|
-
|
8389
|
+
'html',
|
8390
|
+
'body'
|
8486
8391
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(currentNode)) < 0){
|
8487
8392
|
var css = (0, $392247934674b5b4$export$2e2bcd8739ae039)(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
8488
8393
|
// create a containing block.
|
8489
8394
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
8490
|
-
if (css.transform !==
|
8491
|
-
|
8492
|
-
|
8493
|
-
].indexOf(css.willChange) !== -1 || isFirefox && css.willChange ===
|
8395
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || [
|
8396
|
+
'transform',
|
8397
|
+
'perspective'
|
8398
|
+
].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') return currentNode;
|
8494
8399
|
else currentNode = currentNode.parentNode;
|
8495
8400
|
}
|
8496
8401
|
return null;
|
@@ -8498,29 +8403,29 @@ function $4acba801a6bfbaa3$var$getContainingBlock(element) {
|
|
8498
8403
|
function $4acba801a6bfbaa3$export$2e2bcd8739ae039(element) {
|
8499
8404
|
var window = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(element);
|
8500
8405
|
var offsetParent = $4acba801a6bfbaa3$var$getTrueOffsetParent(element);
|
8501
|
-
while(offsetParent && (0, $b7f6a1d3d9524a70$export$2e2bcd8739ae039)(offsetParent) && (0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position ===
|
8502
|
-
if (offsetParent && ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) ===
|
8406
|
+
while(offsetParent && (0, $b7f6a1d3d9524a70$export$2e2bcd8739ae039)(offsetParent) && (0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position === 'static')offsetParent = $4acba801a6bfbaa3$var$getTrueOffsetParent(offsetParent);
|
8407
|
+
if (offsetParent && ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) === 'html' || (0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) === 'body' && (0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position === 'static')) return window;
|
8503
8408
|
return offsetParent || $4acba801a6bfbaa3$var$getContainingBlock(element) || window;
|
8504
8409
|
}
|
8505
8410
|
|
8506
8411
|
|
8507
|
-
var $9b56e55559dfbda1$export$1e95b668f3b82d =
|
8508
|
-
var $9b56e55559dfbda1$export$40e543e69a8b3fbb =
|
8509
|
-
var $9b56e55559dfbda1$export$79ffe56a765070d2 =
|
8510
|
-
var $9b56e55559dfbda1$export$eabcd2c8791e7bf4 =
|
8511
|
-
var $9b56e55559dfbda1$export$dfb5619354ba860 =
|
8412
|
+
var $9b56e55559dfbda1$export$1e95b668f3b82d = 'top';
|
8413
|
+
var $9b56e55559dfbda1$export$40e543e69a8b3fbb = 'bottom';
|
8414
|
+
var $9b56e55559dfbda1$export$79ffe56a765070d2 = 'right';
|
8415
|
+
var $9b56e55559dfbda1$export$eabcd2c8791e7bf4 = 'left';
|
8416
|
+
var $9b56e55559dfbda1$export$dfb5619354ba860 = 'auto';
|
8512
8417
|
var $9b56e55559dfbda1$export$aec2ce47c367b8c3 = [
|
8513
8418
|
$9b56e55559dfbda1$export$1e95b668f3b82d,
|
8514
8419
|
$9b56e55559dfbda1$export$40e543e69a8b3fbb,
|
8515
8420
|
$9b56e55559dfbda1$export$79ffe56a765070d2,
|
8516
8421
|
$9b56e55559dfbda1$export$eabcd2c8791e7bf4
|
8517
8422
|
];
|
8518
|
-
var $9b56e55559dfbda1$export$b3571188c770cc5a =
|
8519
|
-
var $9b56e55559dfbda1$export$bd5df0f255a350f8 =
|
8520
|
-
var $9b56e55559dfbda1$export$390fd549c5303b4d =
|
8521
|
-
var $9b56e55559dfbda1$export$d7b7311ec04a3e8f =
|
8522
|
-
var $9b56e55559dfbda1$export$ae5ab1c730825774 =
|
8523
|
-
var $9b56e55559dfbda1$export$ca50aac9f3ba507f =
|
8423
|
+
var $9b56e55559dfbda1$export$b3571188c770cc5a = 'start';
|
8424
|
+
var $9b56e55559dfbda1$export$bd5df0f255a350f8 = 'end';
|
8425
|
+
var $9b56e55559dfbda1$export$390fd549c5303b4d = 'clippingParents';
|
8426
|
+
var $9b56e55559dfbda1$export$d7b7311ec04a3e8f = 'viewport';
|
8427
|
+
var $9b56e55559dfbda1$export$ae5ab1c730825774 = 'popper';
|
8428
|
+
var $9b56e55559dfbda1$export$ca50aac9f3ba507f = 'reference';
|
8524
8429
|
var $9b56e55559dfbda1$export$368f9a87e87fa4e1 = /*#__PURE__*/ $9b56e55559dfbda1$export$aec2ce47c367b8c3.reduce(function(acc, placement) {
|
8525
8430
|
return acc.concat([
|
8526
8431
|
placement + "-" + $9b56e55559dfbda1$export$b3571188c770cc5a,
|
@@ -8536,15 +8441,15 @@ var $9b56e55559dfbda1$export$803cd8101b6c182b = /*#__PURE__*/ [].concat($9b56e55
|
|
8536
8441
|
placement + "-" + $9b56e55559dfbda1$export$bd5df0f255a350f8
|
8537
8442
|
]);
|
8538
8443
|
}, []); // modifiers that need to read the DOM
|
8539
|
-
var $9b56e55559dfbda1$export$421679a7c3d56e =
|
8540
|
-
var $9b56e55559dfbda1$export$aafa59e2e03f2942 =
|
8541
|
-
var $9b56e55559dfbda1$export$6964f6c886723980 =
|
8542
|
-
var $9b56e55559dfbda1$export$c65e99957a05207c =
|
8543
|
-
var $9b56e55559dfbda1$export$f22da7240b7add18 =
|
8544
|
-
var $9b56e55559dfbda1$export$bab79516f2d662fe =
|
8545
|
-
var $9b56e55559dfbda1$export$8d4d2d70e7d46032 =
|
8546
|
-
var $9b56e55559dfbda1$export$68d8715fc104d294 =
|
8547
|
-
var $9b56e55559dfbda1$export$70a6e5159acce2e6 =
|
8444
|
+
var $9b56e55559dfbda1$export$421679a7c3d56e = 'beforeRead';
|
8445
|
+
var $9b56e55559dfbda1$export$aafa59e2e03f2942 = 'read';
|
8446
|
+
var $9b56e55559dfbda1$export$6964f6c886723980 = 'afterRead'; // pure-logic modifiers
|
8447
|
+
var $9b56e55559dfbda1$export$c65e99957a05207c = 'beforeMain';
|
8448
|
+
var $9b56e55559dfbda1$export$f22da7240b7add18 = 'main';
|
8449
|
+
var $9b56e55559dfbda1$export$bab79516f2d662fe = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
|
8450
|
+
var $9b56e55559dfbda1$export$8d4d2d70e7d46032 = 'beforeWrite';
|
8451
|
+
var $9b56e55559dfbda1$export$68d8715fc104d294 = 'write';
|
8452
|
+
var $9b56e55559dfbda1$export$70a6e5159acce2e6 = 'afterWrite';
|
8548
8453
|
var $9b56e55559dfbda1$export$d087d3878fdf71d5 = [
|
8549
8454
|
$9b56e55559dfbda1$export$421679a7c3d56e,
|
8550
8455
|
$9b56e55559dfbda1$export$aafa59e2e03f2942,
|
@@ -8625,14 +8530,14 @@ function $6af99e74d4c8a734$export$2e2bcd8739ae039(modifiers) {
|
|
8625
8530
|
|
8626
8531
|
|
8627
8532
|
var $8e357be334f3fad9$var$DEFAULT_OPTIONS = {
|
8628
|
-
placement:
|
8533
|
+
placement: 'bottom',
|
8629
8534
|
modifiers: [],
|
8630
|
-
strategy:
|
8535
|
+
strategy: 'absolute'
|
8631
8536
|
};
|
8632
8537
|
function $8e357be334f3fad9$var$areValidElements() {
|
8633
8538
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
8634
8539
|
return !args.some(function(element) {
|
8635
|
-
return !(element && typeof element.getBoundingClientRect ===
|
8540
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
8636
8541
|
});
|
8637
8542
|
}
|
8638
8543
|
function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
@@ -8641,7 +8546,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8641
8546
|
return function createPopper(reference, popper, options) {
|
8642
8547
|
if (options === void 0) options = defaultOptions;
|
8643
8548
|
var state = {
|
8644
|
-
placement:
|
8549
|
+
placement: 'bottom',
|
8645
8550
|
orderedModifiers: [],
|
8646
8551
|
options: Object.assign({}, $8e357be334f3fad9$var$DEFAULT_OPTIONS, defaultOptions),
|
8647
8552
|
modifiersData: {},
|
@@ -8657,7 +8562,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8657
8562
|
var instance = {
|
8658
8563
|
state: state,
|
8659
8564
|
setOptions: function setOptions(setOptionsAction) {
|
8660
|
-
var options = typeof setOptionsAction ===
|
8565
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
8661
8566
|
cleanupModifierEffects();
|
8662
8567
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
8663
8568
|
state.scrollParents = {
|
@@ -8684,7 +8589,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8684
8589
|
if (!$8e357be334f3fad9$var$areValidElements(reference, popper)) return;
|
8685
8590
|
// Store the reference and popper rects to be read by modifiers
|
8686
8591
|
state.rects = {
|
8687
|
-
reference: (0, $a195ad21b1cffe79$export$2e2bcd8739ae039)(reference, (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper), state.options.strategy ===
|
8592
|
+
reference: (0, $a195ad21b1cffe79$export$2e2bcd8739ae039)(reference, (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper), state.options.strategy === 'fixed'),
|
8688
8593
|
popper: (0, $e287ac773d355028$export$2e2bcd8739ae039)(popper)
|
8689
8594
|
}; // Modifiers have the ability to reset the current update cycle. The
|
8690
8595
|
// most common use case for this is the `flip` modifier changing the
|
@@ -8706,7 +8611,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8706
8611
|
continue;
|
8707
8612
|
}
|
8708
8613
|
var _state$orderedModifie = state.orderedModifiers[index], fn = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
|
8709
|
-
if (typeof fn ===
|
8614
|
+
if (typeof fn === 'function') state = fn({
|
8710
8615
|
state: state,
|
8711
8616
|
options: _options,
|
8712
8617
|
name: name,
|
@@ -8738,7 +8643,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8738
8643
|
function runModifierEffects() {
|
8739
8644
|
state.orderedModifiers.forEach(function(_ref) {
|
8740
8645
|
var name = _ref.name, _ref$options = _ref.options, options = _ref$options === void 0 ? {} : _ref$options, effect = _ref.effect;
|
8741
|
-
if (typeof effect ===
|
8646
|
+
if (typeof effect === 'function') {
|
8742
8647
|
var cleanupFn = effect({
|
8743
8648
|
state: state,
|
8744
8649
|
name: name,
|
@@ -8772,20 +8677,20 @@ function $e3348dc516600e8b$var$effect(_ref) {
|
|
8772
8677
|
var window = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(state.elements.popper);
|
8773
8678
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
8774
8679
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
8775
|
-
scrollParent.addEventListener(
|
8680
|
+
scrollParent.addEventListener('scroll', instance.update, $e3348dc516600e8b$var$passive);
|
8776
8681
|
});
|
8777
|
-
if (resize) window.addEventListener(
|
8682
|
+
if (resize) window.addEventListener('resize', instance.update, $e3348dc516600e8b$var$passive);
|
8778
8683
|
return function() {
|
8779
8684
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
8780
|
-
scrollParent.removeEventListener(
|
8685
|
+
scrollParent.removeEventListener('scroll', instance.update, $e3348dc516600e8b$var$passive);
|
8781
8686
|
});
|
8782
|
-
if (resize) window.removeEventListener(
|
8687
|
+
if (resize) window.removeEventListener('resize', instance.update, $e3348dc516600e8b$var$passive);
|
8783
8688
|
};
|
8784
8689
|
} // eslint-disable-next-line import/no-unused-modules
|
8785
8690
|
var $e3348dc516600e8b$export$2e2bcd8739ae039 = {
|
8786
|
-
name:
|
8691
|
+
name: 'eventListeners',
|
8787
8692
|
enabled: true,
|
8788
|
-
phase:
|
8693
|
+
phase: 'write',
|
8789
8694
|
fn: function fn() {},
|
8790
8695
|
effect: $e3348dc516600e8b$var$effect,
|
8791
8696
|
data: {}
|
@@ -8794,20 +8699,20 @@ var $e3348dc516600e8b$export$2e2bcd8739ae039 = {
|
|
8794
8699
|
|
8795
8700
|
|
8796
8701
|
function $923eec132c8d334b$export$2e2bcd8739ae039(placement) {
|
8797
|
-
return placement.split(
|
8702
|
+
return placement.split('-')[0];
|
8798
8703
|
}
|
8799
8704
|
|
8800
8705
|
|
8801
8706
|
function $6572b8fb6297a772$export$2e2bcd8739ae039(placement) {
|
8802
|
-
return placement.split(
|
8707
|
+
return placement.split('-')[1];
|
8803
8708
|
}
|
8804
8709
|
|
8805
8710
|
|
8806
8711
|
function $d388da57f90fb762$export$2e2bcd8739ae039(placement) {
|
8807
8712
|
return [
|
8808
|
-
|
8809
|
-
|
8810
|
-
].indexOf(placement) >= 0 ?
|
8713
|
+
'top',
|
8714
|
+
'bottom'
|
8715
|
+
].indexOf(placement) >= 0 ? 'x' : 'y';
|
8811
8716
|
}
|
8812
8717
|
|
8813
8718
|
|
@@ -8852,7 +8757,7 @@ function $05d4a7bd7e0110bf$export$2e2bcd8739ae039(_ref) {
|
|
8852
8757
|
}
|
8853
8758
|
var mainAxis = basePlacement ? (0, $d388da57f90fb762$export$2e2bcd8739ae039)(basePlacement) : null;
|
8854
8759
|
if (mainAxis != null) {
|
8855
|
-
var len = mainAxis ===
|
8760
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
8856
8761
|
switch(variation){
|
8857
8762
|
case 0, $9b56e55559dfbda1$export$b3571188c770cc5a:
|
8858
8763
|
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
@@ -8876,14 +8781,14 @@ function $4aa27a7a3db85746$var$popperOffsets(_ref) {
|
|
8876
8781
|
state.modifiersData[name] = (0, $05d4a7bd7e0110bf$export$2e2bcd8739ae039)({
|
8877
8782
|
reference: state.rects.reference,
|
8878
8783
|
element: state.rects.popper,
|
8879
|
-
strategy:
|
8784
|
+
strategy: 'absolute',
|
8880
8785
|
placement: state.placement
|
8881
8786
|
});
|
8882
8787
|
} // eslint-disable-next-line import/no-unused-modules
|
8883
8788
|
var $4aa27a7a3db85746$export$2e2bcd8739ae039 = {
|
8884
|
-
name:
|
8789
|
+
name: 'popperOffsets',
|
8885
8790
|
enabled: true,
|
8886
|
-
phase:
|
8791
|
+
phase: 'read',
|
8887
8792
|
fn: $4aa27a7a3db85746$var$popperOffsets,
|
8888
8793
|
data: {}
|
8889
8794
|
};
|
@@ -8898,10 +8803,10 @@ var $4aa27a7a3db85746$export$2e2bcd8739ae039 = {
|
|
8898
8803
|
|
8899
8804
|
|
8900
8805
|
var $03e421bdaa8eda14$var$unsetSides = {
|
8901
|
-
top:
|
8902
|
-
right:
|
8903
|
-
bottom:
|
8904
|
-
left:
|
8806
|
+
top: 'auto',
|
8807
|
+
right: 'auto',
|
8808
|
+
bottom: 'auto',
|
8809
|
+
left: 'auto'
|
8905
8810
|
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
|
8906
8811
|
// Zooming can change the DPR, but it seems to report a value that will
|
8907
8812
|
// cleanly divide the values into the appropriate subpixels.
|
@@ -8917,7 +8822,7 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8917
8822
|
var _Object$assign2;
|
8918
8823
|
var popper = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
8919
8824
|
var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y;
|
8920
|
-
var _ref3 = typeof roundOffsets ===
|
8825
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
8921
8826
|
x: x,
|
8922
8827
|
y: y
|
8923
8828
|
}) : {
|
@@ -8926,20 +8831,20 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8926
8831
|
};
|
8927
8832
|
x = _ref3.x;
|
8928
8833
|
y = _ref3.y;
|
8929
|
-
var hasX = offsets.hasOwnProperty(
|
8930
|
-
var hasY = offsets.hasOwnProperty(
|
8834
|
+
var hasX = offsets.hasOwnProperty('x');
|
8835
|
+
var hasY = offsets.hasOwnProperty('y');
|
8931
8836
|
var sideX = (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
8932
8837
|
var sideY = (0, $9b56e55559dfbda1$export$1e95b668f3b82d);
|
8933
8838
|
var win = window;
|
8934
8839
|
if (adaptive) {
|
8935
8840
|
var offsetParent = (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper);
|
8936
|
-
var heightProp =
|
8937
|
-
var widthProp =
|
8841
|
+
var heightProp = 'clientHeight';
|
8842
|
+
var widthProp = 'clientWidth';
|
8938
8843
|
if (offsetParent === (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(popper)) {
|
8939
8844
|
offsetParent = (0, $3e02d6708e2a16ac$export$2e2bcd8739ae039)(popper);
|
8940
|
-
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position !==
|
8941
|
-
heightProp =
|
8942
|
-
widthProp =
|
8845
|
+
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position !== 'static' && position === 'absolute') {
|
8846
|
+
heightProp = 'scrollHeight';
|
8847
|
+
widthProp = 'scrollWidth';
|
8943
8848
|
}
|
8944
8849
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
8945
8850
|
offsetParent;
|
@@ -8970,9 +8875,9 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8970
8875
|
y = _ref4.y;
|
8971
8876
|
if (gpuAcceleration) {
|
8972
8877
|
var _Object$assign;
|
8973
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ?
|
8878
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
8974
8879
|
}
|
8975
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" :
|
8880
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
8976
8881
|
}
|
8977
8882
|
function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
8978
8883
|
var state = _ref5.state, options = _ref5.options;
|
@@ -8983,7 +8888,7 @@ function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
|
8983
8888
|
popper: state.elements.popper,
|
8984
8889
|
popperRect: state.rects.popper,
|
8985
8890
|
gpuAcceleration: gpuAcceleration,
|
8986
|
-
isFixed: state.options.strategy ===
|
8891
|
+
isFixed: state.options.strategy === 'fixed'
|
8987
8892
|
};
|
8988
8893
|
if (state.modifiersData.popperOffsets != null) state.styles.popper = Object.assign({}, state.styles.popper, $03e421bdaa8eda14$export$378fa78a8fea596f(Object.assign({}, commonStyles, {
|
8989
8894
|
offsets: state.modifiersData.popperOffsets,
|
@@ -8993,18 +8898,18 @@ function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
|
8993
8898
|
})));
|
8994
8899
|
if (state.modifiersData.arrow != null) state.styles.arrow = Object.assign({}, state.styles.arrow, $03e421bdaa8eda14$export$378fa78a8fea596f(Object.assign({}, commonStyles, {
|
8995
8900
|
offsets: state.modifiersData.arrow,
|
8996
|
-
position:
|
8901
|
+
position: 'absolute',
|
8997
8902
|
adaptive: false,
|
8998
8903
|
roundOffsets: roundOffsets
|
8999
8904
|
})));
|
9000
8905
|
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
9001
|
-
|
8906
|
+
'data-popper-placement': state.placement
|
9002
8907
|
});
|
9003
8908
|
} // eslint-disable-next-line import/no-unused-modules
|
9004
8909
|
var $03e421bdaa8eda14$export$2e2bcd8739ae039 = {
|
9005
|
-
name:
|
8910
|
+
name: 'computeStyles',
|
9006
8911
|
enabled: true,
|
9007
|
-
phase:
|
8912
|
+
phase: 'beforeWrite',
|
9008
8913
|
fn: $03e421bdaa8eda14$var$computeStyles,
|
9009
8914
|
data: {}
|
9010
8915
|
};
|
@@ -9019,7 +8924,7 @@ function $b2dec03e76957d70$export$7fa02d8595b015ed(placement, rects, offset) {
|
|
9019
8924
|
(0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4),
|
9020
8925
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d)
|
9021
8926
|
].indexOf(basePlacement) >= 0 ? -1 : 1;
|
9022
|
-
var _ref = typeof offset ===
|
8927
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
9023
8928
|
placement: placement
|
9024
8929
|
})) : offset, skidding = _ref[0], distance = _ref[1];
|
9025
8930
|
skidding = skidding || 0;
|
@@ -9053,21 +8958,21 @@ function $b2dec03e76957d70$var$offset(_ref2) {
|
|
9053
8958
|
state.modifiersData[name] = data;
|
9054
8959
|
} // eslint-disable-next-line import/no-unused-modules
|
9055
8960
|
var $b2dec03e76957d70$export$2e2bcd8739ae039 = {
|
9056
|
-
name:
|
8961
|
+
name: 'offset',
|
9057
8962
|
enabled: true,
|
9058
|
-
phase:
|
8963
|
+
phase: 'main',
|
9059
8964
|
requires: [
|
9060
|
-
|
8965
|
+
'popperOffsets'
|
9061
8966
|
],
|
9062
8967
|
fn: $b2dec03e76957d70$var$offset
|
9063
8968
|
};
|
9064
8969
|
|
9065
8970
|
|
9066
8971
|
var $e21601d0082602f5$var$hash = {
|
9067
|
-
left:
|
9068
|
-
right:
|
9069
|
-
bottom:
|
9070
|
-
top:
|
8972
|
+
left: 'right',
|
8973
|
+
right: 'left',
|
8974
|
+
bottom: 'top',
|
8975
|
+
top: 'bottom'
|
9071
8976
|
};
|
9072
8977
|
function $e21601d0082602f5$export$2e2bcd8739ae039(placement) {
|
9073
8978
|
return placement.replace(/left|right|bottom|top/g, function(matched) {
|
@@ -9078,8 +8983,8 @@ function $e21601d0082602f5$export$2e2bcd8739ae039(placement) {
|
|
9078
8983
|
|
9079
8984
|
|
9080
8985
|
var $e23a845ff98433e2$var$hash = {
|
9081
|
-
start:
|
9082
|
-
end:
|
8986
|
+
start: 'end',
|
8987
|
+
end: 'start'
|
9083
8988
|
};
|
9084
8989
|
function $e23a845ff98433e2$export$2e2bcd8739ae039(placement) {
|
9085
8990
|
return placement.replace(/start|end/g, function(matched) {
|
@@ -9105,7 +9010,7 @@ function $ed6afea5d5a4d314$export$2e2bcd8739ae039(element, strategy) {
|
|
9105
9010
|
width = visualViewport.width;
|
9106
9011
|
height = visualViewport.height;
|
9107
9012
|
var layoutViewport = (0, $f6bdda075fc14cbf$export$2e2bcd8739ae039)();
|
9108
|
-
if (layoutViewport || !layoutViewport && strategy ===
|
9013
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
9109
9014
|
x = visualViewport.offsetLeft;
|
9110
9015
|
y = visualViewport.offsetTop;
|
9111
9016
|
}
|
@@ -9133,7 +9038,7 @@ function $048158ac5222e515$export$2e2bcd8739ae039(element) {
|
|
9133
9038
|
var height = (0, $a435872b5ba665df$export$8960430cfd85939f)(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
9134
9039
|
var x = -winScroll.scrollLeft + (0, $05804587c501a8a1$export$2e2bcd8739ae039)(element);
|
9135
9040
|
var y = -winScroll.scrollTop;
|
9136
|
-
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(body || html).direction ===
|
9041
|
+
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(body || html).direction === 'rtl') x += (0, $a435872b5ba665df$export$8960430cfd85939f)(html.clientWidth, body ? body.clientWidth : 0) - width;
|
9137
9042
|
return {
|
9138
9043
|
width: width,
|
9139
9044
|
height: height,
|
@@ -9179,7 +9084,7 @@ function $611b7cfc3d40c8f5$export$2e2bcd8739ae039(rect) {
|
|
9179
9084
|
|
9180
9085
|
|
9181
9086
|
function $1ae21a55ad42cc80$var$getInnerBoundingClientRect(element, strategy) {
|
9182
|
-
var rect = (0, $b854957821c00430$export$2e2bcd8739ae039)(element, false, strategy ===
|
9087
|
+
var rect = (0, $b854957821c00430$export$2e2bcd8739ae039)(element, false, strategy === 'fixed');
|
9183
9088
|
rect.top = rect.top + element.clientTop;
|
9184
9089
|
rect.left = rect.left + element.clientLeft;
|
9185
9090
|
rect.bottom = rect.top + element.clientHeight;
|
@@ -9198,18 +9103,18 @@ function $1ae21a55ad42cc80$var$getClientRectFromMixedType(element, clippingParen
|
|
9198
9103
|
function $1ae21a55ad42cc80$var$getClippingParents(element) {
|
9199
9104
|
var clippingParents = (0, $f14b4e1cd31512ee$export$2e2bcd8739ae039)((0, $b1adb38089003474$export$2e2bcd8739ae039)(element));
|
9200
9105
|
var canEscapeClipping = [
|
9201
|
-
|
9202
|
-
|
9106
|
+
'absolute',
|
9107
|
+
'fixed'
|
9203
9108
|
].indexOf((0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position) >= 0;
|
9204
9109
|
var clipperElement = canEscapeClipping && (0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) ? (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(element) : element;
|
9205
9110
|
if (!(0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clipperElement)) return [];
|
9206
9111
|
// $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
9207
9112
|
return clippingParents.filter(function(clippingParent) {
|
9208
|
-
return (0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clippingParent) && (0, $d1f185f47d247fa7$export$2e2bcd8739ae039)(clippingParent, clipperElement) && (0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(clippingParent) !==
|
9113
|
+
return (0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clippingParent) && (0, $d1f185f47d247fa7$export$2e2bcd8739ae039)(clippingParent, clipperElement) && (0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(clippingParent) !== 'body';
|
9209
9114
|
});
|
9210
9115
|
} // Gets the maximum area that the element is visible in due to any number of
|
9211
9116
|
function $1ae21a55ad42cc80$export$2e2bcd8739ae039(element, boundary, rootBoundary, strategy) {
|
9212
|
-
var mainClippingParents = boundary ===
|
9117
|
+
var mainClippingParents = boundary === 'clippingParents' ? $1ae21a55ad42cc80$var$getClippingParents(element) : [].concat(boundary);
|
9213
9118
|
var clippingParents = [].concat(mainClippingParents, [
|
9214
9119
|
rootBoundary
|
9215
9120
|
]);
|
@@ -9262,7 +9167,7 @@ function $f5b522f3e076d616$export$2e2bcd8739ae039(value, keys) {
|
|
9262
9167
|
function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
9263
9168
|
if (options === void 0) options = {};
|
9264
9169
|
var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? (0, $9b56e55559dfbda1$export$390fd549c5303b4d) : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? (0, $9b56e55559dfbda1$export$d7b7311ec04a3e8f) : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? (0, $9b56e55559dfbda1$export$ae5ab1c730825774) : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding;
|
9265
|
-
var paddingObject = (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !==
|
9170
|
+
var paddingObject = (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !== 'number' ? padding : (0, $f5b522f3e076d616$export$2e2bcd8739ae039)(padding, (0, $9b56e55559dfbda1$export$aec2ce47c367b8c3)));
|
9266
9171
|
var altContext = elementContext === (0, $9b56e55559dfbda1$export$ae5ab1c730825774) ? (0, $9b56e55559dfbda1$export$ca50aac9f3ba507f) : (0, $9b56e55559dfbda1$export$ae5ab1c730825774);
|
9267
9172
|
var popperRect = state.rects.popper;
|
9268
9173
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
@@ -9271,7 +9176,7 @@ function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
|
9271
9176
|
var popperOffsets = (0, $05d4a7bd7e0110bf$export$2e2bcd8739ae039)({
|
9272
9177
|
reference: referenceClientRect,
|
9273
9178
|
element: popperRect,
|
9274
|
-
strategy:
|
9179
|
+
strategy: 'absolute',
|
9275
9180
|
placement: placement
|
9276
9181
|
});
|
9277
9182
|
var popperClientRect = (0, $611b7cfc3d40c8f5$export$2e2bcd8739ae039)(Object.assign({}, popperRect, popperOffsets));
|
@@ -9294,7 +9199,7 @@ function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
|
9294
9199
|
var axis = [
|
9295
9200
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d),
|
9296
9201
|
(0, $9b56e55559dfbda1$export$40e543e69a8b3fbb)
|
9297
|
-
].indexOf(key) >= 0 ?
|
9202
|
+
].indexOf(key) >= 0 ? 'y' : 'x';
|
9298
9203
|
overflowOffsets[key] += offset[axis] * multiply;
|
9299
9204
|
});
|
9300
9205
|
}
|
@@ -9379,7 +9284,7 @@ function $d886080699dc4994$var$flip(_ref) {
|
|
9379
9284
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d),
|
9380
9285
|
(0, $9b56e55559dfbda1$export$40e543e69a8b3fbb)
|
9381
9286
|
].indexOf(_basePlacement) >= 0;
|
9382
|
-
var len = isVertical ?
|
9287
|
+
var len = isVertical ? 'width' : 'height';
|
9383
9288
|
var overflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9384
9289
|
placement: placement,
|
9385
9290
|
boundary: boundary,
|
@@ -9429,12 +9334,12 @@ function $d886080699dc4994$var$flip(_ref) {
|
|
9429
9334
|
}
|
9430
9335
|
} // eslint-disable-next-line import/no-unused-modules
|
9431
9336
|
var $d886080699dc4994$export$2e2bcd8739ae039 = {
|
9432
|
-
name:
|
9337
|
+
name: 'flip',
|
9433
9338
|
enabled: true,
|
9434
|
-
phase:
|
9339
|
+
phase: 'main',
|
9435
9340
|
fn: $d886080699dc4994$var$flip,
|
9436
9341
|
requiresIfExists: [
|
9437
|
-
|
9342
|
+
'offset'
|
9438
9343
|
],
|
9439
9344
|
data: {
|
9440
9345
|
_skip: false
|
@@ -9446,7 +9351,7 @@ var $d886080699dc4994$export$2e2bcd8739ae039 = {
|
|
9446
9351
|
|
9447
9352
|
|
9448
9353
|
function $635c62073241bcfb$export$2e2bcd8739ae039(axis) {
|
9449
|
-
return axis ===
|
9354
|
+
return axis === 'x' ? 'y' : 'x';
|
9450
9355
|
}
|
9451
9356
|
|
9452
9357
|
|
@@ -9483,10 +9388,10 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9483
9388
|
var popperOffsets = state.modifiersData.popperOffsets;
|
9484
9389
|
var referenceRect = state.rects.reference;
|
9485
9390
|
var popperRect = state.rects.popper;
|
9486
|
-
var tetherOffsetValue = typeof tetherOffset ===
|
9391
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
9487
9392
|
placement: state.placement
|
9488
9393
|
})) : tetherOffset;
|
9489
|
-
var normalizedTetherOffsetValue = typeof tetherOffsetValue ===
|
9394
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
9490
9395
|
mainAxis: tetherOffsetValue,
|
9491
9396
|
altAxis: tetherOffsetValue
|
9492
9397
|
} : Object.assign({
|
@@ -9501,9 +9406,9 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9501
9406
|
if (!popperOffsets) return;
|
9502
9407
|
if (checkMainAxis) {
|
9503
9408
|
var _offsetModifierState$;
|
9504
|
-
var mainSide = mainAxis ===
|
9505
|
-
var altSide = mainAxis ===
|
9506
|
-
var len = mainAxis ===
|
9409
|
+
var mainSide = mainAxis === 'y' ? (0, $9b56e55559dfbda1$export$1e95b668f3b82d) : (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
9410
|
+
var altSide = mainAxis === 'y' ? (0, $9b56e55559dfbda1$export$40e543e69a8b3fbb) : (0, $9b56e55559dfbda1$export$79ffe56a765070d2);
|
9411
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
9507
9412
|
var offset = popperOffsets[mainAxis];
|
9508
9413
|
var min = offset + overflow[mainSide];
|
9509
9414
|
var max = offset - overflow[altSide];
|
@@ -9516,7 +9421,7 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9516
9421
|
width: 0,
|
9517
9422
|
height: 0
|
9518
9423
|
};
|
9519
|
-
var arrowPaddingObject = state.modifiersData[
|
9424
|
+
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : (0, $d245fd553c91b4b7$export$2e2bcd8739ae039)();
|
9520
9425
|
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
9521
9426
|
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
|
9522
9427
|
// to include its full size in the calculation. If the reference is small
|
@@ -9527,7 +9432,7 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9527
9432
|
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
9528
9433
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
9529
9434
|
var arrowOffsetParent = state.elements.arrow && (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(state.elements.arrow);
|
9530
|
-
var clientOffset = arrowOffsetParent ? mainAxis ===
|
9435
|
+
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
9531
9436
|
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
9532
9437
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
9533
9438
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
@@ -9537,10 +9442,10 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9537
9442
|
}
|
9538
9443
|
if (checkAltAxis) {
|
9539
9444
|
var _offsetModifierState$2;
|
9540
|
-
var _mainSide = mainAxis ===
|
9541
|
-
var _altSide = mainAxis ===
|
9445
|
+
var _mainSide = mainAxis === 'x' ? (0, $9b56e55559dfbda1$export$1e95b668f3b82d) : (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
9446
|
+
var _altSide = mainAxis === 'x' ? (0, $9b56e55559dfbda1$export$40e543e69a8b3fbb) : (0, $9b56e55559dfbda1$export$79ffe56a765070d2);
|
9542
9447
|
var _offset = popperOffsets[altAxis];
|
9543
|
-
var _len = altAxis ===
|
9448
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
9544
9449
|
var _min = _offset + overflow[_mainSide];
|
9545
9450
|
var _max = _offset - overflow[_altSide];
|
9546
9451
|
var isOriginSide = [
|
@@ -9557,12 +9462,12 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9557
9462
|
state.modifiersData[name] = data;
|
9558
9463
|
} // eslint-disable-next-line import/no-unused-modules
|
9559
9464
|
var $59ad2e7a9286a2b9$export$2e2bcd8739ae039 = {
|
9560
|
-
name:
|
9465
|
+
name: 'preventOverflow',
|
9561
9466
|
enabled: true,
|
9562
|
-
phase:
|
9467
|
+
phase: 'main',
|
9563
9468
|
fn: $59ad2e7a9286a2b9$var$preventOverflow,
|
9564
9469
|
requiresIfExists: [
|
9565
|
-
|
9470
|
+
'offset'
|
9566
9471
|
]
|
9567
9472
|
};
|
9568
9473
|
|
@@ -9577,10 +9482,10 @@ var $59ad2e7a9286a2b9$export$2e2bcd8739ae039 = {
|
|
9577
9482
|
|
9578
9483
|
|
9579
9484
|
var $84962ce4645f8891$var$toPaddingObject = function toPaddingObject(padding, state) {
|
9580
|
-
padding = typeof padding ===
|
9485
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
9581
9486
|
placement: state.placement
|
9582
9487
|
})) : padding;
|
9583
|
-
return (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !==
|
9488
|
+
return (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !== 'number' ? padding : (0, $f5b522f3e076d616$export$2e2bcd8739ae039)(padding, (0, $9b56e55559dfbda1$export$aec2ce47c367b8c3)));
|
9584
9489
|
};
|
9585
9490
|
function $84962ce4645f8891$var$arrow(_ref) {
|
9586
9491
|
var _state$modifiersData$;
|
@@ -9593,16 +9498,16 @@ function $84962ce4645f8891$var$arrow(_ref) {
|
|
9593
9498
|
(0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4),
|
9594
9499
|
(0, $9b56e55559dfbda1$export$79ffe56a765070d2)
|
9595
9500
|
].indexOf(basePlacement) >= 0;
|
9596
|
-
var len = isVertical ?
|
9501
|
+
var len = isVertical ? 'height' : 'width';
|
9597
9502
|
if (!arrowElement || !popperOffsets) return;
|
9598
9503
|
var paddingObject = $84962ce4645f8891$var$toPaddingObject(options.padding, state);
|
9599
9504
|
var arrowRect = (0, $e287ac773d355028$export$2e2bcd8739ae039)(arrowElement);
|
9600
|
-
var minProp = axis ===
|
9601
|
-
var maxProp = axis ===
|
9505
|
+
var minProp = axis === 'y' ? (0, $9b56e55559dfbda1$export$1e95b668f3b82d) : (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
9506
|
+
var maxProp = axis === 'y' ? (0, $9b56e55559dfbda1$export$40e543e69a8b3fbb) : (0, $9b56e55559dfbda1$export$79ffe56a765070d2);
|
9602
9507
|
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
|
9603
9508
|
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
9604
9509
|
var arrowOffsetParent = (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(arrowElement);
|
9605
|
-
var clientSize = arrowOffsetParent ? axis ===
|
9510
|
+
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
9606
9511
|
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
9607
9512
|
// outside of the popper bounds
|
9608
9513
|
var min = paddingObject[minProp];
|
@@ -9614,10 +9519,10 @@ function $84962ce4645f8891$var$arrow(_ref) {
|
|
9614
9519
|
}
|
9615
9520
|
function $84962ce4645f8891$var$effect(_ref2) {
|
9616
9521
|
var state = _ref2.state, options = _ref2.options;
|
9617
|
-
var _options$element = options.element, arrowElement = _options$element === void 0 ?
|
9522
|
+
var _options$element = options.element, arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
9618
9523
|
if (arrowElement == null) return;
|
9619
9524
|
// CSS selector
|
9620
|
-
if (typeof arrowElement ===
|
9525
|
+
if (typeof arrowElement === 'string') {
|
9621
9526
|
arrowElement = state.elements.popper.querySelector(arrowElement);
|
9622
9527
|
if (!arrowElement) return;
|
9623
9528
|
}
|
@@ -9625,16 +9530,16 @@ function $84962ce4645f8891$var$effect(_ref2) {
|
|
9625
9530
|
state.elements.arrow = arrowElement;
|
9626
9531
|
} // eslint-disable-next-line import/no-unused-modules
|
9627
9532
|
var $84962ce4645f8891$export$2e2bcd8739ae039 = {
|
9628
|
-
name:
|
9533
|
+
name: 'arrow',
|
9629
9534
|
enabled: true,
|
9630
|
-
phase:
|
9535
|
+
phase: 'main',
|
9631
9536
|
fn: $84962ce4645f8891$var$arrow,
|
9632
9537
|
effect: $84962ce4645f8891$var$effect,
|
9633
9538
|
requires: [
|
9634
|
-
|
9539
|
+
'popperOffsets'
|
9635
9540
|
],
|
9636
9541
|
requiresIfExists: [
|
9637
|
-
|
9542
|
+
'preventOverflow'
|
9638
9543
|
]
|
9639
9544
|
};
|
9640
9545
|
|
@@ -9669,7 +9574,7 @@ function $c7da519ecac238a3$var$hide(_ref) {
|
|
9669
9574
|
var popperRect = state.rects.popper;
|
9670
9575
|
var preventedOffsets = state.modifiersData.preventOverflow;
|
9671
9576
|
var referenceOverflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9672
|
-
elementContext:
|
9577
|
+
elementContext: 'reference'
|
9673
9578
|
});
|
9674
9579
|
var popperAltOverflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9675
9580
|
altBoundary: true
|
@@ -9685,16 +9590,16 @@ function $c7da519ecac238a3$var$hide(_ref) {
|
|
9685
9590
|
hasPopperEscaped: hasPopperEscaped
|
9686
9591
|
};
|
9687
9592
|
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
9688
|
-
|
9689
|
-
|
9593
|
+
'data-popper-reference-hidden': isReferenceHidden,
|
9594
|
+
'data-popper-escaped': hasPopperEscaped
|
9690
9595
|
});
|
9691
9596
|
} // eslint-disable-next-line import/no-unused-modules
|
9692
9597
|
var $c7da519ecac238a3$export$2e2bcd8739ae039 = {
|
9693
|
-
name:
|
9598
|
+
name: 'hide',
|
9694
9599
|
enabled: true,
|
9695
|
-
phase:
|
9600
|
+
phase: 'main',
|
9696
9601
|
requiresIfExists: [
|
9697
|
-
|
9602
|
+
'preventOverflow'
|
9698
9603
|
],
|
9699
9604
|
fn: $c7da519ecac238a3$var$hide
|
9700
9605
|
};
|
@@ -9743,10 +9648,10 @@ function $b013befce1f6217f$var$getValueAtIndexOrReturn(value, index, defaultValu
|
|
9743
9648
|
}
|
9744
9649
|
function $b013befce1f6217f$var$isType(value, type) {
|
9745
9650
|
var str = ({}).toString.call(value);
|
9746
|
-
return str.indexOf(
|
9651
|
+
return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
|
9747
9652
|
}
|
9748
9653
|
function $b013befce1f6217f$var$invokeWithArgsOrReturn(value, args) {
|
9749
|
-
return typeof value ===
|
9654
|
+
return typeof value === 'function' ? value.apply(void 0, args) : value;
|
9750
9655
|
}
|
9751
9656
|
function $b013befce1f6217f$var$debounce(fn, ms) {
|
9752
9657
|
// Avoid wrapping in `setTimeout` if ms is 0 anyway
|
@@ -9781,7 +9686,7 @@ function $b013befce1f6217f$var$unique(arr) {
|
|
9781
9686
|
});
|
9782
9687
|
}
|
9783
9688
|
function $b013befce1f6217f$var$getBasePlacement(placement) {
|
9784
|
-
return placement.split(
|
9689
|
+
return placement.split('-')[0];
|
9785
9690
|
}
|
9786
9691
|
function $b013befce1f6217f$var$arrayFrom(value) {
|
9787
9692
|
return [].slice.call(value);
|
@@ -9793,21 +9698,21 @@ function $b013befce1f6217f$var$removeUndefinedProps(obj) {
|
|
9793
9698
|
}, {});
|
9794
9699
|
}
|
9795
9700
|
function $b013befce1f6217f$var$div() {
|
9796
|
-
return document.createElement(
|
9701
|
+
return document.createElement('div');
|
9797
9702
|
}
|
9798
9703
|
function $b013befce1f6217f$var$isElement(value) {
|
9799
9704
|
return [
|
9800
|
-
|
9801
|
-
|
9705
|
+
'Element',
|
9706
|
+
'Fragment'
|
9802
9707
|
].some(function(type) {
|
9803
9708
|
return $b013befce1f6217f$var$isType(value, type);
|
9804
9709
|
});
|
9805
9710
|
}
|
9806
9711
|
function $b013befce1f6217f$var$isNodeList(value) {
|
9807
|
-
return $b013befce1f6217f$var$isType(value,
|
9712
|
+
return $b013befce1f6217f$var$isType(value, 'NodeList');
|
9808
9713
|
}
|
9809
9714
|
function $b013befce1f6217f$var$isMouseEvent(value) {
|
9810
|
-
return $b013befce1f6217f$var$isType(value,
|
9715
|
+
return $b013befce1f6217f$var$isType(value, 'MouseEvent');
|
9811
9716
|
}
|
9812
9717
|
function $b013befce1f6217f$var$isReferenceElement(value) {
|
9813
9718
|
return !!(value && value._tippy && value._tippy.reference === value);
|
@@ -9827,7 +9732,7 @@ function $b013befce1f6217f$var$setTransitionDuration(els, value) {
|
|
9827
9732
|
}
|
9828
9733
|
function $b013befce1f6217f$var$setVisibilityState(els, state) {
|
9829
9734
|
els.forEach(function(el) {
|
9830
|
-
if (el) el.setAttribute(
|
9735
|
+
if (el) el.setAttribute('data-state', state);
|
9831
9736
|
});
|
9832
9737
|
}
|
9833
9738
|
function $b013befce1f6217f$var$getOwnerDocument(elementOrElements) {
|
@@ -9843,10 +9748,10 @@ function $b013befce1f6217f$var$isCursorOutsideInteractiveBorder(popperTreeData,
|
|
9843
9748
|
var basePlacement = $b013befce1f6217f$var$getBasePlacement(popperState.placement);
|
9844
9749
|
var offsetData = popperState.modifiersData.offset;
|
9845
9750
|
if (!offsetData) return true;
|
9846
|
-
var topDistance = basePlacement ===
|
9847
|
-
var bottomDistance = basePlacement ===
|
9848
|
-
var leftDistance = basePlacement ===
|
9849
|
-
var rightDistance = basePlacement ===
|
9751
|
+
var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
|
9752
|
+
var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
|
9753
|
+
var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
|
9754
|
+
var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
|
9850
9755
|
var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
|
9851
9756
|
var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
|
9852
9757
|
var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
|
@@ -9858,8 +9763,8 @@ function $b013befce1f6217f$var$updateTransitionEndListener(box, action, listener
|
|
9858
9763
|
var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
|
9859
9764
|
// `webkitTransitionEnd`...
|
9860
9765
|
[
|
9861
|
-
|
9862
|
-
|
9766
|
+
'transitionend',
|
9767
|
+
'webkitTransitionEnd'
|
9863
9768
|
].forEach(function(event) {
|
9864
9769
|
box[method](event, listener);
|
9865
9770
|
});
|
@@ -9888,7 +9793,7 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9888
9793
|
*/ function $b013befce1f6217f$var$onDocumentTouchStart() {
|
9889
9794
|
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
9890
9795
|
$b013befce1f6217f$var$currentInput.isTouch = true;
|
9891
|
-
if (window.performance) document.addEventListener(
|
9796
|
+
if (window.performance) document.addEventListener('mousemove', $b013befce1f6217f$var$onDocumentMouseMove);
|
9892
9797
|
}
|
9893
9798
|
/**
|
9894
9799
|
* When two `mousemove` event are fired consecutively within 20ms, it's assumed
|
@@ -9898,7 +9803,7 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9898
9803
|
var now = performance.now();
|
9899
9804
|
if (now - $b013befce1f6217f$var$lastMouseMoveTime < 20) {
|
9900
9805
|
$b013befce1f6217f$var$currentInput.isTouch = false;
|
9901
|
-
document.removeEventListener(
|
9806
|
+
document.removeEventListener('mousemove', $b013befce1f6217f$var$onDocumentMouseMove);
|
9902
9807
|
}
|
9903
9808
|
$b013befce1f6217f$var$lastMouseMoveTime = now;
|
9904
9809
|
}
|
@@ -9915,22 +9820,22 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9915
9820
|
}
|
9916
9821
|
}
|
9917
9822
|
function $b013befce1f6217f$var$bindGlobalEventListeners() {
|
9918
|
-
document.addEventListener(
|
9919
|
-
window.addEventListener(
|
9823
|
+
document.addEventListener('touchstart', $b013befce1f6217f$var$onDocumentTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
9824
|
+
window.addEventListener('blur', $b013befce1f6217f$var$onWindowBlur);
|
9920
9825
|
}
|
9921
|
-
var $b013befce1f6217f$var$isBrowser = typeof window !==
|
9826
|
+
var $b013befce1f6217f$var$isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
|
9922
9827
|
var $b013befce1f6217f$var$isIE11 = $b013befce1f6217f$var$isBrowser ? !!window.msCrypto : false;
|
9923
9828
|
function $b013befce1f6217f$var$createMemoryLeakWarning(method) {
|
9924
|
-
var txt = method ===
|
9829
|
+
var txt = method === 'destroy' ? 'n already-' : ' ';
|
9925
9830
|
return [
|
9926
9831
|
method + "() was called on a" + txt + "destroyed instance. This is a no-op but",
|
9927
|
-
|
9928
|
-
].join(
|
9832
|
+
'indicates a potential memory leak.'
|
9833
|
+
].join(' ');
|
9929
9834
|
}
|
9930
9835
|
function $b013befce1f6217f$var$clean(value) {
|
9931
9836
|
var spacesAndTabs = /[ \t]{2,}/g;
|
9932
9837
|
var lineStartWithSpaces = /^[ \t]*/gm;
|
9933
|
-
return value.replace(spacesAndTabs,
|
9838
|
+
return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
|
9934
9839
|
}
|
9935
9840
|
function $b013befce1f6217f$var$getDevMessage(message) {
|
9936
9841
|
return $b013befce1f6217f$var$clean("\n %ctippy.js\n\n %c" + $b013befce1f6217f$var$clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
|
@@ -9938,9 +9843,9 @@ function $b013befce1f6217f$var$getDevMessage(message) {
|
|
9938
9843
|
function $b013befce1f6217f$var$getFormattedMessage(message) {
|
9939
9844
|
return [
|
9940
9845
|
$b013befce1f6217f$var$getDevMessage(message),
|
9941
|
-
|
9942
|
-
|
9943
|
-
|
9846
|
+
'color: #00C584; font-size: 1.3em; font-weight: bold;',
|
9847
|
+
'line-height: 1.5',
|
9848
|
+
'color: #a6a095;'
|
9944
9849
|
];
|
9945
9850
|
} // Assume warnings and errors never have the same message
|
9946
9851
|
var $b013befce1f6217f$var$visitedMessages;
|
@@ -9963,17 +9868,17 @@ function $b013befce1f6217f$var$errorWhen(condition, message) {
|
|
9963
9868
|
}
|
9964
9869
|
function $b013befce1f6217f$var$validateTargets(targets) {
|
9965
9870
|
var didPassFalsyValue = !targets;
|
9966
|
-
var didPassPlainObject = Object.prototype.toString.call(targets) ===
|
9871
|
+
var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
|
9967
9872
|
$b013befce1f6217f$var$errorWhen(didPassFalsyValue, [
|
9968
|
-
|
9969
|
-
|
9970
|
-
|
9971
|
-
|
9972
|
-
].join(
|
9873
|
+
'tippy() was passed',
|
9874
|
+
'`' + String(targets) + '`',
|
9875
|
+
'as its targets (first) argument. Valid types are: String, Element,',
|
9876
|
+
'Element[], or NodeList.'
|
9877
|
+
].join(' '));
|
9973
9878
|
$b013befce1f6217f$var$errorWhen(didPassPlainObject, [
|
9974
|
-
|
9975
|
-
|
9976
|
-
].join(
|
9879
|
+
'tippy() was passed a plain object which is not supported as an argument',
|
9880
|
+
'for virtual positioning. Use props.getReferenceClientRect instead.'
|
9881
|
+
].join(' '));
|
9977
9882
|
}
|
9978
9883
|
var $b013befce1f6217f$var$pluginProps = {
|
9979
9884
|
animateFill: false,
|
@@ -9983,20 +9888,20 @@ var $b013befce1f6217f$var$pluginProps = {
|
|
9983
9888
|
};
|
9984
9889
|
var $b013befce1f6217f$var$renderProps = {
|
9985
9890
|
allowHTML: false,
|
9986
|
-
animation:
|
9891
|
+
animation: 'fade',
|
9987
9892
|
arrow: true,
|
9988
|
-
content:
|
9893
|
+
content: '',
|
9989
9894
|
inertia: false,
|
9990
9895
|
maxWidth: 350,
|
9991
|
-
role:
|
9992
|
-
theme:
|
9896
|
+
role: 'tooltip',
|
9897
|
+
theme: '',
|
9993
9898
|
zIndex: 9999
|
9994
9899
|
};
|
9995
9900
|
var $b013befce1f6217f$var$defaultProps = Object.assign({
|
9996
9901
|
appendTo: $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO,
|
9997
9902
|
aria: {
|
9998
|
-
content:
|
9999
|
-
expanded:
|
9903
|
+
content: 'auto',
|
9904
|
+
expanded: 'auto'
|
10000
9905
|
},
|
10001
9906
|
delay: 0,
|
10002
9907
|
duration: [
|
@@ -10009,7 +9914,7 @@ var $b013befce1f6217f$var$defaultProps = Object.assign({
|
|
10009
9914
|
interactive: false,
|
10010
9915
|
interactiveBorder: 2,
|
10011
9916
|
interactiveDebounce: 0,
|
10012
|
-
moveTransition:
|
9917
|
+
moveTransition: '',
|
10013
9918
|
offset: [
|
10014
9919
|
0,
|
10015
9920
|
10
|
@@ -10026,13 +9931,13 @@ var $b013befce1f6217f$var$defaultProps = Object.assign({
|
|
10026
9931
|
onTrigger: function onTrigger() {},
|
10027
9932
|
onUntrigger: function onUntrigger() {},
|
10028
9933
|
onClickOutside: function onClickOutside() {},
|
10029
|
-
placement:
|
9934
|
+
placement: 'top',
|
10030
9935
|
plugins: [],
|
10031
9936
|
popperOptions: {},
|
10032
9937
|
render: null,
|
10033
9938
|
showOnCreate: false,
|
10034
9939
|
touch: true,
|
10035
|
-
trigger:
|
9940
|
+
trigger: 'mouseenter focus',
|
10036
9941
|
triggerTarget: null
|
10037
9942
|
}, $b013befce1f6217f$var$pluginProps, $b013befce1f6217f$var$renderProps);
|
10038
9943
|
var $b013befce1f6217f$var$defaultKeys = Object.keys($b013befce1f6217f$var$defaultProps);
|
@@ -10059,9 +9964,9 @@ function $b013befce1f6217f$var$getDataAttributeProps(reference, plugins) {
|
|
10059
9964
|
plugins: plugins
|
10060
9965
|
}))) : $b013befce1f6217f$var$defaultKeys;
|
10061
9966
|
var props = propKeys.reduce(function(acc, key) {
|
10062
|
-
var valueAsString = (reference.getAttribute("data-tippy-" + key) ||
|
9967
|
+
var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
|
10063
9968
|
if (!valueAsString) return acc;
|
10064
|
-
if (key ===
|
9969
|
+
if (key === 'content') acc[key] = valueAsString;
|
10065
9970
|
else try {
|
10066
9971
|
acc[key] = JSON.parse(valueAsString);
|
10067
9972
|
} catch (e) {
|
@@ -10079,8 +9984,8 @@ function $b013befce1f6217f$var$evaluateProps(reference, props) {
|
|
10079
9984
|
}, props.ignoreAttributes ? {} : $b013befce1f6217f$var$getDataAttributeProps(reference, props.plugins));
|
10080
9985
|
out.aria = Object.assign({}, $b013befce1f6217f$var$defaultProps.aria, out.aria);
|
10081
9986
|
out.aria = {
|
10082
|
-
expanded: out.aria.expanded ===
|
10083
|
-
content: out.aria.content ===
|
9987
|
+
expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
|
9988
|
+
content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
|
10084
9989
|
};
|
10085
9990
|
return out;
|
10086
9991
|
}
|
@@ -10097,15 +10002,15 @@ function $b013befce1f6217f$var$validateProps(partialProps, plugins) {
|
|
10097
10002
|
$b013befce1f6217f$var$warnWhen(didPassUnknownProp, [
|
10098
10003
|
"`" + prop + "`",
|
10099
10004
|
"is not a valid prop. You may have spelled it incorrectly, or if it's",
|
10100
|
-
|
10101
|
-
|
10102
|
-
|
10103
|
-
|
10104
|
-
].join(
|
10005
|
+
'a plugin, forgot to pass it in an array as props.plugins.',
|
10006
|
+
'\n\n',
|
10007
|
+
'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n',
|
10008
|
+
'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'
|
10009
|
+
].join(' '));
|
10105
10010
|
});
|
10106
10011
|
}
|
10107
10012
|
var $b013befce1f6217f$var$innerHTML = function innerHTML() {
|
10108
|
-
return
|
10013
|
+
return 'innerHTML';
|
10109
10014
|
};
|
10110
10015
|
function $b013befce1f6217f$var$dangerouslySetInnerHTML(element, html) {
|
10111
10016
|
element[$b013befce1f6217f$var$innerHTML()] = html;
|
@@ -10122,9 +10027,9 @@ function $b013befce1f6217f$var$createArrowElement(value) {
|
|
10122
10027
|
}
|
10123
10028
|
function $b013befce1f6217f$var$setContent(content, props) {
|
10124
10029
|
if ($b013befce1f6217f$var$isElement(props.content)) {
|
10125
|
-
$b013befce1f6217f$var$dangerouslySetInnerHTML(content,
|
10030
|
+
$b013befce1f6217f$var$dangerouslySetInnerHTML(content, '');
|
10126
10031
|
content.appendChild(props.content);
|
10127
|
-
} else if (typeof props.content !==
|
10032
|
+
} else if (typeof props.content !== 'function') {
|
10128
10033
|
if (props.allowHTML) $b013befce1f6217f$var$dangerouslySetInnerHTML(content, props.content);
|
10129
10034
|
else content.textContent = props.content;
|
10130
10035
|
}
|
@@ -10149,26 +10054,26 @@ function $b013befce1f6217f$var$render(instance) {
|
|
10149
10054
|
var popper = $b013befce1f6217f$var$div();
|
10150
10055
|
var box = $b013befce1f6217f$var$div();
|
10151
10056
|
box.className = $b013befce1f6217f$var$BOX_CLASS;
|
10152
|
-
box.setAttribute(
|
10153
|
-
box.setAttribute(
|
10057
|
+
box.setAttribute('data-state', 'hidden');
|
10058
|
+
box.setAttribute('tabindex', '-1');
|
10154
10059
|
var content = $b013befce1f6217f$var$div();
|
10155
10060
|
content.className = $b013befce1f6217f$var$CONTENT_CLASS;
|
10156
|
-
content.setAttribute(
|
10061
|
+
content.setAttribute('data-state', 'hidden');
|
10157
10062
|
$b013befce1f6217f$var$setContent(content, instance.props);
|
10158
10063
|
popper.appendChild(box);
|
10159
10064
|
box.appendChild(content);
|
10160
10065
|
onUpdate(instance.props, instance.props);
|
10161
10066
|
function onUpdate(prevProps, nextProps) {
|
10162
10067
|
var _getChildren = $b013befce1f6217f$var$getChildren(popper), box = _getChildren.box, content = _getChildren.content, arrow = _getChildren.arrow;
|
10163
|
-
if (nextProps.theme) box.setAttribute(
|
10164
|
-
else box.removeAttribute(
|
10165
|
-
if (typeof nextProps.animation ===
|
10166
|
-
else box.removeAttribute(
|
10167
|
-
if (nextProps.inertia) box.setAttribute(
|
10168
|
-
else box.removeAttribute(
|
10169
|
-
box.style.maxWidth = typeof nextProps.maxWidth ===
|
10170
|
-
if (nextProps.role) box.setAttribute(
|
10171
|
-
else box.removeAttribute(
|
10068
|
+
if (nextProps.theme) box.setAttribute('data-theme', nextProps.theme);
|
10069
|
+
else box.removeAttribute('data-theme');
|
10070
|
+
if (typeof nextProps.animation === 'string') box.setAttribute('data-animation', nextProps.animation);
|
10071
|
+
else box.removeAttribute('data-animation');
|
10072
|
+
if (nextProps.inertia) box.setAttribute('data-inertia', '');
|
10073
|
+
else box.removeAttribute('data-inertia');
|
10074
|
+
box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
|
10075
|
+
if (nextProps.role) box.setAttribute('role', nextProps.role);
|
10076
|
+
else box.removeAttribute('role');
|
10172
10077
|
if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) $b013befce1f6217f$var$setContent(content, instance.props);
|
10173
10078
|
if (nextProps.arrow) {
|
10174
10079
|
if (!arrow) box.appendChild($b013befce1f6217f$var$createArrowElement(nextProps.arrow));
|
@@ -10249,7 +10154,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10249
10154
|
// Initial mutations
|
10250
10155
|
// ===========================================================================
|
10251
10156
|
var _props$render = props.render(instance), popper = _props$render.popper, onUpdate = _props$render.onUpdate;
|
10252
|
-
popper.setAttribute(
|
10157
|
+
popper.setAttribute('data-tippy-root', '');
|
10253
10158
|
popper.id = "tippy-" + instance.id;
|
10254
10159
|
instance.popper = popper;
|
10255
10160
|
reference._tippy = instance;
|
@@ -10257,21 +10162,21 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10257
10162
|
var pluginsHooks = plugins.map(function(plugin) {
|
10258
10163
|
return plugin.fn(instance);
|
10259
10164
|
});
|
10260
|
-
var hasAriaExpanded = reference.hasAttribute(
|
10165
|
+
var hasAriaExpanded = reference.hasAttribute('aria-expanded');
|
10261
10166
|
addListeners();
|
10262
10167
|
handleAriaExpandedAttribute();
|
10263
10168
|
handleStyles();
|
10264
|
-
invokeHook(
|
10169
|
+
invokeHook('onCreate', [
|
10265
10170
|
instance
|
10266
10171
|
]);
|
10267
10172
|
if (props.showOnCreate) scheduleShow();
|
10268
10173
|
// Prevent a tippy with a delay from hiding if the cursor left then returned
|
10269
10174
|
// before it started hiding
|
10270
|
-
popper.addEventListener(
|
10175
|
+
popper.addEventListener('mouseenter', function() {
|
10271
10176
|
if (instance.props.interactive && instance.state.isVisible) instance.clearDelayTimeouts();
|
10272
10177
|
});
|
10273
|
-
popper.addEventListener(
|
10274
|
-
if (instance.props.interactive && instance.props.trigger.indexOf(
|
10178
|
+
popper.addEventListener('mouseleave', function() {
|
10179
|
+
if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) getDocument().addEventListener('mousemove', debouncedOnMouseMove);
|
10275
10180
|
});
|
10276
10181
|
return instance; // ===========================================================================
|
10277
10182
|
// 🔒 Private methods
|
@@ -10284,7 +10189,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10284
10189
|
];
|
10285
10190
|
}
|
10286
10191
|
function getIsCustomTouchBehavior() {
|
10287
|
-
return getNormalizedTouchSettings()[0] ===
|
10192
|
+
return getNormalizedTouchSettings()[0] === 'hold';
|
10288
10193
|
}
|
10289
10194
|
function getIsDefaultRenderFn() {
|
10290
10195
|
var _instance$props$rende;
|
@@ -10305,12 +10210,12 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10305
10210
|
// For touch or keyboard input, force `0` delay for UX reasons
|
10306
10211
|
// Also if the instance is mounted but not visible (transitioning out),
|
10307
10212
|
// ignore delay
|
10308
|
-
if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type ===
|
10213
|
+
if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') return 0;
|
10309
10214
|
return $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, $b013befce1f6217f$var$defaultProps.delay);
|
10310
10215
|
}
|
10311
10216
|
function handleStyles(fromHide) {
|
10312
10217
|
if (fromHide === void 0) fromHide = false;
|
10313
|
-
popper.style.pointerEvents = instance.props.interactive && !fromHide ?
|
10218
|
+
popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
|
10314
10219
|
popper.style.zIndex = "" + instance.props.zIndex;
|
10315
10220
|
}
|
10316
10221
|
function invokeHook(hook, args, shouldInvokePropsHook) {
|
@@ -10333,7 +10238,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10333
10238
|
var currentValue = node.getAttribute(attr);
|
10334
10239
|
if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
|
10335
10240
|
else {
|
10336
|
-
var nextValue = currentValue && currentValue.replace(id,
|
10241
|
+
var nextValue = currentValue && currentValue.replace(id, '').trim();
|
10337
10242
|
if (nextValue) node.setAttribute(attr, nextValue);
|
10338
10243
|
else node.removeAttribute(attr);
|
10339
10244
|
}
|
@@ -10343,12 +10248,12 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10343
10248
|
if (hasAriaExpanded || !instance.props.aria.expanded) return;
|
10344
10249
|
var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
|
10345
10250
|
nodes.forEach(function(node) {
|
10346
|
-
if (instance.props.interactive) node.setAttribute(
|
10347
|
-
else node.removeAttribute(
|
10251
|
+
if (instance.props.interactive) node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
|
10252
|
+
else node.removeAttribute('aria-expanded');
|
10348
10253
|
});
|
10349
10254
|
}
|
10350
10255
|
function cleanupInteractiveMouseListeners() {
|
10351
|
-
getDocument().removeEventListener(
|
10256
|
+
getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
|
10352
10257
|
$b013befce1f6217f$var$mouseMoveListeners = $b013befce1f6217f$var$mouseMoveListeners.filter(function(listener) {
|
10353
10258
|
return listener !== debouncedOnMouseMove;
|
10354
10259
|
});
|
@@ -10356,7 +10261,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10356
10261
|
function onDocumentPress(event) {
|
10357
10262
|
// Moved finger to scroll instead of an intentional tap outside
|
10358
10263
|
if ($b013befce1f6217f$var$currentInput.isTouch) {
|
10359
|
-
if (didTouchMove || event.type ===
|
10264
|
+
if (didTouchMove || event.type === 'mousedown') return;
|
10360
10265
|
}
|
10361
10266
|
var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
|
10362
10267
|
if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget)) return;
|
@@ -10365,8 +10270,8 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10365
10270
|
return $b013befce1f6217f$var$actualContains(el, actualTarget);
|
10366
10271
|
})) {
|
10367
10272
|
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
10368
|
-
if (instance.state.isVisible && instance.props.trigger.indexOf(
|
10369
|
-
} else invokeHook(
|
10273
|
+
if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) return;
|
10274
|
+
} else invokeHook('onClickOutside', [
|
10370
10275
|
instance,
|
10371
10276
|
event
|
10372
10277
|
]);
|
@@ -10392,17 +10297,17 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10392
10297
|
}
|
10393
10298
|
function addDocumentPress() {
|
10394
10299
|
var doc = getDocument();
|
10395
|
-
doc.addEventListener(
|
10396
|
-
doc.addEventListener(
|
10397
|
-
doc.addEventListener(
|
10398
|
-
doc.addEventListener(
|
10300
|
+
doc.addEventListener('mousedown', onDocumentPress, true);
|
10301
|
+
doc.addEventListener('touchend', onDocumentPress, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10302
|
+
doc.addEventListener('touchstart', onTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10303
|
+
doc.addEventListener('touchmove', onTouchMove, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10399
10304
|
}
|
10400
10305
|
function removeDocumentPress() {
|
10401
10306
|
var doc = getDocument();
|
10402
|
-
doc.removeEventListener(
|
10403
|
-
doc.removeEventListener(
|
10404
|
-
doc.removeEventListener(
|
10405
|
-
doc.removeEventListener(
|
10307
|
+
doc.removeEventListener('mousedown', onDocumentPress, true);
|
10308
|
+
doc.removeEventListener('touchend', onDocumentPress, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10309
|
+
doc.removeEventListener('touchstart', onTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10310
|
+
doc.removeEventListener('touchmove', onTouchMove, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10406
10311
|
}
|
10407
10312
|
function onTransitionedOut(duration, callback) {
|
10408
10313
|
onTransitionEnd(duration, function() {
|
@@ -10416,14 +10321,14 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10416
10321
|
var box = getDefaultTemplateChildren().box;
|
10417
10322
|
function listener(event) {
|
10418
10323
|
if (event.target === box) {
|
10419
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10324
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'remove', listener);
|
10420
10325
|
callback();
|
10421
10326
|
}
|
10422
10327
|
} // Make callback synchronous if duration is 0
|
10423
10328
|
// `transitionend` won't fire otherwise
|
10424
10329
|
if (duration === 0) return callback();
|
10425
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10426
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10330
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
|
10331
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'add', listener);
|
10427
10332
|
currentTransitionEndListener = listener;
|
10428
10333
|
}
|
10429
10334
|
function on(eventType, handler, options) {
|
@@ -10441,25 +10346,25 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10441
10346
|
}
|
10442
10347
|
function addListeners() {
|
10443
10348
|
if (getIsCustomTouchBehavior()) {
|
10444
|
-
on(
|
10349
|
+
on('touchstart', onTrigger, {
|
10445
10350
|
passive: true
|
10446
10351
|
});
|
10447
|
-
on(
|
10352
|
+
on('touchend', onMouseLeave, {
|
10448
10353
|
passive: true
|
10449
10354
|
});
|
10450
10355
|
}
|
10451
10356
|
$b013befce1f6217f$var$splitBySpaces(instance.props.trigger).forEach(function(eventType) {
|
10452
|
-
if (eventType ===
|
10357
|
+
if (eventType === 'manual') return;
|
10453
10358
|
on(eventType, onTrigger);
|
10454
10359
|
switch(eventType){
|
10455
|
-
case
|
10456
|
-
on(
|
10360
|
+
case 'mouseenter':
|
10361
|
+
on('mouseleave', onMouseLeave);
|
10457
10362
|
break;
|
10458
|
-
case
|
10459
|
-
on($b013befce1f6217f$var$isIE11 ?
|
10363
|
+
case 'focus':
|
10364
|
+
on($b013befce1f6217f$var$isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
|
10460
10365
|
break;
|
10461
|
-
case
|
10462
|
-
on(
|
10366
|
+
case 'focusin':
|
10367
|
+
on('focusout', onBlurOrFocusOut);
|
10463
10368
|
break;
|
10464
10369
|
}
|
10465
10370
|
});
|
@@ -10475,7 +10380,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10475
10380
|
var _lastTriggerEvent;
|
10476
10381
|
var shouldScheduleClickHide = false;
|
10477
10382
|
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
|
10478
|
-
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) ===
|
10383
|
+
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
|
10479
10384
|
lastTriggerEvent = event;
|
10480
10385
|
currentTarget = event.currentTarget;
|
10481
10386
|
handleAriaExpandedAttribute();
|
@@ -10487,15 +10392,15 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10487
10392
|
return listener(event);
|
10488
10393
|
});
|
10489
10394
|
// Toggle show/hide when clicking click-triggered tooltips
|
10490
|
-
if (event.type ===
|
10395
|
+
if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
|
10491
10396
|
else scheduleShow(event);
|
10492
|
-
if (event.type ===
|
10397
|
+
if (event.type === 'click') isVisibleFromClick = !shouldScheduleClickHide;
|
10493
10398
|
if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
|
10494
10399
|
}
|
10495
10400
|
function onMouseMove(event) {
|
10496
10401
|
var target = event.target;
|
10497
10402
|
var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
|
10498
|
-
if (event.type ===
|
10403
|
+
if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) return;
|
10499
10404
|
var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper) {
|
10500
10405
|
var _instance$popperInsta;
|
10501
10406
|
var instance = popper._tippy;
|
@@ -10513,7 +10418,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10513
10418
|
}
|
10514
10419
|
}
|
10515
10420
|
function onMouseLeave(event) {
|
10516
|
-
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf(
|
10421
|
+
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
|
10517
10422
|
if (shouldBail) return;
|
10518
10423
|
if (instance.props.interactive) {
|
10519
10424
|
instance.hideWithInteractivity(event);
|
@@ -10522,13 +10427,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10522
10427
|
scheduleHide(event);
|
10523
10428
|
}
|
10524
10429
|
function onBlurOrFocusOut(event) {
|
10525
|
-
if (instance.props.trigger.indexOf(
|
10430
|
+
if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) return;
|
10526
10431
|
// If focus was moved to within the popper
|
10527
10432
|
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
|
10528
10433
|
scheduleHide(event);
|
10529
10434
|
}
|
10530
10435
|
function isEventListenerStopped(event) {
|
10531
|
-
return $b013befce1f6217f$var$currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf(
|
10436
|
+
return $b013befce1f6217f$var$currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
|
10532
10437
|
}
|
10533
10438
|
function createPopperInstance() {
|
10534
10439
|
destroyPopperInstance();
|
@@ -10539,23 +10444,23 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10539
10444
|
contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
|
10540
10445
|
} : reference;
|
10541
10446
|
var tippyModifier = {
|
10542
|
-
name:
|
10447
|
+
name: '$$tippy',
|
10543
10448
|
enabled: true,
|
10544
|
-
phase:
|
10449
|
+
phase: 'beforeWrite',
|
10545
10450
|
requires: [
|
10546
|
-
|
10451
|
+
'computeStyles'
|
10547
10452
|
],
|
10548
10453
|
fn: function fn(_ref2) {
|
10549
10454
|
var state = _ref2.state;
|
10550
10455
|
if (getIsDefaultRenderFn()) {
|
10551
10456
|
var _getDefaultTemplateCh = getDefaultTemplateChildren(), box = _getDefaultTemplateCh.box;
|
10552
10457
|
[
|
10553
|
-
|
10554
|
-
|
10555
|
-
|
10458
|
+
'placement',
|
10459
|
+
'reference-hidden',
|
10460
|
+
'escaped'
|
10556
10461
|
].forEach(function(attr) {
|
10557
|
-
if (attr ===
|
10558
|
-
else if (state.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr,
|
10462
|
+
if (attr === 'placement') box.setAttribute('data-placement', state.placement);
|
10463
|
+
else if (state.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr, '');
|
10559
10464
|
else box.removeAttribute("data-" + attr);
|
10560
10465
|
});
|
10561
10466
|
state.attributes.popper = {};
|
@@ -10564,13 +10469,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10564
10469
|
};
|
10565
10470
|
var modifiers = [
|
10566
10471
|
{
|
10567
|
-
name:
|
10472
|
+
name: 'offset',
|
10568
10473
|
options: {
|
10569
10474
|
offset: offset
|
10570
10475
|
}
|
10571
10476
|
},
|
10572
10477
|
{
|
10573
|
-
name:
|
10478
|
+
name: 'preventOverflow',
|
10574
10479
|
options: {
|
10575
10480
|
padding: {
|
10576
10481
|
top: 2,
|
@@ -10581,13 +10486,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10581
10486
|
}
|
10582
10487
|
},
|
10583
10488
|
{
|
10584
|
-
name:
|
10489
|
+
name: 'flip',
|
10585
10490
|
options: {
|
10586
10491
|
padding: 5
|
10587
10492
|
}
|
10588
10493
|
},
|
10589
10494
|
{
|
10590
|
-
name:
|
10495
|
+
name: 'computeStyles',
|
10591
10496
|
options: {
|
10592
10497
|
adaptive: !moveTransition
|
10593
10498
|
}
|
@@ -10595,7 +10500,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10595
10500
|
tippyModifier
|
10596
10501
|
];
|
10597
10502
|
if (getIsDefaultRenderFn() && arrow) modifiers.push({
|
10598
|
-
name:
|
10503
|
+
name: 'arrow',
|
10599
10504
|
options: {
|
10600
10505
|
element: arrow,
|
10601
10506
|
padding: 3
|
@@ -10622,7 +10527,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10622
10527
|
// If there are clipping issues, the user can specify a different appendTo
|
10623
10528
|
// and ensure focus management is handled correctly manually
|
10624
10529
|
var node = getCurrentTarget();
|
10625
|
-
if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo ===
|
10530
|
+
if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') parentNode = node.parentNode;
|
10626
10531
|
else parentNode = $b013befce1f6217f$var$invokeWithArgsOrReturn(appendTo, [
|
10627
10532
|
node
|
10628
10533
|
]);
|
@@ -10633,18 +10538,18 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10633
10538
|
createPopperInstance();
|
10634
10539
|
}
|
10635
10540
|
function getNestedPopperTree() {
|
10636
|
-
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll(
|
10541
|
+
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
|
10637
10542
|
}
|
10638
10543
|
function scheduleShow(event) {
|
10639
10544
|
instance.clearDelayTimeouts();
|
10640
|
-
if (event) invokeHook(
|
10545
|
+
if (event) invokeHook('onTrigger', [
|
10641
10546
|
instance,
|
10642
10547
|
event
|
10643
10548
|
]);
|
10644
10549
|
addDocumentPress();
|
10645
10550
|
var delay = getDelay(true);
|
10646
10551
|
var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
|
10647
|
-
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue ===
|
10552
|
+
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === 'hold' && touchDelay) delay = touchDelay;
|
10648
10553
|
if (delay) showTimeout = setTimeout(function() {
|
10649
10554
|
instance.show();
|
10650
10555
|
}, delay);
|
@@ -10652,7 +10557,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10652
10557
|
}
|
10653
10558
|
function scheduleHide(event) {
|
10654
10559
|
instance.clearDelayTimeouts();
|
10655
|
-
invokeHook(
|
10560
|
+
invokeHook('onUntrigger', [
|
10656
10561
|
instance,
|
10657
10562
|
event
|
10658
10563
|
]);
|
@@ -10663,9 +10568,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10663
10568
|
// from onMouseLeave so must intercept scheduled hides from mousemove/leave
|
10664
10569
|
// events when trigger contains mouseenter and click, and the tip is
|
10665
10570
|
// currently shown as a result of a click.
|
10666
|
-
if (instance.props.trigger.indexOf(
|
10667
|
-
|
10668
|
-
|
10571
|
+
if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && [
|
10572
|
+
'mouseleave',
|
10573
|
+
'mousemove'
|
10669
10574
|
].indexOf(event.type) >= 0 && isVisibleFromClick) return;
|
10670
10575
|
var delay = getDelay(false);
|
10671
10576
|
if (delay) hideTimeout = setTimeout(function() {
|
@@ -10695,7 +10600,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10695
10600
|
}
|
10696
10601
|
function setProps(partialProps) {
|
10697
10602
|
if (instance.state.isDestroyed) return;
|
10698
|
-
invokeHook(
|
10603
|
+
invokeHook('onBeforeUpdate', [
|
10699
10604
|
instance,
|
10700
10605
|
partialProps
|
10701
10606
|
]);
|
@@ -10711,9 +10616,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10711
10616
|
debouncedOnMouseMove = $b013befce1f6217f$var$debounce(onMouseMove, nextProps.interactiveDebounce);
|
10712
10617
|
} // Ensure stale aria-expanded attributes are removed
|
10713
10618
|
if (prevProps.triggerTarget && !nextProps.triggerTarget) $b013befce1f6217f$var$normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
|
10714
|
-
node.removeAttribute(
|
10619
|
+
node.removeAttribute('aria-expanded');
|
10715
10620
|
});
|
10716
|
-
else if (nextProps.triggerTarget) reference.removeAttribute(
|
10621
|
+
else if (nextProps.triggerTarget) reference.removeAttribute('aria-expanded');
|
10717
10622
|
handleAriaExpandedAttribute();
|
10718
10623
|
handleStyles();
|
10719
10624
|
if (onUpdate) onUpdate(prevProps, nextProps);
|
@@ -10728,7 +10633,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10728
10633
|
requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
|
10729
10634
|
});
|
10730
10635
|
}
|
10731
|
-
invokeHook(
|
10636
|
+
invokeHook('onAfterUpdate', [
|
10732
10637
|
instance,
|
10733
10638
|
partialProps
|
10734
10639
|
]);
|
@@ -10748,16 +10653,16 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10748
10653
|
// Normalize `disabled` behavior across browsers.
|
10749
10654
|
// Firefox allows events on disabled elements, but Chrome doesn't.
|
10750
10655
|
// Using a wrapper element (i.e. <span>) is recommended.
|
10751
|
-
if (getCurrentTarget().hasAttribute(
|
10752
|
-
invokeHook(
|
10656
|
+
if (getCurrentTarget().hasAttribute('disabled')) return;
|
10657
|
+
invokeHook('onShow', [
|
10753
10658
|
instance
|
10754
10659
|
], false);
|
10755
10660
|
if (instance.props.onShow(instance) === false) return;
|
10756
10661
|
instance.state.isVisible = true;
|
10757
|
-
if (getIsDefaultRenderFn()) popper.style.visibility =
|
10662
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = 'visible';
|
10758
10663
|
handleStyles();
|
10759
10664
|
addDocumentPress();
|
10760
|
-
if (!instance.state.isMounted) popper.style.transition =
|
10665
|
+
if (!instance.state.isMounted) popper.style.transition = 'none';
|
10761
10666
|
// If flipping to the opposite side after hiding at least once, the
|
10762
10667
|
// animation will use the wrong placement without resetting the duration
|
10763
10668
|
if (getIsDefaultRenderFn()) {
|
@@ -10782,19 +10687,19 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10782
10687
|
$b013befce1f6217f$var$setVisibilityState([
|
10783
10688
|
_box,
|
10784
10689
|
_content
|
10785
|
-
],
|
10690
|
+
], 'visible');
|
10786
10691
|
}
|
10787
10692
|
handleAriaContentAttribute();
|
10788
10693
|
handleAriaExpandedAttribute();
|
10789
10694
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
|
10790
10695
|
// popper has been positioned for the first time
|
10791
10696
|
(_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
|
10792
|
-
invokeHook(
|
10697
|
+
invokeHook('onMount', [
|
10793
10698
|
instance
|
10794
10699
|
]);
|
10795
10700
|
if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
|
10796
10701
|
instance.state.isShown = true;
|
10797
|
-
invokeHook(
|
10702
|
+
invokeHook('onShown', [
|
10798
10703
|
instance
|
10799
10704
|
]);
|
10800
10705
|
});
|
@@ -10807,7 +10712,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10807
10712
|
var isDisabled = !instance.state.isEnabled;
|
10808
10713
|
var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 1, $b013befce1f6217f$var$defaultProps.duration);
|
10809
10714
|
if (isAlreadyHidden || isDestroyed || isDisabled) return;
|
10810
|
-
invokeHook(
|
10715
|
+
invokeHook('onHide', [
|
10811
10716
|
instance
|
10812
10717
|
], false);
|
10813
10718
|
if (instance.props.onHide(instance) === false) return;
|
@@ -10815,7 +10720,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10815
10720
|
instance.state.isShown = false;
|
10816
10721
|
ignoreOnFirstUpdate = false;
|
10817
10722
|
isVisibleFromClick = false;
|
10818
|
-
if (getIsDefaultRenderFn()) popper.style.visibility =
|
10723
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = 'hidden';
|
10819
10724
|
cleanupInteractiveMouseListeners();
|
10820
10725
|
removeDocumentPress();
|
10821
10726
|
handleStyles(true);
|
@@ -10829,7 +10734,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10829
10734
|
$b013befce1f6217f$var$setVisibilityState([
|
10830
10735
|
box,
|
10831
10736
|
content
|
10832
|
-
],
|
10737
|
+
], 'hidden');
|
10833
10738
|
}
|
10834
10739
|
}
|
10835
10740
|
handleAriaContentAttribute();
|
@@ -10839,7 +10744,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10839
10744
|
} else instance.unmount();
|
10840
10745
|
}
|
10841
10746
|
function hideWithInteractivity(event) {
|
10842
|
-
getDocument().addEventListener(
|
10747
|
+
getDocument().addEventListener('mousemove', debouncedOnMouseMove);
|
10843
10748
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mouseMoveListeners, debouncedOnMouseMove);
|
10844
10749
|
debouncedOnMouseMove(event);
|
10845
10750
|
}
|
@@ -10857,7 +10762,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10857
10762
|
return i !== instance;
|
10858
10763
|
});
|
10859
10764
|
instance.state.isMounted = false;
|
10860
|
-
invokeHook(
|
10765
|
+
invokeHook('onHidden', [
|
10861
10766
|
instance
|
10862
10767
|
]);
|
10863
10768
|
}
|
@@ -10868,7 +10773,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10868
10773
|
removeListeners();
|
10869
10774
|
delete reference._tippy;
|
10870
10775
|
instance.state.isDestroyed = true;
|
10871
|
-
invokeHook(
|
10776
|
+
invokeHook('onDestroy', [
|
10872
10777
|
instance
|
10873
10778
|
]);
|
10874
10779
|
}
|
@@ -10918,12 +10823,12 @@ var $b013befce1f6217f$var$applyStylesModifier = Object.assign({}, (0, $dfb41fce0
|
|
10918
10823
|
var initialStyles = {
|
10919
10824
|
popper: {
|
10920
10825
|
position: state.options.strategy,
|
10921
|
-
left:
|
10922
|
-
top:
|
10923
|
-
margin:
|
10826
|
+
left: '0',
|
10827
|
+
top: '0',
|
10828
|
+
margin: '0'
|
10924
10829
|
},
|
10925
10830
|
arrow: {
|
10926
|
-
position:
|
10831
|
+
position: 'absolute'
|
10927
10832
|
},
|
10928
10833
|
reference: {}
|
10929
10834
|
};
|
@@ -10978,12 +10883,12 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10978
10883
|
var index = triggerTargets.indexOf(target); // bail-out
|
10979
10884
|
if (target === currentTarget) return;
|
10980
10885
|
currentTarget = target;
|
10981
|
-
var overrideProps = (overrides || []).concat(
|
10886
|
+
var overrideProps = (overrides || []).concat('content').reduce(function(acc, prop) {
|
10982
10887
|
acc[prop] = individualInstances[index].props[prop];
|
10983
10888
|
return acc;
|
10984
10889
|
}, {});
|
10985
10890
|
singleton.setProps(Object.assign({}, overrideProps, {
|
10986
|
-
getReferenceClientRect: typeof overrideProps.getReferenceClientRect ===
|
10891
|
+
getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function() {
|
10987
10892
|
var _references$index;
|
10988
10893
|
return (_references$index = references[index]) == null ? void 0 : _references$index.getBoundingClientRect();
|
10989
10894
|
}
|
@@ -11020,7 +10925,7 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
11020
10925
|
}
|
11021
10926
|
};
|
11022
10927
|
var singleton = $b013befce1f6217f$var$tippy($b013befce1f6217f$var$div(), Object.assign({}, $b013befce1f6217f$var$removeProperties(optionalProps, [
|
11023
|
-
|
10928
|
+
'overrides'
|
11024
10929
|
]), {
|
11025
10930
|
plugins: [
|
11026
10931
|
plugin
|
@@ -11041,7 +10946,7 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
11041
10946
|
// programmatic call with no params when already visible (do nothing again)
|
11042
10947
|
if (currentTarget && target == null) return;
|
11043
10948
|
// target is index of instance
|
11044
|
-
if (typeof target ===
|
10949
|
+
if (typeof target === 'number') return references[target] && prepareInstance(singleton, references[target]);
|
11045
10950
|
// target is a child tippy instance
|
11046
10951
|
if (individualInstances.indexOf(target) >= 0) {
|
11047
10952
|
var ref = target.reference;
|
@@ -11085,9 +10990,9 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
11085
10990
|
return singleton;
|
11086
10991
|
};
|
11087
10992
|
var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
11088
|
-
mouseover:
|
11089
|
-
focusin:
|
11090
|
-
click:
|
10993
|
+
mouseover: 'mouseenter',
|
10994
|
+
focusin: 'focus',
|
10995
|
+
click: 'click'
|
11091
10996
|
};
|
11092
10997
|
/**
|
11093
10998
|
* Creates a delegate instance that controls the creation of tippy instances
|
@@ -11098,10 +11003,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11098
11003
|
var disabled = false;
|
11099
11004
|
var target = props.target;
|
11100
11005
|
var nativeProps = $b013befce1f6217f$var$removeProperties(props, [
|
11101
|
-
|
11006
|
+
'target'
|
11102
11007
|
]);
|
11103
11008
|
var parentProps = Object.assign({}, nativeProps, {
|
11104
|
-
trigger:
|
11009
|
+
trigger: 'manual',
|
11105
11010
|
touch: false
|
11106
11011
|
});
|
11107
11012
|
var childProps = Object.assign({
|
@@ -11119,10 +11024,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11119
11024
|
// 1. Check `data-tippy-trigger` attribute on target node
|
11120
11025
|
// 2. Fallback to `trigger` passed to `delegate()`
|
11121
11026
|
// 3. Fallback to `defaultProps.trigger`
|
11122
|
-
var trigger = targetNode.getAttribute(
|
11027
|
+
var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || $b013befce1f6217f$var$defaultProps.trigger; // @ts-ignore
|
11123
11028
|
if (targetNode._tippy) return;
|
11124
|
-
if (event.type ===
|
11125
|
-
if (event.type !==
|
11029
|
+
if (event.type === 'touchstart' && typeof childProps.touch === 'boolean') return;
|
11030
|
+
if (event.type !== 'touchstart' && trigger.indexOf($b013befce1f6217f$var$BUBBLING_EVENTS_MAP[event.type]) < 0) return;
|
11126
11031
|
var instance = $b013befce1f6217f$var$tippy(targetNode, childProps);
|
11127
11032
|
if (instance) childTippyInstances = childTippyInstances.concat(instance);
|
11128
11033
|
}
|
@@ -11138,10 +11043,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11138
11043
|
}
|
11139
11044
|
function addEventListeners(instance) {
|
11140
11045
|
var reference = instance.reference;
|
11141
|
-
on(reference,
|
11142
|
-
on(reference,
|
11143
|
-
on(reference,
|
11144
|
-
on(reference,
|
11046
|
+
on(reference, 'touchstart', onTrigger, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
11047
|
+
on(reference, 'mouseover', onTrigger);
|
11048
|
+
on(reference, 'focusin', onTrigger);
|
11049
|
+
on(reference, 'click', onTrigger);
|
11145
11050
|
}
|
11146
11051
|
function removeEventListeners() {
|
11147
11052
|
listeners.forEach(function(_ref) {
|
@@ -11183,7 +11088,7 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11183
11088
|
return returnValue;
|
11184
11089
|
}
|
11185
11090
|
var $b013befce1f6217f$export$dd8ded329c01db79 = {
|
11186
|
-
name:
|
11091
|
+
name: 'animateFill',
|
11187
11092
|
defaultValue: false,
|
11188
11093
|
fn: function fn(instance) {
|
11189
11094
|
var _instance$props$rende;
|
@@ -11195,34 +11100,34 @@ var $b013befce1f6217f$export$dd8ded329c01db79 = {
|
|
11195
11100
|
onCreate: function onCreate() {
|
11196
11101
|
if (backdrop) {
|
11197
11102
|
box.insertBefore(backdrop, box.firstElementChild);
|
11198
|
-
box.setAttribute(
|
11199
|
-
box.style.overflow =
|
11103
|
+
box.setAttribute('data-animatefill', '');
|
11104
|
+
box.style.overflow = 'hidden';
|
11200
11105
|
instance.setProps({
|
11201
11106
|
arrow: false,
|
11202
|
-
animation:
|
11107
|
+
animation: 'shift-away'
|
11203
11108
|
});
|
11204
11109
|
}
|
11205
11110
|
},
|
11206
11111
|
onMount: function onMount() {
|
11207
11112
|
if (backdrop) {
|
11208
11113
|
var transitionDuration = box.style.transitionDuration;
|
11209
|
-
var duration = Number(transitionDuration.replace(
|
11114
|
+
var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
|
11210
11115
|
// tooltip element. `clip-path` is the other alternative but is not
|
11211
11116
|
// well-supported and is buggy on some devices.
|
11212
11117
|
content.style.transitionDelay = Math.round(duration / 10) + "ms";
|
11213
11118
|
backdrop.style.transitionDuration = transitionDuration;
|
11214
11119
|
$b013befce1f6217f$var$setVisibilityState([
|
11215
11120
|
backdrop
|
11216
|
-
],
|
11121
|
+
], 'visible');
|
11217
11122
|
}
|
11218
11123
|
},
|
11219
11124
|
onShow: function onShow() {
|
11220
|
-
if (backdrop) backdrop.style.transitionDuration =
|
11125
|
+
if (backdrop) backdrop.style.transitionDuration = '0ms';
|
11221
11126
|
},
|
11222
11127
|
onHide: function onHide() {
|
11223
11128
|
if (backdrop) $b013befce1f6217f$var$setVisibilityState([
|
11224
11129
|
backdrop
|
11225
|
-
],
|
11130
|
+
], 'hidden');
|
11226
11131
|
}
|
11227
11132
|
};
|
11228
11133
|
}
|
@@ -11232,7 +11137,7 @@ function $b013befce1f6217f$var$createBackdropElement() {
|
|
11232
11137
|
backdrop.className = $b013befce1f6217f$var$BACKDROP_CLASS;
|
11233
11138
|
$b013befce1f6217f$var$setVisibilityState([
|
11234
11139
|
backdrop
|
11235
|
-
],
|
11140
|
+
], 'hidden');
|
11236
11141
|
return backdrop;
|
11237
11142
|
}
|
11238
11143
|
var $b013befce1f6217f$var$mouseCoords = {
|
@@ -11248,13 +11153,13 @@ function $b013befce1f6217f$var$storeMouseCoords(_ref) {
|
|
11248
11153
|
};
|
11249
11154
|
}
|
11250
11155
|
function $b013befce1f6217f$var$addMouseCoordsListener(doc) {
|
11251
|
-
doc.addEventListener(
|
11156
|
+
doc.addEventListener('mousemove', $b013befce1f6217f$var$storeMouseCoords);
|
11252
11157
|
}
|
11253
11158
|
function $b013befce1f6217f$var$removeMouseCoordsListener(doc) {
|
11254
|
-
doc.removeEventListener(
|
11159
|
+
doc.removeEventListener('mousemove', $b013befce1f6217f$var$storeMouseCoords);
|
11255
11160
|
}
|
11256
11161
|
var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
11257
|
-
name:
|
11162
|
+
name: 'followCursor',
|
11258
11163
|
defaultValue: false,
|
11259
11164
|
fn: function fn(instance) {
|
11260
11165
|
var reference = instance.reference;
|
@@ -11264,13 +11169,13 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11264
11169
|
var isUnmounted = true;
|
11265
11170
|
var prevProps = instance.props;
|
11266
11171
|
function getIsInitialBehavior() {
|
11267
|
-
return instance.props.followCursor ===
|
11172
|
+
return instance.props.followCursor === 'initial' && instance.state.isVisible;
|
11268
11173
|
}
|
11269
11174
|
function addListener() {
|
11270
|
-
doc.addEventListener(
|
11175
|
+
doc.addEventListener('mousemove', onMouseMove);
|
11271
11176
|
}
|
11272
11177
|
function removeListener() {
|
11273
|
-
doc.removeEventListener(
|
11178
|
+
doc.removeEventListener('mousemove', onMouseMove);
|
11274
11179
|
}
|
11275
11180
|
function unsetGetReferenceClientRect() {
|
11276
11181
|
isInternalUpdate = true;
|
@@ -11294,14 +11199,14 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11294
11199
|
var rect = reference.getBoundingClientRect();
|
11295
11200
|
var x = clientX;
|
11296
11201
|
var y = clientY;
|
11297
|
-
if (followCursor ===
|
11202
|
+
if (followCursor === 'initial') {
|
11298
11203
|
x = rect.left + relativeX;
|
11299
11204
|
y = rect.top + relativeY;
|
11300
11205
|
}
|
11301
|
-
var top = followCursor ===
|
11302
|
-
var right = followCursor ===
|
11303
|
-
var bottom = followCursor ===
|
11304
|
-
var left = followCursor ===
|
11206
|
+
var top = followCursor === 'horizontal' ? rect.top : y;
|
11207
|
+
var right = followCursor === 'vertical' ? rect.right : x;
|
11208
|
+
var bottom = followCursor === 'horizontal' ? rect.bottom : y;
|
11209
|
+
var left = followCursor === 'vertical' ? rect.left : x;
|
11305
11210
|
return {
|
11306
11211
|
width: right - left,
|
11307
11212
|
height: bottom - top,
|
@@ -11364,7 +11269,7 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11364
11269
|
clientX: event.clientX,
|
11365
11270
|
clientY: event.clientY
|
11366
11271
|
};
|
11367
|
-
wasFocusEvent = event.type ===
|
11272
|
+
wasFocusEvent = event.type === 'focus';
|
11368
11273
|
},
|
11369
11274
|
onHidden: function onHidden() {
|
11370
11275
|
if (instance.props.followCursor) {
|
@@ -11390,7 +11295,7 @@ function $b013befce1f6217f$var$getProps(props, modifier) {
|
|
11390
11295
|
};
|
11391
11296
|
}
|
11392
11297
|
var $b013befce1f6217f$export$e2b668424a9c728 = {
|
11393
|
-
name:
|
11298
|
+
name: 'inlinePositioning',
|
11394
11299
|
defaultValue: false,
|
11395
11300
|
fn: function fn(instance) {
|
11396
11301
|
var reference = instance.reference;
|
@@ -11402,9 +11307,9 @@ var $b013befce1f6217f$export$e2b668424a9c728 = {
|
|
11402
11307
|
var isInternalUpdate = false;
|
11403
11308
|
var triedPlacements = [];
|
11404
11309
|
var modifier = {
|
11405
|
-
name:
|
11310
|
+
name: 'tippyInlinePositioning',
|
11406
11311
|
enabled: true,
|
11407
|
-
phase:
|
11312
|
+
phase: 'afterWrite',
|
11408
11313
|
fn: function fn(_ref2) {
|
11409
11314
|
var state = _ref2.state;
|
11410
11315
|
if (isEnabled()) {
|
@@ -11458,11 +11363,11 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11458
11363
|
// There are two rects and they are disjoined
|
11459
11364
|
if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) return clientRects[cursorRectIndex] || boundingRect;
|
11460
11365
|
switch(currentBasePlacement){
|
11461
|
-
case
|
11462
|
-
case
|
11366
|
+
case 'top':
|
11367
|
+
case 'bottom':
|
11463
11368
|
var firstRect = clientRects[0];
|
11464
11369
|
var lastRect = clientRects[clientRects.length - 1];
|
11465
|
-
var isTop = currentBasePlacement ===
|
11370
|
+
var isTop = currentBasePlacement === 'top';
|
11466
11371
|
var top = firstRect.top;
|
11467
11372
|
var bottom = lastRect.bottom;
|
11468
11373
|
var left = isTop ? firstRect.left : lastRect.left;
|
@@ -11477,8 +11382,8 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11477
11382
|
width: width,
|
11478
11383
|
height: height
|
11479
11384
|
};
|
11480
|
-
case
|
11481
|
-
case
|
11385
|
+
case 'left':
|
11386
|
+
case 'right':
|
11482
11387
|
var minLeft = Math.min.apply(Math, clientRects.map(function(rects) {
|
11483
11388
|
return rects.left;
|
11484
11389
|
}));
|
@@ -11486,7 +11391,7 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11486
11391
|
return rects.right;
|
11487
11392
|
}));
|
11488
11393
|
var measureRects = clientRects.filter(function(rect) {
|
11489
|
-
return currentBasePlacement ===
|
11394
|
+
return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
|
11490
11395
|
});
|
11491
11396
|
var _top = measureRects[0].top;
|
11492
11397
|
var _bottom = measureRects[measureRects.length - 1].bottom;
|
@@ -11507,7 +11412,7 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11507
11412
|
}
|
11508
11413
|
}
|
11509
11414
|
var $b013befce1f6217f$export$4bd4b47501432316 = {
|
11510
|
-
name:
|
11415
|
+
name: 'sticky',
|
11511
11416
|
defaultValue: false,
|
11512
11417
|
fn: function fn(instance) {
|
11513
11418
|
var reference = instance.reference, popper = instance.popper;
|
@@ -11520,8 +11425,8 @@ var $b013befce1f6217f$export$4bd4b47501432316 = {
|
|
11520
11425
|
var prevRefRect = null;
|
11521
11426
|
var prevPopRect = null;
|
11522
11427
|
function updatePosition() {
|
11523
|
-
var currentRefRect = shouldCheck(
|
11524
|
-
var currentPopRect = shouldCheck(
|
11428
|
+
var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
|
11429
|
+
var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
|
11525
11430
|
if (currentRefRect && $b013befce1f6217f$var$areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && $b013befce1f6217f$var$areRectsDifferent(prevPopRect, currentPopRect)) {
|
11526
11431
|
if (instance.popperInstance) instance.popperInstance.update();
|
11527
11432
|
}
|
@@ -11646,6 +11551,59 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11646
11551
|
}
|
11647
11552
|
|
11648
11553
|
|
11554
|
+
var $99486586f6691564$exports = {};
|
11555
|
+
|
11556
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11557
|
+
|
11558
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11559
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11560
|
+
return {};
|
11561
|
+
}
|
11562
|
+
|
11563
|
+
|
11564
|
+
var $47a1c62621be0c54$exports = {};
|
11565
|
+
|
11566
|
+
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
11567
|
+
|
11568
|
+
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
11569
|
+
var $4e31c85e11272811$exports = {};
|
11570
|
+
|
11571
|
+
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
11572
|
+
|
11573
|
+
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
11574
|
+
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
11575
|
+
|
11576
|
+
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
11577
|
+
let copyTimeout = null;
|
11578
|
+
return Object.assign(context, {
|
11579
|
+
copied: false,
|
11580
|
+
async copyToClipboard (target = null) {
|
11581
|
+
let targetEl;
|
11582
|
+
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
11583
|
+
else if (typeof target === "string") targetEl = document.querySelector(target);
|
11584
|
+
if (!targetEl) {
|
11585
|
+
this.warn("Could not find copy target");
|
11586
|
+
return false;
|
11587
|
+
}
|
11588
|
+
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
11589
|
+
await window.navigator.clipboard.writeText(content);
|
11590
|
+
this.copied = true;
|
11591
|
+
if (copyTimeout) clearTimeout(copyTimeout);
|
11592
|
+
copyTimeout = setTimeout(()=>{
|
11593
|
+
this.copied = false;
|
11594
|
+
this.onCopyComplete();
|
11595
|
+
}, 1000);
|
11596
|
+
return content;
|
11597
|
+
},
|
11598
|
+
onCopyComplete () {}
|
11599
|
+
});
|
11600
|
+
}
|
11601
|
+
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
11602
|
+
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
11603
|
+
}
|
11604
|
+
|
11605
|
+
|
11606
|
+
|
11649
11607
|
function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
11650
11608
|
const button = (0, $cbd28b10fa9798c7$export$2e2bcd8739ae039)();
|
11651
11609
|
return {
|
@@ -11659,6 +11617,48 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11659
11617
|
}
|
11660
11618
|
|
11661
11619
|
|
11620
|
+
var $e398acaded942bbe$exports = {};
|
11621
|
+
|
11622
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11623
|
+
|
11624
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11625
|
+
|
11626
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11627
|
+
return {
|
11628
|
+
width: 0,
|
11629
|
+
height: 0,
|
11630
|
+
resizing: false,
|
11631
|
+
target: null,
|
11632
|
+
init () {
|
11633
|
+
this.target = document.querySelector(targetSelector);
|
11634
|
+
if (this.target) {
|
11635
|
+
this.width = Math.round(this.target.clientWidth);
|
11636
|
+
this.height = Math.round(this.target.clientHeight);
|
11637
|
+
this.createObserver();
|
11638
|
+
}
|
11639
|
+
},
|
11640
|
+
createObserver () {
|
11641
|
+
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
11642
|
+
this.width = width;
|
11643
|
+
this.height = height;
|
11644
|
+
});
|
11645
|
+
},
|
11646
|
+
tearDown () {
|
11647
|
+
if (this.observer) this.observer.disconnect();
|
11648
|
+
}
|
11649
|
+
};
|
11650
|
+
}
|
11651
|
+
|
11652
|
+
|
11653
|
+
var $216ef7001f59f21d$exports = {};
|
11654
|
+
|
11655
|
+
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
11656
|
+
|
11657
|
+
$parcel$export($216ef7001f59f21d$exports, "default", () => $216ef7001f59f21d$export$2e2bcd8739ae039);
|
11658
|
+
function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
11659
|
+
return {};
|
11660
|
+
}
|
11661
|
+
|
11662
11662
|
|
11663
11663
|
var $e9904a14dabf652d$exports = {};
|
11664
11664
|
|
@@ -11738,29 +11738,29 @@ var $7cac9a0d4b75bf4e$var$numeric = function(value, unit) {
|
|
11738
11738
|
return Number(value.slice(0, -1 * unit.length));
|
11739
11739
|
};
|
11740
11740
|
var $7cac9a0d4b75bf4e$var$parseValue = function(value) {
|
11741
|
-
if (value.endsWith(
|
11741
|
+
if (value.endsWith('px')) return {
|
11742
11742
|
value: value,
|
11743
|
-
type:
|
11744
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11743
|
+
type: 'px',
|
11744
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, 'px')
|
11745
11745
|
};
|
11746
|
-
if (value.endsWith(
|
11746
|
+
if (value.endsWith('fr')) return {
|
11747
11747
|
value: value,
|
11748
|
-
type:
|
11749
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11748
|
+
type: 'fr',
|
11749
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, 'fr')
|
11750
11750
|
};
|
11751
|
-
if (value.endsWith(
|
11751
|
+
if (value.endsWith('%')) return {
|
11752
11752
|
value: value,
|
11753
|
-
type:
|
11754
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11753
|
+
type: '%',
|
11754
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, '%')
|
11755
11755
|
};
|
11756
|
-
if (value ===
|
11756
|
+
if (value === 'auto') return {
|
11757
11757
|
value: value,
|
11758
|
-
type:
|
11758
|
+
type: 'auto'
|
11759
11759
|
};
|
11760
11760
|
return null;
|
11761
11761
|
};
|
11762
11762
|
var $7cac9a0d4b75bf4e$var$parse = function(rule) {
|
11763
|
-
return rule.split(
|
11763
|
+
return rule.split(' ').map($7cac9a0d4b75bf4e$var$parseValue);
|
11764
11764
|
};
|
11765
11765
|
var $7cac9a0d4b75bf4e$var$getSizeAtTrack = function(index, tracks, gap, end) {
|
11766
11766
|
if (gap === void 0) gap = 0;
|
@@ -11776,7 +11776,7 @@ var $7cac9a0d4b75bf4e$var$getStyles = function(rule, ownRules, matchedRules) {
|
|
11776
11776
|
return ownRules.concat(matchedRules).map(function(r) {
|
11777
11777
|
return r.style[rule];
|
11778
11778
|
}).filter(function(style) {
|
11779
|
-
return style !== undefined && style !==
|
11779
|
+
return style !== undefined && style !== '';
|
11780
11780
|
});
|
11781
11781
|
};
|
11782
11782
|
var $7cac9a0d4b75bf4e$var$getGapValue = function(unit, size) {
|
@@ -11822,41 +11822,41 @@ function $7cac9a0d4b75bf4e$var$getMatchedCSSRules(el) {
|
|
11822
11822
|
return matches;
|
11823
11823
|
});
|
11824
11824
|
}
|
11825
|
-
var $7cac9a0d4b75bf4e$var$gridTemplatePropColumns =
|
11826
|
-
var $7cac9a0d4b75bf4e$var$gridTemplatePropRows =
|
11825
|
+
var $7cac9a0d4b75bf4e$var$gridTemplatePropColumns = 'grid-template-columns';
|
11826
|
+
var $7cac9a0d4b75bf4e$var$gridTemplatePropRows = 'grid-template-rows';
|
11827
11827
|
var $7cac9a0d4b75bf4e$var$Gutter = function Gutter(direction, options, parentOptions) {
|
11828
11828
|
this.direction = direction;
|
11829
11829
|
this.element = options.element;
|
11830
11830
|
this.track = options.track;
|
11831
|
-
if (direction ===
|
11831
|
+
if (direction === 'column') {
|
11832
11832
|
this.gridTemplateProp = $7cac9a0d4b75bf4e$var$gridTemplatePropColumns;
|
11833
|
-
this.gridGapProp =
|
11834
|
-
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11835
|
-
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11836
|
-
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11837
|
-
this.clientAxis =
|
11838
|
-
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11839
|
-
} else if (direction ===
|
11833
|
+
this.gridGapProp = 'grid-column-gap';
|
11834
|
+
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'columnCursor', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'cursor', 'col-resize'));
|
11835
|
+
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'columnSnapOffset', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'snapOffset', 30));
|
11836
|
+
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'columnDragInterval', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'dragInterval', 1));
|
11837
|
+
this.clientAxis = 'clientX';
|
11838
|
+
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'gridTemplateColumns');
|
11839
|
+
} else if (direction === 'row') {
|
11840
11840
|
this.gridTemplateProp = $7cac9a0d4b75bf4e$var$gridTemplatePropRows;
|
11841
|
-
this.gridGapProp =
|
11842
|
-
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11843
|
-
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11844
|
-
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11845
|
-
this.clientAxis =
|
11846
|
-
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11847
|
-
}
|
11848
|
-
this.onDragStart = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11849
|
-
this.onDragEnd = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11850
|
-
this.onDrag = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11851
|
-
this.writeStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11841
|
+
this.gridGapProp = 'grid-row-gap';
|
11842
|
+
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'rowCursor', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'cursor', 'row-resize'));
|
11843
|
+
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'rowSnapOffset', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'snapOffset', 30));
|
11844
|
+
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'rowDragInterval', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'dragInterval', 1));
|
11845
|
+
this.clientAxis = 'clientY';
|
11846
|
+
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'gridTemplateRows');
|
11847
|
+
}
|
11848
|
+
this.onDragStart = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'onDragStart', $7cac9a0d4b75bf4e$var$NOOP);
|
11849
|
+
this.onDragEnd = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'onDragEnd', $7cac9a0d4b75bf4e$var$NOOP);
|
11850
|
+
this.onDrag = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'onDrag', $7cac9a0d4b75bf4e$var$NOOP);
|
11851
|
+
this.writeStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'writeStyle', $7cac9a0d4b75bf4e$var$defaultWriteStyle);
|
11852
11852
|
this.startDragging = this.startDragging.bind(this);
|
11853
11853
|
this.stopDragging = this.stopDragging.bind(this);
|
11854
11854
|
this.drag = this.drag.bind(this);
|
11855
11855
|
this.minSizeStart = options.minSizeStart;
|
11856
11856
|
this.minSizeEnd = options.minSizeEnd;
|
11857
11857
|
if (options.element) {
|
11858
|
-
this.element.addEventListener(
|
11859
|
-
this.element.addEventListener(
|
11858
|
+
this.element.addEventListener('mousedown', this.startDragging);
|
11859
|
+
this.element.addEventListener('touchstart', this.startDragging);
|
11860
11860
|
}
|
11861
11861
|
};
|
11862
11862
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.getDimensions = function getDimensions() {
|
@@ -11867,11 +11867,11 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getDimensions = function getDimensions()
|
|
11867
11867
|
var bottom = ref.bottom;
|
11868
11868
|
var left = ref.left;
|
11869
11869
|
var right = ref.right;
|
11870
|
-
if (this.direction ===
|
11870
|
+
if (this.direction === 'column') {
|
11871
11871
|
this.start = top;
|
11872
11872
|
this.end = bottom;
|
11873
11873
|
this.size = height;
|
11874
|
-
} else if (this.direction ===
|
11874
|
+
} else if (this.direction === 'row') {
|
11875
11875
|
this.start = left;
|
11876
11876
|
this.end = right;
|
11877
11877
|
this.size = width;
|
@@ -11889,7 +11889,7 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getRawTracks = function getRawTracks() {
|
|
11889
11889
|
], $7cac9a0d4b75bf4e$var$getMatchedCSSRules(this.grid));
|
11890
11890
|
if (!tracks.length) {
|
11891
11891
|
if (this.optionStyle) return this.optionStyle;
|
11892
|
-
throw Error(
|
11892
|
+
throw Error('Unable to determine grid template tracks from styles.');
|
11893
11893
|
}
|
11894
11894
|
return tracks[0];
|
11895
11895
|
};
|
@@ -11907,11 +11907,11 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getRawComputedGap = function getRawComput
|
|
11907
11907
|
return window.getComputedStyle(this.grid)[this.gridGapProp];
|
11908
11908
|
};
|
11909
11909
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setTracks = function setTracks(raw) {
|
11910
|
-
this.tracks = raw.split(
|
11910
|
+
this.tracks = raw.split(' ');
|
11911
11911
|
this.trackValues = $7cac9a0d4b75bf4e$var$parse(raw);
|
11912
11912
|
};
|
11913
11913
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setComputedTracks = function setComputedTracks(raw) {
|
11914
|
-
this.computedTracks = raw.split(
|
11914
|
+
this.computedTracks = raw.split(' ');
|
11915
11915
|
this.computedPixels = $7cac9a0d4b75bf4e$var$parse(raw);
|
11916
11916
|
};
|
11917
11917
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setGap = function setGap(raw) {
|
@@ -11919,14 +11919,14 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.setGap = function setGap(raw) {
|
|
11919
11919
|
};
|
11920
11920
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setComputedGap = function setComputedGap(raw) {
|
11921
11921
|
this.computedGap = raw;
|
11922
|
-
this.computedGapPixels = $7cac9a0d4b75bf4e$var$getGapValue(
|
11922
|
+
this.computedGapPixels = $7cac9a0d4b75bf4e$var$getGapValue('px', this.computedGap) || 0;
|
11923
11923
|
};
|
11924
11924
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.getMousePosition = function getMousePosition(e) {
|
11925
|
-
if (
|
11925
|
+
if ('touches' in e) return e.touches[0][this.clientAxis];
|
11926
11926
|
return e[this.clientAxis];
|
11927
11927
|
};
|
11928
11928
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e) {
|
11929
|
-
if (
|
11929
|
+
if ('button' in e && e.button !== 0) return;
|
11930
11930
|
// Don't actually drag the element. We emulate that in the drag function.
|
11931
11931
|
e.preventDefault();
|
11932
11932
|
if (this.element) this.grid = this.element.parentNode;
|
@@ -11937,10 +11937,10 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e)
|
|
11937
11937
|
this.setGap(this.getGap());
|
11938
11938
|
this.setComputedGap(this.getRawComputedGap());
|
11939
11939
|
var trackPercentage = this.trackValues.filter(function(track) {
|
11940
|
-
return track.type ===
|
11940
|
+
return track.type === '%';
|
11941
11941
|
});
|
11942
11942
|
var trackFr = this.trackValues.filter(function(track) {
|
11943
|
-
return track.type ===
|
11943
|
+
return track.type === 'fr';
|
11944
11944
|
});
|
11945
11945
|
this.totalFrs = trackFr.length;
|
11946
11946
|
if (this.totalFrs) {
|
@@ -11962,18 +11962,18 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e)
|
|
11962
11962
|
// Set the dragging property of the pair object.
|
11963
11963
|
this.dragging = true;
|
11964
11964
|
// All the binding. `window` gets the stop events in case we drag out of the elements.
|
11965
|
-
window.addEventListener(
|
11966
|
-
window.addEventListener(
|
11967
|
-
window.addEventListener(
|
11968
|
-
window.addEventListener(
|
11969
|
-
window.addEventListener(
|
11965
|
+
window.addEventListener('mouseup', this.stopDragging);
|
11966
|
+
window.addEventListener('touchend', this.stopDragging);
|
11967
|
+
window.addEventListener('touchcancel', this.stopDragging);
|
11968
|
+
window.addEventListener('mousemove', this.drag);
|
11969
|
+
window.addEventListener('touchmove', this.drag);
|
11970
11970
|
// Disable selection. Disable!
|
11971
|
-
this.grid.addEventListener(
|
11972
|
-
this.grid.addEventListener(
|
11973
|
-
this.grid.style.userSelect =
|
11974
|
-
this.grid.style.webkitUserSelect =
|
11975
|
-
this.grid.style.MozUserSelect =
|
11976
|
-
this.grid.style.pointerEvents =
|
11971
|
+
this.grid.addEventListener('selectstart', $7cac9a0d4b75bf4e$var$NOOP);
|
11972
|
+
this.grid.addEventListener('dragstart', $7cac9a0d4b75bf4e$var$NOOP);
|
11973
|
+
this.grid.style.userSelect = 'none';
|
11974
|
+
this.grid.style.webkitUserSelect = 'none';
|
11975
|
+
this.grid.style.MozUserSelect = 'none';
|
11976
|
+
this.grid.style.pointerEvents = 'none';
|
11977
11977
|
// Set the cursor at multiple levels
|
11978
11978
|
this.grid.style.cursor = this.cursor;
|
11979
11979
|
window.document.body.style.cursor = this.cursor;
|
@@ -11986,8 +11986,8 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.stopDragging = function stopDragging() {
|
|
11986
11986
|
this.onDragEnd(this.direction, this.track);
|
11987
11987
|
if (this.needsDestroy) {
|
11988
11988
|
if (this.element) {
|
11989
|
-
this.element.removeEventListener(
|
11990
|
-
this.element.removeEventListener(
|
11989
|
+
this.element.removeEventListener('mousedown', this.startDragging);
|
11990
|
+
this.element.removeEventListener('touchstart', this.startDragging);
|
11991
11991
|
}
|
11992
11992
|
this.destroyCb();
|
11993
11993
|
this.needsDestroy = false;
|
@@ -12014,56 +12014,56 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.drag = function drag(e) {
|
|
12014
12014
|
}
|
12015
12015
|
if (aTrackSize < this.minSizeStart) aTrackSize = this.minSizeStart;
|
12016
12016
|
if (bTrackSize < this.minSizeEnd) bTrackSize = this.minSizeEnd;
|
12017
|
-
if (this.trackValues[this.aTrack].type ===
|
12018
|
-
else if (this.trackValues[this.aTrack].type ===
|
12019
|
-
if (this.totalFrs === 1) this.tracks[this.aTrack] =
|
12017
|
+
if (this.trackValues[this.aTrack].type === 'px') this.tracks[this.aTrack] = aTrackSize + "px";
|
12018
|
+
else if (this.trackValues[this.aTrack].type === 'fr') {
|
12019
|
+
if (this.totalFrs === 1) this.tracks[this.aTrack] = '1fr';
|
12020
12020
|
else {
|
12021
12021
|
var targetFr = aTrackSize / this.frToPixels;
|
12022
12022
|
this.tracks[this.aTrack] = targetFr + "fr";
|
12023
12023
|
}
|
12024
|
-
} else if (this.trackValues[this.aTrack].type ===
|
12024
|
+
} else if (this.trackValues[this.aTrack].type === '%') {
|
12025
12025
|
var targetPercentage = aTrackSize / this.percentageToPixels;
|
12026
12026
|
this.tracks[this.aTrack] = targetPercentage + "%";
|
12027
12027
|
}
|
12028
|
-
if (this.trackValues[this.bTrack].type ===
|
12029
|
-
else if (this.trackValues[this.bTrack].type ===
|
12030
|
-
if (this.totalFrs === 1) this.tracks[this.bTrack] =
|
12028
|
+
if (this.trackValues[this.bTrack].type === 'px') this.tracks[this.bTrack] = bTrackSize + "px";
|
12029
|
+
else if (this.trackValues[this.bTrack].type === 'fr') {
|
12030
|
+
if (this.totalFrs === 1) this.tracks[this.bTrack] = '1fr';
|
12031
12031
|
else {
|
12032
12032
|
var targetFr$1 = bTrackSize / this.frToPixels;
|
12033
12033
|
this.tracks[this.bTrack] = targetFr$1 + "fr";
|
12034
12034
|
}
|
12035
|
-
} else if (this.trackValues[this.bTrack].type ===
|
12035
|
+
} else if (this.trackValues[this.bTrack].type === '%') {
|
12036
12036
|
var targetPercentage$1 = bTrackSize / this.percentageToPixels;
|
12037
12037
|
this.tracks[this.bTrack] = targetPercentage$1 + "%";
|
12038
12038
|
}
|
12039
|
-
var style = this.tracks.join(
|
12039
|
+
var style = this.tracks.join(' ');
|
12040
12040
|
this.writeStyle(this.grid, this.gridTemplateProp, style);
|
12041
12041
|
this.onDrag(this.direction, this.track, style);
|
12042
12042
|
};
|
12043
12043
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.cleanup = function cleanup() {
|
12044
|
-
window.removeEventListener(
|
12045
|
-
window.removeEventListener(
|
12046
|
-
window.removeEventListener(
|
12047
|
-
window.removeEventListener(
|
12048
|
-
window.removeEventListener(
|
12044
|
+
window.removeEventListener('mouseup', this.stopDragging);
|
12045
|
+
window.removeEventListener('touchend', this.stopDragging);
|
12046
|
+
window.removeEventListener('touchcancel', this.stopDragging);
|
12047
|
+
window.removeEventListener('mousemove', this.drag);
|
12048
|
+
window.removeEventListener('touchmove', this.drag);
|
12049
12049
|
if (this.grid) {
|
12050
|
-
this.grid.removeEventListener(
|
12051
|
-
this.grid.removeEventListener(
|
12052
|
-
this.grid.style.userSelect =
|
12053
|
-
this.grid.style.webkitUserSelect =
|
12054
|
-
this.grid.style.MozUserSelect =
|
12055
|
-
this.grid.style.pointerEvents =
|
12056
|
-
this.grid.style.cursor =
|
12057
|
-
}
|
12058
|
-
window.document.body.style.cursor =
|
12050
|
+
this.grid.removeEventListener('selectstart', $7cac9a0d4b75bf4e$var$NOOP);
|
12051
|
+
this.grid.removeEventListener('dragstart', $7cac9a0d4b75bf4e$var$NOOP);
|
12052
|
+
this.grid.style.userSelect = '';
|
12053
|
+
this.grid.style.webkitUserSelect = '';
|
12054
|
+
this.grid.style.MozUserSelect = '';
|
12055
|
+
this.grid.style.pointerEvents = '';
|
12056
|
+
this.grid.style.cursor = '';
|
12057
|
+
}
|
12058
|
+
window.document.body.style.cursor = '';
|
12059
12059
|
};
|
12060
12060
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.destroy = function destroy(immediate, cb) {
|
12061
12061
|
if (immediate === void 0) immediate = true;
|
12062
12062
|
if (immediate || this.dragging === false) {
|
12063
12063
|
this.cleanup();
|
12064
12064
|
if (this.element) {
|
12065
|
-
this.element.removeEventListener(
|
12066
|
-
this.element.removeEventListener(
|
12065
|
+
this.element.removeEventListener('mousedown', this.startDragging);
|
12066
|
+
this.element.removeEventListener('touchstart', this.startDragging);
|
12067
12067
|
}
|
12068
12068
|
if (cb) cb();
|
12069
12069
|
} else {
|
@@ -12078,11 +12078,11 @@ var $7cac9a0d4b75bf4e$var$getTrackOption = function(options, track, defaultValue
|
|
12078
12078
|
var $7cac9a0d4b75bf4e$var$createGutter = function(direction, options) {
|
12079
12079
|
return function(gutterOptions) {
|
12080
12080
|
if (gutterOptions.track < 1) throw Error("Invalid track index: " + gutterOptions.track + ". Track must be between two other tracks.");
|
12081
|
-
var trackMinSizes = direction ===
|
12082
|
-
var trackMinSize = direction ===
|
12081
|
+
var trackMinSizes = direction === 'column' ? options.columnMinSizes || {} : options.rowMinSizes || {};
|
12082
|
+
var trackMinSize = direction === 'column' ? 'columnMinSize' : 'rowMinSize';
|
12083
12083
|
return new $7cac9a0d4b75bf4e$var$Gutter(direction, Object.assign({}, {
|
12084
|
-
minSizeStart: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track - 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options,
|
12085
|
-
minSizeEnd: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track + 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options,
|
12084
|
+
minSizeStart: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track - 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options, 'minSize', 0))),
|
12085
|
+
minSizeEnd: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track + 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options, 'minSize', 0)))
|
12086
12086
|
}, gutterOptions), options);
|
12087
12087
|
};
|
12088
12088
|
};
|
@@ -12097,22 +12097,22 @@ var $7cac9a0d4b75bf4e$var$Grid = function Grid(options) {
|
|
12097
12097
|
rowMinSizes: options.rowMinSizes || {}
|
12098
12098
|
}, options);
|
12099
12099
|
this.options.columnGutters.forEach(function(gutterOptions) {
|
12100
|
-
this$1.columnGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12100
|
+
this$1.columnGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter('column', this$1.options)(gutterOptions);
|
12101
12101
|
});
|
12102
12102
|
this.options.rowGutters.forEach(function(gutterOptions) {
|
12103
|
-
this$1.rowGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12103
|
+
this$1.rowGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter('row', this$1.options)(gutterOptions);
|
12104
12104
|
});
|
12105
12105
|
};
|
12106
12106
|
$7cac9a0d4b75bf4e$var$Grid.prototype.addColumnGutter = function addColumnGutter(element, track) {
|
12107
12107
|
if (this.columnGutters[track]) this.columnGutters[track].destroy();
|
12108
|
-
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12108
|
+
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('column', this.options)({
|
12109
12109
|
element: element,
|
12110
12110
|
track: track
|
12111
12111
|
});
|
12112
12112
|
};
|
12113
12113
|
$7cac9a0d4b75bf4e$var$Grid.prototype.addRowGutter = function addRowGutter(element, track) {
|
12114
12114
|
if (this.rowGutters[track]) this.rowGutters[track].destroy();
|
12115
|
-
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12115
|
+
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('row', this.options)({
|
12116
12116
|
element: element,
|
12117
12117
|
track: track
|
12118
12118
|
});
|
@@ -12132,15 +12132,15 @@ $7cac9a0d4b75bf4e$var$Grid.prototype.removeRowGutter = function removeRowGutter(
|
|
12132
12132
|
});
|
12133
12133
|
};
|
12134
12134
|
$7cac9a0d4b75bf4e$var$Grid.prototype.handleDragStart = function handleDragStart(e, direction, track) {
|
12135
|
-
if (direction ===
|
12135
|
+
if (direction === 'column') {
|
12136
12136
|
if (this.columnGutters[track]) this.columnGutters[track].destroy();
|
12137
|
-
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12137
|
+
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('column', this.options)({
|
12138
12138
|
track: track
|
12139
12139
|
});
|
12140
12140
|
this.columnGutters[track].startDragging(e);
|
12141
|
-
} else if (direction ===
|
12141
|
+
} else if (direction === 'row') {
|
12142
12142
|
if (this.rowGutters[track]) this.rowGutters[track].destroy();
|
12143
|
-
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12143
|
+
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('row', this.options)({
|
12144
12144
|
track: track
|
12145
12145
|
});
|
12146
12146
|
this.rowGutters[track].startDragging(e);
|
@@ -12279,6 +12279,33 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12279
12279
|
}
|
12280
12280
|
|
12281
12281
|
|
12282
|
+
var $a87dacf5139b5e2f$exports = {};
|
12283
|
+
|
12284
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12285
|
+
|
12286
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12287
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12288
|
+
return {
|
12289
|
+
get store () {
|
12290
|
+
return store || this;
|
12291
|
+
},
|
12292
|
+
get id () {
|
12293
|
+
return this.$root.id;
|
12294
|
+
},
|
12295
|
+
get panels () {
|
12296
|
+
return Array.from(this.$refs.panels.children);
|
12297
|
+
},
|
12298
|
+
isActive (el) {
|
12299
|
+
return this.store.activeTab === this._getRef(el);
|
12300
|
+
},
|
12301
|
+
// protected
|
12302
|
+
_getRef (el) {
|
12303
|
+
return el.getAttribute("x-ref");
|
12304
|
+
}
|
12305
|
+
};
|
12306
|
+
}
|
12307
|
+
|
12308
|
+
|
12282
12309
|
var $0db07828cadc68e0$exports = {};
|
12283
12310
|
|
12284
12311
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12499,49 +12526,22 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12499
12526
|
}
|
12500
12527
|
|
12501
12528
|
|
12502
|
-
|
12503
|
-
|
12504
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12505
|
-
|
12506
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12507
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12508
|
-
return {
|
12509
|
-
get store () {
|
12510
|
-
return store || this;
|
12511
|
-
},
|
12512
|
-
get id () {
|
12513
|
-
return this.$root.id;
|
12514
|
-
},
|
12515
|
-
get panels () {
|
12516
|
-
return Array.from(this.$refs.panels.children);
|
12517
|
-
},
|
12518
|
-
isActive (el) {
|
12519
|
-
return this.store.activeTab === this._getRef(el);
|
12520
|
-
},
|
12521
|
-
// protected
|
12522
|
-
_getRef (el) {
|
12523
|
-
return el.getAttribute("x-ref");
|
12524
|
-
}
|
12525
|
-
};
|
12526
|
-
}
|
12527
|
-
|
12528
|
-
|
12529
|
-
$a700a883f9bd2df0$exports = {
|
12529
|
+
$c9dfaeb25bf110ce$exports = {
|
12530
|
+
"button": $cbd28b10fa9798c7$exports,
|
12530
12531
|
"code": $99486586f6691564$exports,
|
12532
|
+
"copy_button": $47a1c62621be0c54$exports,
|
12531
12533
|
"dimensions_display": $e398acaded942bbe$exports,
|
12532
12534
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12533
|
-
"copy_button": $47a1c62621be0c54$exports,
|
12534
|
-
"button": $cbd28b10fa9798c7$exports,
|
12535
12535
|
"filter": $e9904a14dabf652d$exports,
|
12536
12536
|
"nav": $d92d9d5253f84566$exports,
|
12537
12537
|
"split_layout": $506dabb2bf255b38$exports,
|
12538
|
+
"tab_panels": $a87dacf5139b5e2f$exports,
|
12538
12539
|
"tabs": $0db07828cadc68e0$exports,
|
12539
|
-
"viewport": $6d64716f0b34fdf4$exports
|
12540
|
-
"tab_panels": $a87dacf5139b5e2f$exports
|
12540
|
+
"viewport": $6d64716f0b34fdf4$exports
|
12541
12541
|
};
|
12542
12542
|
|
12543
12543
|
|
12544
|
-
var $
|
12544
|
+
var $5d1c9207cb730903$exports = {};
|
12545
12545
|
var $6a9b69d9cc7f810f$exports = {};
|
12546
12546
|
|
12547
12547
|
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
@@ -12551,7 +12551,7 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12551
12551
|
(function(global, factory) {
|
12552
12552
|
$cdfeaa1e0e8d642c$exports = factory();
|
12553
12553
|
})($cdfeaa1e0e8d642c$exports, function() {
|
12554
|
-
|
12554
|
+
'use strict';
|
12555
12555
|
/* eslint-disable no-var */ function assign(target) {
|
12556
12556
|
for(var i = 1; i < arguments.length; i++){
|
12557
12557
|
var source = arguments[i];
|
@@ -12570,15 +12570,15 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12570
12570
|
};
|
12571
12571
|
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
12572
12572
|
function set(name, value, attributes) {
|
12573
|
-
if (typeof document ===
|
12573
|
+
if (typeof document === 'undefined') return;
|
12574
12574
|
attributes = assign({}, defaultAttributes, attributes);
|
12575
|
-
if (typeof attributes.expires ===
|
12575
|
+
if (typeof attributes.expires === 'number') attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
12576
12576
|
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
12577
12577
|
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
12578
|
-
var stringifiedAttributes =
|
12578
|
+
var stringifiedAttributes = '';
|
12579
12579
|
for(var attributeName in attributes){
|
12580
12580
|
if (!attributes[attributeName]) continue;
|
12581
|
-
stringifiedAttributes +=
|
12581
|
+
stringifiedAttributes += '; ' + attributeName;
|
12582
12582
|
if (attributes[attributeName] === true) continue;
|
12583
12583
|
// Considers RFC 6265 section 5.2:
|
12584
12584
|
// ...
|
@@ -12587,19 +12587,19 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12587
12587
|
// Consume the characters of the unparsed-attributes up to,
|
12588
12588
|
// not including, the first %x3B (";") character.
|
12589
12589
|
// ...
|
12590
|
-
stringifiedAttributes +=
|
12590
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
12591
12591
|
}
|
12592
|
-
return document.cookie = name +
|
12592
|
+
return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
|
12593
12593
|
}
|
12594
12594
|
function get(name) {
|
12595
|
-
if (typeof document ===
|
12595
|
+
if (typeof document === 'undefined' || arguments.length && !name) return;
|
12596
12596
|
// To prevent the for loop in the first place assign an empty array
|
12597
12597
|
// in case there are no cookies at all.
|
12598
|
-
var cookies = document.cookie ? document.cookie.split(
|
12598
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
12599
12599
|
var jar = {};
|
12600
12600
|
for(var i = 0; i < cookies.length; i++){
|
12601
|
-
var parts = cookies[i].split(
|
12602
|
-
var value = parts.slice(1).join(
|
12601
|
+
var parts = cookies[i].split('=');
|
12602
|
+
var value = parts.slice(1).join('=');
|
12603
12603
|
try {
|
12604
12604
|
var found = decodeURIComponent(parts[0]);
|
12605
12605
|
jar[found] = converter.read(value, found);
|
@@ -12612,7 +12612,7 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12612
12612
|
set: set,
|
12613
12613
|
get: get,
|
12614
12614
|
remove: function(name, attributes) {
|
12615
|
-
set(name,
|
12615
|
+
set(name, '', assign({}, attributes, {
|
12616
12616
|
expires: -1
|
12617
12617
|
}));
|
12618
12618
|
},
|
@@ -12632,7 +12632,7 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12632
12632
|
});
|
12633
12633
|
}
|
12634
12634
|
var api = init(defaultConverter, {
|
12635
|
-
path:
|
12635
|
+
path: '/'
|
12636
12636
|
});
|
12637
12637
|
/* eslint-enable no-var */ return api;
|
12638
12638
|
});
|
@@ -12676,8 +12676,8 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12676
12676
|
* Contributor: Reed Dadoune - reed@dadoune.com
|
12677
12677
|
*/ // eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names
|
12678
12678
|
(function(undefined) {
|
12679
|
-
if (typeof window ===
|
12680
|
-
var count = 0, logEnabled = false, hiddenCheckEnabled = false, msgHeader =
|
12679
|
+
if (typeof window === 'undefined') return; // don't run for server side render
|
12680
|
+
var count = 0, logEnabled = false, hiddenCheckEnabled = false, msgHeader = 'message', msgHeaderLen = msgHeader.length, msgId = '[iFrameSizer]', msgIdLen = msgId.length, pagePosition = null, requestAnimationFrame = window.requestAnimationFrame, resetRequiredMethods = Object.freeze({
|
12681
12681
|
max: 1,
|
12682
12682
|
scroll: 1,
|
12683
12683
|
bodyScroll: 1,
|
@@ -12691,8 +12691,8 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12691
12691
|
checkOrigin: true,
|
12692
12692
|
inPageLinks: false,
|
12693
12693
|
enablePublicMethods: true,
|
12694
|
-
heightCalculationMethod:
|
12695
|
-
id:
|
12694
|
+
heightCalculationMethod: 'bodyOffset',
|
12695
|
+
id: 'iFrameResizer',
|
12696
12696
|
interval: 32,
|
12697
12697
|
log: false,
|
12698
12698
|
maxHeight: Infinity,
|
@@ -12700,20 +12700,20 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12700
12700
|
minHeight: 0,
|
12701
12701
|
minWidth: 0,
|
12702
12702
|
mouseEvents: true,
|
12703
|
-
resizeFrom:
|
12703
|
+
resizeFrom: 'parent',
|
12704
12704
|
scrolling: false,
|
12705
12705
|
sizeHeight: true,
|
12706
12706
|
sizeWidth: false,
|
12707
12707
|
warningTimeout: 5000,
|
12708
12708
|
tolerance: 0,
|
12709
|
-
widthCalculationMethod:
|
12709
|
+
widthCalculationMethod: 'scroll',
|
12710
12710
|
onClose: function() {
|
12711
12711
|
return true;
|
12712
12712
|
},
|
12713
12713
|
onClosed: function() {},
|
12714
12714
|
onInit: function() {},
|
12715
12715
|
onMessage: function() {
|
12716
|
-
warn(
|
12716
|
+
warn('onMessage function not defined');
|
12717
12717
|
},
|
12718
12718
|
onMouseEnter: function() {},
|
12719
12719
|
onMouseLeave: function() {},
|
@@ -12733,42 +12733,42 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12733
12733
|
}
|
12734
12734
|
function setupRequestAnimationFrame() {
|
12735
12735
|
var vendors = [
|
12736
|
-
|
12737
|
-
|
12738
|
-
|
12739
|
-
|
12736
|
+
'moz',
|
12737
|
+
'webkit',
|
12738
|
+
'o',
|
12739
|
+
'ms'
|
12740
12740
|
];
|
12741
12741
|
var x;
|
12742
12742
|
// Remove vendor prefixing if prefixed and break early if not
|
12743
|
-
for(x = 0; x < vendors.length && !requestAnimationFrame; x += 1)requestAnimationFrame = window[vendors[x] +
|
12743
|
+
for(x = 0; x < vendors.length && !requestAnimationFrame; x += 1)requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
|
12744
12744
|
if (requestAnimationFrame) // Firefox extension content-scripts have a globalThis object that is not the same as window.
|
12745
12745
|
// Binding `requestAnimationFrame` to window allows the function to work and prevents errors
|
12746
12746
|
// being thrown when run in that context, and should be a no-op in every other context.
|
12747
12747
|
requestAnimationFrame = requestAnimationFrame.bind(window);
|
12748
|
-
else log(
|
12748
|
+
else log('setup', 'RequestAnimationFrame not supported');
|
12749
12749
|
}
|
12750
12750
|
function getMyID(iframeId) {
|
12751
|
-
var retStr =
|
12752
|
-
if (window.top !== window.self) retStr = window.parentIFrame && window.parentIFrame.getId ? window.parentIFrame.getId() +
|
12751
|
+
var retStr = 'Host page: ' + iframeId;
|
12752
|
+
if (window.top !== window.self) retStr = window.parentIFrame && window.parentIFrame.getId ? window.parentIFrame.getId() + ': ' + iframeId : 'Nested host page: ' + iframeId;
|
12753
12753
|
return retStr;
|
12754
12754
|
}
|
12755
12755
|
function formatLogHeader(iframeId) {
|
12756
|
-
return msgId +
|
12756
|
+
return msgId + '[' + getMyID(iframeId) + ']';
|
12757
12757
|
}
|
12758
12758
|
function isLogEnabled(iframeId) {
|
12759
12759
|
return settings[iframeId] ? settings[iframeId].log : logEnabled;
|
12760
12760
|
}
|
12761
12761
|
function log(iframeId, msg) {
|
12762
|
-
output(
|
12762
|
+
output('log', iframeId, msg, isLogEnabled(iframeId));
|
12763
12763
|
}
|
12764
12764
|
function info(iframeId, msg) {
|
12765
|
-
output(
|
12765
|
+
output('info', iframeId, msg, isLogEnabled(iframeId));
|
12766
12766
|
}
|
12767
12767
|
function warn(iframeId, msg) {
|
12768
|
-
output(
|
12768
|
+
output('warn', iframeId, msg, true);
|
12769
12769
|
}
|
12770
12770
|
function output(type, iframeId, msg, enabled) {
|
12771
|
-
if (true === enabled &&
|
12771
|
+
if (true === enabled && 'object' === typeof window.console) // eslint-disable-next-line no-console
|
12772
12772
|
console[type](formatLogHeader(iframeId), msg);
|
12773
12773
|
}
|
12774
12774
|
function iFrameListener(event) {
|
@@ -12776,14 +12776,14 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12776
12776
|
function resize() {
|
12777
12777
|
setSize(messageData);
|
12778
12778
|
setPagePosition(iframeId);
|
12779
|
-
on(
|
12779
|
+
on('onResized', messageData);
|
12780
12780
|
}
|
12781
|
-
ensureInRange(
|
12782
|
-
ensureInRange(
|
12783
|
-
syncResize(resize, messageData,
|
12781
|
+
ensureInRange('Height');
|
12782
|
+
ensureInRange('Width');
|
12783
|
+
syncResize(resize, messageData, 'init');
|
12784
12784
|
}
|
12785
12785
|
function processMsg() {
|
12786
|
-
var data = msg.slice(msgIdLen).split(
|
12786
|
+
var data = msg.slice(msgIdLen).split(':');
|
12787
12787
|
var height = data[1] ? parseInt(data[1], 10) : 0;
|
12788
12788
|
var iframe = settings[data[0]] && settings[data[0]].iframe;
|
12789
12789
|
var compStyle = getComputedStyle(iframe);
|
@@ -12796,35 +12796,35 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12796
12796
|
};
|
12797
12797
|
}
|
12798
12798
|
function getPaddingEnds(compStyle) {
|
12799
|
-
if (compStyle.boxSizing !==
|
12799
|
+
if (compStyle.boxSizing !== 'border-box') return 0;
|
12800
12800
|
var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0;
|
12801
12801
|
var bot = compStyle.paddingBottom ? parseInt(compStyle.paddingBottom, 10) : 0;
|
12802
12802
|
return top + bot;
|
12803
12803
|
}
|
12804
12804
|
function getBorderEnds(compStyle) {
|
12805
|
-
if (compStyle.boxSizing !==
|
12805
|
+
if (compStyle.boxSizing !== 'border-box') return 0;
|
12806
12806
|
var top = compStyle.borderTopWidth ? parseInt(compStyle.borderTopWidth, 10) : 0;
|
12807
12807
|
var bot = compStyle.borderBottomWidth ? parseInt(compStyle.borderBottomWidth, 10) : 0;
|
12808
12808
|
return top + bot;
|
12809
12809
|
}
|
12810
12810
|
function ensureInRange(Dimension) {
|
12811
|
-
var max = Number(settings[iframeId][
|
12812
|
-
log(iframeId,
|
12811
|
+
var max = Number(settings[iframeId]['max' + Dimension]), min = Number(settings[iframeId]['min' + Dimension]), dimension = Dimension.toLowerCase(), size = Number(messageData[dimension]);
|
12812
|
+
log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max);
|
12813
12813
|
if (size < min) {
|
12814
12814
|
size = min;
|
12815
|
-
log(iframeId,
|
12815
|
+
log(iframeId, 'Set ' + dimension + ' to min value');
|
12816
12816
|
}
|
12817
12817
|
if (size > max) {
|
12818
12818
|
size = max;
|
12819
|
-
log(iframeId,
|
12819
|
+
log(iframeId, 'Set ' + dimension + ' to max value');
|
12820
12820
|
}
|
12821
|
-
messageData[dimension] =
|
12821
|
+
messageData[dimension] = '' + size;
|
12822
12822
|
}
|
12823
12823
|
function isMessageFromIFrame() {
|
12824
12824
|
function checkAllowedOrigin() {
|
12825
12825
|
function checkList() {
|
12826
12826
|
var i = 0, retCode = false;
|
12827
|
-
log(iframeId,
|
12827
|
+
log(iframeId, 'Checking connection is from allowed list of origins: ' + checkOrigin);
|
12828
12828
|
for(; i < checkOrigin.length; i++)if (checkOrigin[i] === origin) {
|
12829
12829
|
retCode = true;
|
12830
12830
|
break;
|
@@ -12833,17 +12833,17 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12833
12833
|
}
|
12834
12834
|
function checkSingle() {
|
12835
12835
|
var remoteHost = settings[iframeId] && settings[iframeId].remoteHost;
|
12836
|
-
log(iframeId,
|
12836
|
+
log(iframeId, 'Checking connection is from: ' + remoteHost);
|
12837
12837
|
return origin === remoteHost;
|
12838
12838
|
}
|
12839
12839
|
return checkOrigin.constructor === Array ? checkList() : checkSingle();
|
12840
12840
|
}
|
12841
12841
|
var origin = event.origin, checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin;
|
12842
|
-
if (checkOrigin &&
|
12842
|
+
if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) throw new Error('Unexpected message received from: ' + origin + ' for ' + messageData.iframe.id + '. Message was: ' + event.data + '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.');
|
12843
12843
|
return true;
|
12844
12844
|
}
|
12845
12845
|
function isMessageForUs() {
|
12846
|
-
return msgId === (
|
12846
|
+
return msgId === ('' + msg).slice(0, msgIdLen) && msg.slice(msgIdLen).split(':')[0] in settings // ''+Protects against non-string msg
|
12847
12847
|
;
|
12848
12848
|
}
|
12849
12849
|
function isMessageFromMetaParent() {
|
@@ -12854,19 +12854,19 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12854
12854
|
false: 1,
|
12855
12855
|
undefined: 1
|
12856
12856
|
};
|
12857
|
-
if (retCode) log(iframeId,
|
12857
|
+
if (retCode) log(iframeId, 'Ignoring init message from meta parent page');
|
12858
12858
|
return retCode;
|
12859
12859
|
}
|
12860
12860
|
function getMsgBody(offset) {
|
12861
|
-
return msg.slice(msg.indexOf(
|
12861
|
+
return msg.slice(msg.indexOf(':') + msgHeaderLen + offset);
|
12862
12862
|
}
|
12863
12863
|
function forwardMsgFromIFrame(msgBody) {
|
12864
|
-
log(iframeId,
|
12865
|
-
on(
|
12864
|
+
log(iframeId, 'onMessage passed: {iframe: ' + messageData.iframe.id + ', message: ' + msgBody + '}');
|
12865
|
+
on('onMessage', {
|
12866
12866
|
iframe: messageData.iframe,
|
12867
12867
|
message: JSON.parse(msgBody)
|
12868
12868
|
});
|
12869
|
-
log(iframeId,
|
12869
|
+
log(iframeId, '--');
|
12870
12870
|
}
|
12871
12871
|
function getPageInfo() {
|
12872
12872
|
var bodyPosition = document.body.getBoundingClientRect(), iFramePosition = messageData.iframe.getBoundingClientRect();
|
@@ -12887,7 +12887,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12887
12887
|
}
|
12888
12888
|
function sendPageInfoToIframe(iframe, iframeId) {
|
12889
12889
|
function debouncedTrigger() {
|
12890
|
-
trigger(
|
12890
|
+
trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId);
|
12891
12891
|
}
|
12892
12892
|
debounceFrameEvents(debouncedTrigger, 32, iframeId);
|
12893
12893
|
}
|
@@ -12898,18 +12898,18 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12898
12898
|
else stop();
|
12899
12899
|
}
|
12900
12900
|
[
|
12901
|
-
|
12902
|
-
|
12901
|
+
'scroll',
|
12902
|
+
'resize'
|
12903
12903
|
].forEach(function(evt) {
|
12904
|
-
log(id, type + evt +
|
12904
|
+
log(id, type + evt + ' listener for sendPageInfo');
|
12905
12905
|
func(window, evt, sendPageInfo);
|
12906
12906
|
});
|
12907
12907
|
}
|
12908
12908
|
function stop() {
|
12909
|
-
setListener(
|
12909
|
+
setListener('Remove ', removeEventListener);
|
12910
12910
|
}
|
12911
12911
|
function start() {
|
12912
|
-
setListener(
|
12912
|
+
setListener('Add ', addEventListener);
|
12913
12913
|
}
|
12914
12914
|
var id = iframeId // Create locally scoped copy of iFrame ID
|
12915
12915
|
;
|
@@ -12925,7 +12925,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12925
12925
|
function checkIFrameExists() {
|
12926
12926
|
var retBool = true;
|
12927
12927
|
if (null === messageData.iframe) {
|
12928
|
-
warn(iframeId,
|
12928
|
+
warn(iframeId, 'IFrame (' + messageData.id + ') not found');
|
12929
12929
|
retBool = false;
|
12930
12930
|
}
|
12931
12931
|
return retBool;
|
@@ -12943,7 +12943,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12943
12943
|
function reposition() {
|
12944
12944
|
pagePosition = newPosition;
|
12945
12945
|
scrollTo();
|
12946
|
-
log(iframeId,
|
12946
|
+
log(iframeId, '--');
|
12947
12947
|
}
|
12948
12948
|
function calcOffset() {
|
12949
12949
|
return {
|
@@ -12952,45 +12952,45 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12952
12952
|
};
|
12953
12953
|
}
|
12954
12954
|
function scrollParent() {
|
12955
|
-
if (window.parentIFrame) window.parentIFrame[
|
12956
|
-
else warn(iframeId,
|
12955
|
+
if (window.parentIFrame) window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')](newPosition.x, newPosition.y);
|
12956
|
+
else warn(iframeId, 'Unable to scroll to requested position, window.parentIFrame not found');
|
12957
12957
|
}
|
12958
12958
|
var offset = addOffset ? getElementPosition(messageData.iframe) : {
|
12959
12959
|
x: 0,
|
12960
12960
|
y: 0
|
12961
12961
|
}, newPosition = calcOffset();
|
12962
|
-
log(iframeId,
|
12962
|
+
log(iframeId, 'Reposition requested from iFrame (offset x:' + offset.x + ' y:' + offset.y + ')');
|
12963
12963
|
if (window.top === window.self) reposition();
|
12964
12964
|
else scrollParent();
|
12965
12965
|
}
|
12966
12966
|
function scrollTo() {
|
12967
|
-
if (false === on(
|
12967
|
+
if (false === on('onScroll', pagePosition)) unsetPagePosition();
|
12968
12968
|
else setPagePosition(iframeId);
|
12969
12969
|
}
|
12970
12970
|
function findTarget(location) {
|
12971
12971
|
function jumpToTarget() {
|
12972
12972
|
var jumpPosition = getElementPosition(target);
|
12973
|
-
log(iframeId,
|
12973
|
+
log(iframeId, 'Moving to in page link (#' + hash + ') at x: ' + jumpPosition.x + ' y: ' + jumpPosition.y);
|
12974
12974
|
pagePosition = {
|
12975
12975
|
x: jumpPosition.x,
|
12976
12976
|
y: jumpPosition.y
|
12977
12977
|
};
|
12978
12978
|
scrollTo();
|
12979
|
-
log(iframeId,
|
12979
|
+
log(iframeId, '--');
|
12980
12980
|
}
|
12981
12981
|
function jumpToParent() {
|
12982
12982
|
if (window.parentIFrame) window.parentIFrame.moveToAnchor(hash);
|
12983
|
-
else log(iframeId,
|
12983
|
+
else log(iframeId, 'In page link #' + hash + ' not found and window.parentIFrame not found');
|
12984
12984
|
}
|
12985
|
-
var hash = location.split(
|
12985
|
+
var hash = location.split('#')[1] || '', hashData = decodeURIComponent(hash), target = document.getElementById(hashData) || document.getElementsByName(hashData)[0];
|
12986
12986
|
if (target) jumpToTarget();
|
12987
|
-
else if (window.top === window.self) log(iframeId,
|
12987
|
+
else if (window.top === window.self) log(iframeId, 'In page link #' + hash + ' not found');
|
12988
12988
|
else jumpToParent();
|
12989
12989
|
}
|
12990
12990
|
function onMouse(event) {
|
12991
12991
|
var mousePos = {};
|
12992
12992
|
if (Number(messageData.width) === 0 && Number(messageData.height) === 0) {
|
12993
|
-
var data = getMsgBody(9).split(
|
12993
|
+
var data = getMsgBody(9).split(':');
|
12994
12994
|
mousePos = {
|
12995
12995
|
x: data[1],
|
12996
12996
|
y: data[0]
|
@@ -13012,46 +13012,46 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13012
13012
|
function actionMsg() {
|
13013
13013
|
if (settings[iframeId] && settings[iframeId].firstRun) firstRun();
|
13014
13014
|
switch(messageData.type){
|
13015
|
-
case
|
13015
|
+
case 'close':
|
13016
13016
|
closeIFrame(messageData.iframe);
|
13017
13017
|
break;
|
13018
|
-
case
|
13018
|
+
case 'message':
|
13019
13019
|
forwardMsgFromIFrame(getMsgBody(6));
|
13020
13020
|
break;
|
13021
|
-
case
|
13022
|
-
onMouse(
|
13021
|
+
case 'mouseenter':
|
13022
|
+
onMouse('onMouseEnter');
|
13023
13023
|
break;
|
13024
|
-
case
|
13025
|
-
onMouse(
|
13024
|
+
case 'mouseleave':
|
13025
|
+
onMouse('onMouseLeave');
|
13026
13026
|
break;
|
13027
|
-
case
|
13027
|
+
case 'autoResize':
|
13028
13028
|
settings[iframeId].autoResize = JSON.parse(getMsgBody(9));
|
13029
13029
|
break;
|
13030
|
-
case
|
13030
|
+
case 'scrollTo':
|
13031
13031
|
scrollRequestFromChild(false);
|
13032
13032
|
break;
|
13033
|
-
case
|
13033
|
+
case 'scrollToOffset':
|
13034
13034
|
scrollRequestFromChild(true);
|
13035
13035
|
break;
|
13036
|
-
case
|
13036
|
+
case 'pageInfo':
|
13037
13037
|
sendPageInfoToIframe(settings[iframeId] && settings[iframeId].iframe, iframeId);
|
13038
13038
|
startPageInfoMonitor();
|
13039
13039
|
break;
|
13040
|
-
case
|
13040
|
+
case 'pageInfoStop':
|
13041
13041
|
stopPageInfoMonitor();
|
13042
13042
|
break;
|
13043
|
-
case
|
13043
|
+
case 'inPageLink':
|
13044
13044
|
findTarget(getMsgBody(9));
|
13045
13045
|
break;
|
13046
|
-
case
|
13046
|
+
case 'reset':
|
13047
13047
|
resetIFrame(messageData);
|
13048
13048
|
break;
|
13049
|
-
case
|
13049
|
+
case 'init':
|
13050
13050
|
resizeIFrame();
|
13051
|
-
on(
|
13051
|
+
on('onInit', messageData.iframe);
|
13052
13052
|
break;
|
13053
13053
|
default:
|
13054
|
-
if (Number(messageData.width) === 0 && Number(messageData.height) === 0) warn(
|
13054
|
+
if (Number(messageData.width) === 0 && Number(messageData.height) === 0) warn('Unsupported message received (' + messageData.type + '), this is likely due to the iframe containing a later ' + 'version of iframe-resizer than the parent page');
|
13055
13055
|
else resizeIFrame();
|
13056
13056
|
}
|
13057
13057
|
}
|
@@ -13059,35 +13059,35 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13059
13059
|
var retBool = true;
|
13060
13060
|
if (!settings[iframeId]) {
|
13061
13061
|
retBool = false;
|
13062
|
-
warn(messageData.type +
|
13062
|
+
warn(messageData.type + ' No settings for ' + iframeId + '. Message was: ' + msg);
|
13063
13063
|
}
|
13064
13064
|
return retBool;
|
13065
13065
|
}
|
13066
13066
|
function iFrameReadyMsgReceived() {
|
13067
13067
|
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
13068
|
-
for(var iframeId in settings)trigger(
|
13068
|
+
for(var iframeId in settings)trigger('iFrame requested init', createOutgoingMsg(iframeId), settings[iframeId].iframe, iframeId);
|
13069
13069
|
}
|
13070
13070
|
function firstRun() {
|
13071
13071
|
if (settings[iframeId]) settings[iframeId].firstRun = false;
|
13072
13072
|
}
|
13073
13073
|
var msg = event.data, messageData = {}, iframeId = null;
|
13074
|
-
if (
|
13074
|
+
if ('[iFrameResizerChild]Ready' === msg) iFrameReadyMsgReceived();
|
13075
13075
|
else if (isMessageForUs()) {
|
13076
13076
|
messageData = processMsg();
|
13077
13077
|
iframeId = messageData.id;
|
13078
13078
|
if (settings[iframeId]) settings[iframeId].loaded = true;
|
13079
13079
|
if (!isMessageFromMetaParent() && hasSettings(iframeId)) {
|
13080
|
-
log(iframeId,
|
13080
|
+
log(iframeId, 'Received: ' + msg);
|
13081
13081
|
if (checkIFrameExists() && isMessageFromIFrame()) actionMsg();
|
13082
13082
|
}
|
13083
|
-
} else info(iframeId,
|
13083
|
+
} else info(iframeId, 'Ignored: ' + msg);
|
13084
13084
|
}
|
13085
13085
|
function chkEvent(iframeId, funcName, val) {
|
13086
13086
|
var func = null, retVal = null;
|
13087
13087
|
if (settings[iframeId]) {
|
13088
13088
|
func = settings[iframeId][funcName];
|
13089
|
-
if (
|
13090
|
-
else throw new TypeError(funcName +
|
13089
|
+
if ('function' === typeof func) retVal = func(val);
|
13090
|
+
else throw new TypeError(funcName + ' on iFrame[' + iframeId + '] is not a function');
|
13091
13091
|
}
|
13092
13092
|
return retVal;
|
13093
13093
|
}
|
@@ -13097,19 +13097,19 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13097
13097
|
}
|
13098
13098
|
function closeIFrame(iframe) {
|
13099
13099
|
var iframeId = iframe.id;
|
13100
|
-
if (chkEvent(iframeId,
|
13101
|
-
log(iframeId,
|
13100
|
+
if (chkEvent(iframeId, 'onClose', iframeId) === false) {
|
13101
|
+
log(iframeId, 'Close iframe cancelled by onClose event');
|
13102
13102
|
return;
|
13103
13103
|
}
|
13104
|
-
log(iframeId,
|
13104
|
+
log(iframeId, 'Removing iFrame: ' + iframeId);
|
13105
13105
|
try {
|
13106
13106
|
// Catch race condition error with React
|
13107
13107
|
if (iframe.parentNode) iframe.parentNode.removeChild(iframe);
|
13108
13108
|
} catch (error) {
|
13109
13109
|
warn(error);
|
13110
13110
|
}
|
13111
|
-
chkEvent(iframeId,
|
13112
|
-
log(iframeId,
|
13111
|
+
chkEvent(iframeId, 'onClosed', iframeId);
|
13112
|
+
log(iframeId, '--');
|
13113
13113
|
removeIframeListeners(iframe);
|
13114
13114
|
}
|
13115
13115
|
function getPagePosition(iframeId) {
|
@@ -13118,13 +13118,13 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13118
13118
|
x: window.pageXOffset === undefined ? document.documentElement.scrollLeft : window.pageXOffset,
|
13119
13119
|
y: window.pageYOffset === undefined ? document.documentElement.scrollTop : window.pageYOffset
|
13120
13120
|
};
|
13121
|
-
log(iframeId,
|
13121
|
+
log(iframeId, 'Get page position: ' + pagePosition.x + ',' + pagePosition.y);
|
13122
13122
|
}
|
13123
13123
|
}
|
13124
13124
|
function setPagePosition(iframeId) {
|
13125
13125
|
if (null !== pagePosition) {
|
13126
13126
|
window.scrollTo(pagePosition.x, pagePosition.y);
|
13127
|
-
log(iframeId,
|
13127
|
+
log(iframeId, 'Set page position: ' + pagePosition.x + ',' + pagePosition.y);
|
13128
13128
|
unsetPagePosition();
|
13129
13129
|
}
|
13130
13130
|
}
|
@@ -13134,29 +13134,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13134
13134
|
function resetIFrame(messageData) {
|
13135
13135
|
function reset() {
|
13136
13136
|
setSize(messageData);
|
13137
|
-
trigger(
|
13137
|
+
trigger('reset', 'reset', messageData.iframe, messageData.id);
|
13138
13138
|
}
|
13139
|
-
log(messageData.id,
|
13139
|
+
log(messageData.id, 'Size reset requested by ' + ('init' === messageData.type ? 'host page' : 'iFrame'));
|
13140
13140
|
getPagePosition(messageData.id);
|
13141
|
-
syncResize(reset, messageData,
|
13141
|
+
syncResize(reset, messageData, 'reset');
|
13142
13142
|
}
|
13143
13143
|
function setSize(messageData) {
|
13144
13144
|
function setDimension(dimension) {
|
13145
13145
|
if (!messageData.id) {
|
13146
|
-
log(
|
13146
|
+
log('undefined', 'messageData id not set');
|
13147
13147
|
return;
|
13148
13148
|
}
|
13149
|
-
messageData.iframe.style[dimension] = messageData[dimension] +
|
13150
|
-
log(messageData.id,
|
13149
|
+
messageData.iframe.style[dimension] = messageData[dimension] + 'px';
|
13150
|
+
log(messageData.id, 'IFrame (' + iframeId + ') ' + dimension + ' set to ' + messageData[dimension] + 'px');
|
13151
13151
|
}
|
13152
13152
|
function chkZero(dimension) {
|
13153
13153
|
// FireFox sets dimension of hidden iFrames to zero.
|
13154
13154
|
// So if we detect that set up an event to check for
|
13155
13155
|
// when iFrame becomes visible.
|
13156
13156
|
/* istanbul ignore next */ // Not testable in PhantomJS
|
13157
|
-
if (!hiddenCheckEnabled &&
|
13157
|
+
if (!hiddenCheckEnabled && '0' === messageData[dimension]) {
|
13158
13158
|
hiddenCheckEnabled = true;
|
13159
|
-
log(iframeId,
|
13159
|
+
log(iframeId, 'Hidden iFrame detected, creating visibility listener');
|
13160
13160
|
fixHiddenIFrames();
|
13161
13161
|
}
|
13162
13162
|
}
|
@@ -13166,29 +13166,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13166
13166
|
}
|
13167
13167
|
var iframeId = messageData.iframe.id;
|
13168
13168
|
if (settings[iframeId]) {
|
13169
|
-
if (settings[iframeId].sizeHeight) processDimension(
|
13170
|
-
if (settings[iframeId].sizeWidth) processDimension(
|
13169
|
+
if (settings[iframeId].sizeHeight) processDimension('height');
|
13170
|
+
if (settings[iframeId].sizeWidth) processDimension('width');
|
13171
13171
|
}
|
13172
13172
|
}
|
13173
13173
|
function syncResize(func, messageData, doNotSync) {
|
13174
13174
|
/* istanbul ignore if */ // Not testable in PhantomJS
|
13175
13175
|
if (doNotSync !== messageData.type && requestAnimationFrame && // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame
|
13176
13176
|
!window.jasmine) {
|
13177
|
-
log(messageData.id,
|
13177
|
+
log(messageData.id, 'Requesting animation frame');
|
13178
13178
|
requestAnimationFrame(func);
|
13179
13179
|
} else func();
|
13180
13180
|
}
|
13181
13181
|
function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {
|
13182
13182
|
function postMessageToIFrame() {
|
13183
13183
|
var target = settings[id] && settings[id].targetOrigin;
|
13184
|
-
log(id,
|
13184
|
+
log(id, '[' + calleeMsg + '] Sending msg to iframe[' + id + '] (' + msg + ') targetOrigin: ' + target);
|
13185
13185
|
iframe.contentWindow.postMessage(msgId + msg, target);
|
13186
13186
|
}
|
13187
13187
|
function iFrameNotFound() {
|
13188
|
-
warn(id,
|
13188
|
+
warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found');
|
13189
13189
|
}
|
13190
13190
|
function chkAndSend() {
|
13191
|
-
if (iframe &&
|
13191
|
+
if (iframe && 'contentWindow' in iframe && null !== iframe.contentWindow) // Null test for PhantomJS
|
13192
13192
|
postMessageToIFrame();
|
13193
13193
|
else iFrameNotFound();
|
13194
13194
|
}
|
@@ -13196,7 +13196,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13196
13196
|
function warning() {
|
13197
13197
|
if (settings[id] && !settings[id].loaded && !errorShown) {
|
13198
13198
|
errorShown = true;
|
13199
|
-
warn(id,
|
13199
|
+
warn(id, 'IFrame has not responded within ' + settings[id].warningTimeout / 1000 + ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.');
|
13200
13200
|
}
|
13201
13201
|
}
|
13202
13202
|
if (!!noResponseWarning && settings[id] && !!settings[id].warningTimeout) settings[id].msgTimeout = setTimeout(warning, settings[id].warningTimeout);
|
@@ -13209,29 +13209,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13209
13209
|
}
|
13210
13210
|
}
|
13211
13211
|
function createOutgoingMsg(iframeId) {
|
13212
|
-
return iframeId +
|
13212
|
+
return iframeId + ':' + settings[iframeId].bodyMarginV1 + ':' + settings[iframeId].sizeWidth + ':' + settings[iframeId].log + ':' + settings[iframeId].interval + ':' + settings[iframeId].enablePublicMethods + ':' + settings[iframeId].autoResize + ':' + settings[iframeId].bodyMargin + ':' + settings[iframeId].heightCalculationMethod + ':' + settings[iframeId].bodyBackground + ':' + settings[iframeId].bodyPadding + ':' + settings[iframeId].tolerance + ':' + settings[iframeId].inPageLinks + ':' + settings[iframeId].resizeFrom + ':' + settings[iframeId].widthCalculationMethod + ':' + settings[iframeId].mouseEvents;
|
13213
13213
|
}
|
13214
13214
|
function isNumber(value) {
|
13215
|
-
return typeof value ===
|
13215
|
+
return typeof value === 'number';
|
13216
13216
|
}
|
13217
13217
|
function setupIFrame(iframe, options) {
|
13218
13218
|
function setLimits() {
|
13219
13219
|
function addStyle(style) {
|
13220
13220
|
var styleValue = settings[iframeId][style];
|
13221
13221
|
if (Infinity !== styleValue && 0 !== styleValue) {
|
13222
|
-
iframe.style[style] = isNumber(styleValue) ? styleValue +
|
13223
|
-
log(iframeId,
|
13222
|
+
iframe.style[style] = isNumber(styleValue) ? styleValue + 'px' : styleValue;
|
13223
|
+
log(iframeId, 'Set ' + style + ' = ' + iframe.style[style]);
|
13224
13224
|
}
|
13225
13225
|
}
|
13226
13226
|
function chkMinMax(dimension) {
|
13227
|
-
if (settings[iframeId][
|
13227
|
+
if (settings[iframeId]['min' + dimension] > settings[iframeId]['max' + dimension]) throw new Error('Value for min' + dimension + ' can not be greater than max' + dimension);
|
13228
13228
|
}
|
13229
|
-
chkMinMax(
|
13230
|
-
chkMinMax(
|
13231
|
-
addStyle(
|
13232
|
-
addStyle(
|
13233
|
-
addStyle(
|
13234
|
-
addStyle(
|
13229
|
+
chkMinMax('Height');
|
13230
|
+
chkMinMax('Width');
|
13231
|
+
addStyle('maxHeight');
|
13232
|
+
addStyle('minHeight');
|
13233
|
+
addStyle('maxWidth');
|
13234
|
+
addStyle('minWidth');
|
13235
13235
|
}
|
13236
13236
|
function newId() {
|
13237
13237
|
var id = options && options.id || defaults.id + count++;
|
@@ -13239,38 +13239,38 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13239
13239
|
return id;
|
13240
13240
|
}
|
13241
13241
|
function ensureHasId(iframeId) {
|
13242
|
-
if (typeof iframeId !==
|
13243
|
-
if (
|
13242
|
+
if (typeof iframeId !== 'string') throw new TypeError('Invaild id for iFrame. Expected String');
|
13243
|
+
if ('' === iframeId) {
|
13244
13244
|
// eslint-disable-next-line no-multi-assign
|
13245
13245
|
iframe.id = iframeId = newId();
|
13246
13246
|
logEnabled = (options || {}).log;
|
13247
|
-
log(iframeId,
|
13247
|
+
log(iframeId, 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')');
|
13248
13248
|
}
|
13249
13249
|
return iframeId;
|
13250
13250
|
}
|
13251
13251
|
function setScrolling() {
|
13252
|
-
log(iframeId,
|
13253
|
-
iframe.style.overflow = false === (settings[iframeId] && settings[iframeId].scrolling) ?
|
13252
|
+
log(iframeId, 'IFrame scrolling ' + (settings[iframeId] && settings[iframeId].scrolling ? 'enabled' : 'disabled') + ' for ' + iframeId);
|
13253
|
+
iframe.style.overflow = false === (settings[iframeId] && settings[iframeId].scrolling) ? 'hidden' : 'auto';
|
13254
13254
|
switch(settings[iframeId] && settings[iframeId].scrolling){
|
13255
|
-
case
|
13255
|
+
case 'omit':
|
13256
13256
|
break;
|
13257
13257
|
case true:
|
13258
|
-
iframe.scrolling =
|
13258
|
+
iframe.scrolling = 'yes';
|
13259
13259
|
break;
|
13260
13260
|
case false:
|
13261
|
-
iframe.scrolling =
|
13261
|
+
iframe.scrolling = 'no';
|
13262
13262
|
break;
|
13263
13263
|
default:
|
13264
|
-
iframe.scrolling = settings[iframeId] ? settings[iframeId].scrolling :
|
13264
|
+
iframe.scrolling = settings[iframeId] ? settings[iframeId].scrolling : 'no';
|
13265
13265
|
}
|
13266
13266
|
}
|
13267
13267
|
// The V1 iFrame script expects an int, where as in V2 expects a CSS
|
13268
13268
|
// string value such as '1px 3em', so if we have an int for V2, set V1=V2
|
13269
13269
|
// and then convert V2 to a string PX value.
|
13270
13270
|
function setupBodyMarginValues() {
|
13271
|
-
if (
|
13271
|
+
if ('number' === typeof (settings[iframeId] && settings[iframeId].bodyMargin) || '0' === (settings[iframeId] && settings[iframeId].bodyMargin)) {
|
13272
13272
|
settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin;
|
13273
|
-
settings[iframeId].bodyMargin =
|
13273
|
+
settings[iframeId].bodyMargin = '' + settings[iframeId].bodyMargin + 'px';
|
13274
13274
|
}
|
13275
13275
|
}
|
13276
13276
|
function checkReset() {
|
@@ -13282,20 +13282,20 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13282
13282
|
iframe: iframe,
|
13283
13283
|
height: 0,
|
13284
13284
|
width: 0,
|
13285
|
-
type:
|
13285
|
+
type: 'init'
|
13286
13286
|
});
|
13287
13287
|
}
|
13288
13288
|
function setupIFrameObject() {
|
13289
13289
|
if (settings[iframeId]) settings[iframeId].iframe.iFrameResizer = {
|
13290
13290
|
close: closeIFrame.bind(null, settings[iframeId].iframe),
|
13291
13291
|
removeListeners: removeIframeListeners.bind(null, settings[iframeId].iframe),
|
13292
|
-
resize: trigger.bind(null,
|
13292
|
+
resize: trigger.bind(null, 'Window resize', 'resize', settings[iframeId].iframe),
|
13293
13293
|
moveToAnchor: function(anchor) {
|
13294
|
-
trigger(
|
13294
|
+
trigger('Move to anchor', 'moveToAnchor:' + anchor, settings[iframeId].iframe, iframeId);
|
13295
13295
|
},
|
13296
13296
|
sendMessage: function(message) {
|
13297
13297
|
message = JSON.stringify(message);
|
13298
|
-
trigger(
|
13298
|
+
trigger('Send Message', 'message:' + message, settings[iframeId].iframe, iframeId);
|
13299
13299
|
}
|
13300
13300
|
};
|
13301
13301
|
}
|
@@ -13304,7 +13304,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13304
13304
|
// event listener also catches the page changing in the iFrame.
|
13305
13305
|
function init(msg) {
|
13306
13306
|
function iFrameLoaded() {
|
13307
|
-
trigger(
|
13307
|
+
trigger('iFrame.onload', msg, iframe, undefined, true);
|
13308
13308
|
checkReset();
|
13309
13309
|
}
|
13310
13310
|
function createDestroyObserver(MutationObserver) {
|
@@ -13324,23 +13324,23 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13324
13324
|
}
|
13325
13325
|
var MutationObserver = getMutationObserver();
|
13326
13326
|
if (MutationObserver) createDestroyObserver(MutationObserver);
|
13327
|
-
addEventListener(iframe,
|
13328
|
-
trigger(
|
13327
|
+
addEventListener(iframe, 'load', iFrameLoaded);
|
13328
|
+
trigger('init', msg, iframe, undefined, true);
|
13329
13329
|
}
|
13330
13330
|
function checkOptions(options) {
|
13331
|
-
if (
|
13331
|
+
if ('object' !== typeof options) throw new TypeError('Options is not an object');
|
13332
13332
|
}
|
13333
13333
|
function copyOptions(options) {
|
13334
13334
|
// eslint-disable-next-line no-restricted-syntax
|
13335
13335
|
for(var option in defaults)if (Object.prototype.hasOwnProperty.call(defaults, option)) settings[iframeId][option] = Object.prototype.hasOwnProperty.call(options, option) ? options[option] : defaults[option];
|
13336
13336
|
}
|
13337
13337
|
function getTargetOrigin(remoteHost) {
|
13338
|
-
return
|
13338
|
+
return '' === remoteHost || null !== remoteHost.match(/^(about:blank|javascript:|file:\/\/)/) ? '*' : remoteHost;
|
13339
13339
|
}
|
13340
13340
|
function depricate(key) {
|
13341
|
-
var splitName = key.split(
|
13341
|
+
var splitName = key.split('Callback');
|
13342
13342
|
if (splitName.length === 2) {
|
13343
|
-
var name =
|
13343
|
+
var name = 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1);
|
13344
13344
|
this[name] = this[key];
|
13345
13345
|
delete this[key];
|
13346
13346
|
warn(iframeId, "Deprecated: '" + key + "' has been renamed '" + name + "'. The old method will be removed in the next major version.");
|
@@ -13352,17 +13352,17 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13352
13352
|
;
|
13353
13353
|
settings[iframeId].iframe = iframe;
|
13354
13354
|
settings[iframeId].firstRun = true;
|
13355
|
-
settings[iframeId].remoteHost = iframe.src && iframe.src.split(
|
13355
|
+
settings[iframeId].remoteHost = iframe.src && iframe.src.split('/').slice(0, 3).join('/');
|
13356
13356
|
checkOptions(options);
|
13357
13357
|
Object.keys(options).forEach(depricate, options);
|
13358
13358
|
copyOptions(options);
|
13359
|
-
if (settings[iframeId]) settings[iframeId].targetOrigin = true === settings[iframeId].checkOrigin ? getTargetOrigin(settings[iframeId].remoteHost) :
|
13359
|
+
if (settings[iframeId]) settings[iframeId].targetOrigin = true === settings[iframeId].checkOrigin ? getTargetOrigin(settings[iframeId].remoteHost) : '*';
|
13360
13360
|
}
|
13361
13361
|
function beenHere() {
|
13362
|
-
return iframeId in settings &&
|
13362
|
+
return iframeId in settings && 'iFrameResizer' in iframe;
|
13363
13363
|
}
|
13364
13364
|
var iframeId = ensureHasId(iframe.id);
|
13365
|
-
if (beenHere()) warn(iframeId,
|
13365
|
+
if (beenHere()) warn(iframeId, 'Ignored iFrame, already setup.');
|
13366
13366
|
else {
|
13367
13367
|
processOptions(options);
|
13368
13368
|
setScrolling();
|
@@ -13390,23 +13390,23 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13390
13390
|
function checkIFrames() {
|
13391
13391
|
function checkIFrame(settingId) {
|
13392
13392
|
function chkDimension(dimension) {
|
13393
|
-
return
|
13393
|
+
return '0px' === (settings[settingId] && settings[settingId].iframe.style[dimension]);
|
13394
13394
|
}
|
13395
13395
|
function isVisible(el) {
|
13396
13396
|
return null !== el.offsetParent;
|
13397
13397
|
}
|
13398
|
-
if (settings[settingId] && isVisible(settings[settingId].iframe) && (chkDimension(
|
13398
|
+
if (settings[settingId] && isVisible(settings[settingId].iframe) && (chkDimension('height') || chkDimension('width'))) trigger('Visibility change', 'resize', settings[settingId].iframe, settingId);
|
13399
13399
|
}
|
13400
13400
|
Object.keys(settings).forEach(function(key) {
|
13401
13401
|
checkIFrame(key);
|
13402
13402
|
});
|
13403
13403
|
}
|
13404
13404
|
function mutationObserved(mutations) {
|
13405
|
-
log(
|
13405
|
+
log('window', 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type);
|
13406
13406
|
debouce(checkIFrames, 16);
|
13407
13407
|
}
|
13408
13408
|
function createMutationObserver() {
|
13409
|
-
var target = document.querySelector(
|
13409
|
+
var target = document.querySelector('body'), config = {
|
13410
13410
|
attributes: true,
|
13411
13411
|
attributeOldValue: false,
|
13412
13412
|
characterData: true,
|
@@ -13421,42 +13421,42 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13421
13421
|
}
|
13422
13422
|
function resizeIFrames(event) {
|
13423
13423
|
function resize() {
|
13424
|
-
sendTriggerMsg(
|
13424
|
+
sendTriggerMsg('Window ' + event, 'resize');
|
13425
13425
|
}
|
13426
|
-
log(
|
13426
|
+
log('window', 'Trigger event: ' + event);
|
13427
13427
|
debouce(resize, 16);
|
13428
13428
|
}
|
13429
13429
|
// Not testable in PhantomJS
|
13430
13430
|
/* istanbul ignore next */ function tabVisible() {
|
13431
13431
|
function resize() {
|
13432
|
-
sendTriggerMsg(
|
13432
|
+
sendTriggerMsg('Tab Visible', 'resize');
|
13433
13433
|
}
|
13434
|
-
if (
|
13435
|
-
log(
|
13434
|
+
if ('hidden' !== document.visibilityState) {
|
13435
|
+
log('document', 'Trigger event: Visibility change');
|
13436
13436
|
debouce(resize, 16);
|
13437
13437
|
}
|
13438
13438
|
}
|
13439
13439
|
function sendTriggerMsg(eventName, event) {
|
13440
13440
|
function isIFrameResizeEnabled(iframeId) {
|
13441
|
-
return settings[iframeId] &&
|
13441
|
+
return settings[iframeId] && 'parent' === settings[iframeId].resizeFrom && settings[iframeId].autoResize && !settings[iframeId].firstRun;
|
13442
13442
|
}
|
13443
13443
|
Object.keys(settings).forEach(function(iframeId) {
|
13444
13444
|
if (isIFrameResizeEnabled(iframeId)) trigger(eventName, event, settings[iframeId].iframe, iframeId);
|
13445
13445
|
});
|
13446
13446
|
}
|
13447
13447
|
function setupEventListeners() {
|
13448
|
-
addEventListener(window,
|
13449
|
-
addEventListener(window,
|
13450
|
-
resizeIFrames(
|
13448
|
+
addEventListener(window, 'message', iFrameListener);
|
13449
|
+
addEventListener(window, 'resize', function() {
|
13450
|
+
resizeIFrames('resize');
|
13451
13451
|
});
|
13452
|
-
addEventListener(document,
|
13453
|
-
addEventListener(document,
|
13452
|
+
addEventListener(document, 'visibilitychange', tabVisible);
|
13453
|
+
addEventListener(document, '-webkit-visibilitychange', tabVisible);
|
13454
13454
|
}
|
13455
13455
|
function factory() {
|
13456
13456
|
function init(options, element) {
|
13457
13457
|
function chkType() {
|
13458
|
-
if (!element.tagName) throw new TypeError(
|
13459
|
-
else if (
|
13458
|
+
if (!element.tagName) throw new TypeError('Object is not a valid DOM element');
|
13459
|
+
else if ('IFRAME' !== element.tagName.toUpperCase()) throw new TypeError('Expected <IFRAME> tag, found <' + element.tagName + '>');
|
13460
13460
|
}
|
13461
13461
|
if (element) {
|
13462
13462
|
chkType();
|
@@ -13465,7 +13465,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13465
13465
|
}
|
13466
13466
|
}
|
13467
13467
|
function warnDeprecatedOptions(options) {
|
13468
|
-
if (options && options.enablePublicMethods) warn(
|
13468
|
+
if (options && options.enablePublicMethods) warn('enablePublicMethods option has been removed, public methods are now always available in the iFrame');
|
13469
13469
|
}
|
13470
13470
|
var iFrames;
|
13471
13471
|
setupRequestAnimationFrame();
|
@@ -13475,31 +13475,31 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13475
13475
|
;
|
13476
13476
|
warnDeprecatedOptions(options);
|
13477
13477
|
switch(typeof target){
|
13478
|
-
case
|
13479
|
-
case
|
13480
|
-
Array.prototype.forEach.call(document.querySelectorAll(target ||
|
13478
|
+
case 'undefined':
|
13479
|
+
case 'string':
|
13480
|
+
Array.prototype.forEach.call(document.querySelectorAll(target || 'iframe'), init.bind(undefined, options));
|
13481
13481
|
break;
|
13482
|
-
case
|
13482
|
+
case 'object':
|
13483
13483
|
init(options, target);
|
13484
13484
|
break;
|
13485
13485
|
default:
|
13486
|
-
throw new TypeError(
|
13486
|
+
throw new TypeError('Unexpected data type (' + typeof target + ')');
|
13487
13487
|
}
|
13488
13488
|
return iFrames;
|
13489
13489
|
};
|
13490
13490
|
}
|
13491
13491
|
function createJQueryPublicMethod($) {
|
13492
|
-
if (!$.fn) info(
|
13492
|
+
if (!$.fn) info('', 'Unable to bind to jQuery, it is not fully loaded.');
|
13493
13493
|
else if (!$.fn.iFrameResize) $.fn.iFrameResize = function $iFrameResizeF(options) {
|
13494
13494
|
function init(index, element) {
|
13495
13495
|
setupIFrame(element, options);
|
13496
13496
|
}
|
13497
|
-
return this.filter(
|
13497
|
+
return this.filter('iframe').each(init).end();
|
13498
13498
|
};
|
13499
13499
|
}
|
13500
13500
|
if (window.jQuery !== undefined) createJQueryPublicMethod(window.jQuery);
|
13501
|
-
if (typeof define ===
|
13502
|
-
else if (typeof $ef5e88eaa61efd95$exports ===
|
13501
|
+
if (typeof define === 'function' && define.amd) define([], factory);
|
13502
|
+
else if (typeof $ef5e88eaa61efd95$exports === 'object') // Node for browserfy
|
13503
13503
|
$ef5e88eaa61efd95$exports = factory();
|
13504
13504
|
window.iFrameResize = window.iFrameResize || factory();
|
13505
13505
|
})();
|
@@ -13552,6 +13552,38 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) {
|
|
13552
13552
|
}
|
13553
13553
|
|
13554
13554
|
|
13555
|
+
var $1a7a7298eec5b755$exports = {};
|
13556
|
+
|
13557
|
+
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13558
|
+
|
13559
|
+
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13560
|
+
|
13561
|
+
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13562
|
+
return {
|
13563
|
+
narrow: false,
|
13564
|
+
init () {
|
13565
|
+
(0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13566
|
+
this.narrow = width < 500;
|
13567
|
+
});
|
13568
|
+
}
|
13569
|
+
};
|
13570
|
+
}
|
13571
|
+
|
13572
|
+
|
13573
|
+
var $e773f8ef556b41ff$exports = {};
|
13574
|
+
|
13575
|
+
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13576
|
+
|
13577
|
+
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13578
|
+
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13579
|
+
return {
|
13580
|
+
get isNarrowLayout () {
|
13581
|
+
return this.narrow || false;
|
13582
|
+
}
|
13583
|
+
};
|
13584
|
+
}
|
13585
|
+
|
13586
|
+
|
13555
13587
|
var $9b24cbeb3a465447$exports = {};
|
13556
13588
|
|
13557
13589
|
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
|
@@ -13609,51 +13641,19 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
|
|
13609
13641
|
}
|
13610
13642
|
|
13611
13643
|
|
13612
|
-
|
13613
|
-
|
13614
|
-
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13615
|
-
|
13616
|
-
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13617
|
-
|
13618
|
-
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13619
|
-
return {
|
13620
|
-
narrow: false,
|
13621
|
-
init () {
|
13622
|
-
(0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13623
|
-
this.narrow = width < 500;
|
13624
|
-
});
|
13625
|
-
}
|
13626
|
-
};
|
13627
|
-
}
|
13628
|
-
|
13629
|
-
|
13630
|
-
var $e773f8ef556b41ff$exports = {};
|
13631
|
-
|
13632
|
-
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13633
|
-
|
13634
|
-
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13635
|
-
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13636
|
-
return {
|
13637
|
-
get isNarrowLayout () {
|
13638
|
-
return this.narrow || false;
|
13639
|
-
}
|
13640
|
-
};
|
13641
|
-
}
|
13642
|
-
|
13643
|
-
|
13644
|
-
$6178ee12f80cbf68$exports = {
|
13644
|
+
$5d1c9207cb730903$exports = {
|
13645
13645
|
"display_options": {
|
13646
13646
|
"field": $6a9b69d9cc7f810f$exports
|
13647
13647
|
},
|
13648
13648
|
"embed": {
|
13649
13649
|
"inspector": $c299e36fa9e271bc$exports
|
13650
13650
|
},
|
13651
|
-
"nav": {
|
13652
|
-
"item": $9b24cbeb3a465447$exports
|
13653
|
-
},
|
13654
13651
|
"params": {
|
13655
13652
|
"editor": $1a7a7298eec5b755$exports,
|
13656
13653
|
"field": $e773f8ef556b41ff$exports
|
13654
|
+
},
|
13655
|
+
"nav": {
|
13656
|
+
"item": $9b24cbeb3a465447$exports
|
13657
13657
|
}
|
13658
13658
|
};
|
13659
13659
|
|
@@ -13721,8 +13721,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13721
13721
|
// Components
|
13722
13722
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13723
13723
|
[
|
13724
|
-
$
|
13725
|
-
$
|
13724
|
+
$c9dfaeb25bf110ce$exports,
|
13725
|
+
$5d1c9207cb730903$exports,
|
13726
13726
|
$d56e5cced44001d2$exports
|
13727
13727
|
].forEach((scripts)=>{
|
13728
13728
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|