lookbook 2.3.5 → 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/app/components/lookbook/button/component.html.erb +1 -1
- data/app/components/lookbook/button/component.js +10 -3
- data/app/components/lookbook/display_options/editor/component.html.erb +1 -1
- 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 +841 -835
- 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 +3 -379
- 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 = {
|
@@ -7760,11 +7760,14 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7760
7760
|
* `callback` is executed at the proper times in `throttle` and `end`
|
7761
7761
|
* debounce modes.
|
7762
7762
|
*/ var timeoutID;
|
7763
|
-
var cancelled = false;
|
7764
|
-
|
7763
|
+
var cancelled = false;
|
7764
|
+
// Keep track of the last time `callback` was executed.
|
7765
|
+
var lastExec = 0;
|
7766
|
+
// Function to clear existing timeout
|
7765
7767
|
function clearExistingTimeout() {
|
7766
7768
|
if (timeoutID) clearTimeout(timeoutID);
|
7767
|
-
}
|
7769
|
+
}
|
7770
|
+
// Function to cancel next exec
|
7768
7771
|
function cancel(options) {
|
7769
7772
|
var _ref2 = options || {}, _ref2$upcomingOnly = _ref2.upcomingOnly, upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
7770
7773
|
clearExistingTimeout();
|
@@ -7779,7 +7782,7 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7779
7782
|
var self = this;
|
7780
7783
|
var elapsed = Date.now() - lastExec;
|
7781
7784
|
if (cancelled) return;
|
7782
|
-
|
7785
|
+
// Execute `callback` and update the `lastExec` timestamp.
|
7783
7786
|
function exec() {
|
7784
7787
|
lastExec = Date.now();
|
7785
7788
|
callback.apply(self, arguments_);
|
@@ -7820,7 +7823,8 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7820
7823
|
* execute after `delay` ms.
|
7821
7824
|
*/ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
7822
7825
|
}
|
7823
|
-
wrapper.cancel = cancel;
|
7826
|
+
wrapper.cancel = cancel;
|
7827
|
+
// Return the wrapper function.
|
7824
7828
|
return wrapper;
|
7825
7829
|
}
|
7826
7830
|
/* eslint-disable no-undefined */ /**
|
@@ -8026,7 +8030,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8026
8030
|
}
|
8027
8031
|
|
8028
8032
|
|
8029
|
-
var $
|
8033
|
+
var $c9dfaeb25bf110ce$exports = {};
|
8030
8034
|
var $cbd28b10fa9798c7$exports = {};
|
8031
8035
|
|
8032
8036
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -8037,13 +8041,13 @@ $parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$exp
|
|
8037
8041
|
* (c) 2017-2021 atomiks
|
8038
8042
|
* MIT License
|
8039
8043
|
*/ function $59d97a6bab2b727e$export$2e2bcd8739ae039(element) {
|
8040
|
-
return element ? (element.nodeName ||
|
8044
|
+
return element ? (element.nodeName || '').toLowerCase() : null;
|
8041
8045
|
}
|
8042
8046
|
|
8043
8047
|
|
8044
8048
|
function $f41f4520bee001a7$export$2e2bcd8739ae039(node) {
|
8045
8049
|
if (node == null) return window;
|
8046
|
-
if (node.toString() !==
|
8050
|
+
if (node.toString() !== '[object Window]') {
|
8047
8051
|
var ownerDocument = node.ownerDocument;
|
8048
8052
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
8049
8053
|
}
|
@@ -8061,7 +8065,7 @@ function $1fa2a5446b18c455$export$1b3bfaa9684536aa(node) {
|
|
8061
8065
|
}
|
8062
8066
|
function $1fa2a5446b18c455$export$af51f0f06c0f328a(node) {
|
8063
8067
|
// IE 11 has no ShadowRoot
|
8064
|
-
if (typeof ShadowRoot ===
|
8068
|
+
if (typeof ShadowRoot === 'undefined') return false;
|
8065
8069
|
var OwnElement = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(node).ShadowRoot;
|
8066
8070
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
8067
8071
|
}
|
@@ -8082,7 +8086,7 @@ function $dfb41fce0bddd2d8$var$applyStyles(_ref) {
|
|
8082
8086
|
Object.keys(attributes).forEach(function(name) {
|
8083
8087
|
var value = attributes[name];
|
8084
8088
|
if (value === false) element.removeAttribute(name);
|
8085
|
-
else element.setAttribute(name, value === true ?
|
8089
|
+
else element.setAttribute(name, value === true ? '' : value);
|
8086
8090
|
});
|
8087
8091
|
});
|
8088
8092
|
}
|
@@ -8091,12 +8095,12 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8091
8095
|
var initialStyles = {
|
8092
8096
|
popper: {
|
8093
8097
|
position: state.options.strategy,
|
8094
|
-
left:
|
8095
|
-
top:
|
8096
|
-
margin:
|
8098
|
+
left: '0',
|
8099
|
+
top: '0',
|
8100
|
+
margin: '0'
|
8097
8101
|
},
|
8098
8102
|
arrow: {
|
8099
|
-
position:
|
8103
|
+
position: 'absolute'
|
8100
8104
|
},
|
8101
8105
|
reference: {}
|
8102
8106
|
};
|
@@ -8109,7 +8113,7 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8109
8113
|
var attributes = state.attributes[name] || {};
|
8110
8114
|
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
8111
8115
|
var style = styleProperties.reduce(function(style, property) {
|
8112
|
-
style[property] =
|
8116
|
+
style[property] = '';
|
8113
8117
|
return style;
|
8114
8118
|
}, {}); // arrow is optional + virtual elements
|
8115
8119
|
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || !(0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element)) return;
|
@@ -8121,13 +8125,13 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8121
8125
|
};
|
8122
8126
|
} // eslint-disable-next-line import/no-unused-modules
|
8123
8127
|
var $dfb41fce0bddd2d8$export$2e2bcd8739ae039 = {
|
8124
|
-
name:
|
8128
|
+
name: 'applyStyles',
|
8125
8129
|
enabled: true,
|
8126
|
-
phase:
|
8130
|
+
phase: 'write',
|
8127
8131
|
fn: $dfb41fce0bddd2d8$var$applyStyles,
|
8128
8132
|
effect: $dfb41fce0bddd2d8$var$effect,
|
8129
8133
|
requires: [
|
8130
|
-
|
8134
|
+
'computeStyles'
|
8131
8135
|
]
|
8132
8136
|
};
|
8133
8137
|
|
@@ -8142,7 +8146,7 @@ function $beb42d7aceecf8c8$export$2e2bcd8739ae039() {
|
|
8142
8146
|
var uaData = navigator.userAgentData;
|
8143
8147
|
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) return uaData.brands.map(function(item) {
|
8144
8148
|
return item.brand + "/" + item.version;
|
8145
|
-
}).join(
|
8149
|
+
}).join(' ');
|
8146
8150
|
return navigator.userAgent;
|
8147
8151
|
}
|
8148
8152
|
|
@@ -8268,7 +8272,7 @@ function $a195ad21b1cffe79$export$2e2bcd8739ae039(elementOrVirtualElement, offse
|
|
8268
8272
|
y: 0
|
8269
8273
|
};
|
8270
8274
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
8271
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !==
|
8275
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
8272
8276
|
(0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $40149fb4267f270e$export$2e2bcd8739ae039)(offsetParent);
|
8273
8277
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(offsetParent)) {
|
8274
8278
|
offsets = (0, $b854957821c00430$export$2e2bcd8739ae039)(offsetParent, true);
|
@@ -8306,7 +8310,7 @@ function $e287ac773d355028$export$2e2bcd8739ae039(element) {
|
|
8306
8310
|
|
8307
8311
|
|
8308
8312
|
function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
8309
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) ===
|
8313
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) === 'html') return element;
|
8310
8314
|
return(// $FlowFixMe[incompatible-return]
|
8311
8315
|
// $FlowFixMe[prop-missing]
|
8312
8316
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
@@ -8322,9 +8326,9 @@ function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
|
8322
8326
|
|
8323
8327
|
function $8fec37e99f881747$export$2e2bcd8739ae039(node) {
|
8324
8328
|
if ([
|
8325
|
-
|
8326
|
-
|
8327
|
-
|
8329
|
+
'html',
|
8330
|
+
'body',
|
8331
|
+
'#document'
|
8328
8332
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(node)) >= 0) // $FlowFixMe[incompatible-return]: assume body is always available
|
8329
8333
|
return node.ownerDocument.body;
|
8330
8334
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(node) && (0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(node)) return node;
|
@@ -8356,9 +8360,9 @@ function $f14b4e1cd31512ee$export$2e2bcd8739ae039(element, list) {
|
|
8356
8360
|
|
8357
8361
|
function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
8358
8362
|
return [
|
8359
|
-
|
8360
|
-
|
8361
|
-
|
8363
|
+
'table',
|
8364
|
+
'td',
|
8365
|
+
'th'
|
8362
8366
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element)) >= 0;
|
8363
8367
|
}
|
8364
8368
|
|
@@ -8367,7 +8371,7 @@ function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
|
8367
8371
|
|
8368
8372
|
function $4acba801a6bfbaa3$var$getTrueOffsetParent(element) {
|
8369
8373
|
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || // https://github.com/popperjs/popper-core/issues/837
|
8370
|
-
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position ===
|
8374
|
+
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position === 'fixed') return null;
|
8371
8375
|
return element.offsetParent;
|
8372
8376
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
8373
8377
|
// return the containing block
|
@@ -8377,21 +8381,21 @@ function $4acba801a6bfbaa3$var$getContainingBlock(element) {
|
|
8377
8381
|
if (isIE && (0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element)) {
|
8378
8382
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
8379
8383
|
var elementCss = (0, $392247934674b5b4$export$2e2bcd8739ae039)(element);
|
8380
|
-
if (elementCss.position ===
|
8384
|
+
if (elementCss.position === 'fixed') return null;
|
8381
8385
|
}
|
8382
8386
|
var currentNode = (0, $b1adb38089003474$export$2e2bcd8739ae039)(element);
|
8383
8387
|
if ((0, $1fa2a5446b18c455$export$af51f0f06c0f328a)(currentNode)) currentNode = currentNode.host;
|
8384
8388
|
while((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(currentNode) && [
|
8385
|
-
|
8386
|
-
|
8389
|
+
'html',
|
8390
|
+
'body'
|
8387
8391
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(currentNode)) < 0){
|
8388
8392
|
var css = (0, $392247934674b5b4$export$2e2bcd8739ae039)(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
8389
8393
|
// create a containing block.
|
8390
8394
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
8391
|
-
if (css.transform !==
|
8392
|
-
|
8393
|
-
|
8394
|
-
].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;
|
8395
8399
|
else currentNode = currentNode.parentNode;
|
8396
8400
|
}
|
8397
8401
|
return null;
|
@@ -8399,29 +8403,29 @@ function $4acba801a6bfbaa3$var$getContainingBlock(element) {
|
|
8399
8403
|
function $4acba801a6bfbaa3$export$2e2bcd8739ae039(element) {
|
8400
8404
|
var window = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(element);
|
8401
8405
|
var offsetParent = $4acba801a6bfbaa3$var$getTrueOffsetParent(element);
|
8402
|
-
while(offsetParent && (0, $b7f6a1d3d9524a70$export$2e2bcd8739ae039)(offsetParent) && (0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position ===
|
8403
|
-
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;
|
8404
8408
|
return offsetParent || $4acba801a6bfbaa3$var$getContainingBlock(element) || window;
|
8405
8409
|
}
|
8406
8410
|
|
8407
8411
|
|
8408
|
-
var $9b56e55559dfbda1$export$1e95b668f3b82d =
|
8409
|
-
var $9b56e55559dfbda1$export$40e543e69a8b3fbb =
|
8410
|
-
var $9b56e55559dfbda1$export$79ffe56a765070d2 =
|
8411
|
-
var $9b56e55559dfbda1$export$eabcd2c8791e7bf4 =
|
8412
|
-
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';
|
8413
8417
|
var $9b56e55559dfbda1$export$aec2ce47c367b8c3 = [
|
8414
8418
|
$9b56e55559dfbda1$export$1e95b668f3b82d,
|
8415
8419
|
$9b56e55559dfbda1$export$40e543e69a8b3fbb,
|
8416
8420
|
$9b56e55559dfbda1$export$79ffe56a765070d2,
|
8417
8421
|
$9b56e55559dfbda1$export$eabcd2c8791e7bf4
|
8418
8422
|
];
|
8419
|
-
var $9b56e55559dfbda1$export$b3571188c770cc5a =
|
8420
|
-
var $9b56e55559dfbda1$export$bd5df0f255a350f8 =
|
8421
|
-
var $9b56e55559dfbda1$export$390fd549c5303b4d =
|
8422
|
-
var $9b56e55559dfbda1$export$d7b7311ec04a3e8f =
|
8423
|
-
var $9b56e55559dfbda1$export$ae5ab1c730825774 =
|
8424
|
-
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';
|
8425
8429
|
var $9b56e55559dfbda1$export$368f9a87e87fa4e1 = /*#__PURE__*/ $9b56e55559dfbda1$export$aec2ce47c367b8c3.reduce(function(acc, placement) {
|
8426
8430
|
return acc.concat([
|
8427
8431
|
placement + "-" + $9b56e55559dfbda1$export$b3571188c770cc5a,
|
@@ -8437,15 +8441,15 @@ var $9b56e55559dfbda1$export$803cd8101b6c182b = /*#__PURE__*/ [].concat($9b56e55
|
|
8437
8441
|
placement + "-" + $9b56e55559dfbda1$export$bd5df0f255a350f8
|
8438
8442
|
]);
|
8439
8443
|
}, []); // modifiers that need to read the DOM
|
8440
|
-
var $9b56e55559dfbda1$export$421679a7c3d56e =
|
8441
|
-
var $9b56e55559dfbda1$export$aafa59e2e03f2942 =
|
8442
|
-
var $9b56e55559dfbda1$export$6964f6c886723980 =
|
8443
|
-
var $9b56e55559dfbda1$export$c65e99957a05207c =
|
8444
|
-
var $9b56e55559dfbda1$export$f22da7240b7add18 =
|
8445
|
-
var $9b56e55559dfbda1$export$bab79516f2d662fe =
|
8446
|
-
var $9b56e55559dfbda1$export$8d4d2d70e7d46032 =
|
8447
|
-
var $9b56e55559dfbda1$export$68d8715fc104d294 =
|
8448
|
-
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';
|
8449
8453
|
var $9b56e55559dfbda1$export$d087d3878fdf71d5 = [
|
8450
8454
|
$9b56e55559dfbda1$export$421679a7c3d56e,
|
8451
8455
|
$9b56e55559dfbda1$export$aafa59e2e03f2942,
|
@@ -8526,14 +8530,14 @@ function $6af99e74d4c8a734$export$2e2bcd8739ae039(modifiers) {
|
|
8526
8530
|
|
8527
8531
|
|
8528
8532
|
var $8e357be334f3fad9$var$DEFAULT_OPTIONS = {
|
8529
|
-
placement:
|
8533
|
+
placement: 'bottom',
|
8530
8534
|
modifiers: [],
|
8531
|
-
strategy:
|
8535
|
+
strategy: 'absolute'
|
8532
8536
|
};
|
8533
8537
|
function $8e357be334f3fad9$var$areValidElements() {
|
8534
8538
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
8535
8539
|
return !args.some(function(element) {
|
8536
|
-
return !(element && typeof element.getBoundingClientRect ===
|
8540
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
8537
8541
|
});
|
8538
8542
|
}
|
8539
8543
|
function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
@@ -8542,7 +8546,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8542
8546
|
return function createPopper(reference, popper, options) {
|
8543
8547
|
if (options === void 0) options = defaultOptions;
|
8544
8548
|
var state = {
|
8545
|
-
placement:
|
8549
|
+
placement: 'bottom',
|
8546
8550
|
orderedModifiers: [],
|
8547
8551
|
options: Object.assign({}, $8e357be334f3fad9$var$DEFAULT_OPTIONS, defaultOptions),
|
8548
8552
|
modifiersData: {},
|
@@ -8558,7 +8562,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8558
8562
|
var instance = {
|
8559
8563
|
state: state,
|
8560
8564
|
setOptions: function setOptions(setOptionsAction) {
|
8561
|
-
var options = typeof setOptionsAction ===
|
8565
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
8562
8566
|
cleanupModifierEffects();
|
8563
8567
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
8564
8568
|
state.scrollParents = {
|
@@ -8585,7 +8589,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8585
8589
|
if (!$8e357be334f3fad9$var$areValidElements(reference, popper)) return;
|
8586
8590
|
// Store the reference and popper rects to be read by modifiers
|
8587
8591
|
state.rects = {
|
8588
|
-
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'),
|
8589
8593
|
popper: (0, $e287ac773d355028$export$2e2bcd8739ae039)(popper)
|
8590
8594
|
}; // Modifiers have the ability to reset the current update cycle. The
|
8591
8595
|
// most common use case for this is the `flip` modifier changing the
|
@@ -8607,7 +8611,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8607
8611
|
continue;
|
8608
8612
|
}
|
8609
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;
|
8610
|
-
if (typeof fn ===
|
8614
|
+
if (typeof fn === 'function') state = fn({
|
8611
8615
|
state: state,
|
8612
8616
|
options: _options,
|
8613
8617
|
name: name,
|
@@ -8639,7 +8643,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8639
8643
|
function runModifierEffects() {
|
8640
8644
|
state.orderedModifiers.forEach(function(_ref) {
|
8641
8645
|
var name = _ref.name, _ref$options = _ref.options, options = _ref$options === void 0 ? {} : _ref$options, effect = _ref.effect;
|
8642
|
-
if (typeof effect ===
|
8646
|
+
if (typeof effect === 'function') {
|
8643
8647
|
var cleanupFn = effect({
|
8644
8648
|
state: state,
|
8645
8649
|
name: name,
|
@@ -8673,20 +8677,20 @@ function $e3348dc516600e8b$var$effect(_ref) {
|
|
8673
8677
|
var window = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(state.elements.popper);
|
8674
8678
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
8675
8679
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
8676
|
-
scrollParent.addEventListener(
|
8680
|
+
scrollParent.addEventListener('scroll', instance.update, $e3348dc516600e8b$var$passive);
|
8677
8681
|
});
|
8678
|
-
if (resize) window.addEventListener(
|
8682
|
+
if (resize) window.addEventListener('resize', instance.update, $e3348dc516600e8b$var$passive);
|
8679
8683
|
return function() {
|
8680
8684
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
8681
|
-
scrollParent.removeEventListener(
|
8685
|
+
scrollParent.removeEventListener('scroll', instance.update, $e3348dc516600e8b$var$passive);
|
8682
8686
|
});
|
8683
|
-
if (resize) window.removeEventListener(
|
8687
|
+
if (resize) window.removeEventListener('resize', instance.update, $e3348dc516600e8b$var$passive);
|
8684
8688
|
};
|
8685
8689
|
} // eslint-disable-next-line import/no-unused-modules
|
8686
8690
|
var $e3348dc516600e8b$export$2e2bcd8739ae039 = {
|
8687
|
-
name:
|
8691
|
+
name: 'eventListeners',
|
8688
8692
|
enabled: true,
|
8689
|
-
phase:
|
8693
|
+
phase: 'write',
|
8690
8694
|
fn: function fn() {},
|
8691
8695
|
effect: $e3348dc516600e8b$var$effect,
|
8692
8696
|
data: {}
|
@@ -8695,20 +8699,20 @@ var $e3348dc516600e8b$export$2e2bcd8739ae039 = {
|
|
8695
8699
|
|
8696
8700
|
|
8697
8701
|
function $923eec132c8d334b$export$2e2bcd8739ae039(placement) {
|
8698
|
-
return placement.split(
|
8702
|
+
return placement.split('-')[0];
|
8699
8703
|
}
|
8700
8704
|
|
8701
8705
|
|
8702
8706
|
function $6572b8fb6297a772$export$2e2bcd8739ae039(placement) {
|
8703
|
-
return placement.split(
|
8707
|
+
return placement.split('-')[1];
|
8704
8708
|
}
|
8705
8709
|
|
8706
8710
|
|
8707
8711
|
function $d388da57f90fb762$export$2e2bcd8739ae039(placement) {
|
8708
8712
|
return [
|
8709
|
-
|
8710
|
-
|
8711
|
-
].indexOf(placement) >= 0 ?
|
8713
|
+
'top',
|
8714
|
+
'bottom'
|
8715
|
+
].indexOf(placement) >= 0 ? 'x' : 'y';
|
8712
8716
|
}
|
8713
8717
|
|
8714
8718
|
|
@@ -8753,7 +8757,7 @@ function $05d4a7bd7e0110bf$export$2e2bcd8739ae039(_ref) {
|
|
8753
8757
|
}
|
8754
8758
|
var mainAxis = basePlacement ? (0, $d388da57f90fb762$export$2e2bcd8739ae039)(basePlacement) : null;
|
8755
8759
|
if (mainAxis != null) {
|
8756
|
-
var len = mainAxis ===
|
8760
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
8757
8761
|
switch(variation){
|
8758
8762
|
case 0, $9b56e55559dfbda1$export$b3571188c770cc5a:
|
8759
8763
|
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
@@ -8777,14 +8781,14 @@ function $4aa27a7a3db85746$var$popperOffsets(_ref) {
|
|
8777
8781
|
state.modifiersData[name] = (0, $05d4a7bd7e0110bf$export$2e2bcd8739ae039)({
|
8778
8782
|
reference: state.rects.reference,
|
8779
8783
|
element: state.rects.popper,
|
8780
|
-
strategy:
|
8784
|
+
strategy: 'absolute',
|
8781
8785
|
placement: state.placement
|
8782
8786
|
});
|
8783
8787
|
} // eslint-disable-next-line import/no-unused-modules
|
8784
8788
|
var $4aa27a7a3db85746$export$2e2bcd8739ae039 = {
|
8785
|
-
name:
|
8789
|
+
name: 'popperOffsets',
|
8786
8790
|
enabled: true,
|
8787
|
-
phase:
|
8791
|
+
phase: 'read',
|
8788
8792
|
fn: $4aa27a7a3db85746$var$popperOffsets,
|
8789
8793
|
data: {}
|
8790
8794
|
};
|
@@ -8799,10 +8803,10 @@ var $4aa27a7a3db85746$export$2e2bcd8739ae039 = {
|
|
8799
8803
|
|
8800
8804
|
|
8801
8805
|
var $03e421bdaa8eda14$var$unsetSides = {
|
8802
|
-
top:
|
8803
|
-
right:
|
8804
|
-
bottom:
|
8805
|
-
left:
|
8806
|
+
top: 'auto',
|
8807
|
+
right: 'auto',
|
8808
|
+
bottom: 'auto',
|
8809
|
+
left: 'auto'
|
8806
8810
|
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
|
8807
8811
|
// Zooming can change the DPR, but it seems to report a value that will
|
8808
8812
|
// cleanly divide the values into the appropriate subpixels.
|
@@ -8818,7 +8822,7 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8818
8822
|
var _Object$assign2;
|
8819
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;
|
8820
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;
|
8821
|
-
var _ref3 = typeof roundOffsets ===
|
8825
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
8822
8826
|
x: x,
|
8823
8827
|
y: y
|
8824
8828
|
}) : {
|
@@ -8827,20 +8831,20 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8827
8831
|
};
|
8828
8832
|
x = _ref3.x;
|
8829
8833
|
y = _ref3.y;
|
8830
|
-
var hasX = offsets.hasOwnProperty(
|
8831
|
-
var hasY = offsets.hasOwnProperty(
|
8834
|
+
var hasX = offsets.hasOwnProperty('x');
|
8835
|
+
var hasY = offsets.hasOwnProperty('y');
|
8832
8836
|
var sideX = (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
8833
8837
|
var sideY = (0, $9b56e55559dfbda1$export$1e95b668f3b82d);
|
8834
8838
|
var win = window;
|
8835
8839
|
if (adaptive) {
|
8836
8840
|
var offsetParent = (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper);
|
8837
|
-
var heightProp =
|
8838
|
-
var widthProp =
|
8841
|
+
var heightProp = 'clientHeight';
|
8842
|
+
var widthProp = 'clientWidth';
|
8839
8843
|
if (offsetParent === (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(popper)) {
|
8840
8844
|
offsetParent = (0, $3e02d6708e2a16ac$export$2e2bcd8739ae039)(popper);
|
8841
|
-
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position !==
|
8842
|
-
heightProp =
|
8843
|
-
widthProp =
|
8845
|
+
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position !== 'static' && position === 'absolute') {
|
8846
|
+
heightProp = 'scrollHeight';
|
8847
|
+
widthProp = 'scrollWidth';
|
8844
8848
|
}
|
8845
8849
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
8846
8850
|
offsetParent;
|
@@ -8871,9 +8875,9 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8871
8875
|
y = _ref4.y;
|
8872
8876
|
if (gpuAcceleration) {
|
8873
8877
|
var _Object$assign;
|
8874
|
-
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));
|
8875
8879
|
}
|
8876
|
-
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));
|
8877
8881
|
}
|
8878
8882
|
function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
8879
8883
|
var state = _ref5.state, options = _ref5.options;
|
@@ -8884,7 +8888,7 @@ function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
|
8884
8888
|
popper: state.elements.popper,
|
8885
8889
|
popperRect: state.rects.popper,
|
8886
8890
|
gpuAcceleration: gpuAcceleration,
|
8887
|
-
isFixed: state.options.strategy ===
|
8891
|
+
isFixed: state.options.strategy === 'fixed'
|
8888
8892
|
};
|
8889
8893
|
if (state.modifiersData.popperOffsets != null) state.styles.popper = Object.assign({}, state.styles.popper, $03e421bdaa8eda14$export$378fa78a8fea596f(Object.assign({}, commonStyles, {
|
8890
8894
|
offsets: state.modifiersData.popperOffsets,
|
@@ -8894,18 +8898,18 @@ function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
|
8894
8898
|
})));
|
8895
8899
|
if (state.modifiersData.arrow != null) state.styles.arrow = Object.assign({}, state.styles.arrow, $03e421bdaa8eda14$export$378fa78a8fea596f(Object.assign({}, commonStyles, {
|
8896
8900
|
offsets: state.modifiersData.arrow,
|
8897
|
-
position:
|
8901
|
+
position: 'absolute',
|
8898
8902
|
adaptive: false,
|
8899
8903
|
roundOffsets: roundOffsets
|
8900
8904
|
})));
|
8901
8905
|
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
8902
|
-
|
8906
|
+
'data-popper-placement': state.placement
|
8903
8907
|
});
|
8904
8908
|
} // eslint-disable-next-line import/no-unused-modules
|
8905
8909
|
var $03e421bdaa8eda14$export$2e2bcd8739ae039 = {
|
8906
|
-
name:
|
8910
|
+
name: 'computeStyles',
|
8907
8911
|
enabled: true,
|
8908
|
-
phase:
|
8912
|
+
phase: 'beforeWrite',
|
8909
8913
|
fn: $03e421bdaa8eda14$var$computeStyles,
|
8910
8914
|
data: {}
|
8911
8915
|
};
|
@@ -8920,7 +8924,7 @@ function $b2dec03e76957d70$export$7fa02d8595b015ed(placement, rects, offset) {
|
|
8920
8924
|
(0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4),
|
8921
8925
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d)
|
8922
8926
|
].indexOf(basePlacement) >= 0 ? -1 : 1;
|
8923
|
-
var _ref = typeof offset ===
|
8927
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
8924
8928
|
placement: placement
|
8925
8929
|
})) : offset, skidding = _ref[0], distance = _ref[1];
|
8926
8930
|
skidding = skidding || 0;
|
@@ -8954,21 +8958,21 @@ function $b2dec03e76957d70$var$offset(_ref2) {
|
|
8954
8958
|
state.modifiersData[name] = data;
|
8955
8959
|
} // eslint-disable-next-line import/no-unused-modules
|
8956
8960
|
var $b2dec03e76957d70$export$2e2bcd8739ae039 = {
|
8957
|
-
name:
|
8961
|
+
name: 'offset',
|
8958
8962
|
enabled: true,
|
8959
|
-
phase:
|
8963
|
+
phase: 'main',
|
8960
8964
|
requires: [
|
8961
|
-
|
8965
|
+
'popperOffsets'
|
8962
8966
|
],
|
8963
8967
|
fn: $b2dec03e76957d70$var$offset
|
8964
8968
|
};
|
8965
8969
|
|
8966
8970
|
|
8967
8971
|
var $e21601d0082602f5$var$hash = {
|
8968
|
-
left:
|
8969
|
-
right:
|
8970
|
-
bottom:
|
8971
|
-
top:
|
8972
|
+
left: 'right',
|
8973
|
+
right: 'left',
|
8974
|
+
bottom: 'top',
|
8975
|
+
top: 'bottom'
|
8972
8976
|
};
|
8973
8977
|
function $e21601d0082602f5$export$2e2bcd8739ae039(placement) {
|
8974
8978
|
return placement.replace(/left|right|bottom|top/g, function(matched) {
|
@@ -8979,8 +8983,8 @@ function $e21601d0082602f5$export$2e2bcd8739ae039(placement) {
|
|
8979
8983
|
|
8980
8984
|
|
8981
8985
|
var $e23a845ff98433e2$var$hash = {
|
8982
|
-
start:
|
8983
|
-
end:
|
8986
|
+
start: 'end',
|
8987
|
+
end: 'start'
|
8984
8988
|
};
|
8985
8989
|
function $e23a845ff98433e2$export$2e2bcd8739ae039(placement) {
|
8986
8990
|
return placement.replace(/start|end/g, function(matched) {
|
@@ -9006,7 +9010,7 @@ function $ed6afea5d5a4d314$export$2e2bcd8739ae039(element, strategy) {
|
|
9006
9010
|
width = visualViewport.width;
|
9007
9011
|
height = visualViewport.height;
|
9008
9012
|
var layoutViewport = (0, $f6bdda075fc14cbf$export$2e2bcd8739ae039)();
|
9009
|
-
if (layoutViewport || !layoutViewport && strategy ===
|
9013
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
9010
9014
|
x = visualViewport.offsetLeft;
|
9011
9015
|
y = visualViewport.offsetTop;
|
9012
9016
|
}
|
@@ -9034,7 +9038,7 @@ function $048158ac5222e515$export$2e2bcd8739ae039(element) {
|
|
9034
9038
|
var height = (0, $a435872b5ba665df$export$8960430cfd85939f)(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
9035
9039
|
var x = -winScroll.scrollLeft + (0, $05804587c501a8a1$export$2e2bcd8739ae039)(element);
|
9036
9040
|
var y = -winScroll.scrollTop;
|
9037
|
-
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;
|
9038
9042
|
return {
|
9039
9043
|
width: width,
|
9040
9044
|
height: height,
|
@@ -9080,7 +9084,7 @@ function $611b7cfc3d40c8f5$export$2e2bcd8739ae039(rect) {
|
|
9080
9084
|
|
9081
9085
|
|
9082
9086
|
function $1ae21a55ad42cc80$var$getInnerBoundingClientRect(element, strategy) {
|
9083
|
-
var rect = (0, $b854957821c00430$export$2e2bcd8739ae039)(element, false, strategy ===
|
9087
|
+
var rect = (0, $b854957821c00430$export$2e2bcd8739ae039)(element, false, strategy === 'fixed');
|
9084
9088
|
rect.top = rect.top + element.clientTop;
|
9085
9089
|
rect.left = rect.left + element.clientLeft;
|
9086
9090
|
rect.bottom = rect.top + element.clientHeight;
|
@@ -9099,18 +9103,18 @@ function $1ae21a55ad42cc80$var$getClientRectFromMixedType(element, clippingParen
|
|
9099
9103
|
function $1ae21a55ad42cc80$var$getClippingParents(element) {
|
9100
9104
|
var clippingParents = (0, $f14b4e1cd31512ee$export$2e2bcd8739ae039)((0, $b1adb38089003474$export$2e2bcd8739ae039)(element));
|
9101
9105
|
var canEscapeClipping = [
|
9102
|
-
|
9103
|
-
|
9106
|
+
'absolute',
|
9107
|
+
'fixed'
|
9104
9108
|
].indexOf((0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position) >= 0;
|
9105
9109
|
var clipperElement = canEscapeClipping && (0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) ? (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(element) : element;
|
9106
9110
|
if (!(0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clipperElement)) return [];
|
9107
9111
|
// $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
9108
9112
|
return clippingParents.filter(function(clippingParent) {
|
9109
|
-
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';
|
9110
9114
|
});
|
9111
9115
|
} // Gets the maximum area that the element is visible in due to any number of
|
9112
9116
|
function $1ae21a55ad42cc80$export$2e2bcd8739ae039(element, boundary, rootBoundary, strategy) {
|
9113
|
-
var mainClippingParents = boundary ===
|
9117
|
+
var mainClippingParents = boundary === 'clippingParents' ? $1ae21a55ad42cc80$var$getClippingParents(element) : [].concat(boundary);
|
9114
9118
|
var clippingParents = [].concat(mainClippingParents, [
|
9115
9119
|
rootBoundary
|
9116
9120
|
]);
|
@@ -9163,7 +9167,7 @@ function $f5b522f3e076d616$export$2e2bcd8739ae039(value, keys) {
|
|
9163
9167
|
function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
9164
9168
|
if (options === void 0) options = {};
|
9165
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;
|
9166
|
-
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)));
|
9167
9171
|
var altContext = elementContext === (0, $9b56e55559dfbda1$export$ae5ab1c730825774) ? (0, $9b56e55559dfbda1$export$ca50aac9f3ba507f) : (0, $9b56e55559dfbda1$export$ae5ab1c730825774);
|
9168
9172
|
var popperRect = state.rects.popper;
|
9169
9173
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
@@ -9172,7 +9176,7 @@ function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
|
9172
9176
|
var popperOffsets = (0, $05d4a7bd7e0110bf$export$2e2bcd8739ae039)({
|
9173
9177
|
reference: referenceClientRect,
|
9174
9178
|
element: popperRect,
|
9175
|
-
strategy:
|
9179
|
+
strategy: 'absolute',
|
9176
9180
|
placement: placement
|
9177
9181
|
});
|
9178
9182
|
var popperClientRect = (0, $611b7cfc3d40c8f5$export$2e2bcd8739ae039)(Object.assign({}, popperRect, popperOffsets));
|
@@ -9195,7 +9199,7 @@ function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
|
9195
9199
|
var axis = [
|
9196
9200
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d),
|
9197
9201
|
(0, $9b56e55559dfbda1$export$40e543e69a8b3fbb)
|
9198
|
-
].indexOf(key) >= 0 ?
|
9202
|
+
].indexOf(key) >= 0 ? 'y' : 'x';
|
9199
9203
|
overflowOffsets[key] += offset[axis] * multiply;
|
9200
9204
|
});
|
9201
9205
|
}
|
@@ -9280,7 +9284,7 @@ function $d886080699dc4994$var$flip(_ref) {
|
|
9280
9284
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d),
|
9281
9285
|
(0, $9b56e55559dfbda1$export$40e543e69a8b3fbb)
|
9282
9286
|
].indexOf(_basePlacement) >= 0;
|
9283
|
-
var len = isVertical ?
|
9287
|
+
var len = isVertical ? 'width' : 'height';
|
9284
9288
|
var overflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9285
9289
|
placement: placement,
|
9286
9290
|
boundary: boundary,
|
@@ -9330,12 +9334,12 @@ function $d886080699dc4994$var$flip(_ref) {
|
|
9330
9334
|
}
|
9331
9335
|
} // eslint-disable-next-line import/no-unused-modules
|
9332
9336
|
var $d886080699dc4994$export$2e2bcd8739ae039 = {
|
9333
|
-
name:
|
9337
|
+
name: 'flip',
|
9334
9338
|
enabled: true,
|
9335
|
-
phase:
|
9339
|
+
phase: 'main',
|
9336
9340
|
fn: $d886080699dc4994$var$flip,
|
9337
9341
|
requiresIfExists: [
|
9338
|
-
|
9342
|
+
'offset'
|
9339
9343
|
],
|
9340
9344
|
data: {
|
9341
9345
|
_skip: false
|
@@ -9347,7 +9351,7 @@ var $d886080699dc4994$export$2e2bcd8739ae039 = {
|
|
9347
9351
|
|
9348
9352
|
|
9349
9353
|
function $635c62073241bcfb$export$2e2bcd8739ae039(axis) {
|
9350
|
-
return axis ===
|
9354
|
+
return axis === 'x' ? 'y' : 'x';
|
9351
9355
|
}
|
9352
9356
|
|
9353
9357
|
|
@@ -9384,10 +9388,10 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9384
9388
|
var popperOffsets = state.modifiersData.popperOffsets;
|
9385
9389
|
var referenceRect = state.rects.reference;
|
9386
9390
|
var popperRect = state.rects.popper;
|
9387
|
-
var tetherOffsetValue = typeof tetherOffset ===
|
9391
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
9388
9392
|
placement: state.placement
|
9389
9393
|
})) : tetherOffset;
|
9390
|
-
var normalizedTetherOffsetValue = typeof tetherOffsetValue ===
|
9394
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
9391
9395
|
mainAxis: tetherOffsetValue,
|
9392
9396
|
altAxis: tetherOffsetValue
|
9393
9397
|
} : Object.assign({
|
@@ -9402,9 +9406,9 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9402
9406
|
if (!popperOffsets) return;
|
9403
9407
|
if (checkMainAxis) {
|
9404
9408
|
var _offsetModifierState$;
|
9405
|
-
var mainSide = mainAxis ===
|
9406
|
-
var altSide = mainAxis ===
|
9407
|
-
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';
|
9408
9412
|
var offset = popperOffsets[mainAxis];
|
9409
9413
|
var min = offset + overflow[mainSide];
|
9410
9414
|
var max = offset - overflow[altSide];
|
@@ -9417,7 +9421,7 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9417
9421
|
width: 0,
|
9418
9422
|
height: 0
|
9419
9423
|
};
|
9420
|
-
var arrowPaddingObject = state.modifiersData[
|
9424
|
+
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : (0, $d245fd553c91b4b7$export$2e2bcd8739ae039)();
|
9421
9425
|
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
9422
9426
|
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
|
9423
9427
|
// to include its full size in the calculation. If the reference is small
|
@@ -9428,7 +9432,7 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9428
9432
|
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
9429
9433
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
9430
9434
|
var arrowOffsetParent = state.elements.arrow && (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(state.elements.arrow);
|
9431
|
-
var clientOffset = arrowOffsetParent ? mainAxis ===
|
9435
|
+
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
9432
9436
|
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
9433
9437
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
9434
9438
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
@@ -9438,10 +9442,10 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9438
9442
|
}
|
9439
9443
|
if (checkAltAxis) {
|
9440
9444
|
var _offsetModifierState$2;
|
9441
|
-
var _mainSide = mainAxis ===
|
9442
|
-
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);
|
9443
9447
|
var _offset = popperOffsets[altAxis];
|
9444
|
-
var _len = altAxis ===
|
9448
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
9445
9449
|
var _min = _offset + overflow[_mainSide];
|
9446
9450
|
var _max = _offset - overflow[_altSide];
|
9447
9451
|
var isOriginSide = [
|
@@ -9458,12 +9462,12 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9458
9462
|
state.modifiersData[name] = data;
|
9459
9463
|
} // eslint-disable-next-line import/no-unused-modules
|
9460
9464
|
var $59ad2e7a9286a2b9$export$2e2bcd8739ae039 = {
|
9461
|
-
name:
|
9465
|
+
name: 'preventOverflow',
|
9462
9466
|
enabled: true,
|
9463
|
-
phase:
|
9467
|
+
phase: 'main',
|
9464
9468
|
fn: $59ad2e7a9286a2b9$var$preventOverflow,
|
9465
9469
|
requiresIfExists: [
|
9466
|
-
|
9470
|
+
'offset'
|
9467
9471
|
]
|
9468
9472
|
};
|
9469
9473
|
|
@@ -9478,10 +9482,10 @@ var $59ad2e7a9286a2b9$export$2e2bcd8739ae039 = {
|
|
9478
9482
|
|
9479
9483
|
|
9480
9484
|
var $84962ce4645f8891$var$toPaddingObject = function toPaddingObject(padding, state) {
|
9481
|
-
padding = typeof padding ===
|
9485
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
9482
9486
|
placement: state.placement
|
9483
9487
|
})) : padding;
|
9484
|
-
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)));
|
9485
9489
|
};
|
9486
9490
|
function $84962ce4645f8891$var$arrow(_ref) {
|
9487
9491
|
var _state$modifiersData$;
|
@@ -9494,16 +9498,16 @@ function $84962ce4645f8891$var$arrow(_ref) {
|
|
9494
9498
|
(0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4),
|
9495
9499
|
(0, $9b56e55559dfbda1$export$79ffe56a765070d2)
|
9496
9500
|
].indexOf(basePlacement) >= 0;
|
9497
|
-
var len = isVertical ?
|
9501
|
+
var len = isVertical ? 'height' : 'width';
|
9498
9502
|
if (!arrowElement || !popperOffsets) return;
|
9499
9503
|
var paddingObject = $84962ce4645f8891$var$toPaddingObject(options.padding, state);
|
9500
9504
|
var arrowRect = (0, $e287ac773d355028$export$2e2bcd8739ae039)(arrowElement);
|
9501
|
-
var minProp = axis ===
|
9502
|
-
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);
|
9503
9507
|
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
|
9504
9508
|
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
9505
9509
|
var arrowOffsetParent = (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(arrowElement);
|
9506
|
-
var clientSize = arrowOffsetParent ? axis ===
|
9510
|
+
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
9507
9511
|
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
9508
9512
|
// outside of the popper bounds
|
9509
9513
|
var min = paddingObject[minProp];
|
@@ -9515,10 +9519,10 @@ function $84962ce4645f8891$var$arrow(_ref) {
|
|
9515
9519
|
}
|
9516
9520
|
function $84962ce4645f8891$var$effect(_ref2) {
|
9517
9521
|
var state = _ref2.state, options = _ref2.options;
|
9518
|
-
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;
|
9519
9523
|
if (arrowElement == null) return;
|
9520
9524
|
// CSS selector
|
9521
|
-
if (typeof arrowElement ===
|
9525
|
+
if (typeof arrowElement === 'string') {
|
9522
9526
|
arrowElement = state.elements.popper.querySelector(arrowElement);
|
9523
9527
|
if (!arrowElement) return;
|
9524
9528
|
}
|
@@ -9526,16 +9530,16 @@ function $84962ce4645f8891$var$effect(_ref2) {
|
|
9526
9530
|
state.elements.arrow = arrowElement;
|
9527
9531
|
} // eslint-disable-next-line import/no-unused-modules
|
9528
9532
|
var $84962ce4645f8891$export$2e2bcd8739ae039 = {
|
9529
|
-
name:
|
9533
|
+
name: 'arrow',
|
9530
9534
|
enabled: true,
|
9531
|
-
phase:
|
9535
|
+
phase: 'main',
|
9532
9536
|
fn: $84962ce4645f8891$var$arrow,
|
9533
9537
|
effect: $84962ce4645f8891$var$effect,
|
9534
9538
|
requires: [
|
9535
|
-
|
9539
|
+
'popperOffsets'
|
9536
9540
|
],
|
9537
9541
|
requiresIfExists: [
|
9538
|
-
|
9542
|
+
'preventOverflow'
|
9539
9543
|
]
|
9540
9544
|
};
|
9541
9545
|
|
@@ -9570,7 +9574,7 @@ function $c7da519ecac238a3$var$hide(_ref) {
|
|
9570
9574
|
var popperRect = state.rects.popper;
|
9571
9575
|
var preventedOffsets = state.modifiersData.preventOverflow;
|
9572
9576
|
var referenceOverflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9573
|
-
elementContext:
|
9577
|
+
elementContext: 'reference'
|
9574
9578
|
});
|
9575
9579
|
var popperAltOverflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9576
9580
|
altBoundary: true
|
@@ -9586,16 +9590,16 @@ function $c7da519ecac238a3$var$hide(_ref) {
|
|
9586
9590
|
hasPopperEscaped: hasPopperEscaped
|
9587
9591
|
};
|
9588
9592
|
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
9589
|
-
|
9590
|
-
|
9593
|
+
'data-popper-reference-hidden': isReferenceHidden,
|
9594
|
+
'data-popper-escaped': hasPopperEscaped
|
9591
9595
|
});
|
9592
9596
|
} // eslint-disable-next-line import/no-unused-modules
|
9593
9597
|
var $c7da519ecac238a3$export$2e2bcd8739ae039 = {
|
9594
|
-
name:
|
9598
|
+
name: 'hide',
|
9595
9599
|
enabled: true,
|
9596
|
-
phase:
|
9600
|
+
phase: 'main',
|
9597
9601
|
requiresIfExists: [
|
9598
|
-
|
9602
|
+
'preventOverflow'
|
9599
9603
|
],
|
9600
9604
|
fn: $c7da519ecac238a3$var$hide
|
9601
9605
|
};
|
@@ -9644,10 +9648,10 @@ function $b013befce1f6217f$var$getValueAtIndexOrReturn(value, index, defaultValu
|
|
9644
9648
|
}
|
9645
9649
|
function $b013befce1f6217f$var$isType(value, type) {
|
9646
9650
|
var str = ({}).toString.call(value);
|
9647
|
-
return str.indexOf(
|
9651
|
+
return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
|
9648
9652
|
}
|
9649
9653
|
function $b013befce1f6217f$var$invokeWithArgsOrReturn(value, args) {
|
9650
|
-
return typeof value ===
|
9654
|
+
return typeof value === 'function' ? value.apply(void 0, args) : value;
|
9651
9655
|
}
|
9652
9656
|
function $b013befce1f6217f$var$debounce(fn, ms) {
|
9653
9657
|
// Avoid wrapping in `setTimeout` if ms is 0 anyway
|
@@ -9682,7 +9686,7 @@ function $b013befce1f6217f$var$unique(arr) {
|
|
9682
9686
|
});
|
9683
9687
|
}
|
9684
9688
|
function $b013befce1f6217f$var$getBasePlacement(placement) {
|
9685
|
-
return placement.split(
|
9689
|
+
return placement.split('-')[0];
|
9686
9690
|
}
|
9687
9691
|
function $b013befce1f6217f$var$arrayFrom(value) {
|
9688
9692
|
return [].slice.call(value);
|
@@ -9694,21 +9698,21 @@ function $b013befce1f6217f$var$removeUndefinedProps(obj) {
|
|
9694
9698
|
}, {});
|
9695
9699
|
}
|
9696
9700
|
function $b013befce1f6217f$var$div() {
|
9697
|
-
return document.createElement(
|
9701
|
+
return document.createElement('div');
|
9698
9702
|
}
|
9699
9703
|
function $b013befce1f6217f$var$isElement(value) {
|
9700
9704
|
return [
|
9701
|
-
|
9702
|
-
|
9705
|
+
'Element',
|
9706
|
+
'Fragment'
|
9703
9707
|
].some(function(type) {
|
9704
9708
|
return $b013befce1f6217f$var$isType(value, type);
|
9705
9709
|
});
|
9706
9710
|
}
|
9707
9711
|
function $b013befce1f6217f$var$isNodeList(value) {
|
9708
|
-
return $b013befce1f6217f$var$isType(value,
|
9712
|
+
return $b013befce1f6217f$var$isType(value, 'NodeList');
|
9709
9713
|
}
|
9710
9714
|
function $b013befce1f6217f$var$isMouseEvent(value) {
|
9711
|
-
return $b013befce1f6217f$var$isType(value,
|
9715
|
+
return $b013befce1f6217f$var$isType(value, 'MouseEvent');
|
9712
9716
|
}
|
9713
9717
|
function $b013befce1f6217f$var$isReferenceElement(value) {
|
9714
9718
|
return !!(value && value._tippy && value._tippy.reference === value);
|
@@ -9728,7 +9732,7 @@ function $b013befce1f6217f$var$setTransitionDuration(els, value) {
|
|
9728
9732
|
}
|
9729
9733
|
function $b013befce1f6217f$var$setVisibilityState(els, state) {
|
9730
9734
|
els.forEach(function(el) {
|
9731
|
-
if (el) el.setAttribute(
|
9735
|
+
if (el) el.setAttribute('data-state', state);
|
9732
9736
|
});
|
9733
9737
|
}
|
9734
9738
|
function $b013befce1f6217f$var$getOwnerDocument(elementOrElements) {
|
@@ -9744,10 +9748,10 @@ function $b013befce1f6217f$var$isCursorOutsideInteractiveBorder(popperTreeData,
|
|
9744
9748
|
var basePlacement = $b013befce1f6217f$var$getBasePlacement(popperState.placement);
|
9745
9749
|
var offsetData = popperState.modifiersData.offset;
|
9746
9750
|
if (!offsetData) return true;
|
9747
|
-
var topDistance = basePlacement ===
|
9748
|
-
var bottomDistance = basePlacement ===
|
9749
|
-
var leftDistance = basePlacement ===
|
9750
|
-
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;
|
9751
9755
|
var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
|
9752
9756
|
var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
|
9753
9757
|
var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
|
@@ -9759,8 +9763,8 @@ function $b013befce1f6217f$var$updateTransitionEndListener(box, action, listener
|
|
9759
9763
|
var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
|
9760
9764
|
// `webkitTransitionEnd`...
|
9761
9765
|
[
|
9762
|
-
|
9763
|
-
|
9766
|
+
'transitionend',
|
9767
|
+
'webkitTransitionEnd'
|
9764
9768
|
].forEach(function(event) {
|
9765
9769
|
box[method](event, listener);
|
9766
9770
|
});
|
@@ -9789,7 +9793,7 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9789
9793
|
*/ function $b013befce1f6217f$var$onDocumentTouchStart() {
|
9790
9794
|
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
9791
9795
|
$b013befce1f6217f$var$currentInput.isTouch = true;
|
9792
|
-
if (window.performance) document.addEventListener(
|
9796
|
+
if (window.performance) document.addEventListener('mousemove', $b013befce1f6217f$var$onDocumentMouseMove);
|
9793
9797
|
}
|
9794
9798
|
/**
|
9795
9799
|
* When two `mousemove` event are fired consecutively within 20ms, it's assumed
|
@@ -9799,7 +9803,7 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9799
9803
|
var now = performance.now();
|
9800
9804
|
if (now - $b013befce1f6217f$var$lastMouseMoveTime < 20) {
|
9801
9805
|
$b013befce1f6217f$var$currentInput.isTouch = false;
|
9802
|
-
document.removeEventListener(
|
9806
|
+
document.removeEventListener('mousemove', $b013befce1f6217f$var$onDocumentMouseMove);
|
9803
9807
|
}
|
9804
9808
|
$b013befce1f6217f$var$lastMouseMoveTime = now;
|
9805
9809
|
}
|
@@ -9816,22 +9820,22 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9816
9820
|
}
|
9817
9821
|
}
|
9818
9822
|
function $b013befce1f6217f$var$bindGlobalEventListeners() {
|
9819
|
-
document.addEventListener(
|
9820
|
-
window.addEventListener(
|
9823
|
+
document.addEventListener('touchstart', $b013befce1f6217f$var$onDocumentTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
9824
|
+
window.addEventListener('blur', $b013befce1f6217f$var$onWindowBlur);
|
9821
9825
|
}
|
9822
|
-
var $b013befce1f6217f$var$isBrowser = typeof window !==
|
9826
|
+
var $b013befce1f6217f$var$isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
|
9823
9827
|
var $b013befce1f6217f$var$isIE11 = $b013befce1f6217f$var$isBrowser ? !!window.msCrypto : false;
|
9824
9828
|
function $b013befce1f6217f$var$createMemoryLeakWarning(method) {
|
9825
|
-
var txt = method ===
|
9829
|
+
var txt = method === 'destroy' ? 'n already-' : ' ';
|
9826
9830
|
return [
|
9827
9831
|
method + "() was called on a" + txt + "destroyed instance. This is a no-op but",
|
9828
|
-
|
9829
|
-
].join(
|
9832
|
+
'indicates a potential memory leak.'
|
9833
|
+
].join(' ');
|
9830
9834
|
}
|
9831
9835
|
function $b013befce1f6217f$var$clean(value) {
|
9832
9836
|
var spacesAndTabs = /[ \t]{2,}/g;
|
9833
9837
|
var lineStartWithSpaces = /^[ \t]*/gm;
|
9834
|
-
return value.replace(spacesAndTabs,
|
9838
|
+
return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
|
9835
9839
|
}
|
9836
9840
|
function $b013befce1f6217f$var$getDevMessage(message) {
|
9837
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 ");
|
@@ -9839,9 +9843,9 @@ function $b013befce1f6217f$var$getDevMessage(message) {
|
|
9839
9843
|
function $b013befce1f6217f$var$getFormattedMessage(message) {
|
9840
9844
|
return [
|
9841
9845
|
$b013befce1f6217f$var$getDevMessage(message),
|
9842
|
-
|
9843
|
-
|
9844
|
-
|
9846
|
+
'color: #00C584; font-size: 1.3em; font-weight: bold;',
|
9847
|
+
'line-height: 1.5',
|
9848
|
+
'color: #a6a095;'
|
9845
9849
|
];
|
9846
9850
|
} // Assume warnings and errors never have the same message
|
9847
9851
|
var $b013befce1f6217f$var$visitedMessages;
|
@@ -9864,17 +9868,17 @@ function $b013befce1f6217f$var$errorWhen(condition, message) {
|
|
9864
9868
|
}
|
9865
9869
|
function $b013befce1f6217f$var$validateTargets(targets) {
|
9866
9870
|
var didPassFalsyValue = !targets;
|
9867
|
-
var didPassPlainObject = Object.prototype.toString.call(targets) ===
|
9871
|
+
var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
|
9868
9872
|
$b013befce1f6217f$var$errorWhen(didPassFalsyValue, [
|
9869
|
-
|
9870
|
-
|
9871
|
-
|
9872
|
-
|
9873
|
-
].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(' '));
|
9874
9878
|
$b013befce1f6217f$var$errorWhen(didPassPlainObject, [
|
9875
|
-
|
9876
|
-
|
9877
|
-
].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(' '));
|
9878
9882
|
}
|
9879
9883
|
var $b013befce1f6217f$var$pluginProps = {
|
9880
9884
|
animateFill: false,
|
@@ -9884,20 +9888,20 @@ var $b013befce1f6217f$var$pluginProps = {
|
|
9884
9888
|
};
|
9885
9889
|
var $b013befce1f6217f$var$renderProps = {
|
9886
9890
|
allowHTML: false,
|
9887
|
-
animation:
|
9891
|
+
animation: 'fade',
|
9888
9892
|
arrow: true,
|
9889
|
-
content:
|
9893
|
+
content: '',
|
9890
9894
|
inertia: false,
|
9891
9895
|
maxWidth: 350,
|
9892
|
-
role:
|
9893
|
-
theme:
|
9896
|
+
role: 'tooltip',
|
9897
|
+
theme: '',
|
9894
9898
|
zIndex: 9999
|
9895
9899
|
};
|
9896
9900
|
var $b013befce1f6217f$var$defaultProps = Object.assign({
|
9897
9901
|
appendTo: $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO,
|
9898
9902
|
aria: {
|
9899
|
-
content:
|
9900
|
-
expanded:
|
9903
|
+
content: 'auto',
|
9904
|
+
expanded: 'auto'
|
9901
9905
|
},
|
9902
9906
|
delay: 0,
|
9903
9907
|
duration: [
|
@@ -9910,7 +9914,7 @@ var $b013befce1f6217f$var$defaultProps = Object.assign({
|
|
9910
9914
|
interactive: false,
|
9911
9915
|
interactiveBorder: 2,
|
9912
9916
|
interactiveDebounce: 0,
|
9913
|
-
moveTransition:
|
9917
|
+
moveTransition: '',
|
9914
9918
|
offset: [
|
9915
9919
|
0,
|
9916
9920
|
10
|
@@ -9927,13 +9931,13 @@ var $b013befce1f6217f$var$defaultProps = Object.assign({
|
|
9927
9931
|
onTrigger: function onTrigger() {},
|
9928
9932
|
onUntrigger: function onUntrigger() {},
|
9929
9933
|
onClickOutside: function onClickOutside() {},
|
9930
|
-
placement:
|
9934
|
+
placement: 'top',
|
9931
9935
|
plugins: [],
|
9932
9936
|
popperOptions: {},
|
9933
9937
|
render: null,
|
9934
9938
|
showOnCreate: false,
|
9935
9939
|
touch: true,
|
9936
|
-
trigger:
|
9940
|
+
trigger: 'mouseenter focus',
|
9937
9941
|
triggerTarget: null
|
9938
9942
|
}, $b013befce1f6217f$var$pluginProps, $b013befce1f6217f$var$renderProps);
|
9939
9943
|
var $b013befce1f6217f$var$defaultKeys = Object.keys($b013befce1f6217f$var$defaultProps);
|
@@ -9960,9 +9964,9 @@ function $b013befce1f6217f$var$getDataAttributeProps(reference, plugins) {
|
|
9960
9964
|
plugins: plugins
|
9961
9965
|
}))) : $b013befce1f6217f$var$defaultKeys;
|
9962
9966
|
var props = propKeys.reduce(function(acc, key) {
|
9963
|
-
var valueAsString = (reference.getAttribute("data-tippy-" + key) ||
|
9967
|
+
var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
|
9964
9968
|
if (!valueAsString) return acc;
|
9965
|
-
if (key ===
|
9969
|
+
if (key === 'content') acc[key] = valueAsString;
|
9966
9970
|
else try {
|
9967
9971
|
acc[key] = JSON.parse(valueAsString);
|
9968
9972
|
} catch (e) {
|
@@ -9980,8 +9984,8 @@ function $b013befce1f6217f$var$evaluateProps(reference, props) {
|
|
9980
9984
|
}, props.ignoreAttributes ? {} : $b013befce1f6217f$var$getDataAttributeProps(reference, props.plugins));
|
9981
9985
|
out.aria = Object.assign({}, $b013befce1f6217f$var$defaultProps.aria, out.aria);
|
9982
9986
|
out.aria = {
|
9983
|
-
expanded: out.aria.expanded ===
|
9984
|
-
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
|
9985
9989
|
};
|
9986
9990
|
return out;
|
9987
9991
|
}
|
@@ -9998,15 +10002,15 @@ function $b013befce1f6217f$var$validateProps(partialProps, plugins) {
|
|
9998
10002
|
$b013befce1f6217f$var$warnWhen(didPassUnknownProp, [
|
9999
10003
|
"`" + prop + "`",
|
10000
10004
|
"is not a valid prop. You may have spelled it incorrectly, or if it's",
|
10001
|
-
|
10002
|
-
|
10003
|
-
|
10004
|
-
|
10005
|
-
].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(' '));
|
10006
10010
|
});
|
10007
10011
|
}
|
10008
10012
|
var $b013befce1f6217f$var$innerHTML = function innerHTML() {
|
10009
|
-
return
|
10013
|
+
return 'innerHTML';
|
10010
10014
|
};
|
10011
10015
|
function $b013befce1f6217f$var$dangerouslySetInnerHTML(element, html) {
|
10012
10016
|
element[$b013befce1f6217f$var$innerHTML()] = html;
|
@@ -10023,9 +10027,9 @@ function $b013befce1f6217f$var$createArrowElement(value) {
|
|
10023
10027
|
}
|
10024
10028
|
function $b013befce1f6217f$var$setContent(content, props) {
|
10025
10029
|
if ($b013befce1f6217f$var$isElement(props.content)) {
|
10026
|
-
$b013befce1f6217f$var$dangerouslySetInnerHTML(content,
|
10030
|
+
$b013befce1f6217f$var$dangerouslySetInnerHTML(content, '');
|
10027
10031
|
content.appendChild(props.content);
|
10028
|
-
} else if (typeof props.content !==
|
10032
|
+
} else if (typeof props.content !== 'function') {
|
10029
10033
|
if (props.allowHTML) $b013befce1f6217f$var$dangerouslySetInnerHTML(content, props.content);
|
10030
10034
|
else content.textContent = props.content;
|
10031
10035
|
}
|
@@ -10050,26 +10054,26 @@ function $b013befce1f6217f$var$render(instance) {
|
|
10050
10054
|
var popper = $b013befce1f6217f$var$div();
|
10051
10055
|
var box = $b013befce1f6217f$var$div();
|
10052
10056
|
box.className = $b013befce1f6217f$var$BOX_CLASS;
|
10053
|
-
box.setAttribute(
|
10054
|
-
box.setAttribute(
|
10057
|
+
box.setAttribute('data-state', 'hidden');
|
10058
|
+
box.setAttribute('tabindex', '-1');
|
10055
10059
|
var content = $b013befce1f6217f$var$div();
|
10056
10060
|
content.className = $b013befce1f6217f$var$CONTENT_CLASS;
|
10057
|
-
content.setAttribute(
|
10061
|
+
content.setAttribute('data-state', 'hidden');
|
10058
10062
|
$b013befce1f6217f$var$setContent(content, instance.props);
|
10059
10063
|
popper.appendChild(box);
|
10060
10064
|
box.appendChild(content);
|
10061
10065
|
onUpdate(instance.props, instance.props);
|
10062
10066
|
function onUpdate(prevProps, nextProps) {
|
10063
10067
|
var _getChildren = $b013befce1f6217f$var$getChildren(popper), box = _getChildren.box, content = _getChildren.content, arrow = _getChildren.arrow;
|
10064
|
-
if (nextProps.theme) box.setAttribute(
|
10065
|
-
else box.removeAttribute(
|
10066
|
-
if (typeof nextProps.animation ===
|
10067
|
-
else box.removeAttribute(
|
10068
|
-
if (nextProps.inertia) box.setAttribute(
|
10069
|
-
else box.removeAttribute(
|
10070
|
-
box.style.maxWidth = typeof nextProps.maxWidth ===
|
10071
|
-
if (nextProps.role) box.setAttribute(
|
10072
|
-
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');
|
10073
10077
|
if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) $b013befce1f6217f$var$setContent(content, instance.props);
|
10074
10078
|
if (nextProps.arrow) {
|
10075
10079
|
if (!arrow) box.appendChild($b013befce1f6217f$var$createArrowElement(nextProps.arrow));
|
@@ -10150,7 +10154,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10150
10154
|
// Initial mutations
|
10151
10155
|
// ===========================================================================
|
10152
10156
|
var _props$render = props.render(instance), popper = _props$render.popper, onUpdate = _props$render.onUpdate;
|
10153
|
-
popper.setAttribute(
|
10157
|
+
popper.setAttribute('data-tippy-root', '');
|
10154
10158
|
popper.id = "tippy-" + instance.id;
|
10155
10159
|
instance.popper = popper;
|
10156
10160
|
reference._tippy = instance;
|
@@ -10158,21 +10162,21 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10158
10162
|
var pluginsHooks = plugins.map(function(plugin) {
|
10159
10163
|
return plugin.fn(instance);
|
10160
10164
|
});
|
10161
|
-
var hasAriaExpanded = reference.hasAttribute(
|
10165
|
+
var hasAriaExpanded = reference.hasAttribute('aria-expanded');
|
10162
10166
|
addListeners();
|
10163
10167
|
handleAriaExpandedAttribute();
|
10164
10168
|
handleStyles();
|
10165
|
-
invokeHook(
|
10169
|
+
invokeHook('onCreate', [
|
10166
10170
|
instance
|
10167
10171
|
]);
|
10168
10172
|
if (props.showOnCreate) scheduleShow();
|
10169
10173
|
// Prevent a tippy with a delay from hiding if the cursor left then returned
|
10170
10174
|
// before it started hiding
|
10171
|
-
popper.addEventListener(
|
10175
|
+
popper.addEventListener('mouseenter', function() {
|
10172
10176
|
if (instance.props.interactive && instance.state.isVisible) instance.clearDelayTimeouts();
|
10173
10177
|
});
|
10174
|
-
popper.addEventListener(
|
10175
|
-
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);
|
10176
10180
|
});
|
10177
10181
|
return instance; // ===========================================================================
|
10178
10182
|
// 🔒 Private methods
|
@@ -10185,7 +10189,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10185
10189
|
];
|
10186
10190
|
}
|
10187
10191
|
function getIsCustomTouchBehavior() {
|
10188
|
-
return getNormalizedTouchSettings()[0] ===
|
10192
|
+
return getNormalizedTouchSettings()[0] === 'hold';
|
10189
10193
|
}
|
10190
10194
|
function getIsDefaultRenderFn() {
|
10191
10195
|
var _instance$props$rende;
|
@@ -10206,12 +10210,12 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10206
10210
|
// For touch or keyboard input, force `0` delay for UX reasons
|
10207
10211
|
// Also if the instance is mounted but not visible (transitioning out),
|
10208
10212
|
// ignore delay
|
10209
|
-
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;
|
10210
10214
|
return $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, $b013befce1f6217f$var$defaultProps.delay);
|
10211
10215
|
}
|
10212
10216
|
function handleStyles(fromHide) {
|
10213
10217
|
if (fromHide === void 0) fromHide = false;
|
10214
|
-
popper.style.pointerEvents = instance.props.interactive && !fromHide ?
|
10218
|
+
popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
|
10215
10219
|
popper.style.zIndex = "" + instance.props.zIndex;
|
10216
10220
|
}
|
10217
10221
|
function invokeHook(hook, args, shouldInvokePropsHook) {
|
@@ -10234,7 +10238,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10234
10238
|
var currentValue = node.getAttribute(attr);
|
10235
10239
|
if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
|
10236
10240
|
else {
|
10237
|
-
var nextValue = currentValue && currentValue.replace(id,
|
10241
|
+
var nextValue = currentValue && currentValue.replace(id, '').trim();
|
10238
10242
|
if (nextValue) node.setAttribute(attr, nextValue);
|
10239
10243
|
else node.removeAttribute(attr);
|
10240
10244
|
}
|
@@ -10244,12 +10248,12 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10244
10248
|
if (hasAriaExpanded || !instance.props.aria.expanded) return;
|
10245
10249
|
var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
|
10246
10250
|
nodes.forEach(function(node) {
|
10247
|
-
if (instance.props.interactive) node.setAttribute(
|
10248
|
-
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');
|
10249
10253
|
});
|
10250
10254
|
}
|
10251
10255
|
function cleanupInteractiveMouseListeners() {
|
10252
|
-
getDocument().removeEventListener(
|
10256
|
+
getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
|
10253
10257
|
$b013befce1f6217f$var$mouseMoveListeners = $b013befce1f6217f$var$mouseMoveListeners.filter(function(listener) {
|
10254
10258
|
return listener !== debouncedOnMouseMove;
|
10255
10259
|
});
|
@@ -10257,7 +10261,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10257
10261
|
function onDocumentPress(event) {
|
10258
10262
|
// Moved finger to scroll instead of an intentional tap outside
|
10259
10263
|
if ($b013befce1f6217f$var$currentInput.isTouch) {
|
10260
|
-
if (didTouchMove || event.type ===
|
10264
|
+
if (didTouchMove || event.type === 'mousedown') return;
|
10261
10265
|
}
|
10262
10266
|
var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
|
10263
10267
|
if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget)) return;
|
@@ -10266,8 +10270,8 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10266
10270
|
return $b013befce1f6217f$var$actualContains(el, actualTarget);
|
10267
10271
|
})) {
|
10268
10272
|
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
10269
|
-
if (instance.state.isVisible && instance.props.trigger.indexOf(
|
10270
|
-
} else invokeHook(
|
10273
|
+
if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) return;
|
10274
|
+
} else invokeHook('onClickOutside', [
|
10271
10275
|
instance,
|
10272
10276
|
event
|
10273
10277
|
]);
|
@@ -10293,17 +10297,17 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10293
10297
|
}
|
10294
10298
|
function addDocumentPress() {
|
10295
10299
|
var doc = getDocument();
|
10296
|
-
doc.addEventListener(
|
10297
|
-
doc.addEventListener(
|
10298
|
-
doc.addEventListener(
|
10299
|
-
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);
|
10300
10304
|
}
|
10301
10305
|
function removeDocumentPress() {
|
10302
10306
|
var doc = getDocument();
|
10303
|
-
doc.removeEventListener(
|
10304
|
-
doc.removeEventListener(
|
10305
|
-
doc.removeEventListener(
|
10306
|
-
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);
|
10307
10311
|
}
|
10308
10312
|
function onTransitionedOut(duration, callback) {
|
10309
10313
|
onTransitionEnd(duration, function() {
|
@@ -10317,14 +10321,14 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10317
10321
|
var box = getDefaultTemplateChildren().box;
|
10318
10322
|
function listener(event) {
|
10319
10323
|
if (event.target === box) {
|
10320
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10324
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'remove', listener);
|
10321
10325
|
callback();
|
10322
10326
|
}
|
10323
10327
|
} // Make callback synchronous if duration is 0
|
10324
10328
|
// `transitionend` won't fire otherwise
|
10325
10329
|
if (duration === 0) return callback();
|
10326
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10327
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10330
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
|
10331
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'add', listener);
|
10328
10332
|
currentTransitionEndListener = listener;
|
10329
10333
|
}
|
10330
10334
|
function on(eventType, handler, options) {
|
@@ -10342,25 +10346,25 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10342
10346
|
}
|
10343
10347
|
function addListeners() {
|
10344
10348
|
if (getIsCustomTouchBehavior()) {
|
10345
|
-
on(
|
10349
|
+
on('touchstart', onTrigger, {
|
10346
10350
|
passive: true
|
10347
10351
|
});
|
10348
|
-
on(
|
10352
|
+
on('touchend', onMouseLeave, {
|
10349
10353
|
passive: true
|
10350
10354
|
});
|
10351
10355
|
}
|
10352
10356
|
$b013befce1f6217f$var$splitBySpaces(instance.props.trigger).forEach(function(eventType) {
|
10353
|
-
if (eventType ===
|
10357
|
+
if (eventType === 'manual') return;
|
10354
10358
|
on(eventType, onTrigger);
|
10355
10359
|
switch(eventType){
|
10356
|
-
case
|
10357
|
-
on(
|
10360
|
+
case 'mouseenter':
|
10361
|
+
on('mouseleave', onMouseLeave);
|
10358
10362
|
break;
|
10359
|
-
case
|
10360
|
-
on($b013befce1f6217f$var$isIE11 ?
|
10363
|
+
case 'focus':
|
10364
|
+
on($b013befce1f6217f$var$isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
|
10361
10365
|
break;
|
10362
|
-
case
|
10363
|
-
on(
|
10366
|
+
case 'focusin':
|
10367
|
+
on('focusout', onBlurOrFocusOut);
|
10364
10368
|
break;
|
10365
10369
|
}
|
10366
10370
|
});
|
@@ -10376,7 +10380,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10376
10380
|
var _lastTriggerEvent;
|
10377
10381
|
var shouldScheduleClickHide = false;
|
10378
10382
|
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
|
10379
|
-
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) ===
|
10383
|
+
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
|
10380
10384
|
lastTriggerEvent = event;
|
10381
10385
|
currentTarget = event.currentTarget;
|
10382
10386
|
handleAriaExpandedAttribute();
|
@@ -10388,15 +10392,15 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10388
10392
|
return listener(event);
|
10389
10393
|
});
|
10390
10394
|
// Toggle show/hide when clicking click-triggered tooltips
|
10391
|
-
if (event.type ===
|
10395
|
+
if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
|
10392
10396
|
else scheduleShow(event);
|
10393
|
-
if (event.type ===
|
10397
|
+
if (event.type === 'click') isVisibleFromClick = !shouldScheduleClickHide;
|
10394
10398
|
if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
|
10395
10399
|
}
|
10396
10400
|
function onMouseMove(event) {
|
10397
10401
|
var target = event.target;
|
10398
10402
|
var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
|
10399
|
-
if (event.type ===
|
10403
|
+
if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) return;
|
10400
10404
|
var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper) {
|
10401
10405
|
var _instance$popperInsta;
|
10402
10406
|
var instance = popper._tippy;
|
@@ -10414,7 +10418,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10414
10418
|
}
|
10415
10419
|
}
|
10416
10420
|
function onMouseLeave(event) {
|
10417
|
-
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf(
|
10421
|
+
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
|
10418
10422
|
if (shouldBail) return;
|
10419
10423
|
if (instance.props.interactive) {
|
10420
10424
|
instance.hideWithInteractivity(event);
|
@@ -10423,13 +10427,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10423
10427
|
scheduleHide(event);
|
10424
10428
|
}
|
10425
10429
|
function onBlurOrFocusOut(event) {
|
10426
|
-
if (instance.props.trigger.indexOf(
|
10430
|
+
if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) return;
|
10427
10431
|
// If focus was moved to within the popper
|
10428
10432
|
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
|
10429
10433
|
scheduleHide(event);
|
10430
10434
|
}
|
10431
10435
|
function isEventListenerStopped(event) {
|
10432
|
-
return $b013befce1f6217f$var$currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf(
|
10436
|
+
return $b013befce1f6217f$var$currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
|
10433
10437
|
}
|
10434
10438
|
function createPopperInstance() {
|
10435
10439
|
destroyPopperInstance();
|
@@ -10440,23 +10444,23 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10440
10444
|
contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
|
10441
10445
|
} : reference;
|
10442
10446
|
var tippyModifier = {
|
10443
|
-
name:
|
10447
|
+
name: '$$tippy',
|
10444
10448
|
enabled: true,
|
10445
|
-
phase:
|
10449
|
+
phase: 'beforeWrite',
|
10446
10450
|
requires: [
|
10447
|
-
|
10451
|
+
'computeStyles'
|
10448
10452
|
],
|
10449
10453
|
fn: function fn(_ref2) {
|
10450
10454
|
var state = _ref2.state;
|
10451
10455
|
if (getIsDefaultRenderFn()) {
|
10452
10456
|
var _getDefaultTemplateCh = getDefaultTemplateChildren(), box = _getDefaultTemplateCh.box;
|
10453
10457
|
[
|
10454
|
-
|
10455
|
-
|
10456
|
-
|
10458
|
+
'placement',
|
10459
|
+
'reference-hidden',
|
10460
|
+
'escaped'
|
10457
10461
|
].forEach(function(attr) {
|
10458
|
-
if (attr ===
|
10459
|
-
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, '');
|
10460
10464
|
else box.removeAttribute("data-" + attr);
|
10461
10465
|
});
|
10462
10466
|
state.attributes.popper = {};
|
@@ -10465,13 +10469,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10465
10469
|
};
|
10466
10470
|
var modifiers = [
|
10467
10471
|
{
|
10468
|
-
name:
|
10472
|
+
name: 'offset',
|
10469
10473
|
options: {
|
10470
10474
|
offset: offset
|
10471
10475
|
}
|
10472
10476
|
},
|
10473
10477
|
{
|
10474
|
-
name:
|
10478
|
+
name: 'preventOverflow',
|
10475
10479
|
options: {
|
10476
10480
|
padding: {
|
10477
10481
|
top: 2,
|
@@ -10482,13 +10486,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10482
10486
|
}
|
10483
10487
|
},
|
10484
10488
|
{
|
10485
|
-
name:
|
10489
|
+
name: 'flip',
|
10486
10490
|
options: {
|
10487
10491
|
padding: 5
|
10488
10492
|
}
|
10489
10493
|
},
|
10490
10494
|
{
|
10491
|
-
name:
|
10495
|
+
name: 'computeStyles',
|
10492
10496
|
options: {
|
10493
10497
|
adaptive: !moveTransition
|
10494
10498
|
}
|
@@ -10496,7 +10500,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10496
10500
|
tippyModifier
|
10497
10501
|
];
|
10498
10502
|
if (getIsDefaultRenderFn() && arrow) modifiers.push({
|
10499
|
-
name:
|
10503
|
+
name: 'arrow',
|
10500
10504
|
options: {
|
10501
10505
|
element: arrow,
|
10502
10506
|
padding: 3
|
@@ -10523,7 +10527,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10523
10527
|
// If there are clipping issues, the user can specify a different appendTo
|
10524
10528
|
// and ensure focus management is handled correctly manually
|
10525
10529
|
var node = getCurrentTarget();
|
10526
|
-
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;
|
10527
10531
|
else parentNode = $b013befce1f6217f$var$invokeWithArgsOrReturn(appendTo, [
|
10528
10532
|
node
|
10529
10533
|
]);
|
@@ -10534,18 +10538,18 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10534
10538
|
createPopperInstance();
|
10535
10539
|
}
|
10536
10540
|
function getNestedPopperTree() {
|
10537
|
-
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll(
|
10541
|
+
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
|
10538
10542
|
}
|
10539
10543
|
function scheduleShow(event) {
|
10540
10544
|
instance.clearDelayTimeouts();
|
10541
|
-
if (event) invokeHook(
|
10545
|
+
if (event) invokeHook('onTrigger', [
|
10542
10546
|
instance,
|
10543
10547
|
event
|
10544
10548
|
]);
|
10545
10549
|
addDocumentPress();
|
10546
10550
|
var delay = getDelay(true);
|
10547
10551
|
var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
|
10548
|
-
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue ===
|
10552
|
+
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === 'hold' && touchDelay) delay = touchDelay;
|
10549
10553
|
if (delay) showTimeout = setTimeout(function() {
|
10550
10554
|
instance.show();
|
10551
10555
|
}, delay);
|
@@ -10553,7 +10557,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10553
10557
|
}
|
10554
10558
|
function scheduleHide(event) {
|
10555
10559
|
instance.clearDelayTimeouts();
|
10556
|
-
invokeHook(
|
10560
|
+
invokeHook('onUntrigger', [
|
10557
10561
|
instance,
|
10558
10562
|
event
|
10559
10563
|
]);
|
@@ -10564,9 +10568,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10564
10568
|
// from onMouseLeave so must intercept scheduled hides from mousemove/leave
|
10565
10569
|
// events when trigger contains mouseenter and click, and the tip is
|
10566
10570
|
// currently shown as a result of a click.
|
10567
|
-
if (instance.props.trigger.indexOf(
|
10568
|
-
|
10569
|
-
|
10571
|
+
if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && [
|
10572
|
+
'mouseleave',
|
10573
|
+
'mousemove'
|
10570
10574
|
].indexOf(event.type) >= 0 && isVisibleFromClick) return;
|
10571
10575
|
var delay = getDelay(false);
|
10572
10576
|
if (delay) hideTimeout = setTimeout(function() {
|
@@ -10596,7 +10600,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10596
10600
|
}
|
10597
10601
|
function setProps(partialProps) {
|
10598
10602
|
if (instance.state.isDestroyed) return;
|
10599
|
-
invokeHook(
|
10603
|
+
invokeHook('onBeforeUpdate', [
|
10600
10604
|
instance,
|
10601
10605
|
partialProps
|
10602
10606
|
]);
|
@@ -10612,9 +10616,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10612
10616
|
debouncedOnMouseMove = $b013befce1f6217f$var$debounce(onMouseMove, nextProps.interactiveDebounce);
|
10613
10617
|
} // Ensure stale aria-expanded attributes are removed
|
10614
10618
|
if (prevProps.triggerTarget && !nextProps.triggerTarget) $b013befce1f6217f$var$normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
|
10615
|
-
node.removeAttribute(
|
10619
|
+
node.removeAttribute('aria-expanded');
|
10616
10620
|
});
|
10617
|
-
else if (nextProps.triggerTarget) reference.removeAttribute(
|
10621
|
+
else if (nextProps.triggerTarget) reference.removeAttribute('aria-expanded');
|
10618
10622
|
handleAriaExpandedAttribute();
|
10619
10623
|
handleStyles();
|
10620
10624
|
if (onUpdate) onUpdate(prevProps, nextProps);
|
@@ -10629,7 +10633,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10629
10633
|
requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
|
10630
10634
|
});
|
10631
10635
|
}
|
10632
|
-
invokeHook(
|
10636
|
+
invokeHook('onAfterUpdate', [
|
10633
10637
|
instance,
|
10634
10638
|
partialProps
|
10635
10639
|
]);
|
@@ -10649,16 +10653,16 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10649
10653
|
// Normalize `disabled` behavior across browsers.
|
10650
10654
|
// Firefox allows events on disabled elements, but Chrome doesn't.
|
10651
10655
|
// Using a wrapper element (i.e. <span>) is recommended.
|
10652
|
-
if (getCurrentTarget().hasAttribute(
|
10653
|
-
invokeHook(
|
10656
|
+
if (getCurrentTarget().hasAttribute('disabled')) return;
|
10657
|
+
invokeHook('onShow', [
|
10654
10658
|
instance
|
10655
10659
|
], false);
|
10656
10660
|
if (instance.props.onShow(instance) === false) return;
|
10657
10661
|
instance.state.isVisible = true;
|
10658
|
-
if (getIsDefaultRenderFn()) popper.style.visibility =
|
10662
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = 'visible';
|
10659
10663
|
handleStyles();
|
10660
10664
|
addDocumentPress();
|
10661
|
-
if (!instance.state.isMounted) popper.style.transition =
|
10665
|
+
if (!instance.state.isMounted) popper.style.transition = 'none';
|
10662
10666
|
// If flipping to the opposite side after hiding at least once, the
|
10663
10667
|
// animation will use the wrong placement without resetting the duration
|
10664
10668
|
if (getIsDefaultRenderFn()) {
|
@@ -10683,19 +10687,19 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10683
10687
|
$b013befce1f6217f$var$setVisibilityState([
|
10684
10688
|
_box,
|
10685
10689
|
_content
|
10686
|
-
],
|
10690
|
+
], 'visible');
|
10687
10691
|
}
|
10688
10692
|
handleAriaContentAttribute();
|
10689
10693
|
handleAriaExpandedAttribute();
|
10690
10694
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
|
10691
10695
|
// popper has been positioned for the first time
|
10692
10696
|
(_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
|
10693
|
-
invokeHook(
|
10697
|
+
invokeHook('onMount', [
|
10694
10698
|
instance
|
10695
10699
|
]);
|
10696
10700
|
if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
|
10697
10701
|
instance.state.isShown = true;
|
10698
|
-
invokeHook(
|
10702
|
+
invokeHook('onShown', [
|
10699
10703
|
instance
|
10700
10704
|
]);
|
10701
10705
|
});
|
@@ -10708,7 +10712,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10708
10712
|
var isDisabled = !instance.state.isEnabled;
|
10709
10713
|
var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 1, $b013befce1f6217f$var$defaultProps.duration);
|
10710
10714
|
if (isAlreadyHidden || isDestroyed || isDisabled) return;
|
10711
|
-
invokeHook(
|
10715
|
+
invokeHook('onHide', [
|
10712
10716
|
instance
|
10713
10717
|
], false);
|
10714
10718
|
if (instance.props.onHide(instance) === false) return;
|
@@ -10716,7 +10720,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10716
10720
|
instance.state.isShown = false;
|
10717
10721
|
ignoreOnFirstUpdate = false;
|
10718
10722
|
isVisibleFromClick = false;
|
10719
|
-
if (getIsDefaultRenderFn()) popper.style.visibility =
|
10723
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = 'hidden';
|
10720
10724
|
cleanupInteractiveMouseListeners();
|
10721
10725
|
removeDocumentPress();
|
10722
10726
|
handleStyles(true);
|
@@ -10730,7 +10734,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10730
10734
|
$b013befce1f6217f$var$setVisibilityState([
|
10731
10735
|
box,
|
10732
10736
|
content
|
10733
|
-
],
|
10737
|
+
], 'hidden');
|
10734
10738
|
}
|
10735
10739
|
}
|
10736
10740
|
handleAriaContentAttribute();
|
@@ -10740,7 +10744,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10740
10744
|
} else instance.unmount();
|
10741
10745
|
}
|
10742
10746
|
function hideWithInteractivity(event) {
|
10743
|
-
getDocument().addEventListener(
|
10747
|
+
getDocument().addEventListener('mousemove', debouncedOnMouseMove);
|
10744
10748
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mouseMoveListeners, debouncedOnMouseMove);
|
10745
10749
|
debouncedOnMouseMove(event);
|
10746
10750
|
}
|
@@ -10758,7 +10762,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10758
10762
|
return i !== instance;
|
10759
10763
|
});
|
10760
10764
|
instance.state.isMounted = false;
|
10761
|
-
invokeHook(
|
10765
|
+
invokeHook('onHidden', [
|
10762
10766
|
instance
|
10763
10767
|
]);
|
10764
10768
|
}
|
@@ -10769,7 +10773,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10769
10773
|
removeListeners();
|
10770
10774
|
delete reference._tippy;
|
10771
10775
|
instance.state.isDestroyed = true;
|
10772
|
-
invokeHook(
|
10776
|
+
invokeHook('onDestroy', [
|
10773
10777
|
instance
|
10774
10778
|
]);
|
10775
10779
|
}
|
@@ -10819,12 +10823,12 @@ var $b013befce1f6217f$var$applyStylesModifier = Object.assign({}, (0, $dfb41fce0
|
|
10819
10823
|
var initialStyles = {
|
10820
10824
|
popper: {
|
10821
10825
|
position: state.options.strategy,
|
10822
|
-
left:
|
10823
|
-
top:
|
10824
|
-
margin:
|
10826
|
+
left: '0',
|
10827
|
+
top: '0',
|
10828
|
+
margin: '0'
|
10825
10829
|
},
|
10826
10830
|
arrow: {
|
10827
|
-
position:
|
10831
|
+
position: 'absolute'
|
10828
10832
|
},
|
10829
10833
|
reference: {}
|
10830
10834
|
};
|
@@ -10879,12 +10883,12 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10879
10883
|
var index = triggerTargets.indexOf(target); // bail-out
|
10880
10884
|
if (target === currentTarget) return;
|
10881
10885
|
currentTarget = target;
|
10882
|
-
var overrideProps = (overrides || []).concat(
|
10886
|
+
var overrideProps = (overrides || []).concat('content').reduce(function(acc, prop) {
|
10883
10887
|
acc[prop] = individualInstances[index].props[prop];
|
10884
10888
|
return acc;
|
10885
10889
|
}, {});
|
10886
10890
|
singleton.setProps(Object.assign({}, overrideProps, {
|
10887
|
-
getReferenceClientRect: typeof overrideProps.getReferenceClientRect ===
|
10891
|
+
getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function() {
|
10888
10892
|
var _references$index;
|
10889
10893
|
return (_references$index = references[index]) == null ? void 0 : _references$index.getBoundingClientRect();
|
10890
10894
|
}
|
@@ -10921,7 +10925,7 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10921
10925
|
}
|
10922
10926
|
};
|
10923
10927
|
var singleton = $b013befce1f6217f$var$tippy($b013befce1f6217f$var$div(), Object.assign({}, $b013befce1f6217f$var$removeProperties(optionalProps, [
|
10924
|
-
|
10928
|
+
'overrides'
|
10925
10929
|
]), {
|
10926
10930
|
plugins: [
|
10927
10931
|
plugin
|
@@ -10942,7 +10946,7 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10942
10946
|
// programmatic call with no params when already visible (do nothing again)
|
10943
10947
|
if (currentTarget && target == null) return;
|
10944
10948
|
// target is index of instance
|
10945
|
-
if (typeof target ===
|
10949
|
+
if (typeof target === 'number') return references[target] && prepareInstance(singleton, references[target]);
|
10946
10950
|
// target is a child tippy instance
|
10947
10951
|
if (individualInstances.indexOf(target) >= 0) {
|
10948
10952
|
var ref = target.reference;
|
@@ -10986,9 +10990,9 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10986
10990
|
return singleton;
|
10987
10991
|
};
|
10988
10992
|
var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
10989
|
-
mouseover:
|
10990
|
-
focusin:
|
10991
|
-
click:
|
10993
|
+
mouseover: 'mouseenter',
|
10994
|
+
focusin: 'focus',
|
10995
|
+
click: 'click'
|
10992
10996
|
};
|
10993
10997
|
/**
|
10994
10998
|
* Creates a delegate instance that controls the creation of tippy instances
|
@@ -10999,10 +11003,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
10999
11003
|
var disabled = false;
|
11000
11004
|
var target = props.target;
|
11001
11005
|
var nativeProps = $b013befce1f6217f$var$removeProperties(props, [
|
11002
|
-
|
11006
|
+
'target'
|
11003
11007
|
]);
|
11004
11008
|
var parentProps = Object.assign({}, nativeProps, {
|
11005
|
-
trigger:
|
11009
|
+
trigger: 'manual',
|
11006
11010
|
touch: false
|
11007
11011
|
});
|
11008
11012
|
var childProps = Object.assign({
|
@@ -11020,10 +11024,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11020
11024
|
// 1. Check `data-tippy-trigger` attribute on target node
|
11021
11025
|
// 2. Fallback to `trigger` passed to `delegate()`
|
11022
11026
|
// 3. Fallback to `defaultProps.trigger`
|
11023
|
-
var trigger = targetNode.getAttribute(
|
11027
|
+
var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || $b013befce1f6217f$var$defaultProps.trigger; // @ts-ignore
|
11024
11028
|
if (targetNode._tippy) return;
|
11025
|
-
if (event.type ===
|
11026
|
-
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;
|
11027
11031
|
var instance = $b013befce1f6217f$var$tippy(targetNode, childProps);
|
11028
11032
|
if (instance) childTippyInstances = childTippyInstances.concat(instance);
|
11029
11033
|
}
|
@@ -11039,10 +11043,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11039
11043
|
}
|
11040
11044
|
function addEventListeners(instance) {
|
11041
11045
|
var reference = instance.reference;
|
11042
|
-
on(reference,
|
11043
|
-
on(reference,
|
11044
|
-
on(reference,
|
11045
|
-
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);
|
11046
11050
|
}
|
11047
11051
|
function removeEventListeners() {
|
11048
11052
|
listeners.forEach(function(_ref) {
|
@@ -11084,7 +11088,7 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11084
11088
|
return returnValue;
|
11085
11089
|
}
|
11086
11090
|
var $b013befce1f6217f$export$dd8ded329c01db79 = {
|
11087
|
-
name:
|
11091
|
+
name: 'animateFill',
|
11088
11092
|
defaultValue: false,
|
11089
11093
|
fn: function fn(instance) {
|
11090
11094
|
var _instance$props$rende;
|
@@ -11096,34 +11100,34 @@ var $b013befce1f6217f$export$dd8ded329c01db79 = {
|
|
11096
11100
|
onCreate: function onCreate() {
|
11097
11101
|
if (backdrop) {
|
11098
11102
|
box.insertBefore(backdrop, box.firstElementChild);
|
11099
|
-
box.setAttribute(
|
11100
|
-
box.style.overflow =
|
11103
|
+
box.setAttribute('data-animatefill', '');
|
11104
|
+
box.style.overflow = 'hidden';
|
11101
11105
|
instance.setProps({
|
11102
11106
|
arrow: false,
|
11103
|
-
animation:
|
11107
|
+
animation: 'shift-away'
|
11104
11108
|
});
|
11105
11109
|
}
|
11106
11110
|
},
|
11107
11111
|
onMount: function onMount() {
|
11108
11112
|
if (backdrop) {
|
11109
11113
|
var transitionDuration = box.style.transitionDuration;
|
11110
|
-
var duration = Number(transitionDuration.replace(
|
11114
|
+
var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
|
11111
11115
|
// tooltip element. `clip-path` is the other alternative but is not
|
11112
11116
|
// well-supported and is buggy on some devices.
|
11113
11117
|
content.style.transitionDelay = Math.round(duration / 10) + "ms";
|
11114
11118
|
backdrop.style.transitionDuration = transitionDuration;
|
11115
11119
|
$b013befce1f6217f$var$setVisibilityState([
|
11116
11120
|
backdrop
|
11117
|
-
],
|
11121
|
+
], 'visible');
|
11118
11122
|
}
|
11119
11123
|
},
|
11120
11124
|
onShow: function onShow() {
|
11121
|
-
if (backdrop) backdrop.style.transitionDuration =
|
11125
|
+
if (backdrop) backdrop.style.transitionDuration = '0ms';
|
11122
11126
|
},
|
11123
11127
|
onHide: function onHide() {
|
11124
11128
|
if (backdrop) $b013befce1f6217f$var$setVisibilityState([
|
11125
11129
|
backdrop
|
11126
|
-
],
|
11130
|
+
], 'hidden');
|
11127
11131
|
}
|
11128
11132
|
};
|
11129
11133
|
}
|
@@ -11133,7 +11137,7 @@ function $b013befce1f6217f$var$createBackdropElement() {
|
|
11133
11137
|
backdrop.className = $b013befce1f6217f$var$BACKDROP_CLASS;
|
11134
11138
|
$b013befce1f6217f$var$setVisibilityState([
|
11135
11139
|
backdrop
|
11136
|
-
],
|
11140
|
+
], 'hidden');
|
11137
11141
|
return backdrop;
|
11138
11142
|
}
|
11139
11143
|
var $b013befce1f6217f$var$mouseCoords = {
|
@@ -11149,13 +11153,13 @@ function $b013befce1f6217f$var$storeMouseCoords(_ref) {
|
|
11149
11153
|
};
|
11150
11154
|
}
|
11151
11155
|
function $b013befce1f6217f$var$addMouseCoordsListener(doc) {
|
11152
|
-
doc.addEventListener(
|
11156
|
+
doc.addEventListener('mousemove', $b013befce1f6217f$var$storeMouseCoords);
|
11153
11157
|
}
|
11154
11158
|
function $b013befce1f6217f$var$removeMouseCoordsListener(doc) {
|
11155
|
-
doc.removeEventListener(
|
11159
|
+
doc.removeEventListener('mousemove', $b013befce1f6217f$var$storeMouseCoords);
|
11156
11160
|
}
|
11157
11161
|
var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
11158
|
-
name:
|
11162
|
+
name: 'followCursor',
|
11159
11163
|
defaultValue: false,
|
11160
11164
|
fn: function fn(instance) {
|
11161
11165
|
var reference = instance.reference;
|
@@ -11165,13 +11169,13 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11165
11169
|
var isUnmounted = true;
|
11166
11170
|
var prevProps = instance.props;
|
11167
11171
|
function getIsInitialBehavior() {
|
11168
|
-
return instance.props.followCursor ===
|
11172
|
+
return instance.props.followCursor === 'initial' && instance.state.isVisible;
|
11169
11173
|
}
|
11170
11174
|
function addListener() {
|
11171
|
-
doc.addEventListener(
|
11175
|
+
doc.addEventListener('mousemove', onMouseMove);
|
11172
11176
|
}
|
11173
11177
|
function removeListener() {
|
11174
|
-
doc.removeEventListener(
|
11178
|
+
doc.removeEventListener('mousemove', onMouseMove);
|
11175
11179
|
}
|
11176
11180
|
function unsetGetReferenceClientRect() {
|
11177
11181
|
isInternalUpdate = true;
|
@@ -11195,14 +11199,14 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11195
11199
|
var rect = reference.getBoundingClientRect();
|
11196
11200
|
var x = clientX;
|
11197
11201
|
var y = clientY;
|
11198
|
-
if (followCursor ===
|
11202
|
+
if (followCursor === 'initial') {
|
11199
11203
|
x = rect.left + relativeX;
|
11200
11204
|
y = rect.top + relativeY;
|
11201
11205
|
}
|
11202
|
-
var top = followCursor ===
|
11203
|
-
var right = followCursor ===
|
11204
|
-
var bottom = followCursor ===
|
11205
|
-
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;
|
11206
11210
|
return {
|
11207
11211
|
width: right - left,
|
11208
11212
|
height: bottom - top,
|
@@ -11265,7 +11269,7 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11265
11269
|
clientX: event.clientX,
|
11266
11270
|
clientY: event.clientY
|
11267
11271
|
};
|
11268
|
-
wasFocusEvent = event.type ===
|
11272
|
+
wasFocusEvent = event.type === 'focus';
|
11269
11273
|
},
|
11270
11274
|
onHidden: function onHidden() {
|
11271
11275
|
if (instance.props.followCursor) {
|
@@ -11291,7 +11295,7 @@ function $b013befce1f6217f$var$getProps(props, modifier) {
|
|
11291
11295
|
};
|
11292
11296
|
}
|
11293
11297
|
var $b013befce1f6217f$export$e2b668424a9c728 = {
|
11294
|
-
name:
|
11298
|
+
name: 'inlinePositioning',
|
11295
11299
|
defaultValue: false,
|
11296
11300
|
fn: function fn(instance) {
|
11297
11301
|
var reference = instance.reference;
|
@@ -11303,9 +11307,9 @@ var $b013befce1f6217f$export$e2b668424a9c728 = {
|
|
11303
11307
|
var isInternalUpdate = false;
|
11304
11308
|
var triedPlacements = [];
|
11305
11309
|
var modifier = {
|
11306
|
-
name:
|
11310
|
+
name: 'tippyInlinePositioning',
|
11307
11311
|
enabled: true,
|
11308
|
-
phase:
|
11312
|
+
phase: 'afterWrite',
|
11309
11313
|
fn: function fn(_ref2) {
|
11310
11314
|
var state = _ref2.state;
|
11311
11315
|
if (isEnabled()) {
|
@@ -11359,11 +11363,11 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11359
11363
|
// There are two rects and they are disjoined
|
11360
11364
|
if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) return clientRects[cursorRectIndex] || boundingRect;
|
11361
11365
|
switch(currentBasePlacement){
|
11362
|
-
case
|
11363
|
-
case
|
11366
|
+
case 'top':
|
11367
|
+
case 'bottom':
|
11364
11368
|
var firstRect = clientRects[0];
|
11365
11369
|
var lastRect = clientRects[clientRects.length - 1];
|
11366
|
-
var isTop = currentBasePlacement ===
|
11370
|
+
var isTop = currentBasePlacement === 'top';
|
11367
11371
|
var top = firstRect.top;
|
11368
11372
|
var bottom = lastRect.bottom;
|
11369
11373
|
var left = isTop ? firstRect.left : lastRect.left;
|
@@ -11378,8 +11382,8 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11378
11382
|
width: width,
|
11379
11383
|
height: height
|
11380
11384
|
};
|
11381
|
-
case
|
11382
|
-
case
|
11385
|
+
case 'left':
|
11386
|
+
case 'right':
|
11383
11387
|
var minLeft = Math.min.apply(Math, clientRects.map(function(rects) {
|
11384
11388
|
return rects.left;
|
11385
11389
|
}));
|
@@ -11387,7 +11391,7 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11387
11391
|
return rects.right;
|
11388
11392
|
}));
|
11389
11393
|
var measureRects = clientRects.filter(function(rect) {
|
11390
|
-
return currentBasePlacement ===
|
11394
|
+
return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
|
11391
11395
|
});
|
11392
11396
|
var _top = measureRects[0].top;
|
11393
11397
|
var _bottom = measureRects[measureRects.length - 1].bottom;
|
@@ -11408,7 +11412,7 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11408
11412
|
}
|
11409
11413
|
}
|
11410
11414
|
var $b013befce1f6217f$export$4bd4b47501432316 = {
|
11411
|
-
name:
|
11415
|
+
name: 'sticky',
|
11412
11416
|
defaultValue: false,
|
11413
11417
|
fn: function fn(instance) {
|
11414
11418
|
var reference = instance.reference, popper = instance.popper;
|
@@ -11421,8 +11425,8 @@ var $b013befce1f6217f$export$4bd4b47501432316 = {
|
|
11421
11425
|
var prevRefRect = null;
|
11422
11426
|
var prevPopRect = null;
|
11423
11427
|
function updatePosition() {
|
11424
|
-
var currentRefRect = shouldCheck(
|
11425
|
-
var currentPopRect = shouldCheck(
|
11428
|
+
var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
|
11429
|
+
var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
|
11426
11430
|
if (currentRefRect && $b013befce1f6217f$var$areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && $b013befce1f6217f$var$areRectsDifferent(prevPopRect, currentPopRect)) {
|
11427
11431
|
if (instance.popperInstance) instance.popperInstance.update();
|
11428
11432
|
}
|
@@ -11491,7 +11495,9 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11491
11495
|
let tooltip = null;
|
11492
11496
|
let dropdown = null;
|
11493
11497
|
return {
|
11498
|
+
updateAfterNavigate: true,
|
11494
11499
|
init () {
|
11500
|
+
this.updateAfterNavigate = this.$el.dataset.updateAfterNavigate !== "false";
|
11495
11501
|
if (this.$refs.tooltip) tooltip = (0, $7a759511c361f2bd$export$353372104066311a)(this, {
|
11496
11502
|
target: this.$refs.icon
|
11497
11503
|
});
|
@@ -11526,7 +11532,7 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11526
11532
|
updateDropdown () {
|
11527
11533
|
if (dropdown) {
|
11528
11534
|
dropdown.hide();
|
11529
|
-
this.$nextTick(()=>{
|
11535
|
+
if (this.updateAfterNavigate) this.$nextTick(()=>{
|
11530
11536
|
dropdown.setContent(this.dropdownContent);
|
11531
11537
|
});
|
11532
11538
|
}
|
@@ -11654,6 +11660,31 @@ function $216ef7001f59f21d$export$2e2bcd8739ae039() {
|
|
11654
11660
|
}
|
11655
11661
|
|
11656
11662
|
|
11663
|
+
var $e9904a14dabf652d$exports = {};
|
11664
|
+
|
11665
|
+
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11666
|
+
|
11667
|
+
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11668
|
+
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11669
|
+
return {
|
11670
|
+
focussed: false,
|
11671
|
+
get active () {
|
11672
|
+
return store.active;
|
11673
|
+
},
|
11674
|
+
get text () {
|
11675
|
+
return store.text;
|
11676
|
+
},
|
11677
|
+
clear () {
|
11678
|
+
if (store.raw === "") this.$refs.input.blur();
|
11679
|
+
else store.raw = "";
|
11680
|
+
},
|
11681
|
+
focus () {
|
11682
|
+
this.$refs.input.focus();
|
11683
|
+
}
|
11684
|
+
};
|
11685
|
+
}
|
11686
|
+
|
11687
|
+
|
11657
11688
|
var $d92d9d5253f84566$exports = {};
|
11658
11689
|
|
11659
11690
|
$parcel$defineInteropFlag($d92d9d5253f84566$exports);
|
@@ -11698,31 +11729,6 @@ function $d92d9d5253f84566$export$2e2bcd8739ae039(store) {
|
|
11698
11729
|
}
|
11699
11730
|
|
11700
11731
|
|
11701
|
-
var $e9904a14dabf652d$exports = {};
|
11702
|
-
|
11703
|
-
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11704
|
-
|
11705
|
-
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11706
|
-
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11707
|
-
return {
|
11708
|
-
focussed: false,
|
11709
|
-
get active () {
|
11710
|
-
return store.active;
|
11711
|
-
},
|
11712
|
-
get text () {
|
11713
|
-
return store.text;
|
11714
|
-
},
|
11715
|
-
clear () {
|
11716
|
-
if (store.raw === "") this.$refs.input.blur();
|
11717
|
-
else store.raw = "";
|
11718
|
-
},
|
11719
|
-
focus () {
|
11720
|
-
this.$refs.input.focus();
|
11721
|
-
}
|
11722
|
-
};
|
11723
|
-
}
|
11724
|
-
|
11725
|
-
|
11726
11732
|
var $506dabb2bf255b38$exports = {};
|
11727
11733
|
|
11728
11734
|
$parcel$defineInteropFlag($506dabb2bf255b38$exports);
|
@@ -11732,29 +11738,29 @@ var $7cac9a0d4b75bf4e$var$numeric = function(value, unit) {
|
|
11732
11738
|
return Number(value.slice(0, -1 * unit.length));
|
11733
11739
|
};
|
11734
11740
|
var $7cac9a0d4b75bf4e$var$parseValue = function(value) {
|
11735
|
-
if (value.endsWith(
|
11741
|
+
if (value.endsWith('px')) return {
|
11736
11742
|
value: value,
|
11737
|
-
type:
|
11738
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11743
|
+
type: 'px',
|
11744
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, 'px')
|
11739
11745
|
};
|
11740
|
-
if (value.endsWith(
|
11746
|
+
if (value.endsWith('fr')) return {
|
11741
11747
|
value: value,
|
11742
|
-
type:
|
11743
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11748
|
+
type: 'fr',
|
11749
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, 'fr')
|
11744
11750
|
};
|
11745
|
-
if (value.endsWith(
|
11751
|
+
if (value.endsWith('%')) return {
|
11746
11752
|
value: value,
|
11747
|
-
type:
|
11748
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11753
|
+
type: '%',
|
11754
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, '%')
|
11749
11755
|
};
|
11750
|
-
if (value ===
|
11756
|
+
if (value === 'auto') return {
|
11751
11757
|
value: value,
|
11752
|
-
type:
|
11758
|
+
type: 'auto'
|
11753
11759
|
};
|
11754
11760
|
return null;
|
11755
11761
|
};
|
11756
11762
|
var $7cac9a0d4b75bf4e$var$parse = function(rule) {
|
11757
|
-
return rule.split(
|
11763
|
+
return rule.split(' ').map($7cac9a0d4b75bf4e$var$parseValue);
|
11758
11764
|
};
|
11759
11765
|
var $7cac9a0d4b75bf4e$var$getSizeAtTrack = function(index, tracks, gap, end) {
|
11760
11766
|
if (gap === void 0) gap = 0;
|
@@ -11770,7 +11776,7 @@ var $7cac9a0d4b75bf4e$var$getStyles = function(rule, ownRules, matchedRules) {
|
|
11770
11776
|
return ownRules.concat(matchedRules).map(function(r) {
|
11771
11777
|
return r.style[rule];
|
11772
11778
|
}).filter(function(style) {
|
11773
|
-
return style !== undefined && style !==
|
11779
|
+
return style !== undefined && style !== '';
|
11774
11780
|
});
|
11775
11781
|
};
|
11776
11782
|
var $7cac9a0d4b75bf4e$var$getGapValue = function(unit, size) {
|
@@ -11816,41 +11822,41 @@ function $7cac9a0d4b75bf4e$var$getMatchedCSSRules(el) {
|
|
11816
11822
|
return matches;
|
11817
11823
|
});
|
11818
11824
|
}
|
11819
|
-
var $7cac9a0d4b75bf4e$var$gridTemplatePropColumns =
|
11820
|
-
var $7cac9a0d4b75bf4e$var$gridTemplatePropRows =
|
11825
|
+
var $7cac9a0d4b75bf4e$var$gridTemplatePropColumns = 'grid-template-columns';
|
11826
|
+
var $7cac9a0d4b75bf4e$var$gridTemplatePropRows = 'grid-template-rows';
|
11821
11827
|
var $7cac9a0d4b75bf4e$var$Gutter = function Gutter(direction, options, parentOptions) {
|
11822
11828
|
this.direction = direction;
|
11823
11829
|
this.element = options.element;
|
11824
11830
|
this.track = options.track;
|
11825
|
-
if (direction ===
|
11831
|
+
if (direction === 'column') {
|
11826
11832
|
this.gridTemplateProp = $7cac9a0d4b75bf4e$var$gridTemplatePropColumns;
|
11827
|
-
this.gridGapProp =
|
11828
|
-
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11829
|
-
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11830
|
-
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11831
|
-
this.clientAxis =
|
11832
|
-
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11833
|
-
} 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') {
|
11834
11840
|
this.gridTemplateProp = $7cac9a0d4b75bf4e$var$gridTemplatePropRows;
|
11835
|
-
this.gridGapProp =
|
11836
|
-
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11837
|
-
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11838
|
-
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11839
|
-
this.clientAxis =
|
11840
|
-
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11841
|
-
}
|
11842
|
-
this.onDragStart = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11843
|
-
this.onDragEnd = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11844
|
-
this.onDrag = $7cac9a0d4b75bf4e$var$getOption(parentOptions,
|
11845
|
-
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);
|
11846
11852
|
this.startDragging = this.startDragging.bind(this);
|
11847
11853
|
this.stopDragging = this.stopDragging.bind(this);
|
11848
11854
|
this.drag = this.drag.bind(this);
|
11849
11855
|
this.minSizeStart = options.minSizeStart;
|
11850
11856
|
this.minSizeEnd = options.minSizeEnd;
|
11851
11857
|
if (options.element) {
|
11852
|
-
this.element.addEventListener(
|
11853
|
-
this.element.addEventListener(
|
11858
|
+
this.element.addEventListener('mousedown', this.startDragging);
|
11859
|
+
this.element.addEventListener('touchstart', this.startDragging);
|
11854
11860
|
}
|
11855
11861
|
};
|
11856
11862
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.getDimensions = function getDimensions() {
|
@@ -11861,11 +11867,11 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getDimensions = function getDimensions()
|
|
11861
11867
|
var bottom = ref.bottom;
|
11862
11868
|
var left = ref.left;
|
11863
11869
|
var right = ref.right;
|
11864
|
-
if (this.direction ===
|
11870
|
+
if (this.direction === 'column') {
|
11865
11871
|
this.start = top;
|
11866
11872
|
this.end = bottom;
|
11867
11873
|
this.size = height;
|
11868
|
-
} else if (this.direction ===
|
11874
|
+
} else if (this.direction === 'row') {
|
11869
11875
|
this.start = left;
|
11870
11876
|
this.end = right;
|
11871
11877
|
this.size = width;
|
@@ -11883,7 +11889,7 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getRawTracks = function getRawTracks() {
|
|
11883
11889
|
], $7cac9a0d4b75bf4e$var$getMatchedCSSRules(this.grid));
|
11884
11890
|
if (!tracks.length) {
|
11885
11891
|
if (this.optionStyle) return this.optionStyle;
|
11886
|
-
throw Error(
|
11892
|
+
throw Error('Unable to determine grid template tracks from styles.');
|
11887
11893
|
}
|
11888
11894
|
return tracks[0];
|
11889
11895
|
};
|
@@ -11901,11 +11907,11 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getRawComputedGap = function getRawComput
|
|
11901
11907
|
return window.getComputedStyle(this.grid)[this.gridGapProp];
|
11902
11908
|
};
|
11903
11909
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setTracks = function setTracks(raw) {
|
11904
|
-
this.tracks = raw.split(
|
11910
|
+
this.tracks = raw.split(' ');
|
11905
11911
|
this.trackValues = $7cac9a0d4b75bf4e$var$parse(raw);
|
11906
11912
|
};
|
11907
11913
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setComputedTracks = function setComputedTracks(raw) {
|
11908
|
-
this.computedTracks = raw.split(
|
11914
|
+
this.computedTracks = raw.split(' ');
|
11909
11915
|
this.computedPixels = $7cac9a0d4b75bf4e$var$parse(raw);
|
11910
11916
|
};
|
11911
11917
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setGap = function setGap(raw) {
|
@@ -11913,14 +11919,14 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.setGap = function setGap(raw) {
|
|
11913
11919
|
};
|
11914
11920
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setComputedGap = function setComputedGap(raw) {
|
11915
11921
|
this.computedGap = raw;
|
11916
|
-
this.computedGapPixels = $7cac9a0d4b75bf4e$var$getGapValue(
|
11922
|
+
this.computedGapPixels = $7cac9a0d4b75bf4e$var$getGapValue('px', this.computedGap) || 0;
|
11917
11923
|
};
|
11918
11924
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.getMousePosition = function getMousePosition(e) {
|
11919
|
-
if (
|
11925
|
+
if ('touches' in e) return e.touches[0][this.clientAxis];
|
11920
11926
|
return e[this.clientAxis];
|
11921
11927
|
};
|
11922
11928
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e) {
|
11923
|
-
if (
|
11929
|
+
if ('button' in e && e.button !== 0) return;
|
11924
11930
|
// Don't actually drag the element. We emulate that in the drag function.
|
11925
11931
|
e.preventDefault();
|
11926
11932
|
if (this.element) this.grid = this.element.parentNode;
|
@@ -11931,10 +11937,10 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e)
|
|
11931
11937
|
this.setGap(this.getGap());
|
11932
11938
|
this.setComputedGap(this.getRawComputedGap());
|
11933
11939
|
var trackPercentage = this.trackValues.filter(function(track) {
|
11934
|
-
return track.type ===
|
11940
|
+
return track.type === '%';
|
11935
11941
|
});
|
11936
11942
|
var trackFr = this.trackValues.filter(function(track) {
|
11937
|
-
return track.type ===
|
11943
|
+
return track.type === 'fr';
|
11938
11944
|
});
|
11939
11945
|
this.totalFrs = trackFr.length;
|
11940
11946
|
if (this.totalFrs) {
|
@@ -11956,18 +11962,18 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e)
|
|
11956
11962
|
// Set the dragging property of the pair object.
|
11957
11963
|
this.dragging = true;
|
11958
11964
|
// All the binding. `window` gets the stop events in case we drag out of the elements.
|
11959
|
-
window.addEventListener(
|
11960
|
-
window.addEventListener(
|
11961
|
-
window.addEventListener(
|
11962
|
-
window.addEventListener(
|
11963
|
-
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);
|
11964
11970
|
// Disable selection. Disable!
|
11965
|
-
this.grid.addEventListener(
|
11966
|
-
this.grid.addEventListener(
|
11967
|
-
this.grid.style.userSelect =
|
11968
|
-
this.grid.style.webkitUserSelect =
|
11969
|
-
this.grid.style.MozUserSelect =
|
11970
|
-
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';
|
11971
11977
|
// Set the cursor at multiple levels
|
11972
11978
|
this.grid.style.cursor = this.cursor;
|
11973
11979
|
window.document.body.style.cursor = this.cursor;
|
@@ -11980,8 +11986,8 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.stopDragging = function stopDragging() {
|
|
11980
11986
|
this.onDragEnd(this.direction, this.track);
|
11981
11987
|
if (this.needsDestroy) {
|
11982
11988
|
if (this.element) {
|
11983
|
-
this.element.removeEventListener(
|
11984
|
-
this.element.removeEventListener(
|
11989
|
+
this.element.removeEventListener('mousedown', this.startDragging);
|
11990
|
+
this.element.removeEventListener('touchstart', this.startDragging);
|
11985
11991
|
}
|
11986
11992
|
this.destroyCb();
|
11987
11993
|
this.needsDestroy = false;
|
@@ -12008,56 +12014,56 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.drag = function drag(e) {
|
|
12008
12014
|
}
|
12009
12015
|
if (aTrackSize < this.minSizeStart) aTrackSize = this.minSizeStart;
|
12010
12016
|
if (bTrackSize < this.minSizeEnd) bTrackSize = this.minSizeEnd;
|
12011
|
-
if (this.trackValues[this.aTrack].type ===
|
12012
|
-
else if (this.trackValues[this.aTrack].type ===
|
12013
|
-
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';
|
12014
12020
|
else {
|
12015
12021
|
var targetFr = aTrackSize / this.frToPixels;
|
12016
12022
|
this.tracks[this.aTrack] = targetFr + "fr";
|
12017
12023
|
}
|
12018
|
-
} else if (this.trackValues[this.aTrack].type ===
|
12024
|
+
} else if (this.trackValues[this.aTrack].type === '%') {
|
12019
12025
|
var targetPercentage = aTrackSize / this.percentageToPixels;
|
12020
12026
|
this.tracks[this.aTrack] = targetPercentage + "%";
|
12021
12027
|
}
|
12022
|
-
if (this.trackValues[this.bTrack].type ===
|
12023
|
-
else if (this.trackValues[this.bTrack].type ===
|
12024
|
-
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';
|
12025
12031
|
else {
|
12026
12032
|
var targetFr$1 = bTrackSize / this.frToPixels;
|
12027
12033
|
this.tracks[this.bTrack] = targetFr$1 + "fr";
|
12028
12034
|
}
|
12029
|
-
} else if (this.trackValues[this.bTrack].type ===
|
12035
|
+
} else if (this.trackValues[this.bTrack].type === '%') {
|
12030
12036
|
var targetPercentage$1 = bTrackSize / this.percentageToPixels;
|
12031
12037
|
this.tracks[this.bTrack] = targetPercentage$1 + "%";
|
12032
12038
|
}
|
12033
|
-
var style = this.tracks.join(
|
12039
|
+
var style = this.tracks.join(' ');
|
12034
12040
|
this.writeStyle(this.grid, this.gridTemplateProp, style);
|
12035
12041
|
this.onDrag(this.direction, this.track, style);
|
12036
12042
|
};
|
12037
12043
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.cleanup = function cleanup() {
|
12038
|
-
window.removeEventListener(
|
12039
|
-
window.removeEventListener(
|
12040
|
-
window.removeEventListener(
|
12041
|
-
window.removeEventListener(
|
12042
|
-
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);
|
12043
12049
|
if (this.grid) {
|
12044
|
-
this.grid.removeEventListener(
|
12045
|
-
this.grid.removeEventListener(
|
12046
|
-
this.grid.style.userSelect =
|
12047
|
-
this.grid.style.webkitUserSelect =
|
12048
|
-
this.grid.style.MozUserSelect =
|
12049
|
-
this.grid.style.pointerEvents =
|
12050
|
-
this.grid.style.cursor =
|
12051
|
-
}
|
12052
|
-
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 = '';
|
12053
12059
|
};
|
12054
12060
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.destroy = function destroy(immediate, cb) {
|
12055
12061
|
if (immediate === void 0) immediate = true;
|
12056
12062
|
if (immediate || this.dragging === false) {
|
12057
12063
|
this.cleanup();
|
12058
12064
|
if (this.element) {
|
12059
|
-
this.element.removeEventListener(
|
12060
|
-
this.element.removeEventListener(
|
12065
|
+
this.element.removeEventListener('mousedown', this.startDragging);
|
12066
|
+
this.element.removeEventListener('touchstart', this.startDragging);
|
12061
12067
|
}
|
12062
12068
|
if (cb) cb();
|
12063
12069
|
} else {
|
@@ -12072,11 +12078,11 @@ var $7cac9a0d4b75bf4e$var$getTrackOption = function(options, track, defaultValue
|
|
12072
12078
|
var $7cac9a0d4b75bf4e$var$createGutter = function(direction, options) {
|
12073
12079
|
return function(gutterOptions) {
|
12074
12080
|
if (gutterOptions.track < 1) throw Error("Invalid track index: " + gutterOptions.track + ". Track must be between two other tracks.");
|
12075
|
-
var trackMinSizes = direction ===
|
12076
|
-
var trackMinSize = direction ===
|
12081
|
+
var trackMinSizes = direction === 'column' ? options.columnMinSizes || {} : options.rowMinSizes || {};
|
12082
|
+
var trackMinSize = direction === 'column' ? 'columnMinSize' : 'rowMinSize';
|
12077
12083
|
return new $7cac9a0d4b75bf4e$var$Gutter(direction, Object.assign({}, {
|
12078
|
-
minSizeStart: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track - 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options,
|
12079
|
-
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)))
|
12080
12086
|
}, gutterOptions), options);
|
12081
12087
|
};
|
12082
12088
|
};
|
@@ -12091,22 +12097,22 @@ var $7cac9a0d4b75bf4e$var$Grid = function Grid(options) {
|
|
12091
12097
|
rowMinSizes: options.rowMinSizes || {}
|
12092
12098
|
}, options);
|
12093
12099
|
this.options.columnGutters.forEach(function(gutterOptions) {
|
12094
|
-
this$1.columnGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12100
|
+
this$1.columnGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter('column', this$1.options)(gutterOptions);
|
12095
12101
|
});
|
12096
12102
|
this.options.rowGutters.forEach(function(gutterOptions) {
|
12097
|
-
this$1.rowGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12103
|
+
this$1.rowGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter('row', this$1.options)(gutterOptions);
|
12098
12104
|
});
|
12099
12105
|
};
|
12100
12106
|
$7cac9a0d4b75bf4e$var$Grid.prototype.addColumnGutter = function addColumnGutter(element, track) {
|
12101
12107
|
if (this.columnGutters[track]) this.columnGutters[track].destroy();
|
12102
|
-
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12108
|
+
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('column', this.options)({
|
12103
12109
|
element: element,
|
12104
12110
|
track: track
|
12105
12111
|
});
|
12106
12112
|
};
|
12107
12113
|
$7cac9a0d4b75bf4e$var$Grid.prototype.addRowGutter = function addRowGutter(element, track) {
|
12108
12114
|
if (this.rowGutters[track]) this.rowGutters[track].destroy();
|
12109
|
-
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12115
|
+
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('row', this.options)({
|
12110
12116
|
element: element,
|
12111
12117
|
track: track
|
12112
12118
|
});
|
@@ -12126,15 +12132,15 @@ $7cac9a0d4b75bf4e$var$Grid.prototype.removeRowGutter = function removeRowGutter(
|
|
12126
12132
|
});
|
12127
12133
|
};
|
12128
12134
|
$7cac9a0d4b75bf4e$var$Grid.prototype.handleDragStart = function handleDragStart(e, direction, track) {
|
12129
|
-
if (direction ===
|
12135
|
+
if (direction === 'column') {
|
12130
12136
|
if (this.columnGutters[track]) this.columnGutters[track].destroy();
|
12131
|
-
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12137
|
+
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('column', this.options)({
|
12132
12138
|
track: track
|
12133
12139
|
});
|
12134
12140
|
this.columnGutters[track].startDragging(e);
|
12135
|
-
} else if (direction ===
|
12141
|
+
} else if (direction === 'row') {
|
12136
12142
|
if (this.rowGutters[track]) this.rowGutters[track].destroy();
|
12137
|
-
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12143
|
+
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('row', this.options)({
|
12138
12144
|
track: track
|
12139
12145
|
});
|
12140
12146
|
this.rowGutters[track].startDragging(e);
|
@@ -12520,14 +12526,14 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12520
12526
|
}
|
12521
12527
|
|
12522
12528
|
|
12523
|
-
$
|
12529
|
+
$c9dfaeb25bf110ce$exports = {
|
12524
12530
|
"button": $cbd28b10fa9798c7$exports,
|
12525
12531
|
"code": $99486586f6691564$exports,
|
12526
12532
|
"copy_button": $47a1c62621be0c54$exports,
|
12527
12533
|
"dimensions_display": $e398acaded942bbe$exports,
|
12528
12534
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12529
|
-
"nav": $d92d9d5253f84566$exports,
|
12530
12535
|
"filter": $e9904a14dabf652d$exports,
|
12536
|
+
"nav": $d92d9d5253f84566$exports,
|
12531
12537
|
"split_layout": $506dabb2bf255b38$exports,
|
12532
12538
|
"tab_panels": $a87dacf5139b5e2f$exports,
|
12533
12539
|
"tabs": $0db07828cadc68e0$exports,
|
@@ -12535,7 +12541,125 @@ $d93ebb7d29fc0464$exports = {
|
|
12535
12541
|
};
|
12536
12542
|
|
12537
12543
|
|
12538
|
-
var $
|
12544
|
+
var $5d1c9207cb730903$exports = {};
|
12545
|
+
var $6a9b69d9cc7f810f$exports = {};
|
12546
|
+
|
12547
|
+
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
12548
|
+
|
12549
|
+
$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
|
12550
|
+
var $cdfeaa1e0e8d642c$exports = {};
|
12551
|
+
(function(global, factory) {
|
12552
|
+
$cdfeaa1e0e8d642c$exports = factory();
|
12553
|
+
})($cdfeaa1e0e8d642c$exports, function() {
|
12554
|
+
'use strict';
|
12555
|
+
/* eslint-disable no-var */ function assign(target) {
|
12556
|
+
for(var i = 1; i < arguments.length; i++){
|
12557
|
+
var source = arguments[i];
|
12558
|
+
for(var key in source)target[key] = source[key];
|
12559
|
+
}
|
12560
|
+
return target;
|
12561
|
+
}
|
12562
|
+
/* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
|
12563
|
+
read: function(value) {
|
12564
|
+
if (value[0] === '"') value = value.slice(1, -1);
|
12565
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
12566
|
+
},
|
12567
|
+
write: function(value) {
|
12568
|
+
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
12569
|
+
}
|
12570
|
+
};
|
12571
|
+
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
12572
|
+
function set(name, value, attributes) {
|
12573
|
+
if (typeof document === 'undefined') return;
|
12574
|
+
attributes = assign({}, defaultAttributes, attributes);
|
12575
|
+
if (typeof attributes.expires === 'number') attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
12576
|
+
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
12577
|
+
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
12578
|
+
var stringifiedAttributes = '';
|
12579
|
+
for(var attributeName in attributes){
|
12580
|
+
if (!attributes[attributeName]) continue;
|
12581
|
+
stringifiedAttributes += '; ' + attributeName;
|
12582
|
+
if (attributes[attributeName] === true) continue;
|
12583
|
+
// Considers RFC 6265 section 5.2:
|
12584
|
+
// ...
|
12585
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
12586
|
+
// character:
|
12587
|
+
// Consume the characters of the unparsed-attributes up to,
|
12588
|
+
// not including, the first %x3B (";") character.
|
12589
|
+
// ...
|
12590
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
12591
|
+
}
|
12592
|
+
return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
|
12593
|
+
}
|
12594
|
+
function get(name) {
|
12595
|
+
if (typeof document === 'undefined' || arguments.length && !name) return;
|
12596
|
+
// To prevent the for loop in the first place assign an empty array
|
12597
|
+
// in case there are no cookies at all.
|
12598
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
12599
|
+
var jar = {};
|
12600
|
+
for(var i = 0; i < cookies.length; i++){
|
12601
|
+
var parts = cookies[i].split('=');
|
12602
|
+
var value = parts.slice(1).join('=');
|
12603
|
+
try {
|
12604
|
+
var found = decodeURIComponent(parts[0]);
|
12605
|
+
jar[found] = converter.read(value, found);
|
12606
|
+
if (name === found) break;
|
12607
|
+
} catch (e) {}
|
12608
|
+
}
|
12609
|
+
return name ? jar[name] : jar;
|
12610
|
+
}
|
12611
|
+
return Object.create({
|
12612
|
+
set: set,
|
12613
|
+
get: get,
|
12614
|
+
remove: function(name, attributes) {
|
12615
|
+
set(name, '', assign({}, attributes, {
|
12616
|
+
expires: -1
|
12617
|
+
}));
|
12618
|
+
},
|
12619
|
+
withAttributes: function(attributes) {
|
12620
|
+
return init(this.converter, assign({}, this.attributes, attributes));
|
12621
|
+
},
|
12622
|
+
withConverter: function(converter) {
|
12623
|
+
return init(assign({}, this.converter, converter), this.attributes);
|
12624
|
+
}
|
12625
|
+
}, {
|
12626
|
+
attributes: {
|
12627
|
+
value: Object.freeze(defaultAttributes)
|
12628
|
+
},
|
12629
|
+
converter: {
|
12630
|
+
value: Object.freeze(converter)
|
12631
|
+
}
|
12632
|
+
});
|
12633
|
+
}
|
12634
|
+
var api = init(defaultConverter, {
|
12635
|
+
path: '/'
|
12636
|
+
});
|
12637
|
+
/* eslint-enable no-var */ return api;
|
12638
|
+
});
|
12639
|
+
|
12640
|
+
|
12641
|
+
|
12642
|
+
function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
|
12643
|
+
return {
|
12644
|
+
name: name,
|
12645
|
+
value: value,
|
12646
|
+
init () {
|
12647
|
+
this.$watch("value", ()=>this.update());
|
12648
|
+
},
|
12649
|
+
update () {
|
12650
|
+
(0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
|
12651
|
+
const searchParams = new URLSearchParams(window.location.search);
|
12652
|
+
const display = searchParams.get("_display");
|
12653
|
+
const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
|
12654
|
+
displayParams[this.name] = this.value;
|
12655
|
+
searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
|
12656
|
+
const path = location.href.replace(location.search, "");
|
12657
|
+
this.navigateTo(`${path}?${searchParams.toString()}`);
|
12658
|
+
}
|
12659
|
+
};
|
12660
|
+
}
|
12661
|
+
|
12662
|
+
|
12539
12663
|
var $c299e36fa9e271bc$exports = {};
|
12540
12664
|
|
12541
12665
|
$parcel$defineInteropFlag($c299e36fa9e271bc$exports);
|
@@ -12552,8 +12676,8 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12552
12676
|
* Contributor: Reed Dadoune - reed@dadoune.com
|
12553
12677
|
*/ // eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names
|
12554
12678
|
(function(undefined) {
|
12555
|
-
if (typeof window ===
|
12556
|
-
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({
|
12557
12681
|
max: 1,
|
12558
12682
|
scroll: 1,
|
12559
12683
|
bodyScroll: 1,
|
@@ -12567,8 +12691,8 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12567
12691
|
checkOrigin: true,
|
12568
12692
|
inPageLinks: false,
|
12569
12693
|
enablePublicMethods: true,
|
12570
|
-
heightCalculationMethod:
|
12571
|
-
id:
|
12694
|
+
heightCalculationMethod: 'bodyOffset',
|
12695
|
+
id: 'iFrameResizer',
|
12572
12696
|
interval: 32,
|
12573
12697
|
log: false,
|
12574
12698
|
maxHeight: Infinity,
|
@@ -12576,20 +12700,20 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12576
12700
|
minHeight: 0,
|
12577
12701
|
minWidth: 0,
|
12578
12702
|
mouseEvents: true,
|
12579
|
-
resizeFrom:
|
12703
|
+
resizeFrom: 'parent',
|
12580
12704
|
scrolling: false,
|
12581
12705
|
sizeHeight: true,
|
12582
12706
|
sizeWidth: false,
|
12583
12707
|
warningTimeout: 5000,
|
12584
12708
|
tolerance: 0,
|
12585
|
-
widthCalculationMethod:
|
12709
|
+
widthCalculationMethod: 'scroll',
|
12586
12710
|
onClose: function() {
|
12587
12711
|
return true;
|
12588
12712
|
},
|
12589
12713
|
onClosed: function() {},
|
12590
12714
|
onInit: function() {},
|
12591
12715
|
onMessage: function() {
|
12592
|
-
warn(
|
12716
|
+
warn('onMessage function not defined');
|
12593
12717
|
},
|
12594
12718
|
onMouseEnter: function() {},
|
12595
12719
|
onMouseLeave: function() {},
|
@@ -12609,42 +12733,42 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12609
12733
|
}
|
12610
12734
|
function setupRequestAnimationFrame() {
|
12611
12735
|
var vendors = [
|
12612
|
-
|
12613
|
-
|
12614
|
-
|
12615
|
-
|
12736
|
+
'moz',
|
12737
|
+
'webkit',
|
12738
|
+
'o',
|
12739
|
+
'ms'
|
12616
12740
|
];
|
12617
12741
|
var x;
|
12618
12742
|
// Remove vendor prefixing if prefixed and break early if not
|
12619
|
-
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'];
|
12620
12744
|
if (requestAnimationFrame) // Firefox extension content-scripts have a globalThis object that is not the same as window.
|
12621
12745
|
// Binding `requestAnimationFrame` to window allows the function to work and prevents errors
|
12622
12746
|
// being thrown when run in that context, and should be a no-op in every other context.
|
12623
12747
|
requestAnimationFrame = requestAnimationFrame.bind(window);
|
12624
|
-
else log(
|
12748
|
+
else log('setup', 'RequestAnimationFrame not supported');
|
12625
12749
|
}
|
12626
12750
|
function getMyID(iframeId) {
|
12627
|
-
var retStr =
|
12628
|
-
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;
|
12629
12753
|
return retStr;
|
12630
12754
|
}
|
12631
12755
|
function formatLogHeader(iframeId) {
|
12632
|
-
return msgId +
|
12756
|
+
return msgId + '[' + getMyID(iframeId) + ']';
|
12633
12757
|
}
|
12634
12758
|
function isLogEnabled(iframeId) {
|
12635
12759
|
return settings[iframeId] ? settings[iframeId].log : logEnabled;
|
12636
12760
|
}
|
12637
12761
|
function log(iframeId, msg) {
|
12638
|
-
output(
|
12762
|
+
output('log', iframeId, msg, isLogEnabled(iframeId));
|
12639
12763
|
}
|
12640
12764
|
function info(iframeId, msg) {
|
12641
|
-
output(
|
12765
|
+
output('info', iframeId, msg, isLogEnabled(iframeId));
|
12642
12766
|
}
|
12643
12767
|
function warn(iframeId, msg) {
|
12644
|
-
output(
|
12768
|
+
output('warn', iframeId, msg, true);
|
12645
12769
|
}
|
12646
12770
|
function output(type, iframeId, msg, enabled) {
|
12647
|
-
if (true === enabled &&
|
12771
|
+
if (true === enabled && 'object' === typeof window.console) // eslint-disable-next-line no-console
|
12648
12772
|
console[type](formatLogHeader(iframeId), msg);
|
12649
12773
|
}
|
12650
12774
|
function iFrameListener(event) {
|
@@ -12652,14 +12776,14 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12652
12776
|
function resize() {
|
12653
12777
|
setSize(messageData);
|
12654
12778
|
setPagePosition(iframeId);
|
12655
|
-
on(
|
12779
|
+
on('onResized', messageData);
|
12656
12780
|
}
|
12657
|
-
ensureInRange(
|
12658
|
-
ensureInRange(
|
12659
|
-
syncResize(resize, messageData,
|
12781
|
+
ensureInRange('Height');
|
12782
|
+
ensureInRange('Width');
|
12783
|
+
syncResize(resize, messageData, 'init');
|
12660
12784
|
}
|
12661
12785
|
function processMsg() {
|
12662
|
-
var data = msg.slice(msgIdLen).split(
|
12786
|
+
var data = msg.slice(msgIdLen).split(':');
|
12663
12787
|
var height = data[1] ? parseInt(data[1], 10) : 0;
|
12664
12788
|
var iframe = settings[data[0]] && settings[data[0]].iframe;
|
12665
12789
|
var compStyle = getComputedStyle(iframe);
|
@@ -12672,35 +12796,35 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12672
12796
|
};
|
12673
12797
|
}
|
12674
12798
|
function getPaddingEnds(compStyle) {
|
12675
|
-
if (compStyle.boxSizing !==
|
12799
|
+
if (compStyle.boxSizing !== 'border-box') return 0;
|
12676
12800
|
var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0;
|
12677
12801
|
var bot = compStyle.paddingBottom ? parseInt(compStyle.paddingBottom, 10) : 0;
|
12678
12802
|
return top + bot;
|
12679
12803
|
}
|
12680
12804
|
function getBorderEnds(compStyle) {
|
12681
|
-
if (compStyle.boxSizing !==
|
12805
|
+
if (compStyle.boxSizing !== 'border-box') return 0;
|
12682
12806
|
var top = compStyle.borderTopWidth ? parseInt(compStyle.borderTopWidth, 10) : 0;
|
12683
12807
|
var bot = compStyle.borderBottomWidth ? parseInt(compStyle.borderBottomWidth, 10) : 0;
|
12684
12808
|
return top + bot;
|
12685
12809
|
}
|
12686
12810
|
function ensureInRange(Dimension) {
|
12687
|
-
var max = Number(settings[iframeId][
|
12688
|
-
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);
|
12689
12813
|
if (size < min) {
|
12690
12814
|
size = min;
|
12691
|
-
log(iframeId,
|
12815
|
+
log(iframeId, 'Set ' + dimension + ' to min value');
|
12692
12816
|
}
|
12693
12817
|
if (size > max) {
|
12694
12818
|
size = max;
|
12695
|
-
log(iframeId,
|
12819
|
+
log(iframeId, 'Set ' + dimension + ' to max value');
|
12696
12820
|
}
|
12697
|
-
messageData[dimension] =
|
12821
|
+
messageData[dimension] = '' + size;
|
12698
12822
|
}
|
12699
12823
|
function isMessageFromIFrame() {
|
12700
12824
|
function checkAllowedOrigin() {
|
12701
12825
|
function checkList() {
|
12702
12826
|
var i = 0, retCode = false;
|
12703
|
-
log(iframeId,
|
12827
|
+
log(iframeId, 'Checking connection is from allowed list of origins: ' + checkOrigin);
|
12704
12828
|
for(; i < checkOrigin.length; i++)if (checkOrigin[i] === origin) {
|
12705
12829
|
retCode = true;
|
12706
12830
|
break;
|
@@ -12709,17 +12833,17 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12709
12833
|
}
|
12710
12834
|
function checkSingle() {
|
12711
12835
|
var remoteHost = settings[iframeId] && settings[iframeId].remoteHost;
|
12712
|
-
log(iframeId,
|
12836
|
+
log(iframeId, 'Checking connection is from: ' + remoteHost);
|
12713
12837
|
return origin === remoteHost;
|
12714
12838
|
}
|
12715
12839
|
return checkOrigin.constructor === Array ? checkList() : checkSingle();
|
12716
12840
|
}
|
12717
12841
|
var origin = event.origin, checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin;
|
12718
|
-
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.');
|
12719
12843
|
return true;
|
12720
12844
|
}
|
12721
12845
|
function isMessageForUs() {
|
12722
|
-
return msgId === (
|
12846
|
+
return msgId === ('' + msg).slice(0, msgIdLen) && msg.slice(msgIdLen).split(':')[0] in settings // ''+Protects against non-string msg
|
12723
12847
|
;
|
12724
12848
|
}
|
12725
12849
|
function isMessageFromMetaParent() {
|
@@ -12730,19 +12854,19 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12730
12854
|
false: 1,
|
12731
12855
|
undefined: 1
|
12732
12856
|
};
|
12733
|
-
if (retCode) log(iframeId,
|
12857
|
+
if (retCode) log(iframeId, 'Ignoring init message from meta parent page');
|
12734
12858
|
return retCode;
|
12735
12859
|
}
|
12736
12860
|
function getMsgBody(offset) {
|
12737
|
-
return msg.slice(msg.indexOf(
|
12861
|
+
return msg.slice(msg.indexOf(':') + msgHeaderLen + offset);
|
12738
12862
|
}
|
12739
12863
|
function forwardMsgFromIFrame(msgBody) {
|
12740
|
-
log(iframeId,
|
12741
|
-
on(
|
12864
|
+
log(iframeId, 'onMessage passed: {iframe: ' + messageData.iframe.id + ', message: ' + msgBody + '}');
|
12865
|
+
on('onMessage', {
|
12742
12866
|
iframe: messageData.iframe,
|
12743
12867
|
message: JSON.parse(msgBody)
|
12744
12868
|
});
|
12745
|
-
log(iframeId,
|
12869
|
+
log(iframeId, '--');
|
12746
12870
|
}
|
12747
12871
|
function getPageInfo() {
|
12748
12872
|
var bodyPosition = document.body.getBoundingClientRect(), iFramePosition = messageData.iframe.getBoundingClientRect();
|
@@ -12763,7 +12887,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12763
12887
|
}
|
12764
12888
|
function sendPageInfoToIframe(iframe, iframeId) {
|
12765
12889
|
function debouncedTrigger() {
|
12766
|
-
trigger(
|
12890
|
+
trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId);
|
12767
12891
|
}
|
12768
12892
|
debounceFrameEvents(debouncedTrigger, 32, iframeId);
|
12769
12893
|
}
|
@@ -12774,18 +12898,18 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12774
12898
|
else stop();
|
12775
12899
|
}
|
12776
12900
|
[
|
12777
|
-
|
12778
|
-
|
12901
|
+
'scroll',
|
12902
|
+
'resize'
|
12779
12903
|
].forEach(function(evt) {
|
12780
|
-
log(id, type + evt +
|
12904
|
+
log(id, type + evt + ' listener for sendPageInfo');
|
12781
12905
|
func(window, evt, sendPageInfo);
|
12782
12906
|
});
|
12783
12907
|
}
|
12784
12908
|
function stop() {
|
12785
|
-
setListener(
|
12909
|
+
setListener('Remove ', removeEventListener);
|
12786
12910
|
}
|
12787
12911
|
function start() {
|
12788
|
-
setListener(
|
12912
|
+
setListener('Add ', addEventListener);
|
12789
12913
|
}
|
12790
12914
|
var id = iframeId // Create locally scoped copy of iFrame ID
|
12791
12915
|
;
|
@@ -12801,7 +12925,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12801
12925
|
function checkIFrameExists() {
|
12802
12926
|
var retBool = true;
|
12803
12927
|
if (null === messageData.iframe) {
|
12804
|
-
warn(iframeId,
|
12928
|
+
warn(iframeId, 'IFrame (' + messageData.id + ') not found');
|
12805
12929
|
retBool = false;
|
12806
12930
|
}
|
12807
12931
|
return retBool;
|
@@ -12819,7 +12943,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12819
12943
|
function reposition() {
|
12820
12944
|
pagePosition = newPosition;
|
12821
12945
|
scrollTo();
|
12822
|
-
log(iframeId,
|
12946
|
+
log(iframeId, '--');
|
12823
12947
|
}
|
12824
12948
|
function calcOffset() {
|
12825
12949
|
return {
|
@@ -12828,45 +12952,45 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12828
12952
|
};
|
12829
12953
|
}
|
12830
12954
|
function scrollParent() {
|
12831
|
-
if (window.parentIFrame) window.parentIFrame[
|
12832
|
-
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');
|
12833
12957
|
}
|
12834
12958
|
var offset = addOffset ? getElementPosition(messageData.iframe) : {
|
12835
12959
|
x: 0,
|
12836
12960
|
y: 0
|
12837
12961
|
}, newPosition = calcOffset();
|
12838
|
-
log(iframeId,
|
12962
|
+
log(iframeId, 'Reposition requested from iFrame (offset x:' + offset.x + ' y:' + offset.y + ')');
|
12839
12963
|
if (window.top === window.self) reposition();
|
12840
12964
|
else scrollParent();
|
12841
12965
|
}
|
12842
12966
|
function scrollTo() {
|
12843
|
-
if (false === on(
|
12967
|
+
if (false === on('onScroll', pagePosition)) unsetPagePosition();
|
12844
12968
|
else setPagePosition(iframeId);
|
12845
12969
|
}
|
12846
12970
|
function findTarget(location) {
|
12847
12971
|
function jumpToTarget() {
|
12848
12972
|
var jumpPosition = getElementPosition(target);
|
12849
|
-
log(iframeId,
|
12973
|
+
log(iframeId, 'Moving to in page link (#' + hash + ') at x: ' + jumpPosition.x + ' y: ' + jumpPosition.y);
|
12850
12974
|
pagePosition = {
|
12851
12975
|
x: jumpPosition.x,
|
12852
12976
|
y: jumpPosition.y
|
12853
12977
|
};
|
12854
12978
|
scrollTo();
|
12855
|
-
log(iframeId,
|
12979
|
+
log(iframeId, '--');
|
12856
12980
|
}
|
12857
12981
|
function jumpToParent() {
|
12858
12982
|
if (window.parentIFrame) window.parentIFrame.moveToAnchor(hash);
|
12859
|
-
else log(iframeId,
|
12983
|
+
else log(iframeId, 'In page link #' + hash + ' not found and window.parentIFrame not found');
|
12860
12984
|
}
|
12861
|
-
var hash = location.split(
|
12985
|
+
var hash = location.split('#')[1] || '', hashData = decodeURIComponent(hash), target = document.getElementById(hashData) || document.getElementsByName(hashData)[0];
|
12862
12986
|
if (target) jumpToTarget();
|
12863
|
-
else if (window.top === window.self) log(iframeId,
|
12987
|
+
else if (window.top === window.self) log(iframeId, 'In page link #' + hash + ' not found');
|
12864
12988
|
else jumpToParent();
|
12865
12989
|
}
|
12866
12990
|
function onMouse(event) {
|
12867
12991
|
var mousePos = {};
|
12868
12992
|
if (Number(messageData.width) === 0 && Number(messageData.height) === 0) {
|
12869
|
-
var data = getMsgBody(9).split(
|
12993
|
+
var data = getMsgBody(9).split(':');
|
12870
12994
|
mousePos = {
|
12871
12995
|
x: data[1],
|
12872
12996
|
y: data[0]
|
@@ -12888,46 +13012,46 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12888
13012
|
function actionMsg() {
|
12889
13013
|
if (settings[iframeId] && settings[iframeId].firstRun) firstRun();
|
12890
13014
|
switch(messageData.type){
|
12891
|
-
case
|
13015
|
+
case 'close':
|
12892
13016
|
closeIFrame(messageData.iframe);
|
12893
13017
|
break;
|
12894
|
-
case
|
13018
|
+
case 'message':
|
12895
13019
|
forwardMsgFromIFrame(getMsgBody(6));
|
12896
13020
|
break;
|
12897
|
-
case
|
12898
|
-
onMouse(
|
13021
|
+
case 'mouseenter':
|
13022
|
+
onMouse('onMouseEnter');
|
12899
13023
|
break;
|
12900
|
-
case
|
12901
|
-
onMouse(
|
13024
|
+
case 'mouseleave':
|
13025
|
+
onMouse('onMouseLeave');
|
12902
13026
|
break;
|
12903
|
-
case
|
13027
|
+
case 'autoResize':
|
12904
13028
|
settings[iframeId].autoResize = JSON.parse(getMsgBody(9));
|
12905
13029
|
break;
|
12906
|
-
case
|
13030
|
+
case 'scrollTo':
|
12907
13031
|
scrollRequestFromChild(false);
|
12908
13032
|
break;
|
12909
|
-
case
|
13033
|
+
case 'scrollToOffset':
|
12910
13034
|
scrollRequestFromChild(true);
|
12911
13035
|
break;
|
12912
|
-
case
|
13036
|
+
case 'pageInfo':
|
12913
13037
|
sendPageInfoToIframe(settings[iframeId] && settings[iframeId].iframe, iframeId);
|
12914
13038
|
startPageInfoMonitor();
|
12915
13039
|
break;
|
12916
|
-
case
|
13040
|
+
case 'pageInfoStop':
|
12917
13041
|
stopPageInfoMonitor();
|
12918
13042
|
break;
|
12919
|
-
case
|
13043
|
+
case 'inPageLink':
|
12920
13044
|
findTarget(getMsgBody(9));
|
12921
13045
|
break;
|
12922
|
-
case
|
13046
|
+
case 'reset':
|
12923
13047
|
resetIFrame(messageData);
|
12924
13048
|
break;
|
12925
|
-
case
|
13049
|
+
case 'init':
|
12926
13050
|
resizeIFrame();
|
12927
|
-
on(
|
13051
|
+
on('onInit', messageData.iframe);
|
12928
13052
|
break;
|
12929
13053
|
default:
|
12930
|
-
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');
|
12931
13055
|
else resizeIFrame();
|
12932
13056
|
}
|
12933
13057
|
}
|
@@ -12935,35 +13059,35 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12935
13059
|
var retBool = true;
|
12936
13060
|
if (!settings[iframeId]) {
|
12937
13061
|
retBool = false;
|
12938
|
-
warn(messageData.type +
|
13062
|
+
warn(messageData.type + ' No settings for ' + iframeId + '. Message was: ' + msg);
|
12939
13063
|
}
|
12940
13064
|
return retBool;
|
12941
13065
|
}
|
12942
13066
|
function iFrameReadyMsgReceived() {
|
12943
13067
|
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
12944
|
-
for(var iframeId in settings)trigger(
|
13068
|
+
for(var iframeId in settings)trigger('iFrame requested init', createOutgoingMsg(iframeId), settings[iframeId].iframe, iframeId);
|
12945
13069
|
}
|
12946
13070
|
function firstRun() {
|
12947
13071
|
if (settings[iframeId]) settings[iframeId].firstRun = false;
|
12948
13072
|
}
|
12949
13073
|
var msg = event.data, messageData = {}, iframeId = null;
|
12950
|
-
if (
|
13074
|
+
if ('[iFrameResizerChild]Ready' === msg) iFrameReadyMsgReceived();
|
12951
13075
|
else if (isMessageForUs()) {
|
12952
13076
|
messageData = processMsg();
|
12953
13077
|
iframeId = messageData.id;
|
12954
13078
|
if (settings[iframeId]) settings[iframeId].loaded = true;
|
12955
13079
|
if (!isMessageFromMetaParent() && hasSettings(iframeId)) {
|
12956
|
-
log(iframeId,
|
13080
|
+
log(iframeId, 'Received: ' + msg);
|
12957
13081
|
if (checkIFrameExists() && isMessageFromIFrame()) actionMsg();
|
12958
13082
|
}
|
12959
|
-
} else info(iframeId,
|
13083
|
+
} else info(iframeId, 'Ignored: ' + msg);
|
12960
13084
|
}
|
12961
13085
|
function chkEvent(iframeId, funcName, val) {
|
12962
13086
|
var func = null, retVal = null;
|
12963
13087
|
if (settings[iframeId]) {
|
12964
13088
|
func = settings[iframeId][funcName];
|
12965
|
-
if (
|
12966
|
-
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');
|
12967
13091
|
}
|
12968
13092
|
return retVal;
|
12969
13093
|
}
|
@@ -12973,19 +13097,19 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12973
13097
|
}
|
12974
13098
|
function closeIFrame(iframe) {
|
12975
13099
|
var iframeId = iframe.id;
|
12976
|
-
if (chkEvent(iframeId,
|
12977
|
-
log(iframeId,
|
13100
|
+
if (chkEvent(iframeId, 'onClose', iframeId) === false) {
|
13101
|
+
log(iframeId, 'Close iframe cancelled by onClose event');
|
12978
13102
|
return;
|
12979
13103
|
}
|
12980
|
-
log(iframeId,
|
13104
|
+
log(iframeId, 'Removing iFrame: ' + iframeId);
|
12981
13105
|
try {
|
12982
13106
|
// Catch race condition error with React
|
12983
13107
|
if (iframe.parentNode) iframe.parentNode.removeChild(iframe);
|
12984
13108
|
} catch (error) {
|
12985
13109
|
warn(error);
|
12986
13110
|
}
|
12987
|
-
chkEvent(iframeId,
|
12988
|
-
log(iframeId,
|
13111
|
+
chkEvent(iframeId, 'onClosed', iframeId);
|
13112
|
+
log(iframeId, '--');
|
12989
13113
|
removeIframeListeners(iframe);
|
12990
13114
|
}
|
12991
13115
|
function getPagePosition(iframeId) {
|
@@ -12994,13 +13118,13 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12994
13118
|
x: window.pageXOffset === undefined ? document.documentElement.scrollLeft : window.pageXOffset,
|
12995
13119
|
y: window.pageYOffset === undefined ? document.documentElement.scrollTop : window.pageYOffset
|
12996
13120
|
};
|
12997
|
-
log(iframeId,
|
13121
|
+
log(iframeId, 'Get page position: ' + pagePosition.x + ',' + pagePosition.y);
|
12998
13122
|
}
|
12999
13123
|
}
|
13000
13124
|
function setPagePosition(iframeId) {
|
13001
13125
|
if (null !== pagePosition) {
|
13002
13126
|
window.scrollTo(pagePosition.x, pagePosition.y);
|
13003
|
-
log(iframeId,
|
13127
|
+
log(iframeId, 'Set page position: ' + pagePosition.x + ',' + pagePosition.y);
|
13004
13128
|
unsetPagePosition();
|
13005
13129
|
}
|
13006
13130
|
}
|
@@ -13010,29 +13134,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13010
13134
|
function resetIFrame(messageData) {
|
13011
13135
|
function reset() {
|
13012
13136
|
setSize(messageData);
|
13013
|
-
trigger(
|
13137
|
+
trigger('reset', 'reset', messageData.iframe, messageData.id);
|
13014
13138
|
}
|
13015
|
-
log(messageData.id,
|
13139
|
+
log(messageData.id, 'Size reset requested by ' + ('init' === messageData.type ? 'host page' : 'iFrame'));
|
13016
13140
|
getPagePosition(messageData.id);
|
13017
|
-
syncResize(reset, messageData,
|
13141
|
+
syncResize(reset, messageData, 'reset');
|
13018
13142
|
}
|
13019
13143
|
function setSize(messageData) {
|
13020
13144
|
function setDimension(dimension) {
|
13021
13145
|
if (!messageData.id) {
|
13022
|
-
log(
|
13146
|
+
log('undefined', 'messageData id not set');
|
13023
13147
|
return;
|
13024
13148
|
}
|
13025
|
-
messageData.iframe.style[dimension] = messageData[dimension] +
|
13026
|
-
log(messageData.id,
|
13149
|
+
messageData.iframe.style[dimension] = messageData[dimension] + 'px';
|
13150
|
+
log(messageData.id, 'IFrame (' + iframeId + ') ' + dimension + ' set to ' + messageData[dimension] + 'px');
|
13027
13151
|
}
|
13028
13152
|
function chkZero(dimension) {
|
13029
13153
|
// FireFox sets dimension of hidden iFrames to zero.
|
13030
13154
|
// So if we detect that set up an event to check for
|
13031
13155
|
// when iFrame becomes visible.
|
13032
13156
|
/* istanbul ignore next */ // Not testable in PhantomJS
|
13033
|
-
if (!hiddenCheckEnabled &&
|
13157
|
+
if (!hiddenCheckEnabled && '0' === messageData[dimension]) {
|
13034
13158
|
hiddenCheckEnabled = true;
|
13035
|
-
log(iframeId,
|
13159
|
+
log(iframeId, 'Hidden iFrame detected, creating visibility listener');
|
13036
13160
|
fixHiddenIFrames();
|
13037
13161
|
}
|
13038
13162
|
}
|
@@ -13042,29 +13166,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13042
13166
|
}
|
13043
13167
|
var iframeId = messageData.iframe.id;
|
13044
13168
|
if (settings[iframeId]) {
|
13045
|
-
if (settings[iframeId].sizeHeight) processDimension(
|
13046
|
-
if (settings[iframeId].sizeWidth) processDimension(
|
13169
|
+
if (settings[iframeId].sizeHeight) processDimension('height');
|
13170
|
+
if (settings[iframeId].sizeWidth) processDimension('width');
|
13047
13171
|
}
|
13048
13172
|
}
|
13049
13173
|
function syncResize(func, messageData, doNotSync) {
|
13050
13174
|
/* istanbul ignore if */ // Not testable in PhantomJS
|
13051
13175
|
if (doNotSync !== messageData.type && requestAnimationFrame && // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame
|
13052
13176
|
!window.jasmine) {
|
13053
|
-
log(messageData.id,
|
13177
|
+
log(messageData.id, 'Requesting animation frame');
|
13054
13178
|
requestAnimationFrame(func);
|
13055
13179
|
} else func();
|
13056
13180
|
}
|
13057
13181
|
function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {
|
13058
13182
|
function postMessageToIFrame() {
|
13059
13183
|
var target = settings[id] && settings[id].targetOrigin;
|
13060
|
-
log(id,
|
13184
|
+
log(id, '[' + calleeMsg + '] Sending msg to iframe[' + id + '] (' + msg + ') targetOrigin: ' + target);
|
13061
13185
|
iframe.contentWindow.postMessage(msgId + msg, target);
|
13062
13186
|
}
|
13063
13187
|
function iFrameNotFound() {
|
13064
|
-
warn(id,
|
13188
|
+
warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found');
|
13065
13189
|
}
|
13066
13190
|
function chkAndSend() {
|
13067
|
-
if (iframe &&
|
13191
|
+
if (iframe && 'contentWindow' in iframe && null !== iframe.contentWindow) // Null test for PhantomJS
|
13068
13192
|
postMessageToIFrame();
|
13069
13193
|
else iFrameNotFound();
|
13070
13194
|
}
|
@@ -13072,7 +13196,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13072
13196
|
function warning() {
|
13073
13197
|
if (settings[id] && !settings[id].loaded && !errorShown) {
|
13074
13198
|
errorShown = true;
|
13075
|
-
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.');
|
13076
13200
|
}
|
13077
13201
|
}
|
13078
13202
|
if (!!noResponseWarning && settings[id] && !!settings[id].warningTimeout) settings[id].msgTimeout = setTimeout(warning, settings[id].warningTimeout);
|
@@ -13085,29 +13209,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13085
13209
|
}
|
13086
13210
|
}
|
13087
13211
|
function createOutgoingMsg(iframeId) {
|
13088
|
-
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;
|
13089
13213
|
}
|
13090
13214
|
function isNumber(value) {
|
13091
|
-
return typeof value ===
|
13215
|
+
return typeof value === 'number';
|
13092
13216
|
}
|
13093
13217
|
function setupIFrame(iframe, options) {
|
13094
13218
|
function setLimits() {
|
13095
13219
|
function addStyle(style) {
|
13096
13220
|
var styleValue = settings[iframeId][style];
|
13097
13221
|
if (Infinity !== styleValue && 0 !== styleValue) {
|
13098
|
-
iframe.style[style] = isNumber(styleValue) ? styleValue +
|
13099
|
-
log(iframeId,
|
13222
|
+
iframe.style[style] = isNumber(styleValue) ? styleValue + 'px' : styleValue;
|
13223
|
+
log(iframeId, 'Set ' + style + ' = ' + iframe.style[style]);
|
13100
13224
|
}
|
13101
13225
|
}
|
13102
13226
|
function chkMinMax(dimension) {
|
13103
|
-
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);
|
13104
13228
|
}
|
13105
|
-
chkMinMax(
|
13106
|
-
chkMinMax(
|
13107
|
-
addStyle(
|
13108
|
-
addStyle(
|
13109
|
-
addStyle(
|
13110
|
-
addStyle(
|
13229
|
+
chkMinMax('Height');
|
13230
|
+
chkMinMax('Width');
|
13231
|
+
addStyle('maxHeight');
|
13232
|
+
addStyle('minHeight');
|
13233
|
+
addStyle('maxWidth');
|
13234
|
+
addStyle('minWidth');
|
13111
13235
|
}
|
13112
13236
|
function newId() {
|
13113
13237
|
var id = options && options.id || defaults.id + count++;
|
@@ -13115,38 +13239,38 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13115
13239
|
return id;
|
13116
13240
|
}
|
13117
13241
|
function ensureHasId(iframeId) {
|
13118
|
-
if (typeof iframeId !==
|
13119
|
-
if (
|
13242
|
+
if (typeof iframeId !== 'string') throw new TypeError('Invaild id for iFrame. Expected String');
|
13243
|
+
if ('' === iframeId) {
|
13120
13244
|
// eslint-disable-next-line no-multi-assign
|
13121
13245
|
iframe.id = iframeId = newId();
|
13122
13246
|
logEnabled = (options || {}).log;
|
13123
|
-
log(iframeId,
|
13247
|
+
log(iframeId, 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')');
|
13124
13248
|
}
|
13125
13249
|
return iframeId;
|
13126
13250
|
}
|
13127
13251
|
function setScrolling() {
|
13128
|
-
log(iframeId,
|
13129
|
-
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';
|
13130
13254
|
switch(settings[iframeId] && settings[iframeId].scrolling){
|
13131
|
-
case
|
13255
|
+
case 'omit':
|
13132
13256
|
break;
|
13133
13257
|
case true:
|
13134
|
-
iframe.scrolling =
|
13258
|
+
iframe.scrolling = 'yes';
|
13135
13259
|
break;
|
13136
13260
|
case false:
|
13137
|
-
iframe.scrolling =
|
13261
|
+
iframe.scrolling = 'no';
|
13138
13262
|
break;
|
13139
13263
|
default:
|
13140
|
-
iframe.scrolling = settings[iframeId] ? settings[iframeId].scrolling :
|
13264
|
+
iframe.scrolling = settings[iframeId] ? settings[iframeId].scrolling : 'no';
|
13141
13265
|
}
|
13142
13266
|
}
|
13143
13267
|
// The V1 iFrame script expects an int, where as in V2 expects a CSS
|
13144
13268
|
// string value such as '1px 3em', so if we have an int for V2, set V1=V2
|
13145
13269
|
// and then convert V2 to a string PX value.
|
13146
13270
|
function setupBodyMarginValues() {
|
13147
|
-
if (
|
13271
|
+
if ('number' === typeof (settings[iframeId] && settings[iframeId].bodyMargin) || '0' === (settings[iframeId] && settings[iframeId].bodyMargin)) {
|
13148
13272
|
settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin;
|
13149
|
-
settings[iframeId].bodyMargin =
|
13273
|
+
settings[iframeId].bodyMargin = '' + settings[iframeId].bodyMargin + 'px';
|
13150
13274
|
}
|
13151
13275
|
}
|
13152
13276
|
function checkReset() {
|
@@ -13158,20 +13282,20 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13158
13282
|
iframe: iframe,
|
13159
13283
|
height: 0,
|
13160
13284
|
width: 0,
|
13161
|
-
type:
|
13285
|
+
type: 'init'
|
13162
13286
|
});
|
13163
13287
|
}
|
13164
13288
|
function setupIFrameObject() {
|
13165
13289
|
if (settings[iframeId]) settings[iframeId].iframe.iFrameResizer = {
|
13166
13290
|
close: closeIFrame.bind(null, settings[iframeId].iframe),
|
13167
13291
|
removeListeners: removeIframeListeners.bind(null, settings[iframeId].iframe),
|
13168
|
-
resize: trigger.bind(null,
|
13292
|
+
resize: trigger.bind(null, 'Window resize', 'resize', settings[iframeId].iframe),
|
13169
13293
|
moveToAnchor: function(anchor) {
|
13170
|
-
trigger(
|
13294
|
+
trigger('Move to anchor', 'moveToAnchor:' + anchor, settings[iframeId].iframe, iframeId);
|
13171
13295
|
},
|
13172
13296
|
sendMessage: function(message) {
|
13173
13297
|
message = JSON.stringify(message);
|
13174
|
-
trigger(
|
13298
|
+
trigger('Send Message', 'message:' + message, settings[iframeId].iframe, iframeId);
|
13175
13299
|
}
|
13176
13300
|
};
|
13177
13301
|
}
|
@@ -13180,7 +13304,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13180
13304
|
// event listener also catches the page changing in the iFrame.
|
13181
13305
|
function init(msg) {
|
13182
13306
|
function iFrameLoaded() {
|
13183
|
-
trigger(
|
13307
|
+
trigger('iFrame.onload', msg, iframe, undefined, true);
|
13184
13308
|
checkReset();
|
13185
13309
|
}
|
13186
13310
|
function createDestroyObserver(MutationObserver) {
|
@@ -13200,23 +13324,23 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13200
13324
|
}
|
13201
13325
|
var MutationObserver = getMutationObserver();
|
13202
13326
|
if (MutationObserver) createDestroyObserver(MutationObserver);
|
13203
|
-
addEventListener(iframe,
|
13204
|
-
trigger(
|
13327
|
+
addEventListener(iframe, 'load', iFrameLoaded);
|
13328
|
+
trigger('init', msg, iframe, undefined, true);
|
13205
13329
|
}
|
13206
13330
|
function checkOptions(options) {
|
13207
|
-
if (
|
13331
|
+
if ('object' !== typeof options) throw new TypeError('Options is not an object');
|
13208
13332
|
}
|
13209
13333
|
function copyOptions(options) {
|
13210
13334
|
// eslint-disable-next-line no-restricted-syntax
|
13211
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];
|
13212
13336
|
}
|
13213
13337
|
function getTargetOrigin(remoteHost) {
|
13214
|
-
return
|
13338
|
+
return '' === remoteHost || null !== remoteHost.match(/^(about:blank|javascript:|file:\/\/)/) ? '*' : remoteHost;
|
13215
13339
|
}
|
13216
13340
|
function depricate(key) {
|
13217
|
-
var splitName = key.split(
|
13341
|
+
var splitName = key.split('Callback');
|
13218
13342
|
if (splitName.length === 2) {
|
13219
|
-
var name =
|
13343
|
+
var name = 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1);
|
13220
13344
|
this[name] = this[key];
|
13221
13345
|
delete this[key];
|
13222
13346
|
warn(iframeId, "Deprecated: '" + key + "' has been renamed '" + name + "'. The old method will be removed in the next major version.");
|
@@ -13228,17 +13352,17 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13228
13352
|
;
|
13229
13353
|
settings[iframeId].iframe = iframe;
|
13230
13354
|
settings[iframeId].firstRun = true;
|
13231
|
-
settings[iframeId].remoteHost = iframe.src && iframe.src.split(
|
13355
|
+
settings[iframeId].remoteHost = iframe.src && iframe.src.split('/').slice(0, 3).join('/');
|
13232
13356
|
checkOptions(options);
|
13233
13357
|
Object.keys(options).forEach(depricate, options);
|
13234
13358
|
copyOptions(options);
|
13235
|
-
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) : '*';
|
13236
13360
|
}
|
13237
13361
|
function beenHere() {
|
13238
|
-
return iframeId in settings &&
|
13362
|
+
return iframeId in settings && 'iFrameResizer' in iframe;
|
13239
13363
|
}
|
13240
13364
|
var iframeId = ensureHasId(iframe.id);
|
13241
|
-
if (beenHere()) warn(iframeId,
|
13365
|
+
if (beenHere()) warn(iframeId, 'Ignored iFrame, already setup.');
|
13242
13366
|
else {
|
13243
13367
|
processOptions(options);
|
13244
13368
|
setScrolling();
|
@@ -13266,23 +13390,23 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13266
13390
|
function checkIFrames() {
|
13267
13391
|
function checkIFrame(settingId) {
|
13268
13392
|
function chkDimension(dimension) {
|
13269
|
-
return
|
13393
|
+
return '0px' === (settings[settingId] && settings[settingId].iframe.style[dimension]);
|
13270
13394
|
}
|
13271
13395
|
function isVisible(el) {
|
13272
13396
|
return null !== el.offsetParent;
|
13273
13397
|
}
|
13274
|
-
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);
|
13275
13399
|
}
|
13276
13400
|
Object.keys(settings).forEach(function(key) {
|
13277
13401
|
checkIFrame(key);
|
13278
13402
|
});
|
13279
13403
|
}
|
13280
13404
|
function mutationObserved(mutations) {
|
13281
|
-
log(
|
13405
|
+
log('window', 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type);
|
13282
13406
|
debouce(checkIFrames, 16);
|
13283
13407
|
}
|
13284
13408
|
function createMutationObserver() {
|
13285
|
-
var target = document.querySelector(
|
13409
|
+
var target = document.querySelector('body'), config = {
|
13286
13410
|
attributes: true,
|
13287
13411
|
attributeOldValue: false,
|
13288
13412
|
characterData: true,
|
@@ -13297,42 +13421,42 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13297
13421
|
}
|
13298
13422
|
function resizeIFrames(event) {
|
13299
13423
|
function resize() {
|
13300
|
-
sendTriggerMsg(
|
13424
|
+
sendTriggerMsg('Window ' + event, 'resize');
|
13301
13425
|
}
|
13302
|
-
log(
|
13426
|
+
log('window', 'Trigger event: ' + event);
|
13303
13427
|
debouce(resize, 16);
|
13304
13428
|
}
|
13305
13429
|
// Not testable in PhantomJS
|
13306
13430
|
/* istanbul ignore next */ function tabVisible() {
|
13307
13431
|
function resize() {
|
13308
|
-
sendTriggerMsg(
|
13432
|
+
sendTriggerMsg('Tab Visible', 'resize');
|
13309
13433
|
}
|
13310
|
-
if (
|
13311
|
-
log(
|
13434
|
+
if ('hidden' !== document.visibilityState) {
|
13435
|
+
log('document', 'Trigger event: Visibility change');
|
13312
13436
|
debouce(resize, 16);
|
13313
13437
|
}
|
13314
13438
|
}
|
13315
13439
|
function sendTriggerMsg(eventName, event) {
|
13316
13440
|
function isIFrameResizeEnabled(iframeId) {
|
13317
|
-
return settings[iframeId] &&
|
13441
|
+
return settings[iframeId] && 'parent' === settings[iframeId].resizeFrom && settings[iframeId].autoResize && !settings[iframeId].firstRun;
|
13318
13442
|
}
|
13319
13443
|
Object.keys(settings).forEach(function(iframeId) {
|
13320
13444
|
if (isIFrameResizeEnabled(iframeId)) trigger(eventName, event, settings[iframeId].iframe, iframeId);
|
13321
13445
|
});
|
13322
13446
|
}
|
13323
13447
|
function setupEventListeners() {
|
13324
|
-
addEventListener(window,
|
13325
|
-
addEventListener(window,
|
13326
|
-
resizeIFrames(
|
13448
|
+
addEventListener(window, 'message', iFrameListener);
|
13449
|
+
addEventListener(window, 'resize', function() {
|
13450
|
+
resizeIFrames('resize');
|
13327
13451
|
});
|
13328
|
-
addEventListener(document,
|
13329
|
-
addEventListener(document,
|
13452
|
+
addEventListener(document, 'visibilitychange', tabVisible);
|
13453
|
+
addEventListener(document, '-webkit-visibilitychange', tabVisible);
|
13330
13454
|
}
|
13331
13455
|
function factory() {
|
13332
13456
|
function init(options, element) {
|
13333
13457
|
function chkType() {
|
13334
|
-
if (!element.tagName) throw new TypeError(
|
13335
|
-
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 + '>');
|
13336
13460
|
}
|
13337
13461
|
if (element) {
|
13338
13462
|
chkType();
|
@@ -13341,7 +13465,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13341
13465
|
}
|
13342
13466
|
}
|
13343
13467
|
function warnDeprecatedOptions(options) {
|
13344
|
-
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');
|
13345
13469
|
}
|
13346
13470
|
var iFrames;
|
13347
13471
|
setupRequestAnimationFrame();
|
@@ -13351,31 +13475,31 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13351
13475
|
;
|
13352
13476
|
warnDeprecatedOptions(options);
|
13353
13477
|
switch(typeof target){
|
13354
|
-
case
|
13355
|
-
case
|
13356
|
-
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));
|
13357
13481
|
break;
|
13358
|
-
case
|
13482
|
+
case 'object':
|
13359
13483
|
init(options, target);
|
13360
13484
|
break;
|
13361
13485
|
default:
|
13362
|
-
throw new TypeError(
|
13486
|
+
throw new TypeError('Unexpected data type (' + typeof target + ')');
|
13363
13487
|
}
|
13364
13488
|
return iFrames;
|
13365
13489
|
};
|
13366
13490
|
}
|
13367
13491
|
function createJQueryPublicMethod($) {
|
13368
|
-
if (!$.fn) info(
|
13492
|
+
if (!$.fn) info('', 'Unable to bind to jQuery, it is not fully loaded.');
|
13369
13493
|
else if (!$.fn.iFrameResize) $.fn.iFrameResize = function $iFrameResizeF(options) {
|
13370
13494
|
function init(index, element) {
|
13371
13495
|
setupIFrame(element, options);
|
13372
13496
|
}
|
13373
|
-
return this.filter(
|
13497
|
+
return this.filter('iframe').each(init).end();
|
13374
13498
|
};
|
13375
13499
|
}
|
13376
13500
|
if (window.jQuery !== undefined) createJQueryPublicMethod(window.jQuery);
|
13377
|
-
if (typeof define ===
|
13378
|
-
else if (typeof $ef5e88eaa61efd95$exports ===
|
13501
|
+
if (typeof define === 'function' && define.amd) define([], factory);
|
13502
|
+
else if (typeof $ef5e88eaa61efd95$exports === 'object') // Node for browserfy
|
13379
13503
|
$ef5e88eaa61efd95$exports = factory();
|
13380
13504
|
window.iFrameResize = window.iFrameResize || factory();
|
13381
13505
|
})();
|
@@ -13428,6 +13552,38 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) {
|
|
13428
13552
|
}
|
13429
13553
|
|
13430
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
|
+
|
13431
13587
|
var $9b24cbeb3a465447$exports = {};
|
13432
13588
|
|
13433
13589
|
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
|
@@ -13485,169 +13641,19 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
|
|
13485
13641
|
}
|
13486
13642
|
|
13487
13643
|
|
13488
|
-
|
13489
|
-
|
13490
|
-
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
13491
|
-
|
13492
|
-
$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
|
13493
|
-
var $cdfeaa1e0e8d642c$exports = {};
|
13494
|
-
(function(global, factory) {
|
13495
|
-
$cdfeaa1e0e8d642c$exports = factory();
|
13496
|
-
})($cdfeaa1e0e8d642c$exports, function() {
|
13497
|
-
"use strict";
|
13498
|
-
/* eslint-disable no-var */ function assign(target) {
|
13499
|
-
for(var i = 1; i < arguments.length; i++){
|
13500
|
-
var source = arguments[i];
|
13501
|
-
for(var key in source)target[key] = source[key];
|
13502
|
-
}
|
13503
|
-
return target;
|
13504
|
-
}
|
13505
|
-
/* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
|
13506
|
-
read: function(value) {
|
13507
|
-
if (value[0] === '"') value = value.slice(1, -1);
|
13508
|
-
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
13509
|
-
},
|
13510
|
-
write: function(value) {
|
13511
|
-
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
13512
|
-
}
|
13513
|
-
};
|
13514
|
-
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
13515
|
-
function set(name, value, attributes) {
|
13516
|
-
if (typeof document === "undefined") return;
|
13517
|
-
attributes = assign({}, defaultAttributes, attributes);
|
13518
|
-
if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
13519
|
-
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
13520
|
-
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
13521
|
-
var stringifiedAttributes = "";
|
13522
|
-
for(var attributeName in attributes){
|
13523
|
-
if (!attributes[attributeName]) continue;
|
13524
|
-
stringifiedAttributes += "; " + attributeName;
|
13525
|
-
if (attributes[attributeName] === true) continue;
|
13526
|
-
// Considers RFC 6265 section 5.2:
|
13527
|
-
// ...
|
13528
|
-
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
13529
|
-
// character:
|
13530
|
-
// Consume the characters of the unparsed-attributes up to,
|
13531
|
-
// not including, the first %x3B (";") character.
|
13532
|
-
// ...
|
13533
|
-
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
13534
|
-
}
|
13535
|
-
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
|
13536
|
-
}
|
13537
|
-
function get(name) {
|
13538
|
-
if (typeof document === "undefined" || arguments.length && !name) return;
|
13539
|
-
// To prevent the for loop in the first place assign an empty array
|
13540
|
-
// in case there are no cookies at all.
|
13541
|
-
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
13542
|
-
var jar = {};
|
13543
|
-
for(var i = 0; i < cookies.length; i++){
|
13544
|
-
var parts = cookies[i].split("=");
|
13545
|
-
var value = parts.slice(1).join("=");
|
13546
|
-
try {
|
13547
|
-
var found = decodeURIComponent(parts[0]);
|
13548
|
-
jar[found] = converter.read(value, found);
|
13549
|
-
if (name === found) break;
|
13550
|
-
} catch (e) {}
|
13551
|
-
}
|
13552
|
-
return name ? jar[name] : jar;
|
13553
|
-
}
|
13554
|
-
return Object.create({
|
13555
|
-
set: set,
|
13556
|
-
get: get,
|
13557
|
-
remove: function(name, attributes) {
|
13558
|
-
set(name, "", assign({}, attributes, {
|
13559
|
-
expires: -1
|
13560
|
-
}));
|
13561
|
-
},
|
13562
|
-
withAttributes: function(attributes) {
|
13563
|
-
return init(this.converter, assign({}, this.attributes, attributes));
|
13564
|
-
},
|
13565
|
-
withConverter: function(converter) {
|
13566
|
-
return init(assign({}, this.converter, converter), this.attributes);
|
13567
|
-
}
|
13568
|
-
}, {
|
13569
|
-
attributes: {
|
13570
|
-
value: Object.freeze(defaultAttributes)
|
13571
|
-
},
|
13572
|
-
converter: {
|
13573
|
-
value: Object.freeze(converter)
|
13574
|
-
}
|
13575
|
-
});
|
13576
|
-
}
|
13577
|
-
var api = init(defaultConverter, {
|
13578
|
-
path: "/"
|
13579
|
-
});
|
13580
|
-
/* eslint-enable no-var */ return api;
|
13581
|
-
});
|
13582
|
-
|
13583
|
-
|
13584
|
-
|
13585
|
-
function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
|
13586
|
-
return {
|
13587
|
-
name: name,
|
13588
|
-
value: value,
|
13589
|
-
init () {
|
13590
|
-
this.$watch("value", ()=>this.update());
|
13591
|
-
},
|
13592
|
-
update () {
|
13593
|
-
(0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
|
13594
|
-
const searchParams = new URLSearchParams(window.location.search);
|
13595
|
-
const display = searchParams.get("_display");
|
13596
|
-
const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
|
13597
|
-
displayParams[this.name] = this.value;
|
13598
|
-
searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
|
13599
|
-
const path = location.href.replace(location.search, "");
|
13600
|
-
this.navigateTo(`${path}?${searchParams.toString()}`);
|
13601
|
-
}
|
13602
|
-
};
|
13603
|
-
}
|
13604
|
-
|
13605
|
-
|
13606
|
-
var $1a7a7298eec5b755$exports = {};
|
13607
|
-
|
13608
|
-
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13609
|
-
|
13610
|
-
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13611
|
-
|
13612
|
-
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13613
|
-
return {
|
13614
|
-
narrow: false,
|
13615
|
-
init () {
|
13616
|
-
(0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13617
|
-
this.narrow = width < 500;
|
13618
|
-
});
|
13619
|
-
}
|
13620
|
-
};
|
13621
|
-
}
|
13622
|
-
|
13623
|
-
|
13624
|
-
var $e773f8ef556b41ff$exports = {};
|
13625
|
-
|
13626
|
-
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13627
|
-
|
13628
|
-
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13629
|
-
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13630
|
-
return {
|
13631
|
-
get isNarrowLayout () {
|
13632
|
-
return this.narrow || false;
|
13633
|
-
}
|
13634
|
-
};
|
13635
|
-
}
|
13636
|
-
|
13637
|
-
|
13638
|
-
$5e362abaad0ffde8$exports = {
|
13639
|
-
"embed": {
|
13640
|
-
"inspector": $c299e36fa9e271bc$exports
|
13641
|
-
},
|
13642
|
-
"nav": {
|
13643
|
-
"item": $9b24cbeb3a465447$exports
|
13644
|
-
},
|
13644
|
+
$5d1c9207cb730903$exports = {
|
13645
13645
|
"display_options": {
|
13646
13646
|
"field": $6a9b69d9cc7f810f$exports
|
13647
13647
|
},
|
13648
|
+
"embed": {
|
13649
|
+
"inspector": $c299e36fa9e271bc$exports
|
13650
|
+
},
|
13648
13651
|
"params": {
|
13649
13652
|
"editor": $1a7a7298eec5b755$exports,
|
13650
13653
|
"field": $e773f8ef556b41ff$exports
|
13654
|
+
},
|
13655
|
+
"nav": {
|
13656
|
+
"item": $9b24cbeb3a465447$exports
|
13651
13657
|
}
|
13652
13658
|
};
|
13653
13659
|
|
@@ -13715,8 +13721,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13715
13721
|
// Components
|
13716
13722
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13717
13723
|
[
|
13718
|
-
$
|
13719
|
-
$
|
13724
|
+
$c9dfaeb25bf110ce$exports,
|
13725
|
+
$5d1c9207cb730903$exports,
|
13720
13726
|
$d56e5cced44001d2$exports
|
13721
13727
|
].forEach((scripts)=>{
|
13722
13728
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|