@pine-ds/icons 9.11.0 → 9.12.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 (52) hide show
  1. package/components/index.js +1 -1
  2. package/components/pds-icon.js +5 -3
  3. package/components/pds-icon.js.map +1 -1
  4. package/dist/cheatsheet.html +3 -3
  5. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  6. package/dist/cjs/{index-vqovWm2E.js → index-1SOIMLKQ.js} +3 -3
  7. package/dist/cjs/{index-vqovWm2E.js.map → index-1SOIMLKQ.js.map} +1 -1
  8. package/dist/cjs/{index-Rab0J0J-.js → index-C2yOCYcM.js} +262 -120
  9. package/dist/cjs/index-C2yOCYcM.js.map +1 -0
  10. package/dist/cjs/index.cjs.js +2 -4
  11. package/dist/cjs/loader.cjs.js +2 -4
  12. package/dist/cjs/pds-icon.cjs.entry.js +2 -4
  13. package/dist/cjs/pds-icons.cjs.js +3 -5
  14. package/dist/cjs/pds-icons.cjs.js.map +1 -1
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/pds-icon/pds-icon.js +11 -11
  17. package/dist/docs.json +9 -4
  18. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  19. package/dist/esm/{index-DageRZ16.js → index-Bbt-SSYo.js} +3 -3
  20. package/dist/esm/{index-DageRZ16.js.map → index-Bbt-SSYo.js.map} +1 -1
  21. package/dist/esm/{index-BtVkVfWm.js → index-BnTKVLFw.js} +262 -120
  22. package/dist/esm/index-BnTKVLFw.js.map +1 -0
  23. package/dist/esm/index.js +2 -4
  24. package/dist/esm/loader.js +3 -5
  25. package/dist/esm/pds-icon.entry.js +2 -4
  26. package/dist/esm/pds-icons.js +4 -6
  27. package/dist/esm/pds-icons.js.map +1 -1
  28. package/dist/pds-icons/index.esm.js +1 -1
  29. package/dist/pds-icons/{p-5ea9f963.entry.js → p-1ade35d9.entry.js} +2 -2
  30. package/dist/pds-icons/p-1ade35d9.entry.js.map +1 -0
  31. package/dist/pds-icons/p-BnTKVLFw.js +3 -0
  32. package/dist/pds-icons/p-BnTKVLFw.js.map +1 -0
  33. package/dist/pds-icons/{p-6DkR999u.js → p-CdP7eq1f.js} +2 -2
  34. package/dist/pds-icons/{p-6DkR999u.js.map → p-CdP7eq1f.js.map} +1 -1
  35. package/dist/pds-icons/p-DQuL1Twl.js.map +1 -1
  36. package/dist/pds-icons/pds-icons.esm.js +1 -1
  37. package/dist/pds-icons/pds-icons.esm.js.map +1 -1
  38. package/dist/pds-icons.json +1 -1
  39. package/dist/pds-icons.symbols.svg +1 -1
  40. package/dist/types/components.d.ts +2 -0
  41. package/dist/types/stencil-public-runtime.d.ts +83 -8
  42. package/icons/index.d.ts +1 -1
  43. package/icons/index.js +1 -1
  44. package/icons/index.mjs +1 -1
  45. package/icons/package.json +1 -1
  46. package/package.json +2 -2
  47. package/dist/cjs/index-Rab0J0J-.js.map +0 -1
  48. package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
  49. package/dist/esm/index-BtVkVfWm.js.map +0 -1
  50. package/dist/pds-icons/p-5ea9f963.entry.js.map +0 -1
  51. package/dist/pds-icons/p-BtVkVfWm.js +0 -3
  52. package/dist/pds-icons/p-BtVkVfWm.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-BtVkVfWm.js';
2
- import { i as isStr, a as inheritAttributes, g as getUrl, b as getName, s as shouldRtlFlipIcon, c as isRTL } from './index-DageRZ16.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-BnTKVLFw.js';
2
+ import { i as isStr, a as inheritAttributes, g as getUrl, b as getName, s as shouldRtlFlipIcon, c as isRTL } from './index-Bbt-SSYo.js';
3
3
 
