@ganpatiinfo/gids-core-web 3.0.0 → 4.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.
Files changed (85) hide show
  1. package/dist/css/index.css +901 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/custom-elements.json +90 -0
  4. package/dist/gids-field.d.ts +11 -0
  5. package/dist/gids-field.js +1 -0
  6. package/dist/gids-icon.js +1 -1
  7. package/dist/gids-input.d.ts +11 -0
  8. package/dist/gids-input.js +1 -0
  9. package/dist/gids-notification.d.ts +11 -0
  10. package/dist/gids-notification.js +1 -0
  11. package/dist/gids-overlay-provider.d.ts +11 -0
  12. package/dist/gids-overlay-provider.js +1 -0
  13. package/dist/gids-password-field.d.ts +11 -0
  14. package/dist/gids-password-field.js +1 -0
  15. package/dist/gids-snackbar.d.ts +11 -0
  16. package/dist/gids-snackbar.js +1 -0
  17. package/dist/gids-text-field.d.ts +11 -0
  18. package/dist/gids-text-field.js +1 -0
  19. package/dist/gids-toggle-button.js +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/p-B2zUuNXz.js +1 -0
  22. package/dist/p-CVtNa0cL.js +1 -0
  23. package/dist/p-CWdkmFbc.js +1 -0
  24. package/dist/p-D4xtPT_U.js +1 -0
  25. package/dist/p-DijVkS9b.js +1 -0
  26. package/dist/p-DybsMR13.js +1 -0
  27. package/dist/p-RqpjvEHh.js +1 -0
  28. package/dist/p-ibikYq-w.js +1 -0
  29. package/dist/p-veoOgDXg.js +1 -0
  30. package/dist/types/components/html/GidsDismissButton/GidsDismissButton.d.ts +6 -0
  31. package/dist/types/components/html/GidsHeading/GidsHeading.d.ts +6 -0
  32. package/dist/types/components/html/GidsLogo/GidsLogo.d.ts +9 -0
  33. package/dist/types/components/html/GidsRequirementsMeter/GidsRequirementsMeter.d.ts +4 -0
  34. package/dist/types/components/html/GidsSearchBar/GidsSearchBar.d.ts +10 -0
  35. package/dist/types/components/html/GidsSegmentedControl/GidsSegmentedControl.d.ts +6 -0
  36. package/dist/types/components/html/GidsSegmentedTabItem/GidsSegmentedTabItem.d.ts +6 -0
  37. package/dist/types/components/html/GidsStatusTag/GidsStatusTag.d.ts +5 -0
  38. package/dist/types/components/html/GidsStepper/GidsStepper.d.ts +7 -0
  39. package/dist/types/components/html/GidsStrengthMeter/GidsStrengthMeter.d.ts +5 -0
  40. package/dist/types/components/html/GidsTopNavigation/GidsTopNavigation.d.ts +8 -0
  41. package/dist/types/components/html/_GidsNotificationContainer/GidsNotificationContainer.d.ts +7 -0
  42. package/dist/types/components/html/_GidsRequirementsMeterLabel/GidsRequirementsMeterLabel.d.ts +4 -0
  43. package/dist/types/components/html/_GidsSnackbarContainer/GidsSnackbarContainer.d.ts +6 -0
  44. package/dist/types/components/webComponents/GidsField/GidsField.d.ts +54 -0
  45. package/dist/types/components/webComponents/GidsInput/GidsInput.d.ts +27 -0
  46. package/dist/types/components/webComponents/GidsNotification/GidsNotification.d.ts +17 -0
  47. package/dist/types/components/webComponents/GidsOverlayProvider/GidsOverlayProvider.d.ts +23 -0
  48. package/dist/types/components/webComponents/GidsOverlayProvider/GidsOverlayProviderUtils.d.ts +8 -0
  49. package/dist/types/components/webComponents/GidsPasswordField/GidsPasswordField.d.ts +49 -0
  50. package/dist/types/components/webComponents/GidsSnackbar/GidsSnackbar.d.ts +15 -0
  51. package/dist/types/components/webComponents/GidsTextField/GidsTextField.d.ts +39 -0
  52. package/dist/types/components.d.ts +437 -4
  53. package/dist-bundled/es/gids-field.js +6 -0
  54. package/dist-bundled/es/gids-icon.js +16 -200
  55. package/dist-bundled/es/gids-input.js +6 -0
  56. package/dist-bundled/es/gids-notification.js +31 -0
  57. package/dist-bundled/es/gids-overlay-provider.js +209 -0
  58. package/dist-bundled/es/gids-password-field.js +221 -0
  59. package/dist-bundled/es/gids-snackbar.js +31 -0
  60. package/dist-bundled/es/gids-text-field.js +78 -0
  61. package/dist-bundled/es/gids-toggle-button.js +14 -55
  62. package/dist-bundled/es/index.js +8 -7
  63. package/dist-bundled/es/p-B2zUuNXz-BLBgQDu7.js +45 -0
  64. package/dist-bundled/es/p-CVtNa0cL-sSVeJsR3.js +15 -0
  65. package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +24 -0
  66. package/dist-bundled/es/p-D4xtPT_U-04HkZiXU.js +181 -0
  67. package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +35 -0
  68. package/dist-bundled/es/p-DybsMR13-DpmsG3Q1.js +31 -0
  69. package/dist-bundled/es/p-RqpjvEHh-BGGYsIBf.js +74 -0
  70. package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +635 -0
  71. package/dist-bundled/es/p-veoOgDXg-DElc87c0.js +192 -0
  72. package/dist-bundled/umd/gids-field.umd.js +5 -0
  73. package/dist-bundled/umd/gids-icon.umd.js +5 -1
  74. package/dist-bundled/umd/gids-input.umd.js +5 -0
  75. package/dist-bundled/umd/gids-notification.umd.js +5 -0
  76. package/dist-bundled/umd/gids-overlay-provider.umd.js +5 -0
  77. package/dist-bundled/umd/gids-password-field.umd.js +5 -0
  78. package/dist-bundled/umd/gids-snackbar.umd.js +5 -0
  79. package/dist-bundled/umd/gids-text-field.umd.js +5 -0
  80. package/dist-bundled/umd/gids-toggle-button.umd.js +6 -2
  81. package/dist-bundled/umd/index.umd.js +5 -1
  82. package/dist-bundled/umd-complete/gids-core-web.umd.js +6 -2
  83. package/package.json +65 -9
  84. package/dist/p-CgujYzVX.js +0 -1
  85. package/dist-bundled/es/p-CgujYzVX-xo1axnk6.js +0 -465
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganpatiinfo/gids-core-web",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "private": false,
5
5
  "description": "This is a core web package contains html components",
