lookbook 2.3.4 → 2.3.13
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/README.md +2 -2
- data/app/components/lookbook/base_component.rb +1 -0
- data/app/components/lookbook/button/component.html.erb +11 -12
- data/app/components/lookbook/button/component.js +19 -24
- data/app/components/lookbook/button/component.rb +4 -0
- data/app/components/lookbook/button_group/component.html.erb +1 -1
- data/app/components/lookbook/code/component.html.erb +1 -1
- data/app/components/lookbook/copy_button/component.html.erb +1 -1
- data/app/components/lookbook/debug_menu/component.html.erb +1 -1
- data/app/components/lookbook/dimensions_display/component.html.erb +2 -2
- data/app/components/lookbook/display_options/editor/component.html.erb +1 -1
- data/app/components/lookbook/display_options/field/component.html.erb +1 -1
- data/app/components/lookbook/embed/component.html.erb +1 -1
- data/app/components/lookbook/file_source/component.html.erb +1 -1
- data/app/components/lookbook/filter/component.html.erb +2 -2
- data/app/components/lookbook/icon_button/component.html.erb +2 -2
- data/app/components/lookbook/inspector_panel/component.html.erb +1 -1
- data/app/components/lookbook/logo/component.html.erb +1 -1
- data/app/components/lookbook/message/component.html.erb +1 -1
- data/app/components/lookbook/nav/component.html.erb +1 -1
- data/app/components/lookbook/nav/directory/component.html.erb +1 -1
- data/app/components/lookbook/nav/entity/component.html.erb +1 -1
- data/app/components/lookbook/page_tabs/component.html.erb +1 -1
- data/app/components/lookbook/params/editor/component.html.erb +1 -1
- data/app/components/lookbook/params/editor/component.rb +1 -1
- data/app/components/lookbook/params/field/component.rb +1 -1
- data/app/components/lookbook/prose/component.html.erb +1 -1
- data/app/components/lookbook/split_layout/component.html.erb +1 -1
- data/app/components/lookbook/tab_panels/component.html.erb +1 -1
- data/app/components/lookbook/tab_panels/component.rb +1 -1
- data/app/components/lookbook/tab_panels/panel/component.html.erb +1 -1
- data/app/components/lookbook/tabs/component.html.erb +1 -1
- data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +1 -1
- data/app/components/lookbook/tabs/tab/component.html.erb +1 -1
- data/app/components/lookbook/text_button/component.html.erb +2 -2
- data/app/components/lookbook/toolbar/component.html.erb +1 -1
- data/app/controllers/lookbook/application_controller.rb +17 -0
- data/app/controllers/lookbook/previews_controller.rb +11 -7
- data/app/views/layouts/lookbook/application.html.erb +3 -3
- data/app/views/layouts/lookbook/embed.html.erb +1 -1
- data/app/views/layouts/lookbook/skeleton.html.erb +2 -0
- data/app/views/lookbook/embeds/show.html.erb +1 -1
- data/app/views/lookbook/errors/default.html.erb +1 -1
- data/app/views/lookbook/errors/not_found.html.erb +1 -1
- data/app/views/lookbook/index.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_color.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_range.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_select.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_text.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_text_two_step.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_textarea.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_notes.html.erb +2 -2
- data/app/views/lookbook/inspector/panels/_output.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_preview.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_source.html.erb +1 -1
- data/app/views/lookbook/inspector/show.html.erb +4 -4
- data/app/views/lookbook/pages/show.html.erb +1 -1
- data/app/views/lookbook/partials/_iframe_content_scripts.html.erb +1 -1
- data/app/views/lookbook/partials/_user_styles.html.erb +1 -1
- data/app/views/lookbook/previews/group.html.erb +1 -1
- data/app/views/lookbook/previews/preview.html.erb +5 -1
- data/app/views/lookbook/previews/show.html.erb +1 -1
- data/config/app.yml +1 -1
- data/lib/lookbook/engine.rb +42 -18
- data/lib/lookbook/preview_controller_actions.rb +7 -2
- data/lib/lookbook/preview_parser.rb +2 -4
- data/lib/lookbook/services/markdown_renderer.rb +12 -4
- data/lib/lookbook/stores/config_store.rb +4 -0
- data/lib/lookbook/support/errors/config_error.rb +1 -1
- data/lib/lookbook/support/errors/parser_error.rb +1 -1
- data/lib/lookbook/support/errors/preview_template_error.rb +1 -1
- data/lib/lookbook/support/errors/template_error.rb +1 -1
- data/lib/lookbook/support/store.rb +1 -1
- data/lib/lookbook/support/utils/utils.rb +1 -1
- data/lib/lookbook/tags/param_tag.rb +4 -1
- data/lib/lookbook/tags/yard_tag.rb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +131 -136
- 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 +205 -196
- data/public/lookbook-assets/js/iframe.js.map +1 -1
- data/public/lookbook-assets/js/index.js +1171 -1025
- 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 +277 -296
- metadata +4 -385
- 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
@@ -94,104 +94,20 @@ function $caa9439642c6336c$var$elementBoundEffect(el) {
|
|
94
94
|
}
|
95
95
|
];
|
96
96
|
}
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
}
|
107
|
-
// packages/alpinejs/src/utils/walk.js
|
108
|
-
function $caa9439642c6336c$var$walk(el, callback) {
|
109
|
-
if (typeof ShadowRoot === "function" && el instanceof ShadowRoot) {
|
110
|
-
Array.from(el.children).forEach((el2)=>$caa9439642c6336c$var$walk(el2, callback));
|
111
|
-
return;
|
112
|
-
}
|
113
|
-
let skip = false;
|
114
|
-
callback(el, ()=>skip = true);
|
115
|
-
if (skip) return;
|
116
|
-
let node = el.firstElementChild;
|
117
|
-
while(node){
|
118
|
-
$caa9439642c6336c$var$walk(node, callback, false);
|
119
|
-
node = node.nextElementSibling;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
// packages/alpinejs/src/utils/warn.js
|
123
|
-
function $caa9439642c6336c$var$warn(message, ...args) {
|
124
|
-
console.warn(`Alpine Warning: ${message}`, ...args);
|
125
|
-
}
|
126
|
-
// packages/alpinejs/src/lifecycle.js
|
127
|
-
var $caa9439642c6336c$var$started = false;
|
128
|
-
function $caa9439642c6336c$var$start() {
|
129
|
-
if ($caa9439642c6336c$var$started) $caa9439642c6336c$var$warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.");
|
130
|
-
$caa9439642c6336c$var$started = true;
|
131
|
-
if (!document.body) $caa9439642c6336c$var$warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?");
|
132
|
-
$caa9439642c6336c$var$dispatch(document, "alpine:init");
|
133
|
-
$caa9439642c6336c$var$dispatch(document, "alpine:initializing");
|
134
|
-
$caa9439642c6336c$var$startObservingMutations();
|
135
|
-
$caa9439642c6336c$var$onElAdded((el)=>$caa9439642c6336c$var$initTree(el, $caa9439642c6336c$var$walk));
|
136
|
-
$caa9439642c6336c$var$onElRemoved((el)=>$caa9439642c6336c$var$destroyTree(el));
|
137
|
-
$caa9439642c6336c$var$onAttributesAdded((el, attrs)=>{
|
138
|
-
$caa9439642c6336c$var$directives(el, attrs).forEach((handle)=>handle());
|
139
|
-
});
|
140
|
-
let outNestedComponents = (el)=>!$caa9439642c6336c$var$closestRoot(el.parentElement, true);
|
141
|
-
Array.from(document.querySelectorAll($caa9439642c6336c$var$allSelectors().join(","))).filter(outNestedComponents).forEach((el)=>{
|
142
|
-
$caa9439642c6336c$var$initTree(el);
|
143
|
-
});
|
144
|
-
$caa9439642c6336c$var$dispatch(document, "alpine:initialized");
|
145
|
-
}
|
146
|
-
var $caa9439642c6336c$var$rootSelectorCallbacks = [];
|
147
|
-
var $caa9439642c6336c$var$initSelectorCallbacks = [];
|
148
|
-
function $caa9439642c6336c$var$rootSelectors() {
|
149
|
-
return $caa9439642c6336c$var$rootSelectorCallbacks.map((fn)=>fn());
|
150
|
-
}
|
151
|
-
function $caa9439642c6336c$var$allSelectors() {
|
152
|
-
return $caa9439642c6336c$var$rootSelectorCallbacks.concat($caa9439642c6336c$var$initSelectorCallbacks).map((fn)=>fn());
|
153
|
-
}
|
154
|
-
function $caa9439642c6336c$var$addRootSelector(selectorCallback) {
|
155
|
-
$caa9439642c6336c$var$rootSelectorCallbacks.push(selectorCallback);
|
156
|
-
}
|
157
|
-
function $caa9439642c6336c$var$addInitSelector(selectorCallback) {
|
158
|
-
$caa9439642c6336c$var$initSelectorCallbacks.push(selectorCallback);
|
159
|
-
}
|
160
|
-
function $caa9439642c6336c$var$closestRoot(el, includeInitSelectors = false) {
|
161
|
-
return $caa9439642c6336c$var$findClosest(el, (element)=>{
|
162
|
-
const selectors = includeInitSelectors ? $caa9439642c6336c$var$allSelectors() : $caa9439642c6336c$var$rootSelectors();
|
163
|
-
if (selectors.some((selector)=>element.matches(selector))) return true;
|
164
|
-
});
|
165
|
-
}
|
166
|
-
function $caa9439642c6336c$var$findClosest(el, callback) {
|
167
|
-
if (!el) return;
|
168
|
-
if (callback(el)) return el;
|
169
|
-
if (el._x_teleportBack) el = el._x_teleportBack;
|
170
|
-
if (!el.parentElement) return;
|
171
|
-
return $caa9439642c6336c$var$findClosest(el.parentElement, callback);
|
172
|
-
}
|
173
|
-
function $caa9439642c6336c$var$isRoot(el) {
|
174
|
-
return $caa9439642c6336c$var$rootSelectors().some((selector)=>el.matches(selector));
|
175
|
-
}
|
176
|
-
var $caa9439642c6336c$var$initInterceptors = [];
|
177
|
-
function $caa9439642c6336c$var$interceptInit(callback) {
|
178
|
-
$caa9439642c6336c$var$initInterceptors.push(callback);
|
179
|
-
}
|
180
|
-
function $caa9439642c6336c$var$initTree(el, walker = $caa9439642c6336c$var$walk, intercept = ()=>{}) {
|
181
|
-
$caa9439642c6336c$var$deferHandlingDirectives(()=>{
|
182
|
-
walker(el, (el2, skip)=>{
|
183
|
-
intercept(el2, skip);
|
184
|
-
$caa9439642c6336c$var$initInterceptors.forEach((i)=>i(el2, skip));
|
185
|
-
$caa9439642c6336c$var$directives(el2, el2.attributes).forEach((handle)=>handle());
|
186
|
-
el2._x_ignore && skip();
|
97
|
+
function $caa9439642c6336c$var$watch(getter, callback) {
|
98
|
+
let firstTime = true;
|
99
|
+
let oldValue;
|
100
|
+
let effectReference = $caa9439642c6336c$var$effect(()=>{
|
101
|
+
let value = getter();
|
102
|
+
JSON.stringify(value);
|
103
|
+
if (!firstTime) queueMicrotask(()=>{
|
104
|
+
callback(value, oldValue);
|
105
|
+
oldValue = value;
|
187
106
|
});
|
107
|
+
else oldValue = value;
|
108
|
+
firstTime = false;
|
188
109
|
});
|
189
|
-
|
190
|
-
function $caa9439642c6336c$var$destroyTree(root) {
|
191
|
-
$caa9439642c6336c$var$walk(root, (el)=>{
|
192
|
-
$caa9439642c6336c$var$cleanupAttributes(el);
|
193
|
-
$caa9439642c6336c$var$cleanupElement(el);
|
194
|
-
});
|
110
|
+
return ()=>$caa9439642c6336c$var$release(effectReference);
|
195
111
|
}
|
196
112
|
// packages/alpinejs/src/mutation.js
|
197
113
|
var $caa9439642c6336c$var$onAttributeAddeds = [];
|
@@ -227,7 +143,8 @@ function $caa9439642c6336c$var$cleanupAttributes(el, names) {
|
|
227
143
|
});
|
228
144
|
}
|
229
145
|
function $caa9439642c6336c$var$cleanupElement(el) {
|
230
|
-
|
146
|
+
el._x_effects?.forEach($caa9439642c6336c$var$dequeueJob);
|
147
|
+
while(el._x_cleanups?.length)el._x_cleanups.pop()();
|
231
148
|
}
|
232
149
|
var $caa9439642c6336c$var$observer = new MutationObserver($caa9439642c6336c$var$onMutate);
|
233
150
|
var $caa9439642c6336c$var$currentlyObserving = false;
|
@@ -245,21 +162,14 @@ function $caa9439642c6336c$var$stopObservingMutations() {
|
|
245
162
|
$caa9439642c6336c$var$observer.disconnect();
|
246
163
|
$caa9439642c6336c$var$currentlyObserving = false;
|
247
164
|
}
|
248
|
-
var $caa9439642c6336c$var$
|
249
|
-
var $caa9439642c6336c$var$willProcessRecordQueue = false;
|
165
|
+
var $caa9439642c6336c$var$queuedMutations = [];
|
250
166
|
function $caa9439642c6336c$var$flushObserver() {
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
});
|
258
|
-
}
|
259
|
-
}
|
260
|
-
function $caa9439642c6336c$var$processRecordQueue() {
|
261
|
-
$caa9439642c6336c$var$onMutate($caa9439642c6336c$var$recordQueue);
|
262
|
-
$caa9439642c6336c$var$recordQueue.length = 0;
|
167
|
+
let records = $caa9439642c6336c$var$observer.takeRecords();
|
168
|
+
$caa9439642c6336c$var$queuedMutations.push(()=>records.length > 0 && $caa9439642c6336c$var$onMutate(records));
|
169
|
+
let queueLengthWhenTriggered = $caa9439642c6336c$var$queuedMutations.length;
|
170
|
+
queueMicrotask(()=>{
|
171
|
+
if ($caa9439642c6336c$var$queuedMutations.length === queueLengthWhenTriggered) while($caa9439642c6336c$var$queuedMutations.length > 0)$caa9439642c6336c$var$queuedMutations.shift()();
|
172
|
+
});
|
263
173
|
}
|
264
174
|
function $caa9439642c6336c$var$mutateDom(callback) {
|
265
175
|
if (!$caa9439642c6336c$var$currentlyObserving) return callback();
|
@@ -284,14 +194,26 @@ function $caa9439642c6336c$var$onMutate(mutations) {
|
|
284
194
|
return;
|
285
195
|
}
|
286
196
|
let addedNodes = [];
|
287
|
-
let removedNodes =
|
197
|
+
let removedNodes = /* @__PURE__ */ new Set();
|
288
198
|
let addedAttributes = /* @__PURE__ */ new Map();
|
289
199
|
let removedAttributes = /* @__PURE__ */ new Map();
|
290
200
|
for(let i = 0; i < mutations.length; i++){
|
291
201
|
if (mutations[i].target._x_ignoreMutationObserver) continue;
|
292
202
|
if (mutations[i].type === "childList") {
|
293
|
-
mutations[i].
|
294
|
-
|
203
|
+
mutations[i].removedNodes.forEach((node)=>{
|
204
|
+
if (node.nodeType !== 1) return;
|
205
|
+
if (!node._x_marker) return;
|
206
|
+
removedNodes.add(node);
|
207
|
+
});
|
208
|
+
mutations[i].addedNodes.forEach((node)=>{
|
209
|
+
if (node.nodeType !== 1) return;
|
210
|
+
if (removedNodes.has(node)) {
|
211
|
+
removedNodes.delete(node);
|
212
|
+
return;
|
213
|
+
}
|
214
|
+
if (node._x_marker) return;
|
215
|
+
addedNodes.push(node);
|
216
|
+
});
|
295
217
|
}
|
296
218
|
if (mutations[i].type === "attributes") {
|
297
219
|
let el = mutations[i].target;
|
@@ -322,27 +244,13 @@ function $caa9439642c6336c$var$onMutate(mutations) {
|
|
322
244
|
$caa9439642c6336c$var$onAttributeAddeds.forEach((i)=>i(el, attrs));
|
323
245
|
});
|
324
246
|
for (let node of removedNodes){
|
325
|
-
if (addedNodes.
|
247
|
+
if (addedNodes.some((i)=>i.contains(node))) continue;
|
326
248
|
$caa9439642c6336c$var$onElRemoveds.forEach((i)=>i(node));
|
327
|
-
$caa9439642c6336c$var$destroyTree(node);
|
328
249
|
}
|
329
|
-
addedNodes.forEach((node)=>{
|
330
|
-
node._x_ignoreSelf = true;
|
331
|
-
node._x_ignore = true;
|
332
|
-
});
|
333
250
|
for (let node of addedNodes){
|
334
|
-
if (removedNodes.includes(node)) continue;
|
335
251
|
if (!node.isConnected) continue;
|
336
|
-
delete node._x_ignoreSelf;
|
337
|
-
delete node._x_ignore;
|
338
252
|
$caa9439642c6336c$var$onElAddeds.forEach((i)=>i(node));
|
339
|
-
node._x_ignore = true;
|
340
|
-
node._x_ignoreSelf = true;
|
341
253
|
}
|
342
|
-
addedNodes.forEach((node)=>{
|
343
|
-
delete node._x_ignoreSelf;
|
344
|
-
delete node._x_ignore;
|
345
|
-
});
|
346
254
|
addedNodes = null;
|
347
255
|
removedNodes = null;
|
348
256
|
addedAttributes = null;
|
@@ -378,16 +286,16 @@ var $caa9439642c6336c$var$mergeProxyTrap = {
|
|
378
286
|
},
|
379
287
|
has ({ objects: objects }, name) {
|
380
288
|
if (name == Symbol.unscopables) return false;
|
381
|
-
return objects.some((obj)=>Object.prototype.hasOwnProperty.call(obj, name));
|
289
|
+
return objects.some((obj)=>Object.prototype.hasOwnProperty.call(obj, name) || Reflect.has(obj, name));
|
382
290
|
},
|
383
291
|
get ({ objects: objects }, name, thisProxy) {
|
384
292
|
if (name == "toJSON") return $caa9439642c6336c$var$collapseProxies;
|
385
|
-
return Reflect.get(objects.find((obj)=>
|
293
|
+
return Reflect.get(objects.find((obj)=>Reflect.has(obj, name)) || {}, name, thisProxy);
|
386
294
|
},
|
387
295
|
set ({ objects: objects }, name, value, thisProxy) {
|
388
296
|
const target = objects.find((obj)=>Object.prototype.hasOwnProperty.call(obj, name)) || objects[objects.length - 1];
|
389
297
|
const descriptor = Object.getOwnPropertyDescriptor(target, name);
|
390
|
-
if (descriptor?.set && descriptor?.get) return
|
298
|
+
if (descriptor?.set && descriptor?.get) return descriptor.set.call(thisProxy, value) || true;
|
391
299
|
return Reflect.set(target, name, value);
|
392
300
|
}
|
393
301
|
};
|
@@ -399,11 +307,12 @@ function $caa9439642c6336c$var$collapseProxies() {
|
|
399
307
|
}, {});
|
400
308
|
}
|
401
309
|
// packages/alpinejs/src/interceptor.js
|
402
|
-
function $caa9439642c6336c$var$
|
310
|
+
function $caa9439642c6336c$var$initInterceptors(data2) {
|
403
311
|
let isObject2 = (val)=>typeof val === "object" && !Array.isArray(val) && val !== null;
|
404
312
|
let recurse = (obj, basePath = "")=>{
|
405
313
|
Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value: value, enumerable: enumerable }])=>{
|
406
314
|
if (enumerable === false || value === void 0) return;
|
315
|
+
if (typeof value === "object" && value !== null && value.__v_skip) return;
|
407
316
|
let path = basePath === "" ? key : `${basePath}.${key}`;
|
408
317
|
if (typeof value === "object" && value !== null && value._x_interceptor) obj[key] = value.initialize(data2, path, key);
|
409
318
|
else if (isObject2(value) && value !== obj && !(value instanceof Element)) recurse(value, path);
|
@@ -453,29 +362,26 @@ function $caa9439642c6336c$var$magic(name, callback) {
|
|
453
362
|
$caa9439642c6336c$var$magics[name] = callback;
|
454
363
|
}
|
455
364
|
function $caa9439642c6336c$var$injectMagics(obj, el) {
|
365
|
+
let memoizedUtilities = $caa9439642c6336c$var$getUtilities(el);
|
456
366
|
Object.entries($caa9439642c6336c$var$magics).forEach(([name, callback])=>{
|
457
|
-
let memoizedUtilities = null;
|
458
|
-
function getUtilities() {
|
459
|
-
if (memoizedUtilities) return memoizedUtilities;
|
460
|
-
else {
|
461
|
-
let [utilities, cleanup2] = $caa9439642c6336c$var$getElementBoundUtilities(el);
|
462
|
-
memoizedUtilities = {
|
463
|
-
interceptor: $caa9439642c6336c$var$interceptor,
|
464
|
-
...utilities
|
465
|
-
};
|
466
|
-
$caa9439642c6336c$var$onElRemoved(el, cleanup2);
|
467
|
-
return memoizedUtilities;
|
468
|
-
}
|
469
|
-
}
|
470
367
|
Object.defineProperty(obj, `$${name}`, {
|
471
368
|
get () {
|
472
|
-
return callback(el,
|
369
|
+
return callback(el, memoizedUtilities);
|
473
370
|
},
|
474
371
|
enumerable: false
|
475
372
|
});
|
476
373
|
});
|
477
374
|
return obj;
|
478
375
|
}
|
376
|
+
function $caa9439642c6336c$var$getUtilities(el) {
|
377
|
+
let [utilities, cleanup2] = $caa9439642c6336c$var$getElementBoundUtilities(el);
|
378
|
+
let utils = {
|
379
|
+
interceptor: $caa9439642c6336c$var$interceptor,
|
380
|
+
...utilities
|
381
|
+
};
|
382
|
+
$caa9439642c6336c$var$onElRemoved(el, cleanup2);
|
383
|
+
return utils;
|
384
|
+
}
|
479
385
|
// packages/alpinejs/src/utils/error.js
|
480
386
|
function $caa9439642c6336c$var$tryCatch(el, expression, callback, ...args) {
|
481
387
|
try {
|
@@ -485,7 +391,9 @@ function $caa9439642c6336c$var$tryCatch(el, expression, callback, ...args) {
|
|
485
391
|
}
|
486
392
|
}
|
487
393
|
function $caa9439642c6336c$var$handleError(error2, el, expression) {
|
488
|
-
Object.assign(error2
|
394
|
+
error2 = Object.assign(error2 ?? {
|
395
|
+
message: "No error message given."
|
396
|
+
}, {
|
489
397
|
el: el,
|
490
398
|
expression: expression
|
491
399
|
});
|
@@ -602,7 +510,7 @@ function $caa9439642c6336c$var$directive(name, callback) {
|
|
602
510
|
return {
|
603
511
|
before (directive2) {
|
604
512
|
if (!$caa9439642c6336c$var$directiveHandlers[directive2]) {
|
605
|
-
console.warn(
|
513
|
+
console.warn(String.raw`Cannot find directive \`${directive2}\`. \`${name}\` will use the default order of execution`);
|
606
514
|
return;
|
607
515
|
}
|
608
516
|
const pos = $caa9439642c6336c$var$directiveOrder.indexOf(directive2);
|
@@ -610,6 +518,9 @@ function $caa9439642c6336c$var$directive(name, callback) {
|
|
610
518
|
}
|
611
519
|
};
|
612
520
|
}
|
521
|
+
function $caa9439642c6336c$var$directiveExists(name) {
|
522
|
+
return Object.keys($caa9439642c6336c$var$directiveHandlers).includes(name);
|
523
|
+
}
|
613
524
|
function $caa9439642c6336c$var$directives(el, attributes, originalAttributeOverride) {
|
614
525
|
attributes = Array.from(attributes);
|
615
526
|
if (el._x_virtualDirectives) {
|
@@ -756,6 +667,147 @@ function $caa9439642c6336c$var$byPriority(a, b) {
|
|
756
667
|
let typeB = $caa9439642c6336c$var$directiveOrder.indexOf(b.type) === -1 ? $caa9439642c6336c$var$DEFAULT : b.type;
|
757
668
|
return $caa9439642c6336c$var$directiveOrder.indexOf(typeA) - $caa9439642c6336c$var$directiveOrder.indexOf(typeB);
|
758
669
|
}
|
670
|
+
// packages/alpinejs/src/utils/dispatch.js
|
671
|
+
function $caa9439642c6336c$var$dispatch(el, name, detail = {}) {
|
672
|
+
el.dispatchEvent(new CustomEvent(name, {
|
673
|
+
detail: detail,
|
674
|
+
bubbles: true,
|
675
|
+
// Allows events to pass the shadow DOM barrier.
|
676
|
+
composed: true,
|
677
|
+
cancelable: true
|
678
|
+
}));
|
679
|
+
}
|
680
|
+
// packages/alpinejs/src/utils/walk.js
|
681
|
+
function $caa9439642c6336c$var$walk(el, callback) {
|
682
|
+
if (typeof ShadowRoot === "function" && el instanceof ShadowRoot) {
|
683
|
+
Array.from(el.children).forEach((el2)=>$caa9439642c6336c$var$walk(el2, callback));
|
684
|
+
return;
|
685
|
+
}
|
686
|
+
let skip = false;
|
687
|
+
callback(el, ()=>skip = true);
|
688
|
+
if (skip) return;
|
689
|
+
let node = el.firstElementChild;
|
690
|
+
while(node){
|
691
|
+
$caa9439642c6336c$var$walk(node, callback, false);
|
692
|
+
node = node.nextElementSibling;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
// packages/alpinejs/src/utils/warn.js
|
696
|
+
function $caa9439642c6336c$var$warn(message, ...args) {
|
697
|
+
console.warn(`Alpine Warning: ${message}`, ...args);
|
698
|
+
}
|
699
|
+
// packages/alpinejs/src/lifecycle.js
|
700
|
+
var $caa9439642c6336c$var$started = false;
|
701
|
+
function $caa9439642c6336c$var$start() {
|
702
|
+
if ($caa9439642c6336c$var$started) $caa9439642c6336c$var$warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems.");
|
703
|
+
$caa9439642c6336c$var$started = true;
|
704
|
+
if (!document.body) $caa9439642c6336c$var$warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?");
|
705
|
+
$caa9439642c6336c$var$dispatch(document, "alpine:init");
|
706
|
+
$caa9439642c6336c$var$dispatch(document, "alpine:initializing");
|
707
|
+
$caa9439642c6336c$var$startObservingMutations();
|
708
|
+
$caa9439642c6336c$var$onElAdded((el)=>$caa9439642c6336c$var$initTree(el, $caa9439642c6336c$var$walk));
|
709
|
+
$caa9439642c6336c$var$onElRemoved((el)=>$caa9439642c6336c$var$destroyTree(el));
|
710
|
+
$caa9439642c6336c$var$onAttributesAdded((el, attrs)=>{
|
711
|
+
$caa9439642c6336c$var$directives(el, attrs).forEach((handle)=>handle());
|
712
|
+
});
|
713
|
+
let outNestedComponents = (el)=>!$caa9439642c6336c$var$closestRoot(el.parentElement, true);
|
714
|
+
Array.from(document.querySelectorAll($caa9439642c6336c$var$allSelectors().join(","))).filter(outNestedComponents).forEach((el)=>{
|
715
|
+
$caa9439642c6336c$var$initTree(el);
|
716
|
+
});
|
717
|
+
$caa9439642c6336c$var$dispatch(document, "alpine:initialized");
|
718
|
+
setTimeout(()=>{
|
719
|
+
$caa9439642c6336c$var$warnAboutMissingPlugins();
|
720
|
+
});
|
721
|
+
}
|
722
|
+
var $caa9439642c6336c$var$rootSelectorCallbacks = [];
|
723
|
+
var $caa9439642c6336c$var$initSelectorCallbacks = [];
|
724
|
+
function $caa9439642c6336c$var$rootSelectors() {
|
725
|
+
return $caa9439642c6336c$var$rootSelectorCallbacks.map((fn)=>fn());
|
726
|
+
}
|
727
|
+
function $caa9439642c6336c$var$allSelectors() {
|
728
|
+
return $caa9439642c6336c$var$rootSelectorCallbacks.concat($caa9439642c6336c$var$initSelectorCallbacks).map((fn)=>fn());
|
729
|
+
}
|
730
|
+
function $caa9439642c6336c$var$addRootSelector(selectorCallback) {
|
731
|
+
$caa9439642c6336c$var$rootSelectorCallbacks.push(selectorCallback);
|
732
|
+
}
|
733
|
+
function $caa9439642c6336c$var$addInitSelector(selectorCallback) {
|
734
|
+
$caa9439642c6336c$var$initSelectorCallbacks.push(selectorCallback);
|
735
|
+
}
|
736
|
+
function $caa9439642c6336c$var$closestRoot(el, includeInitSelectors = false) {
|
737
|
+
return $caa9439642c6336c$var$findClosest(el, (element)=>{
|
738
|
+
const selectors = includeInitSelectors ? $caa9439642c6336c$var$allSelectors() : $caa9439642c6336c$var$rootSelectors();
|
739
|
+
if (selectors.some((selector)=>element.matches(selector))) return true;
|
740
|
+
});
|
741
|
+
}
|
742
|
+
function $caa9439642c6336c$var$findClosest(el, callback) {
|
743
|
+
if (!el) return;
|
744
|
+
if (callback(el)) return el;
|
745
|
+
if (el._x_teleportBack) el = el._x_teleportBack;
|
746
|
+
if (!el.parentElement) return;
|
747
|
+
return $caa9439642c6336c$var$findClosest(el.parentElement, callback);
|
748
|
+
}
|
749
|
+
function $caa9439642c6336c$var$isRoot(el) {
|
750
|
+
return $caa9439642c6336c$var$rootSelectors().some((selector)=>el.matches(selector));
|
751
|
+
}
|
752
|
+
var $caa9439642c6336c$var$initInterceptors2 = [];
|
753
|
+
function $caa9439642c6336c$var$interceptInit(callback) {
|
754
|
+
$caa9439642c6336c$var$initInterceptors2.push(callback);
|
755
|
+
}
|
756
|
+
var $caa9439642c6336c$var$markerDispenser = 1;
|
757
|
+
function $caa9439642c6336c$var$initTree(el, walker = $caa9439642c6336c$var$walk, intercept = ()=>{}) {
|
758
|
+
if ($caa9439642c6336c$var$findClosest(el, (i)=>i._x_ignore)) return;
|
759
|
+
$caa9439642c6336c$var$deferHandlingDirectives(()=>{
|
760
|
+
walker(el, (el2, skip)=>{
|
761
|
+
if (el2._x_marker) return;
|
762
|
+
intercept(el2, skip);
|
763
|
+
$caa9439642c6336c$var$initInterceptors2.forEach((i)=>i(el2, skip));
|
764
|
+
$caa9439642c6336c$var$directives(el2, el2.attributes).forEach((handle)=>handle());
|
765
|
+
if (!el2._x_ignore) el2._x_marker = $caa9439642c6336c$var$markerDispenser++;
|
766
|
+
el2._x_ignore && skip();
|
767
|
+
});
|
768
|
+
});
|
769
|
+
}
|
770
|
+
function $caa9439642c6336c$var$destroyTree(root, walker = $caa9439642c6336c$var$walk) {
|
771
|
+
walker(root, (el)=>{
|
772
|
+
$caa9439642c6336c$var$cleanupElement(el);
|
773
|
+
$caa9439642c6336c$var$cleanupAttributes(el);
|
774
|
+
delete el._x_marker;
|
775
|
+
});
|
776
|
+
}
|
777
|
+
function $caa9439642c6336c$var$warnAboutMissingPlugins() {
|
778
|
+
let pluginDirectives = [
|
779
|
+
[
|
780
|
+
"ui",
|
781
|
+
"dialog",
|
782
|
+
[
|
783
|
+
"[x-dialog], [x-popover]"
|
784
|
+
]
|
785
|
+
],
|
786
|
+
[
|
787
|
+
"anchor",
|
788
|
+
"anchor",
|
789
|
+
[
|
790
|
+
"[x-anchor]"
|
791
|
+
]
|
792
|
+
],
|
793
|
+
[
|
794
|
+
"sort",
|
795
|
+
"sort",
|
796
|
+
[
|
797
|
+
"[x-sort]"
|
798
|
+
]
|
799
|
+
]
|
800
|
+
];
|
801
|
+
pluginDirectives.forEach(([plugin2, directive2, selectors])=>{
|
802
|
+
if ($caa9439642c6336c$var$directiveExists(directive2)) return;
|
803
|
+
selectors.some((selector)=>{
|
804
|
+
if (document.querySelector(selector)) {
|
805
|
+
$caa9439642c6336c$var$warn(`found "${selector}", but missing ${plugin2} plugin`);
|
806
|
+
return true;
|
807
|
+
}
|
808
|
+
});
|
809
|
+
});
|
810
|
+
}
|
759
811
|
// packages/alpinejs/src/nextTick.js
|
760
812
|
var $caa9439642c6336c$var$tickStack = [];
|
761
813
|
var $caa9439642c6336c$var$isHolding = false;
|
@@ -1000,7 +1052,7 @@ window.Element.prototype._x_toggleAndCascadeWithTransitions = function(el, value
|
|
1000
1052
|
let carry = Promise.all([
|
1001
1053
|
el2._x_hidePromise,
|
1002
1054
|
...(el2._x_hideChildren || []).map(hideAfterChildren)
|
1003
|
-
]).then(([i])=>i());
|
1055
|
+
]).then(([i])=>i?.());
|
1004
1056
|
delete el2._x_hidePromise;
|
1005
1057
|
delete el2._x_hideChildren;
|
1006
1058
|
return carry;
|
@@ -1198,13 +1250,13 @@ function $caa9439642c6336c$var$bind(el, name, value, modifiers = []) {
|
|
1198
1250
|
}
|
1199
1251
|
}
|
1200
1252
|
function $caa9439642c6336c$var$bindInputValue(el, value) {
|
1201
|
-
if (el
|
1253
|
+
if ($caa9439642c6336c$var$isRadio(el)) {
|
1202
1254
|
if (el.attributes.value === void 0) el.value = value;
|
1203
1255
|
if (window.fromModel) {
|
1204
1256
|
if (typeof value === "boolean") el.checked = $caa9439642c6336c$var$safeParseBoolean(el.value) === value;
|
1205
1257
|
else el.checked = $caa9439642c6336c$var$checkedAttrLooseCompare(el.value, value);
|
1206
1258
|
}
|
1207
|
-
} else if (el
|
1259
|
+
} else if ($caa9439642c6336c$var$isCheckbox(el)) {
|
1208
1260
|
if (Number.isInteger(value)) el.value = value;
|
1209
1261
|
else if (!Array.isArray(value) && typeof value !== "boolean" && ![
|
1210
1262
|
null,
|
@@ -1280,35 +1332,37 @@ function $caa9439642c6336c$var$safeParseBoolean(rawValue) {
|
|
1280
1332
|
].includes(rawValue)) return false;
|
1281
1333
|
return rawValue ? Boolean(rawValue) : null;
|
1282
1334
|
}
|
1335
|
+
var $caa9439642c6336c$var$booleanAttributes = /* @__PURE__ */ new Set([
|
1336
|
+
"allowfullscreen",
|
1337
|
+
"async",
|
1338
|
+
"autofocus",
|
1339
|
+
"autoplay",
|
1340
|
+
"checked",
|
1341
|
+
"controls",
|
1342
|
+
"default",
|
1343
|
+
"defer",
|
1344
|
+
"disabled",
|
1345
|
+
"formnovalidate",
|
1346
|
+
"inert",
|
1347
|
+
"ismap",
|
1348
|
+
"itemscope",
|
1349
|
+
"loop",
|
1350
|
+
"multiple",
|
1351
|
+
"muted",
|
1352
|
+
"nomodule",
|
1353
|
+
"novalidate",
|
1354
|
+
"open",
|
1355
|
+
"playsinline",
|
1356
|
+
"readonly",
|
1357
|
+
"required",
|
1358
|
+
"reversed",
|
1359
|
+
"selected",
|
1360
|
+
"shadowrootclonable",
|
1361
|
+
"shadowrootdelegatesfocus",
|
1362
|
+
"shadowrootserializable"
|
1363
|
+
]);
|
1283
1364
|
function $caa9439642c6336c$var$isBooleanAttr(attrName) {
|
1284
|
-
|
1285
|
-
"disabled",
|
1286
|
-
"checked",
|
1287
|
-
"required",
|
1288
|
-
"readonly",
|
1289
|
-
"hidden",
|
1290
|
-
"open",
|
1291
|
-
"selected",
|
1292
|
-
"autofocus",
|
1293
|
-
"itemscope",
|
1294
|
-
"multiple",
|
1295
|
-
"novalidate",
|
1296
|
-
"allowfullscreen",
|
1297
|
-
"allowpaymentrequest",
|
1298
|
-
"formnovalidate",
|
1299
|
-
"autoplay",
|
1300
|
-
"controls",
|
1301
|
-
"loop",
|
1302
|
-
"muted",
|
1303
|
-
"playsinline",
|
1304
|
-
"default",
|
1305
|
-
"ismap",
|
1306
|
-
"reversed",
|
1307
|
-
"async",
|
1308
|
-
"defer",
|
1309
|
-
"nomodule"
|
1310
|
-
];
|
1311
|
-
return booleanAttributes.includes(attrName);
|
1365
|
+
return $caa9439642c6336c$var$booleanAttributes.has(attrName);
|
1312
1366
|
}
|
1313
1367
|
function $caa9439642c6336c$var$attributeShouldntBePreservedIfFalsy(name) {
|
1314
1368
|
return ![
|
@@ -1343,6 +1397,12 @@ function $caa9439642c6336c$var$getAttributeBinding(el, name, fallback) {
|
|
1343
1397
|
].includes(attr);
|
1344
1398
|
return attr;
|
1345
1399
|
}
|
1400
|
+
function $caa9439642c6336c$var$isCheckbox(el) {
|
1401
|
+
return el.type === "checkbox" || el.localName === "ui-checkbox" || el.localName === "ui-switch";
|
1402
|
+
}
|
1403
|
+
function $caa9439642c6336c$var$isRadio(el) {
|
1404
|
+
return el.type === "radio" || el.localName === "ui-radio";
|
1405
|
+
}
|
1346
1406
|
// packages/alpinejs/src/utils/debounce.js
|
1347
1407
|
function $caa9439642c6336c$var$debounce(func, wait) {
|
1348
1408
|
var timeout;
|
@@ -1372,25 +1432,21 @@ function $caa9439642c6336c$var$throttle(func, limit) {
|
|
1372
1432
|
function $caa9439642c6336c$var$entangle({ get: outerGet, set: outerSet }, { get: innerGet, set: innerSet }) {
|
1373
1433
|
let firstRun = true;
|
1374
1434
|
let outerHash;
|
1435
|
+
let innerHash;
|
1375
1436
|
let reference = $caa9439642c6336c$var$effect(()=>{
|
1376
|
-
|
1377
|
-
|
1437
|
+
let outer = outerGet();
|
1438
|
+
let inner = innerGet();
|
1378
1439
|
if (firstRun) {
|
1379
1440
|
innerSet($caa9439642c6336c$var$cloneIfObject(outer));
|
1380
1441
|
firstRun = false;
|
1381
|
-
outerHash = JSON.stringify(outer);
|
1382
1442
|
} else {
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
} else {
|
1388
|
-
outerSet($caa9439642c6336c$var$cloneIfObject(inner));
|
1389
|
-
outerHash = JSON.stringify(inner);
|
1390
|
-
}
|
1443
|
+
let outerHashLatest = JSON.stringify(outer);
|
1444
|
+
let innerHashLatest = JSON.stringify(inner);
|
1445
|
+
if (outerHashLatest !== outerHash) innerSet($caa9439642c6336c$var$cloneIfObject(outer));
|
1446
|
+
else if (outerHashLatest !== innerHashLatest) outerSet($caa9439642c6336c$var$cloneIfObject(inner));
|
1391
1447
|
}
|
1392
|
-
JSON.stringify(
|
1393
|
-
JSON.stringify(
|
1448
|
+
outerHash = JSON.stringify(outerGet());
|
1449
|
+
innerHash = JSON.stringify(innerGet());
|
1394
1450
|
});
|
1395
1451
|
return ()=>{
|
1396
1452
|
$caa9439642c6336c$var$release(reference);
|
@@ -1416,8 +1472,8 @@ function $caa9439642c6336c$var$store(name, value) {
|
|
1416
1472
|
}
|
1417
1473
|
if (value === void 0) return $caa9439642c6336c$var$stores[name];
|
1418
1474
|
$caa9439642c6336c$var$stores[name] = value;
|
1475
|
+
$caa9439642c6336c$var$initInterceptors($caa9439642c6336c$var$stores[name]);
|
1419
1476
|
if (typeof value === "object" && value !== null && value.hasOwnProperty("init") && typeof value.init === "function") $caa9439642c6336c$var$stores[name].init();
|
1420
|
-
$caa9439642c6336c$var$initInterceptors2($caa9439642c6336c$var$stores[name]);
|
1421
1477
|
}
|
1422
1478
|
function $caa9439642c6336c$var$getStores() {
|
1423
1479
|
return $caa9439642c6336c$var$stores;
|
@@ -1497,7 +1553,7 @@ var $caa9439642c6336c$var$Alpine = {
|
|
1497
1553
|
get raw () {
|
1498
1554
|
return $caa9439642c6336c$var$raw;
|
1499
1555
|
},
|
1500
|
-
version: "3.
|
1556
|
+
version: "3.14.9",
|
1501
1557
|
flushAndStopDeferringMutations: $caa9439642c6336c$var$flushAndStopDeferringMutations,
|
1502
1558
|
dontAutoEvaluateFunctions: $caa9439642c6336c$var$dontAutoEvaluateFunctions,
|
1503
1559
|
disableEffectScheduling: $caa9439642c6336c$var$disableEffectScheduling,
|
@@ -1550,6 +1606,7 @@ var $caa9439642c6336c$var$Alpine = {
|
|
1550
1606
|
// INTERNAL
|
1551
1607
|
bound: $caa9439642c6336c$var$getBinding,
|
1552
1608
|
$data: $caa9439642c6336c$var$scope,
|
1609
|
+
watch: $caa9439642c6336c$var$watch,
|
1553
1610
|
walk: $caa9439642c6336c$var$walk,
|
1554
1611
|
data: $caa9439642c6336c$var$data,
|
1555
1612
|
bind: $caa9439642c6336c$var$bind2
|
@@ -2125,20 +2182,15 @@ $caa9439642c6336c$var$magic("nextTick", ()=>$caa9439642c6336c$var$nextTick);
|
|
2125
2182
|
// packages/alpinejs/src/magics/$dispatch.js
|
2126
2183
|
$caa9439642c6336c$var$magic("dispatch", (el)=>$caa9439642c6336c$var$dispatch.bind($caa9439642c6336c$var$dispatch, el));
|
2127
2184
|
// packages/alpinejs/src/magics/$watch.js
|
2128
|
-
$caa9439642c6336c$var$magic("watch", (el, { evaluateLater: evaluateLater2,
|
2185
|
+
$caa9439642c6336c$var$magic("watch", (el, { evaluateLater: evaluateLater2, cleanup: cleanup2 })=>(key, callback)=>{
|
2129
2186
|
let evaluate2 = evaluateLater2(key);
|
2130
|
-
let
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
});
|
2138
|
-
else oldValue = value;
|
2139
|
-
firstTime = false;
|
2140
|
-
}));
|
2141
|
-
el._x_effects.delete(effectReference);
|
2187
|
+
let getter = ()=>{
|
2188
|
+
let value;
|
2189
|
+
evaluate2((i)=>value = i);
|
2190
|
+
return value;
|
2191
|
+
};
|
2192
|
+
let unwatch = $caa9439642c6336c$var$watch(getter, callback);
|
2193
|
+
cleanup2(unwatch);
|
2142
2194
|
});
|
2143
2195
|
// packages/alpinejs/src/magics/$store.js
|
2144
2196
|
$caa9439642c6336c$var$magic("store", $caa9439642c6336c$var$getStores);
|
@@ -2154,11 +2206,9 @@ $caa9439642c6336c$var$magic("refs", (el)=>{
|
|
2154
2206
|
});
|
2155
2207
|
function $caa9439642c6336c$var$getArrayOfRefObject(el) {
|
2156
2208
|
let refObjects = [];
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
currentEl = currentEl.parentNode;
|
2161
|
-
}
|
2209
|
+
$caa9439642c6336c$var$findClosest(el, (i)=>{
|
2210
|
+
if (i._x_refs) refObjects.push(i._x_refs);
|
2211
|
+
});
|
2162
2212
|
return refObjects;
|
2163
2213
|
}
|
2164
2214
|
// packages/alpinejs/src/ids.js
|
@@ -2177,11 +2227,27 @@ function $caa9439642c6336c$var$setIdRoot(el, name) {
|
|
2177
2227
|
if (!el._x_ids[name]) el._x_ids[name] = $caa9439642c6336c$var$findAndIncrementId(name);
|
2178
2228
|
}
|
2179
2229
|
// packages/alpinejs/src/magics/$id.js
|
2180
|
-
$caa9439642c6336c$var$magic("id", (el)=>(name, key = null)=>{
|
2181
|
-
let
|
2182
|
-
|
2183
|
-
|
2230
|
+
$caa9439642c6336c$var$magic("id", (el, { cleanup: cleanup2 })=>(name, key = null)=>{
|
2231
|
+
let cacheKey = `${name}${key ? `-${key}` : ""}`;
|
2232
|
+
return $caa9439642c6336c$var$cacheIdByNameOnElement(el, cacheKey, cleanup2, ()=>{
|
2233
|
+
let root = $caa9439642c6336c$var$closestIdRoot(el, name);
|
2234
|
+
let id = root ? root._x_ids[name] : $caa9439642c6336c$var$findAndIncrementId(name);
|
2235
|
+
return key ? `${name}-${id}-${key}` : `${name}-${id}`;
|
2236
|
+
});
|
2237
|
+
});
|
2238
|
+
$caa9439642c6336c$var$interceptClone((from, to)=>{
|
2239
|
+
if (from._x_id) to._x_id = from._x_id;
|
2240
|
+
});
|
2241
|
+
function $caa9439642c6336c$var$cacheIdByNameOnElement(el, cacheKey, cleanup2, callback) {
|
2242
|
+
if (!el._x_id) el._x_id = {};
|
2243
|
+
if (el._x_id[cacheKey]) return el._x_id[cacheKey];
|
2244
|
+
let output = callback();
|
2245
|
+
el._x_id[cacheKey] = output;
|
2246
|
+
cleanup2(()=>{
|
2247
|
+
delete el._x_id[cacheKey];
|
2184
2248
|
});
|
2249
|
+
return output;
|
2250
|
+
}
|
2185
2251
|
// packages/alpinejs/src/magics/$el.js
|
2186
2252
|
$caa9439642c6336c$var$magic("el", (el)=>el);
|
2187
2253
|
// packages/alpinejs/src/magics/index.js
|
@@ -2252,8 +2318,9 @@ $caa9439642c6336c$var$directive("teleport", (el, { modifiers: modifiers, express
|
|
2252
2318
|
};
|
2253
2319
|
$caa9439642c6336c$var$mutateDom(()=>{
|
2254
2320
|
placeInDom(clone2, target, modifiers);
|
2255
|
-
$caa9439642c6336c$var$
|
2256
|
-
|
2321
|
+
$caa9439642c6336c$var$skipDuringClone(()=>{
|
2322
|
+
$caa9439642c6336c$var$initTree(clone2);
|
2323
|
+
})();
|
2257
2324
|
});
|
2258
2325
|
el._x_teleportPutBack = ()=>{
|
2259
2326
|
let target2 = $caa9439642c6336c$var$getTarget(expression);
|
@@ -2261,7 +2328,10 @@ $caa9439642c6336c$var$directive("teleport", (el, { modifiers: modifiers, express
|
|
2261
2328
|
placeInDom(el._x_teleport, target2, modifiers);
|
2262
2329
|
});
|
2263
2330
|
};
|
2264
|
-
cleanup2(()
|
2331
|
+
cleanup2(()=>$caa9439642c6336c$var$mutateDom(()=>{
|
2332
|
+
clone2.remove();
|
2333
|
+
$caa9439642c6336c$var$destroyTree(clone2);
|
2334
|
+
}));
|
2265
2335
|
});
|
2266
2336
|
var $caa9439642c6336c$var$teleportContainerDuringClone = document.createElement("div");
|
2267
2337
|
function $caa9439642c6336c$var$getTarget(expression) {
|
@@ -2316,8 +2386,9 @@ function $caa9439642c6336c$var$on(el, event, modifiers, callback) {
|
|
2316
2386
|
e.stopPropagation();
|
2317
2387
|
next(e);
|
2318
2388
|
});
|
2319
|
-
if (modifiers.includes("
|
2320
|
-
|
2389
|
+
if (modifiers.includes("once")) handler4 = wrapHandler(handler4, (next, e)=>{
|
2390
|
+
next(e);
|
2391
|
+
listenerTarget.removeEventListener(event, handler4, options);
|
2321
2392
|
});
|
2322
2393
|
if (modifiers.includes("away") || modifiers.includes("outside")) {
|
2323
2394
|
listenerTarget = document;
|
@@ -2329,14 +2400,11 @@ function $caa9439642c6336c$var$on(el, event, modifiers, callback) {
|
|
2329
2400
|
next(e);
|
2330
2401
|
});
|
2331
2402
|
}
|
2332
|
-
if (modifiers.includes("
|
2333
|
-
next(e);
|
2334
|
-
listenerTarget.removeEventListener(event, handler4, options);
|
2403
|
+
if (modifiers.includes("self")) handler4 = wrapHandler(handler4, (next, e)=>{
|
2404
|
+
e.target === el && next(e);
|
2335
2405
|
});
|
2336
|
-
handler4 = wrapHandler(handler4, (next, e)=>{
|
2337
|
-
if ($caa9439642c6336c$var$
|
2338
|
-
if ($caa9439642c6336c$var$isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) return;
|
2339
|
-
}
|
2406
|
+
if ($caa9439642c6336c$var$isKeyEvent(event) || $caa9439642c6336c$var$isClickEvent(event)) handler4 = wrapHandler(handler4, (next, e)=>{
|
2407
|
+
if ($caa9439642c6336c$var$isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) return;
|
2340
2408
|
next(e);
|
2341
2409
|
});
|
2342
2410
|
listenerTarget.addEventListener(event, handler4, options);
|
@@ -2366,6 +2434,13 @@ function $caa9439642c6336c$var$isKeyEvent(event) {
|
|
2366
2434
|
"keyup"
|
2367
2435
|
].includes(event);
|
2368
2436
|
}
|
2437
|
+
function $caa9439642c6336c$var$isClickEvent(event) {
|
2438
|
+
return [
|
2439
|
+
"contextmenu",
|
2440
|
+
"click",
|
2441
|
+
"mouse"
|
2442
|
+
].some((i)=>event.includes(i));
|
2443
|
+
}
|
2369
2444
|
function $caa9439642c6336c$var$isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) {
|
2370
2445
|
let keyModifiers = modifiers.filter((i)=>{
|
2371
2446
|
return ![
|
@@ -2374,7 +2449,11 @@ function $caa9439642c6336c$var$isListeningForASpecificKeyThatHasntBeenPressed(e,
|
|
2374
2449
|
"prevent",
|
2375
2450
|
"stop",
|
2376
2451
|
"once",
|
2377
|
-
"capture"
|
2452
|
+
"capture",
|
2453
|
+
"self",
|
2454
|
+
"away",
|
2455
|
+
"outside",
|
2456
|
+
"passive"
|
2378
2457
|
].includes(i);
|
2379
2458
|
});
|
2380
2459
|
if (keyModifiers.includes("debounce")) {
|
@@ -2403,6 +2482,7 @@ function $caa9439642c6336c$var$isListeningForASpecificKeyThatHasntBeenPressed(e,
|
|
2403
2482
|
return e[`${modifier}Key`];
|
2404
2483
|
});
|
2405
2484
|
if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) {
|
2485
|
+
if ($caa9439642c6336c$var$isClickEvent(e.type)) return false;
|
2406
2486
|
if ($caa9439642c6336c$var$keyToModifiers(e.key).includes(keyModifiers[0])) return false;
|
2407
2487
|
}
|
2408
2488
|
}
|
@@ -2423,6 +2503,7 @@ function $caa9439642c6336c$var$keyToModifiers(key) {
|
|
2423
2503
|
"left": "arrow-left",
|
2424
2504
|
"right": "arrow-right",
|
2425
2505
|
"period": ".",
|
2506
|
+
"comma": ",",
|
2426
2507
|
"equal": "=",
|
2427
2508
|
"minus": "-",
|
2428
2509
|
"underscore": "_"
|
@@ -2468,16 +2549,21 @@ $caa9439642c6336c$var$directive("model", (el, { modifiers: modifiers, expression
|
|
2468
2549
|
});
|
2469
2550
|
if (modifiers.includes("fill")) {
|
2470
2551
|
if ([
|
2552
|
+
void 0,
|
2471
2553
|
null,
|
2472
2554
|
""
|
2473
|
-
].includes(getValue()) || el
|
2555
|
+
].includes(getValue()) || $caa9439642c6336c$var$isCheckbox(el) && Array.isArray(getValue()) || el.tagName.toLowerCase() === "select" && el.multiple) setValue($caa9439642c6336c$var$getInputValue(el, modifiers, {
|
2556
|
+
target: el
|
2557
|
+
}, getValue()));
|
2474
2558
|
}
|
2475
2559
|
if (!el._x_removeModelListeners) el._x_removeModelListeners = {};
|
2476
2560
|
el._x_removeModelListeners["default"] = removeListener;
|
2477
2561
|
cleanup2(()=>el._x_removeModelListeners["default"]());
|
2478
2562
|
if (el.form) {
|
2479
2563
|
let removeResetListener = $caa9439642c6336c$var$on(el.form, "reset", [], (e)=>{
|
2480
|
-
$caa9439642c6336c$var$nextTick(()=>el._x_model && el._x_model.set(el
|
2564
|
+
$caa9439642c6336c$var$nextTick(()=>el._x_model && el._x_model.set($caa9439642c6336c$var$getInputValue(el, modifiers, {
|
2565
|
+
target: el
|
2566
|
+
}, getValue())));
|
2481
2567
|
});
|
2482
2568
|
cleanup2(()=>removeResetListener());
|
2483
2569
|
}
|
@@ -2504,13 +2590,13 @@ $caa9439642c6336c$var$directive("model", (el, { modifiers: modifiers, expression
|
|
2504
2590
|
function $caa9439642c6336c$var$getInputValue(el, modifiers, event, currentValue) {
|
2505
2591
|
return $caa9439642c6336c$var$mutateDom(()=>{
|
2506
2592
|
if (event instanceof CustomEvent && event.detail !== void 0) return event.detail !== null && event.detail !== void 0 ? event.detail : event.target.value;
|
2507
|
-
else if (el
|
2593
|
+
else if ($caa9439642c6336c$var$isCheckbox(el)) {
|
2508
2594
|
if (Array.isArray(currentValue)) {
|
2509
2595
|
let newValue = null;
|
2510
2596
|
if (modifiers.includes("number")) newValue = $caa9439642c6336c$var$safeParseNumber(event.target.value);
|
2511
2597
|
else if (modifiers.includes("boolean")) newValue = $caa9439642c6336c$var$safeParseBoolean(event.target.value);
|
2512
2598
|
else newValue = event.target.value;
|
2513
|
-
return event.target.checked ? currentValue.concat([
|
2599
|
+
return event.target.checked ? currentValue.includes(newValue) ? currentValue : currentValue.concat([
|
2514
2600
|
newValue
|
2515
2601
|
]) : currentValue.filter((el2)=>!$caa9439642c6336c$var$checkedAttrLooseCompare2(el2, newValue));
|
2516
2602
|
} else return event.target.checked;
|
@@ -2527,9 +2613,15 @@ function $caa9439642c6336c$var$getInputValue(el, modifiers, event, currentValue)
|
|
2527
2613
|
return option.value || option.text;
|
2528
2614
|
});
|
2529
2615
|
} else {
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2616
|
+
let newValue;
|
2617
|
+
if ($caa9439642c6336c$var$isRadio(el)) {
|
2618
|
+
if (event.target.checked) newValue = event.target.value;
|
2619
|
+
else newValue = currentValue;
|
2620
|
+
} else newValue = event.target.value;
|
2621
|
+
if (modifiers.includes("number")) return $caa9439642c6336c$var$safeParseNumber(newValue);
|
2622
|
+
else if (modifiers.includes("boolean")) return $caa9439642c6336c$var$safeParseBoolean(newValue);
|
2623
|
+
else if (modifiers.includes("trim")) return newValue.trim();
|
2624
|
+
else return newValue;
|
2533
2625
|
}
|
2534
2626
|
});
|
2535
2627
|
}
|
@@ -2581,7 +2673,7 @@ $caa9439642c6336c$var$directive("html", (el, { expression: expression }, { effec
|
|
2581
2673
|
});
|
2582
2674
|
// packages/alpinejs/src/directives/x-bind.js
|
2583
2675
|
$caa9439642c6336c$var$mapAttributes($caa9439642c6336c$var$startingWith(":", $caa9439642c6336c$var$into($caa9439642c6336c$var$prefix("bind:"))));
|
2584
|
-
var $caa9439642c6336c$var$handler2 = (el, { value: value, modifiers: modifiers, expression: expression, original: original }, { effect: effect3 })=>{
|
2676
|
+
var $caa9439642c6336c$var$handler2 = (el, { value: value, modifiers: modifiers, expression: expression, original: original }, { effect: effect3, cleanup: cleanup2 })=>{
|
2585
2677
|
if (!value) {
|
2586
2678
|
let bindingProviders = {};
|
2587
2679
|
$caa9439642c6336c$var$injectBindingProviders(bindingProviders);
|
@@ -2600,6 +2692,10 @@ var $caa9439642c6336c$var$handler2 = (el, { value: value, modifiers: modifiers,
|
|
2600
2692
|
if (result === void 0 && typeof expression === "string" && expression.match(/\./)) result = "";
|
2601
2693
|
$caa9439642c6336c$var$mutateDom(()=>$caa9439642c6336c$var$bind(el, value, result, modifiers));
|
2602
2694
|
}));
|
2695
|
+
cleanup2(()=>{
|
2696
|
+
el._x_undoAddedClasses && el._x_undoAddedClasses();
|
2697
|
+
el._x_undoAddedStyles && el._x_undoAddedStyles();
|
2698
|
+
});
|
2603
2699
|
};
|
2604
2700
|
$caa9439642c6336c$var$handler2.inline = (el, { value: value, modifiers: modifiers, expression: expression })=>{
|
2605
2701
|
if (!value) return;
|
@@ -2628,7 +2724,7 @@ $caa9439642c6336c$var$directive("data", (el, { expression: expression }, { clean
|
|
2628
2724
|
if (data2 === void 0 || data2 === true) data2 = {};
|
2629
2725
|
$caa9439642c6336c$var$injectMagics(data2, el);
|
2630
2726
|
let reactiveData = $caa9439642c6336c$var$reactive(data2);
|
2631
|
-
$caa9439642c6336c$var$
|
2727
|
+
$caa9439642c6336c$var$initInterceptors(reactiveData);
|
2632
2728
|
let undo = $caa9439642c6336c$var$addScopeToNode(el, reactiveData);
|
2633
2729
|
reactiveData["init"] && $caa9439642c6336c$var$evaluate(el, reactiveData["init"]);
|
2634
2730
|
cleanup2(()=>{
|
@@ -2694,7 +2790,10 @@ $caa9439642c6336c$var$directive("for", (el, { expression: expression }, { effect
|
|
2694
2790
|
el._x_lookup = {};
|
2695
2791
|
effect3(()=>$caa9439642c6336c$var$loop(el, iteratorNames, evaluateItems, evaluateKey));
|
2696
2792
|
cleanup2(()=>{
|
2697
|
-
Object.values(el._x_lookup).forEach((el2)
|
2793
|
+
Object.values(el._x_lookup).forEach((el2)=>$caa9439642c6336c$var$mutateDom(()=>{
|
2794
|
+
$caa9439642c6336c$var$destroyTree(el2);
|
2795
|
+
el2.remove();
|
2796
|
+
}));
|
2698
2797
|
delete el._x_prevKeys;
|
2699
2798
|
delete el._x_lookup;
|
2700
2799
|
});
|
@@ -2711,7 +2810,10 @@ function $caa9439642c6336c$var$loop(el, iteratorNames, evaluateItems, evaluateKe
|
|
2711
2810
|
let keys = [];
|
2712
2811
|
if (isObject2(items)) items = Object.entries(items).map(([key, value])=>{
|
2713
2812
|
let scope2 = $caa9439642c6336c$var$getIterationScopeVariables(iteratorNames, value, key, items);
|
2714
|
-
evaluateKey((value2)=>
|
2813
|
+
evaluateKey((value2)=>{
|
2814
|
+
if (keys.includes(value2)) $caa9439642c6336c$var$warn("Duplicate key on x-for", el);
|
2815
|
+
keys.push(value2);
|
2816
|
+
}, {
|
2715
2817
|
scope: {
|
2716
2818
|
index: key,
|
2717
2819
|
...scope2
|
@@ -2721,7 +2823,10 @@ function $caa9439642c6336c$var$loop(el, iteratorNames, evaluateItems, evaluateKe
|
|
2721
2823
|
});
|
2722
2824
|
else for(let i = 0; i < items.length; i++){
|
2723
2825
|
let scope2 = $caa9439642c6336c$var$getIterationScopeVariables(iteratorNames, items[i], i, items);
|
2724
|
-
evaluateKey((value)=>
|
2826
|
+
evaluateKey((value)=>{
|
2827
|
+
if (keys.includes(value)) $caa9439642c6336c$var$warn("Duplicate key on x-for", el);
|
2828
|
+
keys.push(value);
|
2829
|
+
}, {
|
2725
2830
|
scope: {
|
2726
2831
|
index: i,
|
2727
2832
|
...scope2
|
@@ -2762,9 +2867,11 @@ function $caa9439642c6336c$var$loop(el, iteratorNames, evaluateItems, evaluateKe
|
|
2762
2867
|
}
|
2763
2868
|
for(let i = 0; i < removes.length; i++){
|
2764
2869
|
let key = removes[i];
|
2765
|
-
if (
|
2766
|
-
|
2767
|
-
|
2870
|
+
if (!(key in lookup)) continue;
|
2871
|
+
$caa9439642c6336c$var$mutateDom(()=>{
|
2872
|
+
$caa9439642c6336c$var$destroyTree(lookup[key]);
|
2873
|
+
lookup[key].remove();
|
2874
|
+
});
|
2768
2875
|
delete lookup[key];
|
2769
2876
|
}
|
2770
2877
|
for(let i = 0; i < moves.length; i++){
|
@@ -2773,7 +2880,7 @@ function $caa9439642c6336c$var$loop(el, iteratorNames, evaluateItems, evaluateKe
|
|
2773
2880
|
let elForSpot = lookup[keyForSpot];
|
2774
2881
|
let marker = document.createElement("div");
|
2775
2882
|
$caa9439642c6336c$var$mutateDom(()=>{
|
2776
|
-
if (!elForSpot) $caa9439642c6336c$var$warn(`x-for ":key" is undefined or invalid`, templateEl);
|
2883
|
+
if (!elForSpot) $caa9439642c6336c$var$warn(`x-for ":key" is undefined or invalid`, templateEl, keyForSpot, lookup);
|
2777
2884
|
elForSpot.after(marker);
|
2778
2885
|
elInSpot.after(elForSpot);
|
2779
2886
|
elForSpot._x_currentIfEl && elForSpot.after(elForSpot._x_currentIfEl);
|
@@ -2799,7 +2906,7 @@ function $caa9439642c6336c$var$loop(el, iteratorNames, evaluateItems, evaluateKe
|
|
2799
2906
|
};
|
2800
2907
|
$caa9439642c6336c$var$mutateDom(()=>{
|
2801
2908
|
lastEl.after(clone2);
|
2802
|
-
$caa9439642c6336c$var$initTree(clone2);
|
2909
|
+
$caa9439642c6336c$var$skipDuringClone(()=>$caa9439642c6336c$var$initTree(clone2))();
|
2803
2910
|
});
|
2804
2911
|
if (typeof key === "object") $caa9439642c6336c$var$warn("x-for key cannot be an object, it must be a string or an integer", templateEl);
|
2805
2912
|
lookup[key] = clone2;
|
@@ -2864,14 +2971,14 @@ $caa9439642c6336c$var$directive("if", (el, { expression: expression }, { effect:
|
|
2864
2971
|
$caa9439642c6336c$var$addScopeToNode(clone2, {}, el);
|
2865
2972
|
$caa9439642c6336c$var$mutateDom(()=>{
|
2866
2973
|
el.after(clone2);
|
2867
|
-
$caa9439642c6336c$var$initTree(clone2);
|
2974
|
+
$caa9439642c6336c$var$skipDuringClone(()=>$caa9439642c6336c$var$initTree(clone2))();
|
2868
2975
|
});
|
2869
2976
|
el._x_currentIfEl = clone2;
|
2870
2977
|
el._x_undoIf = ()=>{
|
2871
|
-
$caa9439642c6336c$var$
|
2872
|
-
|
2978
|
+
$caa9439642c6336c$var$mutateDom(()=>{
|
2979
|
+
$caa9439642c6336c$var$destroyTree(clone2);
|
2980
|
+
clone2.remove();
|
2873
2981
|
});
|
2874
|
-
clone2.remove();
|
2875
2982
|
delete el._x_currentIfEl;
|
2876
2983
|
};
|
2877
2984
|
return clone2;
|
@@ -2891,6 +2998,9 @@ $caa9439642c6336c$var$directive("id", (el, { expression: expression }, { evaluat
|
|
2891
2998
|
let names = evaluate2(expression);
|
2892
2999
|
names.forEach((name)=>$caa9439642c6336c$var$setIdRoot(el, name));
|
2893
3000
|
});
|
3001
|
+
$caa9439642c6336c$var$interceptClone((from, to)=>{
|
3002
|
+
if (from._x_ids) to._x_ids = from._x_ids;
|
3003
|
+
});
|
2894
3004
|
// packages/alpinejs/src/directives/x-on.js
|
2895
3005
|
$caa9439642c6336c$var$mapAttributes($caa9439642c6336c$var$startingWith("@", $caa9439642c6336c$var$into($caa9439642c6336c$var$prefix("on:"))));
|
2896
3006
|
$caa9439642c6336c$var$directive("on", $caa9439642c6336c$var$skipDuringClone((el, { value: value, modifiers: modifiers, expression: expression }, { cleanup: cleanup2 })=>{
|
@@ -2927,13 +3037,13 @@ $caa9439642c6336c$var$alpine_default.setReactivityEngine({
|
|
2927
3037
|
release: $caa9439642c6336c$var$stop,
|
2928
3038
|
raw: $caa9439642c6336c$var$toRaw
|
2929
3039
|
});
|
2930
|
-
var $caa9439642c6336c$
|
3040
|
+
var $caa9439642c6336c$export$b7ee041e4ad2afec = $caa9439642c6336c$var$alpine_default;
|
2931
3041
|
// packages/alpinejs/builds/module.js
|
2932
|
-
var $caa9439642c6336c$export$2e2bcd8739ae039 = $caa9439642c6336c$
|
3042
|
+
var $caa9439642c6336c$export$2e2bcd8739ae039 = $caa9439642c6336c$export$b7ee041e4ad2afec;
|
2933
3043
|
|
2934
3044
|
|
2935
3045
|
// packages/morph/src/morph.js
|
2936
|
-
function $512e3a9270ec7803$
|
3046
|
+
function $512e3a9270ec7803$var$morph(from, toHtml, options) {
|
2937
3047
|
$512e3a9270ec7803$var$monkeyPatchDomSetAttributeToAllowAtSymbols();
|
2938
3048
|
let fromEl;
|
2939
3049
|
let toEl;
|
@@ -2953,8 +3063,12 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
2953
3063
|
function patch(from2, to) {
|
2954
3064
|
if (differentElementNamesTypesOrKeys(from2, to)) return swapElements(from2, to);
|
2955
3065
|
let updateChildrenOnly = false;
|
2956
|
-
|
2957
|
-
if (
|
3066
|
+
let skipChildren = false;
|
3067
|
+
if ($512e3a9270ec7803$var$shouldSkipChildren(updating, ()=>skipChildren = true, from2, to, ()=>updateChildrenOnly = true)) return;
|
3068
|
+
if (from2.nodeType === 1 && window.Alpine) {
|
3069
|
+
window.Alpine.cloneNode(from2, to);
|
3070
|
+
if (from2._x_teleport && to._x_teleport) patch(from2._x_teleport, to._x_teleport);
|
3071
|
+
}
|
2958
3072
|
if ($512e3a9270ec7803$var$textOrComment(to)) {
|
2959
3073
|
patchNodeValue(from2, to);
|
2960
3074
|
updated(from2, to);
|
@@ -2962,7 +3076,7 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
2962
3076
|
}
|
2963
3077
|
if (!updateChildrenOnly) patchAttributes(from2, to);
|
2964
3078
|
updated(from2, to);
|
2965
|
-
patchChildren(from2, to);
|
3079
|
+
if (!skipChildren) patchChildren(from2, to);
|
2966
3080
|
}
|
2967
3081
|
function differentElementNamesTypesOrKeys(from2, to) {
|
2968
3082
|
return from2.nodeType != to.nodeType || from2.nodeName != to.nodeName || getKey(from2) != getKey(to);
|
@@ -2996,8 +3110,6 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
2996
3110
|
}
|
2997
3111
|
}
|
2998
3112
|
function patchChildren(from2, to) {
|
2999
|
-
if (from2._x_teleport) from2 = from2._x_teleport;
|
3000
|
-
if (to._x_teleport) to = to._x_teleport;
|
3001
3113
|
let fromKeys = keyToMap(from2.children);
|
3002
3114
|
let fromKeyHoldovers = {};
|
3003
3115
|
let currentTo = $512e3a9270ec7803$var$getFirstNode(to);
|
@@ -3011,6 +3123,7 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
3011
3123
|
let holdover = fromKeyHoldovers[toKey];
|
3012
3124
|
from2.appendChild(holdover);
|
3013
3125
|
currentFrom = holdover;
|
3126
|
+
fromKey = getKey(currentFrom);
|
3014
3127
|
} else {
|
3015
3128
|
if (!$512e3a9270ec7803$var$shouldSkip(adding, currentTo)) {
|
3016
3129
|
let clone = currentTo.cloneNode(true);
|
@@ -3080,6 +3193,7 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
3080
3193
|
if (fromKeys[toKey]) {
|
3081
3194
|
currentFrom.replaceWith(fromKeys[toKey]);
|
3082
3195
|
currentFrom = fromKeys[toKey];
|
3196
|
+
fromKey = getKey(currentFrom);
|
3083
3197
|
}
|
3084
3198
|
}
|
3085
3199
|
if (toKey && fromKey) {
|
@@ -3088,6 +3202,7 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
3088
3202
|
fromKeyHoldovers[fromKey] = currentFrom;
|
3089
3203
|
currentFrom.replaceWith(fromKeyNode);
|
3090
3204
|
currentFrom = fromKeyNode;
|
3205
|
+
fromKey = getKey(currentFrom);
|
3091
3206
|
} else {
|
3092
3207
|
fromKeyHoldovers[fromKey] = currentFrom;
|
3093
3208
|
currentFrom = addNodeBefore(from2, currentTo, currentFrom);
|
@@ -3146,13 +3261,18 @@ function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(from, toHtml, options) {
|
|
3146
3261
|
toEl = void 0;
|
3147
3262
|
return from;
|
3148
3263
|
}
|
3149
|
-
$512e3a9270ec7803$
|
3150
|
-
$512e3a9270ec7803$
|
3264
|
+
$512e3a9270ec7803$var$morph.step = ()=>{};
|
3265
|
+
$512e3a9270ec7803$var$morph.log = ()=>{};
|
3151
3266
|
function $512e3a9270ec7803$var$shouldSkip(hook, ...args) {
|
3152
3267
|
let skip = false;
|
3153
3268
|
hook(...args, ()=>skip = true);
|
3154
3269
|
return skip;
|
3155
3270
|
}
|
3271
|
+
function $512e3a9270ec7803$var$shouldSkipChildren(hook, skipChildren, ...args) {
|
3272
|
+
let skip = false;
|
3273
|
+
hook(...args, ()=>skip = true, skipChildren);
|
3274
|
+
return skip;
|
3275
|
+
}
|
3156
3276
|
var $512e3a9270ec7803$var$patched = false;
|
3157
3277
|
function $512e3a9270ec7803$var$createElement(html) {
|
3158
3278
|
const template = document.createElement("template");
|
@@ -3219,15 +3339,16 @@ function $512e3a9270ec7803$var$monkeyPatchDomSetAttributeToAllowAtSymbols() {
|
|
3219
3339
|
function $512e3a9270ec7803$var$seedingMatchingId(to, from) {
|
3220
3340
|
let fromId = from && from._x_bindings && from._x_bindings.id;
|
3221
3341
|
if (!fromId) return;
|
3342
|
+
if (!to.setAttribute) return;
|
3222
3343
|
to.setAttribute("id", fromId);
|
3223
3344
|
to.id = fromId;
|
3224
3345
|
}
|
3225
3346
|
// packages/morph/src/index.js
|
3226
|
-
function $512e3a9270ec7803$
|
3227
|
-
Alpine.morph = $512e3a9270ec7803$
|
3347
|
+
function $512e3a9270ec7803$export$2e5e8c41f5d4e7c7(Alpine) {
|
3348
|
+
Alpine.morph = $512e3a9270ec7803$var$morph;
|
3228
3349
|
}
|
3229
3350
|
// packages/morph/builds/module.js
|
3230
|
-
var $512e3a9270ec7803$export$2e2bcd8739ae039 = $512e3a9270ec7803$
|
3351
|
+
var $512e3a9270ec7803$export$2e2bcd8739ae039 = $512e3a9270ec7803$export$2e5e8c41f5d4e7c7;
|
3231
3352
|
|
3232
3353
|
|
3233
3354
|
// packages/persist/src/index.js
|
@@ -3284,7 +3405,9 @@ function $a5acee56471cec18$var$storageHas(key, storage) {
|
|
3284
3405
|
return storage.getItem(key) !== null;
|
3285
3406
|
}
|
3286
3407
|
function $a5acee56471cec18$var$storageGet(key, storage) {
|
3287
|
-
|
3408
|
+
let value = storage.getItem(key, storage);
|
3409
|
+
if (value === void 0) return;
|
3410
|
+
return JSON.parse(value);
|
3288
3411
|
}
|
3289
3412
|
function $a5acee56471cec18$var$storageSet(key, value, storage) {
|
3290
3413
|
storage.setItem(key, JSON.stringify(value));
|
@@ -6553,9 +6676,15 @@ function $69a8ec8dbeef3157$var$Tooltip(Alpine) {
|
|
6553
6676
|
}, timeout || 2e3);
|
6554
6677
|
};
|
6555
6678
|
});
|
6556
|
-
Alpine.directive("tooltip", (el, { modifiers: modifiers, expression: expression }, { evaluateLater: evaluateLater, effect: effect })=>{
|
6679
|
+
Alpine.directive("tooltip", (el, { modifiers: modifiers, expression: expression }, { evaluateLater: evaluateLater, effect: effect, cleanup: cleanup })=>{
|
6557
6680
|
const config = modifiers.length > 0 ? $69a8ec8dbeef3157$var$buildConfigFromModifiers(modifiers) : {};
|
6558
6681
|
if (!el.__x_tippy) el.__x_tippy = (0, $69a8ec8dbeef3157$var$import_tippy2.default)(el, config);
|
6682
|
+
cleanup(()=>{
|
6683
|
+
if (el.__x_tippy) {
|
6684
|
+
el.__x_tippy.destroy();
|
6685
|
+
delete el.__x_tippy;
|
6686
|
+
}
|
6687
|
+
});
|
6559
6688
|
const enableTooltip = ()=>el.__x_tippy.enable();
|
6560
6689
|
const disableTooltip = ()=>el.__x_tippy.disable();
|
6561
6690
|
const setupTooltip = (content)=>{
|
@@ -6596,8 +6725,8 @@ var $5267f0d63de538ba$exports = {};
|
|
6596
6725
|
* Licensed under the MIT license.
|
6597
6726
|
*/ (function(root, definition) {
|
6598
6727
|
"use strict";
|
6599
|
-
if (typeof define ===
|
6600
|
-
else if (
|
6728
|
+
if (typeof define === 'function' && define.amd) define(definition);
|
6729
|
+
else if ($5267f0d63de538ba$exports) $5267f0d63de538ba$exports = definition();
|
6601
6730
|
else root.log = definition();
|
6602
6731
|
})($5267f0d63de538ba$exports, function() {
|
6603
6732
|
"use strict";
|
@@ -6617,7 +6746,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6617
6746
|
// Cross-browser bind equivalent that works at least back to IE6
|
6618
6747
|
function bindMethod(obj, methodName) {
|
6619
6748
|
var method = obj[methodName];
|
6620
|
-
if (typeof method.bind ===
|
6749
|
+
if (typeof method.bind === 'function') return method.bind(obj);
|
6621
6750
|
else try {
|
6622
6751
|
return Function.prototype.bind.call(method, obj);
|
6623
6752
|
} catch (e) {
|
@@ -6645,11 +6774,11 @@ var $5267f0d63de538ba$exports = {};
|
|
6645
6774
|
// Build the best logging method possible for this env
|
6646
6775
|
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
6647
6776
|
function realMethod(methodName) {
|
6648
|
-
if (methodName ===
|
6777
|
+
if (methodName === 'debug') methodName = 'log';
|
6649
6778
|
if (typeof console === undefinedType) return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
6650
|
-
else if (methodName ===
|
6779
|
+
else if (methodName === 'trace' && isIE) return traceForIE;
|
6651
6780
|
else if (console[methodName] !== undefined) return bindMethod(console, methodName);
|
6652
|
-
else if (console.log !== undefined) return bindMethod(console,
|
6781
|
+
else if (console.log !== undefined) return bindMethod(console, 'log');
|
6653
6782
|
else return noop;
|
6654
6783
|
}
|
6655
6784
|
// These private functions always need `this` to be set properly
|
@@ -6705,7 +6834,7 @@ var $5267f0d63de538ba$exports = {};
|
|
6705
6834
|
if (typeof name === "string") storageKey += ":" + name;
|
6706
6835
|
else if (typeof name === "symbol") storageKey = undefined;
|
6707
6836
|
function persistLevelIfPossible(levelNum) {
|
6708
|
-
var levelName = (logMethods[levelNum] ||
|
6837
|
+
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
6709
6838
|
if (typeof window === undefinedType || !storageKey) return;
|
6710
6839
|
// Use localStorage if available
|
6711
6840
|
try {
|
@@ -6823,18 +6952,18 @@ var $5267f0d63de538ba$exports = {};
|
|
6823
6952
|
return _loggersByName;
|
6824
6953
|
};
|
6825
6954
|
// ES6 default export, for compatibility
|
6826
|
-
defaultLogger[
|
6955
|
+
defaultLogger['default'] = defaultLogger;
|
6827
6956
|
return defaultLogger;
|
6828
6957
|
});
|
6829
6958
|
|
6830
6959
|
|
6831
6960
|
var $1ffebed09abdb92f$exports = {};
|
6832
6961
|
(function(root, factory) {
|
6833
|
-
if (typeof define ===
|
6834
|
-
else if (
|
6962
|
+
if (typeof define === 'function' && define.amd) define(factory);
|
6963
|
+
else if ($1ffebed09abdb92f$exports) $1ffebed09abdb92f$exports = factory();
|
6835
6964
|
else root.prefix = factory(root);
|
6836
6965
|
})($1ffebed09abdb92f$exports, function(root) {
|
6837
|
-
|
6966
|
+
'use strict';
|
6838
6967
|
var merge = function(target) {
|
6839
6968
|
var i = 1;
|
6840
6969
|
var length = arguments.length;
|
@@ -6845,37 +6974,37 @@ var $1ffebed09abdb92f$exports = {};
|
|
6845
6974
|
return target;
|
6846
6975
|
};
|
6847
6976
|
var defaults = {
|
6848
|
-
template:
|
6977
|
+
template: '[%t] %l:',
|
6849
6978
|
levelFormatter: function(level) {
|
6850
6979
|
return level.toUpperCase();
|
6851
6980
|
},
|
6852
6981
|
nameFormatter: function(name) {
|
6853
|
-
return name ||
|
6982
|
+
return name || 'root';
|
6854
6983
|
},
|
6855
6984
|
timestampFormatter: function(date) {
|
6856
|
-
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,
|
6985
|
+
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1');
|
6857
6986
|
},
|
6858
6987
|
format: undefined
|
6859
6988
|
};
|
6860
6989
|
var loglevel;
|
6861
6990
|
var configs = {};
|
6862
6991
|
var reg = function(rootLogger) {
|
6863
|
-
if (!rootLogger || !rootLogger.getLogger) throw new TypeError(
|
6992
|
+
if (!rootLogger || !rootLogger.getLogger) throw new TypeError('Argument is not a root logger');
|
6864
6993
|
loglevel = rootLogger;
|
6865
6994
|
};
|
6866
6995
|
var apply = function(logger, config) {
|
6867
|
-
if (!logger || !logger.setLevel) throw new TypeError(
|
6996
|
+
if (!logger || !logger.setLevel) throw new TypeError('Argument is not a logger');
|
6868
6997
|
/* eslint-disable vars-on-top */ var originalFactory = logger.methodFactory;
|
6869
|
-
var name = logger.name ||
|
6870
|
-
var parent = configs[name] || configs[
|
6998
|
+
var name = logger.name || '';
|
6999
|
+
var parent = configs[name] || configs[''] || defaults;
|
6871
7000
|
/* eslint-enable vars-on-top */ function methodFactory(methodName, logLevel, loggerName) {
|
6872
7001
|
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(
|
7002
|
+
var options = configs[loggerName] || configs[''];
|
7003
|
+
var hasTimestamp = options.template.indexOf('%t') !== -1;
|
7004
|
+
var hasLevel = options.template.indexOf('%l') !== -1;
|
7005
|
+
var hasName = options.template.indexOf('%n') !== -1;
|
6877
7006
|
return function() {
|
6878
|
-
var content =
|
7007
|
+
var content = '';
|
6879
7008
|
var length = arguments.length;
|
6880
7009
|
var args = Array(length);
|
6881
7010
|
var key = 0;
|
@@ -6892,8 +7021,8 @@ var $1ffebed09abdb92f$exports = {};
|
|
6892
7021
|
if (hasLevel) content = content.replace(/%l/, level);
|
6893
7022
|
if (hasName) content = content.replace(/%n/, lname);
|
6894
7023
|
}
|
6895
|
-
if (args.length && typeof args[0] ===
|
6896
|
-
args[0] = content +
|
7024
|
+
if (args.length && typeof args[0] === 'string') // concat prefix with first argument to support string substitutions
|
7025
|
+
args[0] = content + ' ' + args[0];
|
6897
7026
|
else args.unshift(content);
|
6898
7027
|
}
|
6899
7028
|
originalMethod.apply(undefined, args);
|
@@ -6905,7 +7034,7 @@ var $1ffebed09abdb92f$exports = {};
|
|
6905
7034
|
if (config.template) config.format = undefined;
|
6906
7035
|
configs[name] = merge({}, parent, config);
|
6907
7036
|
logger.setLevel(logger.getLevel());
|
6908
|
-
if (!loglevel) logger.warn(
|
7037
|
+
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
7038
|
return logger;
|
6910
7039
|
};
|
6911
7040
|
var api = {
|
@@ -7760,11 +7889,14 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7760
7889
|
* `callback` is executed at the proper times in `throttle` and `end`
|
7761
7890
|
* debounce modes.
|
7762
7891
|
*/ var timeoutID;
|
7763
|
-
var cancelled = false;
|
7764
|
-
|
7892
|
+
var cancelled = false;
|
7893
|
+
// Keep track of the last time `callback` was executed.
|
7894
|
+
var lastExec = 0;
|
7895
|
+
// Function to clear existing timeout
|
7765
7896
|
function clearExistingTimeout() {
|
7766
7897
|
if (timeoutID) clearTimeout(timeoutID);
|
7767
|
-
}
|
7898
|
+
}
|
7899
|
+
// Function to cancel next exec
|
7768
7900
|
function cancel(options) {
|
7769
7901
|
var _ref2 = options || {}, _ref2$upcomingOnly = _ref2.upcomingOnly, upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
7770
7902
|
clearExistingTimeout();
|
@@ -7779,7 +7911,7 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7779
7911
|
var self = this;
|
7780
7912
|
var elapsed = Date.now() - lastExec;
|
7781
7913
|
if (cancelled) return;
|
7782
|
-
|
7914
|
+
// Execute `callback` and update the `lastExec` timestamp.
|
7783
7915
|
function exec() {
|
7784
7916
|
lastExec = Date.now();
|
7785
7917
|
callback.apply(self, arguments_);
|
@@ -7820,7 +7952,8 @@ var $7d6b1fa982d8364d$exports = {};
|
|
7820
7952
|
* execute after `delay` ms.
|
7821
7953
|
*/ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
7822
7954
|
}
|
7823
|
-
wrapper.cancel = cancel;
|
7955
|
+
wrapper.cancel = cancel;
|
7956
|
+
// Return the wrapper function.
|
7824
7957
|
return wrapper;
|
7825
7958
|
}
|
7826
7959
|
/* eslint-disable no-undefined */ /**
|
@@ -8026,7 +8159,17 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
8026
8159
|
}
|
8027
8160
|
|
8028
8161
|
|
8029
|
-
var $
|
8162
|
+
var $88dfd91701b4cd8b$exports = {};
|
8163
|
+
var $99486586f6691564$exports = {};
|
8164
|
+
|
8165
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
8166
|
+
|
8167
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
8168
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
8169
|
+
return {};
|
8170
|
+
}
|
8171
|
+
|
8172
|
+
|
8030
8173
|
var $cbd28b10fa9798c7$exports = {};
|
8031
8174
|
|
8032
8175
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -8037,13 +8180,13 @@ $parcel$export($cbd28b10fa9798c7$exports, "default", () => $cbd28b10fa9798c7$exp
|
|
8037
8180
|
* (c) 2017-2021 atomiks
|
8038
8181
|
* MIT License
|
8039
8182
|
*/ function $59d97a6bab2b727e$export$2e2bcd8739ae039(element) {
|
8040
|
-
return element ? (element.nodeName ||
|
8183
|
+
return element ? (element.nodeName || '').toLowerCase() : null;
|
8041
8184
|
}
|
8042
8185
|
|
8043
8186
|
|
8044
8187
|
function $f41f4520bee001a7$export$2e2bcd8739ae039(node) {
|
8045
8188
|
if (node == null) return window;
|
8046
|
-
if (node.toString() !==
|
8189
|
+
if (node.toString() !== '[object Window]') {
|
8047
8190
|
var ownerDocument = node.ownerDocument;
|
8048
8191
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
8049
8192
|
}
|
@@ -8061,7 +8204,7 @@ function $1fa2a5446b18c455$export$1b3bfaa9684536aa(node) {
|
|
8061
8204
|
}
|
8062
8205
|
function $1fa2a5446b18c455$export$af51f0f06c0f328a(node) {
|
8063
8206
|
// IE 11 has no ShadowRoot
|
8064
|
-
if (typeof ShadowRoot ===
|
8207
|
+
if (typeof ShadowRoot === 'undefined') return false;
|
8065
8208
|
var OwnElement = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(node).ShadowRoot;
|
8066
8209
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
8067
8210
|
}
|
@@ -8082,7 +8225,7 @@ function $dfb41fce0bddd2d8$var$applyStyles(_ref) {
|
|
8082
8225
|
Object.keys(attributes).forEach(function(name) {
|
8083
8226
|
var value = attributes[name];
|
8084
8227
|
if (value === false) element.removeAttribute(name);
|
8085
|
-
else element.setAttribute(name, value === true ?
|
8228
|
+
else element.setAttribute(name, value === true ? '' : value);
|
8086
8229
|
});
|
8087
8230
|
});
|
8088
8231
|
}
|
@@ -8091,12 +8234,12 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8091
8234
|
var initialStyles = {
|
8092
8235
|
popper: {
|
8093
8236
|
position: state.options.strategy,
|
8094
|
-
left:
|
8095
|
-
top:
|
8096
|
-
margin:
|
8237
|
+
left: '0',
|
8238
|
+
top: '0',
|
8239
|
+
margin: '0'
|
8097
8240
|
},
|
8098
8241
|
arrow: {
|
8099
|
-
position:
|
8242
|
+
position: 'absolute'
|
8100
8243
|
},
|
8101
8244
|
reference: {}
|
8102
8245
|
};
|
@@ -8109,7 +8252,7 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8109
8252
|
var attributes = state.attributes[name] || {};
|
8110
8253
|
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
|
8111
8254
|
var style = styleProperties.reduce(function(style, property) {
|
8112
|
-
style[property] =
|
8255
|
+
style[property] = '';
|
8113
8256
|
return style;
|
8114
8257
|
}, {}); // arrow is optional + virtual elements
|
8115
8258
|
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || !(0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element)) return;
|
@@ -8121,13 +8264,13 @@ function $dfb41fce0bddd2d8$var$effect(_ref2) {
|
|
8121
8264
|
};
|
8122
8265
|
} // eslint-disable-next-line import/no-unused-modules
|
8123
8266
|
var $dfb41fce0bddd2d8$export$2e2bcd8739ae039 = {
|
8124
|
-
name:
|
8267
|
+
name: 'applyStyles',
|
8125
8268
|
enabled: true,
|
8126
|
-
phase:
|
8269
|
+
phase: 'write',
|
8127
8270
|
fn: $dfb41fce0bddd2d8$var$applyStyles,
|
8128
8271
|
effect: $dfb41fce0bddd2d8$var$effect,
|
8129
8272
|
requires: [
|
8130
|
-
|
8273
|
+
'computeStyles'
|
8131
8274
|
]
|
8132
8275
|
};
|
8133
8276
|
|
@@ -8142,7 +8285,7 @@ function $beb42d7aceecf8c8$export$2e2bcd8739ae039() {
|
|
8142
8285
|
var uaData = navigator.userAgentData;
|
8143
8286
|
if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) return uaData.brands.map(function(item) {
|
8144
8287
|
return item.brand + "/" + item.version;
|
8145
|
-
}).join(
|
8288
|
+
}).join(' ');
|
8146
8289
|
return navigator.userAgent;
|
8147
8290
|
}
|
8148
8291
|
|
@@ -8268,7 +8411,7 @@ function $a195ad21b1cffe79$export$2e2bcd8739ae039(elementOrVirtualElement, offse
|
|
8268
8411
|
y: 0
|
8269
8412
|
};
|
8270
8413
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
8271
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !==
|
8414
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
8272
8415
|
(0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(documentElement)) scroll = (0, $40149fb4267f270e$export$2e2bcd8739ae039)(offsetParent);
|
8273
8416
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(offsetParent)) {
|
8274
8417
|
offsets = (0, $b854957821c00430$export$2e2bcd8739ae039)(offsetParent, true);
|
@@ -8306,7 +8449,7 @@ function $e287ac773d355028$export$2e2bcd8739ae039(element) {
|
|
8306
8449
|
|
8307
8450
|
|
8308
8451
|
function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
8309
|
-
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) ===
|
8452
|
+
if ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element) === 'html') return element;
|
8310
8453
|
return(// $FlowFixMe[incompatible-return]
|
8311
8454
|
// $FlowFixMe[prop-missing]
|
8312
8455
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
@@ -8322,9 +8465,9 @@ function $b1adb38089003474$export$2e2bcd8739ae039(element) {
|
|
8322
8465
|
|
8323
8466
|
function $8fec37e99f881747$export$2e2bcd8739ae039(node) {
|
8324
8467
|
if ([
|
8325
|
-
|
8326
|
-
|
8327
|
-
|
8468
|
+
'html',
|
8469
|
+
'body',
|
8470
|
+
'#document'
|
8328
8471
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(node)) >= 0) // $FlowFixMe[incompatible-return]: assume body is always available
|
8329
8472
|
return node.ownerDocument.body;
|
8330
8473
|
if ((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(node) && (0, $d0e76ea5ac4d8fe1$export$2e2bcd8739ae039)(node)) return node;
|
@@ -8356,9 +8499,9 @@ function $f14b4e1cd31512ee$export$2e2bcd8739ae039(element, list) {
|
|
8356
8499
|
|
8357
8500
|
function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
8358
8501
|
return [
|
8359
|
-
|
8360
|
-
|
8361
|
-
|
8502
|
+
'table',
|
8503
|
+
'td',
|
8504
|
+
'th'
|
8362
8505
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(element)) >= 0;
|
8363
8506
|
}
|
8364
8507
|
|
@@ -8367,7 +8510,7 @@ function $b7f6a1d3d9524a70$export$2e2bcd8739ae039(element) {
|
|
8367
8510
|
|
8368
8511
|
function $4acba801a6bfbaa3$var$getTrueOffsetParent(element) {
|
8369
8512
|
if (!(0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) || // https://github.com/popperjs/popper-core/issues/837
|
8370
|
-
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position ===
|
8513
|
+
(0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position === 'fixed') return null;
|
8371
8514
|
return element.offsetParent;
|
8372
8515
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
8373
8516
|
// return the containing block
|
@@ -8377,21 +8520,21 @@ function $4acba801a6bfbaa3$var$getContainingBlock(element) {
|
|
8377
8520
|
if (isIE && (0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element)) {
|
8378
8521
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
8379
8522
|
var elementCss = (0, $392247934674b5b4$export$2e2bcd8739ae039)(element);
|
8380
|
-
if (elementCss.position ===
|
8523
|
+
if (elementCss.position === 'fixed') return null;
|
8381
8524
|
}
|
8382
8525
|
var currentNode = (0, $b1adb38089003474$export$2e2bcd8739ae039)(element);
|
8383
8526
|
if ((0, $1fa2a5446b18c455$export$af51f0f06c0f328a)(currentNode)) currentNode = currentNode.host;
|
8384
8527
|
while((0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(currentNode) && [
|
8385
|
-
|
8386
|
-
|
8528
|
+
'html',
|
8529
|
+
'body'
|
8387
8530
|
].indexOf((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(currentNode)) < 0){
|
8388
8531
|
var css = (0, $392247934674b5b4$export$2e2bcd8739ae039)(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
8389
8532
|
// create a containing block.
|
8390
8533
|
// 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 ===
|
8534
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || [
|
8535
|
+
'transform',
|
8536
|
+
'perspective'
|
8537
|
+
].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') return currentNode;
|
8395
8538
|
else currentNode = currentNode.parentNode;
|
8396
8539
|
}
|
8397
8540
|
return null;
|
@@ -8399,29 +8542,29 @@ function $4acba801a6bfbaa3$var$getContainingBlock(element) {
|
|
8399
8542
|
function $4acba801a6bfbaa3$export$2e2bcd8739ae039(element) {
|
8400
8543
|
var window = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(element);
|
8401
8544
|
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) ===
|
8545
|
+
while(offsetParent && (0, $b7f6a1d3d9524a70$export$2e2bcd8739ae039)(offsetParent) && (0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position === 'static')offsetParent = $4acba801a6bfbaa3$var$getTrueOffsetParent(offsetParent);
|
8546
|
+
if (offsetParent && ((0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) === 'html' || (0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(offsetParent) === 'body' && (0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position === 'static')) return window;
|
8404
8547
|
return offsetParent || $4acba801a6bfbaa3$var$getContainingBlock(element) || window;
|
8405
8548
|
}
|
8406
8549
|
|
8407
8550
|
|
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 =
|
8551
|
+
var $9b56e55559dfbda1$export$1e95b668f3b82d = 'top';
|
8552
|
+
var $9b56e55559dfbda1$export$40e543e69a8b3fbb = 'bottom';
|
8553
|
+
var $9b56e55559dfbda1$export$79ffe56a765070d2 = 'right';
|
8554
|
+
var $9b56e55559dfbda1$export$eabcd2c8791e7bf4 = 'left';
|
8555
|
+
var $9b56e55559dfbda1$export$dfb5619354ba860 = 'auto';
|
8413
8556
|
var $9b56e55559dfbda1$export$aec2ce47c367b8c3 = [
|
8414
8557
|
$9b56e55559dfbda1$export$1e95b668f3b82d,
|
8415
8558
|
$9b56e55559dfbda1$export$40e543e69a8b3fbb,
|
8416
8559
|
$9b56e55559dfbda1$export$79ffe56a765070d2,
|
8417
8560
|
$9b56e55559dfbda1$export$eabcd2c8791e7bf4
|
8418
8561
|
];
|
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 =
|
8562
|
+
var $9b56e55559dfbda1$export$b3571188c770cc5a = 'start';
|
8563
|
+
var $9b56e55559dfbda1$export$bd5df0f255a350f8 = 'end';
|
8564
|
+
var $9b56e55559dfbda1$export$390fd549c5303b4d = 'clippingParents';
|
8565
|
+
var $9b56e55559dfbda1$export$d7b7311ec04a3e8f = 'viewport';
|
8566
|
+
var $9b56e55559dfbda1$export$ae5ab1c730825774 = 'popper';
|
8567
|
+
var $9b56e55559dfbda1$export$ca50aac9f3ba507f = 'reference';
|
8425
8568
|
var $9b56e55559dfbda1$export$368f9a87e87fa4e1 = /*#__PURE__*/ $9b56e55559dfbda1$export$aec2ce47c367b8c3.reduce(function(acc, placement) {
|
8426
8569
|
return acc.concat([
|
8427
8570
|
placement + "-" + $9b56e55559dfbda1$export$b3571188c770cc5a,
|
@@ -8437,15 +8580,15 @@ var $9b56e55559dfbda1$export$803cd8101b6c182b = /*#__PURE__*/ [].concat($9b56e55
|
|
8437
8580
|
placement + "-" + $9b56e55559dfbda1$export$bd5df0f255a350f8
|
8438
8581
|
]);
|
8439
8582
|
}, []); // 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 =
|
8583
|
+
var $9b56e55559dfbda1$export$421679a7c3d56e = 'beforeRead';
|
8584
|
+
var $9b56e55559dfbda1$export$aafa59e2e03f2942 = 'read';
|
8585
|
+
var $9b56e55559dfbda1$export$6964f6c886723980 = 'afterRead'; // pure-logic modifiers
|
8586
|
+
var $9b56e55559dfbda1$export$c65e99957a05207c = 'beforeMain';
|
8587
|
+
var $9b56e55559dfbda1$export$f22da7240b7add18 = 'main';
|
8588
|
+
var $9b56e55559dfbda1$export$bab79516f2d662fe = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
|
8589
|
+
var $9b56e55559dfbda1$export$8d4d2d70e7d46032 = 'beforeWrite';
|
8590
|
+
var $9b56e55559dfbda1$export$68d8715fc104d294 = 'write';
|
8591
|
+
var $9b56e55559dfbda1$export$70a6e5159acce2e6 = 'afterWrite';
|
8449
8592
|
var $9b56e55559dfbda1$export$d087d3878fdf71d5 = [
|
8450
8593
|
$9b56e55559dfbda1$export$421679a7c3d56e,
|
8451
8594
|
$9b56e55559dfbda1$export$aafa59e2e03f2942,
|
@@ -8526,14 +8669,14 @@ function $6af99e74d4c8a734$export$2e2bcd8739ae039(modifiers) {
|
|
8526
8669
|
|
8527
8670
|
|
8528
8671
|
var $8e357be334f3fad9$var$DEFAULT_OPTIONS = {
|
8529
|
-
placement:
|
8672
|
+
placement: 'bottom',
|
8530
8673
|
modifiers: [],
|
8531
|
-
strategy:
|
8674
|
+
strategy: 'absolute'
|
8532
8675
|
};
|
8533
8676
|
function $8e357be334f3fad9$var$areValidElements() {
|
8534
8677
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
8535
8678
|
return !args.some(function(element) {
|
8536
|
-
return !(element && typeof element.getBoundingClientRect ===
|
8679
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
8537
8680
|
});
|
8538
8681
|
}
|
8539
8682
|
function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
@@ -8542,7 +8685,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8542
8685
|
return function createPopper(reference, popper, options) {
|
8543
8686
|
if (options === void 0) options = defaultOptions;
|
8544
8687
|
var state = {
|
8545
|
-
placement:
|
8688
|
+
placement: 'bottom',
|
8546
8689
|
orderedModifiers: [],
|
8547
8690
|
options: Object.assign({}, $8e357be334f3fad9$var$DEFAULT_OPTIONS, defaultOptions),
|
8548
8691
|
modifiersData: {},
|
@@ -8558,7 +8701,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8558
8701
|
var instance = {
|
8559
8702
|
state: state,
|
8560
8703
|
setOptions: function setOptions(setOptionsAction) {
|
8561
|
-
var options = typeof setOptionsAction ===
|
8704
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
8562
8705
|
cleanupModifierEffects();
|
8563
8706
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
8564
8707
|
state.scrollParents = {
|
@@ -8585,7 +8728,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8585
8728
|
if (!$8e357be334f3fad9$var$areValidElements(reference, popper)) return;
|
8586
8729
|
// Store the reference and popper rects to be read by modifiers
|
8587
8730
|
state.rects = {
|
8588
|
-
reference: (0, $a195ad21b1cffe79$export$2e2bcd8739ae039)(reference, (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper), state.options.strategy ===
|
8731
|
+
reference: (0, $a195ad21b1cffe79$export$2e2bcd8739ae039)(reference, (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper), state.options.strategy === 'fixed'),
|
8589
8732
|
popper: (0, $e287ac773d355028$export$2e2bcd8739ae039)(popper)
|
8590
8733
|
}; // Modifiers have the ability to reset the current update cycle. The
|
8591
8734
|
// most common use case for this is the `flip` modifier changing the
|
@@ -8607,7 +8750,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8607
8750
|
continue;
|
8608
8751
|
}
|
8609
8752
|
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 ===
|
8753
|
+
if (typeof fn === 'function') state = fn({
|
8611
8754
|
state: state,
|
8612
8755
|
options: _options,
|
8613
8756
|
name: name,
|
@@ -8639,7 +8782,7 @@ function $8e357be334f3fad9$export$ed5e13716264f202(generatorOptions) {
|
|
8639
8782
|
function runModifierEffects() {
|
8640
8783
|
state.orderedModifiers.forEach(function(_ref) {
|
8641
8784
|
var name = _ref.name, _ref$options = _ref.options, options = _ref$options === void 0 ? {} : _ref$options, effect = _ref.effect;
|
8642
|
-
if (typeof effect ===
|
8785
|
+
if (typeof effect === 'function') {
|
8643
8786
|
var cleanupFn = effect({
|
8644
8787
|
state: state,
|
8645
8788
|
name: name,
|
@@ -8673,20 +8816,20 @@ function $e3348dc516600e8b$var$effect(_ref) {
|
|
8673
8816
|
var window = (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(state.elements.popper);
|
8674
8817
|
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
|
8675
8818
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
8676
|
-
scrollParent.addEventListener(
|
8819
|
+
scrollParent.addEventListener('scroll', instance.update, $e3348dc516600e8b$var$passive);
|
8677
8820
|
});
|
8678
|
-
if (resize) window.addEventListener(
|
8821
|
+
if (resize) window.addEventListener('resize', instance.update, $e3348dc516600e8b$var$passive);
|
8679
8822
|
return function() {
|
8680
8823
|
if (scroll) scrollParents.forEach(function(scrollParent) {
|
8681
|
-
scrollParent.removeEventListener(
|
8824
|
+
scrollParent.removeEventListener('scroll', instance.update, $e3348dc516600e8b$var$passive);
|
8682
8825
|
});
|
8683
|
-
if (resize) window.removeEventListener(
|
8826
|
+
if (resize) window.removeEventListener('resize', instance.update, $e3348dc516600e8b$var$passive);
|
8684
8827
|
};
|
8685
8828
|
} // eslint-disable-next-line import/no-unused-modules
|
8686
8829
|
var $e3348dc516600e8b$export$2e2bcd8739ae039 = {
|
8687
|
-
name:
|
8830
|
+
name: 'eventListeners',
|
8688
8831
|
enabled: true,
|
8689
|
-
phase:
|
8832
|
+
phase: 'write',
|
8690
8833
|
fn: function fn() {},
|
8691
8834
|
effect: $e3348dc516600e8b$var$effect,
|
8692
8835
|
data: {}
|
@@ -8695,20 +8838,20 @@ var $e3348dc516600e8b$export$2e2bcd8739ae039 = {
|
|
8695
8838
|
|
8696
8839
|
|
8697
8840
|
function $923eec132c8d334b$export$2e2bcd8739ae039(placement) {
|
8698
|
-
return placement.split(
|
8841
|
+
return placement.split('-')[0];
|
8699
8842
|
}
|
8700
8843
|
|
8701
8844
|
|
8702
8845
|
function $6572b8fb6297a772$export$2e2bcd8739ae039(placement) {
|
8703
|
-
return placement.split(
|
8846
|
+
return placement.split('-')[1];
|
8704
8847
|
}
|
8705
8848
|
|
8706
8849
|
|
8707
8850
|
function $d388da57f90fb762$export$2e2bcd8739ae039(placement) {
|
8708
8851
|
return [
|
8709
|
-
|
8710
|
-
|
8711
|
-
].indexOf(placement) >= 0 ?
|
8852
|
+
'top',
|
8853
|
+
'bottom'
|
8854
|
+
].indexOf(placement) >= 0 ? 'x' : 'y';
|
8712
8855
|
}
|
8713
8856
|
|
8714
8857
|
|
@@ -8753,7 +8896,7 @@ function $05d4a7bd7e0110bf$export$2e2bcd8739ae039(_ref) {
|
|
8753
8896
|
}
|
8754
8897
|
var mainAxis = basePlacement ? (0, $d388da57f90fb762$export$2e2bcd8739ae039)(basePlacement) : null;
|
8755
8898
|
if (mainAxis != null) {
|
8756
|
-
var len = mainAxis ===
|
8899
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
8757
8900
|
switch(variation){
|
8758
8901
|
case 0, $9b56e55559dfbda1$export$b3571188c770cc5a:
|
8759
8902
|
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
@@ -8777,14 +8920,14 @@ function $4aa27a7a3db85746$var$popperOffsets(_ref) {
|
|
8777
8920
|
state.modifiersData[name] = (0, $05d4a7bd7e0110bf$export$2e2bcd8739ae039)({
|
8778
8921
|
reference: state.rects.reference,
|
8779
8922
|
element: state.rects.popper,
|
8780
|
-
strategy:
|
8923
|
+
strategy: 'absolute',
|
8781
8924
|
placement: state.placement
|
8782
8925
|
});
|
8783
8926
|
} // eslint-disable-next-line import/no-unused-modules
|
8784
8927
|
var $4aa27a7a3db85746$export$2e2bcd8739ae039 = {
|
8785
|
-
name:
|
8928
|
+
name: 'popperOffsets',
|
8786
8929
|
enabled: true,
|
8787
|
-
phase:
|
8930
|
+
phase: 'read',
|
8788
8931
|
fn: $4aa27a7a3db85746$var$popperOffsets,
|
8789
8932
|
data: {}
|
8790
8933
|
};
|
@@ -8799,10 +8942,10 @@ var $4aa27a7a3db85746$export$2e2bcd8739ae039 = {
|
|
8799
8942
|
|
8800
8943
|
|
8801
8944
|
var $03e421bdaa8eda14$var$unsetSides = {
|
8802
|
-
top:
|
8803
|
-
right:
|
8804
|
-
bottom:
|
8805
|
-
left:
|
8945
|
+
top: 'auto',
|
8946
|
+
right: 'auto',
|
8947
|
+
bottom: 'auto',
|
8948
|
+
left: 'auto'
|
8806
8949
|
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
|
8807
8950
|
// Zooming can change the DPR, but it seems to report a value that will
|
8808
8951
|
// cleanly divide the values into the appropriate subpixels.
|
@@ -8818,7 +8961,7 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8818
8961
|
var _Object$assign2;
|
8819
8962
|
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
8963
|
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 ===
|
8964
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
8822
8965
|
x: x,
|
8823
8966
|
y: y
|
8824
8967
|
}) : {
|
@@ -8827,20 +8970,20 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8827
8970
|
};
|
8828
8971
|
x = _ref3.x;
|
8829
8972
|
y = _ref3.y;
|
8830
|
-
var hasX = offsets.hasOwnProperty(
|
8831
|
-
var hasY = offsets.hasOwnProperty(
|
8973
|
+
var hasX = offsets.hasOwnProperty('x');
|
8974
|
+
var hasY = offsets.hasOwnProperty('y');
|
8832
8975
|
var sideX = (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
8833
8976
|
var sideY = (0, $9b56e55559dfbda1$export$1e95b668f3b82d);
|
8834
8977
|
var win = window;
|
8835
8978
|
if (adaptive) {
|
8836
8979
|
var offsetParent = (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(popper);
|
8837
|
-
var heightProp =
|
8838
|
-
var widthProp =
|
8980
|
+
var heightProp = 'clientHeight';
|
8981
|
+
var widthProp = 'clientWidth';
|
8839
8982
|
if (offsetParent === (0, $f41f4520bee001a7$export$2e2bcd8739ae039)(popper)) {
|
8840
8983
|
offsetParent = (0, $3e02d6708e2a16ac$export$2e2bcd8739ae039)(popper);
|
8841
|
-
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position !==
|
8842
|
-
heightProp =
|
8843
|
-
widthProp =
|
8984
|
+
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(offsetParent).position !== 'static' && position === 'absolute') {
|
8985
|
+
heightProp = 'scrollHeight';
|
8986
|
+
widthProp = 'scrollWidth';
|
8844
8987
|
}
|
8845
8988
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
8846
8989
|
offsetParent;
|
@@ -8871,9 +9014,9 @@ function $03e421bdaa8eda14$export$378fa78a8fea596f(_ref2) {
|
|
8871
9014
|
y = _ref4.y;
|
8872
9015
|
if (gpuAcceleration) {
|
8873
9016
|
var _Object$assign;
|
8874
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ?
|
9017
|
+
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
9018
|
}
|
8876
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" :
|
9019
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
8877
9020
|
}
|
8878
9021
|
function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
8879
9022
|
var state = _ref5.state, options = _ref5.options;
|
@@ -8884,7 +9027,7 @@ function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
|
8884
9027
|
popper: state.elements.popper,
|
8885
9028
|
popperRect: state.rects.popper,
|
8886
9029
|
gpuAcceleration: gpuAcceleration,
|
8887
|
-
isFixed: state.options.strategy ===
|
9030
|
+
isFixed: state.options.strategy === 'fixed'
|
8888
9031
|
};
|
8889
9032
|
if (state.modifiersData.popperOffsets != null) state.styles.popper = Object.assign({}, state.styles.popper, $03e421bdaa8eda14$export$378fa78a8fea596f(Object.assign({}, commonStyles, {
|
8890
9033
|
offsets: state.modifiersData.popperOffsets,
|
@@ -8894,18 +9037,18 @@ function $03e421bdaa8eda14$var$computeStyles(_ref5) {
|
|
8894
9037
|
})));
|
8895
9038
|
if (state.modifiersData.arrow != null) state.styles.arrow = Object.assign({}, state.styles.arrow, $03e421bdaa8eda14$export$378fa78a8fea596f(Object.assign({}, commonStyles, {
|
8896
9039
|
offsets: state.modifiersData.arrow,
|
8897
|
-
position:
|
9040
|
+
position: 'absolute',
|
8898
9041
|
adaptive: false,
|
8899
9042
|
roundOffsets: roundOffsets
|
8900
9043
|
})));
|
8901
9044
|
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
8902
|
-
|
9045
|
+
'data-popper-placement': state.placement
|
8903
9046
|
});
|
8904
9047
|
} // eslint-disable-next-line import/no-unused-modules
|
8905
9048
|
var $03e421bdaa8eda14$export$2e2bcd8739ae039 = {
|
8906
|
-
name:
|
9049
|
+
name: 'computeStyles',
|
8907
9050
|
enabled: true,
|
8908
|
-
phase:
|
9051
|
+
phase: 'beforeWrite',
|
8909
9052
|
fn: $03e421bdaa8eda14$var$computeStyles,
|
8910
9053
|
data: {}
|
8911
9054
|
};
|
@@ -8920,7 +9063,7 @@ function $b2dec03e76957d70$export$7fa02d8595b015ed(placement, rects, offset) {
|
|
8920
9063
|
(0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4),
|
8921
9064
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d)
|
8922
9065
|
].indexOf(basePlacement) >= 0 ? -1 : 1;
|
8923
|
-
var _ref = typeof offset ===
|
9066
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
8924
9067
|
placement: placement
|
8925
9068
|
})) : offset, skidding = _ref[0], distance = _ref[1];
|
8926
9069
|
skidding = skidding || 0;
|
@@ -8954,21 +9097,21 @@ function $b2dec03e76957d70$var$offset(_ref2) {
|
|
8954
9097
|
state.modifiersData[name] = data;
|
8955
9098
|
} // eslint-disable-next-line import/no-unused-modules
|
8956
9099
|
var $b2dec03e76957d70$export$2e2bcd8739ae039 = {
|
8957
|
-
name:
|
9100
|
+
name: 'offset',
|
8958
9101
|
enabled: true,
|
8959
|
-
phase:
|
9102
|
+
phase: 'main',
|
8960
9103
|
requires: [
|
8961
|
-
|
9104
|
+
'popperOffsets'
|
8962
9105
|
],
|
8963
9106
|
fn: $b2dec03e76957d70$var$offset
|
8964
9107
|
};
|
8965
9108
|
|
8966
9109
|
|
8967
9110
|
var $e21601d0082602f5$var$hash = {
|
8968
|
-
left:
|
8969
|
-
right:
|
8970
|
-
bottom:
|
8971
|
-
top:
|
9111
|
+
left: 'right',
|
9112
|
+
right: 'left',
|
9113
|
+
bottom: 'top',
|
9114
|
+
top: 'bottom'
|
8972
9115
|
};
|
8973
9116
|
function $e21601d0082602f5$export$2e2bcd8739ae039(placement) {
|
8974
9117
|
return placement.replace(/left|right|bottom|top/g, function(matched) {
|
@@ -8979,8 +9122,8 @@ function $e21601d0082602f5$export$2e2bcd8739ae039(placement) {
|
|
8979
9122
|
|
8980
9123
|
|
8981
9124
|
var $e23a845ff98433e2$var$hash = {
|
8982
|
-
start:
|
8983
|
-
end:
|
9125
|
+
start: 'end',
|
9126
|
+
end: 'start'
|
8984
9127
|
};
|
8985
9128
|
function $e23a845ff98433e2$export$2e2bcd8739ae039(placement) {
|
8986
9129
|
return placement.replace(/start|end/g, function(matched) {
|
@@ -9006,7 +9149,7 @@ function $ed6afea5d5a4d314$export$2e2bcd8739ae039(element, strategy) {
|
|
9006
9149
|
width = visualViewport.width;
|
9007
9150
|
height = visualViewport.height;
|
9008
9151
|
var layoutViewport = (0, $f6bdda075fc14cbf$export$2e2bcd8739ae039)();
|
9009
|
-
if (layoutViewport || !layoutViewport && strategy ===
|
9152
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
9010
9153
|
x = visualViewport.offsetLeft;
|
9011
9154
|
y = visualViewport.offsetTop;
|
9012
9155
|
}
|
@@ -9034,7 +9177,7 @@ function $048158ac5222e515$export$2e2bcd8739ae039(element) {
|
|
9034
9177
|
var height = (0, $a435872b5ba665df$export$8960430cfd85939f)(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
9035
9178
|
var x = -winScroll.scrollLeft + (0, $05804587c501a8a1$export$2e2bcd8739ae039)(element);
|
9036
9179
|
var y = -winScroll.scrollTop;
|
9037
|
-
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(body || html).direction ===
|
9180
|
+
if ((0, $392247934674b5b4$export$2e2bcd8739ae039)(body || html).direction === 'rtl') x += (0, $a435872b5ba665df$export$8960430cfd85939f)(html.clientWidth, body ? body.clientWidth : 0) - width;
|
9038
9181
|
return {
|
9039
9182
|
width: width,
|
9040
9183
|
height: height,
|
@@ -9080,7 +9223,7 @@ function $611b7cfc3d40c8f5$export$2e2bcd8739ae039(rect) {
|
|
9080
9223
|
|
9081
9224
|
|
9082
9225
|
function $1ae21a55ad42cc80$var$getInnerBoundingClientRect(element, strategy) {
|
9083
|
-
var rect = (0, $b854957821c00430$export$2e2bcd8739ae039)(element, false, strategy ===
|
9226
|
+
var rect = (0, $b854957821c00430$export$2e2bcd8739ae039)(element, false, strategy === 'fixed');
|
9084
9227
|
rect.top = rect.top + element.clientTop;
|
9085
9228
|
rect.left = rect.left + element.clientLeft;
|
9086
9229
|
rect.bottom = rect.top + element.clientHeight;
|
@@ -9099,18 +9242,18 @@ function $1ae21a55ad42cc80$var$getClientRectFromMixedType(element, clippingParen
|
|
9099
9242
|
function $1ae21a55ad42cc80$var$getClippingParents(element) {
|
9100
9243
|
var clippingParents = (0, $f14b4e1cd31512ee$export$2e2bcd8739ae039)((0, $b1adb38089003474$export$2e2bcd8739ae039)(element));
|
9101
9244
|
var canEscapeClipping = [
|
9102
|
-
|
9103
|
-
|
9245
|
+
'absolute',
|
9246
|
+
'fixed'
|
9104
9247
|
].indexOf((0, $392247934674b5b4$export$2e2bcd8739ae039)(element).position) >= 0;
|
9105
9248
|
var clipperElement = canEscapeClipping && (0, $1fa2a5446b18c455$export$1b3bfaa9684536aa)(element) ? (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(element) : element;
|
9106
9249
|
if (!(0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clipperElement)) return [];
|
9107
9250
|
// $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
9108
9251
|
return clippingParents.filter(function(clippingParent) {
|
9109
|
-
return (0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clippingParent) && (0, $d1f185f47d247fa7$export$2e2bcd8739ae039)(clippingParent, clipperElement) && (0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(clippingParent) !==
|
9252
|
+
return (0, $1fa2a5446b18c455$export$45a5e7f76e0caa8d)(clippingParent) && (0, $d1f185f47d247fa7$export$2e2bcd8739ae039)(clippingParent, clipperElement) && (0, $59d97a6bab2b727e$export$2e2bcd8739ae039)(clippingParent) !== 'body';
|
9110
9253
|
});
|
9111
9254
|
} // Gets the maximum area that the element is visible in due to any number of
|
9112
9255
|
function $1ae21a55ad42cc80$export$2e2bcd8739ae039(element, boundary, rootBoundary, strategy) {
|
9113
|
-
var mainClippingParents = boundary ===
|
9256
|
+
var mainClippingParents = boundary === 'clippingParents' ? $1ae21a55ad42cc80$var$getClippingParents(element) : [].concat(boundary);
|
9114
9257
|
var clippingParents = [].concat(mainClippingParents, [
|
9115
9258
|
rootBoundary
|
9116
9259
|
]);
|
@@ -9163,7 +9306,7 @@ function $f5b522f3e076d616$export$2e2bcd8739ae039(value, keys) {
|
|
9163
9306
|
function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
9164
9307
|
if (options === void 0) options = {};
|
9165
9308
|
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 !==
|
9309
|
+
var paddingObject = (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !== 'number' ? padding : (0, $f5b522f3e076d616$export$2e2bcd8739ae039)(padding, (0, $9b56e55559dfbda1$export$aec2ce47c367b8c3)));
|
9167
9310
|
var altContext = elementContext === (0, $9b56e55559dfbda1$export$ae5ab1c730825774) ? (0, $9b56e55559dfbda1$export$ca50aac9f3ba507f) : (0, $9b56e55559dfbda1$export$ae5ab1c730825774);
|
9168
9311
|
var popperRect = state.rects.popper;
|
9169
9312
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
@@ -9172,7 +9315,7 @@ function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
|
9172
9315
|
var popperOffsets = (0, $05d4a7bd7e0110bf$export$2e2bcd8739ae039)({
|
9173
9316
|
reference: referenceClientRect,
|
9174
9317
|
element: popperRect,
|
9175
|
-
strategy:
|
9318
|
+
strategy: 'absolute',
|
9176
9319
|
placement: placement
|
9177
9320
|
});
|
9178
9321
|
var popperClientRect = (0, $611b7cfc3d40c8f5$export$2e2bcd8739ae039)(Object.assign({}, popperRect, popperOffsets));
|
@@ -9195,7 +9338,7 @@ function $223e3075705edc49$export$2e2bcd8739ae039(state, options) {
|
|
9195
9338
|
var axis = [
|
9196
9339
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d),
|
9197
9340
|
(0, $9b56e55559dfbda1$export$40e543e69a8b3fbb)
|
9198
|
-
].indexOf(key) >= 0 ?
|
9341
|
+
].indexOf(key) >= 0 ? 'y' : 'x';
|
9199
9342
|
overflowOffsets[key] += offset[axis] * multiply;
|
9200
9343
|
});
|
9201
9344
|
}
|
@@ -9280,7 +9423,7 @@ function $d886080699dc4994$var$flip(_ref) {
|
|
9280
9423
|
(0, $9b56e55559dfbda1$export$1e95b668f3b82d),
|
9281
9424
|
(0, $9b56e55559dfbda1$export$40e543e69a8b3fbb)
|
9282
9425
|
].indexOf(_basePlacement) >= 0;
|
9283
|
-
var len = isVertical ?
|
9426
|
+
var len = isVertical ? 'width' : 'height';
|
9284
9427
|
var overflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9285
9428
|
placement: placement,
|
9286
9429
|
boundary: boundary,
|
@@ -9330,12 +9473,12 @@ function $d886080699dc4994$var$flip(_ref) {
|
|
9330
9473
|
}
|
9331
9474
|
} // eslint-disable-next-line import/no-unused-modules
|
9332
9475
|
var $d886080699dc4994$export$2e2bcd8739ae039 = {
|
9333
|
-
name:
|
9476
|
+
name: 'flip',
|
9334
9477
|
enabled: true,
|
9335
|
-
phase:
|
9478
|
+
phase: 'main',
|
9336
9479
|
fn: $d886080699dc4994$var$flip,
|
9337
9480
|
requiresIfExists: [
|
9338
|
-
|
9481
|
+
'offset'
|
9339
9482
|
],
|
9340
9483
|
data: {
|
9341
9484
|
_skip: false
|
@@ -9347,7 +9490,7 @@ var $d886080699dc4994$export$2e2bcd8739ae039 = {
|
|
9347
9490
|
|
9348
9491
|
|
9349
9492
|
function $635c62073241bcfb$export$2e2bcd8739ae039(axis) {
|
9350
|
-
return axis ===
|
9493
|
+
return axis === 'x' ? 'y' : 'x';
|
9351
9494
|
}
|
9352
9495
|
|
9353
9496
|
|
@@ -9384,10 +9527,10 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9384
9527
|
var popperOffsets = state.modifiersData.popperOffsets;
|
9385
9528
|
var referenceRect = state.rects.reference;
|
9386
9529
|
var popperRect = state.rects.popper;
|
9387
|
-
var tetherOffsetValue = typeof tetherOffset ===
|
9530
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
9388
9531
|
placement: state.placement
|
9389
9532
|
})) : tetherOffset;
|
9390
|
-
var normalizedTetherOffsetValue = typeof tetherOffsetValue ===
|
9533
|
+
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
9391
9534
|
mainAxis: tetherOffsetValue,
|
9392
9535
|
altAxis: tetherOffsetValue
|
9393
9536
|
} : Object.assign({
|
@@ -9402,9 +9545,9 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9402
9545
|
if (!popperOffsets) return;
|
9403
9546
|
if (checkMainAxis) {
|
9404
9547
|
var _offsetModifierState$;
|
9405
|
-
var mainSide = mainAxis ===
|
9406
|
-
var altSide = mainAxis ===
|
9407
|
-
var len = mainAxis ===
|
9548
|
+
var mainSide = mainAxis === 'y' ? (0, $9b56e55559dfbda1$export$1e95b668f3b82d) : (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
9549
|
+
var altSide = mainAxis === 'y' ? (0, $9b56e55559dfbda1$export$40e543e69a8b3fbb) : (0, $9b56e55559dfbda1$export$79ffe56a765070d2);
|
9550
|
+
var len = mainAxis === 'y' ? 'height' : 'width';
|
9408
9551
|
var offset = popperOffsets[mainAxis];
|
9409
9552
|
var min = offset + overflow[mainSide];
|
9410
9553
|
var max = offset - overflow[altSide];
|
@@ -9417,7 +9560,7 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9417
9560
|
width: 0,
|
9418
9561
|
height: 0
|
9419
9562
|
};
|
9420
|
-
var arrowPaddingObject = state.modifiersData[
|
9563
|
+
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : (0, $d245fd553c91b4b7$export$2e2bcd8739ae039)();
|
9421
9564
|
var arrowPaddingMin = arrowPaddingObject[mainSide];
|
9422
9565
|
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
|
9423
9566
|
// to include its full size in the calculation. If the reference is small
|
@@ -9428,7 +9571,7 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9428
9571
|
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
|
9429
9572
|
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
|
9430
9573
|
var arrowOffsetParent = state.elements.arrow && (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(state.elements.arrow);
|
9431
|
-
var clientOffset = arrowOffsetParent ? mainAxis ===
|
9574
|
+
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
9432
9575
|
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
9433
9576
|
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
|
9434
9577
|
var tetherMax = offset + maxOffset - offsetModifierValue;
|
@@ -9438,10 +9581,10 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9438
9581
|
}
|
9439
9582
|
if (checkAltAxis) {
|
9440
9583
|
var _offsetModifierState$2;
|
9441
|
-
var _mainSide = mainAxis ===
|
9442
|
-
var _altSide = mainAxis ===
|
9584
|
+
var _mainSide = mainAxis === 'x' ? (0, $9b56e55559dfbda1$export$1e95b668f3b82d) : (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
9585
|
+
var _altSide = mainAxis === 'x' ? (0, $9b56e55559dfbda1$export$40e543e69a8b3fbb) : (0, $9b56e55559dfbda1$export$79ffe56a765070d2);
|
9443
9586
|
var _offset = popperOffsets[altAxis];
|
9444
|
-
var _len = altAxis ===
|
9587
|
+
var _len = altAxis === 'y' ? 'height' : 'width';
|
9445
9588
|
var _min = _offset + overflow[_mainSide];
|
9446
9589
|
var _max = _offset - overflow[_altSide];
|
9447
9590
|
var isOriginSide = [
|
@@ -9458,12 +9601,12 @@ function $59ad2e7a9286a2b9$var$preventOverflow(_ref) {
|
|
9458
9601
|
state.modifiersData[name] = data;
|
9459
9602
|
} // eslint-disable-next-line import/no-unused-modules
|
9460
9603
|
var $59ad2e7a9286a2b9$export$2e2bcd8739ae039 = {
|
9461
|
-
name:
|
9604
|
+
name: 'preventOverflow',
|
9462
9605
|
enabled: true,
|
9463
|
-
phase:
|
9606
|
+
phase: 'main',
|
9464
9607
|
fn: $59ad2e7a9286a2b9$var$preventOverflow,
|
9465
9608
|
requiresIfExists: [
|
9466
|
-
|
9609
|
+
'offset'
|
9467
9610
|
]
|
9468
9611
|
};
|
9469
9612
|
|
@@ -9478,10 +9621,10 @@ var $59ad2e7a9286a2b9$export$2e2bcd8739ae039 = {
|
|
9478
9621
|
|
9479
9622
|
|
9480
9623
|
var $84962ce4645f8891$var$toPaddingObject = function toPaddingObject(padding, state) {
|
9481
|
-
padding = typeof padding ===
|
9624
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
9482
9625
|
placement: state.placement
|
9483
9626
|
})) : padding;
|
9484
|
-
return (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !==
|
9627
|
+
return (0, $4867192599152955$export$2e2bcd8739ae039)(typeof padding !== 'number' ? padding : (0, $f5b522f3e076d616$export$2e2bcd8739ae039)(padding, (0, $9b56e55559dfbda1$export$aec2ce47c367b8c3)));
|
9485
9628
|
};
|
9486
9629
|
function $84962ce4645f8891$var$arrow(_ref) {
|
9487
9630
|
var _state$modifiersData$;
|
@@ -9494,16 +9637,16 @@ function $84962ce4645f8891$var$arrow(_ref) {
|
|
9494
9637
|
(0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4),
|
9495
9638
|
(0, $9b56e55559dfbda1$export$79ffe56a765070d2)
|
9496
9639
|
].indexOf(basePlacement) >= 0;
|
9497
|
-
var len = isVertical ?
|
9640
|
+
var len = isVertical ? 'height' : 'width';
|
9498
9641
|
if (!arrowElement || !popperOffsets) return;
|
9499
9642
|
var paddingObject = $84962ce4645f8891$var$toPaddingObject(options.padding, state);
|
9500
9643
|
var arrowRect = (0, $e287ac773d355028$export$2e2bcd8739ae039)(arrowElement);
|
9501
|
-
var minProp = axis ===
|
9502
|
-
var maxProp = axis ===
|
9644
|
+
var minProp = axis === 'y' ? (0, $9b56e55559dfbda1$export$1e95b668f3b82d) : (0, $9b56e55559dfbda1$export$eabcd2c8791e7bf4);
|
9645
|
+
var maxProp = axis === 'y' ? (0, $9b56e55559dfbda1$export$40e543e69a8b3fbb) : (0, $9b56e55559dfbda1$export$79ffe56a765070d2);
|
9503
9646
|
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
|
9504
9647
|
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
|
9505
9648
|
var arrowOffsetParent = (0, $4acba801a6bfbaa3$export$2e2bcd8739ae039)(arrowElement);
|
9506
|
-
var clientSize = arrowOffsetParent ? axis ===
|
9649
|
+
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
|
9507
9650
|
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
|
9508
9651
|
// outside of the popper bounds
|
9509
9652
|
var min = paddingObject[minProp];
|
@@ -9515,10 +9658,10 @@ function $84962ce4645f8891$var$arrow(_ref) {
|
|
9515
9658
|
}
|
9516
9659
|
function $84962ce4645f8891$var$effect(_ref2) {
|
9517
9660
|
var state = _ref2.state, options = _ref2.options;
|
9518
|
-
var _options$element = options.element, arrowElement = _options$element === void 0 ?
|
9661
|
+
var _options$element = options.element, arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
9519
9662
|
if (arrowElement == null) return;
|
9520
9663
|
// CSS selector
|
9521
|
-
if (typeof arrowElement ===
|
9664
|
+
if (typeof arrowElement === 'string') {
|
9522
9665
|
arrowElement = state.elements.popper.querySelector(arrowElement);
|
9523
9666
|
if (!arrowElement) return;
|
9524
9667
|
}
|
@@ -9526,16 +9669,16 @@ function $84962ce4645f8891$var$effect(_ref2) {
|
|
9526
9669
|
state.elements.arrow = arrowElement;
|
9527
9670
|
} // eslint-disable-next-line import/no-unused-modules
|
9528
9671
|
var $84962ce4645f8891$export$2e2bcd8739ae039 = {
|
9529
|
-
name:
|
9672
|
+
name: 'arrow',
|
9530
9673
|
enabled: true,
|
9531
|
-
phase:
|
9674
|
+
phase: 'main',
|
9532
9675
|
fn: $84962ce4645f8891$var$arrow,
|
9533
9676
|
effect: $84962ce4645f8891$var$effect,
|
9534
9677
|
requires: [
|
9535
|
-
|
9678
|
+
'popperOffsets'
|
9536
9679
|
],
|
9537
9680
|
requiresIfExists: [
|
9538
|
-
|
9681
|
+
'preventOverflow'
|
9539
9682
|
]
|
9540
9683
|
};
|
9541
9684
|
|
@@ -9570,7 +9713,7 @@ function $c7da519ecac238a3$var$hide(_ref) {
|
|
9570
9713
|
var popperRect = state.rects.popper;
|
9571
9714
|
var preventedOffsets = state.modifiersData.preventOverflow;
|
9572
9715
|
var referenceOverflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9573
|
-
elementContext:
|
9716
|
+
elementContext: 'reference'
|
9574
9717
|
});
|
9575
9718
|
var popperAltOverflow = (0, $223e3075705edc49$export$2e2bcd8739ae039)(state, {
|
9576
9719
|
altBoundary: true
|
@@ -9586,16 +9729,16 @@ function $c7da519ecac238a3$var$hide(_ref) {
|
|
9586
9729
|
hasPopperEscaped: hasPopperEscaped
|
9587
9730
|
};
|
9588
9731
|
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
9589
|
-
|
9590
|
-
|
9732
|
+
'data-popper-reference-hidden': isReferenceHidden,
|
9733
|
+
'data-popper-escaped': hasPopperEscaped
|
9591
9734
|
});
|
9592
9735
|
} // eslint-disable-next-line import/no-unused-modules
|
9593
9736
|
var $c7da519ecac238a3$export$2e2bcd8739ae039 = {
|
9594
|
-
name:
|
9737
|
+
name: 'hide',
|
9595
9738
|
enabled: true,
|
9596
|
-
phase:
|
9739
|
+
phase: 'main',
|
9597
9740
|
requiresIfExists: [
|
9598
|
-
|
9741
|
+
'preventOverflow'
|
9599
9742
|
],
|
9600
9743
|
fn: $c7da519ecac238a3$var$hide
|
9601
9744
|
};
|
@@ -9644,10 +9787,10 @@ function $b013befce1f6217f$var$getValueAtIndexOrReturn(value, index, defaultValu
|
|
9644
9787
|
}
|
9645
9788
|
function $b013befce1f6217f$var$isType(value, type) {
|
9646
9789
|
var str = ({}).toString.call(value);
|
9647
|
-
return str.indexOf(
|
9790
|
+
return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
|
9648
9791
|
}
|
9649
9792
|
function $b013befce1f6217f$var$invokeWithArgsOrReturn(value, args) {
|
9650
|
-
return typeof value ===
|
9793
|
+
return typeof value === 'function' ? value.apply(void 0, args) : value;
|
9651
9794
|
}
|
9652
9795
|
function $b013befce1f6217f$var$debounce(fn, ms) {
|
9653
9796
|
// Avoid wrapping in `setTimeout` if ms is 0 anyway
|
@@ -9682,7 +9825,7 @@ function $b013befce1f6217f$var$unique(arr) {
|
|
9682
9825
|
});
|
9683
9826
|
}
|
9684
9827
|
function $b013befce1f6217f$var$getBasePlacement(placement) {
|
9685
|
-
return placement.split(
|
9828
|
+
return placement.split('-')[0];
|
9686
9829
|
}
|
9687
9830
|
function $b013befce1f6217f$var$arrayFrom(value) {
|
9688
9831
|
return [].slice.call(value);
|
@@ -9694,21 +9837,21 @@ function $b013befce1f6217f$var$removeUndefinedProps(obj) {
|
|
9694
9837
|
}, {});
|
9695
9838
|
}
|
9696
9839
|
function $b013befce1f6217f$var$div() {
|
9697
|
-
return document.createElement(
|
9840
|
+
return document.createElement('div');
|
9698
9841
|
}
|
9699
9842
|
function $b013befce1f6217f$var$isElement(value) {
|
9700
9843
|
return [
|
9701
|
-
|
9702
|
-
|
9844
|
+
'Element',
|
9845
|
+
'Fragment'
|
9703
9846
|
].some(function(type) {
|
9704
9847
|
return $b013befce1f6217f$var$isType(value, type);
|
9705
9848
|
});
|
9706
9849
|
}
|
9707
9850
|
function $b013befce1f6217f$var$isNodeList(value) {
|
9708
|
-
return $b013befce1f6217f$var$isType(value,
|
9851
|
+
return $b013befce1f6217f$var$isType(value, 'NodeList');
|
9709
9852
|
}
|
9710
9853
|
function $b013befce1f6217f$var$isMouseEvent(value) {
|
9711
|
-
return $b013befce1f6217f$var$isType(value,
|
9854
|
+
return $b013befce1f6217f$var$isType(value, 'MouseEvent');
|
9712
9855
|
}
|
9713
9856
|
function $b013befce1f6217f$var$isReferenceElement(value) {
|
9714
9857
|
return !!(value && value._tippy && value._tippy.reference === value);
|
@@ -9728,7 +9871,7 @@ function $b013befce1f6217f$var$setTransitionDuration(els, value) {
|
|
9728
9871
|
}
|
9729
9872
|
function $b013befce1f6217f$var$setVisibilityState(els, state) {
|
9730
9873
|
els.forEach(function(el) {
|
9731
|
-
if (el) el.setAttribute(
|
9874
|
+
if (el) el.setAttribute('data-state', state);
|
9732
9875
|
});
|
9733
9876
|
}
|
9734
9877
|
function $b013befce1f6217f$var$getOwnerDocument(elementOrElements) {
|
@@ -9744,10 +9887,10 @@ function $b013befce1f6217f$var$isCursorOutsideInteractiveBorder(popperTreeData,
|
|
9744
9887
|
var basePlacement = $b013befce1f6217f$var$getBasePlacement(popperState.placement);
|
9745
9888
|
var offsetData = popperState.modifiersData.offset;
|
9746
9889
|
if (!offsetData) return true;
|
9747
|
-
var topDistance = basePlacement ===
|
9748
|
-
var bottomDistance = basePlacement ===
|
9749
|
-
var leftDistance = basePlacement ===
|
9750
|
-
var rightDistance = basePlacement ===
|
9890
|
+
var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
|
9891
|
+
var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
|
9892
|
+
var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
|
9893
|
+
var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
|
9751
9894
|
var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
|
9752
9895
|
var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
|
9753
9896
|
var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
|
@@ -9759,8 +9902,8 @@ function $b013befce1f6217f$var$updateTransitionEndListener(box, action, listener
|
|
9759
9902
|
var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
|
9760
9903
|
// `webkitTransitionEnd`...
|
9761
9904
|
[
|
9762
|
-
|
9763
|
-
|
9905
|
+
'transitionend',
|
9906
|
+
'webkitTransitionEnd'
|
9764
9907
|
].forEach(function(event) {
|
9765
9908
|
box[method](event, listener);
|
9766
9909
|
});
|
@@ -9789,7 +9932,7 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9789
9932
|
*/ function $b013befce1f6217f$var$onDocumentTouchStart() {
|
9790
9933
|
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
9791
9934
|
$b013befce1f6217f$var$currentInput.isTouch = true;
|
9792
|
-
if (window.performance) document.addEventListener(
|
9935
|
+
if (window.performance) document.addEventListener('mousemove', $b013befce1f6217f$var$onDocumentMouseMove);
|
9793
9936
|
}
|
9794
9937
|
/**
|
9795
9938
|
* When two `mousemove` event are fired consecutively within 20ms, it's assumed
|
@@ -9799,7 +9942,7 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9799
9942
|
var now = performance.now();
|
9800
9943
|
if (now - $b013befce1f6217f$var$lastMouseMoveTime < 20) {
|
9801
9944
|
$b013befce1f6217f$var$currentInput.isTouch = false;
|
9802
|
-
document.removeEventListener(
|
9945
|
+
document.removeEventListener('mousemove', $b013befce1f6217f$var$onDocumentMouseMove);
|
9803
9946
|
}
|
9804
9947
|
$b013befce1f6217f$var$lastMouseMoveTime = now;
|
9805
9948
|
}
|
@@ -9816,22 +9959,22 @@ var $b013befce1f6217f$var$lastMouseMoveTime = 0;
|
|
9816
9959
|
}
|
9817
9960
|
}
|
9818
9961
|
function $b013befce1f6217f$var$bindGlobalEventListeners() {
|
9819
|
-
document.addEventListener(
|
9820
|
-
window.addEventListener(
|
9962
|
+
document.addEventListener('touchstart', $b013befce1f6217f$var$onDocumentTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
9963
|
+
window.addEventListener('blur', $b013befce1f6217f$var$onWindowBlur);
|
9821
9964
|
}
|
9822
|
-
var $b013befce1f6217f$var$isBrowser = typeof window !==
|
9965
|
+
var $b013befce1f6217f$var$isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
|
9823
9966
|
var $b013befce1f6217f$var$isIE11 = $b013befce1f6217f$var$isBrowser ? !!window.msCrypto : false;
|
9824
9967
|
function $b013befce1f6217f$var$createMemoryLeakWarning(method) {
|
9825
|
-
var txt = method ===
|
9968
|
+
var txt = method === 'destroy' ? 'n already-' : ' ';
|
9826
9969
|
return [
|
9827
9970
|
method + "() was called on a" + txt + "destroyed instance. This is a no-op but",
|
9828
|
-
|
9829
|
-
].join(
|
9971
|
+
'indicates a potential memory leak.'
|
9972
|
+
].join(' ');
|
9830
9973
|
}
|
9831
9974
|
function $b013befce1f6217f$var$clean(value) {
|
9832
9975
|
var spacesAndTabs = /[ \t]{2,}/g;
|
9833
9976
|
var lineStartWithSpaces = /^[ \t]*/gm;
|
9834
|
-
return value.replace(spacesAndTabs,
|
9977
|
+
return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
|
9835
9978
|
}
|
9836
9979
|
function $b013befce1f6217f$var$getDevMessage(message) {
|
9837
9980
|
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 +9982,9 @@ function $b013befce1f6217f$var$getDevMessage(message) {
|
|
9839
9982
|
function $b013befce1f6217f$var$getFormattedMessage(message) {
|
9840
9983
|
return [
|
9841
9984
|
$b013befce1f6217f$var$getDevMessage(message),
|
9842
|
-
|
9843
|
-
|
9844
|
-
|
9985
|
+
'color: #00C584; font-size: 1.3em; font-weight: bold;',
|
9986
|
+
'line-height: 1.5',
|
9987
|
+
'color: #a6a095;'
|
9845
9988
|
];
|
9846
9989
|
} // Assume warnings and errors never have the same message
|
9847
9990
|
var $b013befce1f6217f$var$visitedMessages;
|
@@ -9864,17 +10007,17 @@ function $b013befce1f6217f$var$errorWhen(condition, message) {
|
|
9864
10007
|
}
|
9865
10008
|
function $b013befce1f6217f$var$validateTargets(targets) {
|
9866
10009
|
var didPassFalsyValue = !targets;
|
9867
|
-
var didPassPlainObject = Object.prototype.toString.call(targets) ===
|
10010
|
+
var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
|
9868
10011
|
$b013befce1f6217f$var$errorWhen(didPassFalsyValue, [
|
9869
|
-
|
9870
|
-
|
9871
|
-
|
9872
|
-
|
9873
|
-
].join(
|
10012
|
+
'tippy() was passed',
|
10013
|
+
'`' + String(targets) + '`',
|
10014
|
+
'as its targets (first) argument. Valid types are: String, Element,',
|
10015
|
+
'Element[], or NodeList.'
|
10016
|
+
].join(' '));
|
9874
10017
|
$b013befce1f6217f$var$errorWhen(didPassPlainObject, [
|
9875
|
-
|
9876
|
-
|
9877
|
-
].join(
|
10018
|
+
'tippy() was passed a plain object which is not supported as an argument',
|
10019
|
+
'for virtual positioning. Use props.getReferenceClientRect instead.'
|
10020
|
+
].join(' '));
|
9878
10021
|
}
|
9879
10022
|
var $b013befce1f6217f$var$pluginProps = {
|
9880
10023
|
animateFill: false,
|
@@ -9884,20 +10027,20 @@ var $b013befce1f6217f$var$pluginProps = {
|
|
9884
10027
|
};
|
9885
10028
|
var $b013befce1f6217f$var$renderProps = {
|
9886
10029
|
allowHTML: false,
|
9887
|
-
animation:
|
10030
|
+
animation: 'fade',
|
9888
10031
|
arrow: true,
|
9889
|
-
content:
|
10032
|
+
content: '',
|
9890
10033
|
inertia: false,
|
9891
10034
|
maxWidth: 350,
|
9892
|
-
role:
|
9893
|
-
theme:
|
10035
|
+
role: 'tooltip',
|
10036
|
+
theme: '',
|
9894
10037
|
zIndex: 9999
|
9895
10038
|
};
|
9896
10039
|
var $b013befce1f6217f$var$defaultProps = Object.assign({
|
9897
10040
|
appendTo: $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO,
|
9898
10041
|
aria: {
|
9899
|
-
content:
|
9900
|
-
expanded:
|
10042
|
+
content: 'auto',
|
10043
|
+
expanded: 'auto'
|
9901
10044
|
},
|
9902
10045
|
delay: 0,
|
9903
10046
|
duration: [
|
@@ -9910,7 +10053,7 @@ var $b013befce1f6217f$var$defaultProps = Object.assign({
|
|
9910
10053
|
interactive: false,
|
9911
10054
|
interactiveBorder: 2,
|
9912
10055
|
interactiveDebounce: 0,
|
9913
|
-
moveTransition:
|
10056
|
+
moveTransition: '',
|
9914
10057
|
offset: [
|
9915
10058
|
0,
|
9916
10059
|
10
|
@@ -9927,13 +10070,13 @@ var $b013befce1f6217f$var$defaultProps = Object.assign({
|
|
9927
10070
|
onTrigger: function onTrigger() {},
|
9928
10071
|
onUntrigger: function onUntrigger() {},
|
9929
10072
|
onClickOutside: function onClickOutside() {},
|
9930
|
-
placement:
|
10073
|
+
placement: 'top',
|
9931
10074
|
plugins: [],
|
9932
10075
|
popperOptions: {},
|
9933
10076
|
render: null,
|
9934
10077
|
showOnCreate: false,
|
9935
10078
|
touch: true,
|
9936
|
-
trigger:
|
10079
|
+
trigger: 'mouseenter focus',
|
9937
10080
|
triggerTarget: null
|
9938
10081
|
}, $b013befce1f6217f$var$pluginProps, $b013befce1f6217f$var$renderProps);
|
9939
10082
|
var $b013befce1f6217f$var$defaultKeys = Object.keys($b013befce1f6217f$var$defaultProps);
|
@@ -9960,9 +10103,9 @@ function $b013befce1f6217f$var$getDataAttributeProps(reference, plugins) {
|
|
9960
10103
|
plugins: plugins
|
9961
10104
|
}))) : $b013befce1f6217f$var$defaultKeys;
|
9962
10105
|
var props = propKeys.reduce(function(acc, key) {
|
9963
|
-
var valueAsString = (reference.getAttribute("data-tippy-" + key) ||
|
10106
|
+
var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
|
9964
10107
|
if (!valueAsString) return acc;
|
9965
|
-
if (key ===
|
10108
|
+
if (key === 'content') acc[key] = valueAsString;
|
9966
10109
|
else try {
|
9967
10110
|
acc[key] = JSON.parse(valueAsString);
|
9968
10111
|
} catch (e) {
|
@@ -9980,8 +10123,8 @@ function $b013befce1f6217f$var$evaluateProps(reference, props) {
|
|
9980
10123
|
}, props.ignoreAttributes ? {} : $b013befce1f6217f$var$getDataAttributeProps(reference, props.plugins));
|
9981
10124
|
out.aria = Object.assign({}, $b013befce1f6217f$var$defaultProps.aria, out.aria);
|
9982
10125
|
out.aria = {
|
9983
|
-
expanded: out.aria.expanded ===
|
9984
|
-
content: out.aria.content ===
|
10126
|
+
expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
|
10127
|
+
content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
|
9985
10128
|
};
|
9986
10129
|
return out;
|
9987
10130
|
}
|
@@ -9998,15 +10141,15 @@ function $b013befce1f6217f$var$validateProps(partialProps, plugins) {
|
|
9998
10141
|
$b013befce1f6217f$var$warnWhen(didPassUnknownProp, [
|
9999
10142
|
"`" + prop + "`",
|
10000
10143
|
"is not a valid prop. You may have spelled it incorrectly, or if it's",
|
10001
|
-
|
10002
|
-
|
10003
|
-
|
10004
|
-
|
10005
|
-
].join(
|
10144
|
+
'a plugin, forgot to pass it in an array as props.plugins.',
|
10145
|
+
'\n\n',
|
10146
|
+
'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n',
|
10147
|
+
'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'
|
10148
|
+
].join(' '));
|
10006
10149
|
});
|
10007
10150
|
}
|
10008
10151
|
var $b013befce1f6217f$var$innerHTML = function innerHTML() {
|
10009
|
-
return
|
10152
|
+
return 'innerHTML';
|
10010
10153
|
};
|
10011
10154
|
function $b013befce1f6217f$var$dangerouslySetInnerHTML(element, html) {
|
10012
10155
|
element[$b013befce1f6217f$var$innerHTML()] = html;
|
@@ -10023,9 +10166,9 @@ function $b013befce1f6217f$var$createArrowElement(value) {
|
|
10023
10166
|
}
|
10024
10167
|
function $b013befce1f6217f$var$setContent(content, props) {
|
10025
10168
|
if ($b013befce1f6217f$var$isElement(props.content)) {
|
10026
|
-
$b013befce1f6217f$var$dangerouslySetInnerHTML(content,
|
10169
|
+
$b013befce1f6217f$var$dangerouslySetInnerHTML(content, '');
|
10027
10170
|
content.appendChild(props.content);
|
10028
|
-
} else if (typeof props.content !==
|
10171
|
+
} else if (typeof props.content !== 'function') {
|
10029
10172
|
if (props.allowHTML) $b013befce1f6217f$var$dangerouslySetInnerHTML(content, props.content);
|
10030
10173
|
else content.textContent = props.content;
|
10031
10174
|
}
|
@@ -10050,26 +10193,26 @@ function $b013befce1f6217f$var$render(instance) {
|
|
10050
10193
|
var popper = $b013befce1f6217f$var$div();
|
10051
10194
|
var box = $b013befce1f6217f$var$div();
|
10052
10195
|
box.className = $b013befce1f6217f$var$BOX_CLASS;
|
10053
|
-
box.setAttribute(
|
10054
|
-
box.setAttribute(
|
10196
|
+
box.setAttribute('data-state', 'hidden');
|
10197
|
+
box.setAttribute('tabindex', '-1');
|
10055
10198
|
var content = $b013befce1f6217f$var$div();
|
10056
10199
|
content.className = $b013befce1f6217f$var$CONTENT_CLASS;
|
10057
|
-
content.setAttribute(
|
10200
|
+
content.setAttribute('data-state', 'hidden');
|
10058
10201
|
$b013befce1f6217f$var$setContent(content, instance.props);
|
10059
10202
|
popper.appendChild(box);
|
10060
10203
|
box.appendChild(content);
|
10061
10204
|
onUpdate(instance.props, instance.props);
|
10062
10205
|
function onUpdate(prevProps, nextProps) {
|
10063
10206
|
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(
|
10207
|
+
if (nextProps.theme) box.setAttribute('data-theme', nextProps.theme);
|
10208
|
+
else box.removeAttribute('data-theme');
|
10209
|
+
if (typeof nextProps.animation === 'string') box.setAttribute('data-animation', nextProps.animation);
|
10210
|
+
else box.removeAttribute('data-animation');
|
10211
|
+
if (nextProps.inertia) box.setAttribute('data-inertia', '');
|
10212
|
+
else box.removeAttribute('data-inertia');
|
10213
|
+
box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
|
10214
|
+
if (nextProps.role) box.setAttribute('role', nextProps.role);
|
10215
|
+
else box.removeAttribute('role');
|
10073
10216
|
if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) $b013befce1f6217f$var$setContent(content, instance.props);
|
10074
10217
|
if (nextProps.arrow) {
|
10075
10218
|
if (!arrow) box.appendChild($b013befce1f6217f$var$createArrowElement(nextProps.arrow));
|
@@ -10150,7 +10293,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10150
10293
|
// Initial mutations
|
10151
10294
|
// ===========================================================================
|
10152
10295
|
var _props$render = props.render(instance), popper = _props$render.popper, onUpdate = _props$render.onUpdate;
|
10153
|
-
popper.setAttribute(
|
10296
|
+
popper.setAttribute('data-tippy-root', '');
|
10154
10297
|
popper.id = "tippy-" + instance.id;
|
10155
10298
|
instance.popper = popper;
|
10156
10299
|
reference._tippy = instance;
|
@@ -10158,21 +10301,21 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10158
10301
|
var pluginsHooks = plugins.map(function(plugin) {
|
10159
10302
|
return plugin.fn(instance);
|
10160
10303
|
});
|
10161
|
-
var hasAriaExpanded = reference.hasAttribute(
|
10304
|
+
var hasAriaExpanded = reference.hasAttribute('aria-expanded');
|
10162
10305
|
addListeners();
|
10163
10306
|
handleAriaExpandedAttribute();
|
10164
10307
|
handleStyles();
|
10165
|
-
invokeHook(
|
10308
|
+
invokeHook('onCreate', [
|
10166
10309
|
instance
|
10167
10310
|
]);
|
10168
10311
|
if (props.showOnCreate) scheduleShow();
|
10169
10312
|
// Prevent a tippy with a delay from hiding if the cursor left then returned
|
10170
10313
|
// before it started hiding
|
10171
|
-
popper.addEventListener(
|
10314
|
+
popper.addEventListener('mouseenter', function() {
|
10172
10315
|
if (instance.props.interactive && instance.state.isVisible) instance.clearDelayTimeouts();
|
10173
10316
|
});
|
10174
|
-
popper.addEventListener(
|
10175
|
-
if (instance.props.interactive && instance.props.trigger.indexOf(
|
10317
|
+
popper.addEventListener('mouseleave', function() {
|
10318
|
+
if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) getDocument().addEventListener('mousemove', debouncedOnMouseMove);
|
10176
10319
|
});
|
10177
10320
|
return instance; // ===========================================================================
|
10178
10321
|
// 🔒 Private methods
|
@@ -10185,7 +10328,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10185
10328
|
];
|
10186
10329
|
}
|
10187
10330
|
function getIsCustomTouchBehavior() {
|
10188
|
-
return getNormalizedTouchSettings()[0] ===
|
10331
|
+
return getNormalizedTouchSettings()[0] === 'hold';
|
10189
10332
|
}
|
10190
10333
|
function getIsDefaultRenderFn() {
|
10191
10334
|
var _instance$props$rende;
|
@@ -10206,12 +10349,12 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10206
10349
|
// For touch or keyboard input, force `0` delay for UX reasons
|
10207
10350
|
// Also if the instance is mounted but not visible (transitioning out),
|
10208
10351
|
// ignore delay
|
10209
|
-
if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type ===
|
10352
|
+
if (instance.state.isMounted && !instance.state.isVisible || $b013befce1f6217f$var$currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') return 0;
|
10210
10353
|
return $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, $b013befce1f6217f$var$defaultProps.delay);
|
10211
10354
|
}
|
10212
10355
|
function handleStyles(fromHide) {
|
10213
10356
|
if (fromHide === void 0) fromHide = false;
|
10214
|
-
popper.style.pointerEvents = instance.props.interactive && !fromHide ?
|
10357
|
+
popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
|
10215
10358
|
popper.style.zIndex = "" + instance.props.zIndex;
|
10216
10359
|
}
|
10217
10360
|
function invokeHook(hook, args, shouldInvokePropsHook) {
|
@@ -10234,7 +10377,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10234
10377
|
var currentValue = node.getAttribute(attr);
|
10235
10378
|
if (instance.state.isVisible) node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
|
10236
10379
|
else {
|
10237
|
-
var nextValue = currentValue && currentValue.replace(id,
|
10380
|
+
var nextValue = currentValue && currentValue.replace(id, '').trim();
|
10238
10381
|
if (nextValue) node.setAttribute(attr, nextValue);
|
10239
10382
|
else node.removeAttribute(attr);
|
10240
10383
|
}
|
@@ -10244,12 +10387,12 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10244
10387
|
if (hasAriaExpanded || !instance.props.aria.expanded) return;
|
10245
10388
|
var nodes = $b013befce1f6217f$var$normalizeToArray(instance.props.triggerTarget || reference);
|
10246
10389
|
nodes.forEach(function(node) {
|
10247
|
-
if (instance.props.interactive) node.setAttribute(
|
10248
|
-
else node.removeAttribute(
|
10390
|
+
if (instance.props.interactive) node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
|
10391
|
+
else node.removeAttribute('aria-expanded');
|
10249
10392
|
});
|
10250
10393
|
}
|
10251
10394
|
function cleanupInteractiveMouseListeners() {
|
10252
|
-
getDocument().removeEventListener(
|
10395
|
+
getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
|
10253
10396
|
$b013befce1f6217f$var$mouseMoveListeners = $b013befce1f6217f$var$mouseMoveListeners.filter(function(listener) {
|
10254
10397
|
return listener !== debouncedOnMouseMove;
|
10255
10398
|
});
|
@@ -10257,7 +10400,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10257
10400
|
function onDocumentPress(event) {
|
10258
10401
|
// Moved finger to scroll instead of an intentional tap outside
|
10259
10402
|
if ($b013befce1f6217f$var$currentInput.isTouch) {
|
10260
|
-
if (didTouchMove || event.type ===
|
10403
|
+
if (didTouchMove || event.type === 'mousedown') return;
|
10261
10404
|
}
|
10262
10405
|
var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
|
10263
10406
|
if (instance.props.interactive && $b013befce1f6217f$var$actualContains(popper, actualTarget)) return;
|
@@ -10266,8 +10409,8 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10266
10409
|
return $b013befce1f6217f$var$actualContains(el, actualTarget);
|
10267
10410
|
})) {
|
10268
10411
|
if ($b013befce1f6217f$var$currentInput.isTouch) return;
|
10269
|
-
if (instance.state.isVisible && instance.props.trigger.indexOf(
|
10270
|
-
} else invokeHook(
|
10412
|
+
if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) return;
|
10413
|
+
} else invokeHook('onClickOutside', [
|
10271
10414
|
instance,
|
10272
10415
|
event
|
10273
10416
|
]);
|
@@ -10293,17 +10436,17 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10293
10436
|
}
|
10294
10437
|
function addDocumentPress() {
|
10295
10438
|
var doc = getDocument();
|
10296
|
-
doc.addEventListener(
|
10297
|
-
doc.addEventListener(
|
10298
|
-
doc.addEventListener(
|
10299
|
-
doc.addEventListener(
|
10439
|
+
doc.addEventListener('mousedown', onDocumentPress, true);
|
10440
|
+
doc.addEventListener('touchend', onDocumentPress, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10441
|
+
doc.addEventListener('touchstart', onTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10442
|
+
doc.addEventListener('touchmove', onTouchMove, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10300
10443
|
}
|
10301
10444
|
function removeDocumentPress() {
|
10302
10445
|
var doc = getDocument();
|
10303
|
-
doc.removeEventListener(
|
10304
|
-
doc.removeEventListener(
|
10305
|
-
doc.removeEventListener(
|
10306
|
-
doc.removeEventListener(
|
10446
|
+
doc.removeEventListener('mousedown', onDocumentPress, true);
|
10447
|
+
doc.removeEventListener('touchend', onDocumentPress, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10448
|
+
doc.removeEventListener('touchstart', onTouchStart, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10449
|
+
doc.removeEventListener('touchmove', onTouchMove, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
10307
10450
|
}
|
10308
10451
|
function onTransitionedOut(duration, callback) {
|
10309
10452
|
onTransitionEnd(duration, function() {
|
@@ -10317,14 +10460,14 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10317
10460
|
var box = getDefaultTemplateChildren().box;
|
10318
10461
|
function listener(event) {
|
10319
10462
|
if (event.target === box) {
|
10320
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10463
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'remove', listener);
|
10321
10464
|
callback();
|
10322
10465
|
}
|
10323
10466
|
} // Make callback synchronous if duration is 0
|
10324
10467
|
// `transitionend` won't fire otherwise
|
10325
10468
|
if (duration === 0) return callback();
|
10326
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10327
|
-
$b013befce1f6217f$var$updateTransitionEndListener(box,
|
10469
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
|
10470
|
+
$b013befce1f6217f$var$updateTransitionEndListener(box, 'add', listener);
|
10328
10471
|
currentTransitionEndListener = listener;
|
10329
10472
|
}
|
10330
10473
|
function on(eventType, handler, options) {
|
@@ -10342,25 +10485,25 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10342
10485
|
}
|
10343
10486
|
function addListeners() {
|
10344
10487
|
if (getIsCustomTouchBehavior()) {
|
10345
|
-
on(
|
10488
|
+
on('touchstart', onTrigger, {
|
10346
10489
|
passive: true
|
10347
10490
|
});
|
10348
|
-
on(
|
10491
|
+
on('touchend', onMouseLeave, {
|
10349
10492
|
passive: true
|
10350
10493
|
});
|
10351
10494
|
}
|
10352
10495
|
$b013befce1f6217f$var$splitBySpaces(instance.props.trigger).forEach(function(eventType) {
|
10353
|
-
if (eventType ===
|
10496
|
+
if (eventType === 'manual') return;
|
10354
10497
|
on(eventType, onTrigger);
|
10355
10498
|
switch(eventType){
|
10356
|
-
case
|
10357
|
-
on(
|
10499
|
+
case 'mouseenter':
|
10500
|
+
on('mouseleave', onMouseLeave);
|
10358
10501
|
break;
|
10359
|
-
case
|
10360
|
-
on($b013befce1f6217f$var$isIE11 ?
|
10502
|
+
case 'focus':
|
10503
|
+
on($b013befce1f6217f$var$isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
|
10361
10504
|
break;
|
10362
|
-
case
|
10363
|
-
on(
|
10505
|
+
case 'focusin':
|
10506
|
+
on('focusout', onBlurOrFocusOut);
|
10364
10507
|
break;
|
10365
10508
|
}
|
10366
10509
|
});
|
@@ -10376,7 +10519,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10376
10519
|
var _lastTriggerEvent;
|
10377
10520
|
var shouldScheduleClickHide = false;
|
10378
10521
|
if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) return;
|
10379
|
-
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) ===
|
10522
|
+
var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
|
10380
10523
|
lastTriggerEvent = event;
|
10381
10524
|
currentTarget = event.currentTarget;
|
10382
10525
|
handleAriaExpandedAttribute();
|
@@ -10388,15 +10531,15 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10388
10531
|
return listener(event);
|
10389
10532
|
});
|
10390
10533
|
// Toggle show/hide when clicking click-triggered tooltips
|
10391
|
-
if (event.type ===
|
10534
|
+
if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) shouldScheduleClickHide = true;
|
10392
10535
|
else scheduleShow(event);
|
10393
|
-
if (event.type ===
|
10536
|
+
if (event.type === 'click') isVisibleFromClick = !shouldScheduleClickHide;
|
10394
10537
|
if (shouldScheduleClickHide && !wasFocused) scheduleHide(event);
|
10395
10538
|
}
|
10396
10539
|
function onMouseMove(event) {
|
10397
10540
|
var target = event.target;
|
10398
10541
|
var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
|
10399
|
-
if (event.type ===
|
10542
|
+
if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) return;
|
10400
10543
|
var popperTreeData = getNestedPopperTree().concat(popper).map(function(popper) {
|
10401
10544
|
var _instance$popperInsta;
|
10402
10545
|
var instance = popper._tippy;
|
@@ -10414,7 +10557,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10414
10557
|
}
|
10415
10558
|
}
|
10416
10559
|
function onMouseLeave(event) {
|
10417
|
-
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf(
|
10560
|
+
var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
|
10418
10561
|
if (shouldBail) return;
|
10419
10562
|
if (instance.props.interactive) {
|
10420
10563
|
instance.hideWithInteractivity(event);
|
@@ -10423,13 +10566,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10423
10566
|
scheduleHide(event);
|
10424
10567
|
}
|
10425
10568
|
function onBlurOrFocusOut(event) {
|
10426
|
-
if (instance.props.trigger.indexOf(
|
10569
|
+
if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) return;
|
10427
10570
|
// If focus was moved to within the popper
|
10428
10571
|
if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) return;
|
10429
10572
|
scheduleHide(event);
|
10430
10573
|
}
|
10431
10574
|
function isEventListenerStopped(event) {
|
10432
|
-
return $b013befce1f6217f$var$currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf(
|
10575
|
+
return $b013befce1f6217f$var$currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
|
10433
10576
|
}
|
10434
10577
|
function createPopperInstance() {
|
10435
10578
|
destroyPopperInstance();
|
@@ -10440,23 +10583,23 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10440
10583
|
contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
|
10441
10584
|
} : reference;
|
10442
10585
|
var tippyModifier = {
|
10443
|
-
name:
|
10586
|
+
name: '$$tippy',
|
10444
10587
|
enabled: true,
|
10445
|
-
phase:
|
10588
|
+
phase: 'beforeWrite',
|
10446
10589
|
requires: [
|
10447
|
-
|
10590
|
+
'computeStyles'
|
10448
10591
|
],
|
10449
10592
|
fn: function fn(_ref2) {
|
10450
10593
|
var state = _ref2.state;
|
10451
10594
|
if (getIsDefaultRenderFn()) {
|
10452
10595
|
var _getDefaultTemplateCh = getDefaultTemplateChildren(), box = _getDefaultTemplateCh.box;
|
10453
10596
|
[
|
10454
|
-
|
10455
|
-
|
10456
|
-
|
10597
|
+
'placement',
|
10598
|
+
'reference-hidden',
|
10599
|
+
'escaped'
|
10457
10600
|
].forEach(function(attr) {
|
10458
|
-
if (attr ===
|
10459
|
-
else if (state.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr,
|
10601
|
+
if (attr === 'placement') box.setAttribute('data-placement', state.placement);
|
10602
|
+
else if (state.attributes.popper["data-popper-" + attr]) box.setAttribute("data-" + attr, '');
|
10460
10603
|
else box.removeAttribute("data-" + attr);
|
10461
10604
|
});
|
10462
10605
|
state.attributes.popper = {};
|
@@ -10465,13 +10608,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10465
10608
|
};
|
10466
10609
|
var modifiers = [
|
10467
10610
|
{
|
10468
|
-
name:
|
10611
|
+
name: 'offset',
|
10469
10612
|
options: {
|
10470
10613
|
offset: offset
|
10471
10614
|
}
|
10472
10615
|
},
|
10473
10616
|
{
|
10474
|
-
name:
|
10617
|
+
name: 'preventOverflow',
|
10475
10618
|
options: {
|
10476
10619
|
padding: {
|
10477
10620
|
top: 2,
|
@@ -10482,13 +10625,13 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10482
10625
|
}
|
10483
10626
|
},
|
10484
10627
|
{
|
10485
|
-
name:
|
10628
|
+
name: 'flip',
|
10486
10629
|
options: {
|
10487
10630
|
padding: 5
|
10488
10631
|
}
|
10489
10632
|
},
|
10490
10633
|
{
|
10491
|
-
name:
|
10634
|
+
name: 'computeStyles',
|
10492
10635
|
options: {
|
10493
10636
|
adaptive: !moveTransition
|
10494
10637
|
}
|
@@ -10496,7 +10639,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10496
10639
|
tippyModifier
|
10497
10640
|
];
|
10498
10641
|
if (getIsDefaultRenderFn() && arrow) modifiers.push({
|
10499
|
-
name:
|
10642
|
+
name: 'arrow',
|
10500
10643
|
options: {
|
10501
10644
|
element: arrow,
|
10502
10645
|
padding: 3
|
@@ -10523,7 +10666,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10523
10666
|
// If there are clipping issues, the user can specify a different appendTo
|
10524
10667
|
// and ensure focus management is handled correctly manually
|
10525
10668
|
var node = getCurrentTarget();
|
10526
|
-
if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo ===
|
10669
|
+
if (instance.props.interactive && appendTo === $b013befce1f6217f$var$TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') parentNode = node.parentNode;
|
10527
10670
|
else parentNode = $b013befce1f6217f$var$invokeWithArgsOrReturn(appendTo, [
|
10528
10671
|
node
|
10529
10672
|
]);
|
@@ -10534,18 +10677,18 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10534
10677
|
createPopperInstance();
|
10535
10678
|
}
|
10536
10679
|
function getNestedPopperTree() {
|
10537
|
-
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll(
|
10680
|
+
return $b013befce1f6217f$var$arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
|
10538
10681
|
}
|
10539
10682
|
function scheduleShow(event) {
|
10540
10683
|
instance.clearDelayTimeouts();
|
10541
|
-
if (event) invokeHook(
|
10684
|
+
if (event) invokeHook('onTrigger', [
|
10542
10685
|
instance,
|
10543
10686
|
event
|
10544
10687
|
]);
|
10545
10688
|
addDocumentPress();
|
10546
10689
|
var delay = getDelay(true);
|
10547
10690
|
var _getNormalizedTouchSe = getNormalizedTouchSettings(), touchValue = _getNormalizedTouchSe[0], touchDelay = _getNormalizedTouchSe[1];
|
10548
|
-
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue ===
|
10691
|
+
if ($b013befce1f6217f$var$currentInput.isTouch && touchValue === 'hold' && touchDelay) delay = touchDelay;
|
10549
10692
|
if (delay) showTimeout = setTimeout(function() {
|
10550
10693
|
instance.show();
|
10551
10694
|
}, delay);
|
@@ -10553,7 +10696,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10553
10696
|
}
|
10554
10697
|
function scheduleHide(event) {
|
10555
10698
|
instance.clearDelayTimeouts();
|
10556
|
-
invokeHook(
|
10699
|
+
invokeHook('onUntrigger', [
|
10557
10700
|
instance,
|
10558
10701
|
event
|
10559
10702
|
]);
|
@@ -10564,9 +10707,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10564
10707
|
// from onMouseLeave so must intercept scheduled hides from mousemove/leave
|
10565
10708
|
// events when trigger contains mouseenter and click, and the tip is
|
10566
10709
|
// currently shown as a result of a click.
|
10567
|
-
if (instance.props.trigger.indexOf(
|
10568
|
-
|
10569
|
-
|
10710
|
+
if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && [
|
10711
|
+
'mouseleave',
|
10712
|
+
'mousemove'
|
10570
10713
|
].indexOf(event.type) >= 0 && isVisibleFromClick) return;
|
10571
10714
|
var delay = getDelay(false);
|
10572
10715
|
if (delay) hideTimeout = setTimeout(function() {
|
@@ -10596,7 +10739,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10596
10739
|
}
|
10597
10740
|
function setProps(partialProps) {
|
10598
10741
|
if (instance.state.isDestroyed) return;
|
10599
|
-
invokeHook(
|
10742
|
+
invokeHook('onBeforeUpdate', [
|
10600
10743
|
instance,
|
10601
10744
|
partialProps
|
10602
10745
|
]);
|
@@ -10612,9 +10755,9 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10612
10755
|
debouncedOnMouseMove = $b013befce1f6217f$var$debounce(onMouseMove, nextProps.interactiveDebounce);
|
10613
10756
|
} // Ensure stale aria-expanded attributes are removed
|
10614
10757
|
if (prevProps.triggerTarget && !nextProps.triggerTarget) $b013befce1f6217f$var$normalizeToArray(prevProps.triggerTarget).forEach(function(node) {
|
10615
|
-
node.removeAttribute(
|
10758
|
+
node.removeAttribute('aria-expanded');
|
10616
10759
|
});
|
10617
|
-
else if (nextProps.triggerTarget) reference.removeAttribute(
|
10760
|
+
else if (nextProps.triggerTarget) reference.removeAttribute('aria-expanded');
|
10618
10761
|
handleAriaExpandedAttribute();
|
10619
10762
|
handleStyles();
|
10620
10763
|
if (onUpdate) onUpdate(prevProps, nextProps);
|
@@ -10629,7 +10772,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10629
10772
|
requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
|
10630
10773
|
});
|
10631
10774
|
}
|
10632
|
-
invokeHook(
|
10775
|
+
invokeHook('onAfterUpdate', [
|
10633
10776
|
instance,
|
10634
10777
|
partialProps
|
10635
10778
|
]);
|
@@ -10649,16 +10792,16 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10649
10792
|
// Normalize `disabled` behavior across browsers.
|
10650
10793
|
// Firefox allows events on disabled elements, but Chrome doesn't.
|
10651
10794
|
// Using a wrapper element (i.e. <span>) is recommended.
|
10652
|
-
if (getCurrentTarget().hasAttribute(
|
10653
|
-
invokeHook(
|
10795
|
+
if (getCurrentTarget().hasAttribute('disabled')) return;
|
10796
|
+
invokeHook('onShow', [
|
10654
10797
|
instance
|
10655
10798
|
], false);
|
10656
10799
|
if (instance.props.onShow(instance) === false) return;
|
10657
10800
|
instance.state.isVisible = true;
|
10658
|
-
if (getIsDefaultRenderFn()) popper.style.visibility =
|
10801
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = 'visible';
|
10659
10802
|
handleStyles();
|
10660
10803
|
addDocumentPress();
|
10661
|
-
if (!instance.state.isMounted) popper.style.transition =
|
10804
|
+
if (!instance.state.isMounted) popper.style.transition = 'none';
|
10662
10805
|
// If flipping to the opposite side after hiding at least once, the
|
10663
10806
|
// animation will use the wrong placement without resetting the duration
|
10664
10807
|
if (getIsDefaultRenderFn()) {
|
@@ -10683,19 +10826,19 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10683
10826
|
$b013befce1f6217f$var$setVisibilityState([
|
10684
10827
|
_box,
|
10685
10828
|
_content
|
10686
|
-
],
|
10829
|
+
], 'visible');
|
10687
10830
|
}
|
10688
10831
|
handleAriaContentAttribute();
|
10689
10832
|
handleAriaExpandedAttribute();
|
10690
10833
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
|
10691
10834
|
// popper has been positioned for the first time
|
10692
10835
|
(_instance$popperInsta2 = instance.popperInstance) == null || _instance$popperInsta2.forceUpdate();
|
10693
|
-
invokeHook(
|
10836
|
+
invokeHook('onMount', [
|
10694
10837
|
instance
|
10695
10838
|
]);
|
10696
10839
|
if (instance.props.animation && getIsDefaultRenderFn()) onTransitionedIn(duration, function() {
|
10697
10840
|
instance.state.isShown = true;
|
10698
|
-
invokeHook(
|
10841
|
+
invokeHook('onShown', [
|
10699
10842
|
instance
|
10700
10843
|
]);
|
10701
10844
|
});
|
@@ -10708,7 +10851,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10708
10851
|
var isDisabled = !instance.state.isEnabled;
|
10709
10852
|
var duration = $b013befce1f6217f$var$getValueAtIndexOrReturn(instance.props.duration, 1, $b013befce1f6217f$var$defaultProps.duration);
|
10710
10853
|
if (isAlreadyHidden || isDestroyed || isDisabled) return;
|
10711
|
-
invokeHook(
|
10854
|
+
invokeHook('onHide', [
|
10712
10855
|
instance
|
10713
10856
|
], false);
|
10714
10857
|
if (instance.props.onHide(instance) === false) return;
|
@@ -10716,7 +10859,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10716
10859
|
instance.state.isShown = false;
|
10717
10860
|
ignoreOnFirstUpdate = false;
|
10718
10861
|
isVisibleFromClick = false;
|
10719
|
-
if (getIsDefaultRenderFn()) popper.style.visibility =
|
10862
|
+
if (getIsDefaultRenderFn()) popper.style.visibility = 'hidden';
|
10720
10863
|
cleanupInteractiveMouseListeners();
|
10721
10864
|
removeDocumentPress();
|
10722
10865
|
handleStyles(true);
|
@@ -10730,7 +10873,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10730
10873
|
$b013befce1f6217f$var$setVisibilityState([
|
10731
10874
|
box,
|
10732
10875
|
content
|
10733
|
-
],
|
10876
|
+
], 'hidden');
|
10734
10877
|
}
|
10735
10878
|
}
|
10736
10879
|
handleAriaContentAttribute();
|
@@ -10740,7 +10883,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10740
10883
|
} else instance.unmount();
|
10741
10884
|
}
|
10742
10885
|
function hideWithInteractivity(event) {
|
10743
|
-
getDocument().addEventListener(
|
10886
|
+
getDocument().addEventListener('mousemove', debouncedOnMouseMove);
|
10744
10887
|
$b013befce1f6217f$var$pushIfUnique($b013befce1f6217f$var$mouseMoveListeners, debouncedOnMouseMove);
|
10745
10888
|
debouncedOnMouseMove(event);
|
10746
10889
|
}
|
@@ -10758,7 +10901,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10758
10901
|
return i !== instance;
|
10759
10902
|
});
|
10760
10903
|
instance.state.isMounted = false;
|
10761
|
-
invokeHook(
|
10904
|
+
invokeHook('onHidden', [
|
10762
10905
|
instance
|
10763
10906
|
]);
|
10764
10907
|
}
|
@@ -10769,7 +10912,7 @@ function $b013befce1f6217f$var$createTippy(reference, passedProps) {
|
|
10769
10912
|
removeListeners();
|
10770
10913
|
delete reference._tippy;
|
10771
10914
|
instance.state.isDestroyed = true;
|
10772
|
-
invokeHook(
|
10915
|
+
invokeHook('onDestroy', [
|
10773
10916
|
instance
|
10774
10917
|
]);
|
10775
10918
|
}
|
@@ -10819,12 +10962,12 @@ var $b013befce1f6217f$var$applyStylesModifier = Object.assign({}, (0, $dfb41fce0
|
|
10819
10962
|
var initialStyles = {
|
10820
10963
|
popper: {
|
10821
10964
|
position: state.options.strategy,
|
10822
|
-
left:
|
10823
|
-
top:
|
10824
|
-
margin:
|
10965
|
+
left: '0',
|
10966
|
+
top: '0',
|
10967
|
+
margin: '0'
|
10825
10968
|
},
|
10826
10969
|
arrow: {
|
10827
|
-
position:
|
10970
|
+
position: 'absolute'
|
10828
10971
|
},
|
10829
10972
|
reference: {}
|
10830
10973
|
};
|
@@ -10879,12 +11022,12 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10879
11022
|
var index = triggerTargets.indexOf(target); // bail-out
|
10880
11023
|
if (target === currentTarget) return;
|
10881
11024
|
currentTarget = target;
|
10882
|
-
var overrideProps = (overrides || []).concat(
|
11025
|
+
var overrideProps = (overrides || []).concat('content').reduce(function(acc, prop) {
|
10883
11026
|
acc[prop] = individualInstances[index].props[prop];
|
10884
11027
|
return acc;
|
10885
11028
|
}, {});
|
10886
11029
|
singleton.setProps(Object.assign({}, overrideProps, {
|
10887
|
-
getReferenceClientRect: typeof overrideProps.getReferenceClientRect ===
|
11030
|
+
getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function() {
|
10888
11031
|
var _references$index;
|
10889
11032
|
return (_references$index = references[index]) == null ? void 0 : _references$index.getBoundingClientRect();
|
10890
11033
|
}
|
@@ -10921,7 +11064,7 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10921
11064
|
}
|
10922
11065
|
};
|
10923
11066
|
var singleton = $b013befce1f6217f$var$tippy($b013befce1f6217f$var$div(), Object.assign({}, $b013befce1f6217f$var$removeProperties(optionalProps, [
|
10924
|
-
|
11067
|
+
'overrides'
|
10925
11068
|
]), {
|
10926
11069
|
plugins: [
|
10927
11070
|
plugin
|
@@ -10942,7 +11085,7 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10942
11085
|
// programmatic call with no params when already visible (do nothing again)
|
10943
11086
|
if (currentTarget && target == null) return;
|
10944
11087
|
// target is index of instance
|
10945
|
-
if (typeof target ===
|
11088
|
+
if (typeof target === 'number') return references[target] && prepareInstance(singleton, references[target]);
|
10946
11089
|
// target is a child tippy instance
|
10947
11090
|
if (individualInstances.indexOf(target) >= 0) {
|
10948
11091
|
var ref = target.reference;
|
@@ -10986,9 +11129,9 @@ var $b013befce1f6217f$export$374c483667c1ea9b = function createSingleton(tippyIn
|
|
10986
11129
|
return singleton;
|
10987
11130
|
};
|
10988
11131
|
var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
10989
|
-
mouseover:
|
10990
|
-
focusin:
|
10991
|
-
click:
|
11132
|
+
mouseover: 'mouseenter',
|
11133
|
+
focusin: 'focus',
|
11134
|
+
click: 'click'
|
10992
11135
|
};
|
10993
11136
|
/**
|
10994
11137
|
* Creates a delegate instance that controls the creation of tippy instances
|
@@ -10999,10 +11142,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
10999
11142
|
var disabled = false;
|
11000
11143
|
var target = props.target;
|
11001
11144
|
var nativeProps = $b013befce1f6217f$var$removeProperties(props, [
|
11002
|
-
|
11145
|
+
'target'
|
11003
11146
|
]);
|
11004
11147
|
var parentProps = Object.assign({}, nativeProps, {
|
11005
|
-
trigger:
|
11148
|
+
trigger: 'manual',
|
11006
11149
|
touch: false
|
11007
11150
|
});
|
11008
11151
|
var childProps = Object.assign({
|
@@ -11020,10 +11163,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11020
11163
|
// 1. Check `data-tippy-trigger` attribute on target node
|
11021
11164
|
// 2. Fallback to `trigger` passed to `delegate()`
|
11022
11165
|
// 3. Fallback to `defaultProps.trigger`
|
11023
|
-
var trigger = targetNode.getAttribute(
|
11166
|
+
var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || $b013befce1f6217f$var$defaultProps.trigger; // @ts-ignore
|
11024
11167
|
if (targetNode._tippy) return;
|
11025
|
-
if (event.type ===
|
11026
|
-
if (event.type !==
|
11168
|
+
if (event.type === 'touchstart' && typeof childProps.touch === 'boolean') return;
|
11169
|
+
if (event.type !== 'touchstart' && trigger.indexOf($b013befce1f6217f$var$BUBBLING_EVENTS_MAP[event.type]) < 0) return;
|
11027
11170
|
var instance = $b013befce1f6217f$var$tippy(targetNode, childProps);
|
11028
11171
|
if (instance) childTippyInstances = childTippyInstances.concat(instance);
|
11029
11172
|
}
|
@@ -11039,10 +11182,10 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11039
11182
|
}
|
11040
11183
|
function addEventListeners(instance) {
|
11041
11184
|
var reference = instance.reference;
|
11042
|
-
on(reference,
|
11043
|
-
on(reference,
|
11044
|
-
on(reference,
|
11045
|
-
on(reference,
|
11185
|
+
on(reference, 'touchstart', onTrigger, $b013befce1f6217f$var$TOUCH_OPTIONS);
|
11186
|
+
on(reference, 'mouseover', onTrigger);
|
11187
|
+
on(reference, 'focusin', onTrigger);
|
11188
|
+
on(reference, 'click', onTrigger);
|
11046
11189
|
}
|
11047
11190
|
function removeEventListeners() {
|
11048
11191
|
listeners.forEach(function(_ref) {
|
@@ -11084,7 +11227,7 @@ var $b013befce1f6217f$var$BUBBLING_EVENTS_MAP = {
|
|
11084
11227
|
return returnValue;
|
11085
11228
|
}
|
11086
11229
|
var $b013befce1f6217f$export$dd8ded329c01db79 = {
|
11087
|
-
name:
|
11230
|
+
name: 'animateFill',
|
11088
11231
|
defaultValue: false,
|
11089
11232
|
fn: function fn(instance) {
|
11090
11233
|
var _instance$props$rende;
|
@@ -11096,34 +11239,34 @@ var $b013befce1f6217f$export$dd8ded329c01db79 = {
|
|
11096
11239
|
onCreate: function onCreate() {
|
11097
11240
|
if (backdrop) {
|
11098
11241
|
box.insertBefore(backdrop, box.firstElementChild);
|
11099
|
-
box.setAttribute(
|
11100
|
-
box.style.overflow =
|
11242
|
+
box.setAttribute('data-animatefill', '');
|
11243
|
+
box.style.overflow = 'hidden';
|
11101
11244
|
instance.setProps({
|
11102
11245
|
arrow: false,
|
11103
|
-
animation:
|
11246
|
+
animation: 'shift-away'
|
11104
11247
|
});
|
11105
11248
|
}
|
11106
11249
|
},
|
11107
11250
|
onMount: function onMount() {
|
11108
11251
|
if (backdrop) {
|
11109
11252
|
var transitionDuration = box.style.transitionDuration;
|
11110
|
-
var duration = Number(transitionDuration.replace(
|
11253
|
+
var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
|
11111
11254
|
// tooltip element. `clip-path` is the other alternative but is not
|
11112
11255
|
// well-supported and is buggy on some devices.
|
11113
11256
|
content.style.transitionDelay = Math.round(duration / 10) + "ms";
|
11114
11257
|
backdrop.style.transitionDuration = transitionDuration;
|
11115
11258
|
$b013befce1f6217f$var$setVisibilityState([
|
11116
11259
|
backdrop
|
11117
|
-
],
|
11260
|
+
], 'visible');
|
11118
11261
|
}
|
11119
11262
|
},
|
11120
11263
|
onShow: function onShow() {
|
11121
|
-
if (backdrop) backdrop.style.transitionDuration =
|
11264
|
+
if (backdrop) backdrop.style.transitionDuration = '0ms';
|
11122
11265
|
},
|
11123
11266
|
onHide: function onHide() {
|
11124
11267
|
if (backdrop) $b013befce1f6217f$var$setVisibilityState([
|
11125
11268
|
backdrop
|
11126
|
-
],
|
11269
|
+
], 'hidden');
|
11127
11270
|
}
|
11128
11271
|
};
|
11129
11272
|
}
|
@@ -11133,7 +11276,7 @@ function $b013befce1f6217f$var$createBackdropElement() {
|
|
11133
11276
|
backdrop.className = $b013befce1f6217f$var$BACKDROP_CLASS;
|
11134
11277
|
$b013befce1f6217f$var$setVisibilityState([
|
11135
11278
|
backdrop
|
11136
|
-
],
|
11279
|
+
], 'hidden');
|
11137
11280
|
return backdrop;
|
11138
11281
|
}
|
11139
11282
|
var $b013befce1f6217f$var$mouseCoords = {
|
@@ -11149,13 +11292,13 @@ function $b013befce1f6217f$var$storeMouseCoords(_ref) {
|
|
11149
11292
|
};
|
11150
11293
|
}
|
11151
11294
|
function $b013befce1f6217f$var$addMouseCoordsListener(doc) {
|
11152
|
-
doc.addEventListener(
|
11295
|
+
doc.addEventListener('mousemove', $b013befce1f6217f$var$storeMouseCoords);
|
11153
11296
|
}
|
11154
11297
|
function $b013befce1f6217f$var$removeMouseCoordsListener(doc) {
|
11155
|
-
doc.removeEventListener(
|
11298
|
+
doc.removeEventListener('mousemove', $b013befce1f6217f$var$storeMouseCoords);
|
11156
11299
|
}
|
11157
11300
|
var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
11158
|
-
name:
|
11301
|
+
name: 'followCursor',
|
11159
11302
|
defaultValue: false,
|
11160
11303
|
fn: function fn(instance) {
|
11161
11304
|
var reference = instance.reference;
|
@@ -11165,13 +11308,13 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11165
11308
|
var isUnmounted = true;
|
11166
11309
|
var prevProps = instance.props;
|
11167
11310
|
function getIsInitialBehavior() {
|
11168
|
-
return instance.props.followCursor ===
|
11311
|
+
return instance.props.followCursor === 'initial' && instance.state.isVisible;
|
11169
11312
|
}
|
11170
11313
|
function addListener() {
|
11171
|
-
doc.addEventListener(
|
11314
|
+
doc.addEventListener('mousemove', onMouseMove);
|
11172
11315
|
}
|
11173
11316
|
function removeListener() {
|
11174
|
-
doc.removeEventListener(
|
11317
|
+
doc.removeEventListener('mousemove', onMouseMove);
|
11175
11318
|
}
|
11176
11319
|
function unsetGetReferenceClientRect() {
|
11177
11320
|
isInternalUpdate = true;
|
@@ -11195,14 +11338,14 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11195
11338
|
var rect = reference.getBoundingClientRect();
|
11196
11339
|
var x = clientX;
|
11197
11340
|
var y = clientY;
|
11198
|
-
if (followCursor ===
|
11341
|
+
if (followCursor === 'initial') {
|
11199
11342
|
x = rect.left + relativeX;
|
11200
11343
|
y = rect.top + relativeY;
|
11201
11344
|
}
|
11202
|
-
var top = followCursor ===
|
11203
|
-
var right = followCursor ===
|
11204
|
-
var bottom = followCursor ===
|
11205
|
-
var left = followCursor ===
|
11345
|
+
var top = followCursor === 'horizontal' ? rect.top : y;
|
11346
|
+
var right = followCursor === 'vertical' ? rect.right : x;
|
11347
|
+
var bottom = followCursor === 'horizontal' ? rect.bottom : y;
|
11348
|
+
var left = followCursor === 'vertical' ? rect.left : x;
|
11206
11349
|
return {
|
11207
11350
|
width: right - left,
|
11208
11351
|
height: bottom - top,
|
@@ -11265,7 +11408,7 @@ var $b013befce1f6217f$export$ac81526b64504ab6 = {
|
|
11265
11408
|
clientX: event.clientX,
|
11266
11409
|
clientY: event.clientY
|
11267
11410
|
};
|
11268
|
-
wasFocusEvent = event.type ===
|
11411
|
+
wasFocusEvent = event.type === 'focus';
|
11269
11412
|
},
|
11270
11413
|
onHidden: function onHidden() {
|
11271
11414
|
if (instance.props.followCursor) {
|
@@ -11291,7 +11434,7 @@ function $b013befce1f6217f$var$getProps(props, modifier) {
|
|
11291
11434
|
};
|
11292
11435
|
}
|
11293
11436
|
var $b013befce1f6217f$export$e2b668424a9c728 = {
|
11294
|
-
name:
|
11437
|
+
name: 'inlinePositioning',
|
11295
11438
|
defaultValue: false,
|
11296
11439
|
fn: function fn(instance) {
|
11297
11440
|
var reference = instance.reference;
|
@@ -11303,9 +11446,9 @@ var $b013befce1f6217f$export$e2b668424a9c728 = {
|
|
11303
11446
|
var isInternalUpdate = false;
|
11304
11447
|
var triedPlacements = [];
|
11305
11448
|
var modifier = {
|
11306
|
-
name:
|
11449
|
+
name: 'tippyInlinePositioning',
|
11307
11450
|
enabled: true,
|
11308
|
-
phase:
|
11451
|
+
phase: 'afterWrite',
|
11309
11452
|
fn: function fn(_ref2) {
|
11310
11453
|
var state = _ref2.state;
|
11311
11454
|
if (isEnabled()) {
|
@@ -11359,11 +11502,11 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11359
11502
|
// There are two rects and they are disjoined
|
11360
11503
|
if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) return clientRects[cursorRectIndex] || boundingRect;
|
11361
11504
|
switch(currentBasePlacement){
|
11362
|
-
case
|
11363
|
-
case
|
11505
|
+
case 'top':
|
11506
|
+
case 'bottom':
|
11364
11507
|
var firstRect = clientRects[0];
|
11365
11508
|
var lastRect = clientRects[clientRects.length - 1];
|
11366
|
-
var isTop = currentBasePlacement ===
|
11509
|
+
var isTop = currentBasePlacement === 'top';
|
11367
11510
|
var top = firstRect.top;
|
11368
11511
|
var bottom = lastRect.bottom;
|
11369
11512
|
var left = isTop ? firstRect.left : lastRect.left;
|
@@ -11378,8 +11521,8 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11378
11521
|
width: width,
|
11379
11522
|
height: height
|
11380
11523
|
};
|
11381
|
-
case
|
11382
|
-
case
|
11524
|
+
case 'left':
|
11525
|
+
case 'right':
|
11383
11526
|
var minLeft = Math.min.apply(Math, clientRects.map(function(rects) {
|
11384
11527
|
return rects.left;
|
11385
11528
|
}));
|
@@ -11387,7 +11530,7 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11387
11530
|
return rects.right;
|
11388
11531
|
}));
|
11389
11532
|
var measureRects = clientRects.filter(function(rect) {
|
11390
|
-
return currentBasePlacement ===
|
11533
|
+
return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
|
11391
11534
|
});
|
11392
11535
|
var _top = measureRects[0].top;
|
11393
11536
|
var _bottom = measureRects[measureRects.length - 1].bottom;
|
@@ -11408,7 +11551,7 @@ function $b013befce1f6217f$var$getInlineBoundingClientRect(currentBasePlacement,
|
|
11408
11551
|
}
|
11409
11552
|
}
|
11410
11553
|
var $b013befce1f6217f$export$4bd4b47501432316 = {
|
11411
|
-
name:
|
11554
|
+
name: 'sticky',
|
11412
11555
|
defaultValue: false,
|
11413
11556
|
fn: function fn(instance) {
|
11414
11557
|
var reference = instance.reference, popper = instance.popper;
|
@@ -11421,8 +11564,8 @@ var $b013befce1f6217f$export$4bd4b47501432316 = {
|
|
11421
11564
|
var prevRefRect = null;
|
11422
11565
|
var prevPopRect = null;
|
11423
11566
|
function updatePosition() {
|
11424
|
-
var currentRefRect = shouldCheck(
|
11425
|
-
var currentPopRect = shouldCheck(
|
11567
|
+
var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
|
11568
|
+
var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
|
11426
11569
|
if (currentRefRect && $b013befce1f6217f$var$areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && $b013befce1f6217f$var$areRectsDifferent(prevPopRect, currentPopRect)) {
|
11427
11570
|
if (instance.popperInstance) instance.popperInstance.update();
|
11428
11571
|
}
|
@@ -11495,7 +11638,10 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11495
11638
|
if (this.$refs.tooltip) tooltip = (0, $7a759511c361f2bd$export$353372104066311a)(this, {
|
11496
11639
|
target: this.$refs.icon
|
11497
11640
|
});
|
11498
|
-
if (this.dropdownContent)
|
11641
|
+
if (this.dropdownContent) this.initDropdown();
|
11642
|
+
},
|
11643
|
+
initDropdown () {
|
11644
|
+
dropdown = (0, $789b7d27a7c715a6$export$2e2bcd8739ae039)(this.$el, {
|
11499
11645
|
content: this.dropdownContent,
|
11500
11646
|
trigger: "click",
|
11501
11647
|
theme: "menu",
|
@@ -11523,14 +11669,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11523
11669
|
hideDropdown () {
|
11524
11670
|
if (dropdown) dropdown.hide();
|
11525
11671
|
},
|
11526
|
-
updateDropdown () {
|
11527
|
-
if (dropdown) {
|
11528
|
-
dropdown.hide();
|
11529
|
-
this.$nextTick(()=>{
|
11530
|
-
dropdown.setContent(this.dropdownContent);
|
11531
|
-
});
|
11532
|
-
}
|
11533
|
-
},
|
11534
11672
|
startSpin () {
|
11535
11673
|
this._spinning = true;
|
11536
11674
|
},
|
@@ -11545,13 +11683,36 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11545
11683
|
}
|
11546
11684
|
|
11547
11685
|
|
11548
|
-
var $
|
11686
|
+
var $e398acaded942bbe$exports = {};
|
11549
11687
|
|
11550
|
-
$parcel$defineInteropFlag($
|
11688
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11551
11689
|
|
11552
|
-
$parcel$export($
|
11553
|
-
|
11554
|
-
|
11690
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11691
|
+
|
11692
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11693
|
+
return {
|
11694
|
+
width: 0,
|
11695
|
+
height: 0,
|
11696
|
+
resizing: false,
|
11697
|
+
target: null,
|
11698
|
+
init () {
|
11699
|
+
this.target = document.querySelector(targetSelector);
|
11700
|
+
if (this.target) {
|
11701
|
+
this.width = Math.round(this.target.clientWidth);
|
11702
|
+
this.height = Math.round(this.target.clientHeight);
|
11703
|
+
this.createObserver();
|
11704
|
+
}
|
11705
|
+
},
|
11706
|
+
createObserver () {
|
11707
|
+
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
11708
|
+
this.width = width;
|
11709
|
+
this.height = height;
|
11710
|
+
});
|
11711
|
+
},
|
11712
|
+
tearDown () {
|
11713
|
+
if (this.observer) this.observer.disconnect();
|
11714
|
+
}
|
11715
|
+
};
|
11555
11716
|
}
|
11556
11717
|
|
11557
11718
|
|
@@ -11611,39 +11772,6 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11611
11772
|
}
|
11612
11773
|
|
11613
11774
|
|
11614
|
-
var $e398acaded942bbe$exports = {};
|
11615
|
-
|
11616
|
-
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
11617
|
-
|
11618
|
-
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
11619
|
-
|
11620
|
-
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
11621
|
-
return {
|
11622
|
-
width: 0,
|
11623
|
-
height: 0,
|
11624
|
-
resizing: false,
|
11625
|
-
target: null,
|
11626
|
-
init () {
|
11627
|
-
this.target = document.querySelector(targetSelector);
|
11628
|
-
if (this.target) {
|
11629
|
-
this.width = Math.round(this.target.clientWidth);
|
11630
|
-
this.height = Math.round(this.target.clientHeight);
|
11631
|
-
this.createObserver();
|
11632
|
-
}
|
11633
|
-
},
|
11634
|
-
createObserver () {
|
11635
|
-
if (this.target) this.observer = (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.target, ({ width: width, height: height })=>{
|
11636
|
-
this.width = width;
|
11637
|
-
this.height = height;
|
11638
|
-
});
|
11639
|
-
},
|
11640
|
-
tearDown () {
|
11641
|
-
if (this.observer) this.observer.disconnect();
|
11642
|
-
}
|
11643
|
-
};
|
11644
|
-
}
|
11645
|
-
|
11646
|
-
|
11647
11775
|
var $216ef7001f59f21d$exports = {};
|
11648
11776
|
|
11649
11777
|
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
@@ -11732,29 +11860,29 @@ var $7cac9a0d4b75bf4e$var$numeric = function(value, unit) {
|
|
11732
11860
|
return Number(value.slice(0, -1 * unit.length));
|
11733
11861
|
};
|
11734
11862
|
var $7cac9a0d4b75bf4e$var$parseValue = function(value) {
|
11735
|
-
if (value.endsWith(
|
11863
|
+
if (value.endsWith('px')) return {
|
11736
11864
|
value: value,
|
11737
|
-
type:
|
11738
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11865
|
+
type: 'px',
|
11866
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, 'px')
|
11739
11867
|
};
|
11740
|
-
if (value.endsWith(
|
11868
|
+
if (value.endsWith('fr')) return {
|
11741
11869
|
value: value,
|
11742
|
-
type:
|
11743
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11870
|
+
type: 'fr',
|
11871
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, 'fr')
|
11744
11872
|
};
|
11745
|
-
if (value.endsWith(
|
11873
|
+
if (value.endsWith('%')) return {
|
11746
11874
|
value: value,
|
11747
|
-
type:
|
11748
|
-
numeric: $7cac9a0d4b75bf4e$var$numeric(value,
|
11875
|
+
type: '%',
|
11876
|
+
numeric: $7cac9a0d4b75bf4e$var$numeric(value, '%')
|
11749
11877
|
};
|
11750
|
-
if (value ===
|
11878
|
+
if (value === 'auto') return {
|
11751
11879
|
value: value,
|
11752
|
-
type:
|
11880
|
+
type: 'auto'
|
11753
11881
|
};
|
11754
11882
|
return null;
|
11755
11883
|
};
|
11756
11884
|
var $7cac9a0d4b75bf4e$var$parse = function(rule) {
|
11757
|
-
return rule.split(
|
11885
|
+
return rule.split(' ').map($7cac9a0d4b75bf4e$var$parseValue);
|
11758
11886
|
};
|
11759
11887
|
var $7cac9a0d4b75bf4e$var$getSizeAtTrack = function(index, tracks, gap, end) {
|
11760
11888
|
if (gap === void 0) gap = 0;
|
@@ -11770,7 +11898,7 @@ var $7cac9a0d4b75bf4e$var$getStyles = function(rule, ownRules, matchedRules) {
|
|
11770
11898
|
return ownRules.concat(matchedRules).map(function(r) {
|
11771
11899
|
return r.style[rule];
|
11772
11900
|
}).filter(function(style) {
|
11773
|
-
return style !== undefined && style !==
|
11901
|
+
return style !== undefined && style !== '';
|
11774
11902
|
});
|
11775
11903
|
};
|
11776
11904
|
var $7cac9a0d4b75bf4e$var$getGapValue = function(unit, size) {
|
@@ -11816,41 +11944,41 @@ function $7cac9a0d4b75bf4e$var$getMatchedCSSRules(el) {
|
|
11816
11944
|
return matches;
|
11817
11945
|
});
|
11818
11946
|
}
|
11819
|
-
var $7cac9a0d4b75bf4e$var$gridTemplatePropColumns =
|
11820
|
-
var $7cac9a0d4b75bf4e$var$gridTemplatePropRows =
|
11947
|
+
var $7cac9a0d4b75bf4e$var$gridTemplatePropColumns = 'grid-template-columns';
|
11948
|
+
var $7cac9a0d4b75bf4e$var$gridTemplatePropRows = 'grid-template-rows';
|
11821
11949
|
var $7cac9a0d4b75bf4e$var$Gutter = function Gutter(direction, options, parentOptions) {
|
11822
11950
|
this.direction = direction;
|
11823
11951
|
this.element = options.element;
|
11824
11952
|
this.track = options.track;
|
11825
|
-
if (direction ===
|
11953
|
+
if (direction === 'column') {
|
11826
11954
|
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 ===
|
11955
|
+
this.gridGapProp = 'grid-column-gap';
|
11956
|
+
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'columnCursor', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'cursor', 'col-resize'));
|
11957
|
+
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'columnSnapOffset', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'snapOffset', 30));
|
11958
|
+
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'columnDragInterval', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'dragInterval', 1));
|
11959
|
+
this.clientAxis = 'clientX';
|
11960
|
+
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'gridTemplateColumns');
|
11961
|
+
} else if (direction === 'row') {
|
11834
11962
|
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,
|
11963
|
+
this.gridGapProp = 'grid-row-gap';
|
11964
|
+
this.cursor = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'rowCursor', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'cursor', 'row-resize'));
|
11965
|
+
this.snapOffset = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'rowSnapOffset', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'snapOffset', 30));
|
11966
|
+
this.dragInterval = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'rowDragInterval', $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'dragInterval', 1));
|
11967
|
+
this.clientAxis = 'clientY';
|
11968
|
+
this.optionStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'gridTemplateRows');
|
11969
|
+
}
|
11970
|
+
this.onDragStart = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'onDragStart', $7cac9a0d4b75bf4e$var$NOOP);
|
11971
|
+
this.onDragEnd = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'onDragEnd', $7cac9a0d4b75bf4e$var$NOOP);
|
11972
|
+
this.onDrag = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'onDrag', $7cac9a0d4b75bf4e$var$NOOP);
|
11973
|
+
this.writeStyle = $7cac9a0d4b75bf4e$var$getOption(parentOptions, 'writeStyle', $7cac9a0d4b75bf4e$var$defaultWriteStyle);
|
11846
11974
|
this.startDragging = this.startDragging.bind(this);
|
11847
11975
|
this.stopDragging = this.stopDragging.bind(this);
|
11848
11976
|
this.drag = this.drag.bind(this);
|
11849
11977
|
this.minSizeStart = options.minSizeStart;
|
11850
11978
|
this.minSizeEnd = options.minSizeEnd;
|
11851
11979
|
if (options.element) {
|
11852
|
-
this.element.addEventListener(
|
11853
|
-
this.element.addEventListener(
|
11980
|
+
this.element.addEventListener('mousedown', this.startDragging);
|
11981
|
+
this.element.addEventListener('touchstart', this.startDragging);
|
11854
11982
|
}
|
11855
11983
|
};
|
11856
11984
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.getDimensions = function getDimensions() {
|
@@ -11861,11 +11989,11 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getDimensions = function getDimensions()
|
|
11861
11989
|
var bottom = ref.bottom;
|
11862
11990
|
var left = ref.left;
|
11863
11991
|
var right = ref.right;
|
11864
|
-
if (this.direction ===
|
11992
|
+
if (this.direction === 'column') {
|
11865
11993
|
this.start = top;
|
11866
11994
|
this.end = bottom;
|
11867
11995
|
this.size = height;
|
11868
|
-
} else if (this.direction ===
|
11996
|
+
} else if (this.direction === 'row') {
|
11869
11997
|
this.start = left;
|
11870
11998
|
this.end = right;
|
11871
11999
|
this.size = width;
|
@@ -11883,7 +12011,7 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getRawTracks = function getRawTracks() {
|
|
11883
12011
|
], $7cac9a0d4b75bf4e$var$getMatchedCSSRules(this.grid));
|
11884
12012
|
if (!tracks.length) {
|
11885
12013
|
if (this.optionStyle) return this.optionStyle;
|
11886
|
-
throw Error(
|
12014
|
+
throw Error('Unable to determine grid template tracks from styles.');
|
11887
12015
|
}
|
11888
12016
|
return tracks[0];
|
11889
12017
|
};
|
@@ -11901,11 +12029,11 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.getRawComputedGap = function getRawComput
|
|
11901
12029
|
return window.getComputedStyle(this.grid)[this.gridGapProp];
|
11902
12030
|
};
|
11903
12031
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setTracks = function setTracks(raw) {
|
11904
|
-
this.tracks = raw.split(
|
12032
|
+
this.tracks = raw.split(' ');
|
11905
12033
|
this.trackValues = $7cac9a0d4b75bf4e$var$parse(raw);
|
11906
12034
|
};
|
11907
12035
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setComputedTracks = function setComputedTracks(raw) {
|
11908
|
-
this.computedTracks = raw.split(
|
12036
|
+
this.computedTracks = raw.split(' ');
|
11909
12037
|
this.computedPixels = $7cac9a0d4b75bf4e$var$parse(raw);
|
11910
12038
|
};
|
11911
12039
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setGap = function setGap(raw) {
|
@@ -11913,14 +12041,14 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.setGap = function setGap(raw) {
|
|
11913
12041
|
};
|
11914
12042
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.setComputedGap = function setComputedGap(raw) {
|
11915
12043
|
this.computedGap = raw;
|
11916
|
-
this.computedGapPixels = $7cac9a0d4b75bf4e$var$getGapValue(
|
12044
|
+
this.computedGapPixels = $7cac9a0d4b75bf4e$var$getGapValue('px', this.computedGap) || 0;
|
11917
12045
|
};
|
11918
12046
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.getMousePosition = function getMousePosition(e) {
|
11919
|
-
if (
|
12047
|
+
if ('touches' in e) return e.touches[0][this.clientAxis];
|
11920
12048
|
return e[this.clientAxis];
|
11921
12049
|
};
|
11922
12050
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e) {
|
11923
|
-
if (
|
12051
|
+
if ('button' in e && e.button !== 0) return;
|
11924
12052
|
// Don't actually drag the element. We emulate that in the drag function.
|
11925
12053
|
e.preventDefault();
|
11926
12054
|
if (this.element) this.grid = this.element.parentNode;
|
@@ -11931,10 +12059,10 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e)
|
|
11931
12059
|
this.setGap(this.getGap());
|
11932
12060
|
this.setComputedGap(this.getRawComputedGap());
|
11933
12061
|
var trackPercentage = this.trackValues.filter(function(track) {
|
11934
|
-
return track.type ===
|
12062
|
+
return track.type === '%';
|
11935
12063
|
});
|
11936
12064
|
var trackFr = this.trackValues.filter(function(track) {
|
11937
|
-
return track.type ===
|
12065
|
+
return track.type === 'fr';
|
11938
12066
|
});
|
11939
12067
|
this.totalFrs = trackFr.length;
|
11940
12068
|
if (this.totalFrs) {
|
@@ -11956,18 +12084,18 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.startDragging = function startDragging(e)
|
|
11956
12084
|
// Set the dragging property of the pair object.
|
11957
12085
|
this.dragging = true;
|
11958
12086
|
// 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(
|
12087
|
+
window.addEventListener('mouseup', this.stopDragging);
|
12088
|
+
window.addEventListener('touchend', this.stopDragging);
|
12089
|
+
window.addEventListener('touchcancel', this.stopDragging);
|
12090
|
+
window.addEventListener('mousemove', this.drag);
|
12091
|
+
window.addEventListener('touchmove', this.drag);
|
11964
12092
|
// 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 =
|
12093
|
+
this.grid.addEventListener('selectstart', $7cac9a0d4b75bf4e$var$NOOP);
|
12094
|
+
this.grid.addEventListener('dragstart', $7cac9a0d4b75bf4e$var$NOOP);
|
12095
|
+
this.grid.style.userSelect = 'none';
|
12096
|
+
this.grid.style.webkitUserSelect = 'none';
|
12097
|
+
this.grid.style.MozUserSelect = 'none';
|
12098
|
+
this.grid.style.pointerEvents = 'none';
|
11971
12099
|
// Set the cursor at multiple levels
|
11972
12100
|
this.grid.style.cursor = this.cursor;
|
11973
12101
|
window.document.body.style.cursor = this.cursor;
|
@@ -11980,8 +12108,8 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.stopDragging = function stopDragging() {
|
|
11980
12108
|
this.onDragEnd(this.direction, this.track);
|
11981
12109
|
if (this.needsDestroy) {
|
11982
12110
|
if (this.element) {
|
11983
|
-
this.element.removeEventListener(
|
11984
|
-
this.element.removeEventListener(
|
12111
|
+
this.element.removeEventListener('mousedown', this.startDragging);
|
12112
|
+
this.element.removeEventListener('touchstart', this.startDragging);
|
11985
12113
|
}
|
11986
12114
|
this.destroyCb();
|
11987
12115
|
this.needsDestroy = false;
|
@@ -12008,56 +12136,56 @@ $7cac9a0d4b75bf4e$var$Gutter.prototype.drag = function drag(e) {
|
|
12008
12136
|
}
|
12009
12137
|
if (aTrackSize < this.minSizeStart) aTrackSize = this.minSizeStart;
|
12010
12138
|
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] =
|
12139
|
+
if (this.trackValues[this.aTrack].type === 'px') this.tracks[this.aTrack] = aTrackSize + "px";
|
12140
|
+
else if (this.trackValues[this.aTrack].type === 'fr') {
|
12141
|
+
if (this.totalFrs === 1) this.tracks[this.aTrack] = '1fr';
|
12014
12142
|
else {
|
12015
12143
|
var targetFr = aTrackSize / this.frToPixels;
|
12016
12144
|
this.tracks[this.aTrack] = targetFr + "fr";
|
12017
12145
|
}
|
12018
|
-
} else if (this.trackValues[this.aTrack].type ===
|
12146
|
+
} else if (this.trackValues[this.aTrack].type === '%') {
|
12019
12147
|
var targetPercentage = aTrackSize / this.percentageToPixels;
|
12020
12148
|
this.tracks[this.aTrack] = targetPercentage + "%";
|
12021
12149
|
}
|
12022
|
-
if (this.trackValues[this.bTrack].type ===
|
12023
|
-
else if (this.trackValues[this.bTrack].type ===
|
12024
|
-
if (this.totalFrs === 1) this.tracks[this.bTrack] =
|
12150
|
+
if (this.trackValues[this.bTrack].type === 'px') this.tracks[this.bTrack] = bTrackSize + "px";
|
12151
|
+
else if (this.trackValues[this.bTrack].type === 'fr') {
|
12152
|
+
if (this.totalFrs === 1) this.tracks[this.bTrack] = '1fr';
|
12025
12153
|
else {
|
12026
12154
|
var targetFr$1 = bTrackSize / this.frToPixels;
|
12027
12155
|
this.tracks[this.bTrack] = targetFr$1 + "fr";
|
12028
12156
|
}
|
12029
|
-
} else if (this.trackValues[this.bTrack].type ===
|
12157
|
+
} else if (this.trackValues[this.bTrack].type === '%') {
|
12030
12158
|
var targetPercentage$1 = bTrackSize / this.percentageToPixels;
|
12031
12159
|
this.tracks[this.bTrack] = targetPercentage$1 + "%";
|
12032
12160
|
}
|
12033
|
-
var style = this.tracks.join(
|
12161
|
+
var style = this.tracks.join(' ');
|
12034
12162
|
this.writeStyle(this.grid, this.gridTemplateProp, style);
|
12035
12163
|
this.onDrag(this.direction, this.track, style);
|
12036
12164
|
};
|
12037
12165
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.cleanup = function cleanup() {
|
12038
|
-
window.removeEventListener(
|
12039
|
-
window.removeEventListener(
|
12040
|
-
window.removeEventListener(
|
12041
|
-
window.removeEventListener(
|
12042
|
-
window.removeEventListener(
|
12166
|
+
window.removeEventListener('mouseup', this.stopDragging);
|
12167
|
+
window.removeEventListener('touchend', this.stopDragging);
|
12168
|
+
window.removeEventListener('touchcancel', this.stopDragging);
|
12169
|
+
window.removeEventListener('mousemove', this.drag);
|
12170
|
+
window.removeEventListener('touchmove', this.drag);
|
12043
12171
|
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 =
|
12172
|
+
this.grid.removeEventListener('selectstart', $7cac9a0d4b75bf4e$var$NOOP);
|
12173
|
+
this.grid.removeEventListener('dragstart', $7cac9a0d4b75bf4e$var$NOOP);
|
12174
|
+
this.grid.style.userSelect = '';
|
12175
|
+
this.grid.style.webkitUserSelect = '';
|
12176
|
+
this.grid.style.MozUserSelect = '';
|
12177
|
+
this.grid.style.pointerEvents = '';
|
12178
|
+
this.grid.style.cursor = '';
|
12179
|
+
}
|
12180
|
+
window.document.body.style.cursor = '';
|
12053
12181
|
};
|
12054
12182
|
$7cac9a0d4b75bf4e$var$Gutter.prototype.destroy = function destroy(immediate, cb) {
|
12055
12183
|
if (immediate === void 0) immediate = true;
|
12056
12184
|
if (immediate || this.dragging === false) {
|
12057
12185
|
this.cleanup();
|
12058
12186
|
if (this.element) {
|
12059
|
-
this.element.removeEventListener(
|
12060
|
-
this.element.removeEventListener(
|
12187
|
+
this.element.removeEventListener('mousedown', this.startDragging);
|
12188
|
+
this.element.removeEventListener('touchstart', this.startDragging);
|
12061
12189
|
}
|
12062
12190
|
if (cb) cb();
|
12063
12191
|
} else {
|
@@ -12072,11 +12200,11 @@ var $7cac9a0d4b75bf4e$var$getTrackOption = function(options, track, defaultValue
|
|
12072
12200
|
var $7cac9a0d4b75bf4e$var$createGutter = function(direction, options) {
|
12073
12201
|
return function(gutterOptions) {
|
12074
12202
|
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 ===
|
12203
|
+
var trackMinSizes = direction === 'column' ? options.columnMinSizes || {} : options.rowMinSizes || {};
|
12204
|
+
var trackMinSize = direction === 'column' ? 'columnMinSize' : 'rowMinSize';
|
12077
12205
|
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,
|
12206
|
+
minSizeStart: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track - 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options, 'minSize', 0))),
|
12207
|
+
minSizeEnd: $7cac9a0d4b75bf4e$var$getTrackOption(trackMinSizes, gutterOptions.track + 1, $7cac9a0d4b75bf4e$var$getOption(options, trackMinSize, $7cac9a0d4b75bf4e$var$getOption(options, 'minSize', 0)))
|
12080
12208
|
}, gutterOptions), options);
|
12081
12209
|
};
|
12082
12210
|
};
|
@@ -12091,22 +12219,22 @@ var $7cac9a0d4b75bf4e$var$Grid = function Grid(options) {
|
|
12091
12219
|
rowMinSizes: options.rowMinSizes || {}
|
12092
12220
|
}, options);
|
12093
12221
|
this.options.columnGutters.forEach(function(gutterOptions) {
|
12094
|
-
this$1.columnGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12222
|
+
this$1.columnGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter('column', this$1.options)(gutterOptions);
|
12095
12223
|
});
|
12096
12224
|
this.options.rowGutters.forEach(function(gutterOptions) {
|
12097
|
-
this$1.rowGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12225
|
+
this$1.rowGutters[gutterOptions.track] = $7cac9a0d4b75bf4e$var$createGutter('row', this$1.options)(gutterOptions);
|
12098
12226
|
});
|
12099
12227
|
};
|
12100
12228
|
$7cac9a0d4b75bf4e$var$Grid.prototype.addColumnGutter = function addColumnGutter(element, track) {
|
12101
12229
|
if (this.columnGutters[track]) this.columnGutters[track].destroy();
|
12102
|
-
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12230
|
+
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('column', this.options)({
|
12103
12231
|
element: element,
|
12104
12232
|
track: track
|
12105
12233
|
});
|
12106
12234
|
};
|
12107
12235
|
$7cac9a0d4b75bf4e$var$Grid.prototype.addRowGutter = function addRowGutter(element, track) {
|
12108
12236
|
if (this.rowGutters[track]) this.rowGutters[track].destroy();
|
12109
|
-
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12237
|
+
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('row', this.options)({
|
12110
12238
|
element: element,
|
12111
12239
|
track: track
|
12112
12240
|
});
|
@@ -12126,15 +12254,15 @@ $7cac9a0d4b75bf4e$var$Grid.prototype.removeRowGutter = function removeRowGutter(
|
|
12126
12254
|
});
|
12127
12255
|
};
|
12128
12256
|
$7cac9a0d4b75bf4e$var$Grid.prototype.handleDragStart = function handleDragStart(e, direction, track) {
|
12129
|
-
if (direction ===
|
12257
|
+
if (direction === 'column') {
|
12130
12258
|
if (this.columnGutters[track]) this.columnGutters[track].destroy();
|
12131
|
-
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12259
|
+
this.columnGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('column', this.options)({
|
12132
12260
|
track: track
|
12133
12261
|
});
|
12134
12262
|
this.columnGutters[track].startDragging(e);
|
12135
|
-
} else if (direction ===
|
12263
|
+
} else if (direction === 'row') {
|
12136
12264
|
if (this.rowGutters[track]) this.rowGutters[track].destroy();
|
12137
|
-
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter(
|
12265
|
+
this.rowGutters[track] = $7cac9a0d4b75bf4e$var$createGutter('row', this.options)({
|
12138
12266
|
track: track
|
12139
12267
|
});
|
12140
12268
|
this.rowGutters[track].startDragging(e);
|
@@ -12520,11 +12648,11 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12520
12648
|
}
|
12521
12649
|
|
12522
12650
|
|
12523
|
-
$
|
12524
|
-
"button": $cbd28b10fa9798c7$exports,
|
12651
|
+
$88dfd91701b4cd8b$exports = {
|
12525
12652
|
"code": $99486586f6691564$exports,
|
12526
|
-
"
|
12653
|
+
"button": $cbd28b10fa9798c7$exports,
|
12527
12654
|
"dimensions_display": $e398acaded942bbe$exports,
|
12655
|
+
"copy_button": $47a1c62621be0c54$exports,
|
12528
12656
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12529
12657
|
"filter": $e9904a14dabf652d$exports,
|
12530
12658
|
"nav": $d92d9d5253f84566$exports,
|
@@ -12535,17 +12663,17 @@ $c9dfaeb25bf110ce$exports = {
|
|
12535
12663
|
};
|
12536
12664
|
|
12537
12665
|
|
12538
|
-
var $
|
12666
|
+
var $5d1c9207cb730903$exports = {};
|
12539
12667
|
var $6a9b69d9cc7f810f$exports = {};
|
12540
12668
|
|
12541
12669
|
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
12542
12670
|
|
12543
12671
|
$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
|
12544
12672
|
var $cdfeaa1e0e8d642c$exports = {};
|
12545
|
-
(function(global, factory) {
|
12673
|
+
/*! js-cookie v3.0.5 | MIT */ (function(global, factory) {
|
12546
12674
|
$cdfeaa1e0e8d642c$exports = factory();
|
12547
12675
|
})($cdfeaa1e0e8d642c$exports, function() {
|
12548
|
-
|
12676
|
+
'use strict';
|
12549
12677
|
/* eslint-disable no-var */ function assign(target) {
|
12550
12678
|
for(var i = 1; i < arguments.length; i++){
|
12551
12679
|
var source = arguments[i];
|
@@ -12564,15 +12692,15 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12564
12692
|
};
|
12565
12693
|
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
12566
12694
|
function set(name, value, attributes) {
|
12567
|
-
if (typeof document ===
|
12695
|
+
if (typeof document === 'undefined') return;
|
12568
12696
|
attributes = assign({}, defaultAttributes, attributes);
|
12569
|
-
if (typeof attributes.expires ===
|
12697
|
+
if (typeof attributes.expires === 'number') attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
12570
12698
|
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
12571
12699
|
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
12572
|
-
var stringifiedAttributes =
|
12700
|
+
var stringifiedAttributes = '';
|
12573
12701
|
for(var attributeName in attributes){
|
12574
12702
|
if (!attributes[attributeName]) continue;
|
12575
|
-
stringifiedAttributes +=
|
12703
|
+
stringifiedAttributes += '; ' + attributeName;
|
12576
12704
|
if (attributes[attributeName] === true) continue;
|
12577
12705
|
// Considers RFC 6265 section 5.2:
|
12578
12706
|
// ...
|
@@ -12581,19 +12709,19 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12581
12709
|
// Consume the characters of the unparsed-attributes up to,
|
12582
12710
|
// not including, the first %x3B (";") character.
|
12583
12711
|
// ...
|
12584
|
-
stringifiedAttributes +=
|
12712
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
12585
12713
|
}
|
12586
|
-
return document.cookie = name +
|
12714
|
+
return document.cookie = name + '=' + converter.write(value, name) + stringifiedAttributes;
|
12587
12715
|
}
|
12588
12716
|
function get(name) {
|
12589
|
-
if (typeof document ===
|
12717
|
+
if (typeof document === 'undefined' || arguments.length && !name) return;
|
12590
12718
|
// To prevent the for loop in the first place assign an empty array
|
12591
12719
|
// in case there are no cookies at all.
|
12592
|
-
var cookies = document.cookie ? document.cookie.split(
|
12720
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
12593
12721
|
var jar = {};
|
12594
12722
|
for(var i = 0; i < cookies.length; i++){
|
12595
|
-
var parts = cookies[i].split(
|
12596
|
-
var value = parts.slice(1).join(
|
12723
|
+
var parts = cookies[i].split('=');
|
12724
|
+
var value = parts.slice(1).join('=');
|
12597
12725
|
try {
|
12598
12726
|
var found = decodeURIComponent(parts[0]);
|
12599
12727
|
jar[found] = converter.read(value, found);
|
@@ -12606,7 +12734,7 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12606
12734
|
set: set,
|
12607
12735
|
get: get,
|
12608
12736
|
remove: function(name, attributes) {
|
12609
|
-
set(name,
|
12737
|
+
set(name, '', assign({}, attributes, {
|
12610
12738
|
expires: -1
|
12611
12739
|
}));
|
12612
12740
|
},
|
@@ -12626,7 +12754,7 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12626
12754
|
});
|
12627
12755
|
}
|
12628
12756
|
var api = init(defaultConverter, {
|
12629
|
-
path:
|
12757
|
+
path: '/'
|
12630
12758
|
});
|
12631
12759
|
/* eslint-enable no-var */ return api;
|
12632
12760
|
});
|
@@ -12664,14 +12792,26 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12664
12792
|
* File: iframeResizer.js
|
12665
12793
|
* Desc: Force iframes to size to content.
|
12666
12794
|
* Requires: iframeResizer.contentWindow.js to be loaded into the target frame.
|
12667
|
-
* Doc: https://
|
12668
|
-
* Author: David J. Bradshaw -
|
12669
|
-
|
12670
|
-
|
12671
|
-
|
12795
|
+
* Doc: https://iframe-resizer.com
|
12796
|
+
* Author: David J. Bradshaw - info@iframe-resizer.com
|
12797
|
+
*/ console.info(`
|
12798
|
+
IFRAME-RESIZER
|
12799
|
+
|
12800
|
+
Iframe-Resizer 5 is now available via the following two packages:
|
12801
|
+
|
12802
|
+
* @iframe-resizer/parent
|
12803
|
+
* @iframe-resizer/child
|
12804
|
+
|
12805
|
+
Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery.
|
12806
|
+
|
12807
|
+
Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.
|
12808
|
+
|
12809
|
+
Please see https://iframe-resizer.com/upgrade for more details.
|
12810
|
+
`);
|
12672
12811
|
(function(undefined) {
|
12673
|
-
if (typeof window ===
|
12674
|
-
var
|
12812
|
+
if (typeof window === 'undefined') return; // don't run for server side render
|
12813
|
+
// var VERSION = '4.3.11'
|
12814
|
+
var count = 0, destroyObserver, logEnabled = false, hiddenCheckEnabled = false, msgHeader = 'message', msgHeaderLen = msgHeader.length, msgId = '[iFrameSizer]', msgIdLen = msgId.length, pagePosition = null, requestAnimationFrame = window.requestAnimationFrame, resetRequiredMethods = Object.freeze({
|
12675
12815
|
max: 1,
|
12676
12816
|
scroll: 1,
|
12677
12817
|
bodyScroll: 1,
|
@@ -12685,29 +12825,30 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12685
12825
|
checkOrigin: true,
|
12686
12826
|
inPageLinks: false,
|
12687
12827
|
enablePublicMethods: true,
|
12688
|
-
heightCalculationMethod:
|
12689
|
-
id:
|
12828
|
+
heightCalculationMethod: 'bodyOffset',
|
12829
|
+
id: 'iFrameResizer',
|
12690
12830
|
interval: 32,
|
12831
|
+
license: '1jqr0si6pnt',
|
12691
12832
|
log: false,
|
12692
12833
|
maxHeight: Infinity,
|
12693
12834
|
maxWidth: Infinity,
|
12694
12835
|
minHeight: 0,
|
12695
12836
|
minWidth: 0,
|
12696
12837
|
mouseEvents: true,
|
12697
|
-
resizeFrom:
|
12838
|
+
resizeFrom: 'parent',
|
12698
12839
|
scrolling: false,
|
12699
12840
|
sizeHeight: true,
|
12700
12841
|
sizeWidth: false,
|
12701
12842
|
warningTimeout: 5000,
|
12702
12843
|
tolerance: 0,
|
12703
|
-
widthCalculationMethod:
|
12844
|
+
widthCalculationMethod: 'scroll',
|
12704
12845
|
onClose: function() {
|
12705
12846
|
return true;
|
12706
12847
|
},
|
12707
12848
|
onClosed: function() {},
|
12708
12849
|
onInit: function() {},
|
12709
12850
|
onMessage: function() {
|
12710
|
-
warn(
|
12851
|
+
warn('onMessage function not defined');
|
12711
12852
|
},
|
12712
12853
|
onMouseEnter: function() {},
|
12713
12854
|
onMouseLeave: function() {},
|
@@ -12727,42 +12868,42 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12727
12868
|
}
|
12728
12869
|
function setupRequestAnimationFrame() {
|
12729
12870
|
var vendors = [
|
12730
|
-
|
12731
|
-
|
12732
|
-
|
12733
|
-
|
12871
|
+
'moz',
|
12872
|
+
'webkit',
|
12873
|
+
'o',
|
12874
|
+
'ms'
|
12734
12875
|
];
|
12735
12876
|
var x;
|
12736
12877
|
// Remove vendor prefixing if prefixed and break early if not
|
12737
|
-
for(x = 0; x < vendors.length && !requestAnimationFrame; x += 1)requestAnimationFrame = window[vendors[x] +
|
12878
|
+
for(x = 0; x < vendors.length && !requestAnimationFrame; x += 1)requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
|
12738
12879
|
if (requestAnimationFrame) // Firefox extension content-scripts have a globalThis object that is not the same as window.
|
12739
12880
|
// Binding `requestAnimationFrame` to window allows the function to work and prevents errors
|
12740
12881
|
// being thrown when run in that context, and should be a no-op in every other context.
|
12741
12882
|
requestAnimationFrame = requestAnimationFrame.bind(window);
|
12742
|
-
else log(
|
12883
|
+
else log('setup', 'RequestAnimationFrame not supported');
|
12743
12884
|
}
|
12744
12885
|
function getMyID(iframeId) {
|
12745
|
-
var retStr =
|
12746
|
-
if (window.top !== window.self) retStr = window.parentIFrame && window.parentIFrame.getId ? window.parentIFrame.getId() +
|
12886
|
+
var retStr = 'Host page: ' + iframeId;
|
12887
|
+
if (window.top !== window.self) retStr = window.parentIFrame && window.parentIFrame.getId ? window.parentIFrame.getId() + ': ' + iframeId : 'Nested host page: ' + iframeId;
|
12747
12888
|
return retStr;
|
12748
12889
|
}
|
12749
12890
|
function formatLogHeader(iframeId) {
|
12750
|
-
return msgId +
|
12891
|
+
return msgId + '[' + getMyID(iframeId) + ']';
|
12751
12892
|
}
|
12752
12893
|
function isLogEnabled(iframeId) {
|
12753
12894
|
return settings[iframeId] ? settings[iframeId].log : logEnabled;
|
12754
12895
|
}
|
12755
12896
|
function log(iframeId, msg) {
|
12756
|
-
output(
|
12897
|
+
output('log', iframeId, msg, isLogEnabled(iframeId));
|
12757
12898
|
}
|
12758
12899
|
function info(iframeId, msg) {
|
12759
|
-
output(
|
12900
|
+
output('info', iframeId, msg, isLogEnabled(iframeId));
|
12760
12901
|
}
|
12761
12902
|
function warn(iframeId, msg) {
|
12762
|
-
output(
|
12903
|
+
output('warn', iframeId, msg, true);
|
12763
12904
|
}
|
12764
12905
|
function output(type, iframeId, msg, enabled) {
|
12765
|
-
if (true === enabled &&
|
12906
|
+
if (true === enabled && 'object' === typeof window.console) // eslint-disable-next-line no-console
|
12766
12907
|
console[type](formatLogHeader(iframeId), msg);
|
12767
12908
|
}
|
12768
12909
|
function iFrameListener(event) {
|
@@ -12770,14 +12911,14 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12770
12911
|
function resize() {
|
12771
12912
|
setSize(messageData);
|
12772
12913
|
setPagePosition(iframeId);
|
12773
|
-
on(
|
12914
|
+
on('onResized', messageData);
|
12774
12915
|
}
|
12775
|
-
ensureInRange(
|
12776
|
-
ensureInRange(
|
12777
|
-
syncResize(resize, messageData,
|
12916
|
+
ensureInRange('Height');
|
12917
|
+
ensureInRange('Width');
|
12918
|
+
syncResize(resize, messageData, 'init');
|
12778
12919
|
}
|
12779
12920
|
function processMsg() {
|
12780
|
-
var data = msg.slice(msgIdLen).split(
|
12921
|
+
var data = msg.slice(msgIdLen).split(':');
|
12781
12922
|
var height = data[1] ? parseInt(data[1], 10) : 0;
|
12782
12923
|
var iframe = settings[data[0]] && settings[data[0]].iframe;
|
12783
12924
|
var compStyle = getComputedStyle(iframe);
|
@@ -12790,35 +12931,35 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12790
12931
|
};
|
12791
12932
|
}
|
12792
12933
|
function getPaddingEnds(compStyle) {
|
12793
|
-
if (compStyle.boxSizing !==
|
12934
|
+
if (compStyle.boxSizing !== 'border-box') return 0;
|
12794
12935
|
var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0;
|
12795
12936
|
var bot = compStyle.paddingBottom ? parseInt(compStyle.paddingBottom, 10) : 0;
|
12796
12937
|
return top + bot;
|
12797
12938
|
}
|
12798
12939
|
function getBorderEnds(compStyle) {
|
12799
|
-
if (compStyle.boxSizing !==
|
12940
|
+
if (compStyle.boxSizing !== 'border-box') return 0;
|
12800
12941
|
var top = compStyle.borderTopWidth ? parseInt(compStyle.borderTopWidth, 10) : 0;
|
12801
12942
|
var bot = compStyle.borderBottomWidth ? parseInt(compStyle.borderBottomWidth, 10) : 0;
|
12802
12943
|
return top + bot;
|
12803
12944
|
}
|
12804
12945
|
function ensureInRange(Dimension) {
|
12805
|
-
var max = Number(settings[iframeId][
|
12806
|
-
log(iframeId,
|
12946
|
+
var max = Number(settings[iframeId]['max' + Dimension]), min = Number(settings[iframeId]['min' + Dimension]), dimension = Dimension.toLowerCase(), size = Number(messageData[dimension]);
|
12947
|
+
log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max);
|
12807
12948
|
if (size < min) {
|
12808
12949
|
size = min;
|
12809
|
-
log(iframeId,
|
12950
|
+
log(iframeId, 'Set ' + dimension + ' to min value');
|
12810
12951
|
}
|
12811
12952
|
if (size > max) {
|
12812
12953
|
size = max;
|
12813
|
-
log(iframeId,
|
12954
|
+
log(iframeId, 'Set ' + dimension + ' to max value');
|
12814
12955
|
}
|
12815
|
-
messageData[dimension] =
|
12956
|
+
messageData[dimension] = '' + size;
|
12816
12957
|
}
|
12817
12958
|
function isMessageFromIFrame() {
|
12818
12959
|
function checkAllowedOrigin() {
|
12819
12960
|
function checkList() {
|
12820
12961
|
var i = 0, retCode = false;
|
12821
|
-
log(iframeId,
|
12962
|
+
log(iframeId, 'Checking connection is from allowed list of origins: ' + checkOrigin);
|
12822
12963
|
for(; i < checkOrigin.length; i++)if (checkOrigin[i] === origin) {
|
12823
12964
|
retCode = true;
|
12824
12965
|
break;
|
@@ -12827,17 +12968,17 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12827
12968
|
}
|
12828
12969
|
function checkSingle() {
|
12829
12970
|
var remoteHost = settings[iframeId] && settings[iframeId].remoteHost;
|
12830
|
-
log(iframeId,
|
12971
|
+
log(iframeId, 'Checking connection is from: ' + remoteHost);
|
12831
12972
|
return origin === remoteHost;
|
12832
12973
|
}
|
12833
12974
|
return checkOrigin.constructor === Array ? checkList() : checkSingle();
|
12834
12975
|
}
|
12835
12976
|
var origin = event.origin, checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin;
|
12836
|
-
if (checkOrigin &&
|
12977
|
+
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.');
|
12837
12978
|
return true;
|
12838
12979
|
}
|
12839
12980
|
function isMessageForUs() {
|
12840
|
-
return msgId === (
|
12981
|
+
return msgId === ('' + msg).slice(0, msgIdLen) && msg.slice(msgIdLen).split(':')[0] in settings // ''+Protects against non-string msg
|
12841
12982
|
;
|
12842
12983
|
}
|
12843
12984
|
function isMessageFromMetaParent() {
|
@@ -12848,19 +12989,19 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12848
12989
|
false: 1,
|
12849
12990
|
undefined: 1
|
12850
12991
|
};
|
12851
|
-
if (retCode) log(iframeId,
|
12992
|
+
if (retCode) log(iframeId, 'Ignoring init message from meta parent page');
|
12852
12993
|
return retCode;
|
12853
12994
|
}
|
12854
12995
|
function getMsgBody(offset) {
|
12855
|
-
return msg.slice(msg.indexOf(
|
12996
|
+
return msg.slice(msg.indexOf(':') + msgHeaderLen + offset);
|
12856
12997
|
}
|
12857
12998
|
function forwardMsgFromIFrame(msgBody) {
|
12858
|
-
log(iframeId,
|
12859
|
-
on(
|
12999
|
+
log(iframeId, 'onMessage passed: {iframe: ' + messageData.iframe.id + ', message: ' + msgBody + '}');
|
13000
|
+
on('onMessage', {
|
12860
13001
|
iframe: messageData.iframe,
|
12861
13002
|
message: JSON.parse(msgBody)
|
12862
13003
|
});
|
12863
|
-
log(iframeId,
|
13004
|
+
log(iframeId, '--');
|
12864
13005
|
}
|
12865
13006
|
function getPageInfo() {
|
12866
13007
|
var bodyPosition = document.body.getBoundingClientRect(), iFramePosition = messageData.iframe.getBoundingClientRect();
|
@@ -12881,7 +13022,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12881
13022
|
}
|
12882
13023
|
function sendPageInfoToIframe(iframe, iframeId) {
|
12883
13024
|
function debouncedTrigger() {
|
12884
|
-
trigger(
|
13025
|
+
trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId);
|
12885
13026
|
}
|
12886
13027
|
debounceFrameEvents(debouncedTrigger, 32, iframeId);
|
12887
13028
|
}
|
@@ -12892,18 +13033,18 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12892
13033
|
else stop();
|
12893
13034
|
}
|
12894
13035
|
[
|
12895
|
-
|
12896
|
-
|
13036
|
+
'scroll',
|
13037
|
+
'resize'
|
12897
13038
|
].forEach(function(evt) {
|
12898
|
-
log(id, type + evt +
|
13039
|
+
log(id, type + evt + ' listener for sendPageInfo');
|
12899
13040
|
func(window, evt, sendPageInfo);
|
12900
13041
|
});
|
12901
13042
|
}
|
12902
13043
|
function stop() {
|
12903
|
-
setListener(
|
13044
|
+
setListener('Remove ', removeEventListener);
|
12904
13045
|
}
|
12905
13046
|
function start() {
|
12906
|
-
setListener(
|
13047
|
+
setListener('Add ', addEventListener);
|
12907
13048
|
}
|
12908
13049
|
var id = iframeId // Create locally scoped copy of iFrame ID
|
12909
13050
|
;
|
@@ -12919,7 +13060,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12919
13060
|
function checkIFrameExists() {
|
12920
13061
|
var retBool = true;
|
12921
13062
|
if (null === messageData.iframe) {
|
12922
|
-
warn(iframeId,
|
13063
|
+
warn(iframeId, 'IFrame (' + messageData.id + ') not found');
|
12923
13064
|
retBool = false;
|
12924
13065
|
}
|
12925
13066
|
return retBool;
|
@@ -12937,7 +13078,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12937
13078
|
function reposition() {
|
12938
13079
|
pagePosition = newPosition;
|
12939
13080
|
scrollTo();
|
12940
|
-
log(iframeId,
|
13081
|
+
log(iframeId, '--');
|
12941
13082
|
}
|
12942
13083
|
function calcOffset() {
|
12943
13084
|
return {
|
@@ -12946,45 +13087,45 @@ var $ef5e88eaa61efd95$exports = {};
|
|
12946
13087
|
};
|
12947
13088
|
}
|
12948
13089
|
function scrollParent() {
|
12949
|
-
if (window.parentIFrame) window.parentIFrame[
|
12950
|
-
else warn(iframeId,
|
13090
|
+
if (window.parentIFrame) window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')](newPosition.x, newPosition.y);
|
13091
|
+
else warn(iframeId, 'Unable to scroll to requested position, window.parentIFrame not found');
|
12951
13092
|
}
|
12952
13093
|
var offset = addOffset ? getElementPosition(messageData.iframe) : {
|
12953
13094
|
x: 0,
|
12954
13095
|
y: 0
|
12955
13096
|
}, newPosition = calcOffset();
|
12956
|
-
log(iframeId,
|
13097
|
+
log(iframeId, 'Reposition requested from iFrame (offset x:' + offset.x + ' y:' + offset.y + ')');
|
12957
13098
|
if (window.top === window.self) reposition();
|
12958
13099
|
else scrollParent();
|
12959
13100
|
}
|
12960
13101
|
function scrollTo() {
|
12961
|
-
if (false === on(
|
13102
|
+
if (false === on('onScroll', pagePosition)) unsetPagePosition();
|
12962
13103
|
else setPagePosition(iframeId);
|
12963
13104
|
}
|
12964
13105
|
function findTarget(location) {
|
12965
13106
|
function jumpToTarget() {
|
12966
13107
|
var jumpPosition = getElementPosition(target);
|
12967
|
-
log(iframeId,
|
13108
|
+
log(iframeId, 'Moving to in page link (#' + hash + ') at x: ' + jumpPosition.x + ' y: ' + jumpPosition.y);
|
12968
13109
|
pagePosition = {
|
12969
13110
|
x: jumpPosition.x,
|
12970
13111
|
y: jumpPosition.y
|
12971
13112
|
};
|
12972
13113
|
scrollTo();
|
12973
|
-
log(iframeId,
|
13114
|
+
log(iframeId, '--');
|
12974
13115
|
}
|
12975
13116
|
function jumpToParent() {
|
12976
13117
|
if (window.parentIFrame) window.parentIFrame.moveToAnchor(hash);
|
12977
|
-
else log(iframeId,
|
13118
|
+
else log(iframeId, 'In page link #' + hash + ' not found and window.parentIFrame not found');
|
12978
13119
|
}
|
12979
|
-
var hash = location.split(
|
13120
|
+
var hash = location.split('#')[1] || '', hashData = decodeURIComponent(hash), target = document.getElementById(hashData) || document.getElementsByName(hashData)[0];
|
12980
13121
|
if (target) jumpToTarget();
|
12981
|
-
else if (window.top === window.self) log(iframeId,
|
13122
|
+
else if (window.top === window.self) log(iframeId, 'In page link #' + hash + ' not found');
|
12982
13123
|
else jumpToParent();
|
12983
13124
|
}
|
12984
13125
|
function onMouse(event) {
|
12985
13126
|
var mousePos = {};
|
12986
13127
|
if (Number(messageData.width) === 0 && Number(messageData.height) === 0) {
|
12987
|
-
var data = getMsgBody(9).split(
|
13128
|
+
var data = getMsgBody(9).split(':');
|
12988
13129
|
mousePos = {
|
12989
13130
|
x: data[1],
|
12990
13131
|
y: data[0]
|
@@ -13006,46 +13147,46 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13006
13147
|
function actionMsg() {
|
13007
13148
|
if (settings[iframeId] && settings[iframeId].firstRun) firstRun();
|
13008
13149
|
switch(messageData.type){
|
13009
|
-
case
|
13150
|
+
case 'close':
|
13010
13151
|
closeIFrame(messageData.iframe);
|
13011
13152
|
break;
|
13012
|
-
case
|
13153
|
+
case 'message':
|
13013
13154
|
forwardMsgFromIFrame(getMsgBody(6));
|
13014
13155
|
break;
|
13015
|
-
case
|
13016
|
-
onMouse(
|
13156
|
+
case 'mouseenter':
|
13157
|
+
onMouse('onMouseEnter');
|
13017
13158
|
break;
|
13018
|
-
case
|
13019
|
-
onMouse(
|
13159
|
+
case 'mouseleave':
|
13160
|
+
onMouse('onMouseLeave');
|
13020
13161
|
break;
|
13021
|
-
case
|
13162
|
+
case 'autoResize':
|
13022
13163
|
settings[iframeId].autoResize = JSON.parse(getMsgBody(9));
|
13023
13164
|
break;
|
13024
|
-
case
|
13165
|
+
case 'scrollTo':
|
13025
13166
|
scrollRequestFromChild(false);
|
13026
13167
|
break;
|
13027
|
-
case
|
13168
|
+
case 'scrollToOffset':
|
13028
13169
|
scrollRequestFromChild(true);
|
13029
13170
|
break;
|
13030
|
-
case
|
13171
|
+
case 'pageInfo':
|
13031
13172
|
sendPageInfoToIframe(settings[iframeId] && settings[iframeId].iframe, iframeId);
|
13032
13173
|
startPageInfoMonitor();
|
13033
13174
|
break;
|
13034
|
-
case
|
13175
|
+
case 'pageInfoStop':
|
13035
13176
|
stopPageInfoMonitor();
|
13036
13177
|
break;
|
13037
|
-
case
|
13178
|
+
case 'inPageLink':
|
13038
13179
|
findTarget(getMsgBody(9));
|
13039
13180
|
break;
|
13040
|
-
case
|
13181
|
+
case 'reset':
|
13041
13182
|
resetIFrame(messageData);
|
13042
13183
|
break;
|
13043
|
-
case
|
13184
|
+
case 'init':
|
13044
13185
|
resizeIFrame();
|
13045
|
-
on(
|
13186
|
+
on('onInit', messageData.iframe);
|
13046
13187
|
break;
|
13047
13188
|
default:
|
13048
|
-
if (Number(messageData.width) === 0 && Number(messageData.height) === 0) warn(
|
13189
|
+
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');
|
13049
13190
|
else resizeIFrame();
|
13050
13191
|
}
|
13051
13192
|
}
|
@@ -13053,35 +13194,35 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13053
13194
|
var retBool = true;
|
13054
13195
|
if (!settings[iframeId]) {
|
13055
13196
|
retBool = false;
|
13056
|
-
warn(messageData.type +
|
13197
|
+
warn(messageData.type + ' No settings for ' + iframeId + '. Message was: ' + msg);
|
13057
13198
|
}
|
13058
13199
|
return retBool;
|
13059
13200
|
}
|
13060
13201
|
function iFrameReadyMsgReceived() {
|
13061
13202
|
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
13062
|
-
for(var iframeId in settings)trigger(
|
13203
|
+
for(var iframeId in settings)trigger('iFrame requested init', createOutgoingMsg(iframeId), settings[iframeId].iframe, iframeId);
|
13063
13204
|
}
|
13064
13205
|
function firstRun() {
|
13065
13206
|
if (settings[iframeId]) settings[iframeId].firstRun = false;
|
13066
13207
|
}
|
13067
13208
|
var msg = event.data, messageData = {}, iframeId = null;
|
13068
|
-
if (
|
13209
|
+
if ('[iFrameResizerChild]Ready' === msg) iFrameReadyMsgReceived();
|
13069
13210
|
else if (isMessageForUs()) {
|
13070
13211
|
messageData = processMsg();
|
13071
13212
|
iframeId = messageData.id;
|
13072
13213
|
if (settings[iframeId]) settings[iframeId].loaded = true;
|
13073
13214
|
if (!isMessageFromMetaParent() && hasSettings(iframeId)) {
|
13074
|
-
log(iframeId,
|
13215
|
+
log(iframeId, 'Received: ' + msg);
|
13075
13216
|
if (checkIFrameExists() && isMessageFromIFrame()) actionMsg();
|
13076
13217
|
}
|
13077
|
-
} else info(iframeId,
|
13218
|
+
} else info(iframeId, 'Ignored: ' + msg);
|
13078
13219
|
}
|
13079
13220
|
function chkEvent(iframeId, funcName, val) {
|
13080
13221
|
var func = null, retVal = null;
|
13081
13222
|
if (settings[iframeId]) {
|
13082
13223
|
func = settings[iframeId][funcName];
|
13083
|
-
if (
|
13084
|
-
else throw new TypeError(funcName +
|
13224
|
+
if ('function' === typeof func) retVal = func(val);
|
13225
|
+
else throw new TypeError(funcName + ' on iFrame[' + iframeId + '] is not a function');
|
13085
13226
|
}
|
13086
13227
|
return retVal;
|
13087
13228
|
}
|
@@ -13091,20 +13232,24 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13091
13232
|
}
|
13092
13233
|
function closeIFrame(iframe) {
|
13093
13234
|
var iframeId = iframe.id;
|
13094
|
-
if (chkEvent(iframeId,
|
13095
|
-
log(iframeId,
|
13235
|
+
if (chkEvent(iframeId, 'onClose', iframeId) === false) {
|
13236
|
+
log(iframeId, 'Close iframe cancelled by onClose event');
|
13096
13237
|
return;
|
13097
13238
|
}
|
13098
|
-
log(iframeId,
|
13239
|
+
log(iframeId, 'Removing iFrame: ' + iframeId);
|
13099
13240
|
try {
|
13100
13241
|
// Catch race condition error with React
|
13101
13242
|
if (iframe.parentNode) iframe.parentNode.removeChild(iframe);
|
13102
13243
|
} catch (error) {
|
13103
13244
|
warn(error);
|
13104
13245
|
}
|
13105
|
-
chkEvent(iframeId,
|
13106
|
-
log(iframeId,
|
13246
|
+
chkEvent(iframeId, 'onClosed', iframeId);
|
13247
|
+
log(iframeId, '--');
|
13107
13248
|
removeIframeListeners(iframe);
|
13249
|
+
if (destroyObserver) {
|
13250
|
+
destroyObserver.disconnect();
|
13251
|
+
destroyObserver = null;
|
13252
|
+
}
|
13108
13253
|
}
|
13109
13254
|
function getPagePosition(iframeId) {
|
13110
13255
|
if (null === pagePosition) {
|
@@ -13112,13 +13257,13 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13112
13257
|
x: window.pageXOffset === undefined ? document.documentElement.scrollLeft : window.pageXOffset,
|
13113
13258
|
y: window.pageYOffset === undefined ? document.documentElement.scrollTop : window.pageYOffset
|
13114
13259
|
};
|
13115
|
-
log(iframeId,
|
13260
|
+
log(iframeId, 'Get page position: ' + pagePosition.x + ',' + pagePosition.y);
|
13116
13261
|
}
|
13117
13262
|
}
|
13118
13263
|
function setPagePosition(iframeId) {
|
13119
13264
|
if (null !== pagePosition) {
|
13120
13265
|
window.scrollTo(pagePosition.x, pagePosition.y);
|
13121
|
-
log(iframeId,
|
13266
|
+
log(iframeId, 'Set page position: ' + pagePosition.x + ',' + pagePosition.y);
|
13122
13267
|
unsetPagePosition();
|
13123
13268
|
}
|
13124
13269
|
}
|
@@ -13128,29 +13273,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13128
13273
|
function resetIFrame(messageData) {
|
13129
13274
|
function reset() {
|
13130
13275
|
setSize(messageData);
|
13131
|
-
trigger(
|
13276
|
+
trigger('reset', 'reset', messageData.iframe, messageData.id);
|
13132
13277
|
}
|
13133
|
-
log(messageData.id,
|
13278
|
+
log(messageData.id, 'Size reset requested by ' + ('init' === messageData.type ? 'host page' : 'iFrame'));
|
13134
13279
|
getPagePosition(messageData.id);
|
13135
|
-
syncResize(reset, messageData,
|
13280
|
+
syncResize(reset, messageData, 'reset');
|
13136
13281
|
}
|
13137
13282
|
function setSize(messageData) {
|
13138
13283
|
function setDimension(dimension) {
|
13139
13284
|
if (!messageData.id) {
|
13140
|
-
log(
|
13285
|
+
log('undefined', 'messageData id not set');
|
13141
13286
|
return;
|
13142
13287
|
}
|
13143
|
-
messageData.iframe.style[dimension] = messageData[dimension] +
|
13144
|
-
log(messageData.id,
|
13288
|
+
messageData.iframe.style[dimension] = messageData[dimension] + 'px';
|
13289
|
+
log(messageData.id, 'IFrame (' + iframeId + ') ' + dimension + ' set to ' + messageData[dimension] + 'px');
|
13145
13290
|
}
|
13146
13291
|
function chkZero(dimension) {
|
13147
13292
|
// FireFox sets dimension of hidden iFrames to zero.
|
13148
13293
|
// So if we detect that set up an event to check for
|
13149
13294
|
// when iFrame becomes visible.
|
13150
13295
|
/* istanbul ignore next */ // Not testable in PhantomJS
|
13151
|
-
if (!hiddenCheckEnabled &&
|
13296
|
+
if (!hiddenCheckEnabled && '0' === messageData[dimension]) {
|
13152
13297
|
hiddenCheckEnabled = true;
|
13153
|
-
log(iframeId,
|
13298
|
+
log(iframeId, 'Hidden iFrame detected, creating visibility listener');
|
13154
13299
|
fixHiddenIFrames();
|
13155
13300
|
}
|
13156
13301
|
}
|
@@ -13160,29 +13305,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13160
13305
|
}
|
13161
13306
|
var iframeId = messageData.iframe.id;
|
13162
13307
|
if (settings[iframeId]) {
|
13163
|
-
if (settings[iframeId].sizeHeight) processDimension(
|
13164
|
-
if (settings[iframeId].sizeWidth) processDimension(
|
13308
|
+
if (settings[iframeId].sizeHeight) processDimension('height');
|
13309
|
+
if (settings[iframeId].sizeWidth) processDimension('width');
|
13165
13310
|
}
|
13166
13311
|
}
|
13167
13312
|
function syncResize(func, messageData, doNotSync) {
|
13168
13313
|
/* istanbul ignore if */ // Not testable in PhantomJS
|
13169
13314
|
if (doNotSync !== messageData.type && requestAnimationFrame && // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame
|
13170
13315
|
!window.jasmine) {
|
13171
|
-
log(messageData.id,
|
13316
|
+
log(messageData.id, 'Requesting animation frame');
|
13172
13317
|
requestAnimationFrame(func);
|
13173
13318
|
} else func();
|
13174
13319
|
}
|
13175
13320
|
function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {
|
13176
13321
|
function postMessageToIFrame() {
|
13177
13322
|
var target = settings[id] && settings[id].targetOrigin;
|
13178
|
-
log(id,
|
13323
|
+
log(id, '[' + calleeMsg + '] Sending msg to iframe[' + id + '] (' + msg + ') targetOrigin: ' + target);
|
13179
13324
|
iframe.contentWindow.postMessage(msgId + msg, target);
|
13180
13325
|
}
|
13181
13326
|
function iFrameNotFound() {
|
13182
|
-
warn(id,
|
13327
|
+
warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found');
|
13183
13328
|
}
|
13184
13329
|
function chkAndSend() {
|
13185
|
-
if (iframe &&
|
13330
|
+
if (iframe && 'contentWindow' in iframe && null !== iframe.contentWindow) // Null test for PhantomJS
|
13186
13331
|
postMessageToIFrame();
|
13187
13332
|
else iFrameNotFound();
|
13188
13333
|
}
|
@@ -13190,7 +13335,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13190
13335
|
function warning() {
|
13191
13336
|
if (settings[id] && !settings[id].loaded && !errorShown) {
|
13192
13337
|
errorShown = true;
|
13193
|
-
warn(id,
|
13338
|
+
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.');
|
13194
13339
|
}
|
13195
13340
|
}
|
13196
13341
|
if (!!noResponseWarning && settings[id] && !!settings[id].warningTimeout) settings[id].msgTimeout = setTimeout(warning, settings[id].warningTimeout);
|
@@ -13203,29 +13348,29 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13203
13348
|
}
|
13204
13349
|
}
|
13205
13350
|
function createOutgoingMsg(iframeId) {
|
13206
|
-
return iframeId +
|
13351
|
+
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;
|
13207
13352
|
}
|
13208
13353
|
function isNumber(value) {
|
13209
|
-
return typeof value ===
|
13354
|
+
return typeof value === 'number';
|
13210
13355
|
}
|
13211
13356
|
function setupIFrame(iframe, options) {
|
13212
13357
|
function setLimits() {
|
13213
13358
|
function addStyle(style) {
|
13214
13359
|
var styleValue = settings[iframeId][style];
|
13215
13360
|
if (Infinity !== styleValue && 0 !== styleValue) {
|
13216
|
-
iframe.style[style] = isNumber(styleValue) ? styleValue +
|
13217
|
-
log(iframeId,
|
13361
|
+
iframe.style[style] = isNumber(styleValue) ? styleValue + 'px' : styleValue;
|
13362
|
+
log(iframeId, 'Set ' + style + ' = ' + iframe.style[style]);
|
13218
13363
|
}
|
13219
13364
|
}
|
13220
13365
|
function chkMinMax(dimension) {
|
13221
|
-
if (settings[iframeId][
|
13366
|
+
if (settings[iframeId]['min' + dimension] > settings[iframeId]['max' + dimension]) throw new Error('Value for min' + dimension + ' can not be greater than max' + dimension);
|
13222
13367
|
}
|
13223
|
-
chkMinMax(
|
13224
|
-
chkMinMax(
|
13225
|
-
addStyle(
|
13226
|
-
addStyle(
|
13227
|
-
addStyle(
|
13228
|
-
addStyle(
|
13368
|
+
chkMinMax('Height');
|
13369
|
+
chkMinMax('Width');
|
13370
|
+
addStyle('maxHeight');
|
13371
|
+
addStyle('minHeight');
|
13372
|
+
addStyle('maxWidth');
|
13373
|
+
addStyle('minWidth');
|
13229
13374
|
}
|
13230
13375
|
function newId() {
|
13231
13376
|
var id = options && options.id || defaults.id + count++;
|
@@ -13233,38 +13378,38 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13233
13378
|
return id;
|
13234
13379
|
}
|
13235
13380
|
function ensureHasId(iframeId) {
|
13236
|
-
if (typeof iframeId !==
|
13237
|
-
if (
|
13381
|
+
if (typeof iframeId !== 'string') throw new TypeError('Invaild id for iFrame. Expected String');
|
13382
|
+
if ('' === iframeId) {
|
13238
13383
|
// eslint-disable-next-line no-multi-assign
|
13239
13384
|
iframe.id = iframeId = newId();
|
13240
13385
|
logEnabled = (options || {}).log;
|
13241
|
-
log(iframeId,
|
13386
|
+
log(iframeId, 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')');
|
13242
13387
|
}
|
13243
13388
|
return iframeId;
|
13244
13389
|
}
|
13245
13390
|
function setScrolling() {
|
13246
|
-
log(iframeId,
|
13247
|
-
iframe.style.overflow = false === (settings[iframeId] && settings[iframeId].scrolling) ?
|
13391
|
+
log(iframeId, 'IFrame scrolling ' + (settings[iframeId] && settings[iframeId].scrolling ? 'enabled' : 'disabled') + ' for ' + iframeId);
|
13392
|
+
iframe.style.overflow = false === (settings[iframeId] && settings[iframeId].scrolling) ? 'hidden' : 'auto';
|
13248
13393
|
switch(settings[iframeId] && settings[iframeId].scrolling){
|
13249
|
-
case
|
13394
|
+
case 'omit':
|
13250
13395
|
break;
|
13251
13396
|
case true:
|
13252
|
-
iframe.scrolling =
|
13397
|
+
iframe.scrolling = 'yes';
|
13253
13398
|
break;
|
13254
13399
|
case false:
|
13255
|
-
iframe.scrolling =
|
13400
|
+
iframe.scrolling = 'no';
|
13256
13401
|
break;
|
13257
13402
|
default:
|
13258
|
-
iframe.scrolling = settings[iframeId] ? settings[iframeId].scrolling :
|
13403
|
+
iframe.scrolling = settings[iframeId] ? settings[iframeId].scrolling : 'no';
|
13259
13404
|
}
|
13260
13405
|
}
|
13261
13406
|
// The V1 iFrame script expects an int, where as in V2 expects a CSS
|
13262
13407
|
// string value such as '1px 3em', so if we have an int for V2, set V1=V2
|
13263
13408
|
// and then convert V2 to a string PX value.
|
13264
13409
|
function setupBodyMarginValues() {
|
13265
|
-
if (
|
13410
|
+
if ('number' === typeof (settings[iframeId] && settings[iframeId].bodyMargin) || '0' === (settings[iframeId] && settings[iframeId].bodyMargin)) {
|
13266
13411
|
settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin;
|
13267
|
-
settings[iframeId].bodyMargin =
|
13412
|
+
settings[iframeId].bodyMargin = '' + settings[iframeId].bodyMargin + 'px';
|
13268
13413
|
}
|
13269
13414
|
}
|
13270
13415
|
function checkReset() {
|
@@ -13276,20 +13421,20 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13276
13421
|
iframe: iframe,
|
13277
13422
|
height: 0,
|
13278
13423
|
width: 0,
|
13279
|
-
type:
|
13424
|
+
type: 'init'
|
13280
13425
|
});
|
13281
13426
|
}
|
13282
13427
|
function setupIFrameObject() {
|
13283
13428
|
if (settings[iframeId]) settings[iframeId].iframe.iFrameResizer = {
|
13284
13429
|
close: closeIFrame.bind(null, settings[iframeId].iframe),
|
13285
13430
|
removeListeners: removeIframeListeners.bind(null, settings[iframeId].iframe),
|
13286
|
-
resize: trigger.bind(null,
|
13431
|
+
resize: trigger.bind(null, 'Window resize', 'resize', settings[iframeId].iframe),
|
13287
13432
|
moveToAnchor: function(anchor) {
|
13288
|
-
trigger(
|
13433
|
+
trigger('Move to anchor', 'moveToAnchor:' + anchor, settings[iframeId].iframe, iframeId);
|
13289
13434
|
},
|
13290
13435
|
sendMessage: function(message) {
|
13291
13436
|
message = JSON.stringify(message);
|
13292
|
-
trigger(
|
13437
|
+
trigger('Send Message', 'message:' + message, settings[iframeId].iframe, iframeId);
|
13293
13438
|
}
|
13294
13439
|
};
|
13295
13440
|
}
|
@@ -13298,11 +13443,11 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13298
13443
|
// event listener also catches the page changing in the iFrame.
|
13299
13444
|
function init(msg) {
|
13300
13445
|
function iFrameLoaded() {
|
13301
|
-
trigger(
|
13446
|
+
trigger('iFrame.onload', msg, iframe, undefined, true);
|
13302
13447
|
checkReset();
|
13303
13448
|
}
|
13304
13449
|
function createDestroyObserver(MutationObserver) {
|
13305
|
-
if (!iframe.parentNode) return;
|
13450
|
+
if (!iframe.parentNode) return null;
|
13306
13451
|
var destroyObserver = new MutationObserver(function(mutations) {
|
13307
13452
|
mutations.forEach(function(mutation) {
|
13308
13453
|
var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array
|
@@ -13315,26 +13460,27 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13315
13460
|
destroyObserver.observe(iframe.parentNode, {
|
13316
13461
|
childList: true
|
13317
13462
|
});
|
13463
|
+
return destroyObserver;
|
13318
13464
|
}
|
13319
13465
|
var MutationObserver = getMutationObserver();
|
13320
|
-
if (MutationObserver) createDestroyObserver(MutationObserver);
|
13321
|
-
addEventListener(iframe,
|
13322
|
-
trigger(
|
13466
|
+
if (MutationObserver) destroyObserver = createDestroyObserver(MutationObserver);
|
13467
|
+
addEventListener(iframe, 'load', iFrameLoaded);
|
13468
|
+
trigger('init', msg, iframe, undefined, true);
|
13323
13469
|
}
|
13324
13470
|
function checkOptions(options) {
|
13325
|
-
if (
|
13471
|
+
if ('object' !== typeof options) throw new TypeError('Options is not an object');
|
13326
13472
|
}
|
13327
13473
|
function copyOptions(options) {
|
13328
13474
|
// eslint-disable-next-line no-restricted-syntax
|
13329
13475
|
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];
|
13330
13476
|
}
|
13331
13477
|
function getTargetOrigin(remoteHost) {
|
13332
|
-
return
|
13478
|
+
return '' === remoteHost || null !== remoteHost.match(/^(about:blank|javascript:|file:\/\/)/) ? '*' : remoteHost;
|
13333
13479
|
}
|
13334
13480
|
function depricate(key) {
|
13335
|
-
var splitName = key.split(
|
13481
|
+
var splitName = key.split('Callback');
|
13336
13482
|
if (splitName.length === 2) {
|
13337
|
-
var name =
|
13483
|
+
var name = 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1);
|
13338
13484
|
this[name] = this[key];
|
13339
13485
|
delete this[key];
|
13340
13486
|
warn(iframeId, "Deprecated: '" + key + "' has been renamed '" + name + "'. The old method will be removed in the next major version.");
|
@@ -13346,17 +13492,17 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13346
13492
|
;
|
13347
13493
|
settings[iframeId].iframe = iframe;
|
13348
13494
|
settings[iframeId].firstRun = true;
|
13349
|
-
settings[iframeId].remoteHost = iframe.src && iframe.src.split(
|
13495
|
+
settings[iframeId].remoteHost = iframe.src && iframe.src.split('/').slice(0, 3).join('/');
|
13350
13496
|
checkOptions(options);
|
13351
13497
|
Object.keys(options).forEach(depricate, options);
|
13352
13498
|
copyOptions(options);
|
13353
|
-
if (settings[iframeId]) settings[iframeId].targetOrigin = true === settings[iframeId].checkOrigin ? getTargetOrigin(settings[iframeId].remoteHost) :
|
13499
|
+
if (settings[iframeId]) settings[iframeId].targetOrigin = true === settings[iframeId].checkOrigin ? getTargetOrigin(settings[iframeId].remoteHost) : '*';
|
13354
13500
|
}
|
13355
13501
|
function beenHere() {
|
13356
|
-
return iframeId in settings &&
|
13502
|
+
return iframeId in settings && 'iFrameResizer' in iframe;
|
13357
13503
|
}
|
13358
13504
|
var iframeId = ensureHasId(iframe.id);
|
13359
|
-
if (beenHere()) warn(iframeId,
|
13505
|
+
if (beenHere()) warn(iframeId, 'Ignored iFrame, already setup.');
|
13360
13506
|
else {
|
13361
13507
|
processOptions(options);
|
13362
13508
|
setScrolling();
|
@@ -13384,23 +13530,23 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13384
13530
|
function checkIFrames() {
|
13385
13531
|
function checkIFrame(settingId) {
|
13386
13532
|
function chkDimension(dimension) {
|
13387
|
-
return
|
13533
|
+
return '0px' === (settings[settingId] && settings[settingId].iframe.style[dimension]);
|
13388
13534
|
}
|
13389
13535
|
function isVisible(el) {
|
13390
13536
|
return null !== el.offsetParent;
|
13391
13537
|
}
|
13392
|
-
if (settings[settingId] && isVisible(settings[settingId].iframe) && (chkDimension(
|
13538
|
+
if (settings[settingId] && isVisible(settings[settingId].iframe) && (chkDimension('height') || chkDimension('width'))) trigger('Visibility change', 'resize', settings[settingId].iframe, settingId);
|
13393
13539
|
}
|
13394
13540
|
Object.keys(settings).forEach(function(key) {
|
13395
13541
|
checkIFrame(key);
|
13396
13542
|
});
|
13397
13543
|
}
|
13398
13544
|
function mutationObserved(mutations) {
|
13399
|
-
log(
|
13545
|
+
log('window', 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type);
|
13400
13546
|
debouce(checkIFrames, 16);
|
13401
13547
|
}
|
13402
13548
|
function createMutationObserver() {
|
13403
|
-
var target = document.querySelector(
|
13549
|
+
var target = document.querySelector('body'), config = {
|
13404
13550
|
attributes: true,
|
13405
13551
|
attributeOldValue: false,
|
13406
13552
|
characterData: true,
|
@@ -13415,42 +13561,42 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13415
13561
|
}
|
13416
13562
|
function resizeIFrames(event) {
|
13417
13563
|
function resize() {
|
13418
|
-
sendTriggerMsg(
|
13564
|
+
sendTriggerMsg('Window ' + event, 'resize');
|
13419
13565
|
}
|
13420
|
-
log(
|
13566
|
+
log('window', 'Trigger event: ' + event);
|
13421
13567
|
debouce(resize, 16);
|
13422
13568
|
}
|
13423
13569
|
// Not testable in PhantomJS
|
13424
13570
|
/* istanbul ignore next */ function tabVisible() {
|
13425
13571
|
function resize() {
|
13426
|
-
sendTriggerMsg(
|
13572
|
+
sendTriggerMsg('Tab Visible', 'resize');
|
13427
13573
|
}
|
13428
|
-
if (
|
13429
|
-
log(
|
13574
|
+
if ('hidden' !== document.visibilityState) {
|
13575
|
+
log('document', 'Trigger event: Visibility change');
|
13430
13576
|
debouce(resize, 16);
|
13431
13577
|
}
|
13432
13578
|
}
|
13433
13579
|
function sendTriggerMsg(eventName, event) {
|
13434
13580
|
function isIFrameResizeEnabled(iframeId) {
|
13435
|
-
return settings[iframeId] &&
|
13581
|
+
return settings[iframeId] && 'parent' === settings[iframeId].resizeFrom && settings[iframeId].autoResize && !settings[iframeId].firstRun;
|
13436
13582
|
}
|
13437
13583
|
Object.keys(settings).forEach(function(iframeId) {
|
13438
13584
|
if (isIFrameResizeEnabled(iframeId)) trigger(eventName, event, settings[iframeId].iframe, iframeId);
|
13439
13585
|
});
|
13440
13586
|
}
|
13441
13587
|
function setupEventListeners() {
|
13442
|
-
addEventListener(window,
|
13443
|
-
addEventListener(window,
|
13444
|
-
resizeIFrames(
|
13588
|
+
addEventListener(window, 'message', iFrameListener);
|
13589
|
+
addEventListener(window, 'resize', function() {
|
13590
|
+
resizeIFrames('resize');
|
13445
13591
|
});
|
13446
|
-
addEventListener(document,
|
13447
|
-
addEventListener(document,
|
13592
|
+
addEventListener(document, 'visibilitychange', tabVisible);
|
13593
|
+
addEventListener(document, '-webkit-visibilitychange', tabVisible);
|
13448
13594
|
}
|
13449
13595
|
function factory() {
|
13450
13596
|
function init(options, element) {
|
13451
13597
|
function chkType() {
|
13452
|
-
if (!element.tagName) throw new TypeError(
|
13453
|
-
else if (
|
13598
|
+
if (!element.tagName) throw new TypeError('Object is not a valid DOM element');
|
13599
|
+
else if ('IFRAME' !== element.tagName.toUpperCase()) throw new TypeError('Expected <IFRAME> tag, found <' + element.tagName + '>');
|
13454
13600
|
}
|
13455
13601
|
if (element) {
|
13456
13602
|
chkType();
|
@@ -13459,7 +13605,7 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13459
13605
|
}
|
13460
13606
|
}
|
13461
13607
|
function warnDeprecatedOptions(options) {
|
13462
|
-
if (options && options.enablePublicMethods) warn(
|
13608
|
+
if (options && options.enablePublicMethods) warn('enablePublicMethods option has been removed, public methods are now always available in the iFrame');
|
13463
13609
|
}
|
13464
13610
|
var iFrames;
|
13465
13611
|
setupRequestAnimationFrame();
|
@@ -13469,31 +13615,31 @@ var $ef5e88eaa61efd95$exports = {};
|
|
13469
13615
|
;
|
13470
13616
|
warnDeprecatedOptions(options);
|
13471
13617
|
switch(typeof target){
|
13472
|
-
case
|
13473
|
-
case
|
13474
|
-
Array.prototype.forEach.call(document.querySelectorAll(target ||
|
13618
|
+
case 'undefined':
|
13619
|
+
case 'string':
|
13620
|
+
Array.prototype.forEach.call(document.querySelectorAll(target || 'iframe'), init.bind(undefined, options));
|
13475
13621
|
break;
|
13476
|
-
case
|
13622
|
+
case 'object':
|
13477
13623
|
init(options, target);
|
13478
13624
|
break;
|
13479
13625
|
default:
|
13480
|
-
throw new TypeError(
|
13626
|
+
throw new TypeError('Unexpected data type (' + typeof target + ')');
|
13481
13627
|
}
|
13482
13628
|
return iFrames;
|
13483
13629
|
};
|
13484
13630
|
}
|
13485
13631
|
function createJQueryPublicMethod($) {
|
13486
|
-
if (!$.fn) info(
|
13632
|
+
if (!$.fn) info('', 'Unable to bind to jQuery, it is not fully loaded.');
|
13487
13633
|
else if (!$.fn.iFrameResize) $.fn.iFrameResize = function $iFrameResizeF(options) {
|
13488
13634
|
function init(index, element) {
|
13489
13635
|
setupIFrame(element, options);
|
13490
13636
|
}
|
13491
|
-
return this.filter(
|
13637
|
+
return this.filter('iframe').each(init).end();
|
13492
13638
|
};
|
13493
13639
|
}
|
13494
13640
|
if (window.jQuery !== undefined) createJQueryPublicMethod(window.jQuery);
|
13495
|
-
if (typeof define ===
|
13496
|
-
else if (typeof $ef5e88eaa61efd95$exports ===
|
13641
|
+
if (typeof define === 'function' && define.amd) define([], factory);
|
13642
|
+
else if (typeof $ef5e88eaa61efd95$exports === 'object') // Node for browserfy
|
13497
13643
|
$ef5e88eaa61efd95$exports = factory();
|
13498
13644
|
window.iFrameResize = window.iFrameResize || factory();
|
13499
13645
|
})();
|
@@ -13546,6 +13692,38 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) {
|
|
13546
13692
|
}
|
13547
13693
|
|
13548
13694
|
|
13695
|
+
var $1a7a7298eec5b755$exports = {};
|
13696
|
+
|
13697
|
+
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13698
|
+
|
13699
|
+
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13700
|
+
|
13701
|
+
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13702
|
+
return {
|
13703
|
+
narrow: false,
|
13704
|
+
init () {
|
13705
|
+
(0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13706
|
+
this.narrow = width < 500;
|
13707
|
+
});
|
13708
|
+
}
|
13709
|
+
};
|
13710
|
+
}
|
13711
|
+
|
13712
|
+
|
13713
|
+
var $e773f8ef556b41ff$exports = {};
|
13714
|
+
|
13715
|
+
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13716
|
+
|
13717
|
+
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13718
|
+
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13719
|
+
return {
|
13720
|
+
get isNarrowLayout () {
|
13721
|
+
return this.narrow || false;
|
13722
|
+
}
|
13723
|
+
};
|
13724
|
+
}
|
13725
|
+
|
13726
|
+
|
13549
13727
|
var $9b24cbeb3a465447$exports = {};
|
13550
13728
|
|
13551
13729
|
$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
|
@@ -13603,51 +13781,19 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
|
|
13603
13781
|
}
|
13604
13782
|
|
13605
13783
|
|
13606
|
-
|
13607
|
-
|
13608
|
-
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13609
|
-
|
13610
|
-
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13611
|
-
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13612
|
-
return {
|
13613
|
-
get isNarrowLayout () {
|
13614
|
-
return this.narrow || false;
|
13615
|
-
}
|
13616
|
-
};
|
13617
|
-
}
|
13618
|
-
|
13619
|
-
|
13620
|
-
var $1a7a7298eec5b755$exports = {};
|
13621
|
-
|
13622
|
-
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
13623
|
-
|
13624
|
-
$parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
|
13625
|
-
|
13626
|
-
function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
13627
|
-
return {
|
13628
|
-
narrow: false,
|
13629
|
-
init () {
|
13630
|
-
(0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width })=>{
|
13631
|
-
this.narrow = width < 500;
|
13632
|
-
});
|
13633
|
-
}
|
13634
|
-
};
|
13635
|
-
}
|
13636
|
-
|
13637
|
-
|
13638
|
-
$3821a3a183a9a321$exports = {
|
13784
|
+
$5d1c9207cb730903$exports = {
|
13639
13785
|
"display_options": {
|
13640
13786
|
"field": $6a9b69d9cc7f810f$exports
|
13641
13787
|
},
|
13642
13788
|
"embed": {
|
13643
13789
|
"inspector": $c299e36fa9e271bc$exports
|
13644
13790
|
},
|
13791
|
+
"params": {
|
13792
|
+
"editor": $1a7a7298eec5b755$exports,
|
13793
|
+
"field": $e773f8ef556b41ff$exports
|
13794
|
+
},
|
13645
13795
|
"nav": {
|
13646
13796
|
"item": $9b24cbeb3a465447$exports
|
13647
|
-
},
|
13648
|
-
"params": {
|
13649
|
-
"field": $e773f8ef556b41ff$exports,
|
13650
|
-
"editor": $1a7a7298eec5b755$exports
|
13651
13797
|
}
|
13652
13798
|
};
|
13653
13799
|
|
@@ -13715,8 +13861,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13715
13861
|
// Components
|
13716
13862
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13717
13863
|
[
|
13718
|
-
$
|
13719
|
-
$
|
13864
|
+
$88dfd91701b4cd8b$exports,
|
13865
|
+
$5d1c9207cb730903$exports,
|
13720
13866
|
$d56e5cced44001d2$exports
|
13721
13867
|
].forEach((scripts)=>{
|
13722
13868
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|