@vc-shell/framework 1.1.80 → 1.1.82
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/CHANGELOG.md +8 -0
- package/core/plugins/signalR/index.ts +1 -1
- package/dist/assets/{b291dc35a17511f7.woff → 105efd028edc1dfe.woff} +0 -0
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/{327511cd4a7ba7f9.woff → 489710fb710e73f0.woff} +0 -0
- package/dist/assets/{a617e11804bbacb7.woff → 54cda5482c6c9218.woff} +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/{91eee1aa81f72683.woff → 91fe94e424323d61.woff} +0 -0
- package/dist/assets/{f276d55184e05a07.woff → a03cdcd8da5bb987.woff} +0 -0
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/{fcb1c1ffb5640194.woff → dceaf3b39091e6a4.woff} +0 -0
- package/dist/assets/{a47034e65dbcc3d7.woff → e2ad5b3428289141.woff} +0 -0
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/framework.js +2138 -2121
- package/dist/index.css +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{vendor-core-js-DFA7rceR.js → vendor-core-js-azBmvlGv.js} +10 -10
- package/dist/{vendor-cypress-signalr-mock-CdKwIhWw.js → vendor-cypress-signalr-mock-DjBxJHA6.js} +15 -15
- package/dist/vendor-dompurify-C-JbJ3KX.js +536 -0
- package/dist/vendor-floating-ui-core-Cl9nBI4j.js +349 -0
- package/dist/vendor-floating-ui-dom-3z44E4mf.js +395 -0
- package/dist/vendor-floating-ui-vue-ClrgkeO5.js +107 -0
- package/dist/{vendor-headlessui-vue-Dg0Llidi.js → vendor-headlessui-vue-D7tzx4PC.js} +2 -2
- package/dist/{vendor-intlify-core-base-txnziOTW.js → vendor-intlify-core-base-Da62SG4M.js} +6 -6
- package/dist/{vendor-intlify-message-compiler-XquMv3aB.js → vendor-intlify-message-compiler-CHvGSH2u.js} +236 -231
- package/dist/{vendor-intlify-shared-CE1Dfvjf.js → vendor-intlify-shared-jWBPd9WB.js} +1 -1
- package/dist/{vendor-lodash-es-CrYlgAi8.js → vendor-lodash-es-BqkGj3Jl.js} +14 -14
- package/dist/{vendor-markdown-it-RJo-N9ov.js → vendor-markdown-it-Czg9qJTh.js} +1 -1
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-CauId95v.js → vendor-microsoft-applicationinsights-analytics-js-BNSkz9ia.js} +20 -20
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js → vendor-microsoft-applicationinsights-cfgsync-js-Dp8OU6ZE.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js → vendor-microsoft-applicationinsights-channel-js-Bc73N-5y.js} +18 -18
- package/dist/{vendor-microsoft-applicationinsights-common-Bj6sQeoz.js → vendor-microsoft-applicationinsights-common-DcnOqpgL.js} +25 -25
- package/dist/{vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js → vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js} +21 -21
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js → vendor-microsoft-applicationinsights-dependencies-js-C_DhEOae.js} +10 -10
- package/dist/{vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js → vendor-microsoft-applicationinsights-properties-js-COczDd7b.js} +24 -24
- package/dist/{vendor-microsoft-applicationinsights-web-8IaeIl22.js → vendor-microsoft-applicationinsights-web-DtOQojwf.js} +10 -10
- package/dist/{vendor-microsoft-signalr-qIrag5xx.js → vendor-microsoft-signalr-Bgpbb4fW.js} +1 -1
- package/dist/{vendor-moment-CwOqp704.js → vendor-moment-DMLRxgRE.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-DadHEt7N.js → vendor-nevware21-ts-async-DFUnZ_sN.js} +2 -2
- package/dist/{vendor-prettier-DaiSFsWE.js → vendor-prettier-cZc5sCiS.js} +2 -2
- package/dist/{vendor-prosemirror-commands-DKHyfRYE.js → vendor-prosemirror-commands-DlSOsoOz.js} +3 -3
- package/dist/{vendor-prosemirror-dropcursor-Dro-INCI.js → vendor-prosemirror-dropcursor-CqLA3EZY.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-BgyglWtH.js → vendor-prosemirror-gapcursor-3PaVPyUV.js} +4 -4
- package/dist/{vendor-prosemirror-history-B4ei16kP.js → vendor-prosemirror-history-DzP74u0n.js} +3 -3
- package/dist/{vendor-prosemirror-keymap-21y6bXc_.js → vendor-prosemirror-keymap-CN6Hkrq2.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-CuzWQ2N6.js → vendor-prosemirror-markdown-BBPyARPh.js} +2 -2
- package/dist/{vendor-prosemirror-model-CVTn1Stc.js → vendor-prosemirror-model-CiCy9gkA.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-Dmi4oPas.js → vendor-prosemirror-schema-list-asS28-n3.js} +2 -2
- package/dist/{vendor-prosemirror-state-6jGEPgrP.js → vendor-prosemirror-state-DUZYoLys.js} +2 -2
- package/dist/{vendor-prosemirror-tables-U7ypaxJu.js → vendor-prosemirror-tables-CezTPhzU.js} +5 -5
- package/dist/{vendor-prosemirror-transform-Dk6c_eg4.js → vendor-prosemirror-transform-BOkRqJ32.js} +1 -1
- package/dist/vendor-prosemirror-view-CzsD5m3e.js +3750 -0
- package/dist/vendor-punycode-js-CgGegfA_.js +133 -0
- package/dist/{vendor-rope-sequence-sEGCUMi8.js → vendor-rope-sequence-BWC2FSrq.js} +4 -4
- package/dist/{vendor-semver-FuwqpOls.js → vendor-semver-B87_S22g.js} +2 -2
- package/dist/{vendor-tiptap-core-CtNT-ozM.js → vendor-tiptap-core-rgc3Sj5Y.js} +258 -250
- package/dist/{vendor-tiptap-extension-blockquote-25QerT8O.js → vendor-tiptap-extension-blockquote-DgzMeNpc.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-B-B75KIy.js → vendor-tiptap-extension-bold-DZbX5Qiw.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-CEZA5x7I.js → vendor-tiptap-extension-code-BcakHaXe.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-BFDiCj59.js → vendor-tiptap-extension-code-block-B0U7g1XA.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-C8JdW_kC.js → vendor-tiptap-extension-document-BBhadLNS.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-D9Nzegu6.js → vendor-tiptap-extension-hard-break-eyl10A9U.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-TmkrHpE2.js → vendor-tiptap-extension-heading-BmX_Abvh.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-BC1YMUau.js → vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BQnBpg7z.js → vendor-tiptap-extension-image-C06iDyEi.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-mSCwLnXY.js → vendor-tiptap-extension-italic-B2YDHBEe.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-CQ0Mw6gd.js → vendor-tiptap-extension-link-Bw8_3Rr4.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-BwidYizT.js → vendor-tiptap-extension-list-qHzpj6eq.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-C_OQHUNe.js → vendor-tiptap-extension-paragraph-BnCRfXCL.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-BVZ1jBA2.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-Bfc-eud8.js → vendor-tiptap-extension-strike-Naksm43m.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-D26aUVrb.js → vendor-tiptap-extension-table-Cguez3tu.js} +3 -3
- package/dist/vendor-tiptap-extension-table-cell-lniviH1T.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-lniviH1T.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-lniviH1T.js +1 -0
- package/dist/{vendor-tiptap-extension-text-DrXC1h34.js → vendor-tiptap-extension-text-CixjyWfN.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-vv6u__7g.js → vendor-tiptap-extension-text-style-CVsjuWJ4.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-BfygI164.js → vendor-tiptap-extension-underline-Rwkvga0F.js} +1 -1
- package/dist/{vendor-tiptap-extensions-_4zopegS.js → vendor-tiptap-extensions-F9A02hii.js} +6 -6
- package/dist/{vendor-tiptap-markdown-pGf8MOss.js → vendor-tiptap-markdown-BSUpswXr.js} +5 -5
- package/dist/vendor-tiptap-pm-BUxx7nt1.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-DPG4_B0q.js → vendor-tiptap-starter-kit-BUgq7S1_.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-Ctgrxv1U.js → vendor-tiptap-vue-3-UHrHfZLG.js} +1 -1
- package/dist/{vendor-vue-i18n-BeXi5L3e.js → vendor-vue-i18n-CO5LWKE0.js} +6 -6
- package/dist/{vendor-vue3-application-insights-C8xbxXXX.js → vendor-vue3-application-insights-CE6eo4vj.js} +2 -2
- package/dist/{vendor-vue3-touch-events-8Pa3HHlV.js → vendor-vue3-touch-events-DqysuuWh.js} +2 -2
- package/package.json +4 -4
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +24 -4
- package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
- package/dist/assets/52610491f372cb0c.woff2 +0 -0
- package/dist/assets/5b3661be8be679d0.woff2 +0 -0
- package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
- package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
- package/dist/assets/bfbe205759295eca.woff2 +0 -0
- package/dist/assets/d80b05788e407de7.woff2 +0 -0
- package/dist/vendor-dompurify-eYFoHPwR.js +0 -528
- package/dist/vendor-floating-ui-vue-C1Zscv9o.js +0 -836
- package/dist/vendor-prosemirror-view-Bfe9EVLy.js +0 -1489
- package/dist/vendor-punycode-js-CNI-zL6U.js +0 -133
- package/dist/vendor-tiptap-extension-placeholder-BIojfRhh.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-DuWy52BP.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-DuWy52BP.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-DuWy52BP.js +0 -1
- package/dist/vendor-tiptap-pm-B2DY8bDS.js +0 -7681
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { e as D, g as C, a as E, c as $, b as G, d as H, f as J, h as K, i as N, r as X, j as Q, k as _, l as U, m as W } from "./vendor-floating-ui-utils-D2sT7feD.js";
|
|
2
|
+
function Y(o, s, f) {
|
|
3
|
+
let {
|
|
4
|
+
reference: e,
|
|
5
|
+
floating: l
|
|
6
|
+
} = o;
|
|
7
|
+
const t = C(s), c = U(s), a = W(c), x = E(s), u = t === "y", m = e.x + e.width / 2 - l.width / 2, n = e.y + e.height / 2 - l.height / 2, r = e[a] / 2 - l[a] / 2;
|
|
8
|
+
let i;
|
|
9
|
+
switch (x) {
|
|
10
|
+
case "top":
|
|
11
|
+
i = {
|
|
12
|
+
x: m,
|
|
13
|
+
y: e.y - l.height
|
|
14
|
+
};
|
|
15
|
+
break;
|
|
16
|
+
case "bottom":
|
|
17
|
+
i = {
|
|
18
|
+
x: m,
|
|
19
|
+
y: e.y + e.height
|
|
20
|
+
};
|
|
21
|
+
break;
|
|
22
|
+
case "right":
|
|
23
|
+
i = {
|
|
24
|
+
x: e.x + e.width,
|
|
25
|
+
y: n
|
|
26
|
+
};
|
|
27
|
+
break;
|
|
28
|
+
case "left":
|
|
29
|
+
i = {
|
|
30
|
+
x: e.x - l.width,
|
|
31
|
+
y: n
|
|
32
|
+
};
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
i = {
|
|
36
|
+
x: e.x,
|
|
37
|
+
y: e.y
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
switch (_(s)) {
|
|
41
|
+
case "start":
|
|
42
|
+
i[c] -= r * (f && u ? -1 : 1);
|
|
43
|
+
break;
|
|
44
|
+
case "end":
|
|
45
|
+
i[c] += r * (f && u ? -1 : 1);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
return i;
|
|
49
|
+
}
|
|
50
|
+
const ne = async (o, s, f) => {
|
|
51
|
+
const {
|
|
52
|
+
placement: e = "bottom",
|
|
53
|
+
strategy: l = "absolute",
|
|
54
|
+
middleware: t = [],
|
|
55
|
+
platform: c
|
|
56
|
+
} = f, a = t.filter(Boolean), x = await (c.isRTL == null ? void 0 : c.isRTL(s));
|
|
57
|
+
let u = await c.getElementRects({
|
|
58
|
+
reference: o,
|
|
59
|
+
floating: s,
|
|
60
|
+
strategy: l
|
|
61
|
+
}), {
|
|
62
|
+
x: m,
|
|
63
|
+
y: n
|
|
64
|
+
} = Y(u, e, x), r = e, i = {}, d = 0;
|
|
65
|
+
for (let v = 0; v < a.length; v++) {
|
|
66
|
+
const {
|
|
67
|
+
name: p,
|
|
68
|
+
fn: y
|
|
69
|
+
} = a[v], {
|
|
70
|
+
x: g,
|
|
71
|
+
y: A,
|
|
72
|
+
data: b,
|
|
73
|
+
reset: w
|
|
74
|
+
} = await y({
|
|
75
|
+
x: m,
|
|
76
|
+
y: n,
|
|
77
|
+
initialPlacement: e,
|
|
78
|
+
placement: r,
|
|
79
|
+
strategy: l,
|
|
80
|
+
middlewareData: i,
|
|
81
|
+
rects: u,
|
|
82
|
+
platform: c,
|
|
83
|
+
elements: {
|
|
84
|
+
reference: o,
|
|
85
|
+
floating: s
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
m = g ?? m, n = A ?? n, i = {
|
|
89
|
+
...i,
|
|
90
|
+
[p]: {
|
|
91
|
+
...i[p],
|
|
92
|
+
...b
|
|
93
|
+
}
|
|
94
|
+
}, w && d <= 50 && (d++, typeof w == "object" && (w.placement && (r = w.placement), w.rects && (u = w.rects === !0 ? await c.getElementRects({
|
|
95
|
+
reference: o,
|
|
96
|
+
floating: s,
|
|
97
|
+
strategy: l
|
|
98
|
+
}) : w.rects), {
|
|
99
|
+
x: m,
|
|
100
|
+
y: n
|
|
101
|
+
} = Y(u, r, x)), v = -1);
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
x: m,
|
|
105
|
+
y: n,
|
|
106
|
+
placement: r,
|
|
107
|
+
strategy: l,
|
|
108
|
+
middlewareData: i
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
async function I(o, s) {
|
|
112
|
+
var f;
|
|
113
|
+
s === void 0 && (s = {});
|
|
114
|
+
const {
|
|
115
|
+
x: e,
|
|
116
|
+
y: l,
|
|
117
|
+
platform: t,
|
|
118
|
+
rects: c,
|
|
119
|
+
elements: a,
|
|
120
|
+
strategy: x
|
|
121
|
+
} = o, {
|
|
122
|
+
boundary: u = "clippingAncestors",
|
|
123
|
+
rootBoundary: m = "viewport",
|
|
124
|
+
elementContext: n = "floating",
|
|
125
|
+
altBoundary: r = !1,
|
|
126
|
+
padding: i = 0
|
|
127
|
+
} = D(s, o), d = N(i), p = a[r ? n === "floating" ? "reference" : "floating" : n], y = X(await t.getClippingRect({
|
|
128
|
+
element: (f = await (t.isElement == null ? void 0 : t.isElement(p))) == null || f ? p : p.contextElement || await (t.getDocumentElement == null ? void 0 : t.getDocumentElement(a.floating)),
|
|
129
|
+
boundary: u,
|
|
130
|
+
rootBoundary: m,
|
|
131
|
+
strategy: x
|
|
132
|
+
})), g = n === "floating" ? {
|
|
133
|
+
x: e,
|
|
134
|
+
y: l,
|
|
135
|
+
width: c.floating.width,
|
|
136
|
+
height: c.floating.height
|
|
137
|
+
} : c.reference, A = await (t.getOffsetParent == null ? void 0 : t.getOffsetParent(a.floating)), b = await (t.isElement == null ? void 0 : t.isElement(A)) ? await (t.getScale == null ? void 0 : t.getScale(A)) || {
|
|
138
|
+
x: 1,
|
|
139
|
+
y: 1
|
|
140
|
+
} : {
|
|
141
|
+
x: 1,
|
|
142
|
+
y: 1
|
|
143
|
+
}, w = X(t.convertOffsetParentRelativeRectToViewportRelativeRect ? await t.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
144
|
+
elements: a,
|
|
145
|
+
rect: g,
|
|
146
|
+
offsetParent: A,
|
|
147
|
+
strategy: x
|
|
148
|
+
}) : g);
|
|
149
|
+
return {
|
|
150
|
+
top: (y.top - w.top + d.top) / b.y,
|
|
151
|
+
bottom: (w.bottom - y.bottom + d.bottom) / b.y,
|
|
152
|
+
left: (y.left - w.left + d.left) / b.x,
|
|
153
|
+
right: (w.right - y.right + d.right) / b.x
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const ie = function(o) {
|
|
157
|
+
return o === void 0 && (o = {}), {
|
|
158
|
+
name: "flip",
|
|
159
|
+
options: o,
|
|
160
|
+
async fn(s) {
|
|
161
|
+
var f, e;
|
|
162
|
+
const {
|
|
163
|
+
placement: l,
|
|
164
|
+
middlewareData: t,
|
|
165
|
+
rects: c,
|
|
166
|
+
initialPlacement: a,
|
|
167
|
+
platform: x,
|
|
168
|
+
elements: u
|
|
169
|
+
} = s, {
|
|
170
|
+
mainAxis: m = !0,
|
|
171
|
+
crossAxis: n = !0,
|
|
172
|
+
fallbackPlacements: r,
|
|
173
|
+
fallbackStrategy: i = "bestFit",
|
|
174
|
+
fallbackAxisSideDirection: d = "none",
|
|
175
|
+
flipAlignment: v = !0,
|
|
176
|
+
...p
|
|
177
|
+
} = D(o, s);
|
|
178
|
+
if ((f = t.arrow) != null && f.alignmentOffset)
|
|
179
|
+
return {};
|
|
180
|
+
const y = E(l), g = C(a), A = E(a) === a, b = await (x.isRTL == null ? void 0 : x.isRTL(u.floating)), w = r || (A || !v ? [G(a)] : H(a)), F = d !== "none";
|
|
181
|
+
!r && F && w.push(...J(a, v, d, b));
|
|
182
|
+
const q = [a, ...w], L = await I(s, p), T = [];
|
|
183
|
+
let O = ((e = t.flip) == null ? void 0 : e.overflows) || [];
|
|
184
|
+
if (m && T.push(L[y]), n) {
|
|
185
|
+
const R = K(l, c, b);
|
|
186
|
+
T.push(L[R[0]], L[R[1]]);
|
|
187
|
+
}
|
|
188
|
+
if (O = [...O, {
|
|
189
|
+
placement: l,
|
|
190
|
+
overflows: T
|
|
191
|
+
}], !T.every((R) => R <= 0)) {
|
|
192
|
+
var M, j;
|
|
193
|
+
const R = (((M = t.flip) == null ? void 0 : M.index) || 0) + 1, V = q[R];
|
|
194
|
+
if (V && (!(n === "alignment" ? g !== C(V) : !1) || // We leave the current main axis only if every placement on that axis
|
|
195
|
+
// overflows the main axis.
|
|
196
|
+
O.every((h) => C(h.placement) === g ? h.overflows[0] > 0 : !0)))
|
|
197
|
+
return {
|
|
198
|
+
data: {
|
|
199
|
+
index: R,
|
|
200
|
+
overflows: O
|
|
201
|
+
},
|
|
202
|
+
reset: {
|
|
203
|
+
placement: V
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
let S = (j = O.filter((k) => k.overflows[0] <= 0).sort((k, h) => k.overflows[1] - h.overflows[1])[0]) == null ? void 0 : j.placement;
|
|
207
|
+
if (!S)
|
|
208
|
+
switch (i) {
|
|
209
|
+
case "bestFit": {
|
|
210
|
+
var B;
|
|
211
|
+
const k = (B = O.filter((h) => {
|
|
212
|
+
if (F) {
|
|
213
|
+
const P = C(h.placement);
|
|
214
|
+
return P === g || // Create a bias to the `y` side axis due to horizontal
|
|
215
|
+
// reading directions favoring greater width.
|
|
216
|
+
P === "y";
|
|
217
|
+
}
|
|
218
|
+
return !0;
|
|
219
|
+
}).map((h) => [h.placement, h.overflows.filter((P) => P > 0).reduce((P, z) => P + z, 0)]).sort((h, P) => h[1] - P[1])[0]) == null ? void 0 : B[0];
|
|
220
|
+
k && (S = k);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
case "initialPlacement":
|
|
224
|
+
S = a;
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
if (l !== S)
|
|
228
|
+
return {
|
|
229
|
+
reset: {
|
|
230
|
+
placement: S
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
return {};
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
}, Z = /* @__PURE__ */ new Set(["left", "top"]);
|
|
238
|
+
async function ee(o, s) {
|
|
239
|
+
const {
|
|
240
|
+
placement: f,
|
|
241
|
+
platform: e,
|
|
242
|
+
elements: l
|
|
243
|
+
} = o, t = await (e.isRTL == null ? void 0 : e.isRTL(l.floating)), c = E(f), a = _(f), x = C(f) === "y", u = Z.has(c) ? -1 : 1, m = t && x ? -1 : 1, n = D(s, o);
|
|
244
|
+
let {
|
|
245
|
+
mainAxis: r,
|
|
246
|
+
crossAxis: i,
|
|
247
|
+
alignmentAxis: d
|
|
248
|
+
} = typeof n == "number" ? {
|
|
249
|
+
mainAxis: n,
|
|
250
|
+
crossAxis: 0,
|
|
251
|
+
alignmentAxis: null
|
|
252
|
+
} : {
|
|
253
|
+
mainAxis: n.mainAxis || 0,
|
|
254
|
+
crossAxis: n.crossAxis || 0,
|
|
255
|
+
alignmentAxis: n.alignmentAxis
|
|
256
|
+
};
|
|
257
|
+
return a && typeof d == "number" && (i = a === "end" ? d * -1 : d), x ? {
|
|
258
|
+
x: i * m,
|
|
259
|
+
y: r * u
|
|
260
|
+
} : {
|
|
261
|
+
x: r * u,
|
|
262
|
+
y: i * m
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
const se = function(o) {
|
|
266
|
+
return o === void 0 && (o = 0), {
|
|
267
|
+
name: "offset",
|
|
268
|
+
options: o,
|
|
269
|
+
async fn(s) {
|
|
270
|
+
var f, e;
|
|
271
|
+
const {
|
|
272
|
+
x: l,
|
|
273
|
+
y: t,
|
|
274
|
+
placement: c,
|
|
275
|
+
middlewareData: a
|
|
276
|
+
} = s, x = await ee(s, o);
|
|
277
|
+
return c === ((f = a.offset) == null ? void 0 : f.placement) && (e = a.arrow) != null && e.alignmentOffset ? {} : {
|
|
278
|
+
x: l + x.x,
|
|
279
|
+
y: t + x.y,
|
|
280
|
+
data: {
|
|
281
|
+
...x,
|
|
282
|
+
placement: c
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
}, ae = function(o) {
|
|
288
|
+
return o === void 0 && (o = {}), {
|
|
289
|
+
name: "shift",
|
|
290
|
+
options: o,
|
|
291
|
+
async fn(s) {
|
|
292
|
+
const {
|
|
293
|
+
x: f,
|
|
294
|
+
y: e,
|
|
295
|
+
placement: l
|
|
296
|
+
} = s, {
|
|
297
|
+
mainAxis: t = !0,
|
|
298
|
+
crossAxis: c = !1,
|
|
299
|
+
limiter: a = {
|
|
300
|
+
fn: (p) => {
|
|
301
|
+
let {
|
|
302
|
+
x: y,
|
|
303
|
+
y: g
|
|
304
|
+
} = p;
|
|
305
|
+
return {
|
|
306
|
+
x: y,
|
|
307
|
+
y: g
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
...x
|
|
312
|
+
} = D(o, s), u = {
|
|
313
|
+
x: f,
|
|
314
|
+
y: e
|
|
315
|
+
}, m = await I(s, x), n = C(E(l)), r = Q(n);
|
|
316
|
+
let i = u[r], d = u[n];
|
|
317
|
+
if (t) {
|
|
318
|
+
const p = r === "y" ? "top" : "left", y = r === "y" ? "bottom" : "right", g = i + m[p], A = i - m[y];
|
|
319
|
+
i = $(g, i, A);
|
|
320
|
+
}
|
|
321
|
+
if (c) {
|
|
322
|
+
const p = n === "y" ? "top" : "left", y = n === "y" ? "bottom" : "right", g = d + m[p], A = d - m[y];
|
|
323
|
+
d = $(g, d, A);
|
|
324
|
+
}
|
|
325
|
+
const v = a.fn({
|
|
326
|
+
...s,
|
|
327
|
+
[r]: i,
|
|
328
|
+
[n]: d
|
|
329
|
+
});
|
|
330
|
+
return {
|
|
331
|
+
...v,
|
|
332
|
+
data: {
|
|
333
|
+
x: v.x - f,
|
|
334
|
+
y: v.y - e,
|
|
335
|
+
enabled: {
|
|
336
|
+
[r]: t,
|
|
337
|
+
[n]: c
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
export {
|
|
345
|
+
ne as c,
|
|
346
|
+
ie as f,
|
|
347
|
+
se as o,
|
|
348
|
+
ae as s
|
|
349
|
+
};
|