@searchcraft/vue-sdk 0.7.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.
@@ -0,0 +1,1232 @@
1
+ import { defineComponent as _, ref as Qe, getCurrentInstance as Ge, inject as Xe, h as Ye, resolveComponent as T, openBlock as E, createBlock as k, normalizeProps as q, guardReactiveProps as I, mergeProps as K } from "vue";
2
+ const Z = "routerLink", he = "navManager", Ke = "router", Je = "aria", M = Symbol(), ge = { default: M }, ye = (e) => (e == null ? void 0 : e.split(" ")) || [], Ze = (e, t, r = []) => {
3
+ var n;
4
+ return [...Array.from(((n = e.value) == null ? void 0 : n.classList) || []), ...r].filter((s, l, a) => !t.has(s) && a.indexOf(s) === l);
5
+ }, L = (e, t, r = [], n = [], s, l) => {
6
+ const a = _((o, { attrs: i, slots: f, emit: u }) => {
7
+ var m;
8
+ const c = Qe(), $ = new Set(ye(i.class)), d = Ge(), g = ((m = d == null ? void 0 : d.appContext) == null ? void 0 : m.provides[he]) ? Xe(he) : void 0, v = (h) => {
9
+ const { routerLink: D } = o;
10
+ if (D !== M)
11
+ if (g !== void 0) {
12
+ h.preventDefault();
13
+ let b = { event: h };
14
+ for (const A in o) {
15
+ const S = o[A];
16
+ o.hasOwnProperty(A) && A.startsWith(Ke) && S !== M && (b[A] = S);
17
+ }
18
+ g.navigate(b);
19
+ } else
20
+ console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
21
+ };
22
+ return () => {
23
+ o[s], ye(i.class).forEach((S) => {
24
+ $.add(S);
25
+ });
26
+ const h = o.onClick, D = (S) => {
27
+ h !== void 0 && h(S), S.defaultPrevented || v(S);
28
+ };
29
+ let b = {
30
+ ref: c,
31
+ class: Ze(c, $),
32
+ onClick: D
33
+ };
34
+ for (const S in o) {
35
+ const de = o[S];
36
+ (o.hasOwnProperty(S) && de !== M || S.startsWith(Je)) && (b[S] = de);
37
+ const pe = "on" + S.slice(0, 1).toUpperCase() + S.slice(1), We = i[pe];
38
+ c.value && i.hasOwnProperty(pe) && "addEventListener" in c.value && c.value.addEventListener(S, We);
39
+ }
40
+ return Z in o && o[Z] !== M && (b = {
41
+ ...b,
42
+ href: o[Z]
43
+ }), Ye(e, b, f.default && f.default());
44
+ };
45
+ });
46
+ if (typeof a != "function") {
47
+ let o = [], i = {};
48
+ i.ROUTER_LINK_VALUE = ge, r.forEach((f) => i[f] = ge), o = n, a.name = e, a.emits = o, a.props = i;
49
+ }
50
+ return a;
51
+ }, Ve = /* @__PURE__ */ L("searchcraft-base-search-result", void 0, [
52
+ "titleContent",
53
+ "subtitleContent",
54
+ "bodyContent",
55
+ "footerContent",
56
+ "buttonLabel",
57
+ "buttonHref",
58
+ "buttonTarget",
59
+ "buttonRel",
60
+ "containerHref",
61
+ "containerTarget",
62
+ "containerRel",
63
+ "imageSrc",
64
+ "imageAlt",
65
+ "imagePlacement",
66
+ "customStyles",
67
+ "documentPosition"
68
+ ]), et = /* @__PURE__ */ L("searchcraft-base-search-results", void 0, [
69
+ "adInterval",
70
+ "customStylesForResults",
71
+ "searchResultMappings",
72
+ "placeAdAtEnd",
73
+ "placeAdAtStart",
74
+ "resultImagePlacement",
75
+ "buttonLabel",
76
+ "buttonTarget",
77
+ "buttonRel",
78
+ "containerTarget",
79
+ "containerRel",
80
+ "noResults"
81
+ ], [
82
+ "noResults"
83
+ ]), tt = /* @__PURE__ */ L("searchcraft-button", void 0, [
84
+ "iconElement",
85
+ "iconOnly",
86
+ "iconPosition",
87
+ "label",
88
+ "buttonClick"
89
+ ], [
90
+ "buttonClick"
91
+ ]), nt = /* @__PURE__ */ L("searchcraft-error-message", void 0, [
92
+ "errorMessage"
93
+ ]), rt = /* @__PURE__ */ L("searchcraft-facet-list", void 0, [
94
+ "fieldName",
95
+ "facetSelectionUpdated"
96
+ ], [
97
+ "facetSelectionUpdated"
98
+ ]), st = /* @__PURE__ */ L("searchcraft-filter-panel", void 0, [
99
+ "items"
100
+ ]), ot = /* @__PURE__ */ L("searchcraft-input-form", void 0, [
101
+ "config",
102
+ "autoSearch",
103
+ "buttonPlacement",
104
+ "buttonLabel",
105
+ "inputLabel",
106
+ "customStyles",
107
+ "placeholderValue",
108
+ "searchTerm",
109
+ "inputCleared",
110
+ "noResultsReceived",
111
+ "inputFocus",
112
+ "inputBlur",
113
+ "inputInit",
114
+ "querySubmit"
115
+ ], [
116
+ "inputCleared",
117
+ "noResultsReceived",
118
+ "inputFocus",
119
+ "inputBlur",
120
+ "inputInit",
121
+ "querySubmit"
122
+ ]), at = /* @__PURE__ */ L("searchcraft-input-label", void 0, [
123
+ "inputLabelClassName",
124
+ "label"
125
+ ]), lt = /* @__PURE__ */ L("searchcraft-popover-button"), it = /* @__PURE__ */ L("searchcraft-popover-form", void 0, [
126
+ "config",
127
+ "type",
128
+ "popoverResultMappings",
129
+ "hotkey",
130
+ "hotkeyModifier"
131
+ ]), ct = /* @__PURE__ */ L("searchcraft-results-info"), ft = /* @__PURE__ */ L("searchcraft-slider", void 0, [
132
+ "max",
133
+ "min",
134
+ "granularity",
135
+ "dataType",
136
+ "rangeChanged"
137
+ ], [
138
+ "rangeChanged"
139
+ ]), ut = /* @__PURE__ */ L("searchcraft-toggle-button", void 0, [
140
+ "label",
141
+ "subLabel",
142
+ "toggleUpdated"
143
+ ], [
144
+ "toggleUpdated"
145
+ ]), $t = _({
146
+ name: "SearchcraftButton",
147
+ props: {
148
+ text: String,
149
+ disabled: Boolean,
150
+ type: String,
151
+ onClick: Function
152
+ },
153
+ components: {
154
+ Component: tt
155
+ }
156
+ }), P = (e, t) => {
157
+ const r = e.__vccOpts || e;
158
+ for (const [n, s] of t)
159
+ r[n] = s;
160
+ return r;
161
+ };
162
+ function dt(e, t, r, n, s, l) {
163
+ const a = T("Component");
164
+ return E(), k(a, q(I(e.$props)), null, 16);
165
+ }
166
+ const An = /* @__PURE__ */ P($t, [["render", dt]]), pt = _({
167
+ name: "SearchcraftBaseSearchResult",
168
+ props: {
169
+ titleContent: {
170
+ type: String,
171
+ required: !1
172
+ },
173
+ subtitleContent: {
174
+ type: String,
175
+ required: !1
176
+ },
177
+ bodyContent: {
178
+ type: String,
179
+ required: !1
180
+ },
181
+ footerContent: {
182
+ type: String,
183
+ required: !1
184
+ },
185
+ buttonLabel: {
186
+ type: String,
187
+ required: !1
188
+ },
189
+ buttonHref: {
190
+ type: String,
191
+ required: !1
192
+ },
193
+ buttonTarget: {
194
+ type: String,
195
+ required: !1
196
+ },
197
+ buttonRel: {
198
+ type: String,
199
+ required: !1
200
+ },
201
+ containerHref: {
202
+ type: String,
203
+ required: !1
204
+ },
205
+ containerTarget: {
206
+ type: String,
207
+ required: !1
208
+ },
209
+ containerRel: {
210
+ type: String,
211
+ required: !1
212
+ },
213
+ imageSrc: {
214
+ type: String,
215
+ required: !1
216
+ },
217
+ imageAlt: {
218
+ type: String,
219
+ required: !1
220
+ },
221
+ imagePlacement: {
222
+ type: String,
223
+ required: !1
224
+ },
225
+ customStyles: {
226
+ type: Object,
227
+ required: !1
228
+ },
229
+ documentPosition: {
230
+ type: Number,
231
+ required: !1
232
+ }
233
+ },
234
+ components: {
235
+ Component: Ve
236
+ }
237
+ });
238
+ function ht(e, t, r, n, s, l) {
239
+ const a = T("Component");
240
+ return E(), k(a, q(I(e.$props)), null, 16);
241
+ }
242
+ const On = /* @__PURE__ */ P(pt, [["render", ht]]), gt = _({
243
+ name: "SearchcraftBaseSearchResults",
244
+ props: {
245
+ adInterval: Number,
246
+ customStylesForResults: Object,
247
+ searchResultMappings: Object,
248
+ placeAdAtEnd: Boolean,
249
+ placeAdAtStart: Boolean,
250
+ resultImagePlacement: String,
251
+ buttonLabel: String,
252
+ buttonTarget: String,
253
+ buttonRel: String,
254
+ containerTarget: String,
255
+ containerRel: String,
256
+ noResults: String
257
+ },
258
+ components: {
259
+ Component: et
260
+ }
261
+ });
262
+ function yt(e, t, r, n, s, l) {
263
+ const a = T("Component");
264
+ return E(), k(a, q(I(e.$props)), null, 16);
265
+ }
266
+ const xn = /* @__PURE__ */ P(gt, [["render", yt]]), mt = _({
267
+ name: "SearchcraftErrorMessage",
268
+ props: {
269
+ errorMessage: String
270
+ },
271
+ components: {
272
+ Component: nt
273
+ }
274
+ });
275
+ function St(e, t, r, n, s, l) {
276
+ const a = T("Component");
277
+ return E(), k(a, q(I(e.$props)), null, 16);
278
+ }
279
+ const wn = /* @__PURE__ */ P(mt, [["render", St]]), vt = _({
280
+ name: "SearchcraftFacetList",
281
+ props: {
282
+ fieldName: {
283
+ type: String,
284
+ required: !0
285
+ }
286
+ },
287
+ emits: ["facetSelectionUpdated"],
288
+ components: {
289
+ Component: rt
290
+ }
291
+ });
292
+ function bt(e, t, r, n, s, l) {
293
+ const a = T("Component");
294
+ return E(), k(a, K(e.$props, {
295
+ onFacetSelectionUpdated: t[0] || (t[0] = (o) => e.$emit("facetSelectionUpdated", o))
296
+ }), null, 16);
297
+ }
298
+ const qn = /* @__PURE__ */ P(vt, [["render", bt]]), _t = _({
299
+ name: "SearchcraftFilterPanel",
300
+ props: {
301
+ items: {
302
+ type: Array,
303
+ required: !0
304
+ }
305
+ },
306
+ components: {
307
+ Component: st
308
+ }
309
+ });
310
+ function Ct(e, t, r, n, s, l) {
311
+ const a = T("Component");
312
+ return E(), k(a, q(I(e.$props)), null, 16);
313
+ }
314
+ const In = /* @__PURE__ */ P(_t, [["render", Ct]]), Rt = _({
315
+ name: "SearchcraftInputForm",
316
+ props: {
317
+ config: {
318
+ type: Object,
319
+ required: !1
320
+ },
321
+ autoSearch: {
322
+ type: Boolean,
323
+ default: !1
324
+ },
325
+ buttonPlacement: {
326
+ type: String,
327
+ default: "right"
328
+ },
329
+ buttonLabel: {
330
+ type: String,
331
+ default: "Search"
332
+ },
333
+ inputLabel: {
334
+ type: String,
335
+ default: ""
336
+ },
337
+ customStyles: {
338
+ type: Object,
339
+ default: () => ({})
340
+ },
341
+ placeholderValue: {
342
+ type: String,
343
+ default: "Enter a search term..."
344
+ },
345
+ searchTerm: {
346
+ type: String,
347
+ default: ""
348
+ },
349
+ debounceDelay: {
350
+ type: Number,
351
+ default: 300
352
+ }
353
+ },
354
+ emits: [
355
+ "inputCleared",
356
+ "noResultsReceived",
357
+ "querySubmit",
358
+ "inputFocus",
359
+ "inputBlur"
360
+ ],
361
+ components: {
362
+ Component: ot
363
+ }
364
+ });
365
+ function Tt(e, t, r, n, s, l) {
366
+ const a = T("Component");
367
+ return E(), k(a, K(e.$props, {
368
+ onInputCleared: t[0] || (t[0] = (o) => e.$emit("inputCleared", o)),
369
+ onNoResultsReceived: t[1] || (t[1] = (o) => e.$emit("noResultsReceived", o)),
370
+ onQuerySubmit: t[2] || (t[2] = (o) => e.$emit("querySubmit", o)),
371
+ onInputFocus: t[3] || (t[3] = (o) => e.$emit("inputFocus", o)),
372
+ onInputBlur: t[4] || (t[4] = (o) => e.$emit("inputBlur", o))
373
+ }), null, 16);
374
+ }
375
+ const Fn = /* @__PURE__ */ P(Rt, [["render", Tt]]), Et = _({
376
+ name: "SearchcraftInputLabel",
377
+ props: {
378
+ inputLabelClassName: {
379
+ type: String,
380
+ required: !1
381
+ },
382
+ label: {
383
+ type: String,
384
+ required: !1
385
+ }
386
+ },
387
+ components: {
388
+ Component: at
389
+ }
390
+ });
391
+ function kt(e, t, r, n, s, l) {
392
+ const a = T("Component");
393
+ return E(), k(a, q(I(e.$props)), null, 16);
394
+ }
395
+ const Bn = /* @__PURE__ */ P(Et, [["render", kt]]), Lt = _({
396
+ name: "SearchcraftPopoverButton",
397
+ props: {},
398
+ components: {
399
+ Component: lt
400
+ }
401
+ });
402
+ function Pt(e, t, r, n, s, l) {
403
+ const a = T("Component");
404
+ return E(), k(a, q(I(e.$props)), null, 16);
405
+ }
406
+ const Un = /* @__PURE__ */ P(Lt, [["render", Pt]]), At = _({
407
+ name: "SearchcraftPopoverForm",
408
+ props: {
409
+ type: {
410
+ type: String,
411
+ required: !1
412
+ },
413
+ hotkey: {
414
+ type: String,
415
+ required: !1
416
+ },
417
+ hotkeyModifier: {
418
+ type: String,
419
+ required: !1
420
+ },
421
+ config: {
422
+ type: Object,
423
+ required: !1
424
+ },
425
+ popoverResultMappings: {
426
+ type: Object,
427
+ required: !1
428
+ }
429
+ },
430
+ components: {
431
+ Component: it
432
+ }
433
+ });
434
+ function Ot(e, t, r, n, s, l) {
435
+ const a = T("Component");
436
+ return E(), k(a, q(I(e.$props)), null, 16);
437
+ }
438
+ const Hn = /* @__PURE__ */ P(At, [["render", Ot]]), xt = _({
439
+ name: "SearchcraftSlider",
440
+ props: {
441
+ max: {
442
+ type: Number,
443
+ required: !1
444
+ },
445
+ min: {
446
+ type: Number,
447
+ required: !1
448
+ },
449
+ granularity: {
450
+ type: Number,
451
+ required: !1
452
+ },
453
+ dataType: {
454
+ type: String,
455
+ required: !1
456
+ }
457
+ },
458
+ emits: ["rangeChanged"],
459
+ components: {
460
+ Component: ft
461
+ }
462
+ });
463
+ function wt(e, t, r, n, s, l) {
464
+ const a = T("Component");
465
+ return E(), k(a, K(e.$props, {
466
+ onRangeChanged: t[0] || (t[0] = (o) => e.$emit("rangeChanged", o))
467
+ }), null, 16);
468
+ }
469
+ const jn = /* @__PURE__ */ P(xt, [["render", wt]]), qt = _({
470
+ name: "SearchcraftResultsInfo",
471
+ props: {},
472
+ components: {
473
+ Component: ct
474
+ }
475
+ });
476
+ function It(e, t, r, n, s, l) {
477
+ const a = T("Component");
478
+ return E(), k(a, q(I(e.$props)), null, 16);
479
+ }
480
+ const Dn = /* @__PURE__ */ P(qt, [["render", It]]), Ft = _({
481
+ name: "SearchcraftToggleButton",
482
+ props: {
483
+ label: {
484
+ type: String,
485
+ required: !1
486
+ },
487
+ subLabel: {
488
+ type: String,
489
+ required: !1
490
+ }
491
+ },
492
+ emits: ["toggleUpdated"],
493
+ components: {
494
+ Component: ut
495
+ }
496
+ });
497
+ function Bt(e, t, r, n, s, l) {
498
+ const a = T("Component");
499
+ return E(), k(a, K(e.$props, {
500
+ onToggleUpdated: t[0] || (t[0] = (o) => e.$emit("toggleUpdated", o))
501
+ }), null, 16);
502
+ }
503
+ const Mn = /* @__PURE__ */ P(Ft, [["render", Bt]]), Ut = "searchcraft-javascript-sdk", H = (
504
+ /* searchcraft-javascript-sdk */
505
+ { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, modernPropertyDecls: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
506
+ );
507
+ var Ht = Object.defineProperty, jt = (e, t) => {
508
+ for (var r in t)
509
+ Ht(e, r, { get: t[r], enumerable: !0 });
510
+ }, Dt = "http://www.w3.org/2000/svg", Mt = "http://www.w3.org/1999/xhtml", ke = /* @__PURE__ */ new WeakMap(), O = (e) => ke.get(e), zt = (e, t) => {
511
+ const r = {
512
+ $flags$: 0,
513
+ $hostElement$: e,
514
+ $cmpMeta$: t,
515
+ $instanceValues$: /* @__PURE__ */ new Map()
516
+ };
517
+ return r.$onReadyPromise$ = new Promise((s) => r.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], ke.set(e, r);
518
+ }, me = (e, t) => t in e, j = (e, t) => (0, console.error)(e, t), Se = /* @__PURE__ */ new Map(), Nt = (e, t, r) => {
519
+ const n = e.$tagName$.replace(/-/g, "_"), s = e.$lazyBundleId$;
520
+ if (!s)
521
+ return;
522
+ const l = Se.get(s);
523
+ if (l)
524
+ return l[n];
525
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
526
+ return import(
527
+ /* @vite-ignore */
528
+ /* webpackInclude: /\.entry\.js$/ */
529
+ /* webpackExclude: /\.system\.entry\.js$/ */
530
+ /* webpackMode: "lazy" */
531
+ `./${s}.entry.js`
532
+ ).then(
533
+ (a) => (Se.set(s, a), a[n]),
534
+ (a) => {
535
+ j(a, t.$hostElement$);
536
+ }
537
+ );
538
+ }, Q = /* @__PURE__ */ new Map(), Wt = "sty-id", Qt = "{visibility:hidden}.hydrated{visibility:inherit}", Le = "slot-fb{display:contents}slot-fb[hidden]{display:none}", J = typeof window < "u" ? window : {}, R = J.document || { head: {} }, y = {
539
+ $flags$: 0,
540
+ $resourcesUrl$: "",
541
+ jmp: (e) => e(),
542
+ raf: (e) => requestAnimationFrame(e),
543
+ ael: (e, t, r, n) => e.addEventListener(t, r, n),
544
+ rel: (e, t, r, n) => e.removeEventListener(t, r, n),
545
+ ce: (e, t) => new CustomEvent(e, t)
546
+ }, Gt = H.shadowDom, Xt = (e) => Promise.resolve(e), Pe = /* @__PURE__ */ (() => {
547
+ try {
548
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
549
+ } catch {
550
+ }
551
+ return !1;
552
+ })(), ee = !1, ve = [], Ae = [], Yt = (e, t) => (r) => {
553
+ e.push(r), ee || (ee = !0, y.$flags$ & 4 ? le(te) : y.raf(te));
554
+ }, be = (e) => {
555
+ for (let t = 0; t < e.length; t++)
556
+ try {
557
+ e[t](performance.now());
558
+ } catch (r) {
559
+ j(r);
560
+ }
561
+ e.length = 0;
562
+ }, te = () => {
563
+ be(ve), be(Ae), (ee = ve.length > 0) && y.raf(te);
564
+ }, le = (e) => Xt().then(e), Kt = /* @__PURE__ */ Yt(Ae), ie = (e) => (e = typeof e, e === "object" || e === "function");
565
+ function Oe(e) {
566
+ var t, r, n;
567
+ return (n = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? n : void 0;
568
+ }
569
+ var Jt = {};
570
+ jt(Jt, {
571
+ err: () => xe,
572
+ map: () => Zt,
573
+ ok: () => ne,
574
+ unwrap: () => Vt,
575
+ unwrapErr: () => en
576
+ });
577
+ var ne = (e) => ({
578
+ isOk: !0,
579
+ isErr: !1,
580
+ value: e
581
+ }), xe = (e) => ({
582
+ isOk: !1,
583
+ isErr: !0,
584
+ value: e
585
+ });
586
+ function Zt(e, t) {
587
+ if (e.isOk) {
588
+ const r = t(e.value);
589
+ return r instanceof Promise ? r.then((n) => ne(n)) : ne(r);
590
+ }
591
+ if (e.isErr) {
592
+ const r = e.value;
593
+ return xe(r);
594
+ }
595
+ throw "should never get here";
596
+ }
597
+ var Vt = (e) => {
598
+ if (e.isOk)
599
+ return e.value;
600
+ throw e.value;
601
+ }, en = (e) => {
602
+ if (e.isErr)
603
+ return e.value;
604
+ throw e.value;
605
+ }, we = (e) => {
606
+ const t = e.__childNodes || e.childNodes;
607
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && qe(t, e.tagName).forEach((r) => {
608
+ var n;
609
+ r.nodeType === 1 && r.tagName === "SLOT-FB" && ((n = tn(r, r["s-sn"], !1)) != null && n.length ? r.hidden = !0 : r.hidden = !1);
610
+ });
611
+ for (const r of t)
612
+ r.nodeType === 1 && (r.__childNodes || r.childNodes).length && we(r);
613
+ };
614
+ function qe(e, t, r) {
615
+ let n = 0, s = [], l;
616
+ for (; n < e.length; n++)
617
+ l = e[n], l["s-sr"] && l["s-hn"] === t && r === void 0 && s.push(l), s = [...s, ...qe(l.childNodes, t, r)];
618
+ return s;
619
+ }
620
+ var tn = (e, t, r = !0) => {
621
+ const n = [];
622
+ for ((r && e["s-sr"] || !e["s-sr"]) && n.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
623
+ n.push(e);
624
+ return n;
625
+ }, _e = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", w = (e, t = "") => () => {
626
+ }, nn = (e, t) => () => {
627
+ }, rn = (e, t, ...r) => {
628
+ let n = null, s = null, l = null, a = !1, o = !1;
629
+ const i = [], f = (c) => {
630
+ for (let $ = 0; $ < c.length; $++)
631
+ n = c[$], Array.isArray(n) ? f(n) : n != null && typeof n != "boolean" && ((a = !ie(n)) && (n = String(n)), a && o ? i[i.length - 1].$text$ += n : i.push(a ? re(null, n) : n), o = a);
632
+ };
633
+ f(r);
634
+ const u = re(e, null);
635
+ return u.$attrs$ = t, i.length > 0 && (u.$children$ = i), u.$key$ = s, u.$name$ = l, u;
636
+ }, re = (e, t) => {
637
+ const r = {
638
+ $flags$: 0,
639
+ $tag$: e,
640
+ $text$: t,
641
+ $elm$: null,
642
+ $children$: null
643
+ };
644
+ return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
645
+ }, sn = {}, on = (e) => e && e.$tag$ === sn, se = (e, t) => e != null && !ie(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, an = (e, t, r) => {
646
+ const n = y.ce(t, r);
647
+ return e.dispatchEvent(n), n;
648
+ }, U = /* @__PURE__ */ new WeakMap(), ln = (e, t, r) => {
649
+ let n = Q.get(e);
650
+ Pe && r ? (n = n || new CSSStyleSheet(), typeof n == "string" ? n = t : n.replaceSync(t)) : n = t, Q.set(e, n);
651
+ }, cn = (e, t, r) => {
652
+ var n;
653
+ const s = Ie(t), l = Q.get(s);
654
+ if (e = e.nodeType === 11 ? e : R, l)
655
+ if (typeof l == "string") {
656
+ e = e.head || e;
657
+ let a = U.get(e), o;
658
+ if (a || U.set(e, a = /* @__PURE__ */ new Set()), !a.has(s)) {
659
+ {
660
+ o = document.querySelector(`[${Wt}="${s}"]`) || R.createElement("style"), o.innerHTML = l;
661
+ const i = (n = y.$nonce$) != null ? n : Oe(R);
662
+ if (i != null && o.setAttribute("nonce", i), !(t.$flags$ & 1))
663
+ if (e.nodeName === "HEAD") {
664
+ const f = e.querySelectorAll("link[rel=preconnect]"), u = f.length > 0 ? f[f.length - 1].nextSibling : e.querySelector("style");
665
+ e.insertBefore(o, u);
666
+ } else if ("host" in e)
667
+ if (Pe) {
668
+ const f = new CSSStyleSheet();
669
+ f.replaceSync(l), e.adoptedStyleSheets = [f, ...e.adoptedStyleSheets];
670
+ } else {
671
+ const f = e.querySelector("style");
672
+ f ? f.innerHTML = l + f.innerHTML : e.prepend(o);
673
+ }
674
+ else
675
+ e.append(o);
676
+ t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(o, null);
677
+ }
678
+ t.$flags$ & 4 && (o.innerHTML += Le), a && a.add(s);
679
+ }
680
+ } else e.adoptedStyleSheets.includes(l) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, l]);
681
+ return s;
682
+ }, fn = (e) => {
683
+ const t = e.$cmpMeta$, r = e.$hostElement$, n = w("attachStyles", t.$tagName$);
684
+ cn(
685
+ r.getRootNode(),
686
+ t
687
+ ), n();
688
+ }, Ie = (e, t) => "sc-" + e.$tagName$, Ce = (e, t, r, n, s, l) => {
689
+ if (r !== n) {
690
+ let a = me(e, t), o = t.toLowerCase();
691
+ if (t === "class") {
692
+ const i = e.classList, f = Re(r);
693
+ let u = Re(n);
694
+ e["s-si"] ? (u.push(e["s-si"]), f.forEach((c) => {
695
+ c.startsWith(e["s-si"]) && u.push(c);
696
+ }), u = [...new Set(u)], i.add(...u), delete e["s-si"]) : (i.remove(...f.filter((c) => c && !u.includes(c))), i.add(...u.filter((c) => c && !f.includes(c))));
697
+ } else if (t === "style") {
698
+ for (const i in r)
699
+ (!n || n[i] == null) && (i.includes("-") ? e.style.removeProperty(i) : e.style[i] = "");
700
+ for (const i in n)
701
+ (!r || n[i] !== r[i]) && (i.includes("-") ? e.style.setProperty(i, n[i]) : e.style[i] = n[i]);
702
+ } else if (t !== "key") if (!a && t[0] === "o" && t[1] === "n") {
703
+ if (t[2] === "-" ? t = t.slice(3) : me(J, o) ? t = o.slice(2) : t = o[2] + t.slice(3), r || n) {
704
+ const i = t.endsWith(Fe);
705
+ t = t.replace($n, ""), r && y.rel(e, t, r, i), n && y.ael(e, t, n, i);
706
+ }
707
+ } else {
708
+ const i = ie(n);
709
+ if ((a || i && n !== null) && !s)
710
+ try {
711
+ if (e.tagName.includes("-"))
712
+ e[t] !== n && (e[t] = n);
713
+ else {
714
+ const f = n ?? "";
715
+ t === "list" ? a = !1 : (r == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
716
+ }
717
+ } catch {
718
+ }
719
+ n == null || n === !1 ? (n !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!a || l & 4 || s) && !i && (n = n === !0 ? "" : n, e.setAttribute(t, n));
720
+ }
721
+ }
722
+ }, un = /\s/, Re = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(un) : []), Fe = "Capture", $n = new RegExp(Fe + "$"), Be = (e, t, r) => {
723
+ const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, s = e && e.$attrs$ || {}, l = t.$attrs$ || {};
724
+ for (const a of Te(Object.keys(s)))
725
+ a in l || Ce(n, a, s[a], void 0, r, t.$flags$);
726
+ for (const a of Te(Object.keys(l)))
727
+ Ce(n, a, s[a], l[a], r, t.$flags$);
728
+ };
729
+ function Te(e) {
730
+ return e.includes("ref") ? (
731
+ // we need to sort these to ensure that `'ref'` is the last attr
732
+ [...e.filter((t) => t !== "ref"), "ref"]
733
+ ) : (
734
+ // no need to sort, return the original array
735
+ e
736
+ );
737
+ }
738
+ var oe, ce, G = !1, X = !1, fe = !1, C = !1, Y = (e, t, r) => {
739
+ var n;
740
+ const s = t.$children$[r];
741
+ let l = 0, a, o, i;
742
+ if (G || (fe = !0, s.$tag$ === "slot" && (s.$flags$ |= s.$children$ ? (
743
+ // slot element has fallback content
744
+ // still create an element that "mocks" the slot element
745
+ 2
746
+ ) : (
747
+ // slot element does not have fallback content
748
+ // create an html comment we'll use to always reference
749
+ // where actual slot content should sit next to
750
+ 1
751
+ ))), s.$text$ !== null)
752
+ a = s.$elm$ = R.createTextNode(s.$text$);
753
+ else if (s.$flags$ & 1)
754
+ a = s.$elm$ = R.createTextNode("");
755
+ else {
756
+ if (C || (C = s.$tag$ === "svg"), a = s.$elm$ = R.createElementNS(
757
+ C ? Dt : Mt,
758
+ !G && H.slotRelocation && s.$flags$ & 2 ? "slot-fb" : s.$tag$
759
+ ), C && s.$tag$ === "foreignObject" && (C = !1), Be(null, s, C), s.$children$)
760
+ for (l = 0; l < s.$children$.length; ++l)
761
+ o = Y(e, s, l), o && a.appendChild(o);
762
+ s.$tag$ === "svg" ? C = !1 : a.tagName === "foreignObject" && (C = !0);
763
+ }
764
+ return a["s-hn"] = ce, s.$flags$ & 3 && (a["s-sr"] = !0, a["s-cr"] = oe, a["s-sn"] = s.$name$ || "", a["s-rf"] = (n = s.$attrs$) == null ? void 0 : n.ref, i = e && e.$children$ && e.$children$[r], i && i.$tag$ === s.$tag$ && e.$elm$ && z(e.$elm$, !1)), a;
765
+ }, z = (e, t) => {
766
+ y.$flags$ |= 1;
767
+ const r = Array.from(e.__childNodes || e.childNodes);
768
+ e["s-sr"] && H.experimentalSlotFixes;
769
+ for (let n = r.length - 1; n >= 0; n--) {
770
+ const s = r[n];
771
+ s["s-hn"] !== ce && s["s-ol"] && (F(N(s).parentNode, s, N(s)), s["s-ol"].remove(), s["s-ol"] = void 0, s["s-sh"] = void 0, fe = !0), t && z(s, t);
772
+ }
773
+ y.$flags$ &= -2;
774
+ }, Ue = (e, t, r, n, s, l) => {
775
+ let a = e["s-cr"] && e["s-cr"].parentNode || e, o;
776
+ for (; s <= l; ++s)
777
+ n[s] && (o = Y(null, r, s), o && (n[s].$elm$ = o, F(a, o, N(t))));
778
+ }, He = (e, t, r) => {
779
+ for (let n = t; n <= r; ++n) {
780
+ const s = e[n];
781
+ if (s) {
782
+ const l = s.$elm$;
783
+ l && (X = !0, l["s-ol"] ? l["s-ol"].remove() : z(l, !0), l.remove());
784
+ }
785
+ }
786
+ }, dn = (e, t, r, n, s = !1) => {
787
+ let l = 0, a = 0, o = 0, i = 0, f = t.length - 1, u = t[0], c = t[f], $ = n.length - 1, d = n[0], p = n[$], g, v;
788
+ for (; l <= f && a <= $; )
789
+ if (u == null)
790
+ u = t[++l];
791
+ else if (c == null)
792
+ c = t[--f];
793
+ else if (d == null)
794
+ d = n[++a];
795
+ else if (p == null)
796
+ p = n[--$];
797
+ else if (W(u, d, s))
798
+ B(u, d, s), u = t[++l], d = n[++a];
799
+ else if (W(c, p, s))
800
+ B(c, p, s), c = t[--f], p = n[--$];
801
+ else if (W(u, p, s))
802
+ (u.$tag$ === "slot" || p.$tag$ === "slot") && z(u.$elm$.parentNode, !1), B(u, p, s), F(e, u.$elm$, c.$elm$.nextSibling), u = t[++l], p = n[--$];
803
+ else if (W(c, d, s))
804
+ (u.$tag$ === "slot" || p.$tag$ === "slot") && z(c.$elm$.parentNode, !1), B(c, d, s), F(e, c.$elm$, u.$elm$), c = t[--f], d = n[++a];
805
+ else {
806
+ for (o = -1, i = l; i <= f; ++i)
807
+ if (t[i] && t[i].$key$ !== null && t[i].$key$ === d.$key$) {
808
+ o = i;
809
+ break;
810
+ }
811
+ o >= 0 ? (v = t[o], v.$tag$ !== d.$tag$ ? g = Y(t && t[a], r, o) : (B(v, d, s), t[o] = void 0, g = v.$elm$), d = n[++a]) : (g = Y(t && t[a], r, a), d = n[++a]), g && F(
812
+ N(u.$elm$).parentNode,
813
+ g,
814
+ N(u.$elm$)
815
+ );
816
+ }
817
+ l > f ? Ue(
818
+ e,
819
+ n[$ + 1] == null ? null : n[$ + 1].$elm$,
820
+ r,
821
+ n,
822
+ a,
823
+ $
824
+ ) : a > $ && He(t, l, f);
825
+ }, W = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, N = (e) => e && e["s-ol"] || e, B = (e, t, r = !1) => {
826
+ const n = t.$elm$ = e.$elm$, s = e.$children$, l = t.$children$, a = t.$tag$, o = t.$text$;
827
+ let i;
828
+ o === null ? (C = a === "svg" ? !0 : a === "foreignObject" ? !1 : C, a === "slot" && !G || Be(e, t, C), s !== null && l !== null ? dn(n, s, t, l, r) : l !== null ? (e.$text$ !== null && (n.textContent = ""), Ue(n, null, t, l, 0, l.length - 1)) : (
829
+ // don't do this on initial render as it can cause non-hydrated content to be removed
830
+ !r && H.updatable && s !== null && He(s, 0, s.length - 1)
831
+ ), C && a === "svg" && (C = !1)) : (i = n["s-cr"]) ? i.parentNode.textContent = o : e.$text$ !== o && (n.data = o);
832
+ }, x = [], je = (e) => {
833
+ let t, r, n;
834
+ const s = e.__childNodes || e.childNodes;
835
+ for (const l of s) {
836
+ if (l["s-sr"] && (t = l["s-cr"]) && t.parentNode) {
837
+ r = t.parentNode.__childNodes || t.parentNode.childNodes;
838
+ const a = l["s-sn"];
839
+ for (n = r.length - 1; n >= 0; n--)
840
+ if (t = r[n], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== l["s-hn"])
841
+ if (_e(t, a)) {
842
+ let o = x.find((i) => i.$nodeToRelocate$ === t);
843
+ X = !0, t["s-sn"] = t["s-sn"] || a, o ? (o.$nodeToRelocate$["s-sh"] = l["s-hn"], o.$slotRefNode$ = l) : (t["s-sh"] = l["s-hn"], x.push({
844
+ $slotRefNode$: l,
845
+ $nodeToRelocate$: t
846
+ })), t["s-sr"] && x.map((i) => {
847
+ _e(i.$nodeToRelocate$, t["s-sn"]) && (o = x.find((f) => f.$nodeToRelocate$ === t), o && !i.$slotRefNode$ && (i.$slotRefNode$ = o.$slotRefNode$));
848
+ });
849
+ } else x.some((o) => o.$nodeToRelocate$ === t) || x.push({
850
+ $nodeToRelocate$: t
851
+ });
852
+ }
853
+ l.nodeType === 1 && je(l);
854
+ }
855
+ }, F = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), pn = (e, t, r = !1) => {
856
+ var n, s, l, a;
857
+ const o = e.$hostElement$, i = e.$vnode$ || re(null, null), f = on(t) ? t : rn(null, null, t);
858
+ if (ce = o.tagName, r && f.$attrs$)
859
+ for (const u of Object.keys(f.$attrs$))
860
+ o.hasAttribute(u) && !["key", "ref", "style", "class"].includes(u) && (f.$attrs$[u] = o[u]);
861
+ f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = i.$elm$ = o, G = Gt, oe = o["s-cr"], X = !1, B(i, f, r);
862
+ {
863
+ if (y.$flags$ |= 1, fe) {
864
+ je(f.$elm$);
865
+ for (const u of x) {
866
+ const c = u.$nodeToRelocate$;
867
+ if (!c["s-ol"]) {
868
+ const $ = R.createTextNode("");
869
+ $["s-nr"] = c, F(c.parentNode, c["s-ol"] = $, c);
870
+ }
871
+ }
872
+ for (const u of x) {
873
+ const c = u.$nodeToRelocate$, $ = u.$slotRefNode$;
874
+ if ($) {
875
+ const d = $.parentNode;
876
+ let p = $.nextSibling;
877
+ {
878
+ let m = (n = c["s-ol"]) == null ? void 0 : n.previousSibling;
879
+ for (; m; ) {
880
+ let h = (s = m["s-nr"]) != null ? s : null;
881
+ if (h && h["s-sn"] === c["s-sn"] && d === (h.__parentNode || h.parentNode)) {
882
+ for (h = h.nextSibling; h === c || h != null && h["s-sr"]; )
883
+ h = h == null ? void 0 : h.nextSibling;
884
+ if (!h || !h["s-nr"]) {
885
+ p = h;
886
+ break;
887
+ }
888
+ }
889
+ m = m.previousSibling;
890
+ }
891
+ }
892
+ const g = c.__parentNode || c.parentNode, v = c.__nextSibling || c.nextSibling;
893
+ (!p && d !== g || v !== p) && c !== p && (!c["s-hn"] && c["s-ol"] && (c["s-hn"] = c["s-ol"].parentNode.nodeName), F(d, c, p), c.nodeType === 1 && c.tagName !== "SLOT-FB" && (c.hidden = (l = c["s-ih"]) != null ? l : !1)), c && typeof $["s-rf"] == "function" && $["s-rf"](c);
894
+ } else
895
+ c.nodeType === 1 && (r && (c["s-ih"] = (a = c.hidden) != null ? a : !1), c.hidden = !0);
896
+ }
897
+ }
898
+ X && we(f.$elm$), y.$flags$ &= -2, x.length = 0;
899
+ }
900
+ oe = void 0;
901
+ }, De = (e, t) => {
902
+ if (t && !e.$onRenderResolve$ && t["s-p"]) {
903
+ const r = t["s-p"].push(
904
+ new Promise(
905
+ (n) => e.$onRenderResolve$ = () => {
906
+ t["s-p"].splice(r - 1, 1), n();
907
+ }
908
+ )
909
+ );
910
+ }
911
+ }, ue = (e, t) => {
912
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
913
+ e.$flags$ |= 512;
914
+ return;
915
+ }
916
+ return De(e, e.$ancestorComponent$), Kt(() => hn(e, t));
917
+ }, hn = (e, t) => {
918
+ const r = e.$hostElement$, n = w("scheduleUpdate", e.$cmpMeta$.$tagName$), s = e.$lazyInstance$;
919
+ if (!s)
920
+ throw new Error(
921
+ `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
922
+ );
923
+ let l;
924
+ return n(), gn(l, () => mn(e, s, t));
925
+ }, gn = (e, t) => yn(e) ? e.then(t).catch((r) => {
926
+ console.error(r), t();
927
+ }) : t(), yn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", mn = async (e, t, r) => {
928
+ var n;
929
+ const s = e.$hostElement$, l = w("update", e.$cmpMeta$.$tagName$), a = s["s-rc"];
930
+ r && fn(e);
931
+ const o = w("render", e.$cmpMeta$.$tagName$);
932
+ Sn(e, t, s, r), a && (a.map((i) => i()), s["s-rc"] = void 0), o(), l();
933
+ {
934
+ const i = (n = s["s-p"]) != null ? n : [], f = () => vn(e);
935
+ i.length === 0 ? f() : (Promise.all(i).then(f), e.$flags$ |= 4, i.length = 0);
936
+ }
937
+ }, Sn = (e, t, r, n) => {
938
+ try {
939
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, pn(e, t, n);
940
+ } catch (s) {
941
+ j(s, e.$hostElement$);
942
+ }
943
+ return null;
944
+ }, vn = (e) => {
945
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, n = w("postUpdate", t), s = e.$lazyInstance$, l = e.$ancestorComponent$;
946
+ e.$flags$ & 64 ? n() : (e.$flags$ |= 64, ze(r), $e(s, "componentDidLoad", void 0, r), n(), e.$onReadyResolve$(r), l || Me()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && le(() => ue(e, !1)), e.$flags$ &= -517;
947
+ }, Me = (e) => {
948
+ ze(R.documentElement), le(() => an(J, "appload", { detail: { namespace: Ut } }));
949
+ }, $e = (e, t, r, n) => {
950
+ if (e && e[t])
951
+ try {
952
+ return e[t](r);
953
+ } catch (s) {
954
+ j(s, n);
955
+ }
956
+ }, ze = (e) => {
957
+ var t;
958
+ return e.classList.add((t = H.hydratedSelectorName) != null ? t : "hydrated");
959
+ }, bn = (e, t) => O(e).$instanceValues$.get(t), V = (e, t, r, n) => {
960
+ const s = O(e);
961
+ if (!s)
962
+ throw new Error(
963
+ `Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
964
+ );
965
+ const l = s.$hostElement$, a = s.$instanceValues$.get(t), o = s.$flags$, i = s.$lazyInstance$;
966
+ r = se(r, n.$members$[t][0]);
967
+ const f = Number.isNaN(a) && Number.isNaN(r), u = r !== a && !f;
968
+ if ((!(o & 8) || a === void 0) && u && (s.$instanceValues$.set(t, r), i)) {
969
+ if (n.$watchers$ && o & 128) {
970
+ const c = n.$watchers$[t];
971
+ c && c.map(($) => {
972
+ try {
973
+ i[$](r, a, t);
974
+ } catch (d) {
975
+ j(d, l);
976
+ }
977
+ });
978
+ }
979
+ (o & 18) === 2 && ue(s, !1);
980
+ }
981
+ }, Ne = (e, t, r) => {
982
+ var n, s;
983
+ const l = e.prototype;
984
+ if (t.$members$ || t.$watchers$ || e.watchers) {
985
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
986
+ const a = Object.entries((n = t.$members$) != null ? n : {});
987
+ if (a.map(([o, [i]]) => {
988
+ if (i & 31 || r & 2 && i & 32) {
989
+ const { get: f, set: u } = Object.getOwnPropertyDescriptor(l, o) || {};
990
+ f && (t.$members$[o][0] |= 2048), u && (t.$members$[o][0] |= 4096), (r & 1 || !f) && Object.defineProperty(l, o, {
991
+ get() {
992
+ {
993
+ if (!(t.$members$[o][0] & 2048))
994
+ return bn(this, o);
995
+ const c = O(this), $ = c ? c.$lazyInstance$ : l;
996
+ return $ ? $[o] : void 0;
997
+ }
998
+ },
999
+ configurable: !0,
1000
+ enumerable: !0
1001
+ }), Object.defineProperty(l, o, {
1002
+ set(c) {
1003
+ const $ = O(this);
1004
+ if (u) {
1005
+ const d = i & 32 ? this[o] : $.$hostElement$[o];
1006
+ typeof d > "u" && $.$instanceValues$.get(o) ? c = $.$instanceValues$.get(o) : !$.$instanceValues$.get(o) && d && $.$instanceValues$.set(o, d), u.apply(this, [se(c, i)]), c = i & 32 ? this[o] : $.$hostElement$[o], V(this, o, c, t);
1007
+ return;
1008
+ }
1009
+ {
1010
+ if (!(r & 1) || !(t.$members$[o][0] & 4096)) {
1011
+ V(this, o, c, t), r & 1 && !$.$lazyInstance$ && $.$onReadyPromise$.then(() => {
1012
+ t.$members$[o][0] & 4096 && $.$lazyInstance$[o] !== $.$instanceValues$.get(o) && ($.$lazyInstance$[o] = c);
1013
+ });
1014
+ return;
1015
+ }
1016
+ const d = () => {
1017
+ const p = $.$lazyInstance$[o];
1018
+ !$.$instanceValues$.get(o) && p && $.$instanceValues$.set(o, p), $.$lazyInstance$[o] = se(c, i), V(this, o, $.$lazyInstance$[o], t);
1019
+ };
1020
+ $.$lazyInstance$ ? d() : $.$onReadyPromise$.then(() => d());
1021
+ }
1022
+ }
1023
+ });
1024
+ }
1025
+ }), r & 1) {
1026
+ const o = /* @__PURE__ */ new Map();
1027
+ l.attributeChangedCallback = function(i, f, u) {
1028
+ y.jmp(() => {
1029
+ var c;
1030
+ const $ = o.get(i);
1031
+ if (this.hasOwnProperty($) && H.lazyLoad)
1032
+ u = this[$], delete this[$];
1033
+ else {
1034
+ if (l.hasOwnProperty($) && typeof this[$] == "number" && // cast type to number to avoid TS compiler issues
1035
+ this[$] == u)
1036
+ return;
1037
+ if ($ == null) {
1038
+ const p = O(this), g = p == null ? void 0 : p.$flags$;
1039
+ if (g && !(g & 8) && g & 128 && u !== f) {
1040
+ const v = p.$lazyInstance$, m = (c = t.$watchers$) == null ? void 0 : c[i];
1041
+ m == null || m.forEach((h) => {
1042
+ v[h] != null && v[h].call(v, u, f, i);
1043
+ });
1044
+ }
1045
+ return;
1046
+ }
1047
+ }
1048
+ const d = Object.getOwnPropertyDescriptor(l, $);
1049
+ u = u === null && typeof this[$] == "boolean" ? !1 : u, u !== this[$] && (!d.get || d.set) && (this[$] = u);
1050
+ });
1051
+ }, e.observedAttributes = Array.from(
1052
+ /* @__PURE__ */ new Set([
1053
+ ...Object.keys((s = t.$watchers$) != null ? s : {}),
1054
+ ...a.filter(
1055
+ ([i, f]) => f[0] & 15
1056
+ /* HasAttribute */
1057
+ ).map(([i, f]) => {
1058
+ const u = f[1] || i;
1059
+ return o.set(u, i), u;
1060
+ })
1061
+ ])
1062
+ );
1063
+ }
1064
+ }
1065
+ return e;
1066
+ }, _n = async (e, t, r, n) => {
1067
+ let s;
1068
+ if (!(t.$flags$ & 32)) {
1069
+ t.$flags$ |= 32;
1070
+ {
1071
+ const o = Nt(r, t);
1072
+ if (o && "then" in o) {
1073
+ const f = nn();
1074
+ s = await o, f();
1075
+ } else
1076
+ s = o;
1077
+ if (!s)
1078
+ throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);
1079
+ s.isProxied || (r.$watchers$ = s.watchers, Ne(
1080
+ s,
1081
+ r,
1082
+ 2
1083
+ /* proxyState */
1084
+ ), s.isProxied = !0);
1085
+ const i = w("createInstance", r.$tagName$);
1086
+ t.$flags$ |= 8;
1087
+ try {
1088
+ new s(t);
1089
+ } catch (f) {
1090
+ j(f, e);
1091
+ }
1092
+ t.$flags$ &= -9, t.$flags$ |= 128, i(), ae(t.$lazyInstance$, e);
1093
+ }
1094
+ if (s && s.style) {
1095
+ let o;
1096
+ typeof s.style == "string" && (o = s.style);
1097
+ const i = Ie(r);
1098
+ if (!Q.has(i)) {
1099
+ const f = w("registerStyles", r.$tagName$);
1100
+ ln(i, o, !!(r.$flags$ & 1)), f();
1101
+ }
1102
+ }
1103
+ }
1104
+ const l = t.$ancestorComponent$, a = () => ue(t, !0);
1105
+ l && l["s-rc"] ? l["s-rc"].push(a) : a();
1106
+ }, ae = (e, t) => {
1107
+ $e(e, "connectedCallback", void 0, t);
1108
+ }, Cn = (e) => {
1109
+ if (!(y.$flags$ & 1)) {
1110
+ const t = O(e), r = t.$cmpMeta$, n = w("connectedCallback", r.$tagName$);
1111
+ if (t.$flags$ & 1)
1112
+ t != null && t.$lazyInstance$ ? ae(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => ae(t.$lazyInstance$, e));
1113
+ else {
1114
+ t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1115
+ r.$flags$ & 12 && Rn(e);
1116
+ {
1117
+ let s = e;
1118
+ for (; s = s.parentNode || s.host; )
1119
+ if (s["s-p"]) {
1120
+ De(t, t.$ancestorComponent$ = s);
1121
+ break;
1122
+ }
1123
+ }
1124
+ r.$members$ && Object.entries(r.$members$).map(([s, [l]]) => {
1125
+ if (l & 31 && e.hasOwnProperty(s)) {
1126
+ const a = e[s];
1127
+ delete e[s], e[s] = a;
1128
+ }
1129
+ }), _n(e, t, r);
1130
+ }
1131
+ n();
1132
+ }
1133
+ }, Rn = (e) => {
1134
+ const t = e["s-cr"] = R.createComment(
1135
+ ""
1136
+ );
1137
+ t["s-cn"] = !0, F(e, t, e.firstChild);
1138
+ }, Ee = (e, t) => {
1139
+ $e(e, "disconnectedCallback", void 0, t || e);
1140
+ }, Tn = async (e) => {
1141
+ if (!(y.$flags$ & 1)) {
1142
+ const t = O(e);
1143
+ t != null && t.$lazyInstance$ ? Ee(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Ee(t.$lazyInstance$, e));
1144
+ }
1145
+ U.has(e) && U.delete(e), e.shadowRoot && U.has(e.shadowRoot) && U.delete(e.shadowRoot);
1146
+ }, En = (e, t = {}) => {
1147
+ var r;
1148
+ const n = w(), s = [], l = t.exclude || [], a = J.customElements, o = R.head, i = /* @__PURE__ */ o.querySelector("meta[charset]"), f = /* @__PURE__ */ R.createElement("style"), u = [];
1149
+ let c, $ = !0;
1150
+ Object.assign(y, t), y.$resourcesUrl$ = new URL(t.resourcesUrl || "./", R.baseURI).href;
1151
+ let d = !1;
1152
+ if (e.map((p) => {
1153
+ p[1].map((g) => {
1154
+ var v;
1155
+ const m = {
1156
+ $flags$: g[0],
1157
+ $tagName$: g[1],
1158
+ $members$: g[2],
1159
+ $listeners$: g[3]
1160
+ };
1161
+ m.$flags$ & 4 && (d = !0), m.$members$ = g[2], m.$watchers$ = (v = g[4]) != null ? v : {};
1162
+ const h = m.$tagName$, D = class extends HTMLElement {
1163
+ // StencilLazyHost
1164
+ constructor(b) {
1165
+ super(b), this.hasRegisteredEventListeners = !1, b = this, zt(b, m);
1166
+ }
1167
+ connectedCallback() {
1168
+ O(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), c && (clearTimeout(c), c = null), $ ? u.push(this) : y.jmp(() => Cn(this));
1169
+ }
1170
+ disconnectedCallback() {
1171
+ y.jmp(() => Tn(this)), y.raf(() => {
1172
+ var b;
1173
+ const A = O(this);
1174
+ ((b = A == null ? void 0 : A.$vnode$) == null ? void 0 : b.$elm$) instanceof Node && !A.$vnode$.$elm$.isConnected && delete A.$vnode$.$elm$;
1175
+ });
1176
+ }
1177
+ componentOnReady() {
1178
+ return O(this).$onReadyPromise$;
1179
+ }
1180
+ };
1181
+ m.$lazyBundleId$ = p[0], !l.includes(h) && !a.get(h) && (s.push(h), a.define(
1182
+ h,
1183
+ Ne(
1184
+ D,
1185
+ m,
1186
+ 1
1187
+ /* isElementConstructor */
1188
+ )
1189
+ ));
1190
+ });
1191
+ }), s.length > 0 && (d && (f.textContent += Le), f.textContent += s.sort() + Qt, f.innerHTML.length)) {
1192
+ f.setAttribute("data-styles", "");
1193
+ const p = (r = y.$nonce$) != null ? r : Oe(R);
1194
+ p != null && f.setAttribute("nonce", p), o.insertBefore(f, i ? i.nextSibling : o.firstChild);
1195
+ }
1196
+ $ = !1, u.length ? u.map((p) => p.connectedCallback()) : y.jmp(() => c = setTimeout(Me, 30)), n();
1197
+ };
1198
+ const kn = () => {
1199
+ }, Ln = async (e, t) => {
1200
+ if (!(typeof window > "u"))
1201
+ return await kn(), En([["searchcraft-filter-panel", [[0, "searchcraft-filter-panel", { items: [16], unsubscribe: [32], lastQuery: [32] }]]], ["searchcraft-base-search-results", [[4, "searchcraft-base-search-results", { adInterval: [2, "ad-interval"], customStylesForResults: [1, "custom-styles-for-results"], searchResultMappings: [16], placeAdAtEnd: [4, "place-ad-at-end"], placeAdAtStart: [4, "place-ad-at-start"], resultImagePlacement: [1, "result-image-placement"], buttonLabel: [1, "button-label"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], hasSearched: [32], query: [32], searchResults: [32] }]]], ["searchcraft-popover-button", [[4, "searchcraft-popover-button"]]], ["searchcraft-results-info", [[0, "searchcraft-results-info", { isRequesting: [32], resultsCount: [32], responseTime: [32], query: [32] }]]], ["searchcraft-base-search-result", [[0, "searchcraft-base-search-result", { titleContent: [1, "title-content"], subtitleContent: [1, "subtitle-content"], bodyContent: [1, "body-content"], footerContent: [1, "footer-content"], buttonLabel: [1, "button-label"], buttonHref: [1, "button-href"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerHref: [1, "container-href"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], imageSrc: [1, "image-src"], imageAlt: [1, "image-alt"], imagePlacement: [1, "image-placement"], customStyles: [1, "custom-styles"], documentPosition: [2, "document-position"] }]]], ["searchcraft-popover-list-item", [[0, "searchcraft-popover-list-item", { titleContent: [1, "title-content"], subtitleContent: [1, "subtitle-content"], imageSrc: [1, "image-src"], imageAlt: [1, "image-alt"], href: [1], documentPosition: [2, "document-position"] }]]], ["searchcraft-button_3", [[0, "searchcraft-button", { iconElement: [16], iconOnly: [4, "icon-only"], iconPosition: [1, "icon-position"], label: [1], isRequesting: [32] }], [0, "searchcraft-input-label", { inputLabelClassName: [1, "input-label-class-name"], label: [1] }], [0, "searchcraft-error-message", { errorMessage: [1, "error-message"] }]]], ["searchcraft-input-form_2", [[0, "searchcraft-input-form", { config: [16], autoSearch: [4, "auto-search"], buttonPlacement: [1, "button-placement"], buttonLabel: [1, "button-label"], inputLabel: [1, "input-label"], customStyles: [1, "custom-styles"], placeholderValue: [1, "placeholder-value"], searchTerm: [1, "search-term"], inputValue: [32], error: [32], isSearchcraftInitialized: [32] }, null, { config: ["onConfigChange"] }], [0, "searchcraft-popover-list-view", { popoverResultMappings: [16], documents: [16] }]]], ["searchcraft-popover-form", [[0, "searchcraft-popover-form", { config: [16], type: [1], popoverResultMappings: [16], hotkey: [1], hotkeyModifier: [1, "hotkey-modifier"], isPopoverVisibleInState: [32], unsubscribe: [32], searchResults: [32], searchTerm: [32], isFocused: [32], breakpointSm: [32], breakpointMd: [32], breakpointLg: [32], modalElement: [32] }]]], ["searchcraft-facet-list_3", [[0, "searchcraft-facet-list", { fieldName: [1, "field-name"], baseFacetRoot: [32], facetRoot: [32], selectedPaths: [32], lastTimeTaken: [32], hasNewSearchTerm: [32], lastQuery: [32], lastSearchMode: [32], lastSortType: [32], unsubscribe: [32] }], [0, "searchcraft-slider", { max: [2], min: [2], granularity: [2], dataType: [1, "data-type"], endValue: [32], startValue: [32], lastFocusedHandle: [32] }], [0, "searchcraft-toggle-button", { label: [1], subLabel: [1, "sub-label"], isActive: [32], unsubscribe: [32], lastQuery: [32] }]]]], t);
1202
+ };
1203
+ (function() {
1204
+ if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
1205
+ var e = HTMLElement;
1206
+ window.HTMLElement = function() {
1207
+ return Reflect.construct(e, [], this.constructor);
1208
+ }, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
1209
+ }
1210
+ })();
1211
+ const zn = {
1212
+ async install() {
1213
+ Ln();
1214
+ }
1215
+ };
1216
+ export {
1217
+ zn as ComponentLibrary,
1218
+ On as SearchcraftBaseSearchResult,
1219
+ xn as SearchcraftBaseSearchResults,
1220
+ An as SearchcraftButton,
1221
+ wn as SearchcraftErrorMessage,
1222
+ qn as SearchcraftFacetList,
1223
+ In as SearchcraftFilterPanel,
1224
+ Fn as SearchcraftInputForm,
1225
+ Bn as SearchcraftInputLabel,
1226
+ Un as SearchcraftPopoverButton,
1227
+ Hn as SearchcraftPopoverForm,
1228
+ Dn as SearchcraftResultsInfo,
1229
+ jn as SearchcraftSlider,
1230
+ Mn as SearchcraftToggleButton
1231
+ };
1232
+ //# sourceMappingURL=index.es.js.map