1import { c as x, u as W } from "./DSBgBLEA.js"; 2import { im as S, Y as h, io as R, bm as T, by as g, ah as z, g as y, hM as I, d as L, br as j, aN as M, bO as q, dF as K, ip as V, iq as F, bx as C, X as H, ir as Y, z as _, f as B, y as G, G as k, ae as X, l as O, is as J, k as Q, aC as Z, it as ee } from "./B5ttsc57.js"; 3import { r as te, P as ne } from "./Dq-ojowy.js"; 4const [se, he] = x("ConfigProvider"); 5let ae = 0; 6function Ee(a, e = "reka") { 7 const t = se({ useId: void 0 }); 8 return S ? "".concat(e, "-").concat(S()) : t.useId ? "".concat(e, "-").concat(t.useId()) : "".concat(e, "-").concat(++ae); 9} 10function oe(a, e) { 11 const t = h(a); 12 function n(s) { 13 var _a; 14 return (_a = e[t.value][s]) != null ? _a : t.value; 15 } 16 return { state: t, dispatch: (s) => { 17 t.value = n(s); 18 } }; 19} 20function ie(a, e) { 21 var _a, _b; 22 const t = h({}), n = h("none"), i = h(a), s = a.value ? "mounted" : "unmounted"; 23 let o; 24 const l = (_b = (_a = e.value) == null ? void 0 : _a.ownerDocument.defaultView) != null ? _b : R, { state: d, dispatch: f } = oe(s, { mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" }, unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" }, unmounted: { MOUNT: "mounted" } }), c = (u) => { 25 var _a2; 26 if (I) { 27 const v = new CustomEvent(u, { bubbles: false, cancelable: false }); 28 (_a2 = e.value) == null ? void 0 : _a2.dispatchEvent(v); 29 } 30 }; 31 T(a, async (u, v) => { 32 var _a2; 33 const N = v !== u; 34 if (await g(), N) { 35 const A = n.value, b = D(e.value); 36 u ? (f("MOUNT"), c("enter"), b === "none" && c("after-enter")) : b === "none" || b === "undefined" || ((_a2 = t.value) == null ? void 0 : _a2.display) === "none" ? (f("UNMOUNT"), c("leave"), c("after-leave")) : v && A !== b ? (f("ANIMATION_OUT"), c("leave")) : (f("UNMOUNT"), c("after-leave")); 37 } 38 }, { immediate: true }); 39 const p = (u) => { 40 const v = D(e.value), N = v.includes(u.animationName), A = d.value === "mounted" ? "enter" : "leave"; 41 if (u.target === e.value && N && (c("after-".concat(A)), f("ANIMATION_END"), !i.value)) { 42 const b = e.value.style.animationFillMode; 43 e.value.style.animationFillMode = "forwards", o = l == null ? void 0 : l.setTimeout(() => { 44 var _a2; 45 ((_a2 = e.value) == null ? void 0 : _a2.style.animationFillMode) === "forwards" && (e.value.style.animationFillMode = b); 46 }); 47 } 48 u.target === e.value && v === "none" && f("ANIMATION_END"); 49 }, w = (u) => { 50 u.target === e.value && (n.value = D(e.value)); 51 }, P = T(e, (u, v) => { 52 u ? (t.value = getComputedStyle(u), u.addEventListener("animationstart", w), u.addEventListener("animationcancel", p), u.addEventListener("animationend", p)) : (f("ANIMATION_END"), o !== void 0 && (l == null ? void 0 : l.clearTimeout(o)), v == null ? void 0 : v.removeEventListener("animationstart", w), v == null ? void 0 : v.removeEventListener("animationcancel", p), v == null ? void 0 : v.removeEventListener("animationend", p)); 53 }, { immediate: true }), r = T(d, () => { 54 const u = D(e.value); 55 n.value = d.value === "mounted" ? u : "none"; 56 }); 57 return z(() => { 58 P(), r(); 59 }), { isPresent: y(() => ["mounted", "unmountSuspended"].includes(d.value)) }; 60} 61function D(a) { 62 return a && getComputedStyle(a).animationName || "none"; 63} 64const be = L({ name: "Presence", props: { present: { type: Boolean, required: true }, forceMount: { type: Boolean } }, slots: {}, setup(a, { slots: e, expose: t }) { 65 var _a; 66 const { present: n, forceMount: i } = j(a), s = h(), { isPresent: o } = ie(n, s); 67 t({ present: o }); 68 let l = e.default({ present: o.value }); 69 l = te(l || []); 70 const d = M(); 71 if (l && (l == null ? void 0 : l.length) > 1) { 72 const f = ((_a = d == null ? void 0 : d.parent) == null ? void 0 : _a.type.name) ? "<".concat(d.parent.type.name, " />") : "component"; 73 throw new Error(["Detected an invalid children for `".concat(f, "` for `Presence` component."), "", "Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.", "You can apply a few solutions:", ["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((c) => " - ".concat(c)).join("\n")].join("\n")); 74 } 75 return () => i.value || n.value || o.value ? q(e.default({ present: o.value })[0], { ref: (f) => { 76 const c = K(f); 77 return typeof (c == null ? void 0 : c.hasAttribute) > "u" || ((c == null ? void 0 : c.hasAttribute("data-reka-popper-content-wrapper")) ? s.value = c.firstElementChild : s.value = c), c; 78 } }) : null; 79} }); 80function re(a) { 81 const e = M(), t = e == null ? void 0 : e.type.emits, n = {}; 82 return (t == null ? void 0 : t.length) || console.warn("No emitted event found. Please check component: ".concat(e == null ? void 0 : e.type.__name)), t == null ? void 0 : t.forEach((i) => { 83 n[V(F(i))] = (...s) => a(i, ...s); 84 }), n; 85} 86function U(a, e, t) { 87 const n = t.originalEvent.target, i = new CustomEvent(a, { bubbles: false, cancelable: true, detail: t }); 88 e && n.addEventListener(a, e, { once: true }), n.dispatchEvent(i); 89} 90const ue = "dismissableLayer.pointerDownOutside", le = "dismissableLayer.focusOutside"; 91function $(a, e) { 92 const t = e.closest("[data-dismissable-layer]"), n = a.dataset.dismissableLayer === "" ? a : a.querySelector("[data-dismissable-layer]"), i = Array.from(a.ownerDocument.querySelectorAll("[data-dismissable-layer]")); 93 return !!(t && (n === t || i.indexOf(n) < i.indexOf(t))); 94} 95function ce(a, e) { 96 var _a, _b; 97 const t = (_b = (_a = e == null ? void 0 : e.value) == null ? void 0 : _a.ownerDocument) != null ? _b : globalThis == null ? void 0 : globalThis.document, n = h(false), i = h(() => { 98 }); 99 return C((s) => { 100 if (!I) return; 101 const o = async (d) => { 102 const f = d.target; 103 if (!(!(e == null ? void 0 : e.value) || !f)) { 104 if ($(e.value, f)) { 105 n.value = false;
106 return; 107 } 108 if (d.target && !n.value) { 109 let c = function() { 110 U(ue, a, p); 111 }; 112 const p = { originalEvent: d }; 113 d.pointerType === "touch" ? (t.removeEventListener("click", i.value), i.value = c, t.addEventListener("click", i.value, { once: true })) : c(); 114 } else t.removeEventListener("click", i.value); 115 n.value = false; 116 } 117 }, l = window.setTimeout(() => { 118 t.addEventListener("pointerdown", o); 119 }, 0); 120 s(() => { 121 window.clearTimeout(l), t.removeEventListener("pointerdown", o), t.removeEventListener("click", i.value); 122 }); 123 }), { onPointerDownCapture: () => n.value = true }; 124} 125function de(a, e) { 126 var _a, _b; 127 const t = (_b = (_a = e == null ? void 0 : e.value) == null ? void 0 : _a.ownerDocument) != null ? _b : globalThis == null ? void 0 : globalThis.document, n = h(false); 128 return C((i) => { 129 if (!I) return; 130 const s = async (o) => { 131 if (!(e == null ? void 0 : e.value)) return; 132 await g(), await g(); 133 const l = o.target; 134 !e.value || !l || $(e.value, l) || o.target && !n.value && U(le, a, { originalEvent: o }); 135 }; 136 t.addEventListener("focusin", s), i(() => t.removeEventListener("focusin", s)); 137 }), { onFocusCapture: () => n.value = true, onBlurCapture: () => n.value = false }; 138} 139const m = H({ layersRoot: /* @__PURE__ */ new Set(), layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(), branches: /* @__PURE__ */ new Set() }), Oe = L({ __name: "DismissableLayer", props: { disableOutsidePointerEvents: { type: Boolean, default: false }, asChild: { type: Boolean }, as: {} }, emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "dismiss"], setup(a, { emit: e }) { 140 const t = a, n = e, { forwardRef: i, currentElement: s } = W(), o = y(() => { 141 var _a, _b; 142 return (_b = (_a = s.value) == null ? void 0 : _a.ownerDocument) != null ? _b : globalThis.document; 143 }), l = y(() => m.layersRoot), d = y(() => s.value ? Array.from(l.value).indexOf(s.value) : -1), f = y(() => m.layersWithOutsidePointerEventsDisabled.size > 0), c = y(() => { 144 const r = Array.from(l.value), [E] = [...m.layersWithOutsidePointerEventsDisabled].slice(-1), u = r.indexOf(E); 145 return d.value >= u; 146 }), p = ce(async (r) => { 147 const E = [...m.branches].some((u) => u == null ? void 0 : u.contains(r.target)); 148 !c.value || E || (n("pointerDownOutside", r), n("interactOutside", r), await g(), r.defaultPrevented || n("dismiss")); 149 }, s), w = de((r) => { 150 [...m.branches].some((u) => u == null ? void 0 : u.contains(r.target)) || (n("focusOutside", r), n("interactOutside", r), r.defaultPrevented || n("dismiss")); 151 }, s); 152 Y("Escape", (r) => { 153 d.value === l.value.size - 1 && (n("escapeKeyDown", r), r.defaultPrevented || n("dismiss")); 154 }); 155 let P; 156 return C((r) => { 157 s.value && (t.disableOutsidePointerEvents && (m.layersWithOutsidePointerEventsDisabled.size === 0 && (P = o.value.body.style.pointerEvents, o.value.body.style.pointerEvents = "none"), m.layersWithOutsidePointerEventsDisabled.add(s.value)), l.value.add(s.value), r(() => { 158 t.disableOutsidePointerEvents && m.layersWithOutsidePointerEventsDisabled.size === 1 && (o.value.body.style.pointerEvents = P); 159 })); 160 }), C((r) => { 161 r(() => { 162 s.value && (l.value.delete(s.value), m.layersWithOutsidePointerEventsDisabled.delete(s.value)); 163 }); 164 }), (r, E) => (B(), _(O(ne), { ref: O(i), "as-child": r.asChild, as: r.as, "data-dismissable-layer": "", style: X({ pointerEvents: f.value ? c.value ? "auto" : "none" : void 0 }), onFocusCapture: O(w).onFocusCapture, onBlurCapture: O(w).onBlurCapture, onPointerdownCapture: O(p).onPointerDownCapture }, { default: G(() => [k(r.$slots, "default")]), _: 3 }, 8, ["as-child", "as", "style", "onFocusCapture", "onBlurCapture", "onPointerdownCapture"])); 165} }), we = L({ __name: "Teleport", props: { to: { default: "body" }, disabled: { type: Boolean }, defer: { type: Boolean }, forceMount: { type: Boolean } }, setup(a) { 166 const e = J(); 167 return (t, n) => O(e) || t.forceMount ? (B(), _(Z, { key: 0, to: t.to, disabled: t.disabled, defer: t.defer }, [k(t.$slots, "default")], 8, ["to", "disabled", "defer"])) : Q("", true); 168} }); 169function fe(a) { 170 var _a; 171 const e = M(), t = Object.keys((_a = e == null ? void 0 : e.type.props) != null ? _a : {}).reduce((i, s) => { 172 const o = (e == null ? void 0 : e.type.props[s]).default; 173 return o !== void 0 && (i[s] = o), i; 174 }, {}
174), n = ee(a); 175 return y(() => { 176 var _a2; 177 const i = {}, s = (_a2 = e == null ? void 0 : e.vnode.props) != null ? _a2 : {}; 178 return Object.keys(s).forEach((o) => { 179 i[F(o)] = s[o]; 180 }), Object.keys({ ...t, ...i }).reduce((o, l) => (n.value[l] !== void 0 && (o[l] = n.value[l]), o), {}); 181 }); 182} 183function Pe(a, e) { 184 const t = fe(a), n = e ? re(e) : {}; 185 return y(() => ({ ...t.value, ...n })); 186} 187export { 188 be as P, 189 we as _, 190 Oe as a, 191 Pe as b, 192 Ee as c, 193 re as d, 194 oe as e, 195 U as h, 196 se as i, 197 fe as u 198};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.