@adyen/bento-vue3 1.28.0 → 1.29.0
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.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/packages/core/src/types/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/{internal/avatar → avatar}/avatar.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/avatar-image.vue.d.ts +15 -4
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/inspector.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/inspector.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/inspector.vue.d.ts +110 -0
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +12 -1
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/types/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/avatar.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/avatar.js +5 -0
- package/dist/avatar.js.map +1 -0
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BvAtk-jI.js → action-bar.UcSSukRr.js} +5 -5
- package/dist/chunks/{action-bar.BvAtk-jI.js.map → action-bar.UcSSukRr.js.map} +1 -1
- package/dist/chunks/avatar.IHx0kN0u.js +94 -0
- package/dist/chunks/avatar.IHx0kN0u.js.map +1 -0
- package/dist/chunks/{base-modal.BgYlnM_Q.js → base-modal.CY-t-QYh.js} +2 -2
- package/dist/chunks/{base-modal.BgYlnM_Q.js.map → base-modal.CY-t-QYh.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C14zvgVo.js → button-actions-with-menu.Dnyh1m51.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C14zvgVo.js.map → button-actions-with-menu.Dnyh1m51.js.map} +1 -1
- package/dist/chunks/{button-actions.hGhRdgC2.js → button-actions.BpLFzJJY.js} +2 -2
- package/dist/chunks/{button-actions.hGhRdgC2.js.map → button-actions.BpLFzJJY.js.map} +1 -1
- package/dist/chunks/{card.C7zLKdcy.js → card.DOQt8sH5.js} +2 -2
- package/dist/chunks/{card.C7zLKdcy.js.map → card.DOQt8sH5.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BcT-eZ2p.js → checkbox-group.DS_f6k8E.js} +4 -4
- package/dist/chunks/{checkbox-group.BcT-eZ2p.js.map → checkbox-group.DS_f6k8E.js.map} +1 -1
- package/dist/chunks/{checkbox.xjIFibII.js → checkbox.C5cMvVMm.js} +3 -3
- package/dist/chunks/{checkbox.xjIFibII.js.map → checkbox.C5cMvVMm.js.map} +1 -1
- package/dist/chunks/{code-snippet.e8bxDBCO.js → code-snippet.68epWI-z.js} +184 -208
- package/dist/chunks/code-snippet.68epWI-z.js.map +1 -0
- package/dist/chunks/{controls-group.DWu8NqKL.js → controls-group.fAwpZLvA.js} +2 -2
- package/dist/chunks/{controls-group.DWu8NqKL.js.map → controls-group.fAwpZLvA.js.map} +1 -1
- package/dist/chunks/{copy.BhO7oRgC.js → copy.B6CXENok.js} +3 -3
- package/dist/chunks/{copy.BhO7oRgC.js.map → copy.B6CXENok.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js +29 -0
- package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js.map +1 -0
- package/dist/chunks/{dashboard-section.DKeDjvkB.js → dashboard-section.Bzj5vzTE.js} +3 -3
- package/dist/chunks/{dashboard-section.DKeDjvkB.js.map → dashboard-section.Bzj5vzTE.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DGTW7Y_-.js → dashed-underline.SEXinixe.js} +3 -3
- package/dist/chunks/{dashed-underline.DGTW7Y_-.js.map → dashed-underline.SEXinixe.js.map} +1 -1
- package/dist/chunks/{data-grid-template.6Nls-D4o.js → data-grid-template.BRRSej-5.js} +2 -2
- package/dist/chunks/{data-grid-template.6Nls-D4o.js.map → data-grid-template.BRRSej-5.js.map} +1 -1
- package/dist/chunks/{data-grid.BwfZhc09.js → data-grid.D0dri6Lc.js} +15 -15
- package/dist/chunks/{data-grid.BwfZhc09.js.map → data-grid.D0dri6Lc.js.map} +1 -1
- package/dist/chunks/{date-picker.CoPmllNh.js → date-picker.NKXc916N.js} +15 -15
- package/dist/chunks/{date-picker.CoPmllNh.js.map → date-picker.NKXc916N.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CiwDo2jW.js → date-range-picker.DXdh7SCV.js} +13 -13
- package/dist/chunks/{date-range-picker.CiwDo2jW.js.map → date-range-picker.DXdh7SCV.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.-Oy2eT40.js → dropdown-default-textbox.Bx0-dxhU.js} +112 -96
- package/dist/chunks/dropdown-default-textbox.Bx0-dxhU.js.map +1 -0
- package/dist/chunks/{dropdown-tag.C-LxVWlt.js → dropdown-tag.DPTV12uX.js} +14 -13
- package/dist/chunks/dropdown-tag.DPTV12uX.js.map +1 -0
- package/dist/chunks/{dropdown.CxBlK83Q.js → dropdown.CoVT4i0B.js} +360 -349
- package/dist/chunks/dropdown.CoVT4i0B.js.map +1 -0
- package/dist/chunks/{error-message.DyjHMyEZ.js → error-message.oV0CXm1m.js} +3 -3
- package/dist/chunks/{error-message.DyjHMyEZ.js.map → error-message.oV0CXm1m.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js +9 -0
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -0
- package/dist/chunks/expand.D1DTqaBO.js +33 -0
- package/dist/chunks/expand.D1DTqaBO.js.map +1 -0
- package/dist/chunks/{filter-bar.U2ZcPmSU.js → filter-bar.d1IKC-Nr.js} +329 -320
- package/dist/chunks/filter-bar.d1IKC-Nr.js.map +1 -0
- package/dist/chunks/{footer-actions.D9nQFagi.js → footer-actions.Cuiq9UJH.js} +2 -2
- package/dist/chunks/{footer-actions.D9nQFagi.js.map → footer-actions.Cuiq9UJH.js.map} +1 -1
- package/dist/chunks/{header.Cr7115vM.js → header.B4il13uF.js} +3 -3
- package/dist/chunks/{header.Cr7115vM.js.map → header.B4il13uF.js.map} +1 -1
- package/dist/chunks/index.DKQuLmwu.js +182 -0
- package/dist/chunks/{index.Dytpif0G.js.map → index.DKQuLmwu.js.map} +1 -1
- package/dist/chunks/{info-icon.DvL1e5Iu.js → info-icon.B8AL324x.js} +3 -3
- package/dist/chunks/{info-icon.DvL1e5Iu.js.map → info-icon.B8AL324x.js.map} +1 -1
- package/dist/chunks/{input-field.iH1ICJkQ.js → input-field.CKh69yj2.js} +119 -113
- package/dist/chunks/input-field.CKh69yj2.js.map +1 -0
- package/dist/chunks/inspector.types.88WOdYA6.js +116 -0
- package/dist/chunks/inspector.types.88WOdYA6.js.map +1 -0
- package/dist/chunks/listbox-option-tag.m6aNQTJN.js +55 -0
- package/dist/chunks/listbox-option-tag.m6aNQTJN.js.map +1 -0
- package/dist/chunks/loading-button.BxDrDxmI.js +123 -0
- package/dist/chunks/loading-button.BxDrDxmI.js.map +1 -0
- package/dist/chunks/{menu.DN-xhDQU.js → menu.PtOT_BKl.js} +2 -2
- package/dist/chunks/{menu.DN-xhDQU.js.map → menu.PtOT_BKl.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CeogBGfr.js → modal-fullscreen.BkuEaCdO.js} +2 -2
- package/dist/chunks/{modal-fullscreen.CeogBGfr.js.map → modal-fullscreen.BkuEaCdO.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js → modal.vue_vue_type_script_setup_true_lang.CQXfT4eW.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map → modal.vue_vue_type_script_setup_true_lang.CQXfT4eW.js.map} +1 -1
- package/dist/chunks/{pagination.BwG1MF4j.js → pagination.DeOBHgWf.js} +2 -2
- package/dist/chunks/{pagination.BwG1MF4j.js.map → pagination.DeOBHgWf.js.map} +1 -1
- package/dist/chunks/{popover.DRb2GW7t.js → popover.CvUTNkQG.js} +3 -3
- package/dist/chunks/{popover.DRb2GW7t.js.map → popover.CvUTNkQG.js.map} +1 -1
- package/dist/chunks/{popper-container.B76aE-3-.js → popper-container.50jF-_VU.js} +487 -435
- package/dist/chunks/popper-container.50jF-_VU.js.map +1 -0
- package/dist/chunks/{radio-group.B9HCffiZ.js → radio-group.r5U1kQIe.js} +95 -93
- package/dist/chunks/radio-group.r5U1kQIe.js.map +1 -0
- package/dist/chunks/search-bar.DmXr-0Ax.js +116 -0
- package/dist/chunks/search-bar.DmXr-0Ax.js.map +1 -0
- package/dist/chunks/secondary-nav.DnQPIiYO.js +137 -0
- package/dist/chunks/secondary-nav.DnQPIiYO.js.map +1 -0
- package/dist/chunks/{segmented-control.NnFfAdTq.js → segmented-control.ClihHHOR.js} +12 -12
- package/dist/chunks/segmented-control.ClihHHOR.js.map +1 -0
- package/dist/chunks/{selection-card-group.C-YLePO4.js → selection-card-group.AkttDBv5.js} +3 -3
- package/dist/chunks/{selection-card-group.C-YLePO4.js.map → selection-card-group.AkttDBv5.js.map} +1 -1
- package/dist/chunks/{sidepanel.B-LtA15e.js → sidepanel.Dv73FrCn.js} +2 -2
- package/dist/chunks/{sidepanel.B-LtA15e.js.map → sidepanel.Dv73FrCn.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DQiPKhOI.js → structured-list-item.DrYz5IsA.js} +4 -4
- package/dist/chunks/{structured-list-item.DQiPKhOI.js.map → structured-list-item.DrYz5IsA.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B941Kdvq.js → summary-grid-item-custom.MloQOKnI.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.B941Kdvq.js.map → summary-grid-item-custom.MloQOKnI.js.map} +1 -1
- package/dist/chunks/{tag.CPhtHjDD.js → tag.D0imyBj_.js} +2 -2
- package/dist/chunks/{tag.CPhtHjDD.js.map → tag.D0imyBj_.js.map} +1 -1
- package/dist/chunks/textarea.meOoBSoa.js +267 -0
- package/dist/chunks/textarea.meOoBSoa.js.map +1 -0
- package/dist/chunks/{timeline-item.Cap9MXkH.js → timeline-item.BF6w6sUT.js} +181 -168
- package/dist/chunks/timeline-item.BF6w6sUT.js.map +1 -0
- package/dist/chunks/{tooltip.CTR3s-Rm.js → tooltip.C0jTO2wt.js} +2 -2
- package/dist/chunks/{tooltip.CTR3s-Rm.js.map → tooltip.C0jTO2wt.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js → tutorial.vue_vue_type_script_setup_true_lang.PX3UIJgR.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map → tutorial.vue_vue_type_script_setup_true_lang.PX3UIJgR.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BQBWFTvi.js → use-cached-selected-values.Bh2VFRA-.js} +3 -3
- package/dist/chunks/use-cached-selected-values.Bh2VFRA-.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +11 -10
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +241 -236
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +6 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +30 -31
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/assets/avatar-image.css +0 -1
- package/dist/avatar-image.js +0 -7
- package/dist/avatar-image.js.map +0 -1
- package/dist/chunks/avatar-image.DO4w_loj.js +0 -61
- package/dist/chunks/avatar-image.DO4w_loj.js.map +0 -1
- package/dist/chunks/code-snippet.e8bxDBCO.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.-Oy2eT40.js.map +0 -1
- package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +0 -1
- package/dist/chunks/dropdown.CxBlK83Q.js.map +0 -1
- package/dist/chunks/filter-bar.U2ZcPmSU.js.map +0 -1
- package/dist/chunks/index.Dytpif0G.js +0 -125
- package/dist/chunks/input-field.iH1ICJkQ.js.map +0 -1
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +0 -94
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +0 -1
- package/dist/chunks/loading-button.BI32pZiW.js +0 -117
- package/dist/chunks/loading-button.BI32pZiW.js.map +0 -1
- package/dist/chunks/popper-container.B76aE-3-.js.map +0 -1
- package/dist/chunks/radio-group.B9HCffiZ.js.map +0 -1
- package/dist/chunks/search-bar.DxskyM4e.js +0 -107
- package/dist/chunks/search-bar.DxskyM4e.js.map +0 -1
- package/dist/chunks/secondary-nav.D66nxbU-.js +0 -112
- package/dist/chunks/secondary-nav.D66nxbU-.js.map +0 -1
- package/dist/chunks/segmented-control.NnFfAdTq.js.map +0 -1
- package/dist/chunks/textarea.CJ8xiMjv.js +0 -288
- package/dist/chunks/textarea.CJ8xiMjv.js.map +0 -1
- package/dist/chunks/timeline-item.Cap9MXkH.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.BQBWFTvi.js.map +0 -1
- /package/dist/@types/packages/{vue2/src/components/button → core/src}/components/loading-button/loading-button.types.d.ts +0 -0
- /package/dist/@types/packages/{vue2 → core}/src/types/omit-strict.d.ts +0 -0
- /package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/avatar-image.types.d.ts +0 -0
- /package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/index.d.ts +0 -0
- /package/dist/@types/packages/vue2/src/components/{internal/avatar → avatar}/index.d.ts +0 -0
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { B as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { unref as M, computed as R, ref as j, shallowRef as Qt, watch as tt, getCurrentScope as Zt, onScopeDispose as te, shallowReadonly as K, defineComponent as ee, toRefs as ne, openBlock as At, createBlock as oe, mergeProps as Rt, withCtx as ie, renderSlot as re, createElementBlock as se, createCommentVNode as le } from "vue";
|
|
2
|
+
import { B as ce } from "./focus-trap.CwkbHfT8.js";
|
|
3
|
+
import { _ as ae } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
import "../assets/popper-container.css";
|
|
5
|
-
const
|
|
5
|
+
const $t = ["top", "right", "bottom", "left"], Et = ["start", "end"], St = /* @__PURE__ */ $t.reduce((t, e) => t.concat(e, e + "-" + Et[0], e + "-" + Et[1]), []), Q = Math.min, Y = Math.max, rt = Math.round, it = Math.floor, $ = (t) => ({
|
|
6
6
|
x: t,
|
|
7
7
|
y: t
|
|
8
|
-
}),
|
|
8
|
+
}), fe = {
|
|
9
9
|
left: "right",
|
|
10
10
|
right: "left",
|
|
11
11
|
bottom: "top",
|
|
12
12
|
top: "bottom"
|
|
13
|
-
},
|
|
13
|
+
}, ue = {
|
|
14
14
|
start: "end",
|
|
15
15
|
end: "start"
|
|
16
16
|
};
|
|
17
|
-
function
|
|
18
|
-
return
|
|
17
|
+
function pt(t, e, n) {
|
|
18
|
+
return Y(t, Q(e, n));
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function G(t, e) {
|
|
21
21
|
return typeof t == "function" ? t(e) : t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function I(t) {
|
|
24
24
|
return t.split("-")[0];
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function H(t) {
|
|
27
27
|
return t.split("-")[1];
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ht(t) {
|
|
30
30
|
return t === "x" ? "y" : "x";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function wt(t) {
|
|
33
33
|
return t === "y" ? "height" : "width";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return ["top", "bottom"].includes(
|
|
35
|
+
function at(t) {
|
|
36
|
+
return ["top", "bottom"].includes(I(t)) ? "y" : "x";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function vt(t) {
|
|
39
|
+
return Ht(at(t));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Nt(t, e, n) {
|
|
42
42
|
n === void 0 && (n = !1);
|
|
43
|
-
const o =
|
|
43
|
+
const o = H(t), i = vt(t), s = wt(i);
|
|
44
44
|
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
45
|
-
return e.reference[
|
|
45
|
+
return e.reference[s] > e.floating[s] && (r = lt(r)), [r, lt(r)];
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function de(t) {
|
|
48
48
|
const e = lt(t);
|
|
49
|
-
return [
|
|
49
|
+
return [st(t), e, st(e)];
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return t.replace(/start|end/g, (e) =>
|
|
51
|
+
function st(t) {
|
|
52
|
+
return t.replace(/start|end/g, (e) => ue[e]);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
const o = ["left", "right"], i = ["right", "left"],
|
|
54
|
+
function me(t, e, n) {
|
|
55
|
+
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
56
56
|
switch (t) {
|
|
57
57
|
case "top":
|
|
58
58
|
case "bottom":
|
|
59
59
|
return n ? e ? i : o : e ? o : i;
|
|
60
60
|
case "left":
|
|
61
61
|
case "right":
|
|
62
|
-
return e ?
|
|
62
|
+
return e ? s : r;
|
|
63
63
|
default:
|
|
64
64
|
return [];
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const i =
|
|
69
|
-
let
|
|
70
|
-
return i && (
|
|
67
|
+
function pe(t, e, n, o) {
|
|
68
|
+
const i = H(t);
|
|
69
|
+
let s = me(I(t), n === "start", o);
|
|
70
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(st)))), s;
|
|
71
71
|
}
|
|
72
72
|
function lt(t) {
|
|
73
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
73
|
+
return t.replace(/left|right|bottom|top/g, (e) => fe[e]);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ge(t) {
|
|
76
76
|
return {
|
|
77
77
|
top: 0,
|
|
78
78
|
right: 0,
|
|
@@ -81,29 +81,38 @@ function ue(t) {
|
|
|
81
81
|
...t
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return typeof t != "number" ?
|
|
84
|
+
function Wt(t) {
|
|
85
|
+
return typeof t != "number" ? ge(t) : {
|
|
86
86
|
top: t,
|
|
87
87
|
right: t,
|
|
88
88
|
bottom: t,
|
|
89
89
|
left: t
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ct(t) {
|
|
93
|
+
const {
|
|
94
|
+
x: e,
|
|
95
|
+
y: n,
|
|
96
|
+
width: o,
|
|
97
|
+
height: i
|
|
98
|
+
} = t;
|
|
93
99
|
return {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
width: o,
|
|
101
|
+
height: i,
|
|
102
|
+
top: n,
|
|
103
|
+
left: e,
|
|
104
|
+
right: e + o,
|
|
105
|
+
bottom: n + i,
|
|
106
|
+
x: e,
|
|
107
|
+
y: n
|
|
99
108
|
};
|
|
100
109
|
}
|
|
101
|
-
function
|
|
110
|
+
function Dt(t, e, n) {
|
|
102
111
|
let {
|
|
103
112
|
reference: o,
|
|
104
113
|
floating: i
|
|
105
114
|
} = t;
|
|
106
|
-
const
|
|
115
|
+
const s = at(e), r = vt(e), l = wt(r), a = I(e), c = s === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[l] / 2 - i[l] / 2;
|
|
107
116
|
let f;
|
|
108
117
|
switch (a) {
|
|
109
118
|
case "top":
|
|
@@ -136,7 +145,7 @@ function At(t, e, n) {
|
|
|
136
145
|
y: o.y
|
|
137
146
|
};
|
|
138
147
|
}
|
|
139
|
-
switch (
|
|
148
|
+
switch (H(e)) {
|
|
140
149
|
case "start":
|
|
141
150
|
f[r] -= p * (n && c ? -1 : 1);
|
|
142
151
|
break;
|
|
@@ -146,13 +155,13 @@ function At(t, e, n) {
|
|
|
146
155
|
}
|
|
147
156
|
return f;
|
|
148
157
|
}
|
|
149
|
-
const
|
|
158
|
+
const he = async (t, e, n) => {
|
|
150
159
|
const {
|
|
151
160
|
placement: o = "bottom",
|
|
152
161
|
strategy: i = "absolute",
|
|
153
|
-
middleware:
|
|
162
|
+
middleware: s = [],
|
|
154
163
|
platform: r
|
|
155
|
-
} = n,
|
|
164
|
+
} = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
156
165
|
let c = await r.getElementRects({
|
|
157
166
|
reference: t,
|
|
158
167
|
floating: e,
|
|
@@ -160,12 +169,12 @@ const de = async (t, e, n) => {
|
|
|
160
169
|
}), {
|
|
161
170
|
x: u,
|
|
162
171
|
y: d
|
|
163
|
-
} =
|
|
164
|
-
for (let g = 0; g <
|
|
172
|
+
} = Dt(c, o, a), p = o, f = {}, m = 0;
|
|
173
|
+
for (let g = 0; g < l.length; g++) {
|
|
165
174
|
const {
|
|
166
175
|
name: w,
|
|
167
176
|
fn: h
|
|
168
|
-
} =
|
|
177
|
+
} = l[g], {
|
|
169
178
|
x: v,
|
|
170
179
|
y,
|
|
171
180
|
data: b,
|
|
@@ -197,7 +206,7 @@ const de = async (t, e, n) => {
|
|
|
197
206
|
}) : O.rects), {
|
|
198
207
|
x: u,
|
|
199
208
|
y: d
|
|
200
|
-
} =
|
|
209
|
+
} = Dt(c, p, a)), g = -1);
|
|
201
210
|
}
|
|
202
211
|
return {
|
|
203
212
|
x: u,
|
|
@@ -207,15 +216,15 @@ const de = async (t, e, n) => {
|
|
|
207
216
|
middlewareData: f
|
|
208
217
|
};
|
|
209
218
|
};
|
|
210
|
-
async function
|
|
219
|
+
async function et(t, e) {
|
|
211
220
|
var n;
|
|
212
221
|
e === void 0 && (e = {});
|
|
213
222
|
const {
|
|
214
223
|
x: o,
|
|
215
224
|
y: i,
|
|
216
|
-
platform:
|
|
225
|
+
platform: s,
|
|
217
226
|
rects: r,
|
|
218
|
-
elements:
|
|
227
|
+
elements: l,
|
|
219
228
|
strategy: a
|
|
220
229
|
} = t, {
|
|
221
230
|
boundary: c = "clippingAncestors",
|
|
@@ -223,8 +232,8 @@ async function tt(t, e) {
|
|
|
223
232
|
elementContext: d = "floating",
|
|
224
233
|
altBoundary: p = !1,
|
|
225
234
|
padding: f = 0
|
|
226
|
-
} =
|
|
227
|
-
element: (n = await (
|
|
235
|
+
} = G(e, t), m = Wt(f), w = l[p ? d === "floating" ? "reference" : "floating" : d], h = ct(await s.getClippingRect({
|
|
236
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
228
237
|
boundary: c,
|
|
229
238
|
rootBoundary: u,
|
|
230
239
|
strategy: a
|
|
@@ -232,14 +241,14 @@ async function tt(t, e) {
|
|
|
232
241
|
...r.floating,
|
|
233
242
|
x: o,
|
|
234
243
|
y: i
|
|
235
|
-
} : r.reference, y = await (
|
|
244
|
+
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
236
245
|
x: 1,
|
|
237
246
|
y: 1
|
|
238
247
|
} : {
|
|
239
248
|
x: 1,
|
|
240
249
|
y: 1
|
|
241
|
-
}, O =
|
|
242
|
-
elements:
|
|
250
|
+
}, O = ct(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
251
|
+
elements: l,
|
|
243
252
|
rect: v,
|
|
244
253
|
offsetParent: y,
|
|
245
254
|
strategy: a
|
|
@@ -251,7 +260,7 @@ async function tt(t, e) {
|
|
|
251
260
|
right: (O.right - h.right + m.right) / b.x
|
|
252
261
|
};
|
|
253
262
|
}
|
|
254
|
-
const
|
|
263
|
+
const we = (t) => ({
|
|
255
264
|
name: "arrow",
|
|
256
265
|
options: t,
|
|
257
266
|
async fn(e) {
|
|
@@ -259,97 +268,97 @@ const me = (t) => ({
|
|
|
259
268
|
x: n,
|
|
260
269
|
y: o,
|
|
261
270
|
placement: i,
|
|
262
|
-
rects:
|
|
271
|
+
rects: s,
|
|
263
272
|
platform: r,
|
|
264
|
-
elements:
|
|
273
|
+
elements: l,
|
|
265
274
|
middlewareData: a
|
|
266
275
|
} = e, {
|
|
267
276
|
element: c,
|
|
268
277
|
padding: u = 0
|
|
269
|
-
} =
|
|
278
|
+
} = G(t, e) || {};
|
|
270
279
|
if (c == null)
|
|
271
280
|
return {};
|
|
272
|
-
const d =
|
|
281
|
+
const d = Wt(u), p = {
|
|
273
282
|
x: n,
|
|
274
283
|
y: o
|
|
275
|
-
}, f =
|
|
276
|
-
let x =
|
|
277
|
-
(!x || !await (r.isElement == null ? void 0 : r.isElement(
|
|
278
|
-
const
|
|
284
|
+
}, f = vt(i), m = wt(f), g = await r.getDimensions(c), w = f === "y", h = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = s.reference[m] + s.reference[f] - p[f] - s.floating[m], O = p[f] - s.reference[f], T = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
|
|
285
|
+
let x = T ? T[y] : 0;
|
|
286
|
+
(!x || !await (r.isElement == null ? void 0 : r.isElement(T))) && (x = l.floating[y] || s.floating[m]);
|
|
287
|
+
const L = b / 2 - O / 2, P = x / 2 - g[m] / 2 - 1, A = Q(d[h], P), C = Q(d[v], P), E = A, U = x - g[m] - C, S = x / 2 - g[m] / 2 + L, k = pt(E, S, U), B = !a.arrow && H(i) != null && S !== k && s.reference[m] / 2 - (S < E ? A : C) - g[m] / 2 < 0, V = B ? S < E ? S - E : S - U : 0;
|
|
279
288
|
return {
|
|
280
|
-
[f]: p[f] +
|
|
289
|
+
[f]: p[f] + V,
|
|
281
290
|
data: {
|
|
282
|
-
[f]:
|
|
283
|
-
centerOffset: S -
|
|
284
|
-
...
|
|
285
|
-
alignmentOffset:
|
|
291
|
+
[f]: k,
|
|
292
|
+
centerOffset: S - k - V,
|
|
293
|
+
...B && {
|
|
294
|
+
alignmentOffset: V
|
|
286
295
|
}
|
|
287
296
|
},
|
|
288
|
-
reset:
|
|
297
|
+
reset: B
|
|
289
298
|
};
|
|
290
299
|
}
|
|
291
300
|
});
|
|
292
|
-
function
|
|
293
|
-
return (t ? [...n.filter((i) =>
|
|
301
|
+
function ve(t, e, n) {
|
|
302
|
+
return (t ? [...n.filter((i) => H(i) === t), ...n.filter((i) => H(i) !== t)] : n.filter((i) => I(i) === i)).filter((i) => t ? H(i) === t || (e ? st(i) !== i : !1) : !0);
|
|
294
303
|
}
|
|
295
|
-
const
|
|
304
|
+
const ye = function(t) {
|
|
296
305
|
return t === void 0 && (t = {}), {
|
|
297
306
|
name: "autoPlacement",
|
|
298
307
|
options: t,
|
|
299
308
|
async fn(e) {
|
|
300
309
|
var n, o, i;
|
|
301
310
|
const {
|
|
302
|
-
rects:
|
|
311
|
+
rects: s,
|
|
303
312
|
middlewareData: r,
|
|
304
|
-
placement:
|
|
313
|
+
placement: l,
|
|
305
314
|
platform: a,
|
|
306
315
|
elements: c
|
|
307
316
|
} = e, {
|
|
308
317
|
crossAxis: u = !1,
|
|
309
318
|
alignment: d,
|
|
310
|
-
allowedPlacements: p =
|
|
319
|
+
allowedPlacements: p = St,
|
|
311
320
|
autoAlignment: f = !0,
|
|
312
321
|
...m
|
|
313
|
-
} =
|
|
322
|
+
} = G(t, e), g = d !== void 0 || p === St ? ve(d || null, f, p) : p, w = await et(e, m), h = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = g[h];
|
|
314
323
|
if (v == null)
|
|
315
324
|
return {};
|
|
316
|
-
const y =
|
|
317
|
-
if (
|
|
325
|
+
const y = Nt(v, s, await (a.isRTL == null ? void 0 : a.isRTL(c.floating)));
|
|
326
|
+
if (l !== v)
|
|
318
327
|
return {
|
|
319
328
|
reset: {
|
|
320
329
|
placement: g[0]
|
|
321
330
|
}
|
|
322
331
|
};
|
|
323
|
-
const b = [w[
|
|
332
|
+
const b = [w[I(v)], w[y[0]], w[y[1]]], O = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
324
333
|
placement: v,
|
|
325
334
|
overflows: b
|
|
326
|
-
}],
|
|
327
|
-
if (
|
|
335
|
+
}], T = g[h + 1];
|
|
336
|
+
if (T)
|
|
328
337
|
return {
|
|
329
338
|
data: {
|
|
330
339
|
index: h + 1,
|
|
331
340
|
overflows: O
|
|
332
341
|
},
|
|
333
342
|
reset: {
|
|
334
|
-
placement:
|
|
343
|
+
placement: T
|
|
335
344
|
}
|
|
336
345
|
};
|
|
337
|
-
const x = O.map((
|
|
338
|
-
const
|
|
339
|
-
return [
|
|
346
|
+
const x = O.map((A) => {
|
|
347
|
+
const C = H(A.placement);
|
|
348
|
+
return [A.placement, C && u ? (
|
|
340
349
|
// Check along the mainAxis and main crossAxis side.
|
|
341
|
-
|
|
350
|
+
A.overflows.slice(0, 2).reduce((E, U) => E + U, 0)
|
|
342
351
|
) : (
|
|
343
352
|
// Check only the mainAxis.
|
|
344
|
-
|
|
345
|
-
),
|
|
346
|
-
}).sort((
|
|
353
|
+
A.overflows[0]
|
|
354
|
+
), A.overflows];
|
|
355
|
+
}).sort((A, C) => A[1] - C[1]), P = ((i = x.filter((A) => A[2].slice(
|
|
347
356
|
0,
|
|
348
357
|
// Aligned placements should not check their opposite crossAxis
|
|
349
358
|
// side.
|
|
350
|
-
|
|
351
|
-
).every((
|
|
352
|
-
return P !==
|
|
359
|
+
H(A[0]) ? 2 : 3
|
|
360
|
+
).every((C) => C <= 0))[0]) == null ? void 0 : i[0]) || x[0][0];
|
|
361
|
+
return P !== l ? {
|
|
353
362
|
data: {
|
|
354
363
|
index: h + 1,
|
|
355
364
|
overflows: O
|
|
@@ -360,7 +369,7 @@ const ge = function(t) {
|
|
|
360
369
|
} : {};
|
|
361
370
|
}
|
|
362
371
|
};
|
|
363
|
-
},
|
|
372
|
+
}, xe = function(t) {
|
|
364
373
|
return t === void 0 && (t = {}), {
|
|
365
374
|
name: "flip",
|
|
366
375
|
options: t,
|
|
@@ -368,9 +377,9 @@ const ge = function(t) {
|
|
|
368
377
|
var n, o;
|
|
369
378
|
const {
|
|
370
379
|
placement: i,
|
|
371
|
-
middlewareData:
|
|
380
|
+
middlewareData: s,
|
|
372
381
|
rects: r,
|
|
373
|
-
initialPlacement:
|
|
382
|
+
initialPlacement: l,
|
|
374
383
|
platform: a,
|
|
375
384
|
elements: c
|
|
376
385
|
} = e, {
|
|
@@ -381,44 +390,44 @@ const ge = function(t) {
|
|
|
381
390
|
fallbackAxisSideDirection: m = "none",
|
|
382
391
|
flipAlignment: g = !0,
|
|
383
392
|
...w
|
|
384
|
-
} =
|
|
385
|
-
if ((n =
|
|
393
|
+
} = G(t, e);
|
|
394
|
+
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
386
395
|
return {};
|
|
387
|
-
const h =
|
|
388
|
-
!p && m !== "none" && b.push(...
|
|
389
|
-
const O = [
|
|
390
|
-
let
|
|
391
|
-
if (u && x.push(
|
|
392
|
-
const E =
|
|
393
|
-
x.push(
|
|
396
|
+
const h = I(i), v = I(l) === l, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = p || (v || !g ? [lt(l)] : de(l));
|
|
397
|
+
!p && m !== "none" && b.push(...pe(l, g, m, y));
|
|
398
|
+
const O = [l, ...b], T = await et(e, w), x = [];
|
|
399
|
+
let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
400
|
+
if (u && x.push(T[h]), d) {
|
|
401
|
+
const E = Nt(i, r, y);
|
|
402
|
+
x.push(T[E[0]], T[E[1]]);
|
|
394
403
|
}
|
|
395
|
-
if (
|
|
404
|
+
if (L = [...L, {
|
|
396
405
|
placement: i,
|
|
397
406
|
overflows: x
|
|
398
407
|
}], !x.every((E) => E <= 0)) {
|
|
399
|
-
var P,
|
|
400
|
-
const E = (((P =
|
|
408
|
+
var P, A;
|
|
409
|
+
const E = (((P = s.flip) == null ? void 0 : P.index) || 0) + 1, U = O[E];
|
|
401
410
|
if (U)
|
|
402
411
|
return {
|
|
403
412
|
data: {
|
|
404
413
|
index: E,
|
|
405
|
-
overflows:
|
|
414
|
+
overflows: L
|
|
406
415
|
},
|
|
407
416
|
reset: {
|
|
408
417
|
placement: U
|
|
409
418
|
}
|
|
410
419
|
};
|
|
411
|
-
let S = (
|
|
420
|
+
let S = (A = L.filter((k) => k.overflows[0] <= 0).sort((k, B) => k.overflows[1] - B.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
412
421
|
if (!S)
|
|
413
422
|
switch (f) {
|
|
414
423
|
case "bestFit": {
|
|
415
|
-
var
|
|
416
|
-
const
|
|
417
|
-
|
|
424
|
+
var C;
|
|
425
|
+
const k = (C = L.map((B) => [B.placement, B.overflows.filter((V) => V > 0).reduce((V, Jt) => V + Jt, 0)]).sort((B, V) => B[1] - V[1])[0]) == null ? void 0 : C[0];
|
|
426
|
+
k && (S = k);
|
|
418
427
|
break;
|
|
419
428
|
}
|
|
420
429
|
case "initialPlacement":
|
|
421
|
-
S =
|
|
430
|
+
S = l;
|
|
422
431
|
break;
|
|
423
432
|
}
|
|
424
433
|
if (i !== S)
|
|
@@ -432,7 +441,7 @@ const ge = function(t) {
|
|
|
432
441
|
}
|
|
433
442
|
};
|
|
434
443
|
};
|
|
435
|
-
function
|
|
444
|
+
function Lt(t, e) {
|
|
436
445
|
return {
|
|
437
446
|
top: t.top - e.height,
|
|
438
447
|
right: t.right - e.width,
|
|
@@ -440,10 +449,10 @@ function Tt(t, e) {
|
|
|
440
449
|
left: t.left - e.width
|
|
441
450
|
};
|
|
442
451
|
}
|
|
443
|
-
function
|
|
444
|
-
return
|
|
452
|
+
function Pt(t) {
|
|
453
|
+
return $t.some((e) => t[e] >= 0);
|
|
445
454
|
}
|
|
446
|
-
const
|
|
455
|
+
const be = function(t) {
|
|
447
456
|
return t === void 0 && (t = {}), {
|
|
448
457
|
name: "hide",
|
|
449
458
|
options: t,
|
|
@@ -453,29 +462,29 @@ const we = function(t) {
|
|
|
453
462
|
} = e, {
|
|
454
463
|
strategy: o = "referenceHidden",
|
|
455
464
|
...i
|
|
456
|
-
} =
|
|
465
|
+
} = G(t, e);
|
|
457
466
|
switch (o) {
|
|
458
467
|
case "referenceHidden": {
|
|
459
|
-
const
|
|
468
|
+
const s = await et(e, {
|
|
460
469
|
...i,
|
|
461
470
|
elementContext: "reference"
|
|
462
|
-
}), r =
|
|
471
|
+
}), r = Lt(s, n.reference);
|
|
463
472
|
return {
|
|
464
473
|
data: {
|
|
465
474
|
referenceHiddenOffsets: r,
|
|
466
|
-
referenceHidden:
|
|
475
|
+
referenceHidden: Pt(r)
|
|
467
476
|
}
|
|
468
477
|
};
|
|
469
478
|
}
|
|
470
479
|
case "escaped": {
|
|
471
|
-
const
|
|
480
|
+
const s = await et(e, {
|
|
472
481
|
...i,
|
|
473
482
|
altBoundary: !0
|
|
474
|
-
}), r =
|
|
483
|
+
}), r = Lt(s, n.floating);
|
|
475
484
|
return {
|
|
476
485
|
data: {
|
|
477
486
|
escapedOffsets: r,
|
|
478
|
-
escaped:
|
|
487
|
+
escaped: Pt(r)
|
|
479
488
|
}
|
|
480
489
|
};
|
|
481
490
|
}
|
|
@@ -485,12 +494,12 @@ const we = function(t) {
|
|
|
485
494
|
}
|
|
486
495
|
};
|
|
487
496
|
};
|
|
488
|
-
async function
|
|
497
|
+
async function Oe(t, e) {
|
|
489
498
|
const {
|
|
490
499
|
placement: n,
|
|
491
500
|
platform: o,
|
|
492
501
|
elements: i
|
|
493
|
-
} = t,
|
|
502
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = I(n), l = H(n), a = at(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, u = s && a ? -1 : 1, d = G(e, t);
|
|
494
503
|
let {
|
|
495
504
|
mainAxis: p,
|
|
496
505
|
crossAxis: f,
|
|
@@ -505,7 +514,7 @@ async function ve(t, e) {
|
|
|
505
514
|
alignmentAxis: null,
|
|
506
515
|
...d
|
|
507
516
|
};
|
|
508
|
-
return
|
|
517
|
+
return l && typeof m == "number" && (f = l === "end" ? m * -1 : m), a ? {
|
|
509
518
|
x: f * u,
|
|
510
519
|
y: p * c
|
|
511
520
|
} : {
|
|
@@ -513,7 +522,7 @@ async function ve(t, e) {
|
|
|
513
522
|
y: f * u
|
|
514
523
|
};
|
|
515
524
|
}
|
|
516
|
-
const
|
|
525
|
+
const Te = function(t) {
|
|
517
526
|
return t === void 0 && (t = 0), {
|
|
518
527
|
name: "offset",
|
|
519
528
|
options: t,
|
|
@@ -521,13 +530,13 @@ const ye = function(t) {
|
|
|
521
530
|
var n, o;
|
|
522
531
|
const {
|
|
523
532
|
x: i,
|
|
524
|
-
y:
|
|
533
|
+
y: s,
|
|
525
534
|
placement: r,
|
|
526
|
-
middlewareData:
|
|
527
|
-
} = e, a = await
|
|
528
|
-
return r === ((n =
|
|
535
|
+
middlewareData: l
|
|
536
|
+
} = e, a = await Oe(e, t);
|
|
537
|
+
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
529
538
|
x: i + a.x,
|
|
530
|
-
y:
|
|
539
|
+
y: s + a.y,
|
|
531
540
|
data: {
|
|
532
541
|
...a,
|
|
533
542
|
placement: r
|
|
@@ -535,7 +544,7 @@ const ye = function(t) {
|
|
|
535
544
|
};
|
|
536
545
|
}
|
|
537
546
|
};
|
|
538
|
-
},
|
|
547
|
+
}, Ae = function(t) {
|
|
539
548
|
return t === void 0 && (t = {}), {
|
|
540
549
|
name: "shift",
|
|
541
550
|
options: t,
|
|
@@ -545,9 +554,9 @@ const ye = function(t) {
|
|
|
545
554
|
y: o,
|
|
546
555
|
placement: i
|
|
547
556
|
} = e, {
|
|
548
|
-
mainAxis:
|
|
557
|
+
mainAxis: s = !0,
|
|
549
558
|
crossAxis: r = !1,
|
|
550
|
-
limiter:
|
|
559
|
+
limiter: l = {
|
|
551
560
|
fn: (w) => {
|
|
552
561
|
let {
|
|
553
562
|
x: h,
|
|
@@ -560,20 +569,20 @@ const ye = function(t) {
|
|
|
560
569
|
}
|
|
561
570
|
},
|
|
562
571
|
...a
|
|
563
|
-
} =
|
|
572
|
+
} = G(t, e), c = {
|
|
564
573
|
x: n,
|
|
565
574
|
y: o
|
|
566
|
-
}, u = await
|
|
575
|
+
}, u = await et(e, a), d = at(I(i)), p = Ht(d);
|
|
567
576
|
let f = c[p], m = c[d];
|
|
568
|
-
if (
|
|
577
|
+
if (s) {
|
|
569
578
|
const w = p === "y" ? "top" : "left", h = p === "y" ? "bottom" : "right", v = f + u[w], y = f - u[h];
|
|
570
|
-
f =
|
|
579
|
+
f = pt(v, f, y);
|
|
571
580
|
}
|
|
572
581
|
if (r) {
|
|
573
582
|
const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", v = m + u[w], y = m - u[h];
|
|
574
|
-
m =
|
|
583
|
+
m = pt(v, m, y);
|
|
575
584
|
}
|
|
576
|
-
const g =
|
|
585
|
+
const g = l.fn({
|
|
577
586
|
...e,
|
|
578
587
|
[p]: f,
|
|
579
588
|
[d]: m
|
|
@@ -588,278 +597,303 @@ const ye = function(t) {
|
|
|
588
597
|
}
|
|
589
598
|
};
|
|
590
599
|
};
|
|
591
|
-
function
|
|
592
|
-
return
|
|
600
|
+
function ft() {
|
|
601
|
+
return typeof window < "u";
|
|
602
|
+
}
|
|
603
|
+
function X(t) {
|
|
604
|
+
return yt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
593
605
|
}
|
|
594
|
-
function
|
|
606
|
+
function D(t) {
|
|
595
607
|
var e;
|
|
596
608
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
597
609
|
}
|
|
598
|
-
function
|
|
610
|
+
function W(t) {
|
|
599
611
|
var e;
|
|
600
|
-
return (e = (
|
|
612
|
+
return (e = (yt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
601
613
|
}
|
|
602
|
-
function
|
|
603
|
-
return t instanceof Node || t instanceof
|
|
614
|
+
function yt(t) {
|
|
615
|
+
return ft() ? t instanceof Node || t instanceof D(t).Node : !1;
|
|
604
616
|
}
|
|
605
|
-
function
|
|
606
|
-
return t instanceof Element || t instanceof
|
|
617
|
+
function _(t) {
|
|
618
|
+
return ft() ? t instanceof Element || t instanceof D(t).Element : !1;
|
|
607
619
|
}
|
|
608
|
-
function
|
|
609
|
-
return t instanceof HTMLElement || t instanceof
|
|
620
|
+
function N(t) {
|
|
621
|
+
return ft() ? t instanceof HTMLElement || t instanceof D(t).HTMLElement : !1;
|
|
610
622
|
}
|
|
611
|
-
function
|
|
612
|
-
return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof
|
|
623
|
+
function Ct(t) {
|
|
624
|
+
return !ft() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof D(t).ShadowRoot;
|
|
613
625
|
}
|
|
614
|
-
function
|
|
626
|
+
function ot(t) {
|
|
615
627
|
const {
|
|
616
628
|
overflow: e,
|
|
617
629
|
overflowX: n,
|
|
618
630
|
overflowY: o,
|
|
619
631
|
display: i
|
|
620
|
-
} =
|
|
632
|
+
} = F(t);
|
|
621
633
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
622
634
|
}
|
|
623
|
-
function
|
|
624
|
-
return ["table", "td", "th"].includes(
|
|
635
|
+
function Re(t) {
|
|
636
|
+
return ["table", "td", "th"].includes(X(t));
|
|
625
637
|
}
|
|
626
|
-
function
|
|
627
|
-
|
|
638
|
+
function ut(t) {
|
|
639
|
+
return [":popover-open", ":modal"].some((e) => {
|
|
640
|
+
try {
|
|
641
|
+
return t.matches(e);
|
|
642
|
+
} catch {
|
|
643
|
+
return !1;
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
function xt(t) {
|
|
648
|
+
const e = bt(), n = _(t) ? F(t) : t;
|
|
628
649
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
629
650
|
}
|
|
630
|
-
function
|
|
631
|
-
let e =
|
|
632
|
-
for (;
|
|
633
|
-
if (
|
|
651
|
+
function Ee(t) {
|
|
652
|
+
let e = z(t);
|
|
653
|
+
for (; N(e) && !Z(e); ) {
|
|
654
|
+
if (xt(e))
|
|
634
655
|
return e;
|
|
635
|
-
|
|
656
|
+
if (ut(e))
|
|
657
|
+
return null;
|
|
658
|
+
e = z(e);
|
|
636
659
|
}
|
|
637
660
|
return null;
|
|
638
661
|
}
|
|
639
|
-
function
|
|
662
|
+
function bt() {
|
|
640
663
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
641
664
|
}
|
|
642
|
-
function
|
|
643
|
-
return ["html", "body", "#document"].includes(
|
|
665
|
+
function Z(t) {
|
|
666
|
+
return ["html", "body", "#document"].includes(X(t));
|
|
644
667
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
668
|
+
function F(t) {
|
|
669
|
+
return D(t).getComputedStyle(t);
|
|
647
670
|
}
|
|
648
|
-
function
|
|
649
|
-
return
|
|
671
|
+
function dt(t) {
|
|
672
|
+
return _(t) ? {
|
|
650
673
|
scrollLeft: t.scrollLeft,
|
|
651
674
|
scrollTop: t.scrollTop
|
|
652
675
|
} : {
|
|
653
|
-
scrollLeft: t.
|
|
654
|
-
scrollTop: t.
|
|
676
|
+
scrollLeft: t.scrollX,
|
|
677
|
+
scrollTop: t.scrollY
|
|
655
678
|
};
|
|
656
679
|
}
|
|
657
|
-
function
|
|
658
|
-
if (
|
|
680
|
+
function z(t) {
|
|
681
|
+
if (X(t) === "html")
|
|
659
682
|
return t;
|
|
660
683
|
const e = (
|
|
661
684
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
662
685
|
t.assignedSlot || // DOM Element detected.
|
|
663
686
|
t.parentNode || // ShadowRoot detected.
|
|
664
|
-
|
|
665
|
-
|
|
687
|
+
Ct(t) && t.host || // Fallback.
|
|
688
|
+
W(t)
|
|
666
689
|
);
|
|
667
|
-
return
|
|
690
|
+
return Ct(e) ? e.host : e;
|
|
668
691
|
}
|
|
669
|
-
function
|
|
670
|
-
const e =
|
|
671
|
-
return
|
|
692
|
+
function Vt(t) {
|
|
693
|
+
const e = z(t);
|
|
694
|
+
return Z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : N(e) && ot(e) ? e : Vt(e);
|
|
672
695
|
}
|
|
673
|
-
function
|
|
696
|
+
function nt(t, e, n) {
|
|
674
697
|
var o;
|
|
675
698
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
676
|
-
const i =
|
|
677
|
-
|
|
699
|
+
const i = Vt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = D(i);
|
|
700
|
+
if (s) {
|
|
701
|
+
const l = gt(r);
|
|
702
|
+
return e.concat(r, r.visualViewport || [], ot(i) ? i : [], l && n ? nt(l) : []);
|
|
703
|
+
}
|
|
704
|
+
return e.concat(i, nt(i, [], n));
|
|
678
705
|
}
|
|
679
|
-
function
|
|
680
|
-
|
|
706
|
+
function gt(t) {
|
|
707
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
708
|
+
}
|
|
709
|
+
function It(t) {
|
|
710
|
+
const e = F(t);
|
|
681
711
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
682
|
-
const i =
|
|
683
|
-
return
|
|
712
|
+
const i = N(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = rt(n) !== s || rt(o) !== r;
|
|
713
|
+
return l && (n = s, o = r), {
|
|
684
714
|
width: n,
|
|
685
715
|
height: o,
|
|
686
|
-
$:
|
|
716
|
+
$: l
|
|
687
717
|
};
|
|
688
718
|
}
|
|
689
|
-
function
|
|
690
|
-
return
|
|
719
|
+
function Ot(t) {
|
|
720
|
+
return _(t) ? t : t.contextElement;
|
|
691
721
|
}
|
|
692
|
-
function
|
|
693
|
-
const e =
|
|
694
|
-
if (
|
|
695
|
-
return
|
|
722
|
+
function J(t) {
|
|
723
|
+
const e = Ot(t);
|
|
724
|
+
if (!N(e))
|
|
725
|
+
return $(1);
|
|
696
726
|
const n = e.getBoundingClientRect(), {
|
|
697
727
|
width: o,
|
|
698
728
|
height: i,
|
|
699
|
-
$:
|
|
700
|
-
} =
|
|
701
|
-
let r = (
|
|
702
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!
|
|
729
|
+
$: s
|
|
730
|
+
} = It(e);
|
|
731
|
+
let r = (s ? rt(n.width) : n.width) / o, l = (s ? rt(n.height) : n.height) / i;
|
|
732
|
+
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
703
733
|
x: r,
|
|
704
|
-
y:
|
|
734
|
+
y: l
|
|
705
735
|
};
|
|
706
736
|
}
|
|
707
|
-
const
|
|
708
|
-
function
|
|
709
|
-
const e =
|
|
710
|
-
return !
|
|
737
|
+
const Se = /* @__PURE__ */ $(0);
|
|
738
|
+
function jt(t) {
|
|
739
|
+
const e = D(t);
|
|
740
|
+
return !bt() || !e.visualViewport ? Se : {
|
|
711
741
|
x: e.visualViewport.offsetLeft,
|
|
712
742
|
y: e.visualViewport.offsetTop
|
|
713
743
|
};
|
|
714
744
|
}
|
|
715
|
-
function
|
|
716
|
-
return e === void 0 && (e = !1), !n || e && n !==
|
|
745
|
+
function De(t, e, n) {
|
|
746
|
+
return e === void 0 && (e = !1), !n || e && n !== D(t) ? !1 : e;
|
|
717
747
|
}
|
|
718
|
-
function
|
|
748
|
+
function q(t, e, n, o) {
|
|
719
749
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
720
|
-
const i = t.getBoundingClientRect(),
|
|
721
|
-
let r =
|
|
722
|
-
e && (o ?
|
|
723
|
-
const
|
|
724
|
-
let a = (i.left +
|
|
725
|
-
if (
|
|
726
|
-
const p =
|
|
727
|
-
let m = p, g = m
|
|
750
|
+
const i = t.getBoundingClientRect(), s = Ot(t);
|
|
751
|
+
let r = $(1);
|
|
752
|
+
e && (o ? _(o) && (r = J(o)) : r = J(t));
|
|
753
|
+
const l = De(s, n, o) ? jt(s) : $(0);
|
|
754
|
+
let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, u = i.width / r.x, d = i.height / r.y;
|
|
755
|
+
if (s) {
|
|
756
|
+
const p = D(s), f = o && _(o) ? D(o) : o;
|
|
757
|
+
let m = p, g = gt(m);
|
|
728
758
|
for (; g && o && f !== m; ) {
|
|
729
|
-
const w =
|
|
730
|
-
a *= w.x, c *= w.y, u *= w.x, d *= w.y, a += y, c += b, m =
|
|
759
|
+
const w = J(g), h = g.getBoundingClientRect(), v = F(g), y = h.left + (g.clientLeft + parseFloat(v.paddingLeft)) * w.x, b = h.top + (g.clientTop + parseFloat(v.paddingTop)) * w.y;
|
|
760
|
+
a *= w.x, c *= w.y, u *= w.x, d *= w.y, a += y, c += b, m = D(g), g = gt(m);
|
|
731
761
|
}
|
|
732
762
|
}
|
|
733
|
-
return
|
|
763
|
+
return ct({
|
|
734
764
|
width: u,
|
|
735
765
|
height: d,
|
|
736
766
|
x: a,
|
|
737
767
|
y: c
|
|
738
768
|
});
|
|
739
769
|
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
return
|
|
743
|
-
try {
|
|
744
|
-
return t.matches(e);
|
|
745
|
-
} catch {
|
|
746
|
-
return !1;
|
|
747
|
-
}
|
|
748
|
-
});
|
|
770
|
+
function Tt(t, e) {
|
|
771
|
+
const n = dt(t).scrollLeft;
|
|
772
|
+
return e ? e.left + n : q(W(t)).left + n;
|
|
749
773
|
}
|
|
750
|
-
function
|
|
774
|
+
function zt(t, e, n) {
|
|
775
|
+
n === void 0 && (n = !1);
|
|
776
|
+
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
777
|
+
// RTL <body> scrollbar.
|
|
778
|
+
Tt(t, o)
|
|
779
|
+
)), s = o.top + e.scrollTop;
|
|
780
|
+
return {
|
|
781
|
+
x: i,
|
|
782
|
+
y: s
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function Le(t) {
|
|
751
786
|
let {
|
|
752
787
|
elements: e,
|
|
753
788
|
rect: n,
|
|
754
789
|
offsetParent: o,
|
|
755
790
|
strategy: i
|
|
756
791
|
} = t;
|
|
757
|
-
const
|
|
758
|
-
if (o === r ||
|
|
792
|
+
const s = i === "fixed", r = W(o), l = e ? ut(e.floating) : !1;
|
|
793
|
+
if (o === r || l && s)
|
|
759
794
|
return n;
|
|
760
795
|
let a = {
|
|
761
796
|
scrollLeft: 0,
|
|
762
797
|
scrollTop: 0
|
|
763
|
-
}, c =
|
|
764
|
-
const u =
|
|
765
|
-
if ((d || !d && !
|
|
766
|
-
const
|
|
767
|
-
c =
|
|
798
|
+
}, c = $(1);
|
|
799
|
+
const u = $(0), d = N(o);
|
|
800
|
+
if ((d || !d && !s) && ((X(o) !== "body" || ot(r)) && (a = dt(o)), N(o))) {
|
|
801
|
+
const f = q(o);
|
|
802
|
+
c = J(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
|
|
768
803
|
}
|
|
804
|
+
const p = r && !d && !s ? zt(r, a, !0) : $(0);
|
|
769
805
|
return {
|
|
770
806
|
width: n.width * c.x,
|
|
771
807
|
height: n.height * c.y,
|
|
772
|
-
x: n.x * c.x - a.scrollLeft * c.x + u.x,
|
|
773
|
-
y: n.y * c.y - a.scrollTop * c.y + u.y
|
|
808
|
+
x: n.x * c.x - a.scrollLeft * c.x + u.x + p.x,
|
|
809
|
+
y: n.y * c.y - a.scrollTop * c.y + u.y + p.y
|
|
774
810
|
};
|
|
775
811
|
}
|
|
776
|
-
function
|
|
812
|
+
function Pe(t) {
|
|
777
813
|
return Array.from(t.getClientRects());
|
|
778
814
|
}
|
|
779
|
-
function
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
let r = -n.scrollLeft + Vt(t);
|
|
785
|
-
const s = -n.scrollTop;
|
|
786
|
-
return C(o).direction === "rtl" && (r += X(e.clientWidth, o.clientWidth) - i), {
|
|
815
|
+
function Ce(t) {
|
|
816
|
+
const e = W(t), n = dt(t), o = t.ownerDocument.body, i = Y(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = Y(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
817
|
+
let r = -n.scrollLeft + Tt(t);
|
|
818
|
+
const l = -n.scrollTop;
|
|
819
|
+
return F(o).direction === "rtl" && (r += Y(e.clientWidth, o.clientWidth) - i), {
|
|
787
820
|
width: i,
|
|
788
|
-
height:
|
|
821
|
+
height: s,
|
|
789
822
|
x: r,
|
|
790
|
-
y:
|
|
823
|
+
y: l
|
|
791
824
|
};
|
|
792
825
|
}
|
|
793
|
-
function
|
|
794
|
-
const n =
|
|
795
|
-
let
|
|
826
|
+
function _e(t, e) {
|
|
827
|
+
const n = D(t), o = W(t), i = n.visualViewport;
|
|
828
|
+
let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
|
|
796
829
|
if (i) {
|
|
797
|
-
|
|
798
|
-
const c =
|
|
799
|
-
(!c || c && e === "fixed") && (
|
|
830
|
+
s = i.width, r = i.height;
|
|
831
|
+
const c = bt();
|
|
832
|
+
(!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
|
|
800
833
|
}
|
|
801
834
|
return {
|
|
802
|
-
width:
|
|
835
|
+
width: s,
|
|
803
836
|
height: r,
|
|
804
|
-
x:
|
|
837
|
+
x: l,
|
|
805
838
|
y: a
|
|
806
839
|
};
|
|
807
840
|
}
|
|
808
|
-
function
|
|
809
|
-
const n =
|
|
841
|
+
function Fe(t, e) {
|
|
842
|
+
const n = q(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = N(t) ? J(t) : $(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
|
|
810
843
|
return {
|
|
811
844
|
width: r,
|
|
812
|
-
height:
|
|
845
|
+
height: l,
|
|
813
846
|
x: a,
|
|
814
847
|
y: c
|
|
815
848
|
};
|
|
816
849
|
}
|
|
817
|
-
function
|
|
850
|
+
function _t(t, e, n) {
|
|
818
851
|
let o;
|
|
819
852
|
if (e === "viewport")
|
|
820
|
-
o =
|
|
853
|
+
o = _e(t, n);
|
|
821
854
|
else if (e === "document")
|
|
822
|
-
o =
|
|
823
|
-
else if (
|
|
824
|
-
o =
|
|
855
|
+
o = Ce(W(t));
|
|
856
|
+
else if (_(e))
|
|
857
|
+
o = Fe(e, n);
|
|
825
858
|
else {
|
|
826
|
-
const i =
|
|
859
|
+
const i = jt(t);
|
|
827
860
|
o = {
|
|
828
|
-
...e,
|
|
829
861
|
x: e.x - i.x,
|
|
830
|
-
y: e.y - i.y
|
|
862
|
+
y: e.y - i.y,
|
|
863
|
+
width: e.width,
|
|
864
|
+
height: e.height
|
|
831
865
|
};
|
|
832
866
|
}
|
|
833
|
-
return
|
|
867
|
+
return ct(o);
|
|
834
868
|
}
|
|
835
|
-
function
|
|
836
|
-
const n =
|
|
837
|
-
return n === e || !
|
|
869
|
+
function Ut(t, e) {
|
|
870
|
+
const n = z(t);
|
|
871
|
+
return n === e || !_(n) || Z(n) ? !1 : F(n).position === "fixed" || Ut(n, e);
|
|
838
872
|
}
|
|
839
|
-
function
|
|
873
|
+
function ke(t, e) {
|
|
840
874
|
const n = e.get(t);
|
|
841
875
|
if (n)
|
|
842
876
|
return n;
|
|
843
|
-
let o =
|
|
844
|
-
const
|
|
845
|
-
let r =
|
|
846
|
-
for (;
|
|
847
|
-
const
|
|
848
|
-
!a &&
|
|
877
|
+
let o = nt(t, [], !1).filter((l) => _(l) && X(l) !== "body"), i = null;
|
|
878
|
+
const s = F(t).position === "fixed";
|
|
879
|
+
let r = s ? z(t) : t;
|
|
880
|
+
for (; _(r) && !Z(r); ) {
|
|
881
|
+
const l = F(r), a = xt(r);
|
|
882
|
+
!a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || ot(r) && !a && Ut(t, r)) ? o = o.filter((u) => u !== r) : i = l, r = z(r);
|
|
849
883
|
}
|
|
850
884
|
return e.set(t, o), o;
|
|
851
885
|
}
|
|
852
|
-
function
|
|
886
|
+
function Be(t) {
|
|
853
887
|
let {
|
|
854
888
|
element: e,
|
|
855
889
|
boundary: n,
|
|
856
890
|
rootBoundary: o,
|
|
857
891
|
strategy: i
|
|
858
892
|
} = t;
|
|
859
|
-
const r = [...n === "clippingAncestors" ?
|
|
860
|
-
const d =
|
|
861
|
-
return c.top =
|
|
862
|
-
},
|
|
893
|
+
const r = [...n === "clippingAncestors" ? ut(e) ? [] : ke(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
|
|
894
|
+
const d = _t(e, u, i);
|
|
895
|
+
return c.top = Y(d.top, c.top), c.right = Q(d.right, c.right), c.bottom = Q(d.bottom, c.bottom), c.left = Y(d.left, c.left), c;
|
|
896
|
+
}, _t(e, l, i));
|
|
863
897
|
return {
|
|
864
898
|
width: a.right - a.left,
|
|
865
899
|
height: a.bottom - a.top,
|
|
@@ -867,104 +901,122 @@ function _e(t) {
|
|
|
867
901
|
y: a.top
|
|
868
902
|
};
|
|
869
903
|
}
|
|
870
|
-
function
|
|
904
|
+
function Me(t) {
|
|
871
905
|
const {
|
|
872
906
|
width: e,
|
|
873
907
|
height: n
|
|
874
|
-
} =
|
|
908
|
+
} = It(t);
|
|
875
909
|
return {
|
|
876
910
|
width: e,
|
|
877
911
|
height: n
|
|
878
912
|
};
|
|
879
913
|
}
|
|
880
|
-
function
|
|
881
|
-
const o =
|
|
882
|
-
let
|
|
914
|
+
function $e(t, e, n) {
|
|
915
|
+
const o = N(e), i = W(e), s = n === "fixed", r = q(t, !0, s, e);
|
|
916
|
+
let l = {
|
|
883
917
|
scrollLeft: 0,
|
|
884
918
|
scrollTop: 0
|
|
885
919
|
};
|
|
886
|
-
const a =
|
|
887
|
-
if (o || !o && !
|
|
888
|
-
if ((
|
|
889
|
-
const
|
|
890
|
-
a.x =
|
|
891
|
-
} else i && (a.x =
|
|
892
|
-
const c = r.left +
|
|
920
|
+
const a = $(0);
|
|
921
|
+
if (o || !o && !s)
|
|
922
|
+
if ((X(e) !== "body" || ot(i)) && (l = dt(e)), o) {
|
|
923
|
+
const p = q(e, !0, s, e);
|
|
924
|
+
a.x = p.x + e.clientLeft, a.y = p.y + e.clientTop;
|
|
925
|
+
} else i && (a.x = Tt(i));
|
|
926
|
+
const c = i && !o && !s ? zt(i, l) : $(0), u = r.left + l.scrollLeft - a.x - c.x, d = r.top + l.scrollTop - a.y - c.y;
|
|
893
927
|
return {
|
|
894
|
-
x:
|
|
895
|
-
y:
|
|
928
|
+
x: u,
|
|
929
|
+
y: d,
|
|
896
930
|
width: r.width,
|
|
897
931
|
height: r.height
|
|
898
932
|
};
|
|
899
933
|
}
|
|
900
|
-
function
|
|
901
|
-
return
|
|
902
|
-
}
|
|
903
|
-
function
|
|
904
|
-
|
|
905
|
-
|
|
934
|
+
function mt(t) {
|
|
935
|
+
return F(t).position === "static";
|
|
936
|
+
}
|
|
937
|
+
function Ft(t, e) {
|
|
938
|
+
if (!N(t) || F(t).position === "fixed")
|
|
939
|
+
return null;
|
|
940
|
+
if (e)
|
|
941
|
+
return e(t);
|
|
942
|
+
let n = t.offsetParent;
|
|
943
|
+
return W(t) === n && (n = n.ownerDocument.body), n;
|
|
944
|
+
}
|
|
945
|
+
function Yt(t, e) {
|
|
946
|
+
const n = D(t);
|
|
947
|
+
if (ut(t))
|
|
948
|
+
return n;
|
|
949
|
+
if (!N(t)) {
|
|
950
|
+
let i = z(t);
|
|
951
|
+
for (; i && !Z(i); ) {
|
|
952
|
+
if (_(i) && !mt(i))
|
|
953
|
+
return i;
|
|
954
|
+
i = z(i);
|
|
955
|
+
}
|
|
906
956
|
return n;
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
957
|
+
}
|
|
958
|
+
let o = Ft(t, e);
|
|
959
|
+
for (; o && Re(o) && mt(o); )
|
|
960
|
+
o = Ft(o, e);
|
|
961
|
+
return o && Z(o) && mt(o) && !xt(o) ? n : o || Ee(t) || n;
|
|
911
962
|
}
|
|
912
|
-
const
|
|
913
|
-
const e = this.getOffsetParent ||
|
|
963
|
+
const He = async function(t) {
|
|
964
|
+
const e = this.getOffsetParent || Yt, n = this.getDimensions, o = await n(t.floating);
|
|
914
965
|
return {
|
|
915
|
-
reference:
|
|
966
|
+
reference: $e(t.reference, await e(t.floating), t.strategy),
|
|
916
967
|
floating: {
|
|
917
968
|
x: 0,
|
|
918
969
|
y: 0,
|
|
919
|
-
|
|
970
|
+
width: o.width,
|
|
971
|
+
height: o.height
|
|
920
972
|
}
|
|
921
973
|
};
|
|
922
974
|
};
|
|
923
|
-
function
|
|
924
|
-
return
|
|
925
|
-
}
|
|
926
|
-
const
|
|
927
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
928
|
-
getDocumentElement:
|
|
929
|
-
getClippingRect:
|
|
930
|
-
getOffsetParent:
|
|
931
|
-
getElementRects:
|
|
932
|
-
getClientRects:
|
|
933
|
-
getDimensions:
|
|
934
|
-
getScale:
|
|
935
|
-
isElement:
|
|
936
|
-
isRTL:
|
|
975
|
+
function Ne(t) {
|
|
976
|
+
return F(t).direction === "rtl";
|
|
977
|
+
}
|
|
978
|
+
const We = {
|
|
979
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Le,
|
|
980
|
+
getDocumentElement: W,
|
|
981
|
+
getClippingRect: Be,
|
|
982
|
+
getOffsetParent: Yt,
|
|
983
|
+
getElementRects: He,
|
|
984
|
+
getClientRects: Pe,
|
|
985
|
+
getDimensions: Me,
|
|
986
|
+
getScale: J,
|
|
987
|
+
isElement: _,
|
|
988
|
+
isRTL: Ne
|
|
937
989
|
};
|
|
938
|
-
function
|
|
990
|
+
function Ve(t, e) {
|
|
939
991
|
let n = null, o;
|
|
940
|
-
const i =
|
|
941
|
-
function
|
|
942
|
-
var
|
|
943
|
-
clearTimeout(o), (
|
|
992
|
+
const i = W(t);
|
|
993
|
+
function s() {
|
|
994
|
+
var l;
|
|
995
|
+
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
944
996
|
}
|
|
945
|
-
function r(
|
|
946
|
-
|
|
997
|
+
function r(l, a) {
|
|
998
|
+
l === void 0 && (l = !1), a === void 0 && (a = 1), s();
|
|
947
999
|
const {
|
|
948
1000
|
left: c,
|
|
949
1001
|
top: u,
|
|
950
1002
|
width: d,
|
|
951
1003
|
height: p
|
|
952
1004
|
} = t.getBoundingClientRect();
|
|
953
|
-
if (
|
|
1005
|
+
if (l || e(), !d || !p)
|
|
954
1006
|
return;
|
|
955
|
-
const f =
|
|
1007
|
+
const f = it(u), m = it(i.clientWidth - (c + d)), g = it(i.clientHeight - (u + p)), w = it(c), v = {
|
|
956
1008
|
rootMargin: -f + "px " + -m + "px " + -g + "px " + -w + "px",
|
|
957
|
-
threshold:
|
|
1009
|
+
threshold: Y(0, Q(1, a)) || 1
|
|
958
1010
|
};
|
|
959
1011
|
let y = !0;
|
|
960
1012
|
function b(O) {
|
|
961
|
-
const
|
|
962
|
-
if (
|
|
1013
|
+
const T = O[0].intersectionRatio;
|
|
1014
|
+
if (T !== a) {
|
|
963
1015
|
if (!y)
|
|
964
1016
|
return r();
|
|
965
|
-
|
|
1017
|
+
T ? r(!1, T) : o = setTimeout(() => {
|
|
966
1018
|
r(!1, 1e-7);
|
|
967
|
-
},
|
|
1019
|
+
}, 1e3);
|
|
968
1020
|
}
|
|
969
1021
|
y = !1;
|
|
970
1022
|
}
|
|
@@ -979,23 +1031,23 @@ function He(t, e) {
|
|
|
979
1031
|
}
|
|
980
1032
|
n.observe(t);
|
|
981
1033
|
}
|
|
982
|
-
return r(!0),
|
|
1034
|
+
return r(!0), s;
|
|
983
1035
|
}
|
|
984
|
-
function
|
|
1036
|
+
function kt(t, e, n, o) {
|
|
985
1037
|
o === void 0 && (o = {});
|
|
986
1038
|
const {
|
|
987
1039
|
ancestorScroll: i = !0,
|
|
988
|
-
ancestorResize:
|
|
1040
|
+
ancestorResize: s = !0,
|
|
989
1041
|
elementResize: r = typeof ResizeObserver == "function",
|
|
990
|
-
layoutShift:
|
|
1042
|
+
layoutShift: l = typeof IntersectionObserver == "function",
|
|
991
1043
|
animationFrame: a = !1
|
|
992
|
-
} = o, c =
|
|
1044
|
+
} = o, c = Ot(t), u = i || s ? [...c ? nt(c) : [], ...nt(e)] : [];
|
|
993
1045
|
u.forEach((h) => {
|
|
994
1046
|
i && h.addEventListener("scroll", n, {
|
|
995
1047
|
passive: !0
|
|
996
|
-
}),
|
|
1048
|
+
}), s && h.addEventListener("resize", n);
|
|
997
1049
|
});
|
|
998
|
-
const d = c &&
|
|
1050
|
+
const d = c && l ? Ve(c, n) : null;
|
|
999
1051
|
let p = -1, f = null;
|
|
1000
1052
|
r && (f = new ResizeObserver((h) => {
|
|
1001
1053
|
let [v] = h;
|
|
@@ -1004,77 +1056,77 @@ function Ct(t, e, n, o) {
|
|
|
1004
1056
|
(y = f) == null || y.observe(e);
|
|
1005
1057
|
})), n();
|
|
1006
1058
|
}), c && !a && f.observe(c), f.observe(e));
|
|
1007
|
-
let m, g = a ?
|
|
1059
|
+
let m, g = a ? q(t) : null;
|
|
1008
1060
|
a && w();
|
|
1009
1061
|
function w() {
|
|
1010
|
-
const h =
|
|
1062
|
+
const h = q(t);
|
|
1011
1063
|
g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, m = requestAnimationFrame(w);
|
|
1012
1064
|
}
|
|
1013
1065
|
return n(), () => {
|
|
1014
1066
|
var h;
|
|
1015
1067
|
u.forEach((v) => {
|
|
1016
|
-
i && v.removeEventListener("scroll", n),
|
|
1068
|
+
i && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
|
|
1017
1069
|
}), d == null || d(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(m);
|
|
1018
1070
|
};
|
|
1019
1071
|
}
|
|
1020
|
-
const
|
|
1072
|
+
const Ie = Te, je = ye, ze = Ae, Ue = xe, sn = be, Ye = we, qe = (t, e, n) => {
|
|
1021
1073
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1022
|
-
platform:
|
|
1074
|
+
platform: We,
|
|
1023
1075
|
...n
|
|
1024
|
-
},
|
|
1076
|
+
}, s = {
|
|
1025
1077
|
...i.platform,
|
|
1026
1078
|
_c: o
|
|
1027
1079
|
};
|
|
1028
|
-
return
|
|
1080
|
+
return he(t, e, {
|
|
1029
1081
|
...i,
|
|
1030
|
-
platform:
|
|
1082
|
+
platform: s
|
|
1031
1083
|
});
|
|
1032
1084
|
};
|
|
1033
|
-
function
|
|
1085
|
+
function Ge(t) {
|
|
1034
1086
|
return t != null && typeof t == "object" && "$el" in t;
|
|
1035
1087
|
}
|
|
1036
|
-
function
|
|
1037
|
-
if (
|
|
1088
|
+
function ht(t) {
|
|
1089
|
+
if (Ge(t)) {
|
|
1038
1090
|
const e = t.$el;
|
|
1039
|
-
return
|
|
1091
|
+
return yt(e) && X(e) === "#comment" ? null : e;
|
|
1040
1092
|
}
|
|
1041
1093
|
return t;
|
|
1042
1094
|
}
|
|
1043
|
-
function
|
|
1095
|
+
function Xe(t) {
|
|
1044
1096
|
return {
|
|
1045
1097
|
name: "arrow",
|
|
1046
1098
|
options: t,
|
|
1047
1099
|
fn(e) {
|
|
1048
|
-
const n =
|
|
1049
|
-
return n == null ? {} :
|
|
1100
|
+
const n = ht(M(t.element));
|
|
1101
|
+
return n == null ? {} : Ye({
|
|
1050
1102
|
element: n,
|
|
1051
1103
|
padding: t.padding
|
|
1052
1104
|
}).fn(e);
|
|
1053
1105
|
}
|
|
1054
1106
|
};
|
|
1055
1107
|
}
|
|
1056
|
-
function
|
|
1108
|
+
function qt(t) {
|
|
1057
1109
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1058
1110
|
}
|
|
1059
|
-
function
|
|
1060
|
-
const n =
|
|
1111
|
+
function Bt(t, e) {
|
|
1112
|
+
const n = qt(t);
|
|
1061
1113
|
return Math.round(e * n) / n;
|
|
1062
1114
|
}
|
|
1063
|
-
function
|
|
1115
|
+
function Ke(t, e, n) {
|
|
1064
1116
|
n === void 0 && (n = {});
|
|
1065
1117
|
const o = n.whileElementsMounted, i = R(() => {
|
|
1066
1118
|
var x;
|
|
1067
|
-
return (x =
|
|
1068
|
-
}),
|
|
1119
|
+
return (x = M(n.open)) != null ? x : !0;
|
|
1120
|
+
}), s = R(() => M(n.middleware)), r = R(() => {
|
|
1069
1121
|
var x;
|
|
1070
|
-
return (x =
|
|
1071
|
-
}),
|
|
1122
|
+
return (x = M(n.placement)) != null ? x : "bottom";
|
|
1123
|
+
}), l = R(() => {
|
|
1072
1124
|
var x;
|
|
1073
|
-
return (x =
|
|
1125
|
+
return (x = M(n.strategy)) != null ? x : "absolute";
|
|
1074
1126
|
}), a = R(() => {
|
|
1075
1127
|
var x;
|
|
1076
|
-
return (x =
|
|
1077
|
-
}), c = R(() =>
|
|
1128
|
+
return (x = M(n.transform)) != null ? x : !0;
|
|
1129
|
+
}), c = R(() => ht(t.value)), u = R(() => ht(e.value)), d = j(0), p = j(0), f = j(l.value), m = j(r.value), g = Qt({}), w = j(!1), h = R(() => {
|
|
1078
1130
|
const x = {
|
|
1079
1131
|
position: f.value,
|
|
1080
1132
|
left: "0",
|
|
@@ -1082,25 +1134,25 @@ function Xe(t, e, n) {
|
|
|
1082
1134
|
};
|
|
1083
1135
|
if (!u.value)
|
|
1084
1136
|
return x;
|
|
1085
|
-
const
|
|
1137
|
+
const L = Bt(u.value, d.value), P = Bt(u.value, p.value);
|
|
1086
1138
|
return a.value ? {
|
|
1087
1139
|
...x,
|
|
1088
|
-
transform: "translate(" +
|
|
1089
|
-
...
|
|
1140
|
+
transform: "translate(" + L + "px, " + P + "px)",
|
|
1141
|
+
...qt(u.value) >= 1.5 && {
|
|
1090
1142
|
willChange: "transform"
|
|
1091
1143
|
}
|
|
1092
1144
|
} : {
|
|
1093
1145
|
position: f.value,
|
|
1094
|
-
left:
|
|
1146
|
+
left: L + "px",
|
|
1095
1147
|
top: P + "px"
|
|
1096
1148
|
};
|
|
1097
1149
|
});
|
|
1098
1150
|
let v;
|
|
1099
1151
|
function y() {
|
|
1100
|
-
c.value == null || u.value == null ||
|
|
1101
|
-
middleware:
|
|
1152
|
+
c.value == null || u.value == null || qe(c.value, u.value, {
|
|
1153
|
+
middleware: s.value,
|
|
1102
1154
|
placement: r.value,
|
|
1103
|
-
strategy:
|
|
1155
|
+
strategy: l.value
|
|
1104
1156
|
}).then((x) => {
|
|
1105
1157
|
d.value = x.x, p.value = x.y, f.value = x.strategy, m.value = x.placement, g.value = x.middlewareData, w.value = !0;
|
|
1106
1158
|
});
|
|
@@ -1118,37 +1170,37 @@ function Xe(t, e, n) {
|
|
|
1118
1170
|
return;
|
|
1119
1171
|
}
|
|
1120
1172
|
}
|
|
1121
|
-
function
|
|
1173
|
+
function T() {
|
|
1122
1174
|
i.value || (w.value = !1);
|
|
1123
1175
|
}
|
|
1124
|
-
return
|
|
1176
|
+
return tt([s, r, l], y, {
|
|
1125
1177
|
flush: "sync"
|
|
1126
|
-
}),
|
|
1178
|
+
}), tt([c, u], O, {
|
|
1127
1179
|
flush: "sync"
|
|
1128
|
-
}),
|
|
1180
|
+
}), tt(i, T, {
|
|
1129
1181
|
flush: "sync"
|
|
1130
|
-
}),
|
|
1131
|
-
x:
|
|
1132
|
-
y:
|
|
1133
|
-
strategy:
|
|
1134
|
-
placement:
|
|
1135
|
-
middlewareData:
|
|
1136
|
-
isPositioned:
|
|
1182
|
+
}), Zt() && te(b), {
|
|
1183
|
+
x: K(d),
|
|
1184
|
+
y: K(p),
|
|
1185
|
+
strategy: K(f),
|
|
1186
|
+
placement: K(m),
|
|
1187
|
+
middlewareData: K(g),
|
|
1188
|
+
isPositioned: K(w),
|
|
1137
1189
|
floatingStyles: h,
|
|
1138
1190
|
update: y
|
|
1139
1191
|
};
|
|
1140
1192
|
}
|
|
1141
|
-
var
|
|
1142
|
-
const
|
|
1193
|
+
var Gt = /* @__PURE__ */ ((t) => (t.TOP = "top", t.RIGHT = "right", t.BOTTOM = "bottom", t.LEFT = "left", t))(Gt || {}), Xt = /* @__PURE__ */ ((t) => (t.AUTO = "auto", t.AUTO_START = "auto-start", t.AUTO_END = "auto-end", t.TOP_START = "top-start", t.TOP_END = "top-end", t.RIGHT_START = "right-start", t.RIGHT_END = "right-end", t.BOTTOM_START = "bottom-start", t.BOTTOM_END = "bottom-end", t.LEFT_START = "left-start", t.LEFT_END = "left-end", t))(Xt || {}), Kt = /* @__PURE__ */ ((t) => (t.TOOLTIP = "tooltip", t.POPOVER = "dialog", t))(Kt || {});
|
|
1194
|
+
const Mt = { ...Gt, ...Xt }, Je = (t, e) => t ? e[1] + 7 : e[1], Qe = (t) => {
|
|
1143
1195
|
let e = Array.isArray(t) ? t : [t];
|
|
1144
1196
|
return e = e.filter((n) => n !== "auto" && n !== "auto-start" && n !== "auto-end").map((n) => n), {
|
|
1145
1197
|
fallbackPlacements: e
|
|
1146
1198
|
};
|
|
1147
|
-
},
|
|
1199
|
+
}, Ze = {
|
|
1148
1200
|
name: "sameWidth",
|
|
1149
1201
|
fn: ({ elements: t }) => (t.floating.style.width = `${t.reference.offsetWidth}px`, {})
|
|
1150
|
-
},
|
|
1151
|
-
...
|
|
1202
|
+
}, tn = {}, en = /* @__PURE__ */ ee({
|
|
1203
|
+
...tn,
|
|
1152
1204
|
__name: "popper-container",
|
|
1153
1205
|
props: {
|
|
1154
1206
|
/**
|
|
@@ -1157,7 +1209,7 @@ const Pt = { ...zt, ...Ut }, Ye = (t, e) => t ? e[1] + 7 : e[1], qe = (t) => {
|
|
|
1157
1209
|
ariaRole: {
|
|
1158
1210
|
type: String,
|
|
1159
1211
|
default: null,
|
|
1160
|
-
validator: (t) => Object.values(
|
|
1212
|
+
validator: (t) => Object.values(Kt).includes(t)
|
|
1161
1213
|
},
|
|
1162
1214
|
/**
|
|
1163
1215
|
* Indicates if container should have additional arrow, pointing at target element
|
|
@@ -1219,8 +1271,8 @@ const Pt = { ...zt, ...Ut }, Ye = (t, e) => t ? e[1] + 7 : e[1], qe = (t) => {
|
|
|
1219
1271
|
*/
|
|
1220
1272
|
position: {
|
|
1221
1273
|
type: String,
|
|
1222
|
-
default:
|
|
1223
|
-
validator: (t) => Object.values(
|
|
1274
|
+
default: Mt.AUTO,
|
|
1275
|
+
validator: (t) => Object.values(Mt).includes(t)
|
|
1224
1276
|
},
|
|
1225
1277
|
/**
|
|
1226
1278
|
* Reference to the DOM element or Vue component for positioning
|
|
@@ -1230,7 +1282,7 @@ const Pt = { ...zt, ...Ut }, Ye = (t, e) => t ? e[1] + 7 : e[1], qe = (t) => {
|
|
|
1230
1282
|
emits: ["placement"],
|
|
1231
1283
|
setup(t, { emit: e }) {
|
|
1232
1284
|
var y;
|
|
1233
|
-
const n = t, { position: o } =
|
|
1285
|
+
const n = t, { position: o } = ne(n), i = j(), s = j(null), r = j(n.position), l = R(
|
|
1234
1286
|
() => n.targetElement.$el ? n.targetElement.$el : n.targetElement
|
|
1235
1287
|
), a = R(
|
|
1236
1288
|
() => i.value.$el ? i.value.$el : i.value
|
|
@@ -1243,39 +1295,39 @@ const Pt = { ...zt, ...Ut }, Ye = (t, e) => t ? e[1] + 7 : e[1], qe = (t) => {
|
|
|
1243
1295
|
default:
|
|
1244
1296
|
return;
|
|
1245
1297
|
}
|
|
1246
|
-
}), d = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: p, middlewareData: f, placement: m, update: g } =
|
|
1298
|
+
}), d = R(() => n.fixedPositioning ? "fixed" : "absolute"), { floatingStyles: p, middlewareData: f, placement: m, update: g } = Ke(l, i, {
|
|
1247
1299
|
placement: o,
|
|
1248
1300
|
middleware: [
|
|
1249
1301
|
// Adds flip modifier if fallbackPosition is not set to auto
|
|
1250
1302
|
...c.value ? [
|
|
1251
|
-
|
|
1252
|
-
fallbackPlacements:
|
|
1303
|
+
Ue({
|
|
1304
|
+
fallbackPlacements: Qe(n.fallbackPosition).fallbackPlacements
|
|
1253
1305
|
})
|
|
1254
1306
|
] : [],
|
|
1255
1307
|
// Adds autoposition middlelare if position is set to any auto variants
|
|
1256
|
-
...c.value ? [] : [
|
|
1308
|
+
...c.value ? [] : [je(u.value)],
|
|
1257
1309
|
// Add shifting middle in case popper is still not fully visible in view port
|
|
1258
|
-
|
|
1310
|
+
ze(),
|
|
1259
1311
|
// Adds offset middlelare if offset property is set
|
|
1260
|
-
...n.offset ? [
|
|
1312
|
+
...n.offset ? [Ie(Je(n.arrow, n.offset))] : [],
|
|
1261
1313
|
// Adds arrow middlelare if arrow property is set, can set additional padding property
|
|
1262
|
-
...n.arrow ? [
|
|
1314
|
+
...n.arrow ? [Xe({ element: s, padding: n.arrow.padding || 0 })] : [],
|
|
1263
1315
|
// Adds same width middleware to keep popper width same as referenced element's width
|
|
1264
|
-
...n.matchWidth ? [
|
|
1316
|
+
...n.matchWidth ? [Ze] : [],
|
|
1265
1317
|
// If there is additional custom middleware to add via the property then add it
|
|
1266
1318
|
...((y = n.middleware) == null ? void 0 : y.length) > 0 ? n.middleware : []
|
|
1267
1319
|
],
|
|
1268
1320
|
strategy: d,
|
|
1269
1321
|
// If we're mounting the element with a `v-if` then we need to auto update it while it's mounted
|
|
1270
|
-
...n.isHidden === null ? { whileElementsMounted:
|
|
1322
|
+
...n.isHidden === null ? { whileElementsMounted: kt } : []
|
|
1271
1323
|
});
|
|
1272
1324
|
let w;
|
|
1273
|
-
|
|
1325
|
+
tt(
|
|
1274
1326
|
() => n.isHidden,
|
|
1275
1327
|
() => {
|
|
1276
|
-
n.isHidden !== null && !n.isHidden ? w =
|
|
1328
|
+
n.isHidden !== null && !n.isHidden ? w = kt(l == null ? void 0 : l.value, a == null ? void 0 : a.value, g) : n.isHidden !== null && n.isHidden && typeof w == "function" && w();
|
|
1277
1329
|
}
|
|
1278
|
-
),
|
|
1330
|
+
), tt(
|
|
1279
1331
|
() => m.value,
|
|
1280
1332
|
() => {
|
|
1281
1333
|
r.value !== m.value && (r.value = m.value, e("placement", r.value));
|
|
@@ -1297,36 +1349,36 @@ const Pt = { ...zt, ...Ut }, Ye = (t, e) => t ? e[1] + 7 : e[1], qe = (t) => {
|
|
|
1297
1349
|
...((b = f.value.arrow) == null ? void 0 : b.centerOffset) !== 0 ? { "data-hide": "" } : {}
|
|
1298
1350
|
};
|
|
1299
1351
|
});
|
|
1300
|
-
return (b, O) => (
|
|
1352
|
+
return (b, O) => (At(), oe(M(ce), Rt(b.$attrs, {
|
|
1301
1353
|
id: t.id,
|
|
1302
1354
|
ref_key: "popperContainerRef",
|
|
1303
1355
|
ref: i,
|
|
1304
1356
|
class: "b-popper-container",
|
|
1305
|
-
"data-popper-placement":
|
|
1357
|
+
"data-popper-placement": M(m),
|
|
1306
1358
|
disabled: t.disabledFocusTrap,
|
|
1307
|
-
style:
|
|
1359
|
+
style: M(p),
|
|
1308
1360
|
role: t.ariaRole
|
|
1309
1361
|
}), {
|
|
1310
|
-
default:
|
|
1311
|
-
|
|
1312
|
-
n.arrow ? (
|
|
1362
|
+
default: ie(() => [
|
|
1363
|
+
re(b.$slots, "default", {}, void 0, !0),
|
|
1364
|
+
n.arrow ? (At(), se("span", Rt({ key: 0 }, M(v), {
|
|
1313
1365
|
ref_key: "floatingArrow",
|
|
1314
|
-
ref:
|
|
1366
|
+
ref: s,
|
|
1315
1367
|
class: "b-popper-container__arrow",
|
|
1316
1368
|
"data-testid": "arrow"
|
|
1317
|
-
}), null, 16)) :
|
|
1369
|
+
}), null, 16)) : le("", !0)
|
|
1318
1370
|
]),
|
|
1319
1371
|
_: 3
|
|
1320
1372
|
}, 16, ["id", "data-popper-placement", "disabled", "style", "role"]));
|
|
1321
1373
|
}
|
|
1322
|
-
}),
|
|
1374
|
+
}), ln = /* @__PURE__ */ ae(en, [["__scopeId", "data-v-339046b9"]]);
|
|
1323
1375
|
export {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1376
|
+
ln as P,
|
|
1377
|
+
Gt as a,
|
|
1378
|
+
Xt as b,
|
|
1379
|
+
Kt as c,
|
|
1380
|
+
Mt as d,
|
|
1381
|
+
sn as h,
|
|
1382
|
+
Ie as o
|
|
1331
1383
|
};
|
|
1332
|
-
//# sourceMappingURL=popper-container.
|
|
1384
|
+
//# sourceMappingURL=popper-container.50jF-_VU.js.map
|