@anoki/fse-ui 1.0.0-beta1.37.33 → 1.0.0-beta1.37.35
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/components/ui/CommunicationSeach/CommunicationSearch.css +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs134.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs282.js +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs444.js +1 -27
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +2 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +27 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -2
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +1 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +2 -0
- package/dist/index.cjs461.js.map +1 -0
- package/dist/index.cjs462.js +2 -0
- package/dist/index.cjs462.js.map +1 -0
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs483.js +2 -0
- package/dist/index.cjs483.js.map +1 -0
- package/dist/index.cjs484.js +2 -0
- package/dist/index.cjs484.js.map +1 -0
- package/dist/index.cjs485.js +2 -0
- package/dist/index.cjs485.js.map +1 -0
- package/dist/index.cjs486.js +2 -0
- package/dist/index.cjs486.js.map +1 -0
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/index.cjs492.js +1 -1
- package/dist/index.cjs492.js.map +1 -1
- package/dist/index.cjs493.js +2 -0
- package/dist/index.cjs493.js.map +1 -0
- package/dist/index.cjs494.js +2 -0
- package/dist/index.cjs494.js.map +1 -0
- package/dist/index.cjs495.js +2 -0
- package/dist/index.cjs495.js.map +1 -0
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs505.js +1 -1
- package/dist/index.cjs506.js +1 -1
- package/dist/index.cjs511.js +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs516.js +38 -1
- package/dist/index.cjs516.js.map +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs517.js.map +1 -1
- package/dist/index.cjs518.js +1 -38
- package/dist/index.cjs518.js.map +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs519.js.map +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs520.js.map +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs521.js.map +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs522.js.map +1 -1
- package/dist/index.cjs523.js +1 -1
- package/dist/index.cjs524.js +1 -1
- package/dist/index.cjs529.js +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/{index.cjs568.js → index.cjs564.js} +2 -2
- package/dist/{index.cjs568.js.map → index.cjs564.js.map} +1 -1
- package/dist/{index.cjs569.js → index.cjs565.js} +1 -1
- package/dist/index.cjs565.js.map +1 -0
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs575.js.map +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs576.js.map +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs577.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.es134.js +75 -66
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es191.js +10 -5
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es239.js +1 -1
- package/dist/index.es246.js +2 -2
- package/dist/index.es253.js +2 -2
- package/dist/index.es254.js +3 -3
- package/dist/index.es255.js +3 -3
- package/dist/index.es282.js +7 -7
- package/dist/index.es287.js +1 -1
- package/dist/index.es295.js +5 -5
- package/dist/index.es311.js +13 -13
- package/dist/index.es318.js +1 -1
- package/dist/index.es32.js +1 -1
- package/dist/index.es323.js +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es334.js +1 -1
- package/dist/index.es342.js +5 -5
- package/dist/index.es383.js +4 -4
- package/dist/index.es389.js +1 -1
- package/dist/index.es423.js +1 -1
- package/dist/index.es444.js +5 -3674
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +520 -5
- package/dist/index.es445.js.map +1 -1
- package/dist/index.es446.js +3675 -2
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +5 -5
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +2 -521
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +2 -2
- package/dist/index.es453.js +15 -7
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es456.js +6 -29
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +26 -32
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +63 -617
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +29 -10
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +33 -15
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +625 -0
- package/dist/index.es461.js.map +1 -0
- package/dist/index.es462.js +14 -0
- package/dist/index.es462.js.map +1 -0
- package/dist/index.es464.js +1 -1
- package/dist/index.es465.js +2 -2
- package/dist/index.es468.js +124 -9
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +122 -165
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +14 -4
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +12 -130
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +8 -124
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +48 -133
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +56 -14
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es483.js +13 -0
- package/dist/index.es483.js.map +1 -0
- package/dist/index.es484.js +181 -0
- package/dist/index.es484.js.map +1 -0
- package/dist/index.es485.js +7 -0
- package/dist/index.es485.js.map +1 -0
- package/dist/index.es486.js +136 -0
- package/dist/index.es486.js.map +1 -0
- package/dist/index.es490.js +10 -217
- package/dist/index.es490.js.map +1 -1
- package/dist/index.es491.js +41 -173
- package/dist/index.es491.js.map +1 -1
- package/dist/index.es492.js +13 -3
- package/dist/index.es492.js.map +1 -1
- package/dist/index.es493.js +221 -0
- package/dist/index.es493.js.map +1 -0
- package/dist/index.es494.js +181 -0
- package/dist/index.es494.js.map +1 -0
- package/dist/index.es495.js +7 -0
- package/dist/index.es495.js.map +1 -0
- package/dist/index.es503.js +1 -1
- package/dist/index.es505.js +1 -1
- package/dist/index.es506.js +3 -3
- package/dist/index.es511.js +1 -1
- package/dist/index.es513.js +4 -4
- package/dist/index.es515.js +54 -512
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es516.js +68 -126
- package/dist/index.es516.js.map +1 -1
- package/dist/index.es517.js +8 -128
- package/dist/index.es517.js.map +1 -1
- package/dist/index.es518.js +13 -68
- package/dist/index.es518.js.map +1 -1
- package/dist/index.es519.js +61 -8
- package/dist/index.es519.js.map +1 -1
- package/dist/index.es520.js +520 -11
- package/dist/index.es520.js.map +1 -1
- package/dist/index.es521.js +126 -61
- package/dist/index.es521.js.map +1 -1
- package/dist/index.es522.js +125 -61
- package/dist/index.es522.js.map +1 -1
- package/dist/index.es523.js +1 -1
- package/dist/index.es524.js +1 -1
- package/dist/index.es529.js +1 -1
- package/dist/index.es533.js +2 -2
- package/dist/index.es534.js +14 -14
- package/dist/index.es541.js +8 -8
- package/dist/index.es546.js +7 -7
- package/dist/index.es548.js +1 -1
- package/dist/index.es557.js +2 -2
- package/dist/{index.es568.js → index.es564.js} +3 -3
- package/dist/{index.es568.js.map → index.es564.js.map} +1 -1
- package/dist/{index.es569.js → index.es565.js} +1 -1
- package/dist/index.es565.js.map +1 -0
- package/dist/index.es575.js +3 -4
- package/dist/index.es575.js.map +1 -1
- package/dist/index.es576.js +2 -3
- package/dist/index.es576.js.map +1 -1
- package/dist/index.es577.js +4 -2
- package/dist/index.es577.js.map +1 -1
- package/dist/index.es584.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs454.js +0 -2
- package/dist/index.cjs454.js.map +0 -1
- package/dist/index.cjs455.js +0 -2
- package/dist/index.cjs455.js.map +0 -1
- package/dist/index.cjs475.js +0 -2
- package/dist/index.cjs475.js.map +0 -1
- package/dist/index.cjs476.js +0 -2
- package/dist/index.cjs476.js.map +0 -1
- package/dist/index.cjs477.js +0 -2
- package/dist/index.cjs477.js.map +0 -1
- package/dist/index.cjs478.js +0 -2
- package/dist/index.cjs478.js.map +0 -1
- package/dist/index.cjs487.js +0 -2
- package/dist/index.cjs487.js.map +0 -1
- package/dist/index.cjs488.js +0 -2
- package/dist/index.cjs488.js.map +0 -1
- package/dist/index.cjs489.js +0 -2
- package/dist/index.cjs489.js.map +0 -1
- package/dist/index.cjs569.js.map +0 -1
- package/dist/index.es454.js +0 -30
- package/dist/index.es454.js.map +0 -1
- package/dist/index.es455.js +0 -71
- package/dist/index.es455.js.map +0 -1
- package/dist/index.es475.js +0 -18
- package/dist/index.es475.js.map +0 -1
- package/dist/index.es476.js +0 -12
- package/dist/index.es476.js.map +0 -1
- package/dist/index.es477.js +0 -53
- package/dist/index.es477.js.map +0 -1
- package/dist/index.es478.js +0 -59
- package/dist/index.es478.js.map +0 -1
- package/dist/index.es487.js +0 -14
- package/dist/index.es487.js.map +0 -1
- package/dist/index.es488.js +0 -49
- package/dist/index.es488.js.map +0 -1
- package/dist/index.es489.js +0 -17
- package/dist/index.es489.js.map +0 -1
- package/dist/index.es569.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { a } from "./index.es486.js";
|
|
2
|
+
function y(e) {
|
|
3
|
+
return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
|
|
4
|
+
}
|
|
5
|
+
function b(e) {
|
|
6
|
+
const t = e;
|
|
7
|
+
Object.keys(t).forEach((r) => {
|
|
8
|
+
try {
|
|
9
|
+
t[r] = null;
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
delete t[r];
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function M(e, t) {
|
|
19
|
+
return t === void 0 && (t = 0), setTimeout(e, t);
|
|
20
|
+
}
|
|
21
|
+
function C() {
|
|
22
|
+
return Date.now();
|
|
23
|
+
}
|
|
24
|
+
function S(e) {
|
|
25
|
+
const t = a();
|
|
26
|
+
let r;
|
|
27
|
+
return t.getComputedStyle && (r = t.getComputedStyle(e, null)), !r && e.currentStyle && (r = e.currentStyle), r || (r = e.style), r;
|
|
28
|
+
}
|
|
29
|
+
function v(e, t) {
|
|
30
|
+
t === void 0 && (t = "x");
|
|
31
|
+
const r = a();
|
|
32
|
+
let n, o, s;
|
|
33
|
+
const l = S(e);
|
|
34
|
+
return r.WebKitCSSMatrix ? (o = l.transform || l.webkitTransform, o.split(",").length > 6 && (o = o.split(", ").map((i) => i.replace(",", ".")).join(", ")), s = new r.WebKitCSSMatrix(o === "none" ? "" : o)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = s.toString().split(",")), t === "x" && (r.WebKitCSSMatrix ? o = s.m41 : n.length === 16 ? o = parseFloat(n[12]) : o = parseFloat(n[4])), t === "y" && (r.WebKitCSSMatrix ? o = s.m42 : n.length === 16 ? o = parseFloat(n[13]) : o = parseFloat(n[5])), o || 0;
|
|
35
|
+
}
|
|
36
|
+
function d(e) {
|
|
37
|
+
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
38
|
+
}
|
|
39
|
+
function E(e) {
|
|
40
|
+
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
41
|
+
}
|
|
42
|
+
function g() {
|
|
43
|
+
const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
|
|
44
|
+
for (let r = 1; r < arguments.length; r += 1) {
|
|
45
|
+
const n = r < 0 || arguments.length <= r ? void 0 : arguments[r];
|
|
46
|
+
if (n != null && !E(n)) {
|
|
47
|
+
const o = Object.keys(Object(n)).filter((s) => t.indexOf(s) < 0);
|
|
48
|
+
for (let s = 0, l = o.length; s < l; s += 1) {
|
|
49
|
+
const i = o[s], u = Object.getOwnPropertyDescriptor(n, i);
|
|
50
|
+
u !== void 0 && u.enumerable && (d(e[i]) && d(n[i]) ? n[i].__swiper__ ? e[i] = n[i] : g(e[i], n[i]) : !d(e[i]) && d(n[i]) ? (e[i] = {}, n[i].__swiper__ ? e[i] = n[i] : g(e[i], n[i])) : e[i] = n[i]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function O(e, t, r) {
|
|
57
|
+
e.style.setProperty(t, r);
|
|
58
|
+
}
|
|
59
|
+
function P(e) {
|
|
60
|
+
let {
|
|
61
|
+
swiper: t,
|
|
62
|
+
targetPosition: r,
|
|
63
|
+
side: n
|
|
64
|
+
} = e;
|
|
65
|
+
const o = a(), s = -t.translate;
|
|
66
|
+
let l = null, i;
|
|
67
|
+
const u = t.params.speed;
|
|
68
|
+
t.wrapperEl.style.scrollSnapType = "none", o.cancelAnimationFrame(t.cssModeFrameID);
|
|
69
|
+
const p = r > s ? "next" : "prev", h = (f, m) => p === "next" && f >= m || p === "prev" && f <= m, w = () => {
|
|
70
|
+
i = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = i);
|
|
71
|
+
const f = Math.max(Math.min((i - l) / u, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
|
|
72
|
+
let c = s + m * (r - s);
|
|
73
|
+
if (h(c, r) && (c = r), t.wrapperEl.scrollTo({
|
|
74
|
+
[n]: c
|
|
75
|
+
}), h(c, r)) {
|
|
76
|
+
t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
77
|
+
t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
|
|
78
|
+
[n]: c
|
|
79
|
+
});
|
|
80
|
+
}), o.cancelAnimationFrame(t.cssModeFrameID);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
t.cssModeFrameID = o.requestAnimationFrame(w);
|
|
84
|
+
};
|
|
85
|
+
w();
|
|
86
|
+
}
|
|
87
|
+
function j(e, t) {
|
|
88
|
+
t === void 0 && (t = "");
|
|
89
|
+
const r = a(), n = [...e.children];
|
|
90
|
+
return r.HTMLSlotElement && e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((o) => o.matches(t)) : n;
|
|
91
|
+
}
|
|
92
|
+
function T(e, t) {
|
|
93
|
+
const r = [t];
|
|
94
|
+
for (; r.length > 0; ) {
|
|
95
|
+
const n = r.shift();
|
|
96
|
+
if (e === n)
|
|
97
|
+
return !0;
|
|
98
|
+
r.push(...n.children, ...n.shadowRoot ? n.shadowRoot.children : [], ...n.assignedElements ? n.assignedElements() : []);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function F(e, t) {
|
|
102
|
+
const r = a();
|
|
103
|
+
let n = t.contains(e);
|
|
104
|
+
return !n && r.HTMLSlotElement && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n || (n = T(e, t))), n;
|
|
105
|
+
}
|
|
106
|
+
function _(e) {
|
|
107
|
+
try {
|
|
108
|
+
console.warn(e);
|
|
109
|
+
return;
|
|
110
|
+
} catch {
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function A(e, t) {
|
|
114
|
+
t === void 0 && (t = []);
|
|
115
|
+
const r = document.createElement(e);
|
|
116
|
+
return r.classList.add(...Array.isArray(t) ? t : y(t)), r;
|
|
117
|
+
}
|
|
118
|
+
function I(e, t) {
|
|
119
|
+
const r = [];
|
|
120
|
+
for (; e.previousElementSibling; ) {
|
|
121
|
+
const n = e.previousElementSibling;
|
|
122
|
+
t ? n.matches(t) && r.push(n) : r.push(n), e = n;
|
|
123
|
+
}
|
|
124
|
+
return r;
|
|
125
|
+
}
|
|
126
|
+
function k(e, t) {
|
|
127
|
+
const r = [];
|
|
128
|
+
for (; e.nextElementSibling; ) {
|
|
129
|
+
const n = e.nextElementSibling;
|
|
130
|
+
t ? n.matches(t) && r.push(n) : r.push(n), e = n;
|
|
131
|
+
}
|
|
132
|
+
return r;
|
|
133
|
+
}
|
|
134
|
+
function H(e, t) {
|
|
135
|
+
return a().getComputedStyle(e, null).getPropertyValue(t);
|
|
136
|
+
}
|
|
137
|
+
function L(e) {
|
|
138
|
+
let t = e, r;
|
|
139
|
+
if (t) {
|
|
140
|
+
for (r = 0; (t = t.previousSibling) !== null; )
|
|
141
|
+
t.nodeType === 1 && (r += 1);
|
|
142
|
+
return r;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function W(e, t) {
|
|
146
|
+
const r = [];
|
|
147
|
+
let n = e.parentElement;
|
|
148
|
+
for (; n; )
|
|
149
|
+
t ? n.matches(t) && r.push(n) : r.push(n), n = n.parentElement;
|
|
150
|
+
return r;
|
|
151
|
+
}
|
|
152
|
+
function D(e, t, r) {
|
|
153
|
+
const n = a();
|
|
154
|
+
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
155
|
+
}
|
|
156
|
+
function K(e) {
|
|
157
|
+
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
W as a,
|
|
161
|
+
A as c,
|
|
162
|
+
C as d,
|
|
163
|
+
j as e,
|
|
164
|
+
D as f,
|
|
165
|
+
L as h,
|
|
166
|
+
y as i,
|
|
167
|
+
v as j,
|
|
168
|
+
d as l,
|
|
169
|
+
K as m,
|
|
170
|
+
M as n,
|
|
171
|
+
H as p,
|
|
172
|
+
k as q,
|
|
173
|
+
I as r,
|
|
174
|
+
O as s,
|
|
175
|
+
P as t,
|
|
176
|
+
_ as u,
|
|
177
|
+
F as v,
|
|
178
|
+
g as w,
|
|
179
|
+
b as x
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=index.es484.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es484.js","sources":["../node_modules/swiper/shared/utils.mjs"],"sourcesContent":["import { a as getWindow, g as getDocument } from './ssr-window.esm.mjs';\n\nfunction classesToTokens(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return classes.trim().split(' ').filter(c => !!c.trim());\n}\n\nfunction deleteProps(obj) {\n const object = obj;\n Object.keys(object).forEach(key => {\n try {\n object[key] = null;\n } catch (e) {\n // no getter for object\n }\n try {\n delete object[key];\n } catch (e) {\n // something got wrong\n }\n });\n}\nfunction nextTick(callback, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setTimeout(callback, delay);\n}\nfunction now() {\n return Date.now();\n}\nfunction getComputedStyle(el) {\n const window = getWindow();\n let style;\n if (window.getComputedStyle) {\n style = window.getComputedStyle(el, null);\n }\n if (!style && el.currentStyle) {\n style = el.currentStyle;\n }\n if (!style) {\n style = el.style;\n }\n return style;\n}\nfunction getTranslate(el, axis) {\n if (axis === void 0) {\n axis = 'x';\n }\n const window = getWindow();\n let matrix;\n let curTransform;\n let transformMatrix;\n const curStyle = getComputedStyle(el);\n if (window.WebKitCSSMatrix) {\n curTransform = curStyle.transform || curStyle.webkitTransform;\n if (curTransform.split(',').length > 6) {\n curTransform = curTransform.split(', ').map(a => a.replace(',', '.')).join(', ');\n }\n // Some old versions of Webkit choke when 'none' is passed; pass\n // empty string instead in this case\n transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\n } else {\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\n matrix = transformMatrix.toString().split(',');\n }\n if (axis === 'x') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[12]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[4]);\n }\n if (axis === 'y') {\n // Latest Chrome and webkits Fix\n if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42;\n // Crazy IE10 Matrix\n else if (matrix.length === 16) curTransform = parseFloat(matrix[13]);\n // Normal Browsers\n else curTransform = parseFloat(matrix[5]);\n }\n return curTransform || 0;\n}\nfunction isObject(o) {\n return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\nfunction isNode(node) {\n // eslint-disable-next-line\n if (typeof window !== 'undefined' && typeof window.HTMLElement !== 'undefined') {\n return node instanceof HTMLElement;\n }\n return node && (node.nodeType === 1 || node.nodeType === 11);\n}\nfunction extend() {\n const to = Object(arguments.length <= 0 ? undefined : arguments[0]);\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n for (let i = 1; i < arguments.length; i += 1) {\n const nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (nextSource !== undefined && nextSource !== null && !isNode(nextSource)) {\n const keysArray = Object.keys(Object(nextSource)).filter(key => noExtend.indexOf(key) < 0);\n for (let nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\n const nextKey = keysArray[nextIndex];\n const desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n if (isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else if (!isObject(to[nextKey]) && isObject(nextSource[nextKey])) {\n to[nextKey] = {};\n if (nextSource[nextKey].__swiper__) {\n to[nextKey] = nextSource[nextKey];\n } else {\n extend(to[nextKey], nextSource[nextKey]);\n }\n } else {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n }\n return to;\n}\nfunction setCSSProperty(el, varName, varValue) {\n el.style.setProperty(varName, varValue);\n}\nfunction animateCSSModeScroll(_ref) {\n let {\n swiper,\n targetPosition,\n side\n } = _ref;\n const window = getWindow();\n const startPosition = -swiper.translate;\n let startTime = null;\n let time;\n const duration = swiper.params.speed;\n swiper.wrapperEl.style.scrollSnapType = 'none';\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n const dir = targetPosition > startPosition ? 'next' : 'prev';\n const isOutOfBound = (current, target) => {\n return dir === 'next' && current >= target || dir === 'prev' && current <= target;\n };\n const animate = () => {\n time = new Date().getTime();\n if (startTime === null) {\n startTime = time;\n }\n const progress = Math.max(Math.min((time - startTime) / duration, 1), 0);\n const easeProgress = 0.5 - Math.cos(progress * Math.PI) / 2;\n let currentPosition = startPosition + easeProgress * (targetPosition - startPosition);\n if (isOutOfBound(currentPosition, targetPosition)) {\n currentPosition = targetPosition;\n }\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n if (isOutOfBound(currentPosition, targetPosition)) {\n swiper.wrapperEl.style.overflow = 'hidden';\n swiper.wrapperEl.style.scrollSnapType = '';\n setTimeout(() => {\n swiper.wrapperEl.style.overflow = '';\n swiper.wrapperEl.scrollTo({\n [side]: currentPosition\n });\n });\n window.cancelAnimationFrame(swiper.cssModeFrameID);\n return;\n }\n swiper.cssModeFrameID = window.requestAnimationFrame(animate);\n };\n animate();\n}\nfunction getSlideTransformEl(slideEl) {\n return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;\n}\nfunction elementChildren(element, selector) {\n if (selector === void 0) {\n selector = '';\n }\n const window = getWindow();\n const children = [...element.children];\n if (window.HTMLSlotElement && element instanceof HTMLSlotElement) {\n children.push(...element.assignedElements());\n }\n if (!selector) {\n return children;\n }\n return children.filter(el => el.matches(selector));\n}\nfunction elementIsChildOfSlot(el, slot) {\n // Breadth-first search through all parent's children and assigned elements\n const elementsQueue = [slot];\n while (elementsQueue.length > 0) {\n const elementToCheck = elementsQueue.shift();\n if (el === elementToCheck) {\n return true;\n }\n elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []), ...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []));\n }\n}\nfunction elementIsChildOf(el, parent) {\n const window = getWindow();\n let isChild = parent.contains(el);\n if (!isChild && window.HTMLSlotElement && parent instanceof HTMLSlotElement) {\n const children = [...parent.assignedElements()];\n isChild = children.includes(el);\n if (!isChild) {\n isChild = elementIsChildOfSlot(el, parent);\n }\n }\n return isChild;\n}\nfunction showWarning(text) {\n try {\n console.warn(text);\n return;\n } catch (err) {\n // err\n }\n}\nfunction createElement(tag, classes) {\n if (classes === void 0) {\n classes = [];\n }\n const el = document.createElement(tag);\n el.classList.add(...(Array.isArray(classes) ? classes : classesToTokens(classes)));\n return el;\n}\nfunction elementOffset(el) {\n const window = getWindow();\n const document = getDocument();\n const box = el.getBoundingClientRect();\n const body = document.body;\n const clientTop = el.clientTop || body.clientTop || 0;\n const clientLeft = el.clientLeft || body.clientLeft || 0;\n const scrollTop = el === window ? window.scrollY : el.scrollTop;\n const scrollLeft = el === window ? window.scrollX : el.scrollLeft;\n return {\n top: box.top + scrollTop - clientTop,\n left: box.left + scrollLeft - clientLeft\n };\n}\nfunction elementPrevAll(el, selector) {\n const prevEls = [];\n while (el.previousElementSibling) {\n const prev = el.previousElementSibling; // eslint-disable-line\n if (selector) {\n if (prev.matches(selector)) prevEls.push(prev);\n } else prevEls.push(prev);\n el = prev;\n }\n return prevEls;\n}\nfunction elementNextAll(el, selector) {\n const nextEls = [];\n while (el.nextElementSibling) {\n const next = el.nextElementSibling; // eslint-disable-line\n if (selector) {\n if (next.matches(selector)) nextEls.push(next);\n } else nextEls.push(next);\n el = next;\n }\n return nextEls;\n}\nfunction elementStyle(el, prop) {\n const window = getWindow();\n return window.getComputedStyle(el, null).getPropertyValue(prop);\n}\nfunction elementIndex(el) {\n let child = el;\n let i;\n if (child) {\n i = 0;\n // eslint-disable-next-line\n while ((child = child.previousSibling) !== null) {\n if (child.nodeType === 1) i += 1;\n }\n return i;\n }\n return undefined;\n}\nfunction elementParents(el, selector) {\n const parents = []; // eslint-disable-line\n let parent = el.parentElement; // eslint-disable-line\n while (parent) {\n if (selector) {\n if (parent.matches(selector)) parents.push(parent);\n } else {\n parents.push(parent);\n }\n parent = parent.parentElement;\n }\n return parents;\n}\nfunction elementTransitionEnd(el, callback) {\n function fireCallBack(e) {\n if (e.target !== el) return;\n callback.call(el, e);\n el.removeEventListener('transitionend', fireCallBack);\n }\n if (callback) {\n el.addEventListener('transitionend', fireCallBack);\n }\n}\nfunction elementOuterSize(el, size, includeMargins) {\n const window = getWindow();\n if (includeMargins) {\n return el[size === 'width' ? 'offsetWidth' : 'offsetHeight'] + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-right' : 'margin-top')) + parseFloat(window.getComputedStyle(el, null).getPropertyValue(size === 'width' ? 'margin-left' : 'margin-bottom'));\n }\n return el.offsetWidth;\n}\nfunction makeElementsArray(el) {\n return (Array.isArray(el) ? el : [el]).filter(e => !!e);\n}\nfunction getRotateFix(swiper) {\n return v => {\n if (Math.abs(v) > 0 && swiper.browser && swiper.browser.need3dFix && Math.abs(v) % 90 === 0) {\n return v + 0.001;\n }\n return v;\n };\n}\n\nexport { elementParents as a, elementOffset as b, createElement as c, now as d, elementChildren as e, elementOuterSize as f, getSlideTransformEl as g, elementIndex as h, classesToTokens as i, getTranslate as j, elementTransitionEnd as k, isObject as l, makeElementsArray as m, nextTick as n, getRotateFix as o, elementStyle as p, elementNextAll as q, elementPrevAll as r, setCSSProperty as s, animateCSSModeScroll as t, showWarning as u, elementIsChildOf as v, extend as w, deleteProps as x };\n"],"names":["classesToTokens","classes","c","deleteProps","obj","object","key","nextTick","callback","delay","now","getComputedStyle","el","window","getWindow","style","getTranslate","axis","matrix","curTransform","transformMatrix","curStyle","a","isObject","o","isNode","node","extend","to","noExtend","i","nextSource","keysArray","nextIndex","len","nextKey","desc","setCSSProperty","varName","varValue","animateCSSModeScroll","_ref","swiper","targetPosition","side","startPosition","startTime","time","duration","dir","isOutOfBound","current","target","animate","progress","easeProgress","currentPosition","elementChildren","element","selector","children","elementIsChildOfSlot","slot","elementsQueue","elementToCheck","elementIsChildOf","parent","isChild","showWarning","text","createElement","tag","elementPrevAll","prevEls","prev","elementNextAll","nextEls","next","elementStyle","prop","elementIndex","child","elementParents","parents","elementOuterSize","size","includeMargins","makeElementsArray","e"],"mappings":";AAEA,SAASA,EAAgBC,GAAS;AAChC,SAAIA,MAAY,WACdA,IAAU,KAELA,EAAQ,OAAO,MAAM,GAAG,EAAE,OAAO,CAAAC,MAAK,CAAC,CAACA,EAAE,KAAI,CAAE;AACzD;AAEA,SAASC,EAAYC,GAAK;AACxB,QAAMC,IAASD;AACf,SAAO,KAAKC,CAAM,EAAE,QAAQ,CAAAC,MAAO;AACjC,QAAI;AACF,MAAAD,EAAOC,CAAG,IAAI;AAAA,IACf,QAAW;AAAA,IAEhB;AACI,QAAI;AACF,aAAOD,EAAOC,CAAG;AAAA,IAClB,QAAW;AAAA,IAEhB;AAAA,EACA,CAAG;AACH;AACA,SAASC,EAASC,GAAUC,GAAO;AACjC,SAAIA,MAAU,WACZA,IAAQ,IAEH,WAAWD,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AM,IAEjDiB,EAAQ,KAAKjB,CAAM,GAErBA,IAASA,EAAO;AAElB,SAAOiB;AACT;AAWA,SAASC,EAAiBxE,GAAIyE,GAAMC,GAAgB;AAClD,QAAMzE,IAASC,EAAW;AAExB,SAAOF,EAAGyE,MAAS,UAAU,gBAAgB,cAAc,IAAI,WAAWxE,EAAO,iBAAiBD,GAAI,IAAI,EAAE,iBAAiByE,MAAS,UAAU,iBAAiB,YAAY,CAAC,IAAI,WAAWxE,EAAO,iBAAiBD,GAAI,IAAI,EAAE,iBAAiByE,MAAS,UAAU,gBAAgB,eAAe,CAAC;AAGvS;AACA,SAASE,EAAkB3E,GAAI;AAC7B,UAAQ,MAAM,QAAQA,CAAE,IAAIA,IAAK,CAACA,CAAE,GAAG,OAAO,CAAA4E,MAAK,CAAC,CAACA,CAAC;AACxD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es485.js","sources":["../node_modules/swiper/shared/classes-to-selector.mjs"],"sourcesContent":["function classesToSelector(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return `.${classes.trim().replace(/([\\.:!+\\/])/g, '\\\\$1') // eslint-disable-line\n .replace(/ /g, '.')}`;\n}\n\nexport { classesToSelector as c };\n"],"names":["classesToSelector","classes"],"mappings":"AAAA,SAASA,EAAkBC,GAAS;AAClC,SAAIA,MAAY,WACdA,IAAU,KAEL,IAAIA,EAAQ,KAAM,EAAC,QAAQ,gBAAgB,MAAM,EACvD,QAAQ,MAAM,GAAG,CAAC;AACrB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
3
|
+
}
|
|
4
|
+
function o(e, n) {
|
|
5
|
+
e === void 0 && (e = {}), n === void 0 && (n = {});
|
|
6
|
+
const u = ["__proto__", "constructor", "prototype"];
|
|
7
|
+
Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
|
|
8
|
+
typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
const i = {
|
|
12
|
+
body: {},
|
|
13
|
+
addEventListener() {
|
|
14
|
+
},
|
|
15
|
+
removeEventListener() {
|
|
16
|
+
},
|
|
17
|
+
activeElement: {
|
|
18
|
+
blur() {
|
|
19
|
+
},
|
|
20
|
+
nodeName: ""
|
|
21
|
+
},
|
|
22
|
+
querySelector() {
|
|
23
|
+
return null;
|
|
24
|
+
},
|
|
25
|
+
querySelectorAll() {
|
|
26
|
+
return [];
|
|
27
|
+
},
|
|
28
|
+
getElementById() {
|
|
29
|
+
return null;
|
|
30
|
+
},
|
|
31
|
+
createEvent() {
|
|
32
|
+
return {
|
|
33
|
+
initEvent() {
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
createElement() {
|
|
38
|
+
return {
|
|
39
|
+
children: [],
|
|
40
|
+
childNodes: [],
|
|
41
|
+
style: {},
|
|
42
|
+
setAttribute() {
|
|
43
|
+
},
|
|
44
|
+
getElementsByTagName() {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
createElementNS() {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
importNode() {
|
|
53
|
+
return null;
|
|
54
|
+
},
|
|
55
|
+
location: {
|
|
56
|
+
hash: "",
|
|
57
|
+
host: "",
|
|
58
|
+
hostname: "",
|
|
59
|
+
href: "",
|
|
60
|
+
origin: "",
|
|
61
|
+
pathname: "",
|
|
62
|
+
protocol: "",
|
|
63
|
+
search: ""
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function s() {
|
|
67
|
+
const e = typeof document < "u" ? document : {};
|
|
68
|
+
return o(e, i), e;
|
|
69
|
+
}
|
|
70
|
+
const c = {
|
|
71
|
+
document: i,
|
|
72
|
+
navigator: {
|
|
73
|
+
userAgent: ""
|
|
74
|
+
},
|
|
75
|
+
location: {
|
|
76
|
+
hash: "",
|
|
77
|
+
host: "",
|
|
78
|
+
hostname: "",
|
|
79
|
+
href: "",
|
|
80
|
+
origin: "",
|
|
81
|
+
pathname: "",
|
|
82
|
+
protocol: "",
|
|
83
|
+
search: ""
|
|
84
|
+
},
|
|
85
|
+
history: {
|
|
86
|
+
replaceState() {
|
|
87
|
+
},
|
|
88
|
+
pushState() {
|
|
89
|
+
},
|
|
90
|
+
go() {
|
|
91
|
+
},
|
|
92
|
+
back() {
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
CustomEvent: function() {
|
|
96
|
+
return this;
|
|
97
|
+
},
|
|
98
|
+
addEventListener() {
|
|
99
|
+
},
|
|
100
|
+
removeEventListener() {
|
|
101
|
+
},
|
|
102
|
+
getComputedStyle() {
|
|
103
|
+
return {
|
|
104
|
+
getPropertyValue() {
|
|
105
|
+
return "";
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
Image() {
|
|
110
|
+
},
|
|
111
|
+
Date() {
|
|
112
|
+
},
|
|
113
|
+
screen: {},
|
|
114
|
+
setTimeout() {
|
|
115
|
+
},
|
|
116
|
+
clearTimeout() {
|
|
117
|
+
},
|
|
118
|
+
matchMedia() {
|
|
119
|
+
return {};
|
|
120
|
+
},
|
|
121
|
+
requestAnimationFrame(e) {
|
|
122
|
+
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
123
|
+
},
|
|
124
|
+
cancelAnimationFrame(e) {
|
|
125
|
+
typeof setTimeout > "u" || clearTimeout(e);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
function a() {
|
|
129
|
+
const e = typeof window < "u" ? window : {};
|
|
130
|
+
return o(e, c), e;
|
|
131
|
+
}
|
|
132
|
+
export {
|
|
133
|
+
a,
|
|
134
|
+
s as g
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=index.es486.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es486.js","sources":["../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.0\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: February 12, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n"],"names":["isObject","obj","extend","target","src","noExtend","key","ssrDocument","getDocument","doc","ssrWindow","callback","id","getWindow","win"],"mappings":"AAYA,SAASA,EAASC,GAAK;AACrB,SAAOA,MAAQ,QAAQ,OAAOA,KAAQ,YAAY,iBAAiBA,KAAOA,EAAI,gBAAgB;AAChG;AACA,SAASC,EAAOC,GAAQC,GAAK;AAC3B,EAAID,MAAW,WACbA,IAAS,CAAE,IAETC,MAAQ,WACVA,IAAM,CAAE;AAEV,QAAMC,IAAW,CAAC,aAAa,eAAe,WAAW;AACzD,SAAO,KAAKD,CAAG,EAAE,OAAO,CAAAE,MAAOD,EAAS,QAAQC,CAAG,IAAI,CAAC,EAAE,QAAQ,CAAAA,MAAO;AACvE,IAAI,OAAOH,EAAOG,CAAG,IAAM,MAAaH,EAAOG,CAAG,IAAIF,EAAIE,CAAG,IAAWN,EAASI,EAAIE,CAAG,CAAC,KAAKN,EAASG,EAAOG,CAAG,CAAC,KAAK,OAAO,KAAKF,EAAIE,CAAG,CAAC,EAAE,SAAS,KACpJJ,EAAOC,EAAOG,CAAG,GAAGF,EAAIE,CAAG,CAAC;AAAA,EAElC,CAAG;AACH;AACA,MAAMC,IAAc;AAAA,EAClB,MAAM,CAAE;AAAA,EACR,mBAAmB;AAAA,EAAE;AAAA,EACrB,sBAAsB;A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AO;AAAA,IAAA;AAAA,EACR;AAAA,EACD,aAAa,WAAuB;AAClC,WAAO;AAAA,EACR;AAAA,EACD,mBAAmB;AAAA,EAAE;AAAA,EACrB,sBAAsB;AAAA,EAAE;AAAA,EACxB,mBAAmB;AACjB,WAAO;AAAA,MACL,mBAAmB;AACjB,eAAO;AAAA,MACf;AAAA,IACK;AAAA,EACF;AAAA,EACD,QAAQ;AAAA,EAAE;AAAA,EACV,OAAO;AAAA,EAAE;AAAA,EACT,QAAQ,CAAE;AAAA,EACV,aAAa;AAAA,EAAE;AAAA,EACf,eAAe;AAAA,EAAE;AAAA,EACjB,aAAa;AACX,WAAO,CAAE;AAAA,EACV;AAAA,EACD,sBAAsBI,GAAU;AAC9B,WAAI,OAAO,aAAe,OACxBA,EAAU,GACH,QAEF,WAAWA,GAAU,CAAC;AAAA,EAC9B;AAAA,EACD,qBAAqBC,GAAI;AACvB,IAAI,OAAO,aAAe,OAG1B,aAAaA,CAAE;AAAA,EACnB;AACA;AACA,SAASC,IAAY;AACnB,QAAMC,IAAM,OAAO,SAAW,MAAc,SAAS,CAAE;AACvD,SAAAZ,EAAOY,GAAKJ,CAAS,GACdI;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es490.js
CHANGED
|
@@ -1,221 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { j as f } from "./index.es235.js";
|
|
11
|
-
import { autoUpdate as _e } from "./index.es506.js";
|
|
12
|
-
var N = "Popper", [L, Ue] = Re(N), [$e, Z] = L(N), U = (e) => {
|
|
13
|
-
const { __scopePopper: i, children: n } = e, [t, a] = s.useState(null);
|
|
14
|
-
return /* @__PURE__ */ f.jsx($e, { scope: i, anchor: t, onAnchorChange: a, children: n });
|
|
15
|
-
};
|
|
16
|
-
U.displayName = N;
|
|
17
|
-
var q = "PopperAnchor", G = s.forwardRef(
|
|
18
|
-
(e, i) => {
|
|
19
|
-
const { __scopePopper: n, virtualRef: t, ...a } = e, r = Z(q, n), o = s.useRef(null), w = T(i, o);
|
|
20
|
-
return s.useEffect(() => {
|
|
21
|
-
r.onAnchorChange((t == null ? void 0 : t.current) || o.current);
|
|
22
|
-
}), t ? null : /* @__PURE__ */ f.jsx(z.div, { ...a, ref: w });
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
G.displayName = q;
|
|
26
|
-
var _ = "PopperContent", [je, He] = L(_), J = s.forwardRef(
|
|
27
|
-
(e, i) => {
|
|
28
|
-
var I, Y, M, X, D, F;
|
|
29
|
-
const {
|
|
30
|
-
__scopePopper: n,
|
|
31
|
-
side: t = "bottom",
|
|
32
|
-
sideOffset: a = 0,
|
|
33
|
-
align: r = "center",
|
|
34
|
-
alignOffset: o = 0,
|
|
35
|
-
arrowPadding: w = 0,
|
|
36
|
-
avoidCollisions: p = !0,
|
|
37
|
-
collisionBoundary: c = [],
|
|
38
|
-
collisionPadding: x = 0,
|
|
39
|
-
sticky: m = "partial",
|
|
40
|
-
hideWhenDetached: y = !1,
|
|
41
|
-
updatePositionStrategy: A = "optimized",
|
|
42
|
-
onPlaced: l,
|
|
43
|
-
...d
|
|
44
|
-
} = e, v = Z(_, n), [h, C] = s.useState(null), ee = T(i, (P) => C(P)), [E, te] = s.useState(null), g = Ne(E), re = (g == null ? void 0 : g.width) ?? 0, $ = (g == null ? void 0 : g.height) ?? 0, oe = t + (r !== "center" ? "-" + r : ""), ne = typeof x == "number" ? x : { top: 0, right: 0, bottom: 0, left: 0, ...x }, j = Array.isArray(c) ? c : [c], ae = j.length > 0, b = {
|
|
45
|
-
padding: ne,
|
|
46
|
-
boundary: j.filter(Ie),
|
|
47
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
48
|
-
altBoundary: ae
|
|
49
|
-
}, { refs: ie, floatingStyles: H, placement: se, isPositioned: S, middlewareData: u } = xe({
|
|
50
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
51
|
-
strategy: "fixed",
|
|
52
|
-
placement: oe,
|
|
53
|
-
whileElementsMounted: (...P) => _e(...P, {
|
|
54
|
-
animationFrame: A === "always"
|
|
55
|
-
}),
|
|
56
|
-
elements: {
|
|
57
|
-
reference: v.anchor
|
|
58
|
-
},
|
|
59
|
-
middleware: [
|
|
60
|
-
Pe({ mainAxis: a + $, alignmentAxis: o }),
|
|
61
|
-
p && ye({
|
|
62
|
-
mainAxis: !0,
|
|
63
|
-
crossAxis: !1,
|
|
64
|
-
limiter: m === "partial" ? Se() : void 0,
|
|
65
|
-
...b
|
|
66
|
-
}),
|
|
67
|
-
p && Ae({ ...b }),
|
|
68
|
-
ve({
|
|
69
|
-
...b,
|
|
70
|
-
apply: ({ elements: P, rects: k, availableWidth: he, availableHeight: ge }) => {
|
|
71
|
-
const { width: ue, height: we } = k.reference, R = P.floating.style;
|
|
72
|
-
R.setProperty("--radix-popper-available-width", `${he}px`), R.setProperty("--radix-popper-available-height", `${ge}px`), R.setProperty("--radix-popper-anchor-width", `${ue}px`), R.setProperty("--radix-popper-anchor-height", `${we}px`);
|
|
73
|
-
}
|
|
74
|
-
}),
|
|
75
|
-
E && Ce({ element: E, padding: w }),
|
|
76
|
-
Ye({ arrowWidth: re, arrowHeight: $ }),
|
|
77
|
-
y && be({ strategy: "referenceHidden", ...b })
|
|
78
|
-
]
|
|
79
|
-
}), [W, pe] = V(se), O = Ee(l);
|
|
80
|
-
B(() => {
|
|
81
|
-
S && (O == null || O());
|
|
82
|
-
}, [S, O]);
|
|
83
|
-
const ce = (I = u.arrow) == null ? void 0 : I.x, de = (Y = u.arrow) == null ? void 0 : Y.y, le = ((M = u.arrow) == null ? void 0 : M.centerOffset) !== 0, [fe, me] = s.useState();
|
|
84
|
-
return B(() => {
|
|
85
|
-
h && me(window.getComputedStyle(h).zIndex);
|
|
86
|
-
}, [h]), /* @__PURE__ */ f.jsx(
|
|
87
|
-
"div",
|
|
88
|
-
{
|
|
89
|
-
ref: ie.setFloating,
|
|
90
|
-
"data-radix-popper-content-wrapper": "",
|
|
91
|
-
style: {
|
|
92
|
-
...H,
|
|
93
|
-
transform: S ? H.transform : "translate(0, -200%)",
|
|
94
|
-
// keep off the page when measuring
|
|
95
|
-
minWidth: "max-content",
|
|
96
|
-
zIndex: fe,
|
|
97
|
-
"--radix-popper-transform-origin": [
|
|
98
|
-
(X = u.transformOrigin) == null ? void 0 : X.x,
|
|
99
|
-
(D = u.transformOrigin) == null ? void 0 : D.y
|
|
100
|
-
].join(" "),
|
|
101
|
-
// hide the content if using the hide middleware and should be hidden
|
|
102
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
103
|
-
// as if the PopperContent isn't there at all
|
|
104
|
-
...((F = u.hide) == null ? void 0 : F.referenceHidden) && {
|
|
105
|
-
visibility: "hidden",
|
|
106
|
-
pointerEvents: "none"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
dir: e.dir,
|
|
110
|
-
children: /* @__PURE__ */ f.jsx(
|
|
111
|
-
je,
|
|
112
|
-
{
|
|
113
|
-
scope: n,
|
|
114
|
-
placedSide: W,
|
|
115
|
-
onArrowChange: te,
|
|
116
|
-
arrowX: ce,
|
|
117
|
-
arrowY: de,
|
|
118
|
-
shouldHideArrow: le,
|
|
119
|
-
children: /* @__PURE__ */ f.jsx(
|
|
120
|
-
z.div,
|
|
121
|
-
{
|
|
122
|
-
"data-side": W,
|
|
123
|
-
"data-align": pe,
|
|
124
|
-
...d,
|
|
125
|
-
ref: ee,
|
|
126
|
-
style: {
|
|
127
|
-
...d.style,
|
|
128
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
129
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
130
|
-
animation: S ? void 0 : "none"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
J.displayName = _;
|
|
141
|
-
var K = "PopperArrow", We = {
|
|
142
|
-
top: "bottom",
|
|
143
|
-
right: "left",
|
|
144
|
-
bottom: "top",
|
|
145
|
-
left: "right"
|
|
146
|
-
}, Q = s.forwardRef(function(i, n) {
|
|
147
|
-
const { __scopePopper: t, ...a } = i, r = He(K, t), o = We[r.placedSide];
|
|
148
|
-
return (
|
|
149
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
150
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
151
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
152
|
-
/* @__PURE__ */ f.jsx(
|
|
153
|
-
"span",
|
|
154
|
-
{
|
|
155
|
-
ref: r.onArrowChange,
|
|
156
|
-
style: {
|
|
157
|
-
position: "absolute",
|
|
158
|
-
left: r.arrowX,
|
|
159
|
-
top: r.arrowY,
|
|
160
|
-
[o]: 0,
|
|
161
|
-
transformOrigin: {
|
|
162
|
-
top: "",
|
|
163
|
-
right: "0 0",
|
|
164
|
-
bottom: "center 0",
|
|
165
|
-
left: "100% 0"
|
|
166
|
-
}[r.placedSide],
|
|
167
|
-
transform: {
|
|
168
|
-
top: "translateY(100%)",
|
|
169
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
170
|
-
bottom: "rotate(180deg)",
|
|
171
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
172
|
-
}[r.placedSide],
|
|
173
|
-
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
174
|
-
},
|
|
175
|
-
children: /* @__PURE__ */ f.jsx(
|
|
176
|
-
Oe,
|
|
177
|
-
{
|
|
178
|
-
...a,
|
|
179
|
-
ref: n,
|
|
180
|
-
style: {
|
|
181
|
-
...a.style,
|
|
182
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
183
|
-
display: "block"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
);
|
|
190
|
-
});
|
|
191
|
-
Q.displayName = K;
|
|
192
|
-
function Ie(e) {
|
|
193
|
-
return e !== null;
|
|
194
|
-
}
|
|
195
|
-
var Ye = (e) => ({
|
|
196
|
-
name: "transformOrigin",
|
|
197
|
-
options: e,
|
|
198
|
-
fn(i) {
|
|
199
|
-
var v, h, C;
|
|
200
|
-
const { placement: n, rects: t, middlewareData: a } = i, o = ((v = a.arrow) == null ? void 0 : v.centerOffset) !== 0, w = o ? 0 : e.arrowWidth, p = o ? 0 : e.arrowHeight, [c, x] = V(n), m = { start: "0%", center: "50%", end: "100%" }[x], y = (((h = a.arrow) == null ? void 0 : h.x) ?? 0) + w / 2, A = (((C = a.arrow) == null ? void 0 : C.y) ?? 0) + p / 2;
|
|
201
|
-
let l = "", d = "";
|
|
202
|
-
return c === "bottom" ? (l = o ? m : `${y}px`, d = `${-p}px`) : c === "top" ? (l = o ? m : `${y}px`, d = `${t.floating.height + p}px`) : c === "right" ? (l = `${-p}px`, d = o ? m : `${A}px`) : c === "left" && (l = `${t.floating.width + p}px`, d = o ? m : `${A}px`), { data: { x: l, y: d } };
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
function V(e) {
|
|
206
|
-
const [i, n = "center"] = e.split("-");
|
|
207
|
-
return [i, n];
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
function o(t) {
|
|
3
|
+
const e = r.useRef(t);
|
|
4
|
+
return r.useEffect(() => {
|
|
5
|
+
e.current = t;
|
|
6
|
+
}), r.useMemo(() => (...n) => {
|
|
7
|
+
var u;
|
|
8
|
+
return (u = e.current) == null ? void 0 : u.call(e, ...n);
|
|
9
|
+
}, []);
|
|
208
10
|
}
|
|
209
|
-
var qe = U, Ge = G, Je = J, Ke = Q;
|
|
210
11
|
export {
|
|
211
|
-
|
|
212
|
-
Ke as Arrow,
|
|
213
|
-
Je as Content,
|
|
214
|
-
U as Popper,
|
|
215
|
-
G as PopperAnchor,
|
|
216
|
-
Q as PopperArrow,
|
|
217
|
-
J as PopperContent,
|
|
218
|
-
qe as Root,
|
|
219
|
-
Ue as createPopperScope
|
|
12
|
+
o as useCallbackRef
|
|
220
13
|
};
|
|
221
14
|
//# sourceMappingURL=index.es490.js.map
|