6
6
  "homepage": "https://ganpatiinfosystem.vercel.app/",
@@ -83,11 +83,67 @@
83
83
  },
84
84
  "./gids-icon.js": {
85
85
  "types": "./dist/gids-icon.d.ts",
86
- "default": "./dist/gids-icon.d.ts"
86
+ "default": "./dist/gids-icon.js"
87
87
  },
88
88
  "./dist/gids-icon.js": {
89
89
  "types": "./dist/gids-icon.d.ts",
90
- "default": "./dist/gids-icon.d.ts"
90
+ "default": "./dist/gids-icon.js"
91
+ },
92
+ "./gids-field.js": {
93
+ "types": "./dist/gids-field.d.ts",
94
+ "default": "./dist/gids-field.js"
95
+ },
96
+ "./dist/gids-field.js": {
97
+ "types": "./dist/gids-field.d.ts",
98
+ "default": "./dist/gids-field.js"
99
+ },
100
+ "./gids-input.js": {
101
+ "types": "./dist/gids-input.d.ts",
102
+ "default": "./dist/gids-input.js"
103
+ },
104
+ "./dist/gids-input.js": {
105
+ "types": "./dist/gids-input.d.ts",
106
+ "default": "./dist/gids-input.js"
107
+ },
108
+ "./gids-text-field.js": {
109
+ "types": "./dist/gids-text-field.d.ts",
110
+ "default": "./dist/gids-text-field.js"
111
+ },
112
+ "./dist/gids-text-field.js": {
113
+ "types": "./dist/gids-text-field.d.ts",
114
+ "default": "./dist/gids-text-field.js"
115
+ },
116
+ "./gids-password-field.js": {
117
+ "types": "./dist/gids-password-field.d.ts",
118
+ "default": "./dist/gids-password-field.js"
119
+ },
120
+ "./dist/gids-password-field.js": {
121
+ "types": "./dist/gids-password-field.d.ts",
122
+ "default": "./dist/gids-password-field.js"
123
+ },
124
+ "./gids-overlay-provider.js": {
125
+ "types": "./dist/gids-overlay-provider.d.ts",
126
+ "default": "./dist/gids-overlay-provider.js"
127
+ },
128
+ "./dist/gids-overlay-provider.js": {
129
+ "types": "./dist/gids-overlay-provider.d.ts",
130
+ "default": "./dist/gids-overlay-provider.js"
131
+ },
132
+ "./gids-snackbar.js": {
133
+ "types": "./dist/gids-snackbar.d.ts",
134
+ "default": "./dist/gids-snackbar.js"
135
+ },
136
+ "./dist/gids-snackbar.js": {
137
+ "types": "./dist/gids-snackbar.d.ts",
138
+ "default": "./dist/gids-snackbar.js"
139
+ },
140
+ "./gids-notification.js": {
141
+ "types": "./dist/gids-notification.d.ts",
142
+ "default": "./dist/gids-notification.js"
143
+ },
144
+ "./dist/gids-notification.js": {
145
+ "types": "./dist/gids-notification.d.ts",
146
+ "default": "./dist/gids-notification.js"
91
147
  },
92
148
  "./customElements": {
93
149
  "default": "./dist/custom-elements.json"
@@ -102,13 +158,13 @@
102
158
  }
103
159
  },
104
160
  "peerDependencies": {
105
- "@ganpatiinfo/gids-web-theme-interface": "^3.0.0"
161
+ "@ganpatiinfo/gids-web-theme-interface": "^3.1.0"
106
162
  },
107
163
  "dependencies": {
108
164
  "@floating-ui/dom": "1.7.6",
109
165
  "clsx": "^2.1.1",
110
- "@ganpatiinfo/gids-core-shared": "^3.0.0",
111
- "@ganpatiinfo/gids-web-shared": "^3.0.0",
166
+ "@ganpatiinfo/gids-core-shared": "^4.0.0",
167
+ "@ganpatiinfo/gids-web-shared": "^4.0.0",
112
168
  "composed-offset-position": "^0.0.6"
113
169
  },
