@netlify/spark-ui 1.23.0 → 1.24.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/chunks/AskNetlify.BiMhcpol.js +2795 -0
- package/dist/chunks/compat.module.BaLKWB4y.js +300 -0
- package/dist/chunks/hooks.module.DRcxknIz.js +180 -0
- package/dist/chunks/{useTimeout.Cq4aqnDe.js → useTimeout.w16oNznN.js} +1 -1
- package/dist/components/preact/AskNetlify/AskNetlify.js +2 -2
- package/dist/components/preact/AskNetlify/hooks/useAskAnalytics.js +1 -1
- package/dist/components/preact/Modal/Modal.js +1 -1
- package/dist/components/preact/Popover/Popover.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchInput.js +2 -2
- package/dist/components/preact/SearchModal/components/SearchLink/SearchLink.js +1 -1
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.d.ts +2 -0
- package/dist/components/preact/SearchModal/components/SearchModal/SearchModal.js +44 -38
- package/dist/components/preact/SearchModal/components/SearchToggle/SearchToggle.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useKeyboardNav.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearch.d.ts +2 -2
- package/dist/components/preact/SearchModal/hooks/useSearch.js +29 -27
- package/dist/components/preact/SearchModal/hooks/useSearchAnalytics.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchHotkeys.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchParams.js +1 -1
- package/dist/components/preact/SearchModal/hooks/useSearchToggles.js +1 -1
- package/dist/components/preact/SearchModal/types/search.types.d.ts +19 -0
- package/dist/components/preact/index.js +2 -2
- package/package.json +4 -4
- package/packages/components/YoutubeVideo.astro +2 -1
- package/packages/components/preact/SearchModal/components/SearchModal/SearchModal.tsx +11 -3
- package/packages/components/preact/SearchModal/hooks/useSearch.ts +8 -6
- package/packages/components/preact/SearchModal/types/search.types.tsx +24 -0
- package/packages/components/preact/index.ts +1 -1
- package/dist/chunks/AskNetlify.CpaPeYsd.js +0 -4389
- package/dist/chunks/compat.module.8cuvf1_R.js +0 -298
- package/dist/chunks/hooks.module.DGkdD5n9.js +0 -177
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { Component as p, options as a, createElement as s, Fragment as v, toChildArray as f, createRef as X, createContext as ee, cloneElement as te, render as m, hydrate as ne } from "preact";
|
|
2
|
+
import { x as T, d as S, A as D, h as L, T as M, _ as y, F as V, g as F, y as k, P as W, q as z } from "./hooks.module.DRcxknIz.js";
|
|
3
|
+
function H(e, t) {
|
|
4
|
+
for (var n in t) e[n] = t[n];
|
|
5
|
+
return e;
|
|
6
|
+
}
|
|
7
|
+
function E(e, t) {
|
|
8
|
+
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
9
|
+
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
10
|
+
return !1;
|
|
11
|
+
}
|
|
12
|
+
function B(e, t) {
|
|
13
|
+
var n = t(), r = S({ t: { __: n, u: t } }), o = r[0].t, u = r[1];
|
|
14
|
+
return y(function() {
|
|
15
|
+
o.__ = n, o.u = t, C(o) && u({ t: o });
|
|
16
|
+
}, [e, n, t]), k(function() {
|
|
17
|
+
return C(o) && u({ t: o }), e(function() {
|
|
18
|
+
C(o) && u({ t: o });
|
|
19
|
+
});
|
|
20
|
+
}, [e]), n;
|
|
21
|
+
}
|
|
22
|
+
function C(e) {
|
|
23
|
+
try {
|
|
24
|
+
return !((t = e.__) === (n = e.u()) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
|
|
25
|
+
} catch {
|
|
26
|
+
return !0;
|
|
27
|
+
}
|
|
28
|
+
var t, n;
|
|
29
|
+
}
|
|
30
|
+
function j(e) {
|
|
31
|
+
e();
|
|
32
|
+
}
|
|
33
|
+
function q(e) {
|
|
34
|
+
return e;
|
|
35
|
+
}
|
|
36
|
+
function Z() {
|
|
37
|
+
return [!1, j];
|
|
38
|
+
}
|
|
39
|
+
var Y = y;
|
|
40
|
+
function R(e, t) {
|
|
41
|
+
this.props = e, this.context = t;
|
|
42
|
+
}
|
|
43
|
+
function re(e, t) {
|
|
44
|
+
function n(o) {
|
|
45
|
+
var u = this.props.ref;
|
|
46
|
+
return u != o.ref && u && (typeof u == "function" ? u(null) : u.current = null), t ? !t(this.props, o) || u != o.ref : E(this.props, o);
|
|
47
|
+
}
|
|
48
|
+
function r(o) {
|
|
49
|
+
return this.shouldComponentUpdate = n, s(e, o);
|
|
50
|
+
}
|
|
51
|
+
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.__f = r.prototype.isReactComponent = !0, r.type = e, r;
|
|
52
|
+
}
|
|
53
|
+
(R.prototype = new p()).isPureReactComponent = !0, R.prototype.shouldComponentUpdate = function(e, t) {
|
|
54
|
+
return E(this.props, e) || E(this.state, t);
|
|
55
|
+
};
|
|
56
|
+
var N = a.__b;
|
|
57
|
+
a.__b = function(e) {
|
|
58
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), N && N(e);
|
|
59
|
+
};
|
|
60
|
+
var oe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
61
|
+
function ue(e) {
|
|
62
|
+
function t(n) {
|
|
63
|
+
var r = H({}, n);
|
|
64
|
+
return delete r.ref, e(r, n.ref || null);
|
|
65
|
+
}
|
|
66
|
+
return t.$$typeof = oe, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
67
|
+
}
|
|
68
|
+
var P = function(e, t) {
|
|
69
|
+
return e == null ? null : f(f(e).map(t));
|
|
70
|
+
}, _e = { map: P, forEach: P, count: function(e) {
|
|
71
|
+
return e ? f(e).length : 0;
|
|
72
|
+
}, only: function(e) {
|
|
73
|
+
var t = f(e);
|
|
74
|
+
if (t.length !== 1) throw "Children.only";
|
|
75
|
+
return t[0];
|
|
76
|
+
}, toArray: f }, ae = a.__e;
|
|
77
|
+
a.__e = function(e, t, n, r) {
|
|
78
|
+
if (e.then) {
|
|
79
|
+
for (var o, u = t; u = u.__; ) if ((o = u.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
80
|
+
}
|
|
81
|
+
ae(e, t, n, r);
|
|
82
|
+
};
|
|
83
|
+
var O = a.unmount;
|
|
84
|
+
function G(e, t, n) {
|
|
85
|
+
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
86
|
+
typeof r.__c == "function" && r.__c();
|
|
87
|
+
}), e.__c.__H = null), (e = H({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
88
|
+
return G(r, t, n);
|
|
89
|
+
})), e;
|
|
90
|
+
}
|
|
91
|
+
function J(e, t, n) {
|
|
92
|
+
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
93
|
+
return J(r, t, n);
|
|
94
|
+
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
95
|
+
}
|
|
96
|
+
function h() {
|
|
97
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
98
|
+
}
|
|
99
|
+
function K(e) {
|
|
100
|
+
var t = e.__ && e.__.__c;
|
|
101
|
+
return t && t.__a && t.__a(e);
|
|
102
|
+
}
|
|
103
|
+
function ie(e) {
|
|
104
|
+
var t, n, r, o = null;
|
|
105
|
+
function u(_) {
|
|
106
|
+
if (t || (t = e()).then(function(i) {
|
|
107
|
+
i && (o = i.default || i), r = !0;
|
|
108
|
+
}, function(i) {
|
|
109
|
+
n = i, r = !0;
|
|
110
|
+
}), n) throw n;
|
|
111
|
+
if (!r) throw t;
|
|
112
|
+
return o ? s(o, _) : null;
|
|
113
|
+
}
|
|
114
|
+
return u.displayName = "Lazy", u.__f = !0, u;
|
|
115
|
+
}
|
|
116
|
+
function d() {
|
|
117
|
+
this.i = null, this.l = null;
|
|
118
|
+
}
|
|
119
|
+
a.unmount = function(e) {
|
|
120
|
+
var t = e.__c;
|
|
121
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), O && O(e);
|
|
122
|
+
}, (h.prototype = new p()).__c = function(e, t) {
|
|
123
|
+
var n = t.__c, r = this;
|
|
124
|
+
r.o == null && (r.o = []), r.o.push(n);
|
|
125
|
+
var o = K(r.__v), u = !1, _ = function() {
|
|
126
|
+
u || r.__z || (u = !0, n.__R = null, o ? o(l) : l());
|
|
127
|
+
};
|
|
128
|
+
n.__R = _;
|
|
129
|
+
var i = n.__P;
|
|
130
|
+
n.__P = null;
|
|
131
|
+
var l = function() {
|
|
132
|
+
if (!--r.__u) {
|
|
133
|
+
if (r.state.__a) {
|
|
134
|
+
var c = r.state.__a;
|
|
135
|
+
r.__v.__k[0] = J(c, c.__c.__P, c.__c.__O);
|
|
136
|
+
}
|
|
137
|
+
var g;
|
|
138
|
+
for (r.setState({ __a: r.__b = null }); g = r.o.pop(); ) g.__P = i, g.forceUpdate();
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(_, _);
|
|
142
|
+
}, h.prototype.componentWillUnmount = function() {
|
|
143
|
+
this.o = [];
|
|
144
|
+
}, h.prototype.render = function(e, t) {
|
|
145
|
+
if (this.__b) {
|
|
146
|
+
if (this.__v.__k) {
|
|
147
|
+
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
148
|
+
this.__v.__k[0] = G(this.__b, n, r.__O = r.__P);
|
|
149
|
+
}
|
|
150
|
+
this.__b = null;
|
|
151
|
+
}
|
|
152
|
+
var o = t.__a && s(v, null, e.fallback);
|
|
153
|
+
return o && (o.__u &= -33), [s(v, null, t.__a ? null : e.children), o];
|
|
154
|
+
};
|
|
155
|
+
var w = function(e, t, n) {
|
|
156
|
+
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
157
|
+
for (; n.length > 3; ) n.pop()();
|
|
158
|
+
if (n[1] < n[0]) break;
|
|
159
|
+
e.i = n = n[2];
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
function le(e) {
|
|
163
|
+
return this.getChildContext = function() {
|
|
164
|
+
return e.context;
|
|
165
|
+
}, e.children;
|
|
166
|
+
}
|
|
167
|
+
function ce(e) {
|
|
168
|
+
var t = this, n = e.h;
|
|
169
|
+
if (t.componentWillUnmount = function() {
|
|
170
|
+
m(null, t.v), t.v = null, t.h = null;
|
|
171
|
+
}, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
|
|
172
|
+
for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
173
|
+
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
174
|
+
return !0;
|
|
175
|
+
}, namespaceURI: n.namespaceURI, insertBefore: function(o, u) {
|
|
176
|
+
this.childNodes.push(o), t.h.insertBefore(o, u);
|
|
177
|
+
}, removeChild: function(o) {
|
|
178
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
179
|
+
} };
|
|
180
|
+
}
|
|
181
|
+
m(s(le, { context: t.context }, e.__v), t.v);
|
|
182
|
+
}
|
|
183
|
+
function fe(e, t) {
|
|
184
|
+
var n = s(ce, { __v: e, h: t });
|
|
185
|
+
return n.containerInfo = t, n;
|
|
186
|
+
}
|
|
187
|
+
(d.prototype = new p()).__a = function(e) {
|
|
188
|
+
var t = this, n = K(t.__v), r = t.l.get(e);
|
|
189
|
+
return r[0]++, function(o) {
|
|
190
|
+
var u = function() {
|
|
191
|
+
t.props.revealOrder ? (r.push(o), w(t, e, r)) : o();
|
|
192
|
+
};
|
|
193
|
+
n ? n(u) : u();
|
|
194
|
+
};
|
|
195
|
+
}, d.prototype.render = function(e) {
|
|
196
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
197
|
+
var t = f(e.children);
|
|
198
|
+
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
199
|
+
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
200
|
+
return e.children;
|
|
201
|
+
}, d.prototype.componentDidUpdate = d.prototype.componentDidMount = function() {
|
|
202
|
+
var e = this;
|
|
203
|
+
this.l.forEach(function(t, n) {
|
|
204
|
+
w(e, n, t);
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
var Q = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, se = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, pe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, de = /[A-Z0-9]/g, ve = typeof document < "u", he = function(e) {
|
|
208
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
209
|
+
};
|
|
210
|
+
function me(e, t, n) {
|
|
211
|
+
return t.__k == null && (t.textContent = ""), m(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
212
|
+
}
|
|
213
|
+
function ye(e, t, n) {
|
|
214
|
+
return ne(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
215
|
+
}
|
|
216
|
+
p.prototype.isReactComponent = !0, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
217
|
+
Object.defineProperty(p.prototype, e, { configurable: !0, get: function() {
|
|
218
|
+
return this["UNSAFE_" + e];
|
|
219
|
+
}, set: function(t) {
|
|
220
|
+
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
221
|
+
} });
|
|
222
|
+
});
|
|
223
|
+
var U = a.event;
|
|
224
|
+
a.event = function(e) {
|
|
225
|
+
return U && (e = U(e)), e.persist = function() {
|
|
226
|
+
}, e.isPropagationStopped = function() {
|
|
227
|
+
return this.cancelBubble;
|
|
228
|
+
}, e.isDefaultPrevented = function() {
|
|
229
|
+
return this.defaultPrevented;
|
|
230
|
+
}, e.nativeEvent = e;
|
|
231
|
+
};
|
|
232
|
+
var x, be = { configurable: !0, get: function() {
|
|
233
|
+
return this.class;
|
|
234
|
+
} }, $ = a.vnode;
|
|
235
|
+
a.vnode = function(e) {
|
|
236
|
+
typeof e.type == "string" && function(t) {
|
|
237
|
+
var n = t.props, r = t.type, o = {}, u = r.indexOf("-") == -1;
|
|
238
|
+
for (var _ in n) {
|
|
239
|
+
var i = n[_];
|
|
240
|
+
if (!(_ === "value" && "defaultValue" in n && i == null || ve && _ === "children" && r === "noscript" || _ === "class" || _ === "className")) {
|
|
241
|
+
var l = _.toLowerCase();
|
|
242
|
+
_ === "defaultValue" && "value" in n && n.value == null ? _ = "value" : _ === "download" && i === !0 ? i = "" : l === "translate" && i === "no" ? i = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? _ = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || he(n.type) ? l === "onfocus" ? _ = "onfocusin" : l === "onblur" ? _ = "onfocusout" : pe.test(_) && (_ = l) : l = _ = "oninput" : u && se.test(_) ? _ = _.replace(de, "-$&").toLowerCase() : i === null && (i = void 0), l === "oninput" && o[_ = l] && (_ = "oninputCapture"), o[_] = i;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
r == "select" && (o.multiple && Array.isArray(o.value) && (o.value = f(n.children).forEach(function(c) {
|
|
246
|
+
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
247
|
+
})), o.defaultValue != null && (o.value = f(n.children).forEach(function(c) {
|
|
248
|
+
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
249
|
+
}))), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", be)) : n.className && (o.class = o.className = n.className), t.props = o;
|
|
250
|
+
}(e), e.$$typeof = Q, $ && $(e);
|
|
251
|
+
};
|
|
252
|
+
var I = a.__r;
|
|
253
|
+
a.__r = function(e) {
|
|
254
|
+
I && I(e), x = e.__c;
|
|
255
|
+
};
|
|
256
|
+
var A = a.diffed;
|
|
257
|
+
a.diffed = function(e) {
|
|
258
|
+
A && A(e);
|
|
259
|
+
var t = e.props, n = e.__e;
|
|
260
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), x = null;
|
|
261
|
+
};
|
|
262
|
+
var ge = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
263
|
+
return x.__n[e.__c].props.value;
|
|
264
|
+
}, useCallback: z, useContext: T, useDebugValue: W, useDeferredValue: q, useEffect: k, useId: F, useImperativeHandle: V, useInsertionEffect: Y, useLayoutEffect: y, useMemo: M, useReducer: L, useRef: D, useState: S, useSyncExternalStore: B, useTransition: Z } } };
|
|
265
|
+
function Ce(e) {
|
|
266
|
+
return s.bind(null, e);
|
|
267
|
+
}
|
|
268
|
+
function b(e) {
|
|
269
|
+
return !!e && e.$$typeof === Q;
|
|
270
|
+
}
|
|
271
|
+
function Ee(e) {
|
|
272
|
+
return b(e) && e.type === v;
|
|
273
|
+
}
|
|
274
|
+
function Re(e) {
|
|
275
|
+
return !!e && typeof e.displayName == "string" && e.displayName.indexOf("Memo(") == 0;
|
|
276
|
+
}
|
|
277
|
+
function Se(e) {
|
|
278
|
+
return b(e) ? te.apply(null, arguments) : e;
|
|
279
|
+
}
|
|
280
|
+
function ke(e) {
|
|
281
|
+
return !!e.__k && (m(null, e), !0);
|
|
282
|
+
}
|
|
283
|
+
function xe(e) {
|
|
284
|
+
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
285
|
+
}
|
|
286
|
+
var Ne = function(e, t) {
|
|
287
|
+
return e(t);
|
|
288
|
+
}, Pe = function(e, t) {
|
|
289
|
+
var n = a.debounceRendering;
|
|
290
|
+
a.debounceRendering = function(o) {
|
|
291
|
+
return o();
|
|
292
|
+
};
|
|
293
|
+
var r = e(t);
|
|
294
|
+
return a.debounceRendering = n, r;
|
|
295
|
+
}, Oe = b, $e = { useState: S, useId: F, useReducer: L, useEffect: k, useLayoutEffect: y, useInsertionEffect: Y, useTransition: Z, useDeferredValue: q, useSyncExternalStore: B, startTransition: j, useRef: D, useImperativeHandle: V, useMemo: M, useCallback: z, useContext: T, useDebugValue: W, version: "18.3.1", Children: _e, render: me, hydrate: ye, unmountComponentAtNode: ke, createPortal: fe, createElement: s, createContext: ee, createFactory: Ce, cloneElement: Se, createRef: X, Fragment: v, isValidElement: b, isElement: Oe, isFragment: Ee, isMemo: Re, findDOMNode: xe, Component: p, PureComponent: R, memo: re, forwardRef: ue, flushSync: Pe, unstable_batchedUpdates: Ne, StrictMode: v, Suspense: h, SuspenseList: d, lazy: ie, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ge };
|
|
296
|
+
export {
|
|
297
|
+
ue as D,
|
|
298
|
+
$e as g,
|
|
299
|
+
Se as m
|
|
300
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { options as W } from "preact";
|
|
2
|
+
var a, o, d, A, l = 0, C = [], r = W, F = r.__b, b = r.__r, q = r.diffed, k = r.__c, T = r.unmount, U = r.__;
|
|
3
|
+
function m(t, _) {
|
|
4
|
+
r.__h && r.__h(o, t, l || _), l = 0;
|
|
5
|
+
var n = o.__H || (o.__H = { __: [], __h: [] });
|
|
6
|
+
return t >= n.__.length && n.__.push({}), n.__[t];
|
|
7
|
+
}
|
|
8
|
+
function E(t) {
|
|
9
|
+
return l = 1, j(P, t);
|
|
10
|
+
}
|
|
11
|
+
function j(t, _, n) {
|
|
12
|
+
var u = m(a++, 2);
|
|
13
|
+
if (u.t = t, !u.__c && (u.__ = [n ? n(_) : P(void 0, _), function(i) {
|
|
14
|
+
var c = u.__N ? u.__N[0] : u.__[0], f = u.t(c, i);
|
|
15
|
+
c !== f && (u.__N = [f, u.__[1]], u.__c.setState({}));
|
|
16
|
+
}], u.__c = o, !o.__f)) {
|
|
17
|
+
var v = function(i, c, f) {
|
|
18
|
+
if (!u.__c.__H) return !0;
|
|
19
|
+
var s = u.__c.__H.__.filter(function(e) {
|
|
20
|
+
return e.__c;
|
|
21
|
+
});
|
|
22
|
+
if (s.every(function(e) {
|
|
23
|
+
return !e.__N;
|
|
24
|
+
})) return !h || h.call(this, i, c, f);
|
|
25
|
+
var g = u.__c.props !== i;
|
|
26
|
+
return s.some(function(e) {
|
|
27
|
+
if (e.__N) {
|
|
28
|
+
var V = e.__[0];
|
|
29
|
+
e.__ = e.__N, e.__N = void 0, V !== e.__[0] && (g = !0);
|
|
30
|
+
}
|
|
31
|
+
}), h && h.call(this, i, c, f) || g;
|
|
32
|
+
};
|
|
33
|
+
o.__f = !0;
|
|
34
|
+
var h = o.shouldComponentUpdate, y = o.componentWillUpdate;
|
|
35
|
+
o.componentWillUpdate = function(i, c, f) {
|
|
36
|
+
if (this.__e) {
|
|
37
|
+
var s = h;
|
|
38
|
+
h = void 0, v(i, c, f), h = s;
|
|
39
|
+
}
|
|
40
|
+
y && y.call(this, i, c, f);
|
|
41
|
+
}, o.shouldComponentUpdate = v;
|
|
42
|
+
}
|
|
43
|
+
return u.__N || u.__;
|
|
44
|
+
}
|
|
45
|
+
function G(t, _) {
|
|
46
|
+
var n = m(a++, 3);
|
|
47
|
+
!r.__s && N(n.__H, _) && (n.__ = t, n.u = _, o.__H.__h.push(n));
|
|
48
|
+
}
|
|
49
|
+
function w(t, _) {
|
|
50
|
+
var n = m(a++, 4);
|
|
51
|
+
!r.__s && N(n.__H, _) && (n.__ = t, n.u = _, o.__h.push(n));
|
|
52
|
+
}
|
|
53
|
+
function I(t) {
|
|
54
|
+
return l = 5, D(function() {
|
|
55
|
+
return { current: t };
|
|
56
|
+
}, []);
|
|
57
|
+
}
|
|
58
|
+
function J(t, _, n) {
|
|
59
|
+
l = 6, w(function() {
|
|
60
|
+
if (typeof t == "function") {
|
|
61
|
+
var u = t(_());
|
|
62
|
+
return function() {
|
|
63
|
+
t(null), u && typeof u == "function" && u();
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (t) return t.current = _(), function() {
|
|
67
|
+
return t.current = null;
|
|
68
|
+
};
|
|
69
|
+
}, n == null ? n : n.concat(t));
|
|
70
|
+
}
|
|
71
|
+
function D(t, _) {
|
|
72
|
+
var n = m(a++, 7);
|
|
73
|
+
return N(n.__H, _) && (n.__ = t(), n.__H = _, n.__h = t), n.__;
|
|
74
|
+
}
|
|
75
|
+
function K(t, _) {
|
|
76
|
+
return l = 8, D(function() {
|
|
77
|
+
return t;
|
|
78
|
+
}, _);
|
|
79
|
+
}
|
|
80
|
+
function L(t) {
|
|
81
|
+
var _ = o.context[t.__c], n = m(a++, 9);
|
|
82
|
+
return n.c = t, _ ? (n.__ == null && (n.__ = !0, _.sub(o)), _.props.value) : t.__;
|
|
83
|
+
}
|
|
84
|
+
function M(t, _) {
|
|
85
|
+
r.useDebugValue && r.useDebugValue(_ ? _(t) : t);
|
|
86
|
+
}
|
|
87
|
+
function O() {
|
|
88
|
+
var t = m(a++, 11);
|
|
89
|
+
if (!t.__) {
|
|
90
|
+
for (var _ = o.__v; _ !== null && !_.__m && _.__ !== null; ) _ = _.__;
|
|
91
|
+
var n = _.__m || (_.__m = [0, 0]);
|
|
92
|
+
t.__ = "P" + n[0] + "-" + n[1]++;
|
|
93
|
+
}
|
|
94
|
+
return t.__;
|
|
95
|
+
}
|
|
96
|
+
function z() {
|
|
97
|
+
for (var t; t = C.shift(); ) {
|
|
98
|
+
var _ = t.__H;
|
|
99
|
+
if (t.__P && _) try {
|
|
100
|
+
_.__h.some(p), _.__h.some(H), _.__h = [];
|
|
101
|
+
} catch (n) {
|
|
102
|
+
_.__h = [], r.__e(n, t.__v);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
r.__b = function(t) {
|
|
107
|
+
o = null, F && F(t);
|
|
108
|
+
}, r.__ = function(t, _) {
|
|
109
|
+
t && _.__k && _.__k.__m && (t.__m = _.__k.__m), U && U(t, _);
|
|
110
|
+
}, r.__r = function(t) {
|
|
111
|
+
b && b(t), a = 0;
|
|
112
|
+
var _ = (o = t.__c).__H;
|
|
113
|
+
_ && (d === o ? (_.__h = [], o.__h = [], _.__.some(function(n) {
|
|
114
|
+
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
115
|
+
})) : (_.__h.some(p), _.__h.some(H), _.__h = [], a = 0)), d = o;
|
|
116
|
+
}, r.diffed = function(t) {
|
|
117
|
+
q && q(t);
|
|
118
|
+
var _ = t.__c;
|
|
119
|
+
_ && _.__H && (_.__H.__h.length && (C.push(_) !== 1 && A === r.requestAnimationFrame || ((A = r.requestAnimationFrame) || B)(z)), _.__H.__.some(function(n) {
|
|
120
|
+
n.u && (n.__H = n.u), n.u = void 0;
|
|
121
|
+
})), d = o = null;
|
|
122
|
+
}, r.__c = function(t, _) {
|
|
123
|
+
_.some(function(n) {
|
|
124
|
+
try {
|
|
125
|
+
n.__h.some(p), n.__h = n.__h.filter(function(u) {
|
|
126
|
+
return !u.__ || H(u);
|
|
127
|
+
});
|
|
128
|
+
} catch (u) {
|
|
129
|
+
_.some(function(v) {
|
|
130
|
+
v.__h && (v.__h = []);
|
|
131
|
+
}), _ = [], r.__e(u, n.__v);
|
|
132
|
+
}
|
|
133
|
+
}), k && k(t, _);
|
|
134
|
+
}, r.unmount = function(t) {
|
|
135
|
+
T && T(t);
|
|
136
|
+
var _, n = t.__c;
|
|
137
|
+
n && n.__H && (n.__H.__.some(function(u) {
|
|
138
|
+
try {
|
|
139
|
+
p(u);
|
|
140
|
+
} catch (v) {
|
|
141
|
+
_ = v;
|
|
142
|
+
}
|
|
143
|
+
}), n.__H = void 0, _ && r.__e(_, n.__v));
|
|
144
|
+
};
|
|
145
|
+
var x = typeof requestAnimationFrame == "function";
|
|
146
|
+
function B(t) {
|
|
147
|
+
var _, n = function() {
|
|
148
|
+
clearTimeout(u), x && cancelAnimationFrame(_), setTimeout(t);
|
|
149
|
+
}, u = setTimeout(n, 35);
|
|
150
|
+
x && (_ = requestAnimationFrame(n));
|
|
151
|
+
}
|
|
152
|
+
function p(t) {
|
|
153
|
+
var _ = o, n = t.__c;
|
|
154
|
+
typeof n == "function" && (t.__c = void 0, n()), o = _;
|
|
155
|
+
}
|
|
156
|
+
function H(t) {
|
|
157
|
+
var _ = o;
|
|
158
|
+
t.__c = t.__(), o = _;
|
|
159
|
+
}
|
|
160
|
+
function N(t, _) {
|
|
161
|
+
return !t || t.length !== _.length || _.some(function(n, u) {
|
|
162
|
+
return n !== t[u];
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function P(t, _) {
|
|
166
|
+
return typeof _ == "function" ? _(t) : _;
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
I as A,
|
|
170
|
+
J as F,
|
|
171
|
+
M as P,
|
|
172
|
+
D as T,
|
|
173
|
+
w as _,
|
|
174
|
+
E as d,
|
|
175
|
+
O as g,
|
|
176
|
+
j as h,
|
|
177
|
+
K as q,
|
|
178
|
+
L as x,
|
|
179
|
+
G as y
|
|
180
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
import "../../../chunks/hooks.module.
|
|
3
|
-
import { A as d } from "../../../chunks/AskNetlify.
|
|
2
|
+
import "../../../chunks/hooks.module.DRcxknIz.js";
|
|
3
|
+
import { A as d } from "../../../chunks/AskNetlify.BiMhcpol.js";
|
|
4
4
|
import "./components/QuestionList/questions.js";
|
|
5
5
|
import "./components/QuestionList/QuestionList.js";
|
|
6
6
|
import "./components/BackButton.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, q as n } from "../../../../chunks/hooks.module.
|
|
1
|
+
import { A as o, q as n } from "../../../../chunks/hooks.module.DRcxknIz.js";
|
|
2
2
|
import { A as u } from "../../../../chunks/analytics.D_dJH08O.js";
|
|
3
3
|
function A() {
|
|
4
4
|
const r = o(new u()).current, s = n((e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as l } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
import { D as d } from "../../../chunks/compat.module.
|
|
2
|
+
import { D as d } from "../../../chunks/compat.module.BaLKWB4y.js";
|
|
3
3
|
const u = d(function({ children: o, className: r, ...a }, t) {
|
|
4
4
|
return /* @__PURE__ */ l("dialog", { ref: t, className: r, role: "dialog", "aria-modal": "true", ...a, children: o });
|
|
5
5
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as r } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
import { g as d } from "../../../chunks/hooks.module.
|
|
2
|
+
import { g as d } from "../../../chunks/hooks.module.DRcxknIz.js";
|
|
3
3
|
import '../../../assets/Popover.css';const v = ({
|
|
4
4
|
id: e,
|
|
5
5
|
content: p,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as e } from "../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
import { d as u, y as h } from "../../../../chunks/hooks.module.
|
|
3
|
-
import { u as o } from "../../../../chunks/useTimeout.
|
|
2
|
+
import { d as u, y as h } from "../../../../chunks/hooks.module.DRcxknIz.js";
|
|
3
|
+
import { u as o } from "../../../../chunks/useTimeout.w16oNznN.js";
|
|
4
4
|
import d from "../../Icon/index.js";
|
|
5
5
|
const I = (a) => {
|
|
6
6
|
const [i, l] = u(""), { reset: r, run: t } = o((n) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as a } from "../../../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
|
|
2
|
-
import "../../../../../chunks/hooks.module.
|
|
2
|
+
import "../../../../../chunks/hooks.module.DRcxknIz.js";
|
|
3
3
|
import { useSearchAnalytics as k } from "../../hooks/useSearchAnalytics.js";
|
|
4
4
|
import i from "../../../Icon/index.js";
|
|
5
5
|
import '../../../../../assets/SearchLink.css';const u = ({
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ComponentChildren } from 'preact';
|
|
2
|
+
import { PagefindFilters } from '../../types/search.types';
|
|
2
3
|
interface Props {
|
|
3
4
|
children: ComponentChildren;
|
|
4
5
|
className?: string;
|
|
5
6
|
debug?: boolean;
|
|
6
7
|
kapaIntegrationId?: string;
|
|
8
|
+
filters?: PagefindFilters;
|
|
7
9
|
}
|
|
8
10
|
declare function SearchModal(props?: Props): import("preact").JSX.Element;
|
|
9
11
|
export default SearchModal;
|