4
4
  const validateContent = (svgContent) => {
5
5
  const div = document.createElement('div');
@@ -355,5 +355,3 @@ PdsIcon.style = pdsIconCss;
355
355
 
356
356
  export { PdsIcon as pds_icon };
357
357
  //# sourceMappingURL=pds-icon.entry.js.map
358
-
359
- //# sourceMappingURL=pds-icon.entry.js.map
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-BtVkVfWm.js';
2
- export { s as setNonce } from './index-BtVkVfWm.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-BnTKVLFw.js';
2
+ export { s as setNonce } from './index-BnTKVLFw.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.28.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.38.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -17,8 +17,6 @@ var patchBrowser = () => {
17
17
 
18
18
  patchBrowser().then(async (options) => {
19
19
  await globalScripts();
20
- return bootstrapLazy([["pds-icon",[[1,"pds-icon",{"color":[1],"flipRtl":[4,"flip-rtl"],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"size":["updateStyles"],"color":["updateStyles"],"name":["onIconPropertyChange"],"src":["onIconPropertyChange"],"icon":["onIconPropertyChange"]}]]]], options);
20
+ return bootstrapLazy([["pds-icon",[[257,"pds-icon",{"color":[1],"flipRtl":[4,"flip-rtl"],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"size":["updateStyles"],"color":["updateStyles"],"name":["onIconPropertyChange"],"src":["onIconPropertyChange"],"icon":["onIconPropertyChange"]}]]]], options);
21
21
  });
22
22
  //# sourceMappingURL=pds-icons.js.map
23
-
24
- //# sourceMappingURL=pds-icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pds-icons.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.28.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"pds-icons.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.38.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- export{d as addIcons}from"./p-6DkR999u.js";import"./p-BtVkVfWm.js";
1
+ export{d as addIcons}from"./p-CdP7eq1f.js";import"./p-BnTKVLFw.js";
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as i,H as s,g as e}from"./p-BtVkVfWm.js";import{i as n,a as o,g as r,b as h,s as l,c}from"./p-6DkR999u.js";const a=t=>{const i=document.createElement("div");i.innerHTML=t;for(let t=i.childNodes.length-1;t>=0;t--){if(i.childNodes[t].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[t])}}const s=i.firstElementChild;if(s&&s.nodeName.toLowerCase()==="svg"){const t=s.getAttribute("class")||"";s.setAttribute("class",(t+" s-pds-icon").trim());if(d(s)){return i.innerHTML}}return""};const d=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let i=0;i<t.attributes.length;i++){const s=t.attributes[i].name;if(n(s)&&s.toLowerCase().indexOf("on")===0){return false}}for(let i=0;i<t.childNodes.length;i++){if(!d(t.childNodes[i])){return false}}}return true};const f=t=>t.startsWith("data:image/svg+xml");const u=t=>t.indexOf(";utf8,")!==-1;const p=new Map;const m=new Map;let g;const w=(t,i=false)=>{let s=m.get(t);if(!s){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(f(t)&&u(t)){if(!g){g=new DOMParser}try{const i=g.parseFromString(t,"text/html");const s=i.querySelector("svg");if(s){p.set(t,s.outerHTML)}else{p.set(t,"")}}catch(i){p.set(t,"")}return Promise.resolve()}else{s=fetch(t).then((s=>{if(s.ok){return s.text().then((s=>{if(s&&i!==false){try{s=a(s)}catch(t){s=""}}p.set(t,s||"")}))}else{throw new Error(`Failed to load SVG: ${s.status} ${s.statusText}`)}})).catch((i=>{console.warn("Failed to load SVG:",t,i);p.set(t,"")}));m.set(t,s)}}else{p.set(t,"");return Promise.resolve()}}return s};const b=":host{--dimension-icon-height:16px;--dimension-icon-width:16px;--color-icon-fill:currentColor;contain:strict;display:inline-block;fill:var(--color-icon-fill);flex-shrink:0;height:var(--dimension-icon-height);width:var(--dimension-icon-width)}:host .pdsicon{fill:var(--color-icon-fill)}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}:host(.flip-rtl):host-context([dir=rtl]) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}";const v=class{constructor(i){t(this,i);this.didLoadIcon=false;this.iconName=null;this.inheritedAttributes={};this.isVisible=false;this.size="regular";this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"}}iconSize(){const t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}}componentDidLoad(){this.setCSSVariables();if(!this.didLoadIcon){this.loadIcon()}setTimeout((()=>{if(!this.svgContent&&!this.isVisible){this.isVisible=true;this.loadIcon()}}),100);setTimeout((()=>{if(!this.svgContent&&!this.isVisible){this.isVisible=true;this.loadIcon()}}),500)}componentWillLoad(){this.inheritedAttributes=o(this.el,["aria-label"]);this.setCSSVariables();this.setupInitialAriaLabel()}setCSSVariables(){this.el.style.setProperty(`--dimension-icon-height`,this.iconSize());this.el.style.setProperty(`--dimension-icon-width`,this.iconSize());this.el.style.setProperty(`--color-icon-fill`,typeof this.color!=="undefined"?this.color:"currentColor")}connectedCallback(){if(!this.isVisible&&!this.svgContent){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}if(this.isElementInViewport(this.el)){this.isVisible=true;this.loadIcon()}}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}updateStyles(){this.setCSSVariables()}onIconPropertyChange(){this.loadIcon();this.setupInitialAriaLabel()}loadIcon(){this.didLoadIcon=false;this.svgContent=undefined;if(this.isVisible){const t=r(this);if(t){if(p.has(t)){this.svgContent=p.get(t)}else{w(t).then((()=>{setTimeout((()=>{this.svgContent=p.get(t)}),0)})).catch((()=>{this.svgContent=""}))}this.didLoadIcon=true}}this.iconName=h(this.name,this.icon)}render(){const{ariaLabel:t,flipRtl:e,iconName:n,inheritedAttributes:o}=this;const r=n?l(n,this.el)&&e!==false:false;const h=e||r;const a=o["aria-label"]||t;return i(s,Object.assign({key:"43aa73531314e6529a887468e69362430d006229","aria-label":a!==undefined&&!this.hasAriaHidden()?a:null,alt:"",role:"img",class:Object.assign(Object.assign({},y(this.color)),{"flip-rtl":h,"icon-rtl":h&&c(this.el)})},o),this.svgContent?i("div",{class:"icon-inner",innerHTML:this.svgContent}):i("div",{class:"icon-inner"}))}setupInitialAriaLabel(){if(!this.inheritedAttributes["aria-label"]){const t=h(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}}waitUntilVisible(t,i,s){if(typeof window!=="undefined"&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){e.disconnect();this.io=undefined;s()}}),{rootMargin:i});e.observe(t);setTimeout((()=>{if(this.io&&!this.isVisible){if(this.isElementInViewport(t)){this.io.disconnect();this.io=undefined;s()}}}),1e3)}else{s()}}isElementInViewport(t){if(!t||!t.isConnected)return false;const i=t.getBoundingClientRect();const s=window.innerHeight||document.documentElement.clientHeight;const e=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom<=s&&i.right<=e||i.top<s&&i.bottom>0&&i.left<e&&i.right>0}debugIconState(){var t;const i=r(this);const s=this.el.getBoundingClientRect();console.log("PdsIcon Debug State:",{name:this.name,src:this.src,icon:this.icon,iconName:this.iconName,url:i,isVisible:this.isVisible,didLoadIcon:this.didLoadIcon,hasSvgContent:!!this.svgContent,svgContentLength:((t=this.svgContent)===null||t===void 0?void 0:t.length)||0,isInCache:i?p.has(i):false,cachedContent:i?p.get(i):null,element:this.el,isConnected:this.el.isConnected,isInViewport:this.isElementInViewport(this.el),hasIntersectionObserver:!!this.io,boundingClientRect:s,windowDimensions:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}})}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{size:["updateStyles"],color:["updateStyles"],name:["onIconPropertyChange"],src:["onIconPropertyChange"],icon:["onIconPropertyChange"]}}};const y=t=>t?{"pds-color":true,[`pds-color-${t}`]:true}:null;v.style=b;export{v as pds_icon};
2
- //# sourceMappingURL=p-5ea9f963.entry.js.map
1
+ import{r as t,h as i,H as s,g as e}from"./p-BnTKVLFw.js";import{i as n,a as o,g as r,b as h,s as l,c}from"./p-CdP7eq1f.js";const a=t=>{const i=document.createElement("div");i.innerHTML=t;for(let t=i.childNodes.length-1;t>=0;t--){if(i.childNodes[t].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[t])}}const s=i.firstElementChild;if(s&&s.nodeName.toLowerCase()==="svg"){const t=s.getAttribute("class")||"";s.setAttribute("class",(t+" s-pds-icon").trim());if(d(s)){return i.innerHTML}}return""};const d=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let i=0;i<t.attributes.length;i++){const s=t.attributes[i].name;if(n(s)&&s.toLowerCase().indexOf("on")===0){return false}}for(let i=0;i<t.childNodes.length;i++){if(!d(t.childNodes[i])){return false}}}return true};const f=t=>t.startsWith("data:image/svg+xml");const u=t=>t.indexOf(";utf8,")!==-1;const p=new Map;const m=new Map;let g;const w=(t,i=false)=>{let s=m.get(t);if(!s){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(f(t)&&u(t)){if(!g){g=new DOMParser}try{const i=g.parseFromString(t,"text/html");const s=i.querySelector("svg");if(s){p.set(t,s.outerHTML)}else{p.set(t,"")}}catch(i){p.set(t,"")}return Promise.resolve()}else{s=fetch(t).then((s=>{if(s.ok){return s.text().then((s=>{if(s&&i!==false){try{s=a(s)}catch(t){s=""}}p.set(t,s||"")}))}else{throw new Error(`Failed to load SVG: ${s.status} ${s.statusText}`)}})).catch((i=>{console.warn("Failed to load SVG:",t,i);p.set(t,"")}));m.set(t,s)}}else{p.set(t,"");return Promise.resolve()}}return s};const b=":host{--dimension-icon-height:16px;--dimension-icon-width:16px;--color-icon-fill:currentColor;contain:strict;display:inline-block;fill:var(--color-icon-fill);flex-shrink:0;height:var(--dimension-icon-height);width:var(--dimension-icon-width)}:host .pdsicon{fill:var(--color-icon-fill)}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}:host(.flip-rtl):host-context([dir=rtl]) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(rtl)) .icon-inner{transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{transform:scaleX(1)}";const v=class{constructor(i){t(this,i);this.didLoadIcon=false;this.iconName=null;this.inheritedAttributes={};this.isVisible=false;this.size="regular";this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"}}iconSize(){const t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}}componentDidLoad(){this.setCSSVariables();if(!this.didLoadIcon){this.loadIcon()}setTimeout((()=>{if(!this.svgContent&&!this.isVisible){this.isVisible=true;this.loadIcon()}}),100);setTimeout((()=>{if(!this.svgContent&&!this.isVisible){this.isVisible=true;this.loadIcon()}}),500)}componentWillLoad(){this.inheritedAttributes=o(this.el,["aria-label"]);this.setCSSVariables();this.setupInitialAriaLabel()}setCSSVariables(){this.el.style.setProperty(`--dimension-icon-height`,this.iconSize());this.el.style.setProperty(`--dimension-icon-width`,this.iconSize());this.el.style.setProperty(`--color-icon-fill`,typeof this.color!=="undefined"?this.color:"currentColor")}connectedCallback(){if(!this.isVisible&&!this.svgContent){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}if(this.isElementInViewport(this.el)){this.isVisible=true;this.loadIcon()}}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}updateStyles(){this.setCSSVariables()}onIconPropertyChange(){this.loadIcon();this.setupInitialAriaLabel()}loadIcon(){this.didLoadIcon=false;this.svgContent=undefined;if(this.isVisible){const t=r(this);if(t){if(p.has(t)){this.svgContent=p.get(t)}else{w(t).then((()=>{setTimeout((()=>{this.svgContent=p.get(t)}),0)})).catch((()=>{this.svgContent=""}))}this.didLoadIcon=true}}this.iconName=h(this.name,this.icon)}render(){const{ariaLabel:t,flipRtl:e,iconName:n,inheritedAttributes:o}=this;const r=n?l(n,this.el)&&e!==false:false;const h=e||r;const a=o["aria-label"]||t;return i(s,Object.assign({key:"43aa73531314e6529a887468e69362430d006229","aria-label":a!==undefined&&!this.hasAriaHidden()?a:null,alt:"",role:"img",class:Object.assign(Object.assign({},y(this.color)),{"flip-rtl":h,"icon-rtl":h&&c(this.el)})},o),this.svgContent?i("div",{class:"icon-inner",innerHTML:this.svgContent}):i("div",{class:"icon-inner"}))}setupInitialAriaLabel(){if(!this.inheritedAttributes["aria-label"]){const t=h(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}}waitUntilVisible(t,i,s){if(typeof window!=="undefined"&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){e.disconnect();this.io=undefined;s()}}),{rootMargin:i});e.observe(t);setTimeout((()=>{if(this.io&&!this.isVisible){if(this.isElementInViewport(t)){this.io.disconnect();this.io=undefined;s()}}}),1e3)}else{s()}}isElementInViewport(t){if(!t||!t.isConnected)return false;const i=t.getBoundingClientRect();const s=window.innerHeight||document.documentElement.clientHeight;const e=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom<=s&&i.right<=e||i.top<s&&i.bottom>0&&i.left<e&&i.right>0}debugIconState(){var t;const i=r(this);const s=this.el.getBoundingClientRect();console.log("PdsIcon Debug State:",{name:this.name,src:this.src,icon:this.icon,iconName:this.iconName,url:i,isVisible:this.isVisible,didLoadIcon:this.didLoadIcon,hasSvgContent:!!this.svgContent,svgContentLength:((t=this.svgContent)===null||t===void 0?void 0:t.length)||0,isInCache:i?p.has(i):false,cachedContent:i?p.get(i):null,element:this.el,isConnected:this.el.isConnected,isInViewport:this.isElementInViewport(this.el),hasIntersectionObserver:!!this.io,boundingClientRect:s,windowDimensions:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}})}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{size:["updateStyles"],color:["updateStyles"],name:["onIconPropertyChange"],src:["onIconPropertyChange"],icon:["onIconPropertyChange"]}}};const y=t=>t?{"pds-color":true,[`pds-color-${t}`]:true}:null;v.style=b;export{v as pds_icon};
2
+ //# sourceMappingURL=p-1ade35d9.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","h","Host","getElement","isStr","inheritAttributes","getUrl","getName","shouldRtlFlipIcon","isRTL","validateContent","svgContent","div","document","createElement","innerHTML","i","childNodes","length","nodeName","toLowerCase","removeChild","svgElm","firstElementChild","svgClass","getAttribute","setAttribute","trim","isValid","elm","nodeType","attributes","name","indexOf","isSvgDataUrl","url","startsWith","isEncodedDataUrl","pdsIconContent","Map","requests","parser","getSvgContent","sanitize","req","get","fetch","DOMParser","doc","parseFromString","svg","querySelector","set","outerHTML","error","Promise","resolve","then","rsp","ok","text","validationError","Error","status","statusText","catch","console","warn","pdsIconCss","PdsIcon","constructor","hostRef","this","didLoadIcon","iconName","inheritedAttributes","isVisible","size","hasAriaHidden","el","hasAttribute","iconSize","sizes","small","regular","medium","large","componentDidLoad","setCSSVariables","loadIcon","setTimeout","componentWillLoad","setupInitialAriaLabel","style","setProperty","color","connectedCallback","waitUntilVisible","isElementInViewport","disconnectedCallback","io","disconnect","undefined","updateStyles","onIconPropertyChange","has","icon","render","ariaLabel","flipRtl","shouldIconAutoFlip","shouldFlip","finalAriaLabel","Object","assign","key","alt","role","class","createColorClasses","replace","rootMargin","cb","window","IntersectionObserver","data","isIntersecting","observe","isConnected","rect","getBoundingClientRect","windowHeight","innerHeight","documentElement","clientHeight","windowWidth","innerWidth","clientWidth","top","left","bottom","right","debugIconState","_a","log","src","hasSvgContent","svgContentLength","isInCache","cachedContent","element","isInViewport","hasIntersectionObserver","boundingClientRect","windowDimensions","width","height","assetsDirs","watchers"],"sources":["0"],"mappings":"YAAcA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AaD,KAAKC,YAClByE,gBAAiB1E,KAAK7D,WACtBwI,mBAAoBJ,EAAKvE,KAAK7D,cAAgB,MAAQoI,SAAY,OAAS,EAAIA,EAAG7H,SAAW,EAC7FkI,UAAWjH,EAAMG,EAAemE,IAAItE,GAAO,MAC3CkH,cAAelH,EAAMG,EAAeO,IAAIV,GAAO,KAC/CmH,QAAS9E,KAAKO,GAEdiD,YAAaxD,KAAKO,GAAGiD,YACrBuB,aAAc/E,KAAK0B,oBAAoB1B,KAAKO,IAC5CyE,0BAA2BhF,KAAK4B,GAChCqD,mBAAoBxB,EACpByB,iBAAkB,CACdC,MAAOhC,OAAOa,YAAc3H,SAASwH,gBAAgBI,YACrDmB,OAAQjC,OAAOS,aAAevH,SAASwH,gBAAgBC,eAGnE,CACA,qBAAWuB,GAAe,MAAO,CAAC,MAAQ,CAC1C,MAAI9E,GAAO,OAAO5E,EAAWqE,KAAO,CACpC,mBAAWsF,GAAa,MAAO,CAC3BjF,KAAQ,CAAC,gBACTkB,MAAS,CAAC,gBACV/D,KAAQ,CAAC,wBACTiH,IAAO,CAAC,wBACRvC,KAAQ,CAAC,wBACV,GAEP,MAAMa,EAAsBxB,GACjBA,EACD,CACE,YAAa,KACb,CAAC,aAAaA,KAAU,MAE1B,KAEV1B,EAAQwB,MAAQzB,SAEPC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ const e="pds-icons";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,state:true,updatable:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var i=(e,t)=>{var n;const r=t.t;const i=Object.entries((n=r.i)!=null?n:{});i.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const i=s(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.l.has(n)?t.l.get(n):r}}))};function s(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var l=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var o=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.o=e;if(n.t.u&512&&t.state){i(e,n)}};var f=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map,v:new Map};{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var a=(e,t)=>t in e;var c=(e,t)=>(0,console.error)(e,t);var u=new Map;var v=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const i=e.S;if(!i){return void 0}const s=u.get(i);if(s){return s[r]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{u.set(i,e)}return e[r]}),(e=>{c(e,t.$hostElement$)}))};var d=new Map;var h="{visibility:hidden}.hydrated{visibility:inherit}";var p="slot-fb{display:contents}slot-fb[hidden]{display:none}";var m="http://www.w3.org/1999/xlink";var w=typeof window!=="undefined"?window:{};var y={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var b=e=>Promise.resolve(e);var $=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var g=$?(()=>!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable)():false;var S=false;var j=[];var O=[];var k=(e,t)=>n=>{e.push(n);if(!S){S=true;if(t&&y.u&4){M(E)}else{y.raf(E)}}};var C=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){c(e)}}e.length=0};var E=()=>{C(j);{C(O);if(S=j.length>0){y.raf(E)}}};var M=e=>b().then(e);var x=k(O,true);var P=e=>{e=typeof e;return e==="object"||e==="function"};function U(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var R=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var D={};r(D,{err:()=>W,map:()=>A,ok:()=>N,unwrap:()=>L,unwrapErr:()=>z});var N=e=>({isOk:true,isErr:false,value:e});var W=e=>({isOk:false,isErr:true,value:e});function A(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>N(e)))}else{return N(n)}}if(e.isErr){const t=e.value;return W(t)}throw"should never get here"}var L=e=>{if(e.isOk){return e.value}else{throw e.value}};var z=e=>{if(e.isErr){return e.value}else{throw e.value}};function H(e){return void 0}var T;function V(e){var t;const n=this.attachShadow({mode:"open"});if(T===void 0)T=(t=H())!=null?t:null;if(T){if(g){n.adoptedStyleSheets.push(T)}else{n.adoptedStyleSheets=[...n.adoptedStyleSheets,T]}}}var q=(e,t="")=>{{return()=>{}}};var F=(e,t)=>{{return()=>{}}};var I=new WeakMap;var G=(e,t,n)=>{let r=d.get(e);if($&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}d.set(e,r)};var Y=(e,t,n)=>{var r;const i=B(t);const s=d.get(i);if(!w.document){return i}e=e.nodeType===11?e:w.document;if(s){if(typeof s==="string"){e=e.head||e;let n=I.get(e);let l;if(!n){I.set(e,n=new Set)}if(!n.has(i)){{l=w.document.createElement("style");l.innerHTML=s;const n=(r=y.O)!=null?r:U(w.document);if(n!=null){l.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if($){const t=new CSSStyleSheet;t.replaceSync(s);if(g){e.adoptedStyleSheets.unshift(t)}else{e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}}if(t.u&4){l.innerHTML+=p}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(s)){if(g){e.adoptedStyleSheets.push(s)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}}return i};var _=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const i=q("attachStyles",t.$);const s=Y(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}i()};var B=(e,t)=>"sc-"+e.$;var J=(e,t,...n)=>{let r=null;let i=null;let s=false;let l=false;const o=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!P(r)){r=String(r)}if(s&&l){o[o.length-1].k+=r}else{o.push(s?K(null,r):r)}l=s}}};f(n);if(t){if(t.key){i=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const a=K(e,null);a.C=t;if(o.length>0){a.M=o}{a.P=i}return a};var K=(e,t)=>{const n={u:0,U:e,k:t,R:null,M:null};{n.C=null}{n.P=null}return n};var Q={};var X=e=>e&&e.U===Q;var Z=e=>{const t=R(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Z("::slotted");Z(":host");Z(":host-context");var ee=(e,t,n)=>{if(e!=null&&!P(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&1){return String(e)}return e}return e};var te=e=>{var t;return(t=l(e))==null?void 0:t.$hostElement$};var ne=(e,t,n)=>{const r=y.ce(t,n);e.dispatchEvent(r);return r};var re=(e,t,n,r,i,s,l)=>{if(n===r){return}let o=a(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const i=se(n);let s=se(r);{t.remove(...i.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!i.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(w,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const i=t.endsWith(le);t=t.replace(oe,"");if(n){y.rel(e,t,n,i)}if(r){y.ael(e,t,r,i)}}}else{const l=P(r);if((o||l&&r!==null)&&true){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(m,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||i)&&!l&&e.nodeType===1){r=r===true?"":r;if(a){e.setAttributeNS(m,t,r)}else{e.setAttribute(t,r)}}}};var ie=/\s/;var se=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ie)};var le="Capture";var oe=new RegExp(le+"$");var fe=(e,t,n,r)=>{const i=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const s=e&&e.C||{};const l=t.C||{};{for(const e of ae(Object.keys(s))){if(!(e in l)){re(i,e,s[e],void 0,n,t.u)}}}for(const e of ae(Object.keys(l))){re(i,e,s[e],l[e],n,t.u)}};function ae(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ce;var ue=false;var ve=(e,t,n)=>{const r=t.M[n];let i=0;let s;let l;if(r.k!==null){s=r.R=w.document.createTextNode(r.k)}else{if(!w.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}s=r.R=w.document.createElement(r.U);{fe(null,r,ue)}if(r.M){for(i=0;i<r.M.length;++i){l=ve(e,r,i);if(l){s.appendChild(l)}}}}s["s-hn"]=ce;return s};var de=(e,t,n,r,i,s)=>{let l=e;let o;if(l.shadowRoot&&l.tagName===ce){l=l.shadowRoot}for(;i<=s;++i){if(r[i]){o=ve(null,n,i);if(o){r[i].R=o;be(l,o,t)}}}};var he=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.R;ye(t);if(e){e.remove()}}}};var pe=(e,t,n,r,i=false)=>{let s=0;let l=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(s<=a&&l<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--a]}else if(d==null){d=r[++l]}else if(h==null){h=r[--v]}else if(me(c,d,i)){we(c,d,i);c=t[++s];d=r[++l]}else if(me(u,h,i)){we(u,h,i);u=t[--a];h=r[--v]}else if(me(c,h,i)){we(c,h,i);be(e,c.R,u.R.nextSibling);c=t[++s];h=r[--v]}else if(me(u,d,i)){we(u,d,i);be(e,u.R,c.R);u=t[--a];d=r[++l]}else{o=-1;{for(f=s;f<=a;++f){if(t[f]&&t[f].P!==null&&t[f].P===d.P){o=f;break}}}if(o>=0){m=t[o];if(m.U!==d.U){p=ve(t&&t[l],n,o)}else{we(m,d,i);t[o]=void 0;p=m.R}d=r[++l]}else{p=ve(t&&t[l],n,l);d=r[++l]}if(p){{be(c.R.parentNode,p,c.R)}}}}if(s>a){de(e,r[v+1]==null?null:r[v+1].R,n,r,l,v)}else if(l>v){he(t,s,a)}};var me=(e,t,n=false)=>{if(e.U===t.U){if(!n){return e.P===t.P}if(n&&!e.P&&t.P){e.P=t.P}return true}return false};var we=(e,n,r=false)=>{const i=n.R=e.R;const s=e.M;const l=n.M;const o=n.k;if(o===null){{fe(e,n,ue)}if(s!==null&&l!==null){pe(i,s,n,l,r)}else if(l!==null){if(e.k!==null){i.textContent=""}de(i,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&s!==null){he(s,0,s.length-1)}else;}else if(e.k!==o){i.data=o}};var ye=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.M&&e.M.map(ye)}};var be=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var $e=(e,t,n=false)=>{const r=e.$hostElement$;const i=e.t;const s=e.D||K(null,null);const l=X(t);const o=l?t:J(null,null,t);ce=r.tagName;if(i.N){o.C=o.C||{};i.N.forEach((([e,t])=>{{o.C[t]=r[e]}}))}if(n&&o.C){for(const e of Object.keys(o.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){o.C[e]=r[e]}}}o.U=null;o.u|=4;e.D=o;o.R=s.R=r.shadowRoot||r;we(s,o,n)};var ge=(e,t)=>{if(t&&!e.W&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.W=()=>{t["s-p"].splice(n-1,1);r()})))}};var Se=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}ge(e,e.A);const n=()=>je(e,t);if(t){queueMicrotask((()=>{n()}));return}return x(n)};var je=(e,t)=>{const n=e.$hostElement$;const r=q("scheduleUpdate",e.t.$);const i=e.o;if(!i){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 s;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}s=Pe(i,"componentWillLoad",void 0,n)}else{s=Pe(i,"componentWillUpdate",void 0,n)}s=Oe(s,(()=>Pe(i,"componentWillRender",void 0,n)));r();return Oe(s,(()=>Ce(e,i,t)))};var Oe=(e,t)=>ke(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var ke=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ce=async(e,t,n)=>{var r;const i=e.$hostElement$;const s=q("update",e.t.$);const l=i["s-rc"];if(n){_(e)}const o=q("render",e.t.$);{Ee(e,t,i,n)}if(l){l.map((e=>e()));i["s-rc"]=void 0}o();s();{const t=(r=i["s-p"])!=null?r:[];const n=()=>Me(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var Ee=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{$e(e,t,r)}}}}catch(t){c(t,e.$hostElement$)}return null};var Me=e=>{const t=e.t.$;const n=e.$hostElement$;const r=q("postUpdate",t);const i=e.o;const s=e.A;Pe(i,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{Ue(n)}Pe(i,"componentDidLoad",void 0,n);r();{e.p(n);if(!s){xe()}}}else{Pe(i,"componentDidUpdate",void 0,n);r()}{if(e.W){e.W();e.W=void 0}if(e.u&512){M((()=>Se(e,false)))}e.u&=-517}};var xe=t=>{M((()=>ne(w,"appload",{detail:{namespace:e}})))};var Pe=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){c(e,r)}}return void 0};var Ue=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Re=(e,t)=>l(e).l.get(t);var De=(e,t,n,r)=>{const i=l(e);if(!i){return}if(!i){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const s=i.$hostElement$;const o=i.l.get(t);const f=i.u;const a=i.o;n=ee(n,r.i[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(f&8)||o===void 0)&&v){i.l.set(t,n);if(a){if(r.L&&f&128){const e=r.L[t];if(e){e.map((e=>{try{a[e](n,o,t)}catch(e){c(e,s)}}))}}if((f&(2|16))===2){if(a.componentShouldUpdate){if(a.componentShouldUpdate(n,o,t)===false){return}}Se(i,false)}}}};var Ne=(e,n,r)=>{var i,s;const o=e.prototype;if(n.i||t.propChangeCallback){{if(e.watchers&&!n.L){n.L=e.watchers}if(e.deserializers&&!n.H){n.H=e.deserializers}if(e.serializers&&!n.T){n.T=e.serializers}}const f=Object.entries((i=n.i)!=null?i:{});f.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:s}=Object.getOwnPropertyDescriptor(o,e)||{};if(i)n.i[e][0]|=2048;if(s)n.i[e][0]|=4096;if(r&1||!i){Object.defineProperty(o,e,{get(){{if((n.i[e][0]&2048)===0){return Re(this,e)}const t=l(this);const r=t?t.o:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(i){const o=l(this);if(!o){return}if(s){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.l.get(e)){i=o.l.get(e)}s.apply(this,[ee(i,t)]);i=t&32?this[e]:o.$hostElement$[e];De(this,e,i,n);return}{if((r&1)===0||(n.i[e][0]&4096)===0){De(this,e,i,n);if(r&1&&!o.o){o.m.push((()=>{if(n.i[e][0]&4096&&o.o[e]!==o.l.get(e)){o.o[e]=i}}))}return}const s=()=>{const r=o.o[e];if(!o.l.get(e)&&r){o.l.set(e,r)}o.o[e]=ee(i,t);De(this,e,o.o[e],n)};if(o.o){s()}else{o.m.push((()=>{s()}))}}}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,i,s){y.jmp((()=>{var a;const c=r.get(e);const u=l(this);if(this.hasOwnProperty(c)&&t.lazyLoad){s=this[c];delete this[c]}if(o.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==s){return}else if(c==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&t&128&&s!==i){const t=u.o;const r=(a=n.L)==null?void 0:a[e];r==null?void 0:r.forEach((n=>{if(t[n]!=null){t[n].call(t,s,i,e)}}))}return}const v=f.find((([e])=>e===c));if(v&&v[1][0]&4){s=s===null||s==="false"?false:true}const d=Object.getOwnPropertyDescriptor(o,c);if(s!=this[c]&&(!d.get||!!d.set)){this[c]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.L)!=null?s:{}),...f.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var i;const s=t[1]||e;r.set(s,e);if(t[0]&512){(i=n.N)==null?void 0:i.push([e,s])}return s}))]))}}return e};var We=async(e,t,n,r)=>{let i;if((t.u&32)===0){t.u|=32;const r=n.S;if(r){const r=v(n,t);if(r&&"then"in r){const e=F();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.$}#${t.V}" was not found`)}if(!i.isProxied){{n.L=i.watchers;n.T=i.serializers;n.H=i.deserializers}Ne(i,n,2);i.isProxied=true}const s=q("createInstance",n.$);{t.u|=8}try{new i(t)}catch(t){c(t,e)}{t.u&=-9}{t.u|=128}s();Ae(t.o,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const t=B(n);if(!d.has(t)){const r=q("registerStyles",n.$);G(t,e,!!(n.u&1));r()}}}const s=t.A;const l=()=>Se(t,true);if(s&&s["s-rc"]){s["s-rc"].push(l)}else{l()}};var Ae=(e,t)=>{{Pe(e,"connectedCallback",void 0,t)}};var Le=e=>{if((y.u&1)===0){const t=l(e);if(!t){return}const n=t.t;const r=q("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){ge(t,t.A=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t];e[t]=n}}))}{We(e,t,n)}}else{if(t==null?void 0:t.o){Ae(t.o,e)}else if(t==null?void 0:t.h){t.h.then((()=>Ae(t.o,e)))}}r()}};var ze=(e,t)=>{{Pe(e,"disconnectedCallback",void 0,t||e)}};var He=async e=>{if((y.u&1)===0){const t=l(e);if(t==null?void 0:t.o){ze(t.o,e)}else if(t==null?void 0:t.h){t.h.then((()=>ze(t.o,e)))}}if(I.has(e)){I.delete(e)}if(e.shadowRoot&&I.has(e.shadowRoot)){I.delete(e.shadowRoot)}};var Te=(e,t={})=>{var n;if(!w.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=q();const i=[];const s=t.exclude||[];const o=w.customElements;const a=w.document.head;const c=a.querySelector("meta[charset]");const u=w.document.createElement("style");const v=[];let d;let m=true;Object.assign(y,t);y.j=new URL(t.resourcesUrl||"./",w.document.baseURI).href;let b=false;e.map((e=>{e[1].map((t=>{var n,r,a;const c={u:t[0],$:t[1],i:t[2],q:t[3]};if(c.u&4){b=true}{c.i=t[2]}{c.N=[]}{c.L=(n=t[4])!=null?n:{};c.T=(r=t[5])!=null?r:{};c.H=(a=t[6])!=null?a:{}}const u=c.$;const h=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;f(e,c);if(c.u&1){{if(!e.shadowRoot){V.call(e,c)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=l(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(m){v.push(this)}else{y.jmp((()=>Le(this)))}}disconnectedCallback(){y.jmp((()=>He(this)));y.raf((()=>{var e;const t=l(this);if(!t){return}const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.R)instanceof Node&&!t.D.R.isConnected){delete t.D.R}}))}componentOnReady(){var e;return(e=l(this))==null?void 0:e.h}};c.S=e[0];if(!s.includes(u)&&!o.get(u)){i.push(u);o.define(u,Ne(h,c,1))}}))}));if(i.length>0){if(b){u.textContent+=p}{u.textContent+=i.sort()+h}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=y.O)!=null?n:U(w.document);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}m=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{y.jmp((()=>d=setTimeout(xe,30)))}}r()};var Ve=e=>y.O=e;export{Q as H,Te as b,te as g,J as h,b as p,o as r,Ve as s};
3
+ //# sourceMappingURL=p-BnTKVLFw.js.map