@ganpatiinfo/gids-core-web 2.1.1 → 3.0.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/css/elements.css.map +1 -0
- package/dist/{index.css → css/index.css} +277 -4
- package/dist/css/index.css.map +1 -0
- package/dist/custom-elements.json +143 -4
- package/dist/gids-icon.d.ts +11 -0
- package/dist/gids-icon.js +1 -0
- package/dist/gids-toggle-button.js +1 -130
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -5
- package/dist/p-CgujYzVX.js +1 -0
- package/dist/types/components/html/GidsPagination/GidsPagination.d.ts +7 -0
- package/dist/types/components/html/_GidsPaginationItem/GidsPaginationItem.d.ts +7 -0
- package/dist/types/components/webComponents/GidsIcon/GidsIcon.d.ts +12 -0
- package/dist/types/components.d.ts +48 -2
- package/dist/types/index.d.ts +1 -10
- package/dist/types/stencil-public-runtime.d.ts +170 -12
- package/dist/types/utils/assets.d.ts +6 -0
- package/dist-bundled/es/assets-Drv1fXkA.js +73 -0
- package/dist-bundled/es/clsx-OuTLNxxd.js +16 -0
- package/dist-bundled/es/gids-icon.js +216 -0
- package/dist-bundled/es/gids-toggle-button.js +87 -0
- package/dist-bundled/es/index.js +22 -0
- package/dist-bundled/es/p-CgujYzVX-xo1axnk6.js +465 -0
- package/dist-bundled/umd/gids-icon.umd.js +1 -0
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -0
- package/dist-bundled/umd/index.umd.js +1 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -0
- package/distPaths.js +34 -0
- package/package.json +191 -158
- package/scriptUtils.js +6 -0
- package/dist/elements.css.map +0 -1
- package/dist/gids-toggle-button.js.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/p-C0FfV2mK.js +0 -1134
- package/dist/p-C0FfV2mK.js.map +0 -1
- /package/dist/{elements.css → css/elements.css} +0 -0
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
function ie(e, t, o) {
|
|
2
|
+
const n = typeof HTMLElement < "u" ? HTMLElement.prototype : null;
|
|
3
|
+
for (; e && e !== n; ) {
|
|
4
|
+
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
5
|
+
if (s && (!o || s.get)) return s;
|
|
6
|
+
e = Object.getPrototypeOf(e);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
var A, be = (e, t) => {
|
|
10
|
+
var o;
|
|
11
|
+
Object.entries((o = t.l.t) != null ? o : {}).map((([n, [s]]) => {
|
|
12
|
+
if (31 & s || 32 & s) {
|
|
13
|
+
const a = e[n], l = ie(Object.getPrototypeOf(e), n, !0) || Object.getOwnPropertyDescriptor(e, n);
|
|
14
|
+
l && Object.defineProperty(e, n, { get() {
|
|
15
|
+
return l.get.call(this);
|
|
16
|
+
}, set(i) {
|
|
17
|
+
l.set.call(this, i);
|
|
18
|
+
}, configurable: !0, enumerable: !0 }), t.o.has(n) ? e[n] = t.o.get(n) : a !== void 0 && (e[n] = a);
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
}, E = (e) => {
|
|
22
|
+
if (e.__stencil__getHostRef) return e.__stencil__getHostRef();
|
|
23
|
+
}, Z = (e, t) => t in e, L = (e, t) => (0, console.error)(e, t), M = /* @__PURE__ */ new Map(), $ = typeof window < "u" ? window : {}, De = $.HTMLElement || class {
|
|
24
|
+
}, O = { i: 0, u: "", jmp: (e) => e(), raf: (e) => requestAnimationFrame(e), ael: (e, t, o, n) => e.addEventListener(t, o, n), rel: (e, t, o, n) => e.removeEventListener(t, o, n), ce: (e, t) => new CustomEvent(e, t) }, F = (() => {
|
|
25
|
+
try {
|
|
26
|
+
return !!$.document.adoptedStyleSheets && (new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function");
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
return !1;
|
|
30
|
+
})(), U = !!F && !!$.document && Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets, "length").writable, B = !1, J = [], ce = [], we = (e, t) => (o) => {
|
|
31
|
+
e.push(o), B || (B = !0, 4 & O.i ? G(V) : O.raf(V));
|
|
32
|
+
}, K = (e) => {
|
|
33
|
+
for (let t = 0; t < e.length; t++) try {
|
|
34
|
+
e[t](performance.now());
|
|
35
|
+
} catch (o) {
|
|
36
|
+
L(o);
|
|
37
|
+
}
|
|
38
|
+
e.length = 0;
|
|
39
|
+
}, V = () => {
|
|
40
|
+
K(J), K(ce), (B = J.length > 0) && O.raf(V);
|
|
41
|
+
}, G = (e) => Promise.resolve(void 0).then(e), Oe = we(ce), He = (e) => {
|
|
42
|
+
const t = new URL(e, O.u);
|
|
43
|
+
return t.origin !== $.location.origin ? t.href : t.pathname;
|
|
44
|
+
}, Te = (e) => O.u = e;
|
|
45
|
+
function $e() {
|
|
46
|
+
const e = this.attachShadow({ mode: "open" });
|
|
47
|
+
A === void 0 && (A = null), A && (U ? e.adoptedStyleSheets.push(A) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, A]);
|
|
48
|
+
}
|
|
49
|
+
var T, k = /* @__PURE__ */ new WeakMap(), ae = (e) => "sc-" + e.h, I = (e) => (e = typeof e) == "object" || e === "function", ue = (e, t, ...o) => {
|
|
50
|
+
let n = null, s = null, a = !1, l = !1;
|
|
51
|
+
const i = [], r = (d) => {
|
|
52
|
+
for (let c = 0; c < d.length; c++) n = d[c], Array.isArray(n) ? r(n) : n != null && typeof n != "boolean" && ((a = typeof e != "function" && !I(n)) && (n = String(n)), a && l ? i[i.length - 1].p += n : i.push(a ? D(null, n) : n), l = a);
|
|
53
|
+
};
|
|
54
|
+
if (r(o), t && t.key && (s = t.key), typeof e == "function") return e(t === null ? {} : t, i, _e);
|
|
55
|
+
const u = D(e, null);
|
|
56
|
+
return u.m = t, i.length > 0 && (u.v = i), u.$ = s, u;
|
|
57
|
+
}, D = (e, t) => ({ i: 0, S: e, p: t ?? null, O: null, v: null, m: null, $: null }), Ce = {}, _e = { forEach: (e, t) => e.map(Q).forEach(t), map: (e, t) => e.map(Q).map(t).map(ke) }, Q = (e) => ({ vattrs: e.m, vchildren: e.v, vkey: e.$, vname: e.j, vtag: e.S, vtext: e.p }), ke = (e) => {
|
|
58
|
+
if (typeof e.vtag == "function") {
|
|
59
|
+
const o = { ...e.vattrs };
|
|
60
|
+
return e.vkey && (o.key = e.vkey), e.vname && (o.name = e.vname), ue(e.vtag, o, ...e.vchildren || []);
|
|
61
|
+
}
|
|
62
|
+
const t = D(e.vtag, e.vtext);
|
|
63
|
+
return t.m = e.vattrs, t.v = e.vchildren, t.$ = e.vkey, t.j = e.vname, t;
|
|
64
|
+
}, de = (e, t) => e == null || I(e) ? e : 4 & t ? e !== "false" && (e === "" || !!e) : 1 & t ? String(e) : e, We = (e, t) => {
|
|
65
|
+
const o = e;
|
|
66
|
+
return { emit: (n) => he(o, t, { bubbles: !0, composed: !0, cancelable: !0, detail: n }) };
|
|
67
|
+
}, he = (e, t, o) => {
|
|
68
|
+
const n = O.ce(t, o);
|
|
69
|
+
return e.dispatchEvent(n), n;
|
|
70
|
+
}, X = (e, t, o, n, s, a) => {
|
|
71
|
+
if (o === n) return;
|
|
72
|
+
let l = Z(e, t), i = t.toLowerCase();
|
|
73
|
+
if (t !== "key") {
|
|
74
|
+
if (e.__lookupSetter__(t) || t[0] !== "o" || t[1] !== "n") {
|
|
75
|
+
if (t[0] === "a" && t.startsWith("attr:")) {
|
|
76
|
+
const r = t.slice(5);
|
|
77
|
+
let u;
|
|
78
|
+
{
|
|
79
|
+
const d = E(e);
|
|
80
|
+
if (d && d.l && d.l.t) {
|
|
81
|
+
const c = d.l.t[r];
|
|
82
|
+
c && c[1] && (u = c[1]);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return u || (u = r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()), void (n == null || n === !1 ? n === !1 && e.getAttribute(u) !== "" || e.removeAttribute(u) : e.setAttribute(u, n === !0 ? "" : n));
|
|
86
|
+
}
|
|
87
|
+
if (t[0] === "p" && t.startsWith("prop:")) {
|
|
88
|
+
const r = t.slice(5);
|
|
89
|
+
try {
|
|
90
|
+
e[r] = n;
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
{
|
|
96
|
+
const r = I(n);
|
|
97
|
+
if ((l || r && n !== null) && !s) try {
|
|
98
|
+
if (e.tagName.includes("-")) e[t] !== n && (e[t] = n);
|
|
99
|
+
else {
|
|
100
|
+
const u = n ?? "";
|
|
101
|
+
t === "list" ? l = !1 : o != null && e[t] === u || (typeof e.__lookupSetter__(t) == "function" ? e[t] = u : e.setAttribute(t, u));
|
|
102
|
+
}
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
n == null || n === !1 ? n === !1 && e.getAttribute(t) !== "" || e.removeAttribute(t) : (!l || 4 & a || s) && !r && e.nodeType === 1 && e.setAttribute(t, n = n === !0 ? "" : n);
|
|
106
|
+
}
|
|
107
|
+
} else if (t = t[2] === "-" ? t.slice(3) : Z($, i) ? i.slice(2) : i[2] + t.slice(3), o || n) {
|
|
108
|
+
const r = t.endsWith(fe);
|
|
109
|
+
t = t.replace(Ee, ""), o && O.rel(e, t, o, r), n && O.ael(e, t, n, r);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}, fe = "Capture", Ee = new RegExp(fe + "$"), pe = (e, t, o) => {
|
|
113
|
+
const n = t.O.nodeType === 11 && t.O.host ? t.O.host : t.O, s = e && e.m || {}, a = t.m || {};
|
|
114
|
+
for (const l of ee(Object.keys(s))) l in a || X(n, l, s[l], void 0, o, t.i);
|
|
115
|
+
for (const l of ee(Object.keys(a))) X(n, l, s[l], a[l], o, t.i);
|
|
116
|
+
};
|
|
117
|
+
function ee(e) {
|
|
118
|
+
return e.includes("ref") ? [...e.filter(((t) => t !== "ref")), "ref"] : e;
|
|
119
|
+
}
|
|
120
|
+
var me = !1, ye = !1, H = (e, t, o) => {
|
|
121
|
+
const n = t.v[o];
|
|
122
|
+
let s, a, l = 0;
|
|
123
|
+
if (n.p != null) s = n.O = $.document.createTextNode(n.p);
|
|
124
|
+
else {
|
|
125
|
+
if (!$.document) throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
126
|
+
if (s = n.O = $.document.createElement(n.S), pe(null, n, ye), n.v) {
|
|
127
|
+
const i = n.S === "template" ? s.content : s;
|
|
128
|
+
for (l = 0; l < n.v.length; ++l) a = H(e, n, l), a && i.appendChild(a);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return s["s-hn"] = T, s;
|
|
132
|
+
}, te = (e, t, o, n, s, a) => {
|
|
133
|
+
let l, i = e;
|
|
134
|
+
for (i.shadowRoot && i.tagName === T && (i = i.shadowRoot), o.S === "template" && (i = i.content); s <= a; ++s) n[s] && (l = H(null, o, s), l && (n[s].O = l, N(i, l, t)));
|
|
135
|
+
}, ne = (e, t, o) => {
|
|
136
|
+
for (let n = t; n <= o; ++n) {
|
|
137
|
+
const s = e[n];
|
|
138
|
+
if (s) {
|
|
139
|
+
const a = s.O;
|
|
140
|
+
a && a.remove();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}, P = (e, t, o = !1) => e.S === t.S && (o ? (o && !e.$ && t.$ && (e.$ = t.$), !0) : e.$ === t.$), j = (e, t, o = !1) => {
|
|
144
|
+
const n = t.O = e.O, s = e.v, a = t.v, l = t.p;
|
|
145
|
+
l == null ? (t.S !== "slot" || me || e.j !== t.j && (t.O["s-sn"] = t.j || "", ((i) => {
|
|
146
|
+
O.i |= 1;
|
|
147
|
+
const r = i.closest(T.toLowerCase());
|
|
148
|
+
if (r != null) {
|
|
149
|
+
const u = Array.from(r.__childNodes || r.childNodes).find(((c) => c["s-cr"])), d = Array.from(i.__childNodes || i.childNodes);
|
|
150
|
+
for (const c of u ? d.reverse() : d) c["s-sh"] != null && (N(r, c, u ?? null), c["s-sh"] = void 0);
|
|
151
|
+
}
|
|
152
|
+
O.i &= -2;
|
|
153
|
+
})(t.O.parentElement)), pe(e, t, ye), s !== null && a !== null ? ((i, r, u, d, c = !1) => {
|
|
154
|
+
let v, C, w = 0, b = 0, g = 0, m = 0, p = r.length - 1, h = r[0], S = r[p], f = d.length - 1, y = d[0], _ = d[f];
|
|
155
|
+
const Y = u.S === "template" ? i.content : i;
|
|
156
|
+
for (; w <= p && b <= f; ) if (h == null) h = r[++w];
|
|
157
|
+
else if (S == null) S = r[--p];
|
|
158
|
+
else if (y == null) y = d[++b];
|
|
159
|
+
else if (_ == null) _ = d[--f];
|
|
160
|
+
else if (P(h, y, c)) j(h, y, c), h = r[++w], y = d[++b];
|
|
161
|
+
else if (P(S, _, c)) j(S, _, c), S = r[--p], _ = d[--f];
|
|
162
|
+
else if (P(h, _, c)) j(h, _, c), N(Y, h.O, S.O.nextSibling), h = r[++w], _ = d[--f];
|
|
163
|
+
else if (P(S, y, c)) j(S, y, c), N(Y, S.O, h.O), S = r[--p], y = d[++b];
|
|
164
|
+
else {
|
|
165
|
+
for (g = -1, m = w; m <= p; ++m) if (r[m] && r[m].$ !== null && r[m].$ === y.$) {
|
|
166
|
+
g = m;
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
g >= 0 ? (C = r[g], C.S !== y.S ? v = H(r && r[b], u, g) : (j(C, y, c), r[g] = void 0, v = C.O), y = d[++b]) : (v = H(r && r[b], u, b), y = d[++b]), v && N(h.O.parentNode, v, h.O);
|
|
170
|
+
}
|
|
171
|
+
w > p ? te(i, d[f + 1] == null ? null : d[f + 1].O, u, d, b, f) : b > f && ne(r, w, p);
|
|
172
|
+
})(n, s, t, a, o) : a !== null ? (e.p !== null && (n.textContent = ""), te(n, null, t, a, 0, a.length - 1)) : !o && s !== null && ne(s, 0, s.length - 1)) : e.p !== l && (n.data = l);
|
|
173
|
+
}, N = (e, t, o) => e.__insertBefore ? e.__insertBefore(t, o) : e?.insertBefore(t, o), Se = (e, t, o = !1) => {
|
|
174
|
+
const n = e.$hostElement$, s = e.l, a = e.M || D(null, null);
|
|
175
|
+
var l;
|
|
176
|
+
const i = (l = t) && l.S === Ce ? t : ue(null, null, t);
|
|
177
|
+
if (T = n.tagName, s.k && (i.m = i.m || {}, s.k.forEach((([r, u]) => {
|
|
178
|
+
i.m[u] = n[r];
|
|
179
|
+
}))), o && i.m) for (const r of Object.keys(i.m)) n.hasAttribute(r) && !["key", "ref", "style", "class"].includes(r) && (i.m[r] = n[r]);
|
|
180
|
+
i.S = null, i.i |= 4, e.M = i, i.O = a.O = n.shadowRoot || n, me = !(!(1 & s.i) || 128 & s.i), j(a, i, o);
|
|
181
|
+
}, ve = (e, t) => {
|
|
182
|
+
if (t && !e.C && t["s-p"]) {
|
|
183
|
+
const o = t["s-p"].push(new Promise(((n) => e.C = () => {
|
|
184
|
+
t["s-p"].splice(o - 1, 1), n();
|
|
185
|
+
})));
|
|
186
|
+
}
|
|
187
|
+
}, z = (e, t) => {
|
|
188
|
+
if (e.i |= 16, 4 & e.i) return void (e.i |= 512);
|
|
189
|
+
ve(e, e.A);
|
|
190
|
+
const o = () => je(e, t);
|
|
191
|
+
if (!t) return Oe(o);
|
|
192
|
+
queueMicrotask((() => {
|
|
193
|
+
o();
|
|
194
|
+
}));
|
|
195
|
+
}, je = (e, t) => {
|
|
196
|
+
const o = e.$hostElement$, n = o;
|
|
197
|
+
if (!n) throw new Error(`Can't render component <${o.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`);
|
|
198
|
+
let s;
|
|
199
|
+
return s = x(n, t ? "componentWillLoad" : "componentWillUpdate", void 0, o), s = oe(s, (() => x(n, "componentWillRender", void 0, o))), oe(s, (() => Ae(e, n, t)));
|
|
200
|
+
}, oe = (e, t) => Re(e) ? e.then(t).catch(((o) => {
|
|
201
|
+
console.error(o), t();
|
|
202
|
+
})) : t(), Re = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ae = async (e, t, o) => {
|
|
203
|
+
var n;
|
|
204
|
+
const s = e.$hostElement$, a = s["s-rc"];
|
|
205
|
+
o && ((l) => {
|
|
206
|
+
const i = l.l, r = l.$hostElement$, u = i.i, d = ((c, v) => {
|
|
207
|
+
var C, w, b;
|
|
208
|
+
const g = ae(v), m = M.get(g);
|
|
209
|
+
if (!$.document) return g;
|
|
210
|
+
if (c = c.nodeType === 11 ? c : $.document, m) if (typeof m == "string") {
|
|
211
|
+
let p, h = k.get(c = c.head || c);
|
|
212
|
+
if (h || k.set(c, h = /* @__PURE__ */ new Set()), !h.has(g)) {
|
|
213
|
+
p = $.document.createElement("style"), p.textContent = m;
|
|
214
|
+
const S = (C = O.D) != null ? C : (function() {
|
|
215
|
+
var f, y, _;
|
|
216
|
+
return (_ = (y = (f = $.document.head) == null ? void 0 : f.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : y.getAttribute("content")) != null ? _ : void 0;
|
|
217
|
+
})();
|
|
218
|
+
if (S != null && p.setAttribute("nonce", S), !(1 & v.i)) if (c.nodeName === "HEAD") {
|
|
219
|
+
const f = c.querySelectorAll("link[rel=preconnect]"), y = f.length > 0 ? f[f.length - 1].nextSibling : c.querySelector("style");
|
|
220
|
+
c.insertBefore(p, y?.parentNode === c ? y : null);
|
|
221
|
+
} else if ("host" in c) if (F) {
|
|
222
|
+
const f = new ((w = c.defaultView) != null ? w : c.ownerDocument.defaultView).CSSStyleSheet();
|
|
223
|
+
f.replaceSync(m), U ? c.adoptedStyleSheets.unshift(f) : c.adoptedStyleSheets = [f, ...c.adoptedStyleSheets];
|
|
224
|
+
} else {
|
|
225
|
+
const f = c.querySelector("style");
|
|
226
|
+
f ? f.textContent = m + f.textContent : c.prepend(p);
|
|
227
|
+
}
|
|
228
|
+
else c.append(p);
|
|
229
|
+
1 & v.i && c.insertBefore(p, null), 4 & v.i && (p.textContent += "slot-fb{display:contents}slot-fb[hidden]{display:none}"), h && h.add(g);
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
let p = k.get(c);
|
|
233
|
+
if (p || k.set(c, p = /* @__PURE__ */ new Set()), !p.has(g)) {
|
|
234
|
+
const h = (b = c.defaultView) != null ? b : c.ownerDocument.defaultView;
|
|
235
|
+
let S;
|
|
236
|
+
if (m.constructor === h.CSSStyleSheet) S = m;
|
|
237
|
+
else {
|
|
238
|
+
S = new h.CSSStyleSheet();
|
|
239
|
+
for (let f = 0; f < m.cssRules.length; f++) S.insertRule(m.cssRules[f].cssText, f);
|
|
240
|
+
}
|
|
241
|
+
U ? c.adoptedStyleSheets.push(S) : c.adoptedStyleSheets = [...c.adoptedStyleSheets, S], p.add(g);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return g;
|
|
245
|
+
})(r.shadowRoot ? r.shadowRoot : r.getRootNode(), i);
|
|
246
|
+
10 & u && (r["s-sc"] = d, r.classList.add(d + "-h"));
|
|
247
|
+
})(e), Ne(e, t, s, o), a && (a.map(((l) => l())), s["s-rc"] = void 0);
|
|
248
|
+
{
|
|
249
|
+
const l = (n = s["s-p"]) != null ? n : [], i = () => xe(e);
|
|
250
|
+
l.length === 0 ? i() : (Promise.all(l).then(i).catch(i), e.i |= 4, l.length = 0);
|
|
251
|
+
}
|
|
252
|
+
}, Ne = (e, t, o, n) => {
|
|
253
|
+
try {
|
|
254
|
+
t = t.render(), e.i &= -17, e.i |= 2, Se(e, t, n);
|
|
255
|
+
} catch (s) {
|
|
256
|
+
L(s, e.$hostElement$);
|
|
257
|
+
}
|
|
258
|
+
return null;
|
|
259
|
+
}, xe = (e) => {
|
|
260
|
+
const t = e.$hostElement$, o = t, n = e.A;
|
|
261
|
+
x(o, "componentDidRender", void 0, t), 64 & e.i ? x(o, "componentDidUpdate", void 0, t) : (e.i |= 64, Pe(t), x(o, "componentDidLoad", void 0, t), e.L(t), n || Le()), e.C && (e.C(), e.C = void 0), 512 & e.i && G((() => z(e, !1))), e.i &= -517;
|
|
262
|
+
}, Le = () => {
|
|
263
|
+
G((() => he($, "appload", { detail: { namespace: "gids-core-web" } })));
|
|
264
|
+
}, x = (e, t, o, n) => {
|
|
265
|
+
if (e && e[t]) try {
|
|
266
|
+
return e[t](o);
|
|
267
|
+
} catch (s) {
|
|
268
|
+
L(s, n);
|
|
269
|
+
}
|
|
270
|
+
}, Pe = (e) => e.classList.add("hydrated"), le = (e, t, o, n) => {
|
|
271
|
+
const s = E(e);
|
|
272
|
+
if (!s) return;
|
|
273
|
+
const a = e, l = s.o.get(t), i = s.i, r = a;
|
|
274
|
+
o = de(o, n.t[t][0]);
|
|
275
|
+
const u = Number.isNaN(l) && Number.isNaN(o);
|
|
276
|
+
if (o !== l && !u && (s.o.set(t, o), 2 & i)) {
|
|
277
|
+
if (r.componentShouldUpdate && r.componentShouldUpdate(o, l, t) === !1 && !(16 & i)) return;
|
|
278
|
+
16 & i || z(s, !1);
|
|
279
|
+
}
|
|
280
|
+
}, Me = (e, t) => {
|
|
281
|
+
var o, n;
|
|
282
|
+
const s = e.prototype;
|
|
283
|
+
if (t.t) {
|
|
284
|
+
const a = Object.entries((o = t.t) != null ? o : {});
|
|
285
|
+
a.map((([l, [i]]) => {
|
|
286
|
+
if (31 & i || 32 & i) {
|
|
287
|
+
const { get: r, set: u } = ie(s, l) || {};
|
|
288
|
+
r && (t.t[l][0] |= 2048), u && (t.t[l][0] |= 4096), Object.defineProperty(s, l, { get() {
|
|
289
|
+
return r ? r.apply(this) : (d = l, E(this).o.get(d));
|
|
290
|
+
var d;
|
|
291
|
+
}, configurable: !0, enumerable: !0 }), Object.defineProperty(s, l, { set(d) {
|
|
292
|
+
const c = E(this);
|
|
293
|
+
if (c) {
|
|
294
|
+
if (u) return (32 & i ? this[l] : c.$hostElement$[l]) === void 0 && c.o.get(l) && (d = c.o.get(l)), u.apply(this, [de(d, i)]), void le(this, l, d = 32 & i ? this[l] : c.$hostElement$[l], t);
|
|
295
|
+
le(this, l, d, t);
|
|
296
|
+
}
|
|
297
|
+
} });
|
|
298
|
+
}
|
|
299
|
+
}));
|
|
300
|
+
{
|
|
301
|
+
const l = /* @__PURE__ */ new Map();
|
|
302
|
+
s.attributeChangedCallback = function(i, r, u) {
|
|
303
|
+
O.jmp((() => {
|
|
304
|
+
var d;
|
|
305
|
+
const c = l.get(i), v = E(this);
|
|
306
|
+
if (this.hasOwnProperty(c), s.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == u) return;
|
|
307
|
+
if (c == null) {
|
|
308
|
+
const m = v?.i;
|
|
309
|
+
if (v && m && !(8 & m) && u !== r) {
|
|
310
|
+
const p = this, h = (d = t.R) == null ? void 0 : d[i];
|
|
311
|
+
h?.forEach(((S) => {
|
|
312
|
+
const [[f, y]] = Object.entries(S);
|
|
313
|
+
p[f] != null && (128 & m || 1 & y) && p[f].call(p, u, r, i);
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
const C = a.find((([m]) => m === c)), w = C && 4 & C[1][0], b = w && u === null && this[c] === void 0;
|
|
319
|
+
w && (u = u !== null && u !== "false");
|
|
320
|
+
const g = Object.getOwnPropertyDescriptor(s, c);
|
|
321
|
+
b || u == this[c] || g.get && !g.set || (this[c] = u);
|
|
322
|
+
}));
|
|
323
|
+
}, e.observedAttributes = Array.from(/* @__PURE__ */ new Set([...Object.keys((n = t.R) != null ? n : {}), ...a.filter((([i, r]) => 31 & r[0])).map((([i, r]) => {
|
|
324
|
+
var u;
|
|
325
|
+
const d = r[1] || i;
|
|
326
|
+
return l.set(d, i), 512 & r[0] && ((u = t.k) == null || u.push([i, d])), d;
|
|
327
|
+
}))]));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return e;
|
|
331
|
+
}, qe = (e, t) => {
|
|
332
|
+
const o = { i: t[0], h: t[1] };
|
|
333
|
+
try {
|
|
334
|
+
o.t = t[2], o.k = [];
|
|
335
|
+
const n = e.prototype.connectedCallback, s = e.prototype.disconnectedCallback;
|
|
336
|
+
return Object.assign(e.prototype, { __hasHostListenerAttached: !1, __registerHost() {
|
|
337
|
+
((a, l) => {
|
|
338
|
+
const i = { i: 0, $hostElement$: a, l, o: /* @__PURE__ */ new Map(), _: /* @__PURE__ */ new Map() };
|
|
339
|
+
i.H = new Promise(((u) => i.L = u)), a["s-p"] = [], a["s-rc"] = [];
|
|
340
|
+
const r = i;
|
|
341
|
+
a.__stencil__getHostRef = () => r, 512 & l.i && be(a, i);
|
|
342
|
+
})(this, o);
|
|
343
|
+
}, connectedCallback() {
|
|
344
|
+
if (!this.__hasHostListenerAttached) {
|
|
345
|
+
if (!E(this)) return;
|
|
346
|
+
this.__hasHostListenerAttached = !0;
|
|
347
|
+
}
|
|
348
|
+
((a) => {
|
|
349
|
+
if (!(1 & O.i)) {
|
|
350
|
+
const l = E(a);
|
|
351
|
+
if (!l) return;
|
|
352
|
+
const i = l.l;
|
|
353
|
+
if (1 & l.i) l?.P || l?.H && l.H.then((() => {
|
|
354
|
+
}));
|
|
355
|
+
else {
|
|
356
|
+
l.i |= 1;
|
|
357
|
+
{
|
|
358
|
+
let r = a;
|
|
359
|
+
for (; r = r.parentNode || r.host; ) if (r["s-p"]) {
|
|
360
|
+
ve(l, l.A = r);
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
i.t && Object.entries(i.t).map((([r, [u]]) => {
|
|
365
|
+
if (31 & u && Object.prototype.hasOwnProperty.call(a, r)) {
|
|
366
|
+
const d = a[r];
|
|
367
|
+
delete a[r], a[r] = d;
|
|
368
|
+
}
|
|
369
|
+
})), (async (r, u, d) => {
|
|
370
|
+
let c;
|
|
371
|
+
try {
|
|
372
|
+
if (!(32 & u.i) && (u.i |= 32, c = r.constructor, customElements.whenDefined(r.localName).then((() => u.i |= 128)), c && c.style)) {
|
|
373
|
+
let w;
|
|
374
|
+
typeof c.style == "string" && (w = c.style);
|
|
375
|
+
const b = ae(d);
|
|
376
|
+
M.has(b) || ((g, m, p) => {
|
|
377
|
+
let h = M.get(g);
|
|
378
|
+
F && p ? (h = h || new CSSStyleSheet(), typeof h == "string" ? h = m : h.replaceSync(m)) : h = m, M.set(g, h);
|
|
379
|
+
})(b, w, !!(1 & d.i));
|
|
380
|
+
}
|
|
381
|
+
const v = u.A, C = () => z(u, !0);
|
|
382
|
+
v && v["s-rc"] ? v["s-rc"].push(C) : C();
|
|
383
|
+
} catch (v) {
|
|
384
|
+
L(v, r), u.C && (u.C(), u.C = void 0), u.L && u.L(r);
|
|
385
|
+
}
|
|
386
|
+
})(a, l, i);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
})(this), n && n.call(this);
|
|
390
|
+
}, disconnectedCallback() {
|
|
391
|
+
(async (a) => {
|
|
392
|
+
1 & O.i || E(a), k.has(a) && k.delete(a), a.shadowRoot && k.has(a.shadowRoot) && k.delete(a.shadowRoot);
|
|
393
|
+
})(this), s && s.call(this);
|
|
394
|
+
}, __attachShadow() {
|
|
395
|
+
if (this.shadowRoot) {
|
|
396
|
+
if (this.shadowRoot.mode !== "open") throw new Error(`Unable to re-use existing shadow root for ${o.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`);
|
|
397
|
+
} else $e.call(this, o);
|
|
398
|
+
} }), Object.defineProperty(e, "is", { value: o.h, configurable: !0 }), Me(e, o);
|
|
399
|
+
} catch (n) {
|
|
400
|
+
return L(n), e;
|
|
401
|
+
}
|
|
402
|
+
}, Ue = (e) => O.D = e, Be = (e) => Object.assign(O, e), se = /* @__PURE__ */ new WeakMap();
|
|
403
|
+
function Ve(e, t) {
|
|
404
|
+
let o = se.get(t);
|
|
405
|
+
o || (o = { i: 0, l: { i: 0, h: t.tagName }, $hostElement$: t }, se.set(t, o)), Se(o, e);
|
|
406
|
+
}
|
|
407
|
+
function Fe(e) {
|
|
408
|
+
return e;
|
|
409
|
+
}
|
|
410
|
+
const R = globalThis.CSSStyleSheet !== void 0 ? new CSSStyleSheet() : void 0;
|
|
411
|
+
let re = !1;
|
|
412
|
+
R && document.adoptedStyleSheets ? document.adoptedStyleSheets.push(R) : console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");
|
|
413
|
+
let W = null;
|
|
414
|
+
const q = globalThis.MutationObserver !== void 0 ? new MutationObserver((() => {
|
|
415
|
+
ge();
|
|
416
|
+
})) : void 0, ge = () => {
|
|
417
|
+
if (R === void 0) return !1;
|
|
418
|
+
const e = (() => {
|
|
419
|
+
if (R === void 0) return;
|
|
420
|
+
const t = [];
|
|
421
|
+
for (let o = 0; o < document.styleSheets.length; o++) {
|
|
422
|
+
const n = document.styleSheets.item(o);
|
|
423
|
+
if (n) try {
|
|
424
|
+
let s = -1, a = 0;
|
|
425
|
+
for (let l = 0; l < n.cssRules.length; l++) {
|
|
426
|
+
const i = n.cssRules.item(l);
|
|
427
|
+
if (i?.cssText.startsWith("gids-global-styles-start")) s = l;
|
|
428
|
+
else if (s > -1) {
|
|
429
|
+
if (i?.cssText.startsWith("gids-global-styles-end")) {
|
|
430
|
+
a = l - s + 1;
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
t.push(i);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
if (s > -1) return { rulesStartIndex: s, originalRulesCount: a, rules: t, styleSheet: n };
|
|
437
|
+
} catch (s) {
|
|
438
|
+
if (!(s instanceof DOMException)) throw s;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
})();
|
|
442
|
+
if (e !== void 0) {
|
|
443
|
+
const t = e.styleSheet.ownerNode;
|
|
444
|
+
return q !== void 0 && t !== W && (W && q.disconnect(), t instanceof Element && q.observe(t, { childList: !0, characterData: !0, subtree: !0 }), W = t), R.replaceSync(((o) => o.rules.map(((n) => n.cssText)).join(""))(e)), ((o) => {
|
|
445
|
+
const { rulesStartIndex: n, originalRulesCount: s, styleSheet: a } = o;
|
|
446
|
+
for (let l = 0; l < s; l++) a.deleteRule(n);
|
|
447
|
+
})(e), !0;
|
|
448
|
+
}
|
|
449
|
+
return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."), !1;
|
|
450
|
+
}, Ge = () => (re || (re = ge()), R);
|
|
451
|
+
export {
|
|
452
|
+
ge as $,
|
|
453
|
+
ue as E,
|
|
454
|
+
We as _,
|
|
455
|
+
He as a,
|
|
456
|
+
Ue as b,
|
|
457
|
+
De as c,
|
|
458
|
+
Be as f,
|
|
459
|
+
Ge as g,
|
|
460
|
+
Ve as h,
|
|
461
|
+
Fe as p,
|
|
462
|
+
qe as u,
|
|
463
|
+
Te as w,
|
|
464
|
+
Ce as x
|
|
465
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(E,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(E=typeof globalThis<"u"?globalThis:E||self,P(E.gidsCoreWebGidsIcon={}))})(this,(function(E){"use strict";function P(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const o=Object.getOwnPropertyDescriptor(e,t);if(o&&(!s||o.get))return o;e=Object.getPrototypeOf(e)}}var N,je=(e,t)=>{var s;Object.entries((s=t.l.t)!=null?s:{}).map((([n,[o]])=>{if(31&o||32&o){const u=e[n],i=P(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(e,n,{get(){return i.get.call(this)},set(l){i.set.call(this,l)},configurable:!0,enumerable:!0}),t.o.has(n)?e[n]=t.o.get(n):u!==void 0&&(e[n]=u)}}))},C=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},te=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),T=new Map,$=typeof window<"u"?window:{},xe=$.HTMLElement||class{},A={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},B=(()=>{try{return!!$.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),z=!!B&&!!$.document&&Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets,"length").writable,q=!1,ne=[],se=[],Re=(e,t)=>s=>{e.push(s),q||(q=!0,4&A.i?K(U):A.raf(U))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){I(s)}e.length=0},U=()=>{oe(ne),oe(se),(q=ne.length>0)&&A.raf(U)},K=e=>Promise.resolve(void 0).then(e),Ne=Re(se);function Ie(){const e=this.attachShadow({mode:"open"});N===void 0&&(N=null),N&&(z?e.adoptedStyleSheets.push(N):e.adoptedStyleSheets=[...e.adoptedStyleSheets,N])}var G,k=new WeakMap,ie=e=>"sc-"+e.h,V=e=>(e=typeof e)=="object"||e==="function",j=(e,t,...s)=>{let n=null,o=null,u=!1,i=!1;const l=[],r=d=>{for(let a=0;a<d.length;a++)n=d[a],Array.isArray(n)?r(n):n!=null&&typeof n!="boolean"&&((u=typeof e!="function"&&!V(n))&&(n=String(n)),u&&i?l[l.length-1].p+=n:l.push(u?D(null,n):n),i=u)};if(r(s),t&&t.key&&(o=t.key),typeof e=="function")return e(t===null?{}:t,l,Me);const c=D(e,null);return c.m=t,l.length>0&&(c.v=l),c.$=o,c},D=(e,t)=>({i:0,S:e,p:t??null,O:null,v:null,m:null,$:null}),Le={},Me={forEach:(e,t)=>e.map(re).forEach(t),map:(e,t)=>e.map(re).map(t).map(Te)},re=e=>({vattrs:e.m,vchildren:e.v,vkey:e.$,vname:e.j,vtag:e.S,vtext:e.p}),Te=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),j(e.vtag,s,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.m=e.vattrs,t.v=e.vchildren,t.$=e.vkey,t.j=e.vname,t},le=(e,t)=>e==null||V(e)?e:4&t?e!=="false"&&(e===""||!!e):1&t?String(e):e,Ge=(e,t,s)=>{const n=A.ce(t,s);return e.dispatchEvent(n),n},ae=(e,t,s,n,o,u)=>{if(s===n)return;let i=te(e,t),l=t.toLowerCase();if(t!=="key"){if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let c;{const d=C(e);if(d&&d.l&&d.l.t){const a=d.l.t[r];a&&a[1]&&(c=a[1])}}return c||(c=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=n}catch{}return}{const r=V(n);if((i||r&&n!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const c=n??"";t==="list"?i=!1:s!=null&&e[t]===c||(typeof e.__lookupSetter__(t)=="function"?e[t]=c:e.setAttribute(t,c))}}catch{}n==null||n===!1?n===!1&&e.getAttribute(t)!==""||e.removeAttribute(t):(!i||4&u||o)&&!r&&e.nodeType===1&&e.setAttribute(t,n=n===!0?"":n)}}else if(t=t[2]==="-"?t.slice(3):te($,l)?l.slice(2):l[2]+t.slice(3),s||n){const r=t.endsWith(ce);t=t.replace(De,""),s&&A.rel(e,t,s,r),n&&A.ael(e,t,n,r)}}},ce="Capture",De=new RegExp(ce+"$"),ue=(e,t,s)=>{const n=t.O.nodeType===11&&t.O.host?t.O.host:t.O,o=e&&e.m||{},u=t.m||{};for(const i of de(Object.keys(o)))i in u||ae(n,i,o[i],void 0,s,t.i);for(const i of de(Object.keys(u)))ae(n,i,o[i],u[i],s,t.i)};function de(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var he=!1,fe=!1,H=(e,t,s)=>{const n=t.v[s];let o,u,i=0;if(n.p!=null)o=n.O=$.document.createTextNode(n.p);else{if(!$.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=n.O=$.document.createElement(n.S),ue(null,n,fe),n.v){const l=n.S==="template"?o.content:o;for(i=0;i<n.v.length;++i)u=H(e,n,i),u&&l.appendChild(u)}}return o["s-hn"]=G,o},pe=(e,t,s,n,o,u)=>{let i,l=e;for(l.shadowRoot&&l.tagName===G&&(l=l.shadowRoot),s.S==="template"&&(l=l.content);o<=u;++o)n[o]&&(i=H(null,s,o),i&&(n[o].O=i,L(l,i,t)))},me=(e,t,s)=>{for(let n=t;n<=s;++n){const o=e[n];if(o){const u=o.O;u&&u.remove()}}},W=(e,t,s=!1)=>e.S===t.S&&(s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),x=(e,t,s=!1)=>{const n=t.O=e.O,o=e.v,u=t.v,i=t.p;i==null?(t.S!=="slot"||he||e.j!==t.j&&(t.O["s-sn"]=t.j||"",(l=>{A.i|=1;const r=l.closest(G.toLowerCase());if(r!=null){const c=Array.from(r.__childNodes||r.childNodes).find((a=>a["s-cr"])),d=Array.from(l.__childNodes||l.childNodes);for(const a of c?d.reverse():d)a["s-sh"]!=null&&(L(r,a,c??null),a["s-sh"]=void 0)}A.i&=-2})(t.O.parentElement)),ue(e,t,fe),o!==null&&u!==null?((l,r,c,d,a=!1)=>{let g,O,b=0,w=0,S=0,m=0,p=r.length-1,h=r[0],v=r[p],f=d.length-1,y=d[0],_=d[f];const Pe=c.S==="template"?l.content:l;for(;b<=p&&w<=f;)if(h==null)h=r[++b];else if(v==null)v=r[--p];else if(y==null)y=d[++w];else if(_==null)_=d[--f];else if(W(h,y,a))x(h,y,a),h=r[++b],y=d[++w];else if(W(v,_,a))x(v,_,a),v=r[--p],_=d[--f];else if(W(h,_,a))x(h,_,a),L(Pe,h.O,v.O.nextSibling),h=r[++b],_=d[--f];else if(W(v,y,a))x(v,y,a),L(Pe,v.O,h.O),v=r[--p],y=d[++w];else{for(S=-1,m=b;m<=p;++m)if(r[m]&&r[m].$!==null&&r[m].$===y.$){S=m;break}S>=0?(O=r[S],O.S!==y.S?g=H(r&&r[w],c,S):(x(O,y,a),r[S]=void 0,g=O.O),y=d[++w]):(g=H(r&&r[w],c,w),y=d[++w]),g&&L(h.O.parentNode,g,h.O)}b>p?pe(l,d[f+1]==null?null:d[f+1].O,c,d,w,f):w>f&&me(r,b,p)})(n,o,t,u,s):u!==null?(e.p!==null&&(n.textContent=""),pe(n,null,t,u,0,u.length-1)):!s&&o!==null&&me(o,0,o.length-1)):e.p!==i&&(n.data=i)},L=(e,t,s)=>e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s),He=(e,t,s=!1)=>{const n=e.$hostElement$,o=e.l,u=e.M||D(null,null);var i;const l=(i=t)&&i.S===Le?t:j(null,null,t);if(G=n.tagName,o.k&&(l.m=l.m||{},o.k.forEach((([r,c])=>{l.m[c]=n[r]}))),s&&l.m)for(const r of Object.keys(l.m))n.hasAttribute(r)&&!["key","ref","style","class"].includes(r)&&(l.m[r]=n[r]);l.S=null,l.i|=4,e.M=l,l.O=u.O=n.shadowRoot||n,he=!(!(1&o.i)||128&o.i),x(u,l,s)},ge=(e,t)=>{if(t&&!e.C&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.C=()=>{t["s-p"].splice(s-1,1),n()})))}},F=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);ge(e,e.A);const s=()=>We(e,t);if(!t)return Ne(s);queueMicrotask((()=>{s()}))},We=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.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`);let o;return o=M(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),o=ye(o,(()=>M(n,"componentWillRender",void 0,s))),ye(o,(()=>ze(e,n,t)))},ye=(e,t)=>Be(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Be=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ze=async(e,t,s)=>{var n;const o=e.$hostElement$,u=o["s-rc"];s&&(i=>{const l=i.l,r=i.$hostElement$,c=l.i,d=((a,g)=>{var O,b,w;const S=ie(g),m=T.get(S);if(!$.document)return S;if(a=a.nodeType===11?a:$.document,m)if(typeof m=="string"){let p,h=k.get(a=a.head||a);if(h||k.set(a,h=new Set),!h.has(S)){p=$.document.createElement("style"),p.textContent=m;const v=(O=A.D)!=null?O:(function(){var f,y,_;return(_=(y=(f=$.document.head)==null?void 0:f.querySelector('meta[name="csp-nonce"]'))==null?void 0:y.getAttribute("content"))!=null?_:void 0})();if(v!=null&&p.setAttribute("nonce",v),!(1&g.i))if(a.nodeName==="HEAD"){const f=a.querySelectorAll("link[rel=preconnect]"),y=f.length>0?f[f.length-1].nextSibling:a.querySelector("style");a.insertBefore(p,y?.parentNode===a?y:null)}else if("host"in a)if(B){const f=new((b=a.defaultView)!=null?b:a.ownerDocument.defaultView).CSSStyleSheet;f.replaceSync(m),z?a.adoptedStyleSheets.unshift(f):a.adoptedStyleSheets=[f,...a.adoptedStyleSheets]}else{const f=a.querySelector("style");f?f.textContent=m+f.textContent:a.prepend(p)}else a.append(p);1&g.i&&a.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(S)}}else{let p=k.get(a);if(p||k.set(a,p=new Set),!p.has(S)){const h=(w=a.defaultView)!=null?w:a.ownerDocument.defaultView;let v;if(m.constructor===h.CSSStyleSheet)v=m;else{v=new h.CSSStyleSheet;for(let f=0;f<m.cssRules.length;f++)v.insertRule(m.cssRules[f].cssText,f)}z?a.adoptedStyleSheets.push(v):a.adoptedStyleSheets=[...a.adoptedStyleSheets,v],p.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&c&&(r["s-sc"]=d,r.classList.add(d+"-h"))})(e),qe(e,t,o,s),u&&(u.map((i=>i())),o["s-rc"]=void 0);{const i=(n=o["s-p"])!=null?n:[],l=()=>Ue(e);i.length===0?l():(Promise.all(i).then(l).catch(l),e.i|=4,i.length=0)}},qe=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,He(e,t,n)}catch(o){I(o,e.$hostElement$)}return null},Ue=e=>{const t=e.$hostElement$,s=t,n=e.A;M(s,"componentDidRender",void 0,t),64&e.i?M(s,"componentDidUpdate",void 0,t):(e.i|=64,Ve(t),M(s,"componentDidLoad",void 0,t),e.L(t),n||Ke()),e.C&&(e.C(),e.C=void 0),512&e.i&&K((()=>F(e,!1))),e.i&=-517},Ke=()=>{K((()=>Ge($,"appload",{detail:{namespace:"gids-core-web"}})))},M=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(o){I(o,n)}},Ve=e=>e.classList.add("hydrated"),ve=(e,t,s,n)=>{const o=C(e);if(!o)return;const u=e,i=o.o.get(t),l=o.i,r=u;s=le(s,n.t[t][0]);const c=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!c&&(o.o.set(t,s),2&l)){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,i,t)===!1&&!(16&l))return;16&l||F(o,!1)}},Fe=(e,t)=>{var s,n;const o=e.prototype;if(t.t){const u=Object.entries((s=t.t)!=null?s:{});u.map((([i,[l]])=>{if(31&l||32&l){const{get:r,set:c}=P(o,i)||{};r&&(t.t[i][0]|=2048),c&&(t.t[i][0]|=4096),Object.defineProperty(o,i,{get(){return r?r.apply(this):(d=i,C(this).o.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,i,{set(d){const a=C(this);if(a){if(c)return(32&l?this[i]:a.$hostElement$[i])===void 0&&a.o.get(i)&&(d=a.o.get(i)),c.apply(this,[le(d,l)]),void ve(this,i,d=32&l?this[i]:a.$hostElement$[i],t);ve(this,i,d,t)}}})}}));{const i=new Map;o.attributeChangedCallback=function(l,r,c){A.jmp((()=>{var d;const a=i.get(l),g=C(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==c)return;if(a==null){const m=g?.i;if(g&&m&&!(8&m)&&c!==r){const p=this,h=(d=t.R)==null?void 0:d[l];h?.forEach((v=>{const[[f,y]]=Object.entries(v);p[f]!=null&&(128&m||1&y)&&p[f].call(p,c,r,l)}))}return}const O=u.find((([m])=>m===a)),b=O&&4&O[1][0],w=b&&c===null&&this[a]===void 0;b&&(c=c!==null&&c!=="false");const S=Object.getOwnPropertyDescriptor(o,a);w||c==this[a]||S.get&&!S.set||(this[a]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...u.filter((([l,r])=>31&r[0])).map((([l,r])=>{var c;const d=r[1]||l;return i.set(d,l),512&r[0]&&((c=t.k)==null||c.push([l,d])),d}))]))}}return e},Ye=(e,t)=>{const s={i:t[0],h:t[1]};try{s.t=t[2],s.k=[];const n=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((u,i)=>{const l={i:0,$hostElement$:u,l:i,o:new Map,_:new Map};l.H=new Promise((c=>l.L=c)),u["s-p"]=[],u["s-rc"]=[];const r=l;u.__stencil__getHostRef=()=>r,512&i.i&&je(u,l)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!C(this))return;this.__hasHostListenerAttached=!0}(u=>{if(!(1&A.i)){const i=C(u);if(!i)return;const l=i.l;if(1&i.i)i?.P||i?.H&&i.H.then((()=>{}));else{i.i|=1;{let r=u;for(;r=r.parentNode||r.host;)if(r["s-p"]){ge(i,i.A=r);break}}l.t&&Object.entries(l.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(u,r)){const d=u[r];delete u[r],u[r]=d}})),(async(r,c,d)=>{let a;try{if(!(32&c.i)&&(c.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),a&&a.style)){let b;typeof a.style=="string"&&(b=a.style);const w=ie(d);T.has(w)||((S,m,p)=>{let h=T.get(S);B&&p?(h=h||new CSSStyleSheet,typeof h=="string"?h=m:h.replaceSync(m)):h=m,T.set(S,h)})(w,b,!!(1&d.i))}const g=c.A,O=()=>F(c,!0);g&&g["s-rc"]?g["s-rc"].push(O):O()}catch(g){I(g,r),c.C&&(c.C(),c.C=void 0),c.L&&c.L(r)}})(u,i,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async u=>{1&A.i||C(u),k.has(u)&&k.delete(u),u.shadowRoot&&k.has(u.shadowRoot)&&k.delete(u.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ie.call(this,s)}}),Object.defineProperty(e,"is",{value:s.h,configurable:!0}),Fe(e,s)}catch(n){return I(n),e}};function dt(e){return e}const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Se=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Y=null;const Z=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{be()})):void 0,be=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let o=-1,u=0;for(let i=0;i<n.cssRules.length;i++){const l=n.cssRules.item(i);if(l?.cssText.startsWith("gids-global-styles-start"))o=i;else if(o>-1){if(l?.cssText.startsWith("gids-global-styles-end")){u=i-o+1;break}t.push(l)}}if(o>-1)return{rulesStartIndex:o,originalRulesCount:u,rules:t,styleSheet:n}}catch(o){if(!(o instanceof DOMException))throw o}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Z!==void 0&&t!==Y&&(Y&&Z.disconnect(),t instanceof Element&&Z.observe(t,{childList:!0,characterData:!0,subtree:!0}),Y=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:o,styleSheet:u}=s;for(let i=0;i<o;i++)u.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ze=()=>(Se||(Se=be()),R),we={"icons-other.svg":["accessibility","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Oe=new Map;for(const e in we)for(const t of we[e])Oe.set(t,e);function Je(e){return Oe.get(e)}function $e(e,t="regular",s){const n=Je(e);let o=n??"";return s&&n&&(o=s(n)??n),`${o}#${e}${t==="filled"?"--filled":""}`}function Ae(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(s=Ae(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Qe(){for(var e,t,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(t=Ae(e))&&(n&&(n+=" "),n+=t);return n}const Xe=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Qe("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),J=Symbol("defaultPath"),_e=Symbol("pathSet"),Q="gids-asset-paths-set";class et extends EventTarget{#n=new Map;constructor(){super()}#e(t,s){this.#n.set(t,s)}#t(t){return this.#n.get(t)??null}#s=()=>{this.dispatchEvent(new Event(Q))};haveAssetPathsBeenSet(){return this.#t(_e)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(J,t);else{for(const n in t)this.#e(n,t[n]);s&&this.#e(J,s)}this.#e(_e,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const s=this.#t(t);if(s===null){const n=this.#t(J);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Q,t,{once:!0}),()=>{this.removeEventListener(Q,t)}}}const X=Symbol.for("GIDS"),tt=()=>(globalThis[X]===void 0&&(globalThis[X]={assetPaths:{}}),globalThis[X]),nt=e=>{const t=tt().assetPaths;return t[e]===void 0&&(t[e]=new et),t[e]};function ee(){return nt("@ganpatiinfo/gids-web-shared")}function st(){return ee().haveAssetPathsBeenSet()}function Ce(e){return ee().getAssetFilePath(e)}function ot(e){return ee().onAssetPathsSet(e)}let it=0;const rt=(e,t="gids")=>e||`${t}-${it++}`,{getGidsIconClassNames:lt}=Xe,at=({name:e,size:t,appearance:s,alt:n,class:o,titleId:u,src:i,...l})=>{const r=rt(u);let c=i;return c===void 0&&st()&&(c=$e(e,s,Ce)),j("svg",{ref:d=>{c===void 0&&ot((()=>{(function(a,g,O){if(!a)return;const b=document.createElementNS("http://www.w3.org/2000/svg","use");b.setAttribute("href",$e(g,O,Ce)),a.appendChild(b)})(d,e,s)}))},width:"16",height:"16",class:lt({size:t},o),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&j("title",{id:r},n||e),c!==void 0?j("use",{href:c}):null)},ke=Ye(class extends xe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ze();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return j(at,{key:"2459cf3111612150342d5a57574fd61157a9c591",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%)}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ee(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,ke))}))}Ee();const ct=ke,ut=Ee;E.GidsIcon=ct,E.defineCustomElement=ut,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(function(E,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(E=typeof globalThis<"u"?globalThis:E||self,A(E.gidsCoreWebGidsToggleButton={}))})(this,(function(E){"use strict";function A(e,t,o){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const l=Object.getOwnPropertyDescriptor(e,t);if(l&&(!o||l.get))return l;e=Object.getPrototypeOf(e)}}var L,Ne=(e,t)=>{var o;Object.entries((o=t.l.t)!=null?o:{}).map((([n,[l]])=>{if(31&l||32&l){const a=e[n],s=A(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);s&&Object.defineProperty(e,n,{get(){return s.get.call(this)},set(i){s.set.call(this,i)},configurable:!0,enumerable:!0}),t.o.has(n)?e[n]=t.o.get(n):a!==void 0&&(e[n]=a)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ee=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),T=new Map,$=typeof window<"u"?window:{},Le=$.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},z=(()=>{try{return!!$.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),V=!!z&&!!$.document&&Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets,"length").writable,F=!1,te=[],ne=[],Me=(e,t)=>o=>{e.push(o),F||(F=!0,4&C.i?Y(U):C.raf(U))},oe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){M(o)}e.length=0},U=()=>{oe(te),oe(ne),(F=te.length>0)&&C.raf(U)},Y=e=>Promise.resolve(void 0).then(e),Pe=Me(ne);function De(){const e=this.attachShadow({mode:"open"});L===void 0&&(L=null),L&&(V?e.adoptedStyleSheets.push(L):e.adoptedStyleSheets=[...e.adoptedStyleSheets,L])}var H,j=new WeakMap,se=e=>"sc-"+e.h,Z=e=>(e=typeof e)=="object"||e==="function",O=(e,t,...o)=>{let n=null,l=null,a=!1,s=!1;const i=[],r=u=>{for(let c=0;c<u.length;c++)n=u[c],Array.isArray(n)?r(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!Z(n))&&(n=String(n)),a&&s?i[i.length-1].p+=n:i.push(a?I(null,n):n),s=a)};if(r(o),t&&t.key&&(l=t.key),typeof e=="function")return e(t===null?{}:t,i,Te);const d=I(e,null);return d.m=t,i.length>0&&(d.v=i),d.$=l,d},I=(e,t)=>({i:0,S:e,p:t??null,O:null,v:null,m:null,$:null}),le={},Te={forEach:(e,t)=>e.map(re).forEach(t),map:(e,t)=>e.map(re).map(t).map(He)},re=e=>({vattrs:e.m,vchildren:e.v,vkey:e.$,vname:e.j,vtag:e.S,vtext:e.p}),He=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),O(e.vtag,o,...e.vchildren||[])}const t=I(e.vtag,e.vtext);return t.m=e.vattrs,t.v=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ie=(e,t)=>e==null||Z(e)?e:4&t?e!=="false"&&(e===""||!!e):1&t?String(e):e,Ie=(e,t)=>{const o=e;return{emit:n=>ce(o,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},ce=(e,t,o)=>{const n=C.ce(t,o);return e.dispatchEvent(n),n},ae=(e,t,o,n,l,a)=>{if(o===n)return;let s=ee(e,t),i=t.toLowerCase();if(t!=="key"){if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=x(e);if(u&&u.l&&u.l.t){const c=u.l.t[r];c&&c[1]&&(d=c[1])}}return d||(d=r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const r=t.slice(5);try{e[r]=n}catch{}return}{const r=Z(n);if((s||r&&n!==null)&&!l)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const d=n??"";t==="list"?s=!1:o!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}n==null||n===!1?n===!1&&e.getAttribute(t)!==""||e.removeAttribute(t):(!s||4&a||l)&&!r&&e.nodeType===1&&e.setAttribute(t,n=n===!0?"":n)}}else if(t=t[2]==="-"?t.slice(3):ee($,i)?i.slice(2):i[2]+t.slice(3),o||n){const r=t.endsWith(de);t=t.replace(Be,""),o&&C.rel(e,t,o,r),n&&C.ael(e,t,n,r)}}},de="Capture",Be=new RegExp(de+"$"),ue=(e,t,o)=>{const n=t.O.nodeType===11&&t.O.host?t.O.host:t.O,l=e&&e.m||{},a=t.m||{};for(const s of fe(Object.keys(l)))s in a||ae(n,s,l[s],void 0,o,t.i);for(const s of fe(Object.keys(a)))ae(n,s,l[s],a[s],o,t.i)};function fe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var he=!1,pe=!1,B=(e,t,o)=>{const n=t.v[o];let l,a,s=0;if(n.p!=null)l=n.O=$.document.createTextNode(n.p);else{if(!$.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.O=$.document.createElement(n.S),ue(null,n,pe),n.v){const i=n.S==="template"?l.content:l;for(s=0;s<n.v.length;++s)a=B(e,n,s),a&&i.appendChild(a)}}return l["s-hn"]=H,l},me=(e,t,o,n,l,a)=>{let s,i=e;for(i.shadowRoot&&i.tagName===H&&(i=i.shadowRoot),o.S==="template"&&(i=i.content);l<=a;++l)n[l]&&(s=B(null,o,l),s&&(n[l].O=s,P(i,s,t)))},ge=(e,t,o)=>{for(let n=t;n<=o;++n){const l=e[n];if(l){const a=l.O;a&&a.remove()}}},G=(e,t,o=!1)=>e.S===t.S&&(o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),R=(e,t,o=!1)=>{const n=t.O=e.O,l=e.v,a=t.v,s=t.p;s==null?(t.S!=="slot"||he||e.j!==t.j&&(t.O["s-sn"]=t.j||"",(i=>{C.i|=1;const r=i.closest(H.toLowerCase());if(r!=null){const d=Array.from(r.__childNodes||r.childNodes).find((c=>c["s-cr"])),u=Array.from(i.__childNodes||i.childNodes);for(const c of d?u.reverse():u)c["s-sh"]!=null&&(P(r,c,d??null),c["s-sh"]=void 0)}C.i&=-2})(t.O.parentElement)),ue(e,t,pe),l!==null&&a!==null?((i,r,d,u,c=!1)=>{let g,_,w=0,v=0,S=0,m=0,p=r.length-1,f=r[0],b=r[p],h=u.length-1,y=u[0],k=u[h];const Re=d.S==="template"?i.content:i;for(;w<=p&&v<=h;)if(f==null)f=r[++w];else if(b==null)b=r[--p];else if(y==null)y=u[++v];else if(k==null)k=u[--h];else if(G(f,y,c))R(f,y,c),f=r[++w],y=u[++v];else if(G(b,k,c))R(b,k,c),b=r[--p],k=u[--h];else if(G(f,k,c))R(f,k,c),P(Re,f.O,b.O.nextSibling),f=r[++w],k=u[--h];else if(G(b,y,c))R(b,y,c),P(Re,b.O,f.O),b=r[--p],y=u[++v];else{for(S=-1,m=w;m<=p;++m)if(r[m]&&r[m].$!==null&&r[m].$===y.$){S=m;break}S>=0?(_=r[S],_.S!==y.S?g=B(r&&r[v],d,S):(R(_,y,c),r[S]=void 0,g=_.O),y=u[++v]):(g=B(r&&r[v],d,v),y=u[++v]),g&&P(f.O.parentNode,g,f.O)}w>p?me(i,u[h+1]==null?null:u[h+1].O,d,u,v,h):v>h&&ge(r,w,p)})(n,l,t,a,o):a!==null?(e.p!==null&&(n.textContent=""),me(n,null,t,a,0,a.length-1)):!o&&l!==null&&ge(l,0,l.length-1)):e.p!==s&&(n.data=s)},P=(e,t,o)=>e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o),Ge=(e,t,o=!1)=>{const n=e.$hostElement$,l=e.l,a=e.M||I(null,null);var s;const i=(s=t)&&s.S===le?t:O(null,null,t);if(H=n.tagName,l.k&&(i.m=i.m||{},l.k.forEach((([r,d])=>{i.m[d]=n[r]}))),o&&i.m)for(const r of Object.keys(i.m))n.hasAttribute(r)&&!["key","ref","style","class"].includes(r)&&(i.m[r]=n[r]);i.S=null,i.i|=4,e.M=i,i.O=a.O=n.shadowRoot||n,he=!(!(1&l.i)||128&l.i),R(a,i,o)},ye=(e,t)=>{if(t&&!e.C&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.C=()=>{t["s-p"].splice(o-1,1),n()})))}},J=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);ye(e,e.A);const o=()=>We(e,t);if(!t)return Pe(o);queueMicrotask((()=>{o()}))},We=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.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`);let l;return l=D(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),l=be(l,(()=>D(n,"componentWillRender",void 0,o))),be(l,(()=>ze(e,n,t)))},be=(e,t)=>qe(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),qe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ze=async(e,t,o)=>{var n;const l=e.$hostElement$,a=l["s-rc"];o&&(s=>{const i=s.l,r=s.$hostElement$,d=i.i,u=((c,g)=>{var _,w,v;const S=se(g),m=T.get(S);if(!$.document)return S;if(c=c.nodeType===11?c:$.document,m)if(typeof m=="string"){let p,f=j.get(c=c.head||c);if(f||j.set(c,f=new Set),!f.has(S)){p=$.document.createElement("style"),p.textContent=m;const b=(_=C.D)!=null?_:(function(){var h,y,k;return(k=(y=(h=$.document.head)==null?void 0:h.querySelector('meta[name="csp-nonce"]'))==null?void 0:y.getAttribute("content"))!=null?k:void 0})();if(b!=null&&p.setAttribute("nonce",b),!(1&g.i))if(c.nodeName==="HEAD"){const h=c.querySelectorAll("link[rel=preconnect]"),y=h.length>0?h[h.length-1].nextSibling:c.querySelector("style");c.insertBefore(p,y?.parentNode===c?y:null)}else if("host"in c)if(z){const h=new((w=c.defaultView)!=null?w:c.ownerDocument.defaultView).CSSStyleSheet;h.replaceSync(m),V?c.adoptedStyleSheets.unshift(h):c.adoptedStyleSheets=[h,...c.adoptedStyleSheets]}else{const h=c.querySelector("style");h?h.textContent=m+h.textContent:c.prepend(p)}else c.append(p);1&g.i&&c.insertBefore(p,null),4&g.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(S)}}else{let p=j.get(c);if(p||j.set(c,p=new Set),!p.has(S)){const f=(v=c.defaultView)!=null?v:c.ownerDocument.defaultView;let b;if(m.constructor===f.CSSStyleSheet)b=m;else{b=new f.CSSStyleSheet;for(let h=0;h<m.cssRules.length;h++)b.insertRule(m.cssRules[h].cssText,h)}V?c.adoptedStyleSheets.push(b):c.adoptedStyleSheets=[...c.adoptedStyleSheets,b],p.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),i);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),Ve(e,t,l,o),a&&(a.map((s=>s())),l["s-rc"]=void 0);{const s=(n=l["s-p"])!=null?n:[],i=()=>Fe(e);s.length===0?i():(Promise.all(s).then(i).catch(i),e.i|=4,s.length=0)}},Ve=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ge(e,t,n)}catch(l){M(l,e.$hostElement$)}return null},Fe=e=>{const t=e.$hostElement$,o=t,n=e.A;D(o,"componentDidRender",void 0,t),64&e.i?D(o,"componentDidUpdate",void 0,t):(e.i|=64,Ye(t),D(o,"componentDidLoad",void 0,t),e.L(t),n||Ue()),e.C&&(e.C(),e.C=void 0),512&e.i&&Y((()=>J(e,!1))),e.i&=-517},Ue=()=>{Y((()=>ce($,"appload",{detail:{namespace:"gids-core-web"}})))},D=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(l){M(l,n)}},Ye=e=>e.classList.add("hydrated"),Se=(e,t,o,n)=>{const l=x(e);if(!l)return;const a=e,s=l.o.get(t),i=l.i,r=a;o=ie(o,n.t[t][0]);const d=Number.isNaN(s)&&Number.isNaN(o);if(o!==s&&!d&&(l.o.set(t,o),2&i)){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,s,t)===!1&&!(16&i))return;16&i||J(l,!1)}},Ze=(e,t)=>{var o,n;const l=e.prototype;if(t.t){const a=Object.entries((o=t.t)!=null?o:{});a.map((([s,[i]])=>{if(31&i||32&i){const{get:r,set:d}=A(l,s)||{};r&&(t.t[s][0]|=2048),d&&(t.t[s][0]|=4096),Object.defineProperty(l,s,{get(){return r?r.apply(this):(u=s,x(this).o.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(l,s,{set(u){const c=x(this);if(c){if(d)return(32&i?this[s]:c.$hostElement$[s])===void 0&&c.o.get(s)&&(u=c.o.get(s)),d.apply(this,[ie(u,i)]),void Se(this,s,u=32&i?this[s]:c.$hostElement$[s],t);Se(this,s,u,t)}}})}}));{const s=new Map;l.attributeChangedCallback=function(i,r,d){C.jmp((()=>{var u;const c=s.get(i),g=x(this);if(this.hasOwnProperty(c),l.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const m=g?.i;if(g&&m&&!(8&m)&&d!==r){const p=this,f=(u=t.R)==null?void 0:u[i];f?.forEach((b=>{const[[h,y]]=Object.entries(b);p[h]!=null&&(128&m||1&y)&&p[h].call(p,d,r,i)}))}return}const _=a.find((([m])=>m===c)),w=_&&4&_[1][0],v=w&&d===null&&this[c]===void 0;w&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(l,c);v||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.R)!=null?n:{}),...a.filter((([i,r])=>31&r[0])).map((([i,r])=>{var d;const u=r[1]||i;return s.set(u,i),512&r[0]&&((d=t.k)==null||d.push([i,u])),u}))]))}}return e},Je=(e,t)=>{const o={i:t[0],h:t[1]};try{o.t=t[2],o.k=[];const n=e.prototype.connectedCallback,l=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((a,s)=>{const i={i:0,$hostElement$:a,l:s,o:new Map,_:new Map};i.H=new Promise((d=>i.L=d)),a["s-p"]=[],a["s-rc"]=[];const r=i;a.__stencil__getHostRef=()=>r,512&s.i&&Ne(a,i)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(a=>{if(!(1&C.i)){const s=x(a);if(!s)return;const i=s.l;if(1&s.i)s?.P||s?.H&&s.H.then((()=>{}));else{s.i|=1;{let r=a;for(;r=r.parentNode||r.host;)if(r["s-p"]){ye(s,s.A=r);break}}i.t&&Object.entries(i.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(a,r)){const u=a[r];delete a[r],a[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let w;typeof c.style=="string"&&(w=c.style);const v=se(u);T.has(v)||((S,m,p)=>{let f=T.get(S);z&&p?(f=f||new CSSStyleSheet,typeof f=="string"?f=m:f.replaceSync(m)):f=m,T.set(S,f)})(v,w,!!(1&u.i))}const g=d.A,_=()=>J(d,!0);g&&g["s-rc"]?g["s-rc"].push(_):_()}catch(g){M(g,r),d.C&&(d.C(),d.C=void 0),d.L&&d.L(r)}})(a,s,i)}}})(this),n&&n.call(this)},disconnectedCallback(){(async a=>{1&C.i||x(a),j.has(a)&&j.delete(a),a.shadowRoot&&j.has(a.shadowRoot)&&j.delete(a.shadowRoot)})(this),l&&l.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else De.call(this,o)}}),Object.defineProperty(e,"is",{value:o.h,configurable:!0}),Ze(e,o)}catch(n){return M(n),e}};function ut(e){return e}const N=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ve=!1;N&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(N):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let K=null;const Q=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{we()})):void 0,we=()=>{if(N===void 0)return!1;const e=(()=>{if(N===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let l=-1,a=0;for(let s=0;s<n.cssRules.length;s++){const i=n.cssRules.item(s);if(i?.cssText.startsWith("gids-global-styles-start"))l=s;else if(l>-1){if(i?.cssText.startsWith("gids-global-styles-end")){a=s-l+1;break}t.push(i)}}if(l>-1)return{rulesStartIndex:l,originalRulesCount:a,rules:t,styleSheet:n}}catch(l){if(!(l instanceof DOMException))throw l}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Q!==void 0&&t!==K&&(K&&Q.disconnect(),t instanceof Element&&Q.observe(t,{childList:!0,characterData:!0,subtree:!0}),K=t),N.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:l,styleSheet:a}=o;for(let s=0;s<l;s++)a.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ke=()=>(ve||(ve=we()),N);function _e(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(o=_e(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Oe(){for(var e,t,o=0,n="",l=arguments.length;o<l;o++)(e=arguments[o])&&(t=_e(e))&&(n&&(n+=" "),n+=t);return n}const Qe=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>Oe("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},o,n)},Symbol.toStringTag,{value:"Module"})),Xe=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,loading:l},a,s)=>Oe("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":n,"gids-button--icon-only":a,"gids-button--loading":l},s)},Symbol.toStringTag,{value:"Module"})),W=64,$e=10,Ce=W/2-$e/2,et=W/2,X=2*Math.PI*Ce,tt=`0 0 ${W} ${W}`,nt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,l=Math.max(0,Math.min(o,e))/o*100,a=(X*l/100).toFixed(2),s=(X-parseFloat(a)).toFixed(2);return`${a} ${s}`},centerPosition:et,circumference:X,radius:Ce,thickness:$e,viewBox:tt},Symbol.toStringTag,{value:"Module"})),ke=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:ot}=Qe,{calculateStrokeDasharray:st,thickness:xe,radius:je,centerPosition:q,viewBox:lt}=nt,rt=({size:e,indeterminate:t,value:o,max:n,...l})=>{let a;return t||(a={strokeDashArray:st(o,n||0),strokeDashoffset:"0"}),O("svg",{class:ot({size:e,indeterminate:t,value:o}),viewBox:lt,...l},O("circle",{class:"gids-spinner-control__track",cx:q,cy:q,r:je,"stroke-width":xe}),O("circle",{style:a,class:"gids-spinner-control__progress",cx:q,cy:q,r:je,"stroke-width":xe}))},{getGidsButtonClassNames:it}=Xe,ct=({appearance:e,size:t,destructive:o,loading:n,width:l,leadingIcon:a,trailingIcon:s,as:i,disabled:r,class:d,forceIconOnly:u=!1,...c},g)=>{const _=i||"button",w=t==="lg"||t===void 0?"md":t;return _!=="button"||"type"in c||(c.type="button"),O(_,{class:it({appearance:e,size:t,destructive:o,loading:n,width:l},u||g.length===0&&ke(a)&&!ke(s),d),disabled:_==="button"?r:void 0,...c},O("span",{class:"gids-button__content"},a,g),n&&O(rt,{size:w,indeterminate:!0}),s)},Ee=Je(class extends Le{get selected(){return this.#e??this.defaultSelected}set selected(e){this.#e=e===void 0?void 0:!!e}constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Ie(this,"select"),this._toggle=this._toggle.bind(this)}#e;connectedCallback(){const e=Ke();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e)}render(){return O(le,{key:"222a7976cfa0daa12d2db51e405d8f3e894209d9"},O("style",{key:"04b1d2f9a184e830b949691e789deaaaea987303"},`:host {
|
|
2
|
+
display: ${this.width==="full"?"block":"inline-block"}
|
|
3
|
+
}`),O(ct,{key:"18ef39dcc5b3a532a347e530784ec4915719f914",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:O("slot",{name:"leadingIcon"}),trailingIcon:O("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},O("slot",{key:"f82ab35082be6b10d0fb76b11c8250cd6ab374a4"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[6660]}]);function Ae(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Ee))}))}Ae();const at=Ee,dt=Ae;E.GidsToggleButton=at,E.defineCustomElement=dt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(h,C){typeof exports=="object"&&typeof module<"u"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(h=typeof globalThis<"u"?globalThis:h||self,C(h.gidsCoreWebIndex={}))})(this,(function(h){"use strict";var C=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},K=(t,e)=>e in t,w=typeof window<"u"?window:{},v={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})();var se=t=>{const e=new URL(t,v.u);return e.origin!==w.location.origin?e.href:e.pathname},ne=t=>v.u=t,G,q=t=>(t=typeof t)=="object"||t==="function",le=(t,e,...n)=>{let s=null,l=null,u=!1,r=!1;const i=[],o=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((u=!q(s))&&(s=String(s)),u&&r?i[i.length-1].p+=s:i.push(u?k(null,s):s),r=u)};o(n);const a=k(t,null);return a.m=e,i.length>0&&(a.v=i),a.$=l,a},k=(t,e)=>({i:0,S:t,p:e??null,O:null,v:null,m:null,$:null}),oe={},z=(t,e,n,s,l,u)=>{if(n===s)return;let r=K(t,e),i=e.toLowerCase();if(e!=="key"){if(t.__lookupSetter__(e)||e[0]!=="o"||e[1]!=="n"){if(e[0]==="a"&&e.startsWith("attr:")){const o=e.slice(5);let a;{const c=C(t);if(c&&c.l&&c.l.t){const f=c.l.t[o];f&&f[1]&&(a=f[1])}}return a||(a=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&t.getAttribute(a)!==""||t.removeAttribute(a):t.setAttribute(a,s===!0?"":s))}if(e[0]==="p"&&e.startsWith("prop:")){const o=e.slice(5);try{t[o]=s}catch{}return}{const o=q(s);if((r||o&&s!==null)&&!l)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const a=s??"";e==="list"?r=!1:n!=null&&t[e]===a||(typeof t.__lookupSetter__(e)=="function"?t[e]=a:t.setAttribute(e,a))}}catch{}s==null||s===!1?s===!1&&t.getAttribute(e)!==""||t.removeAttribute(e):(!r||4&u||l)&&!o&&t.nodeType===1&&t.setAttribute(e,s=s===!0?"":s)}}else if(e=e[2]==="-"?e.slice(3):K(w,i)?i.slice(2):i[2]+e.slice(3),n||s){const o=e.endsWith(H);e=e.replace(ie,""),n&&v.rel(t,e,n,o),s&&v.ael(t,e,s,o)}}},H="Capture",ie=new RegExp(H+"$"),U=(t,e,n)=>{const s=e.O.nodeType===11&&e.O.host?e.O.host:e.O,l=t&&t.m||{},u=e.m||{};for(const r of Y(Object.keys(l)))r in u||z(s,r,l[r],void 0,n,e.i);for(const r of Y(Object.keys(u)))z(s,r,l[r],u[r],n,e.i)};function Y(t){return t.includes("ref")?[...t.filter((e=>e!=="ref")),"ref"]:t}var Z=!1,F=!1,j=(t,e,n)=>{const s=e.v[n];let l,u,r=0;if(s.p!=null)l=s.O=w.document.createTextNode(s.p);else{if(!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=s.O=w.document.createElement(s.S),U(null,s,F),s.v){const i=s.S==="template"?l.content:l;for(r=0;r<s.v.length;++r)u=j(t,s,r),u&&i.appendChild(u)}}return l["s-hn"]=G,l},V=(t,e,n,s,l,u)=>{let r,i=t;for(i.shadowRoot&&i.tagName===G&&(i=i.shadowRoot),n.S==="template"&&(i=i.content);l<=u;++l)s[l]&&(r=j(null,n,l),r&&(s[l].O=r,E(i,r,e)))},J=(t,e,n)=>{for(let s=e;s<=n;++s){const l=t[s];if(l){const u=l.O;u&&u.remove()}}},N=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),P=(t,e,n=!1)=>{const s=e.O=t.O,l=t.v,u=e.v,r=e.p;r==null?(e.S!=="slot"||Z||t.j!==e.j&&(e.O["s-sn"]=e.j||"",(i=>{v.i|=1;const o=i.closest(G.toLowerCase());if(o!=null){const a=Array.from(o.__childNodes||o.childNodes).find((f=>f["s-cr"])),c=Array.from(i.__childNodes||i.childNodes);for(const f of a?c.reverse():c)f["s-sh"]!=null&&(E(o,f,a??null),f["s-sh"]=void 0)}v.i&=-2})(e.O.parentElement)),U(t,e,F),l!==null&&u!==null?((i,o,a,c,f=!1)=>{let T,R,A=0,m=0,$=0,O=0,p=o.length-1,S=o[0],y=o[p],g=c.length-1,d=c[0],b=c[g];const te=a.S==="template"?i.content:i;for(;A<=p&&m<=g;)if(S==null)S=o[++A];else if(y==null)y=o[--p];else if(d==null)d=c[++m];else if(b==null)b=c[--g];else if(N(S,d,f))P(S,d,f),S=o[++A],d=c[++m];else if(N(y,b,f))P(y,b,f),y=o[--p],b=c[--g];else if(N(S,b,f))P(S,b,f),E(te,S.O,y.O.nextSibling),S=o[++A],b=c[--g];else if(N(y,d,f))P(y,d,f),E(te,y.O,S.O),y=o[--p],d=c[++m];else{for($=-1,O=A;O<=p;++O)if(o[O]&&o[O].$!==null&&o[O].$===d.$){$=O;break}$>=0?(R=o[$],R.S!==d.S?T=j(o&&o[m],a,$):(P(R,d,f),o[$]=void 0,T=R.O),d=c[++m]):(T=j(o&&o[m],a,m),d=c[++m]),T&&E(S.O.parentNode,T,S.O)}A>p?V(i,c[g+1]==null?null:c[g+1].O,a,c,m,g):m>g&&J(o,A,p)})(s,l,e,u,n):u!==null?(t.p!==null&&(s.textContent=""),V(s,null,e,u,0,u.length-1)):!n&&l!==null&&J(l,0,l.length-1)):t.p!==r&&(s.data=r)},E=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):t?.insertBefore(e,n),re=(t,e,n=!1)=>{const s=t.$hostElement$,l=t.l,u=t.M||k(null,null);var r;const i=(r=e)&&r.S===oe?e:le(null,null,e);if(G=s.tagName,l.k&&(i.m=i.m||{},l.k.forEach((([o,a])=>{i.m[a]=s[o]}))),n&&i.m)for(const o of Object.keys(i.m))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(i.m[o]=s[o]);i.S=null,i.i|=4,t.M=i,i.O=u.O=s.shadowRoot||s,Z=!(!(1&l.i)||128&l.i),P(u,i,n)},ue=t=>v.D=t,ae=t=>Object.assign(v,t),Q=new WeakMap;function ce(t,e){let n=Q.get(e);n||(n={i:0,l:{i:0,h:e.tagName},$hostElement$:e},Q.set(e,n)),re(n,t)}const _=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let X=!1;_&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(_):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let W=null;const L=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{M()})):void 0,M=()=>{if(_===void 0)return!1;const t=(()=>{if(_===void 0)return;const e=[];for(let n=0;n<document.styleSheets.length;n++){const s=document.styleSheets.item(n);if(s)try{let l=-1,u=0;for(let r=0;r<s.cssRules.length;r++){const i=s.cssRules.item(r);if(i?.cssText.startsWith("gids-global-styles-start"))l=r;else if(l>-1){if(i?.cssText.startsWith("gids-global-styles-end")){u=r-l+1;break}e.push(i)}}if(l>-1)return{rulesStartIndex:l,originalRulesCount:u,rules:e,styleSheet:s}}catch(l){if(!(l instanceof DOMException))throw l}}})();if(t!==void 0){const e=t.styleSheet.ownerNode;return L!==void 0&&e!==W&&(W&&L.disconnect(),e instanceof Element&&L.observe(e,{childList:!0,characterData:!0,subtree:!0}),W=e),_.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(t)),(n=>{const{rulesStartIndex:s,originalRulesCount:l,styleSheet:u}=n;for(let r=0;r<l;r++)u.deleteRule(s)})(t),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},fe=()=>(X||(X=M()),_),B=Symbol("defaultPath"),ee=Symbol("pathSet"),D="gids-asset-paths-set";class he extends EventTarget{#s=new Map;constructor(){super()}#e(e,n){this.#s.set(e,n)}#t(e){return this.#s.get(e)??null}#n=()=>{this.dispatchEvent(new Event(D))};haveAssetPathsBeenSet(){return this.#t(ee)!==null}setAssetPaths(e,n){if(!this.haveAssetPathsBeenSet()){if(typeof e=="string")this.#e(B,e);else{for(const s in e)this.#e(s,e[s]);n&&this.#e(B,n)}this.#e(ee,"true"),setTimeout(this.#n,0)}}getAssetFilePath(e){const n=this.#t(e);if(n===null){const s=this.#t(B);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${e}`}return n}onAssetPathsSet(e){if(!this.haveAssetPathsBeenSet())return this.addEventListener(D,e,{once:!0}),()=>{this.removeEventListener(D,e)}}}const I=Symbol.for("GIDS"),de=()=>(globalThis[I]===void 0&&(globalThis[I]={assetPaths:{}}),globalThis[I]),Se=t=>{const e=de().assetPaths;return e[t]===void 0&&(e[t]=new he),e[t]};function me(){return Se("@ganpatiinfo/gids-web-shared")}function ye(t,e){me().setAssetPaths(t,e)}function x(t,e){ye(t,e)}const ge=t=>{x(t)},ve=t=>{x(t)};h.getAssetPath=se,h.getConstructedGidsStylesheet=fe,h.refreshConstructedGidsStylesheet=M,h.render=ce,h.setAssetPath=ne,h.setGidsAssetFilePaths=ge,h.setGidsAssetPaths=x,h.setGidsDefaultAssetDirPath=ve,h.setNonce=ue,h.setPlatformOptions=ae,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
|