114
170
  "devDependencies": {
@@ -116,10 +172,10 @@
116
172
  "@fontsource/inter": "^5.2.8",
117
173
  "@fontsource/libre-caslon-text": "^5.2.7",
118
174
  "@ganpatiinfo/gids-liquid-renderer": "^3.0.0",
119
- "@ganpatiinfo/gids-storybook-theme": "^3.0.0",
175
+ "@ganpatiinfo/gids-storybook-theme": "^5.0.0",
120
176
  "@ganpatiinfo/gids-storybook-utilities": "^3.0.0",
121
- "@ganpatiinfo/gids-web-dom-reference": "^3.0.0",
122
- "@ganpatiinfo/gids-web-theme-ganpatiinfo": "^3.0.0",
177
+ "@ganpatiinfo/gids-web-dom-reference": "^4.0.0",
178
+ "@ganpatiinfo/gids-web-theme-ganpatiinfo": "^4.0.0",
123
179
  "@jest/globals": "^30.2.0",
124
180
  "@stencil/angular-output-target": "^1.3.0",
125
181
  "@stencil/core": "^4.43.2",
@@ -1 +0,0 @@
1
- function t(t,e,n){const l="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==l;){const l=Object.getOwnPropertyDescriptor(t,e);if(l&&(!n||l.get))return l;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var l;Object.entries(null!=(l=n.l.t)?l:{}).map((([l,[o]])=>{if(31&o||32&o){const o=e[l],s=t(Object.getPrototypeOf(e),l,!0)||Object.getOwnPropertyDescriptor(e,l);s&&Object.defineProperty(e,l,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.o.has(l)?e[l]=n.o.get(l):void 0!==o&&(e[l]=o)}}))},l=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r="undefined"!=typeof window?window:{},c=r.HTMLElement||class{},u={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},a=(()=>{try{return!!r.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),f=!!a&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.i?b(y):u.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&u.raf(y)},b=t=>Promise.resolve(undefined).then(t),$=m(p,!0),g=t=>{const e=new URL(t,u.u);return e.origin!==r.location.origin?e.href:e.pathname},w=t=>u.u=t;function S(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(f?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}var O,j=new WeakMap,M=t=>"sc-"+t.h,k=t=>"object"==(t=typeof t)||"function"===t,E=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!k(l))&&(l=String(l)),s&&i?r[r.length-1].p+=l:r.push(s?C(null,l):l),i=s)};if(c(n),e&&e.key&&(o=e.key),"function"==typeof t)return t(null===e?{}:e,r,A);const u=C(t,null);return u.m=e,r.length>0&&(u.v=r),u.$=o,u},C=(t,e)=>({i:0,S:t,p:null!=e?e:null,O:null,v:null,m:null,$:null}),x={},A={forEach:(t,e)=>t.map(D).forEach(e),map:(t,e)=>t.map(D).map(e).map(L)},D=t=>({vattrs:t.m,vchildren:t.v,vkey:t.$,vname:t.j,vtag:t.S,vtext:t.p}),L=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),E(t.vtag,e,...t.vchildren||[])}const e=C(t.vtag,t.vtext);return e.m=t.vattrs,e.v=t.vchildren,e.$=t.vkey,e.j=t.vname,e},R=(t,e)=>null==t||k(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?String(t):t,_=(t,e)=>{const n=t;return{emit:t=>H(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},H=(t,e,n)=>{const l=u.ce(e,n);return t.dispatchEvent(l),l},P=(t,e,n,s,i,c)=>{if(n===s)return;let a=o(t,e),f=e.toLowerCase();if("key"===e);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let o;{const e=l(t);if(e&&e.l&&e.l.t){const t=e.l.t[n];t&&t[1]&&(o=t[1])}}return o||(o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(o)||t.removeAttribute(o):t.setAttribute(o,!0===s?"":s))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=s}catch(t){}return}{const l=k(s);if((a||l&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[e]!==s&&(t[e]=s);else{const l=null==s?"":s;"list"===e?a=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==s||!1===s?!1===s&&""!==t.getAttribute(e)||t.removeAttribute(e):(!a||4&c||i)&&!l&&1===t.nodeType&&t.setAttribute(e,s=!0===s?"":s)}}else if(e="-"===e[2]?e.slice(3):o(r,f)?f.slice(2):f[2]+e.slice(3),n||s){const l=e.endsWith(U);e=e.replace(W,""),n&&u.rel(t,e,n,l),s&&u.ael(t,e,s,l)}},U="Capture",W=new RegExp(U+"$"),N=(t,e,n)=>{const l=11===e.O.nodeType&&e.O.host?e.O.host:e.O,o=t&&t.m||{},s=e.m||{};for(const t of T(Object.keys(o)))t in s||P(l,t,o[t],void 0,n,e.i);for(const t of T(Object.keys(s)))P(l,t,o[t],s[t],n,e.i)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var q=!1,z=!1,F=(t,e,n)=>{const l=e.v[n];let o,s,i=0;if(null!=l.p)o=l.O=r.document.createTextNode(l.p);else{if(!r.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=l.O=r.document.createElement(l.S),N(null,l,z),l.v){const e="template"===l.S?o.content:o;for(i=0;i<l.v.length;++i)s=F(t,l,i),s&&e.appendChild(s)}}return o["s-hn"]=O,o},G=(t,e,n,l,o,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===O&&(r=r.shadowRoot),"template"===n.S&&(r=r.content);o<=s;++o)l[o]&&(i=F(null,n,o),i&&(l[o].O=i,Z(r,i,e)))},I=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.O;t&&t.remove()}}},V=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Y=(t,e,n=!1)=>{const l=e.O=t.O,o=t.v,s=e.v,i=e.p;null==i?("slot"!==e.S||q||t.j!==e.j&&(e.O["s-sn"]=e.j||"",(t=>{u.i|=1;const e=t.closest(O.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of n?l.reverse():l)null!=t["s-sh"]&&(Z(e,t,null!=n?n:null),t["s-sh"]=void 0)}u.i&=-2})(e.O.parentElement)),N(t,e,z),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=l.length-1,m=l[0],v=l[p];const y="template"===n.S?t.content:t;for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--p];else if(V(d,m,o))Y(d,m,o),d=e[++r],m=l[++c];else if(V(h,v,o))Y(h,v,o),h=e[--f],v=l[--p];else if(V(d,v,o))Y(d,v,o),Z(y,d.O,h.O.nextSibling),d=e[++r],v=l[--p];else if(V(h,m,o))Y(h,m,o),Z(y,h.O,d.O),h=e[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].$&&e[a].$===m.$){u=a;break}u>=0?(i=e[u],i.S!==m.S?s=F(e&&e[c],n,u):(Y(i,m,o),e[u]=void 0,s=i.O),m=l[++c]):(s=F(e&&e[c],n,c),m=l[++c]),s&&Z(d.O.parentNode,s,d.O)}r>f?G(t,null==l[p+1]?null:l[p+1].O,n,l,c,p):c>p&&I(e,r,f)})(l,o,e,s,n):null!==s?(null!==t.p&&(l.textContent=""),G(l,null,e,s,0,s.length-1)):!n&&null!==o&&I(o,0,o.length-1)):t.p!==i&&(l.data=i)},Z=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),B=(t,e,n=!1)=>{const l=t.$hostElement$,o=t.l,s=t.M||C(null,null);var i;const r=(i=e)&&i.S===x?e:E(null,null,e);if(O=l.tagName,o.k&&(r.m=r.m||{},o.k.forEach((([t,e])=>{r.m[e]=l[t]}))),n&&r.m)for(const t of Object.keys(r.m))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=l[t]);r.S=null,r.i|=4,t.M=r,r.O=s.O=l.shadowRoot||l,q=!(!(1&o.i)||128&o.i),Y(s,r,n)},J=(t,e)=>{if(e&&!t.C&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.C=()=>{e["s-p"].splice(n-1,1),l()})))}},K=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);J(t,t.A);const n=()=>Q(t,e);if(!e)return $(n);queueMicrotask((()=>{n()}))},Q=(t,e)=>{const n=t.$hostElement$,l=n;if(!l)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=st(l,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=X(o,(()=>st(l,"componentWillRender",void 0,n))),X(o,(()=>et(t,l,e)))},X=(t,e)=>tt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),tt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,et=async(t,e,n)=>{var l;const o=t.$hostElement$,s=o["s-rc"];n&&(t=>{const e=t.l,n=t.$hostElement$,l=e.i,o=((t,e)=>{var n,l,o;const s=M(e),c=i.get(s);if(!r.document)return s;if(t=11===t.nodeType?t:r.document,c)if("string"==typeof c){let o,i=j.get(t=t.head||t);if(i||j.set(t,i=new Set),!i.has(s)){o=r.document.createElement("style"),o.textContent=c;const d=null!=(n=u.D)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=r.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=d&&o.setAttribute("nonce",d),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),f?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=c+e.textContent:t.prepend(o)}else t.append(o);1&e.i&&t.insertBefore(o,null),4&e.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let e=j.get(t);if(e||j.set(t,e=new Set),!e.has(s)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let l;if(c.constructor===n.CSSStyleSheet)l=c;else{l=new n.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)l.insertRule(c.cssRules[t].cssText,t)}f?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],e.add(s)}}return s})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);nt(t,e,o,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>lt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},nt=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,B(t,e,l)}catch(e){s(e,t.$hostElement$)}return null},lt=t=>{const e=t.$hostElement$,n=e,l=t.A;st(n,"componentDidRender",void 0,e),64&t.i?st(n,"componentDidUpdate",void 0,e):(t.i|=64,it(e),st(n,"componentDidLoad",void 0,e),t.L(e),l||ot()),t.C&&(t.C(),t.C=void 0),512&t.i&&b((()=>K(t,!1))),t.i&=-517},ot=()=>{b((()=>H(r,"appload",{detail:{namespace:"gids-core-web"}})))},st=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,l)}},it=t=>t.classList.add("hydrated"),rt=(t,e,n,o)=>{const s=l(t);if(!s)return;const i=t,r=s.o.get(e),c=s.i,u=i;n=R(n,o.t[e][0]);const a=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!a&&(s.o.set(e,n),2&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,r,e)&&!(16&c))return;16&c||K(s,!1)}},ct=(e,n)=>{var o,s;const i=e.prototype;if(n.t){const r=Object.entries(null!=(o=n.t)?o:{});r.map((([e,[o]])=>{if(31&o||32&o){const{get:s,set:r}=t(i,e)||{};s&&(n.t[e][0]|=2048),r&&(n.t[e][0]|=4096),Object.defineProperty(i,e,{get(){return s?s.apply(this):(t=e,l(this).o.get(t));var t},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(t){const s=l(this);if(s){if(r)return void 0===(32&o?this[e]:s.$hostElement$[e])&&s.o.get(e)&&(t=s.o.get(e)),r.apply(this,[R(t,o)]),void rt(this,e,t=32&o?this[e]:s.$hostElement$[e],n);rt(this,e,t,n)}}})}}));{const t=new Map;i.attributeChangedCallback=function(e,o,s){u.jmp((()=>{var c;const u=t.get(e),a=l(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const t=null==a?void 0:a.i;if(a&&t&&!(8&t)&&s!==o){const l=this,i=null==(c=n.R)?void 0:c[e];null==i||i.forEach((n=>{const[[i,r]]=Object.entries(n);null!=l[i]&&(128&t||1&r)&&l[i].call(l,s,o,e)}))}return}const f=r.find((([t])=>t===u)),d=f&&4&f[1][0],h=d&&null===s&&void 0===this[u];d&&(s=null!==s&&"false"!==s);const p=Object.getOwnPropertyDescriptor(i,u);h||s==this[u]||p.get&&!p.set||(this[u]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.R)?s:{}),...r.filter((([t,e])=>31&e[0])).map((([e,l])=>{var o;const s=l[1]||e;return t.set(s,e),512&l[0]&&(null==(o=n.k)||o.push([e,s])),s}))]))}}return e},ut=(t,e)=>{const o={i:e[0],h:e[1]};try{o.t=e[2],o.k=[];const r=t.prototype.connectedCallback,c=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const l={i:0,$hostElement$:t,l:e,o:new Map,_:new Map};l.H=new Promise((t=>l.L=t)),t["s-p"]=[],t["s-rc"]=[];const o=l;t.__stencil__getHostRef=()=>o,512&e.i&&n(t,l)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!l(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&u.i)){const e=l(t);if(!e)return;const n=e.l,o=()=>{};if(1&e.i)(null==e?void 0:e.P)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(e,e.A=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;try{if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=M(n);if(!i.has(e)){const l=()=>{};((t,e,n)=>{let l=i.get(t);a&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,i.set(t,l)})(e,t,!!(1&n.i)),l()}}const o=e.A,s=()=>K(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()}catch(n){s(n,t),e.C&&(e.C(),e.C=void 0),e.L&&e.L(t)}})(t,e,n)}o()}})(this),r&&r.call(this)},disconnectedCallback(){(async t=>{1&u.i||l(t),j.has(t)&&j.delete(t),t.shadowRoot&&j.has(t.shadowRoot)&&j.delete(t.shadowRoot)})(this),c&&c.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${o.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else S.call(this,o)}}),Object.defineProperty(t,"is",{value:o.h,configurable:!0}),ct(t,o)}catch(e){return s(e),t}},at=t=>u.D=t,ft=t=>Object.assign(u,t),dt=new WeakMap;function ht(t,e){let n=dt.get(e);n||(n={i:0,l:{i:0,h:e.tagName},$hostElement$:e},dt.set(e,n)),B(n,t)}function pt(t){return t}const mt=void 0!==globalThis.CSSStyleSheet?new CSSStyleSheet:void 0;let vt=!1;mt&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(mt):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let yt=null;const bt=void 0!==globalThis.MutationObserver?new MutationObserver((()=>{$t()})):void 0,$t=()=>{if(void 0===mt)return!1;const t=(()=>{if(void 0===mt)return;const t=[];for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets.item(e);if(n)try{let e=-1,l=0;for(let o=0;o<n.cssRules.length;o++){const s=n.cssRules.item(o);if(s?.cssText.startsWith("gids-global-styles-start"))e=o;else if(e>-1){if(s?.cssText.startsWith("gids-global-styles-end")){l=o-e+1;break}t.push(s)}}if(e>-1)return{rulesStartIndex:e,originalRulesCount:l,rules:t,styleSheet:n}}catch(t){if(!(t instanceof DOMException))throw t}}})();if(void 0!==t){const e=t.styleSheet.ownerNode;return void 0!==bt&&e!==yt&&(yt&&bt.disconnect(),e instanceof Element&&bt.observe(e,{childList:!0,characterData:!0,subtree:!0}),yt=e),mt.replaceSync((t=>t.rules.map((t=>t.cssText)).join(""))(t)),(t=>{const{rulesStartIndex:e,originalRulesCount:n,styleSheet:l}=t;for(let t=0;t<n;t++)l.deleteRule(e)})(t),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},gt=()=>(vt||(vt=$t()),mt);export{c as H,at as a,ft as b,$t as c,gt as d,_ as e,x as f,g,E as h,ut as p,ht as r,w as s,pt as t}
@@ -1,465 +0,0 @@
1
- function ie(e, t, o) {
2
- const n = typeof HTMLElement < "u" ? HTMLElement.prototype : null;
3
- for (; e && e !== n; ) {
4
- const s = Object.getOwnPropertyDescriptor(e, t);
5
- if (s && (!o || s.get)) return s;
6
- e = Object.getPrototypeOf(e);
7
- }
8
- }
9
- var A, be = (e, t) => {
10
- var o;
11
- Object.entries((o = t.l.t) != null ? o : {}).map((([n, [s]]) => {
12
- if (31 & s || 32 & s) {
13
- const a = e[n], l = ie(Object.getPrototypeOf(e), n, !0) || Object.getOwnPropertyDescriptor(e, n);
14
- l && Object.defineProperty(e, n, { get() {
15
- return l.get.call(this);
16
- }, set(i) {
17
- l.set.call(this, i);
18
- }, configurable: !0, enumerable: !0 }), t.o.has(n) ? e[n] = t.o.get(n) : a !== void 0 && (e[n] = a);
19
- }
20
- }));
21
- }, E = (e) => {
22
- if (e.__stencil__getHostRef) return e.__stencil__getHostRef();
23
- }, Z = (e, t) => t in e, L = (e, t) => (0, console.error)(e, t), M = /* @__PURE__ */ new Map(), $ = typeof window < "u" ? window : {}, De = $.HTMLElement || class {
24
- }, O = { i: 0, u: "", jmp: (e) => e(), raf: (e) => requestAnimationFrame(e), ael: (e, t, o, n) => e.addEventListener(t, o, n), rel: (e, t, o, n) => e.removeEventListener(t, o, n), ce: (e, t) => new CustomEvent(e, t) }, F = (() => {
25
- try {
26
- return !!$.document.adoptedStyleSheets && (new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function");
27
- } catch {
28
- }
29
- return !1;
30
- })(), U = !!F && !!$.document && Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets, "length").writable, B = !1, J = [], ce = [], we = (e, t) => (o) => {
31
- e.push(o), B || (B = !0, 4 & O.i ? G(V) : O.raf(V));
32
- }, K = (e) => {
33
- for (let t = 0; t < e.length; t++) try {
34
- e[t](performance.now());
35
- } catch (o) {
36
- L(o);
37
- }
38
- e.length = 0;
39
- }, V = () => {
40
- K(J), K(ce), (B = J.length > 0) && O.raf(V);
41
- }, G = (e) => Promise.resolve(void 0).then(e), Oe = we(ce), He = (e) => {
42
- const t = new URL(e, O.u);
43
- return t.origin !== $.location.origin ? t.href : t.pathname;
44
- }, Te = (e) => O.u = e;
45
- function $e() {
46
- const e = this.attachShadow({ mode: "open" });
47
- A === void 0 && (A = null), A && (U ? e.adoptedStyleSheets.push(A) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, A]);
48
- }
49
- var T, k = /* @__PURE__ */ new WeakMap(), ae = (e) => "sc-" + e.h, I = (e) => (e = typeof e) == "object" || e === "function", ue = (e, t, ...o) => {
50
- let n = null, s = null, a = !1, l = !1;
51
- const i = [], r = (d) => {
52
- for (let c = 0; c < d.length; c++) n = d[c], Array.isArray(n) ? r(n) : n != null && typeof n != "boolean" && ((a = typeof e != "function" && !I(n)) && (n = String(n)), a && l ? i[i.length - 1].p += n : i.push(a ? D(null, n) : n), l = a);
53
- };
54
- if (r(o), t && t.key && (s = t.key), typeof e == "function") return e(t === null ? {} : t, i, _e);
55
- const u = D(e, null);
56
- return u.m = t, i.length > 0 && (u.v = i), u.$ = s, u;
57
- }, D = (e, t) => ({ i: 0, S: e, p: t ?? null, O: null, v: null, m: null, $: null }), Ce = {}, _e = { forEach: (e, t) => e.map(Q).forEach(t), map: (e, t) => e.map(Q).map(t).map(ke) }, Q = (e) => ({ vattrs: e.m, vchildren: e.v, vkey: e.$, vname: e.j, vtag: e.S, vtext: e.p }), ke = (e) => {
58
- if (typeof e.vtag == "function") {
59
- const o = { ...e.vattrs };
60
- return e.vkey && (o.key = e.vkey), e.vname && (o.name = e.vname), ue(e.vtag, o, ...e.vchildren || []);
61
- }
62
- const t = D(e.vtag, e.vtext);
63
- return t.m = e.vattrs, t.v = e.vchildren, t.$ = e.vkey, t.j = e.vname, t;
64
- }, de = (e, t) => e == null || I(e) ? e : 4 & t ? e !== "false" && (e === "" || !!e) : 1 & t ? String(e) : e, We = (e, t) => {
65
- const o = e;
66
- return { emit: (n) => he(o, t, { bubbles: !0, composed: !0, cancelable: !0, detail: n }) };
67
- }, he = (e, t, o) => {
68
- const n = O.ce(t, o);
69
- return e.dispatchEvent(n), n;
70
- }, X = (e, t, o, n, s, a) => {
71
- if (o === n) return;
72
- let l = Z(e, t), i = t.toLowerCase();
73
- if (t !== "key") {
74
- if (e.__lookupSetter__(t) || t[0] !== "o" || t[1] !== "n") {
75
- if (t[0] === "a" && t.startsWith("attr:")) {
76
- const r = t.slice(5);
77
- let u;
78
- {
79
- const d = E(e);
80
- if (d && d.l && d.l.t) {
81
- const c = d.l.t[r];
82
- c && c[1] && (u = c[1]);
83
- }
84
- }
85
- return u || (u = r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()), void (n == null || n === !1 ? n === !1 && e.getAttribute(u) !== "" || e.removeAttribute(u) : e.setAttribute(u, n === !0 ? "" : n));
86
- }
87
- if (t[0] === "p" && t.startsWith("prop:")) {
88
- const r = t.slice(5);
89
- try {
90
- e[r] = n;
91
- } catch {
92
- }
93
- return;
94
- }
95
- {
96
- const r = I(n);
97
- if ((l || r && n !== null) && !s) try {
98
- if (e.tagName.includes("-")) e[t] !== n && (e[t] = n);
99
- else {
100
- const u = n ?? "";
101
- t === "list" ? l = !1 : o != null && e[t] === u || (typeof e.__lookupSetter__(t) == "function" ? e[t] = u : e.setAttribute(t, u));
102
- }
103
- } catch {
104
- }
105
- n == null || n === !1 ? n === !1 && e.getAttribute(t) !== "" || e.removeAttribute(t) : (!l || 4 & a || s) && !r && e.nodeType === 1 && e.setAttribute(t, n = n === !0 ? "" : n);
106
- }
107
- } else if (t = t[2] === "-" ? t.slice(3) : Z($, i) ? i.slice(2) : i[2] + t.slice(3), o || n) {
108
- const r = t.endsWith(fe);
109
- t = t.replace(Ee, ""), o && O.rel(e, t, o, r), n && O.ael(e, t, n, r);
110
- }
111
- }
112
- }, fe = "Capture", Ee = new RegExp(fe + "$"), pe = (e, t, o) => {
113
- const n = t.O.nodeType === 11 && t.O.host ? t.O.host : t.O, s = e && e.m || {}, a = t.m || {};
114
- for (const l of ee(Object.keys(s))) l in a || X(n, l, s[l], void 0, o, t.i);
115
- for (const l of ee(Object.keys(a))) X(n, l, s[l], a[l], o, t.i);
116
- };
117
- function ee(e) {
118
- return e.includes("ref") ? [...e.filter(((t) => t !== "ref")), "ref"] : e;
119
- }
120
- var me = !1, ye = !1, H = (e, t, o) => {
121
- const n = t.v[o];
122
- let s, a, l = 0;
123
- if (n.p != null) s = n.O = $.document.createTextNode(n.p);
124
- else {
125
- if (!$.document) throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
126
- if (s = n.O = $.document.createElement(n.S), pe(null, n, ye), n.v) {
127
- const i = n.S === "template" ? s.content : s;
128
- for (l = 0; l < n.v.length; ++l) a = H(e, n, l), a && i.appendChild(a);
129
- }
130
- }
131
- return s["s-hn"] = T, s;
132
- }, te = (e, t, o, n, s, a) => {
133
- let l, i = e;
134
- for (i.shadowRoot && i.tagName === T && (i = i.shadowRoot), o.S === "template" && (i = i.content); s <= a; ++s) n[s] && (l = H(null, o, s), l && (n[s].O = l, N(i, l, t)));
135
- }, ne = (e, t, o) => {
136
- for (let n = t; n <= o; ++n) {
137
- const s = e[n];
138
- if (s) {
139
- const a = s.O;
140
- a && a.remove();
141
- }
142
- }
143
- }, P = (e, t, o = !1) => e.S === t.S && (o ? (o && !e.$ && t.$ && (e.$ = t.$), !0) : e.$ === t.$), j = (e, t, o = !1) => {
144
- const n = t.O = e.O, s = e.v, a = t.v, l = t.p;
145
- l == null ? (t.S !== "slot" || me || e.j !== t.j && (t.O["s-sn"] = t.j || "", ((i) => {
146
- O.i |= 1;
147
- const r = i.closest(T.toLowerCase());
148
- if (r != null) {
149
- const u = Array.from(r.__childNodes || r.childNodes).find(((c) => c["s-cr"])), d = Array.from(i.__childNodes || i.childNodes);
150
- for (const c of u ? d.reverse() : d) c["s-sh"] != null && (N(r, c, u ?? null), c["s-sh"] = void 0);
151
- }
152
- O.i &= -2;
153
- })(t.O.parentElement)), pe(e, t, ye), s !== null && a !== null ? ((i, r, u, d, c = !1) => {
154
- let v, C, w = 0, b = 0, g = 0, m = 0, p = r.length - 1, h = r[0], S = r[p], f = d.length - 1, y = d[0], _ = d[f];
155
- const Y = u.S === "template" ? i.content : i;
156
- for (; w <= p && b <= f; ) if (h == null) h = r[++w];
157
- else if (S == null) S = r[--p];
158
- else if (y == null) y = d[++b];
159
- else if (_ == null) _ = d[--f];
160
- else if (P(h, y, c)) j(h, y, c), h = r[++w], y = d[++b];
161
- else if (P(S, _, c)) j(S, _, c), S = r[--p], _ = d[--f];
162
- else if (P(h, _, c)) j(h, _, c), N(Y, h.O, S.O.nextSibling), h = r[++w], _ = d[--f];
163
- else if (P(S, y, c)) j(S, y, c), N(Y, S.O, h.O), S = r[--p], y = d[++b];
164
- else {
165
- for (g = -1, m = w; m <= p; ++m) if (r[m] && r[m].$ !== null && r[m].$ === y.$) {
166
- g = m;
167
- break;
168
- }
169
- g >= 0 ? (C = r[g], C.S !== y.S ? v = H(r && r[b], u, g) : (j(C, y, c), r[g] = void 0, v = C.O), y = d[++b]) : (v = H(r && r[b], u, b), y = d[++b]), v && N(h.O.parentNode, v, h.O);
170
- }
171
- w > p ? te(i, d[f + 1] == null ? null : d[f + 1].O, u, d, b, f) : b > f && ne(r, w, p);
172
- })(n, s, t, a, o) : a !== null ? (e.p !== null && (n.textContent = ""), te(n, null, t, a, 0, a.length - 1)) : !o && s !== null && ne(s, 0, s.length - 1)) : e.p !== l && (n.data = l);
173
- }, N = (e, t, o) => e.__insertBefore ? e.__insertBefore(t, o) : e?.insertBefore(t, o), Se = (e, t, o = !1) => {
174
- const n = e.$hostElement$, s = e.l, a = e.M || D(null, null);
175
- var l;
176
- const i = (l = t) && l.S === Ce ? t : ue(null, null, t);
177
- if (T = n.tagName, s.k && (i.m = i.m || {}, s.k.forEach((([r, u]) => {
178
- i.m[u] = n[r];
179
- }))), o && i.m) for (const r of Object.keys(i.m)) n.hasAttribute(r) && !["key", "ref", "style", "class"].includes(r) && (i.m[r] = n[r]);
180
- i.S = null, i.i |= 4, e.M = i, i.O = a.O = n.shadowRoot || n, me = !(!(1 & s.i) || 128 & s.i), j(a, i, o);
181
- }, ve = (e, t) => {
182
- if (t && !e.C && t["s-p"]) {
183
- const o = t["s-p"].push(new Promise(((n) => e.C = () => {
184
- t["s-p"].splice(o - 1, 1), n();
185
- })));
186
- }
187
- }, z = (e, t) => {
188
- if (e.i |= 16, 4 & e.i) return void (e.i |= 512);
189
- ve(e, e.A);
190
- const o = () => je(e, t);
191
- if (!t) return Oe(o);
192
- queueMicrotask((() => {
193
- o();
194
- }));
195
- }, je = (e, t) => {
196
- const o = e.$hostElement$, n = o;
197
- if (!n) throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);
198
- let s;
199
- return s = x(n, t ? "componentWillLoad" : "componentWillUpdate", void 0, o), s = oe(s, (() => x(n, "componentWillRender", void 0, o))), oe(s, (() => Ae(e, n, t)));
200
- }, oe = (e, t) => Re(e) ? e.then(t).catch(((o) => {
201
- console.error(o), t();
202
- })) : t(), Re = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ae = async (e, t, o) => {
203
- var n;
204
- const s = e.$hostElement$, a = s["s-rc"];
205
- o && ((l) => {
206
- const i = l.l, r = l.$hostElement$, u = i.i, d = ((c, v) => {
207
- var C, w, b;
208
- const g = ae(v), m = M.get(g);
209
- if (!$.document) return g;
210
- if (c = c.nodeType === 11 ? c : $.document, m) if (typeof m == "string") {
211
- let p, h = k.get(c = c.head || c);
212
- if (h || k.set(c, h = /* @__PURE__ */ new Set()), !h.has(g)) {
213
- p = $.document.createElement("style"), p.textContent = m;
214
- const S = (C = O.D) != null ? C : (function() {
215
- var f, y, _;
216
- return (_ = (y = (f = $.document.head) == null ? void 0 : f.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : y.getAttribute("content")) != null ? _ : void 0;
217
- })();
218
- if (S != null && p.setAttribute("nonce", S), !(1 & v.i)) if (c.nodeName === "HEAD") {
219
- const f = c.querySelectorAll("link[rel=preconnect]"), y = f.length > 0 ? f[f.length - 1].nextSibling : c.querySelector("style");
220
- c.insertBefore(p, y?.parentNode === c ? y : null);
221
- } else if ("host" in c) if (F) {
222
- const f = new ((w = c.defaultView) != null ? w : c.ownerDocument.defaultView).CSSStyleSheet();
223
- f.replaceSync(m), U ? c.adoptedStyleSheets.unshift(f) : c.adoptedStyleSheets = [f, ...c.adoptedStyleSheets];
224
- } else {
225
- const f = c.querySelector("style");
226
- f ? f.textContent = m + f.textContent : c.prepend(p);
227
- }
228
- else c.append(p);
229
- 1 & v.i && c.insertBefore(p, null), 4 & v.i && (p.textContent += "slot-fb{display:contents}slot-fb[hidden]{display:none}"), h && h.add(g);
230
- }
231
- } else {
232
- let p = k.get(c);
233
- if (p || k.set(c, p = /* @__PURE__ */ new Set()), !p.has(g)) {
234
- const h = (b = c.defaultView) != null ? b : c.ownerDocument.defaultView;
235
- let S;
236
- if (m.constructor === h.CSSStyleSheet) S = m;
237
- else {
238
- S = new h.CSSStyleSheet();
239
- for (let f = 0; f < m.cssRules.length; f++) S.insertRule(m.cssRules[f].cssText, f);
240
- }
241
- U ? c.adoptedStyleSheets.push(S) : c.adoptedStyleSheets = [...c.adoptedStyleSheets, S], p.add(g);
242
- }
243
- }
244
- return g;
245
- })(r.shadowRoot ? r.shadowRoot : r.getRootNode(), i);
246
- 10 & u && (r["s-sc"] = d, r.classList.add(d + "-h"));
247
- })(e), Ne(e, t, s, o), a && (a.map(((l) => l())), s["s-rc"] = void 0);
248
- {
249
- const l = (n = s["s-p"]) != null ? n : [], i = () => xe(e);
250
- l.length === 0 ? i() : (Promise.all(l).then(i).catch(i), e.i |= 4, l.length = 0);
251
- }
252
- }, Ne = (e, t, o, n) => {
253
- try {
254
- t = t.render(), e.i &= -17, e.i |= 2, Se(e, t, n);
255
- } catch (s) {
256
- L(s, e.$hostElement$);
257
- }
258
- return null;
259
- }, xe = (e) => {
260
- const t = e.$hostElement$, o = t, n = e.A;
261
- x(o, "componentDidRender", void 0, t), 64 & e.i ? x(o, "componentDidUpdate", void 0, t) : (e.i |= 64, Pe(t), x(o, "componentDidLoad", void 0, t), e.L(t), n || Le()), e.C && (e.C(), e.C = void 0), 512 & e.i && G((() => z(e, !1))), e.i &= -517;
262
- }, Le = () => {
263
- G((() => he($, "appload", { detail: { namespace: "gids-core-web" } })));
264
- }, x = (e, t, o, n) => {
265
- if (e && e[t]) try {
266
- return e[t](o);
267
- } catch (s) {
268
- L(s, n);
269
- }
270
- }, Pe = (e) => e.classList.add("hydrated"), le = (e, t, o, n) => {
271
- const s = E(e);
272
- if (!s) return;
273
- const a = e, l = s.o.get(t), i = s.i, r = a;
274
- o = de(o, n.t[t][0]);
275
- const u = Number.isNaN(l) && Number.isNaN(o);
276
- if (o !== l && !u && (s.o.set(t, o), 2 & i)) {
277
- if (r.componentShouldUpdate && r.componentShouldUpdate(o, l, t) === !1 && !(16 & i)) return;
278
- 16 & i || z(s, !1);
279
- }
280
- }, Me = (e, t) => {
281
- var o, n;
282
- const s = e.prototype;
283
- if (t.t) {
284
- const a = Object.entries((o = t.t) != null ? o : {});
285
- a.map((([l, [i]]) => {
286
- if (31 & i || 32 & i) {
287
- const { get: r, set: u } = ie(s, l) || {};
288
- r && (t.t[l][0] |= 2048), u && (t.t[l][0] |= 4096), Object.defineProperty(s, l, { get() {
289
- return r ? r.apply(this) : (d = l, E(this).o.get(d));
290
- var d;
291
- }, configurable: !0, enumerable: !0 }), Object.defineProperty(s, l, { set(d) {
292
- const c = E(this);
293
- if (c) {
294
- if (u) return (32 & i ? this[l] : c.$hostElement$[l]) === void 0 && c.o.get(l) && (d = c.o.get(l)), u.apply(this, [de(d, i)]), void le(this, l, d = 32 & i ? this[l] : c.$hostElement$[l], t);
295
- le(this, l, d, t);
296
- }
297
- } });
298
- }
299
- }));
300
- {
301
- const l = /* @__PURE__ */ new Map();
302
- s.attributeChangedCallback = function(i, r, u) {
303
- O.jmp((() => {
304
- var d;
305
- const c = l.get(i), v = E(this);
306
- if (this.hasOwnProperty(c), s.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == u) return;
307
- if (c == null) {
308
- const m = v?.i;
309
- if (v && m && !(8 & m) && u !== r) {
310
- const p = this, h = (d = t.R) == null ? void 0 : d[i];
311
- h?.forEach(((S) => {
312
- const [[f, y]] = Object.entries(S);
313
- p[f] != null && (128 & m || 1 & y) && p[f].call(p, u, r, i);
314
- }));
315
- }
316
- return;
317
- }
318
- const C = a.find((([m]) => m === c)), w = C && 4 & C[1][0], b = w && u === null && this[c] === void 0;
319
- w && (u = u !== null && u !== "false");
320
- const g = Object.getOwnPropertyDescriptor(s, c);
321
- b || u == this[c] || g.get && !g.set || (this[c] = u);
322
- }));
323
- }, e.observedAttributes = Array.from(/* @__PURE__ */ new Set([...Object.keys((n = t.R) != null ? n : {}), ...a.filter((([i, r]) => 31 & r[0])).map((([i, r]) => {
324
- var u;
325
- const d = r[1] || i;
326
- return l.set(d, i), 512 & r[0] && ((u = t.k) == null || u.push([i, d])), d;
327
- }))]));
328
- }
329
- }
330
- return e;
331
- }, qe = (e, t) => {
332
- const o = { i: t[0], h: t[1] };
333
- try {
334
- o.t = t[2], o.k = [];
335
- const n = e.prototype.connectedCallback, s = e.prototype.disconnectedCallback;
336
- return Object.assign(e.prototype, { __hasHostListenerAttached: !1, __registerHost() {
337
- ((a, l) => {
338
- const i = { i: 0, $hostElement$: a, l, o: /* @__PURE__ */ new Map(), _: /* @__PURE__ */ new Map() };
339
- i.H = new Promise(((u) => i.L = u)), a["s-p"] = [], a["s-rc"] = [];
340
- const r = i;
341
- a.__stencil__getHostRef = () => r, 512 & l.i && be(a, i);
342
- })(this, o);
343
- }, connectedCallback() {
344
- if (!this.__hasHostListenerAttached) {
345
- if (!E(this)) return;
346
- this.__hasHostListenerAttached = !0;
347
- }
348
- ((a) => {
349
- if (!(1 & O.i)) {
350
- const l = E(a);
351
- if (!l) return;
352
- const i = l.l;
353
- if (1 & l.i) l?.P || l?.H && l.H.then((() => {
354
- }));
355
- else {
356
- l.i |= 1;
357
- {
358
- let r = a;
359
- for (; r = r.parentNode || r.host; ) if (r["s-p"]) {
360
- ve(l, l.A = r);
361
- break;
362
- }
363
- }
364
- i.t && Object.entries(i.t).map((([r, [u]]) => {
365
- if (31 & u && Object.prototype.hasOwnProperty.call(a, r)) {
366
- const d = a[r];
367
- delete a[r], a[r] = d;
368
- }
369
- })), (async (r, u, d) => {
370
- let c;
371
- try {
372
- if (!(32 & u.i) && (u.i |= 32, c = r.constructor, customElements.whenDefined(r.localName).then((() => u.i |= 128)), c && c.style)) {
373
- let w;
374
- typeof c.style == "string" && (w = c.style);
375
- const b = ae(d);
376
- M.has(b) || ((g, m, p) => {
377
- let h = M.get(g);
378
- F && p ? (h = h || new CSSStyleSheet(), typeof h == "string" ? h = m : h.replaceSync(m)) : h = m, M.set(g, h);
379
- })(b, w, !!(1 & d.i));
380
- }
381
- const v = u.A, C = () => z(u, !0);
382
- v && v["s-rc"] ? v["s-rc"].push(C) : C();
383
- } catch (v) {
384
- L(v, r), u.C && (u.C(), u.C = void 0), u.L && u.L(r);
385
- }
386
- })(a, l, i);
387
- }
388
- }
389
- })(this), n && n.call(this);
390
- }, disconnectedCallback() {
391
- (async (a) => {
392
- 1 & O.i || E(a), k.has(a) && k.delete(a), a.shadowRoot && k.has(a.shadowRoot) && k.delete(a.shadowRoot);
393
- })(this), s && s.call(this);
394
- }, __attachShadow() {
395
- if (this.shadowRoot) {
396
- if (this.shadowRoot.mode !== "open") throw new Error(`Unable to re-use existing shadow root for ${o.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`);
397
- } else $e.call(this, o);
398
- } }), Object.defineProperty(e, "is", { value: o.h, configurable: !0 }), Me(e, o);
399
- } catch (n) {
400
- return L(n), e;
401
- }
402
- }, Ue = (e) => O.D = e, Be = (e) => Object.assign(O, e), se = /* @__PURE__ */ new WeakMap();
403
- function Ve(e, t) {
404
- let o = se.get(t);
405
- o || (o = { i: 0, l: { i: 0, h: t.tagName }, $hostElement$: t }, se.set(t, o)), Se(o, e);
406
- }
407
- function Fe(e) {
408
- return e;
409
- }
410
- const R = globalThis.CSSStyleSheet !== void 0 ? new CSSStyleSheet() : void 0;
411
- let re = !1;
412
- R && document.adoptedStyleSheets ? document.adoptedStyleSheets.push(R) : console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");
413
- let W = null;
414
- const q = globalThis.MutationObserver !== void 0 ? new MutationObserver((() => {
415
- ge();
416
- })) : void 0, ge = () => {
417
- if (R === void 0) return !1;
418
- const e = (() => {
419
- if (R === void 0) return;
420
- const t = [];
421
- for (let o = 0; o < document.styleSheets.length; o++) {
422
- const n = document.styleSheets.item(o);
423
- if (n) try {
424
- let s = -1, a = 0;
425
- for (let l = 0; l < n.cssRules.length; l++) {
426
- const i = n.cssRules.item(l);
427
- if (i?.cssText.startsWith("gids-global-styles-start")) s = l;
428
- else if (s > -1) {
429
- if (i?.cssText.startsWith("gids-global-styles-end")) {
430
- a = l - s + 1;
431
- break;
432
- }
433
- t.push(i);
434
- }
435
- }
436
- if (s > -1) return { rulesStartIndex: s, originalRulesCount: a, rules: t, styleSheet: n };
437
- } catch (s) {
438
- if (!(s instanceof DOMException)) throw s;
439
- }
440
- }
441
- })();
442
- if (e !== void 0) {
443
- const t = e.styleSheet.ownerNode;
444
- return q !== void 0 && t !== W && (W && q.disconnect(), t instanceof Element && q.observe(t, { childList: !0, characterData: !0, subtree: !0 }), W = t), R.replaceSync(((o) => o.rules.map(((n) => n.cssText)).join(""))(e)), ((o) => {
445
- const { rulesStartIndex: n, originalRulesCount: s, styleSheet: a } = o;
446
- for (let l = 0; l < s; l++) a.deleteRule(n);
447
- })(e), !0;
448
- }
449
- return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."), !1;
450
- }, Ge = () => (re || (re = ge()), R);
451
- export {
452
- ge as $,
453
- ue as E,
454
- We as _,
455
- He as a,
456
- Ue as b,
457
- De as c,
458
- Be as f,
459
- Ge as g,
460
- Ve as h,
461
- Fe as p,
462
- qe as u,
463
- Te as w,
464
- Ce as x
465
- };