@ganpatiinfo/gids-core-web 8.2.0 → 9.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/index.css +475 -0
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +332 -0
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-popover.d.ts +11 -0
- package/dist/gids-popover.js +1 -0
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +11 -0
- package/dist/gids-tooltip.js +1 -0
- package/dist/index.js +1 -1
- package/dist/p-B8kX8Vqv.js +1 -0
- package/dist/p-CFw4_-5A.js +1 -0
- package/dist/{p-Bg3lw2Ae.js → p-DvoHLz_5.js} +1 -1
- package/dist/p-a3JfEYJp.js +1 -0
- package/dist/{p-DjvDBWCb.js → p-iCAclJND.js} +1 -1
- package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
- package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
- package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
- package/dist/types/components.d.ts +77 -2
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-icon.js +9 -9
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-overflow-container.js +4 -4
- package/dist-bundled/es/gids-overlay-provider.js +3 -3
- package/dist-bundled/es/gids-password-field.js +19 -19
- package/dist-bundled/es/gids-popover.js +110 -0
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-text-field.js +7 -7
- package/dist-bundled/es/gids-toggle-button.js +5 -5
- package/dist-bundled/es/gids-tooltip.js +66 -0
- package/dist-bundled/es/index.js +33 -19
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
- package/dist-bundled/es/p-CFw4_-5A-Dzvju3VE.js +25 -0
- package/dist-bundled/es/{p-DijVkS9b-CtFkEtlE.js → p-DijVkS9b-CeV1i4T-.js} +1 -1
- package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DvoHLz_5-C5EvA91N.js} +7 -7
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
- package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-iCAclJND-Bmsvd-W1.js} +10 -10
- package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-veoOgDXg-fRinub-C.js} +12 -5
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +3 -3
- package/package.json +278 -262
- package/dist/p-CWdkmFbc.js +0 -1
- package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as l, C as n, f as r, R as
|
|
2
|
-
import { d as h } from "./p-veoOgDXg-
|
|
1
|
+
import { H as l, C as n, f as r, R as o, D as d } from "./p-ibikYq-w-BsGxk8ro.js";
|
|
2
|
+
import { d as h } from "./p-veoOgDXg-fRinub-C.js";
|
|
3
3
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -53,10 +53,10 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
53
53
|
render() {
|
|
54
54
|
const t = this._hasStatusText(), e = this._controlValidationMessage !== void 0 ? this._controlValidationMessage : this._shouldRenderExplicitStatusText() ? this.statusText : void 0, s = this._getCurrentStatus(), i = ["gids-field__status-text"];
|
|
55
55
|
if (t) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const a = this._getStatusModifierClass(s, "gids-field__status-text");
|
|
57
|
+
a != null && i.push(a);
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return o(d, { key: "f1c189d4ab013c55a6c4c28421a43ebb33878fed" }, o("div", { key: "473d4ee6ff5c4799eb390dace343c04cdddfc959", class: p() }, o("div", { key: "2c9360422392ee547c88d68251e2c2818d12df9a", class: "gids-field__header", hidden: !this._hasLabelContent() }, o("slot", { key: "9aeddb378b273fb98297f4d08bf63506ad12edc2", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), o("div", { key: "6408089c512c2f3a5182f26c396f21e0cd1d55e1", class: "gids-field__count", "aria-live": "polite" }, this.count)), o("div", { key: "46f8ba80d3bb1b501361121a1ccf6e7aa46b6466", class: "gids-field__control" }, o("slot", { key: "472a3796360ffe099e8baef78b7483da66da2f3e", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), o("p", { key: "adc16a67e0e48ac97e593ea65690db81ca1614c9", class: "gids-field__supporting-text", hidden: !this._shouldShowHelperText() }, this.helperText), t ? o("p", { class: i.join(" "), role: "status", "aria-live": "polite" }, this._renderStatusIcon(s), e !== void 0 ? o("span", null, e) : null) : null));
|
|
60
60
|
}
|
|
61
61
|
_hasLabelContent() {
|
|
62
62
|
return this._hasLabel;
|
|
@@ -79,8 +79,8 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
79
79
|
if (e === void 0) return;
|
|
80
80
|
const s = ["gids-field__status-icon"], i = this._getStatusModifierClass(t, "gids-field__status-icon");
|
|
81
81
|
i != null && s.push(i);
|
|
82
|
-
let
|
|
83
|
-
return t === "error" && (
|
|
82
|
+
let a = t;
|
|
83
|
+
return t === "error" && (a = "danger"), t === "success" && (a = "positive"), o(h, { appearance: "filled", size: "sm", alt: "", name: e, class: s.join(" "), style: { "--gidsIcon-color": `var(--gids-color-icon-${a})` } });
|
|
84
84
|
}
|
|
85
85
|
_getCurrentStatus() {
|
|
86
86
|
return this._isImplicitStatus() && this._controlValidationMessage != null ? "error" : this.status ?? "implicit";
|
|
@@ -120,7 +120,7 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
120
120
|
if (e && t.name != null) {
|
|
121
121
|
const s = e.elements.namedItem(t.name);
|
|
122
122
|
if (s instanceof RadioNodeList) {
|
|
123
|
-
const i = Array.from(s).filter(((
|
|
123
|
+
const i = Array.from(s).filter(((a) => a instanceof HTMLInputElement && a.type === "radio" && this._el.contains(a)));
|
|
124
124
|
if (i.length > 0) return i;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -141,8 +141,8 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
141
141
|
if (e.nodeType !== Node.ELEMENT_NODE) continue;
|
|
142
142
|
const s = e, i = this._asTextControl(s);
|
|
143
143
|
if (i !== null) return i;
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
144
|
+
const a = s.querySelector("input, textarea");
|
|
145
|
+
if (a instanceof HTMLInputElement || a instanceof HTMLTextAreaElement) return a;
|
|
146
146
|
}
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
@@ -14,6 +14,8 @@ let G = 0;
|
|
|
14
14
|
const P = (e, t = "gids") => e || `${t}-${G++}`, h = {
|
|
15
15
|
"icons-other.svg": [
|
|
16
16
|
"accessibility",
|
|
17
|
+
"add",
|
|
18
|
+
"remove",
|
|
17
19
|
"announcement",
|
|
18
20
|
"approval",
|
|
19
21
|
"archive",
|
|
@@ -52,6 +54,7 @@ const P = (e, t = "gids") => e || `${t}-${G++}`, h = {
|
|
|
52
54
|
"image",
|
|
53
55
|
"insurance",
|
|
54
56
|
"investment",
|
|
57
|
+
"in-progress",
|
|
55
58
|
"key",
|
|
56
59
|
"link",
|
|
57
60
|
"list",
|
|
@@ -65,7 +68,10 @@ const P = (e, t = "gids") => e || `${t}-${G++}`, h = {
|
|
|
65
68
|
"moon",
|
|
66
69
|
"network",
|
|
67
70
|
"neutral",
|
|
71
|
+
"ai",
|
|
68
72
|
"new",
|
|
73
|
+
"draft",
|
|
74
|
+
"pending",
|
|
69
75
|
"new-chat",
|
|
70
76
|
"pause",
|
|
71
77
|
"percent",
|
|
@@ -148,6 +154,7 @@ const P = (e, t = "gids") => e || `${t}-${G++}`, h = {
|
|
|
148
154
|
"positive",
|
|
149
155
|
"printer",
|
|
150
156
|
"question",
|
|
157
|
+
"syncing",
|
|
151
158
|
"search",
|
|
152
159
|
"select",
|
|
153
160
|
"select-all",
|
|
@@ -161,20 +168,20 @@ const P = (e, t = "gids") => e || `${t}-${G++}`, h = {
|
|
|
161
168
|
"users",
|
|
162
169
|
"warning"
|
|
163
170
|
]
|
|
164
|
-
},
|
|
171
|
+
}, p = /* @__PURE__ */ new Map();
|
|
165
172
|
for (const e in h)
|
|
166
173
|
for (const t of h[e])
|
|
167
|
-
|
|
174
|
+
p.set(t, e);
|
|
168
175
|
function $(e) {
|
|
169
|
-
return
|
|
176
|
+
return p.get(e);
|
|
170
177
|
}
|
|
171
178
|
function u(e, t = "regular", n) {
|
|
172
179
|
const o = $(e);
|
|
173
180
|
let i = o ?? "";
|
|
174
181
|
return n && o && (i = n(o) ?? o), `${i}#${e}${t === "filled" ? "--filled" : ""}`;
|
|
175
182
|
}
|
|
176
|
-
const { getGidsIconClassNames: A } = I, M = ({ name: e, size: t, appearance: n, alt: o, class: i, titleId:
|
|
177
|
-
const a = P(
|
|
183
|
+
const { getGidsIconClassNames: A } = I, M = ({ name: e, size: t, appearance: n, alt: o, class: i, titleId: m, src: g, ...f }) => {
|
|
184
|
+
const a = P(m);
|
|
178
185
|
let r = g;
|
|
179
186
|
return r === void 0 && y() && (r = u(e, n, d)), s("svg", { ref: (v) => {
|
|
180
187
|
r === void 0 && k((() => {
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&_.push(p)}return _})(S.childNodes)).forEach((y=>{h===G(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(L(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(L(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,L(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Ie(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,V=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,_=0,m=0,p=0,w=u.length-1,v=u[0],x=u[w],$=f.length-1,T=f[0],O=f[$];const Qe=d.O==="template"?c.content:c;for(;y<=w&&_<=$;)if(v==null)v=u[++y];else if(x==null)x=u[--w];else if(T==null)T=f[++_];else if(O==null)O=f[--$];else if(J(v,T,g))V(v,T,g),v=u[++y],T=f[++_];else if(J(x,O,g))V(x,O,g),x=u[--w],O=f[--$];else if(J(v,O,g))v.O!=="slot"&&O.O!=="slot"||Z(v.S.parentNode,!1),V(v,O,g),L(Qe,v.S,x.S.nextSibling),v=u[++y],O=f[--$];else if(J(x,T,g))v.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),V(x,T,g),L(Qe,x.S,v.S),x=u[--w],T=f[++_];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===T.$){m=p;break}m>=0?(S=u[m],S.O!==T.O?h=Y(u&&u[_],d,m):(V(S,T,g),u[m]=void 0,h=S.S),T=f[++_]):(h=Y(u&&u[_],d,_),T=f[++_]),h&&L(B(v.S).parentNode,h,B(v.S))}y>w?Me(c,f[$+1]==null?null:f[$+1].S,d,f,_,$):_>$&&Pe(u,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},k=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=k.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],k.push({N:i,k:t})),t["s-sr"]&&k.map((l=>{we(l.k,t["s-sn"])&&(a=k.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}i.nodeType===1&&Re(i)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ct=(e,t)=>{de.push((()=>e(t)))},L=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ht=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,u=e.M||q(null,null);var d;const f=(d=t)&&d.O===Ee?t:E(null,null,t);if(P=l.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=l[g]}))),o&&f.v)for(const g of Object.keys(f.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=l[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,V(u,f,o),C.i|=1,K){Re(f.S);for(const g of k){const h=g.k;if(!h["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=h,L(h.parentNode,h["s-ol"]=S,h,o)}}for(const g of k){const h=g.k,S=g.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(i=m["s-nr"])!=null?i:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){_=p;break}}m=m.previousSibling}}if((!_&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==_)&&h!==_){if(L(y,h,_,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,L(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&xe(f.S),C.i&=-2,k.length=0,!D&&!(1&c.i)&&l["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==P&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=b.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],L(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ie=void 0,ae.forEach((g=>g())),ae.length=0,de.forEach((g=>g())),de.length=0},Ve=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ve(e,e.C);const o=()=>ut(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>z(s,"componentWillRender",void 0,o))),Fe(n,(()=>pt(e,s,t)))},Fe=(e,t)=>ft(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ft=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Ce(f),_=W.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,p=j.get(d=d.head||d);if(p||j.set(d,p=new Set),!p.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(g=C.L)!=null?g:(function(){var v,x,$;return($=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+v.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===p.CSSStyleSheet)w=_;else{w=new p.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),gt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>mt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ht(e,t,s)}catch(n){I(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,vt(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},_t=()=>{se((()=>rt(b,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){I(n,s)}},vt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=A(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(l?l[f](o,r,t):n.T.push((()=>{n.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},yt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Te(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[a]])=>{if(31&a||32&a){const{get:l,set:c}=R(n,r)||{};l&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return l?l.apply(this):(u=r,A(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(u){const d=A(this);if(d){if(c)return(32&a?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[$e(u,a)]),void He(this,r,u=32&a?this[r]:d.$hostElement$[r],t);He(this,r,u,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(a,l,c){C.jmp((()=>{var u;const d=r.get(a),f=A(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const _=f?.i;if(f&&_&&!(8&_)&&c!==l){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,x]]=Object.entries(w);m[v]!=null&&(128&_||1&x)&&m[v].call(m,c,l,a)}))}return}const g=i.find((([_])=>_===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...i.filter((([a,l])=>31&l[0])).map((([a,l])=>{var c;const u=l[1]||a;return r.set(u,a),512&l[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Te(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&Xe(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=A(i);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,L(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ve(r,r.C=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const u=i[l];delete i[l],i[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Ce(u);W.has(S)||((y,_,m)=>{let p=W.get(y);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=_:p.replaceSync(_)):p=_,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>ce(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){I(f,l),c.A&&(c.A(),c.A=void 0),c.F&&c.F(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&C.i||A(i),j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),yt(e,o)}catch(s){return I(s),e}};function It(e){return e}function Ge(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ge(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function De(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>De("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"})),xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>De("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),Be=Symbol("pathSet"),ue="gids-asset-paths-set";class wt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(Be)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(Be,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Ct=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Et=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new wt),t[e]};function pe(){return Et("@ganpatiinfo/gids-web-shared")}function Nt(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function Tt(e){return pe().onAssetPathsSet(e)}let $t=0;const Lt=(e,t="gids")=>e||`${t}-${$t++}`,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"]},qe=new Map;for(const e in We)for(const t of We[e])qe.set(t,e);function Ot(e){return qe.get(e)}function Ue(e,t="regular",o){const s=Ot(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:kt}=bt,At=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let c=r;return c===void 0&&Nt()&&(c=Ue(e,o,ze)),E("svg",{ref:u=>{c===void 0&&Tt((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ue(f,g,ze)),d.appendChild(h)})(u,e,o)}))},width:"16",height:"16",class:kt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ke=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(F===void 0)return!1;const e=(()=>{if(F===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},jt=()=>(Ke||(Ke=Ye()),F),{getGidsFieldClassNames:Mt}=xt,Ze=St(class extends et{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=jt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"a8e81000bf235a842ddf98ef3be3ff5a82201b5d"},E("div",{key:"1c940955fd104dd85a5701f553d2ac5a7ddc14c8",class:Mt()},E("div",{key:"62e2a77c0661fc5507fe86d5343f85351895b3e7",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"c94c3346cd083969831905e0d0a7091013d32f3d",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"ef4ba969b9ac7be32c9c88260e357661eff68d54",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"cc2ea221e9c9725193238625f571848879e5c656",class:"gids-field__control"},E("slot",{key:"8530e0748d181e0c3b90e7602545cc67b404ef02",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"654ce845b3a9b5bfe3833a8122a05f3158a43fe4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(At,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ze))}))}Je();const Pt=Ze,Rt=Je;M.GidsField=Pt,M.defineCustomElement=Rt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&_.push(p)}return _})(S.childNodes)).forEach((y=>{h===G(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(L(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(L(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,L(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Ie(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,V=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,_=0,m=0,p=0,w=u.length-1,v=u[0],x=u[w],$=f.length-1,T=f[0],O=f[$];const Qe=d.O==="template"?c.content:c;for(;y<=w&&_<=$;)if(v==null)v=u[++y];else if(x==null)x=u[--w];else if(T==null)T=f[++_];else if(O==null)O=f[--$];else if(J(v,T,g))V(v,T,g),v=u[++y],T=f[++_];else if(J(x,O,g))V(x,O,g),x=u[--w],O=f[--$];else if(J(v,O,g))v.O!=="slot"&&O.O!=="slot"||Z(v.S.parentNode,!1),V(v,O,g),L(Qe,v.S,x.S.nextSibling),v=u[++y],O=f[--$];else if(J(x,T,g))v.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),V(x,T,g),L(Qe,x.S,v.S),x=u[--w],T=f[++_];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===T.$){m=p;break}m>=0?(S=u[m],S.O!==T.O?h=Y(u&&u[_],d,m):(V(S,T,g),u[m]=void 0,h=S.S),T=f[++_]):(h=Y(u&&u[_],d,_),T=f[++_]),h&&L(B(v.S).parentNode,h,B(v.S))}y>w?Me(c,f[$+1]==null?null:f[$+1].S,d,f,_,$):_>$&&Pe(u,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},k=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=k.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],k.push({N:i,k:t})),t["s-sr"]&&k.map((l=>{we(l.k,t["s-sn"])&&(a=k.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}i.nodeType===1&&Re(i)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ct=(e,t)=>{de.push((()=>e(t)))},L=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ht=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,u=e.M||q(null,null);var d;const f=(d=t)&&d.O===Ee?t:E(null,null,t);if(P=l.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=l[g]}))),o&&f.v)for(const g of Object.keys(f.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=l[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,V(u,f,o),C.i|=1,K){Re(f.S);for(const g of k){const h=g.k;if(!h["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=h,L(h.parentNode,h["s-ol"]=S,h,o)}}for(const g of k){const h=g.k,S=g.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(i=m["s-nr"])!=null?i:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){_=p;break}}m=m.previousSibling}}if((!_&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==_)&&h!==_){if(L(y,h,_,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,L(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&xe(f.S),C.i&=-2,k.length=0,!D&&!(1&c.i)&&l["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==P&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=b.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],L(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ie=void 0,ae.forEach((g=>g())),ae.length=0,de.forEach((g=>g())),de.length=0},Ve=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ve(e,e.C);const o=()=>ut(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>z(s,"componentWillRender",void 0,o))),Fe(n,(()=>pt(e,s,t)))},Fe=(e,t)=>ft(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ft=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Ce(f),_=W.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,p=j.get(d=d.head||d);if(p||j.set(d,p=new Set),!p.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(g=C.L)!=null?g:(function(){var v,x,$;return($=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+v.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===p.CSSStyleSheet)w=_;else{w=new p.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),gt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>mt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ht(e,t,s)}catch(n){I(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,vt(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},_t=()=>{se((()=>rt(b,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){I(n,s)}},vt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=A(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(l?l[f](o,r,t):n.T.push((()=>{n.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},yt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Te(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[a]])=>{if(31&a||32&a){const{get:l,set:c}=R(n,r)||{};l&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return l?l.apply(this):(u=r,A(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(u){const d=A(this);if(d){if(c)return(32&a?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[$e(u,a)]),void He(this,r,u=32&a?this[r]:d.$hostElement$[r],t);He(this,r,u,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(a,l,c){C.jmp((()=>{var u;const d=r.get(a),f=A(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const _=f?.i;if(f&&_&&!(8&_)&&c!==l){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,x]]=Object.entries(w);m[v]!=null&&(128&_||1&x)&&m[v].call(m,c,l,a)}))}return}const g=i.find((([_])=>_===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...i.filter((([a,l])=>31&l[0])).map((([a,l])=>{var c;const u=l[1]||a;return r.set(u,a),512&l[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Te(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&Xe(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=A(i);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,L(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ve(r,r.C=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const u=i[l];delete i[l],i[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Ce(u);W.has(S)||((y,_,m)=>{let p=W.get(y);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=_:p.replaceSync(_)):p=_,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>ce(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){I(f,l),c.A&&(c.A(),c.A=void 0),c.F&&c.F(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&C.i||A(i),j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),yt(e,o)}catch(s){return I(s),e}};function It(e){return e}function Ge(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ge(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function De(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>De("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"})),xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>De("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),Be=Symbol("pathSet"),ue="gids-asset-paths-set";class wt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(Be)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(Be,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Ct=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Et=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new wt),t[e]};function pe(){return Et("@ganpatiinfo/gids-web-shared")}function Nt(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function Tt(e){return pe().onAssetPathsSet(e)}let $t=0;const Lt=(e,t="gids")=>e||`${t}-${$t++}`,We={"icons-other.svg":["accessibility","add","remove","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","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","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","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},qe=new Map;for(const e in We)for(const t of We[e])qe.set(t,e);function Ot(e){return qe.get(e)}function Ue(e,t="regular",o){const s=Ot(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:kt}=bt,At=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let c=r;return c===void 0&&Nt()&&(c=Ue(e,o,ze)),E("svg",{ref:u=>{c===void 0&&Tt((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ue(f,g,ze)),d.appendChild(h)})(u,e,o)}))},width:"16",height:"16",class:kt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ke=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(F===void 0)return!1;const e=(()=>{if(F===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},jt=()=>(Ke||(Ke=Ye()),F),{getGidsFieldClassNames:Mt}=xt,Ze=St(class extends et{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=jt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"f1c189d4ab013c55a6c4c28421a43ebb33878fed"},E("div",{key:"473d4ee6ff5c4799eb390dace343c04cdddfc959",class:Mt()},E("div",{key:"2c9360422392ee547c88d68251e2c2818d12df9a",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"9aeddb378b273fb98297f4d08bf63506ad12edc2",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"6408089c512c2f3a5182f26c396f21e0cd1d55e1",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"46f8ba80d3bb1b501361121a1ccf6e7aa46b6466",class:"gids-field__control"},E("slot",{key:"472a3796360ffe099e8baef78b7483da66da2f3e",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"adc16a67e0e48ac97e593ea65690db81ca1614c9",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(At,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ze))}))}Je();const Pt=Ze,Rt=Je;M.GidsField=Pt,M.defineCustomElement=Rt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(T,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(T=typeof globalThis<"u"?globalThis:T||self,I(T.gidsCoreWebGidsIcon={}))})(this,(function(T){"use strict";function I(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,Je=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],l=I(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},
|
|
1
|
+
(function(T,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(T=typeof globalThis<"u"?globalThis:T||self,I(T.gidsCoreWebGidsIcon={}))})(this,(function(T){"use strict";function I(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,Je=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],l=I(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ve=(e,t)=>t in e,L=(e,t)=>(0,console.error)(e,t),V=new Map,ye="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{},Qe=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ee=!1,Se=[],be=[],Xe=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&O.i?se(te):O.raf(te))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){L(o)}e.length=0},te=()=>{we(Se),we(be),(ee=Se.length>0)&&O.raf(te)},se=e=>Promise.resolve(void 0).then(e),et=Xe(be);function tt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var Ne=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!st(s,W(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&Ne(s)}};function oe(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||W(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...oe(s.childNodes,t,o)]}return r}var st=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)W(n)!==t||!o&&n["s-sr"]||s.push(n);return s},_e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",W=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var re,R,P=new WeakMap,Oe=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",M=(e,t,...o)=>{let s=null,n=null,r=null,l=!1,a=!1;const i=[],d=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!ie(s))&&(s=String(s)),l&&a?i[i.length-1].h+=s:i.push(l?q(null,s):s),a=l)};if(d(o),t){t.key&&(n=t.key),t.name&&(r=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((f=>c[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,i,nt);const h=q(e,null);return h.v=t,i.length>0&&(h.m=i),h.$=n,h.j=r,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),ot={},nt={forEach:(e,t)=>e.map($e).forEach(t),map:(e,t)=>e.map($e).map(t).map(rt)},$e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),rt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),M(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},ke=(e,t)=>e==null||ie(e)?e:4&t?e!=="false"&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,it=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},Ee=(e,t,o,s,n,r)=>{if(o===s)return;let l=ve(e,t),a=t.toLowerCase();if(t==="class"){const i=e.classList,d=Ce(o);let h=Ce(s);i.remove(...d.filter((c=>c&&!h.includes(c)))),i.add(...h.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const i in o)s&&s[i]!=null||(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)o&&s[i]===o[i]||(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key"){if(t==="ref")s&&ct(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const i=t.slice(5);let d;{const h=x(e);if(h&&h.o&&h.o.t){const c=h.o.t[i];c&&c[1]&&(d=c[1])}}return d||(d=i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const i=t.slice(5);try{e[i]=s}catch{}return}{const i=ie(s);if((l||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?l=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ye,t):e.removeAttribute(t)):(!l||4&r||n)&&!i&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ye,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ve(w,a)?a.slice(2):a[2]+t.slice(3),o||s){const i=t.endsWith(je);t=t.replace(at,""),o&&O.rel(e,t,o,i),s&&O.ael(e,t,s,i)}}},lt=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(lt):[]),je="Capture",at=new RegExp(je+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const l of xe(Object.keys(n)))l in r||Ee(s,l,n[l],void 0,o,t.i);for(const l of xe(Object.keys(r)))Ee(s,l,n[l],r[l],o,t.i)};function xe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,U=!1,K=!1,$=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let r,l,a,i=0;if(B||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=w.document.createTextNode(n.h);else if(1&n.i)r=n.S=w.document.createTextNode(""),le(null,n,$);else{if($||($=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=w.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&n.i?"slot-fb":n.O),$&&n.O==="foreignObject"&&($=!1),le(null,n,$),n.m){const d=n.O==="template"?r.content:r;for(i=0;i<n.m.length;++i)l=Y(e,n,i),l&&d.appendChild(l)}n.O==="svg"?$=!1:r.tagName==="foreignObject"&&($=!0)}return r["s-hn"]=R,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=re,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=c=>(function(f){const m=[],u=this["s-sn"];f?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const y=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Pe(e.S)),r},Pe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Pe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,y=0,g=0,p=0,_=h.length-1,v=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&y<=k;)if(v==null)v=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++y];else if(C==null)C=f[--k];else if(J(v,A,m))D(v,A,m),v=h[++S],A=f[++y];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(v,C,m))v.O!=="slot"&&C.O!=="slot"||Z(v.S.parentNode,!1),D(v,C,m),E(Ze,v.S,N.S.nextSibling),v=h[++S],C=f[--k];else if(J(N,A,m))v.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,v.S),N=h[--_],A=f[++y];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[y],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++y]):(u=Y(h&&h[y],c,y),A=f[++y]),u&&E(z(v.S).parentNode,u,z(v.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,y,k):y>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(E(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),y=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(m=O.L)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const v=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=x(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},vt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,x(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=x(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=x(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const y=f?.i;if(f&&y&&!(8&y)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[v,N]]=Object.entries(_);g[v]!=null&&(128&y||1&N)&&g[v].call(g,d,i,a)}))}return}const m=r.find((([y])=>y===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=x(r);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,y,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||x(r),P.has(r)&&P.delete(r),r.shadowRoot&&P.has(r.shadowRoot)&&P.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),vt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"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"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("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"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:xt}=_t,Pt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Pt,{key:"55114b6e5f7f440dcb4a892c0a25b234509b884e",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%);flex-shrink:0}.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 Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Pe(e.S)),r},Pe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Pe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,v=0,g=0,p=0,_=h.length-1,y=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&v<=k;)if(y==null)y=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++v];else if(C==null)C=f[--k];else if(J(y,A,m))D(y,A,m),y=h[++S],A=f[++v];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(y,C,m))y.O!=="slot"&&C.O!=="slot"||Z(y.S.parentNode,!1),D(y,C,m),E(Ze,y.S,N.S.nextSibling),y=h[++S],C=f[--k];else if(J(N,A,m))y.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,y.S),N=h[--_],A=f[++v];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[v],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++v]):(u=Y(h&&h[v],c,v),A=f[++v]),u&&E(z(y.S).parentNode,u,z(y.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,v,k):v>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}g=g.previousSibling}}if((!v&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(E(S,u,v,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)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 n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=v;const _=(m=O.L)!=null?m:(function(){var y,N,k;return(k=(N=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),N=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const y=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(v.constructor===p.CSSStyleSheet)_=v;else{_=new p.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)_.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,vt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},vt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=x(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},yt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,x(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=x(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=x(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const v=f?.i;if(f&&v&&!(8&v)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[y,N]]=Object.entries(_);g[y]!=null&&(128&v||1&N)&&g[y].call(g,d,i,a)}))}return}const m=r.find((([v])=>v===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=x(r);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,v,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||x(r),P.has(r)&&P.delete(r),r.shadowRoot&&P.has(r.shadowRoot)&&P.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),yt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"icons-other.svg":["accessibility","add","remove","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","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","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","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("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"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:xt}=_t,Pt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Pt,{key:"3033afda529cd2143bd0d3c3ca5c985b4b950eae",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{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.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 Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&m.push(b)})),a?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[n],c&&c.O===o.O&&e.S&&je(e.S)),r},je=e=>{A.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(x(t,o,n??null),o["s-sh"]=void 0,z=!0)}A.i&=-2},Y=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==I&&o["s-ol"]&&(x(G(o).parentNode,o,G(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,z=!0),t&&Y(o,t)}A.i&=-2},Te=(e,t,n,s,o,r)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===I&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);o<=r;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,x(c,l,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const r=o.S;Re(o),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Y(r,!0),r.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,B=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,r=t.m,l=t.O,c=t.h;let i;c==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,E),o!==null&&r!==null?((d,f,a,h,m=!1)=>{let u,S,b=0,v=0,g=0,p=0,k=f.length-1,y=f[0],_=f[k],$=h.length-1,O=h[0],P=h[$];const et=a.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=f[++b];else if(_==null)_=f[--k];else if(O==null)O=h[++v];else if(P==null)P=h[--$];else if(J(y,O,m))B(y,O,m),y=f[++b],O=h[++v];else if(J(_,P,m))B(_,P,m),_=f[--k],P=h[--$];else if(J(y,P,m))y.O!=="slot"&&P.O!=="slot"||Y(y.S.parentNode,!1),B(y,P,m),x(et,y.S,_.S.nextSibling),y=f[++b],P=h[--$];else if(J(_,O,m))y.O!=="slot"&&P.O!=="slot"||Y(_.S.parentNode,!1),B(_,O,m),x(et,_.S,y.S),_=f[--k],O=h[++v];else{for(g=-1,p=b;p<=k;++p)if(f[p]&&f[p].$!==null&&f[p].$===O.$){g=p;break}g>=0?(S=f[g],S.O!==O.O?u=K(f&&f[v],a,g):(B(S,O,m),f[g]=void 0,u=S.S),O=h[++v]):(u=K(f&&f[v],a,v),O=h[++v]),u&&x(G(y.S).parentNode,u,G(y.S))}b>k?Te(d,h[$+1]==null?null:h[$+1].S,a,h,v,$):v>$&&Le(f,b,k)})(s,o,t,r,n):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!n&&o!==null&&Le(o,0,o.length-1),E&&l==="svg"&&(E=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},C=[],Ie=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const r of o){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,l)){let c=C.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],C.push({N:r,k:t})),t["s-sr"]&&C.map((i=>{Ne(i.k,t["s-sn"])&&(c=C.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else C.some((c=>c.k===t))||C.push({k:t})}r.nodeType===1&&Ie(r)}},Re=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ht=(e,t)=>{de.push((()=>e(t)))},x=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(r,l){var c;if(!(l=l||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=V(r)||"";return{slotNode:oe(re(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},pt=(e,t,n=!1)=>{var s,o,r,l,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===lt?t:N(null,null,t);if(I=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([m,u])=>{h.v[u]=i[m]}))),n&&h.v)for(const m of Object.keys(h.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=i[m]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,F=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,B(f,h,n),A.i|=1,z){Ie(h.S);for(const m of C){const u=m.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,x(u.parentNode,u["s-ol"]=S,u,n)}}for(const m of C){const u=m.k,S=m.N;if(u.nodeType===1&&n&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=u["s-ol"])==null?void 0:o.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}g=g.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(x(b,u,v,n),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,x(u.parentNode,g,u,n),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&_e(h.S),A.i&=-2,C.length=0,!F&&!(1&d.i)&&i["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const u of m)if(u["s-hn"]!==I&&!u["s-sh"]){if(n&&u["s-ih"]==null&&(u["s-ih"]=(c=u.hidden)!=null&&c),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],x(u.parentNode,S,u,n),u.parentNode.removeChild(u)}}}ie=void 0,ce.forEach((m=>m())),ce.length=0,de.forEach((m=>m())),de.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const n=()=>mt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},mt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.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=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Be(o,(()=>H(s,"componentWillRender",void 0,n))),Be(o,(()=>vt(e,s,t)))},Be=(e,t)=>gt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),gt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const o=e.$hostElement$,r=o["s-rc"];n&&(l=>{const c=l.o,i=l.$hostElement$,d=c.i,f=((a,h)=>{var m,u,S;const b=ke(h),v=W.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,v)if(typeof v=="string"){let g,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=v;const k=(m=A.L)!=null?m:(function(){var y,_,$;return($=(_=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(k!=null&&g.setAttribute("nonce",k),!(1&h.i))if(a.nodeName==="HEAD"){const y=a.querySelectorAll("link[rel=preconnect]"),_=y.length>0?y[y.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,_?.parentNode===a?_:null)}else if("host"in a)if(Q){const y=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?a.adoptedStyleSheets.unshift(y):a.adoptedStyleSheets=[y,...a.adoptedStyleSheets]}else{const y=a.querySelector("style");y?y.textContent=v+y.textContent:a.prepend(g)}else a.append(g);1&h.i&&a.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(a);if(g||T.set(a,g=new Set),!g.has(b)){const p=(S=a.defaultView)!=null?S:a.ownerDocument.defaultView;let k;if(v.constructor===p.CSSStyleSheet)k=v;else{k=new p.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}ee?a.adoptedStyleSheets.push(k):a.adoptedStyleSheets=[...a.adoptedStyleSheets,k],g.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),yt(e,t,o,n),r&&(r.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],c=()=>bt(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(o){M(o,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.C;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),H(n,"componentDidLoad",void 0,t),e.F(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},St=()=>{ne((()=>dt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){M(o,s)}},wt=e=>e.classList.add("hydrated"),De=(e,t,n,s)=>{const o=j(e);if(!o)return;const r=e,l=o.l.get(t),c=o.i,i=r;n=Oe(n,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,m]]=Object.entries(a);(128&c||1&m)&&(i?i[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){M(h,r)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||ue(o,!1)}}},_t=(e,t)=>{var n,s;const o=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([l,[c]])=>{if(31&c||32&c){const{get:i,set:d}=R(o,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return i?i.apply(this):(f=l,j(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(f){const a=j(this);if(a){if(d)return(32&c?this[l]:a.$hostElement$[l])===void 0&&a.l.get(l)&&(f=a.l.get(l)),d.apply(this,[Oe(f,c)]),void De(this,l,f=32&c?this[l]:a.$hostElement$[l],t);De(this,l,f,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(c,i,d){A.jmp((()=>{var f;const a=l.get(c),h=j(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const v=h?.i;if(h&&v&&!(8&v)&&d!==i){const g=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((k=>{const[[y,_]]=Object.entries(k);g[y]!=null&&(128&v||1&_)&&g[y].call(g,d,i,c)}))}return}const m=r.find((([v])=>v===a)),u=m&&4&m[1][0],S=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(o,a);S||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return l.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},Nt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Ee(e.R),n.H=e.H,n.P=e.P,n._=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const c={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=c;r.__stencil__getHostRef=()=>i,512&l.i&&tt(r,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!j(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&A.i)){const l=j(r);if(!l)return;const c=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,x(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const f=r[i];delete r[i],r[i]=f}})),(async(i,d,f)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),a&&a.style)){let u;typeof a.style=="string"&&(u=a.style);const S=ke(f);W.has(S)||((b,v,g)=>{let p=W.get(b);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(b,p)})(S,u,!!(1&f.i))}const h=d.C,m=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){M(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&A.i||j(r),T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.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 ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),_t(e,n)}catch(s){return M(s),e}},kt=(e,t)=>t;function zt(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Fe(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Fe("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},n,s)},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Fe("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"})),X=64,Ge=10,He=X/2-Ge/2,Ot=X/2,fe=2*Math.PI*He,$t=`0 0 ${X} ${X}`,xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,r=(fe*o/100).toFixed(2),l=(fe-parseFloat(r)).toFixed(2);return`${r} ${l}`},centerPosition:Ot,circumference:fe,radius:He,thickness:Ge,viewBox:$t},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#s(We)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(he,n)}this.#e(We,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),Ct=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),jt=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function ge(){return jt("@ganpatiinfo/gids-web-shared")}function Tt(){return ge().haveAssetPathsBeenSet()}function qe(e){return ge().getAssetFilePath(e)}function Lt(e){return ge().onAssetPathsSet(e)}let It=0;const Rt=(e,t="gids")=>e||`${t}-${It++}`,Mt=e=>e.type==="hidden",Bt=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Mt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Ue={"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"]},ze=new Map;for(const e in Ue)for(const t of Ue[e])ze.set(t,e);function Dt(e){return ze.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Vt}=Et,Ye=({name:e,size:t,appearance:n,alt:s,class:o,titleId:r,src:l,...c})=>{const i=Rt(r);let d=l;return d===void 0&&Tt()&&(d=Ke(e,n,qe)),N("svg",{ref:f=>{d===void 0&&Lt((()=>{(function(a,h,m){if(!a)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ke(h,m,qe)),a.appendChild(u)})(f,e,n)}))},width:"16",height:"16",class:Vt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...c},s!==""&&N("title",{id:i},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsSpinnerControlClassNames:Ft}=At,{calculateStrokeDasharray:Gt,thickness:Je,radius:Xe,centerPosition:Z,viewBox:Ht}=xt,Wt=({size:e,indeterminate:t,value:n,max:s,...o})=>{let r;return t||(r={strokeDashArray:Gt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Ft({size:e,indeterminate:t,value:n}),viewBox:Ht,...o},N("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Xe,"stroke-width":Je}),N("circle",{style:r,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Xe,"stroke-width":Je}))},Ze=Nt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Bt(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return N(kt,{key:"5d4e79f168da55c3c8dcb9b005919af697faa2e4"},N("slot",{key:"a7c23b37ceaf94f06e53256b431e98e7a3a32602",name:"leadingIcon"}),this.leadingLabel&&N("span",{key:"0ad81289035ada60d67b1df06fb60f703dc27eed",class:"gids-input__label"},this.leadingLabel),N("slot",{key:"f5870caed190d279a95c688243607dfae8f79d60",name:"leadingAccessory"}),N("input",{key:"38ead647fc9069ed8de93293150134048fd6b4f1",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),N("slot",{key:"58ff0f57706d2c9b1e9b41549649c324c60a8f07",name:"trailingAccessory"}),this.trailingLabel&&N("span",{key:"6d400670f8c64f64fbe732e726da4d7569c2c6f3",class:"gids-input__label"},this.trailingLabel),N("slot",{key:"8b20ed8fb9169fd7c0e1415f7bcdf0df03b61534",name:"trailingIcon"}),this.status==="incomplete"&&N(Ye,{key:"f7d4261f5c8faa51601d3fd6c400f4891847f62c",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&N(Ye,{key:"6cbdc56ebc1854d0b4f6db30df670f665a9aff3f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&N(Wt,{key:"a369d7c3f7e2ac4d631926aefc1a15bf9cbba362",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Qe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ze))}))}Qe();const qt=Ze,Ut=Qe;L.GidsInput=qt,L.defineCustomElement=Ut,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&m.push(b)})),a?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[n],c&&c.O===o.O&&e.S&&je(e.S)),r},je=e=>{A.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(x(t,o,n??null),o["s-sh"]=void 0,z=!0)}A.i&=-2},Y=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==I&&o["s-ol"]&&(x(G(o).parentNode,o,G(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,z=!0),t&&Y(o,t)}A.i&=-2},Te=(e,t,n,s,o,r)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===I&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);o<=r;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,x(c,l,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const r=o.S;Re(o),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Y(r,!0),r.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,B=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,r=t.m,l=t.O,c=t.h;let i;c==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,E),o!==null&&r!==null?((d,f,a,h,m=!1)=>{let u,S,b=0,v=0,g=0,p=0,k=f.length-1,y=f[0],_=f[k],$=h.length-1,O=h[0],P=h[$];const et=a.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=f[++b];else if(_==null)_=f[--k];else if(O==null)O=h[++v];else if(P==null)P=h[--$];else if(J(y,O,m))B(y,O,m),y=f[++b],O=h[++v];else if(J(_,P,m))B(_,P,m),_=f[--k],P=h[--$];else if(J(y,P,m))y.O!=="slot"&&P.O!=="slot"||Y(y.S.parentNode,!1),B(y,P,m),x(et,y.S,_.S.nextSibling),y=f[++b],P=h[--$];else if(J(_,O,m))y.O!=="slot"&&P.O!=="slot"||Y(_.S.parentNode,!1),B(_,O,m),x(et,_.S,y.S),_=f[--k],O=h[++v];else{for(g=-1,p=b;p<=k;++p)if(f[p]&&f[p].$!==null&&f[p].$===O.$){g=p;break}g>=0?(S=f[g],S.O!==O.O?u=K(f&&f[v],a,g):(B(S,O,m),f[g]=void 0,u=S.S),O=h[++v]):(u=K(f&&f[v],a,v),O=h[++v]),u&&x(G(y.S).parentNode,u,G(y.S))}b>k?Te(d,h[$+1]==null?null:h[$+1].S,a,h,v,$):v>$&&Le(f,b,k)})(s,o,t,r,n):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!n&&o!==null&&Le(o,0,o.length-1),E&&l==="svg"&&(E=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},C=[],Ie=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const r of o){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,l)){let c=C.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],C.push({N:r,k:t})),t["s-sr"]&&C.map((i=>{Ne(i.k,t["s-sn"])&&(c=C.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else C.some((c=>c.k===t))||C.push({k:t})}r.nodeType===1&&Ie(r)}},Re=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ht=(e,t)=>{de.push((()=>e(t)))},x=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(r,l){var c;if(!(l=l||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=V(r)||"";return{slotNode:oe(re(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},pt=(e,t,n=!1)=>{var s,o,r,l,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===lt?t:N(null,null,t);if(I=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([m,u])=>{h.v[u]=i[m]}))),n&&h.v)for(const m of Object.keys(h.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=i[m]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,F=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,B(f,h,n),A.i|=1,z){Ie(h.S);for(const m of C){const u=m.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,x(u.parentNode,u["s-ol"]=S,u,n)}}for(const m of C){const u=m.k,S=m.N;if(u.nodeType===1&&n&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=u["s-ol"])==null?void 0:o.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}g=g.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(x(b,u,v,n),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,x(u.parentNode,g,u,n),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&_e(h.S),A.i&=-2,C.length=0,!F&&!(1&d.i)&&i["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const u of m)if(u["s-hn"]!==I&&!u["s-sh"]){if(n&&u["s-ih"]==null&&(u["s-ih"]=(c=u.hidden)!=null&&c),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],x(u.parentNode,S,u,n),u.parentNode.removeChild(u)}}}ie=void 0,ce.forEach((m=>m())),ce.length=0,de.forEach((m=>m())),de.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const n=()=>mt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},mt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.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=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Be(o,(()=>H(s,"componentWillRender",void 0,n))),Be(o,(()=>vt(e,s,t)))},Be=(e,t)=>gt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),gt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const o=e.$hostElement$,r=o["s-rc"];n&&(l=>{const c=l.o,i=l.$hostElement$,d=c.i,f=((a,h)=>{var m,u,S;const b=ke(h),v=W.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,v)if(typeof v=="string"){let g,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=v;const k=(m=A.L)!=null?m:(function(){var y,_,$;return($=(_=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(k!=null&&g.setAttribute("nonce",k),!(1&h.i))if(a.nodeName==="HEAD"){const y=a.querySelectorAll("link[rel=preconnect]"),_=y.length>0?y[y.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,_?.parentNode===a?_:null)}else if("host"in a)if(Q){const y=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?a.adoptedStyleSheets.unshift(y):a.adoptedStyleSheets=[y,...a.adoptedStyleSheets]}else{const y=a.querySelector("style");y?y.textContent=v+y.textContent:a.prepend(g)}else a.append(g);1&h.i&&a.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(a);if(g||T.set(a,g=new Set),!g.has(b)){const p=(S=a.defaultView)!=null?S:a.ownerDocument.defaultView;let k;if(v.constructor===p.CSSStyleSheet)k=v;else{k=new p.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}ee?a.adoptedStyleSheets.push(k):a.adoptedStyleSheets=[...a.adoptedStyleSheets,k],g.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),yt(e,t,o,n),r&&(r.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],c=()=>bt(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(o){M(o,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.C;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),H(n,"componentDidLoad",void 0,t),e.F(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},St=()=>{ne((()=>dt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){M(o,s)}},wt=e=>e.classList.add("hydrated"),De=(e,t,n,s)=>{const o=j(e);if(!o)return;const r=e,l=o.l.get(t),c=o.i,i=r;n=Oe(n,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,m]]=Object.entries(a);(128&c||1&m)&&(i?i[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){M(h,r)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||ue(o,!1)}}},_t=(e,t)=>{var n,s;const o=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([l,[c]])=>{if(31&c||32&c){const{get:i,set:d}=R(o,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return i?i.apply(this):(f=l,j(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(f){const a=j(this);if(a){if(d)return(32&c?this[l]:a.$hostElement$[l])===void 0&&a.l.get(l)&&(f=a.l.get(l)),d.apply(this,[Oe(f,c)]),void De(this,l,f=32&c?this[l]:a.$hostElement$[l],t);De(this,l,f,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(c,i,d){A.jmp((()=>{var f;const a=l.get(c),h=j(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const v=h?.i;if(h&&v&&!(8&v)&&d!==i){const g=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((k=>{const[[y,_]]=Object.entries(k);g[y]!=null&&(128&v||1&_)&&g[y].call(g,d,i,c)}))}return}const m=r.find((([v])=>v===a)),u=m&&4&m[1][0],S=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(o,a);S||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return l.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},Nt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Ee(e.R),n.H=e.H,n.P=e.P,n._=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const c={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=c;r.__stencil__getHostRef=()=>i,512&l.i&&tt(r,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!j(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&A.i)){const l=j(r);if(!l)return;const c=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,x(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const f=r[i];delete r[i],r[i]=f}})),(async(i,d,f)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),a&&a.style)){let u;typeof a.style=="string"&&(u=a.style);const S=ke(f);W.has(S)||((b,v,g)=>{let p=W.get(b);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(b,p)})(S,u,!!(1&f.i))}const h=d.C,m=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){M(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&A.i||j(r),T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.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 ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),_t(e,n)}catch(s){return M(s),e}},kt=(e,t)=>t;function zt(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Fe(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Fe("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},n,s)},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Fe("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"})),X=64,Ge=10,He=X/2-Ge/2,Ot=X/2,fe=2*Math.PI*He,$t=`0 0 ${X} ${X}`,xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,r=(fe*o/100).toFixed(2),l=(fe-parseFloat(r)).toFixed(2);return`${r} ${l}`},centerPosition:Ot,circumference:fe,radius:He,thickness:Ge,viewBox:$t},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#s(We)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(he,n)}this.#e(We,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),Ct=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),jt=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function ge(){return jt("@ganpatiinfo/gids-web-shared")}function Tt(){return ge().haveAssetPathsBeenSet()}function qe(e){return ge().getAssetFilePath(e)}function Lt(e){return ge().onAssetPathsSet(e)}let It=0;const Rt=(e,t="gids")=>e||`${t}-${It++}`,Mt=e=>e.type==="hidden",Bt=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!Mt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Ue={"icons-other.svg":["accessibility","add","remove","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","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","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","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},ze=new Map;for(const e in Ue)for(const t of Ue[e])ze.set(t,e);function Dt(e){return ze.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Vt}=Et,Ye=({name:e,size:t,appearance:n,alt:s,class:o,titleId:r,src:l,...c})=>{const i=Rt(r);let d=l;return d===void 0&&Tt()&&(d=Ke(e,n,qe)),N("svg",{ref:f=>{d===void 0&&Lt((()=>{(function(a,h,m){if(!a)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ke(h,m,qe)),a.appendChild(u)})(f,e,n)}))},width:"16",height:"16",class:Vt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...c},s!==""&&N("title",{id:i},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsSpinnerControlClassNames:Ft}=At,{calculateStrokeDasharray:Gt,thickness:Je,radius:Xe,centerPosition:Z,viewBox:Ht}=xt,Wt=({size:e,indeterminate:t,value:n,max:s,...o})=>{let r;return t||(r={strokeDashArray:Gt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Ft({size:e,indeterminate:t,value:n}),viewBox:Ht,...o},N("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Xe,"stroke-width":Je}),N("circle",{style:r,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Xe,"stroke-width":Je}))},Ze=Nt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Bt(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return N(kt,{key:"c1e035111a8a80ef0b442bc0298785f0c7445113"},N("slot",{key:"49bd52d5bbc7c9b962b27f6404ca9817de699b31",name:"leadingIcon"}),this.leadingLabel&&N("span",{key:"2863a61da1f009b7287af508d9809d66787ddaf7",class:"gids-input__label"},this.leadingLabel),N("slot",{key:"f74e8993fb8b1dd186a53c4557ceffac681f2881",name:"leadingAccessory"}),N("input",{key:"2bc7f84858a8533f33c66834ad212c38ad698075",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),N("slot",{key:"2116db712ac02853ae4974b4ad618b5eee372b3f",name:"trailingAccessory"}),this.trailingLabel&&N("span",{key:"35dc9b1c2bd2ef493b0ce1a602688f41854c922d",class:"gids-input__label"},this.trailingLabel),N("slot",{key:"6cc1b37e9a0b979f04de753d8527aaae2970762c",name:"trailingIcon"}),this.status==="incomplete"&&N(Ye,{key:"8c963877cee9bc941b1236a6b647fc1790a41cdc",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&N(Ye,{key:"a2c401261ff8defa2802b5bbc336a6b4cc177ff4",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&N(Wt,{key:"4dd22cd62d87ff444794fc8f1c4f0cc78e14738a",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function Qe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ze))}))}Qe();const qt=Ze,Ut=Qe;L.GidsInput=qt,L.defineCustomElement=Ut,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|