@grasco/profile-picture 0.2.4 → 0.2.6

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/angular.cjs CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var lit=require('lit'),decorators_js=require('lit/decorators.js'),styleMap_js=require('lit/directives/style-map.js');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;var Ce=Object.defineProperty;var s=(r,o,e,t)=>{for(var n=void 0,i=r.length-1,d;i>=0;i--)(d=r[i])&&(n=(d(o,e,n))||n);return n&&Ce(o,e,n),n};var j="grasco-profile-picture-styles",E=false,J=false;function K(){if(E||typeof document>"u")return;if(document.getElementById(j)){E=true;return}if(document.querySelector('link[href*="profile-picture"][href$="styles.css"]')){E=true;return}J||(J=true,Se());}function Se(){(typeof requestIdleCallback<"u"?requestIdleCallback:o=>setTimeout(o,1))(()=>$e());}function $e(){if(E||typeof document>"u")return;if(document.getElementById(j)){E=true;return}let r=Ie();if(!r)return;let o=document.createElement("link");o.id=j,o.rel="stylesheet",o.href=r,document.head.appendChild(o),E=true;}function Ie(){if(typeof window<"u"&&window.__GRASCO_PROFILE_PICTURE_CSS__)return window.__GRASCO_PROFILE_PICTURE_CSS__;try{let o=(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('angular.cjs', document.baseURI).href));if(o)return `${o.substring(0,o.lastIndexOf("/")+1)}styles.css`}catch{}let r=document.currentScript;if(r?.src){let o=new URL(r.src);return `${o.href.substring(0,o.href.lastIndexOf("/")+1)}dist/styles.css`}return null}var D={"2xs":20,xs:24,sm:32,md:40,lg:48,xl:64,"2xl":80,"3xl":120},X={online:"#30D158",away:"#FFD60A",busy:"#FF453A",offline:"#8E8E93",dnd:"#FF453A"},Z={none:"none",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",glow:"0 0 20px 0 rgba(99, 102, 241, 0.3)"},w={size:"md",variant:"circle",loading:"lazy",placeholder:"shimmer",borderWidth:2,borderColor:"#ffffff",placeholderColor:"#f3f4f6",shadow:"sm",zoom:1.2};var T={circle:"9999px",rounded:"12px",squircle:"30%",square:"0px"},k={max:4,direction:"ltr",overlap:.3,size:"md",tooltipDelay:300,dropdownMaxHeight:280,animated:true};function S(...r){return r.filter(Boolean).join(" ")}function _(r){return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(r)}function L(r){let e=r.trim().replace(/[^\w\s]/g,"").split(/\s+/).filter(Boolean);return e.length===0?"?":e.length===1?e[0].slice(0,1).toUpperCase():(e[0][0]+(e.at(-1)?.[0]??"")).toUpperCase()}function H(r){return Math.round(r*.38)}function ee(r,o){let e;if(o){let n=Math.round(r*.31);e=Math.min(24,Math.max(14,n));}else {let n=Math.round(r*.22);e=Math.min(14,Math.max(8,n));}let t=Math.max(9,Math.round(e*.55));return {size:e,fontSize:t}}function te(r,o){let e=Math.min(16,Math.max(8,Math.round(r*.2)));return Math.min(18,e+(o-1)*2)}function re(r,o){return typeof r=="string"?r:o&&r>o?`${o}+`:r.toString()}function ne(r){return r.length===0?"transparent":r.length===1?r[0]:`conic-gradient(${r.map((e,t)=>{let n=t/r.length*360,i=(t+1)/r.length*360;return `${e} ${n}deg ${i}deg`}).join(", ")})`}function B(r){let o=0;for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);o=(o<<5)-o+t,o&=o;}return Math.abs(o)}function oe(r,o,e){let n=Math.max(0,Math.min(100,r))/100*360;return `conic-gradient(from 270deg, ${o} 0deg ${n}deg, ${e} ${n}deg 360deg)`}function P(r){let o=["linear-gradient(135deg, #667eea 0%, #764ba2 100%)","linear-gradient(135deg, #f093fb 0%, #f5576c 100%)","linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)","linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)","linear-gradient(135deg, #fa709a 0%, #fee140 100%)","linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)","linear-gradient(135deg, #d299c2 0%, #fef9d7 100%)","linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)","linear-gradient(135deg, #cd9cf2 0%, #f6f3ff 100%)","linear-gradient(135deg, #fddb92 0%, #d1fdff 100%)"],e=B(r)%o.length;return o[e]}var Q=[["#f4a261","#e76f51","#d4a5a5"],["#f2a9b0","#e07a5f","#d4c4a8"],["#c9b1d0","#e8a0bf","#f0d1ce"],["#89c2d9","#a3c4bc","#d5c6e0"],["#f7c59f","#f2a07b","#efcfe3"],["#b5a7d5","#d4a5c9","#f0c3d7"],["#7ec8c8","#6a9fb5","#c2b5d6"],["#f0b3ba","#d4a5c9","#c9d1d9"],["#e8b960","#d4956a","#c9a5b8"],["#a7c4a0","#c9d4a5","#e0c9b1"],["#c4819b","#d9a5b8","#b5aed4"],["#f0c27f","#e0a87c","#d4b5c9"]];function ie(r){let o=B(r),e=Q[o%Q.length],t=B(r+"pos1"),n=B(r+"pos2"),i=20+o%61,d=20+(o>>4)%61,c=20+t%61,p=20+(t>>4)%61,l=20+n%61,f=20+(n>>4)%61;return [`radial-gradient(circle at ${i}% ${d}%, ${e[0]} 0%, transparent 70%)`,`radial-gradient(circle at ${c}% ${p}%, ${e[1]} 0%, transparent 70%)`,`radial-gradient(circle at ${l}% ${f}%, ${e[2]} 0%, transparent 70%)`].join(", ")}function ae(r){return typeof r=="number"?r:D[r]??D[k.size]}function V(r,o,e){let t=e?o-1:o;if(r<=t)return {visible:r,hidden:0,showCounter:false};let n=t-1,i=r-n;return {visible:n,hidden:i,showCounter:true}}function O(r,o,e,t,n){let i=n??o*(1-e);return r*i}function se(r,o,e){return e==="ltr"?o-r:r+1}function pe(r,o,e,t){if(r===0)return 0;if(r===1)return o;let n=t??o*(1-e);return o+n*(r-1)}function de(r){return r>99?"+99":`+${r}`}function le(r){return r<=80?"120":r<=120?"240":r<=240?"480":("960")}function ce(r,o,e,t,n){let i=r.endsWith("/")?r.slice(0,-1):r,d=`${o}_${e}_${t}.webp`;return `${i}/api/profile-picture/cdn/${d}?hostname=${n}`}function ge(r){return {circle:"np:rounded-full",rounded:"np:rounded-xl",squircle:"np:rounded-[30%]",square:"np:rounded-none"}[r]}function ue(r,o){return {className:{1:"np:border",2:"np:border-2",3:"np:border-[3px]",4:"np:border-4",5:"np:border-[5px]",6:"np:border-[6px]",8:"np:border-8"}[r],style:{borderColor:o,borderStyle:"solid"}}}function fe(r,o){return o?{className:"",style:{background:o}}:r?r.includes("gradient")?{className:"",style:{background:r}}:{className:"",style:{backgroundColor:r}}:{className:"",style:{backgroundColor:"transparent"}}}function he(r){return {boxShadow:Z[r]}}var ze={shimmer:`
1
+ 'use strict';var lit=require('lit'),decorators_js=require('lit/decorators.js'),styleMap_js=require('lit/directives/style-map.js');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;var ke=Object.defineProperty;var s=(r,o,e,t)=>{for(var n=void 0,i=r.length-1,l;i>=0;i--)(l=r[i])&&(n=(l(o,e,n))||n);return n&&ke(o,e,n),n};var H="grasco-profile-picture-styles",T=false,X=false;function Z(){if(T||typeof document>"u")return;if(document.getElementById(H)){T=true;return}if(document.querySelector('link[href*="profile-picture"][href$="styles.css"]')){T=true;return}X||(X=true,$e());}function $e(){(typeof requestIdleCallback<"u"?requestIdleCallback:o=>setTimeout(o,1))(()=>Ie());}function Ie(){if(T||typeof document>"u")return;if(document.getElementById(H)){T=true;return}let r=ze();if(!r)return;let o=document.createElement("link");o.id=H,o.rel="stylesheet",o.href=r,document.head.appendChild(o),T=true;}function ze(){if(typeof window<"u"&&window.__GRASCO_PROFILE_PICTURE_CSS__)return window.__GRASCO_PROFILE_PICTURE_CSS__;try{let o=(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('angular.cjs', document.baseURI).href));if(o)return `${o.substring(0,o.lastIndexOf("/")+1)}styles.css`}catch{}let r=document.currentScript;if(r?.src){let o=new URL(r.src);return `${o.href.substring(0,o.href.lastIndexOf("/")+1)}dist/styles.css`}return null}var D={"2xs":20,xs:24,sm:32,md:40,lg:48,xl:64,"2xl":80,"3xl":120},Q={online:"#30D158",away:"#FFD60A",busy:"#FF453A",offline:"#8E8E93",dnd:"#FF453A"},_={none:"none",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",glow:"0 0 20px 0 rgba(99, 102, 241, 0.3)"},v={size:"md",variant:"circle",loading:"lazy",placeholder:"shimmer",borderWidth:2,borderColor:"#ffffff",placeholderColor:"#f3f4f6",shadow:"sm",zoom:1.2};var A={circle:"9999px",rounded:"12px",squircle:"30%",square:"0px"},S={max:4,direction:"ltr",overlap:.3,size:"md",tooltipDelay:300,dropdownMaxHeight:280,animated:true};function $(...r){return r.filter(Boolean).join(" ")}function te(r){return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(r)}function P(r){let e=r.trim().replace(/[^\w\s]/g,"").split(/\s+/).filter(Boolean);return e.length===0?"?":e.length===1?e[0].slice(0,1).toUpperCase():(e[0][0]+(e.at(-1)?.[0]??"")).toUpperCase()}function W(r){return Math.round(r*.38)}function re(r,o){let e;if(o){let n=Math.round(r*.31);e=Math.min(24,Math.max(14,n));}else {let n=Math.round(r*.22);e=Math.min(14,Math.max(8,n));}let t=Math.max(9,Math.round(e*.55));return {size:e,fontSize:t}}function ne(r,o){let e=Math.min(16,Math.max(8,Math.round(r*.2)));return Math.min(18,e+(o-1)*2)}function oe(r,o){return typeof r=="string"?r:o&&r>o?`${o}+`:r.toString()}function ie(r){return r.length===0?"transparent":r.length===1?r[0]:`conic-gradient(${r.map((e,t)=>{let n=t/r.length*360,i=(t+1)/r.length*360;return `${e} ${n}deg ${i}deg`}).join(", ")})`}function B(r){let o=0;for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);o=(o<<5)-o+t,o&=o;}return Math.abs(o)}function ae(r,o,e){let n=Math.max(0,Math.min(100,r))/100*360;return `conic-gradient(from 270deg, ${o} 0deg ${n}deg, ${e} ${n}deg 360deg)`}function O(r){let o=["linear-gradient(135deg, #667eea 0%, #764ba2 100%)","linear-gradient(135deg, #f093fb 0%, #f5576c 100%)","linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)","linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)","linear-gradient(135deg, #fa709a 0%, #fee140 100%)","linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)","linear-gradient(135deg, #d299c2 0%, #fef9d7 100%)","linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)","linear-gradient(135deg, #cd9cf2 0%, #f6f3ff 100%)","linear-gradient(135deg, #fddb92 0%, #d1fdff 100%)"],e=B(r)%o.length;return o[e]}var ee=[["#f4a261","#e76f51","#d4a5a5"],["#f2a9b0","#e07a5f","#d4c4a8"],["#c9b1d0","#e8a0bf","#f0d1ce"],["#89c2d9","#a3c4bc","#d5c6e0"],["#f7c59f","#f2a07b","#efcfe3"],["#b5a7d5","#d4a5c9","#f0c3d7"],["#7ec8c8","#6a9fb5","#c2b5d6"],["#f0b3ba","#d4a5c9","#c9d1d9"],["#e8b960","#d4956a","#c9a5b8"],["#a7c4a0","#c9d4a5","#e0c9b1"],["#c4819b","#d9a5b8","#b5aed4"],["#f0c27f","#e0a87c","#d4b5c9"]];function V(r,o,e){let t=p=>[Number.parseInt(p.slice(1,3),16),Number.parseInt(p.slice(3,5),16),Number.parseInt(p.slice(5,7),16)],n=t(r),i=t(o),l=p=>Math.round(n[p]+(i[p]-n[p])*e).toString(16).padStart(2,"0");return `#${l(0)}${l(1)}${l(2)}`}function se(r){let o=B(r),e=ee[o%ee.length],t="#f5f0eb",n=V(e[0],t,.85),i=V(e[1],t,.85),l=V(e[2],t,.85),p=B(r+"pos1"),d=B(r+"pos2"),c=20+o%61,u=20+(o>>4)%61,b=20+p%61,z=20+(p>>4)%61,E=20+d%61,w=20+(d>>4)%61;return [`radial-gradient(circle at ${c}% ${u}%, ${e[0]} 0%, ${n} 70%)`,`radial-gradient(circle at ${b}% ${z}%, ${e[1]} 0%, ${i} 70%)`,`radial-gradient(circle at ${E}% ${w}%, ${e[2]} 0%, ${l} 70%)`].join(", ")}function pe(r){return typeof r=="number"?r:D[r]??D[S.size]}function q(r,o,e){let t=e?o-1:o;if(r<=t)return {visible:r,hidden:0,showCounter:false};let n=t-1,i=r-n;return {visible:n,hidden:i,showCounter:true}}function L(r,o,e,t,n){let i=n??o*(1-e);return r*i}function de(r,o,e){return e==="ltr"?o-r:r+1}function le(r,o,e,t){if(r===0)return 0;if(r===1)return o;let n=t??o*(1-e);return o+n*(r-1)}function ce(r){return r>99?"+99":`+${r}`}function ge(r){return r<=80?"120":r<=120?"240":r<=240?"480":("960")}function ue(r,o,e,t,n){let i=r.endsWith("/")?r.slice(0,-1):r,l=`${o}_${e}_${t}.webp`;return `${i}/profile-picture/cdn/${l}?hostname=${n}`}function fe(r){return {circle:"np:rounded-full",rounded:"np:rounded-xl",squircle:"np:rounded-[30%]",square:"np:rounded-none"}[r]}function be(r,o){return {className:{1:"np:border",2:"np:border-2",3:"np:border-[3px]",4:"np:border-4",5:"np:border-[5px]",6:"np:border-[6px]",8:"np:border-8"}[r],style:{borderColor:o,borderStyle:"solid"}}}function me(r,o){return o?{className:"",style:{background:o}}:r?r.includes("gradient")?{className:"",style:{background:r}}:{className:"",style:{backgroundColor:r}}:{className:"",style:{backgroundColor:"transparent"}}}function he(r){return {boxShadow:_[r]}}var Me={shimmer:`
2
2
  @keyframes pp-shimmer {
3
3
  0% { transform: translateX(-100%); }
4
4
  100% { transform: translateX(100%); }
@@ -36,8 +36,8 @@
36
36
  0% { transform: scale(0.8); opacity: 0; }
37
37
  50% { transform: scale(1.05); }
38
38
  100% { transform: scale(1); opacity: 1; }
39
- }`},Me=Object.values(ze).join(`
40
- `),Ee=`
39
+ }`},Ee=Object.values(Me).join(`
40
+ `),Te=`
41
41
  /* Profile Picture Component Styles */
42
42
  .pp-container {
43
43
  --pp-transition-duration: 200ms;
@@ -241,8 +241,8 @@
241
241
  transition: none !important;
242
242
  }
243
243
  }
244
- `,be=`${Me}
245
- ${Ee}`,me=`
244
+ `,xe=`${Ee}
245
+ ${Te}`,we=`
246
246
  @keyframes np-shimmer {
247
247
  0% { background-position: -200% 0; }
248
248
  100% { background-position: 200% 0; }
@@ -252,7 +252,7 @@ ${Ee}`,me=`
252
252
  background-size: 200% 100%;
253
253
  animation: np-shimmer 1.5s infinite;
254
254
  }
255
- `;function xe(r,o=.3){if(_(r)){let e=Number.parseInt(r.slice(1,3),16),t=Number.parseInt(r.slice(3,5),16),n=Number.parseInt(r.slice(5,7),16);return `0 0 20px 0 rgba(${e}, ${t}, ${n}, ${o})`}return `0 0 20px 0 ${r}`}var De=`
255
+ `;function ve(r,o=.3){if(te(r)){let e=Number.parseInt(r.slice(1,3),16),t=Number.parseInt(r.slice(3,5),16),n=Number.parseInt(r.slice(5,7),16);return `0 0 20px 0 rgba(${e}, ${t}, ${n}, ${o})`}return `0 0 20px 0 ${r}`}var De=`
256
256
  @keyframes ppg-tooltip-in {
257
257
  from {
258
258
  opacity: 0;
@@ -303,7 +303,7 @@ ${Ee}`,me=`
303
303
  opacity: 1;
304
304
  }
305
305
  }
306
- `,Te=`
306
+ `,Ae=`
307
307
  /* Profile Picture Group Container */
308
308
  .ppg-container {
309
309
  --ppg-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
@@ -748,14 +748,14 @@ ${Ee}`,me=`
748
748
  box-shadow: 0 0 0 1.5px rgba(44, 44, 46, 0.95), 0 0 6px rgba(48, 209, 88, 0.5);
749
749
  }
750
750
  }
751
- `,we=`${De}
752
- ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);this.src="";this.alt="";this.size=w.size;this.variant=w.variant;this.shadow=w.shadow;this.border=false;this.borderWidth=w.borderWidth;this.borderColor=w.borderColor;this.rotation=0;this.zoom=w.zoom;this.loading=w.loading;this.placeholder=w.placeholder;this.placeholderColor=w.placeholderColor;this.imageMode="original";this.isLoaded=false;this.hasError=false;this.cdnLoadFailed=false;this.previousSrc="";this.randomSeed=Math.random().toString(36).slice(2);this.RETRY_DELAY_MS=3e4;}static{this.stylesInjected=false;}static{this.cdnBaseUrl="";}static{this.instances=new Set;}static setCdnBaseUrl(e){a.cdnBaseUrl=e,a.instances.forEach(t=>{t.extCustomerId&&!t.cdnImageUrl&&(t.cdnLoadFailed=false,t.retryTimeoutId&&(clearTimeout(t.retryTimeoutId),t.retryTimeoutId=void 0),t.previousExtCustomerId||(t.previousExtCustomerId=t.extCustomerId),t.loadCdnImage());});}static getCdnBaseUrl(){return a.cdnBaseUrl}createRenderRoot(){return a.injectStylesOnce(),this}static injectStylesOnce(){if(a.stylesInjected||typeof document>"u")return;(typeof requestIdleCallback<"u"?requestIdleCallback:t=>setTimeout(t,1))(()=>{if(a.stylesInjected)return;let t=document.createElement("style");t.textContent=be,document.head.appendChild(t),a.stylesInjected=true;});}get pixelSize(){let e=this.size;return typeof e=="number"?e:D[e]??D[w.size]}get gradientSeed(){return this.extCustomerId||this.alt||this.src||this.randomSeed}connectedCallback(){super.connectedCallback(),a.instances.add(this);}disconnectedCallback(){super.disconnectedCallback(),a.instances.delete(this),this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=void 0);}firstUpdated(){this.extCustomerId&&a.cdnBaseUrl&&(this.previousExtCustomerId=this.extCustomerId,this.loadCdnImage());}updated(e){super.updated(e),this.extCustomerId&&a.cdnBaseUrl&&!this.cdnImageUrl&&!this.previousExtCustomerId&&(this.previousExtCustomerId=this.extCustomerId,this.cdnLoadFailed=false,this.loadCdnImage());}willUpdate(e){e.has("src")&&this.src!==this.previousSrc&&(this.isLoaded=false,this.hasError=false,this.previousSrc=this.src);let t=e.has("extCustomerId")&&this.extCustomerId!==this.previousExtCustomerId,n=e.has("size")||e.has("imageMode");(t||n&&this.extCustomerId)&&(this.previousExtCustomerId=this.extCustomerId,this.cdnImageUrl=void 0,this.cdnLoadFailed=false,this.isLoaded=false,this.hasError=false,this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=void 0),this.loadCdnImage());}handleLoad(){this.isLoaded=true,this.dispatchEvent(new CustomEvent("load",{bubbles:true,composed:true}));}handleClick(e){this.interactive?.pressable&&this.dispatchEvent(new CustomEvent("profile-picture-click",{bubbles:true,composed:true,detail:{extCustomerId:this.extCustomerId,alt:this.alt,src:this.src}}));}handleKeyDown(e){this.interactive?.pressable&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleClick(e));}handleError(){if(this.cdnImageUrl&&!this.cdnLoadFailed){this.cdnLoadFailed=true,this.cdnImageUrl=void 0,this.dispatchEvent(new CustomEvent("cdn-error",{bubbles:true,composed:true,detail:{error:"Image load failed"}})),this.retryTimeoutId&&clearTimeout(this.retryTimeoutId),this.retryTimeoutId=setTimeout(()=>{this.retryTimeoutId=void 0,this.extCustomerId&&a.cdnBaseUrl&&(this.cdnLoadFailed=false,this.hasError=false,this.isLoaded=false,this.loadCdnImage());},this.RETRY_DELAY_MS);return}this.hasError=true,this.isLoaded=true,this.dispatchEvent(new CustomEvent("error",{bubbles:true,composed:true}));}loadCdnImage(){if(!(this.extCustomerId&&a.cdnBaseUrl)){this.cdnLoadFailed=true;return}let e=le(this.pixelSize),t=typeof window<"u"?window.location.hostname:"localhost";this.cdnImageUrl=ce(a.cdnBaseUrl,this.extCustomerId,e,this.imageMode,t);}getContainerStyles(){let e=fe(this.bgColor,this.bgGradient),t=this.border?ue(this.borderWidth,this.borderColor):null,n=he(this.shadow),i={};if(this.glow){let c=this.glow.color??this.borderColor??"#6366f1";i={"--pp-glow-color":c,boxShadow:xe(c,this.glow.intensity??.3)};}let d=this.interactive?.hoverable||this.interactive?.pressable;return {classes:S("pp-container",ge(this.variant),t?.className,d&&"pp-interactive",this.glow?.animate&&"pp-glow"),styles:{width:`${this.pixelSize}px`,height:`${this.pixelSize}px`,borderRadius:T[this.variant],...t?.style,...n,...i,cursor:this.interactive?.cursor??(d?"pointer":"default"),transform:this.rotation?`rotate(${this.rotation}deg)`:void 0},innerStyles:e.style??{},innerClasses:e.className}}renderPlaceholder(){if(this.isLoaded||this.placeholder==="none")return lit.nothing;let e={shimmer:"pp-shimmer",pulse:"pp-pulse",skeleton:"pp-skeleton",blur:"",none:""}[this.placeholder];return lit.html`
753
- ${this.placeholder==="shimmer"?lit.html`<style>${me}</style>`:lit.nothing}
751
+ `,ye=`${De}
752
+ ${Ae}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);this.src="";this.alt="";this.size=v.size;this.variant=v.variant;this.shadow=v.shadow;this.border=false;this.borderWidth=v.borderWidth;this.borderColor=v.borderColor;this.rotation=0;this.zoom=v.zoom;this.loading=v.loading;this.placeholder=v.placeholder;this.placeholderColor=v.placeholderColor;this.imageMode="original";this.isLoaded=false;this.hasError=false;this.cdnLoadFailed=false;this.previousSrc="";this.randomSeed=Math.random().toString(36).slice(2);this.RETRY_DELAY_MS=3e4;}static{this.stylesInjected=false;}static{this.cdnBaseUrl="";}static{this.instances=new Set;}static setCdnBaseUrl(e){a.cdnBaseUrl=e,a.instances.forEach(t=>{t.extCustomerId&&!t.cdnImageUrl&&(t.cdnLoadFailed=false,t.retryTimeoutId&&(clearTimeout(t.retryTimeoutId),t.retryTimeoutId=void 0),t.previousExtCustomerId||(t.previousExtCustomerId=t.extCustomerId),t.loadCdnImage());});}static getCdnBaseUrl(){return a.cdnBaseUrl}createRenderRoot(){return a.injectStylesOnce(),this}static injectStylesOnce(){if(a.stylesInjected||typeof document>"u")return;(typeof requestIdleCallback<"u"?requestIdleCallback:t=>setTimeout(t,1))(()=>{if(a.stylesInjected)return;let t=document.createElement("style");t.textContent=xe,document.head.appendChild(t),a.stylesInjected=true;});}resolveObjectProp(e){if(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return}return e}}get pixelSize(){let e=this.size;return typeof e=="number"?e:D[e]??D[v.size]}get gradientSeed(){return this.extCustomerId||this.alt||this.src||this.randomSeed}connectedCallback(){super.connectedCallback(),a.instances.add(this);}disconnectedCallback(){super.disconnectedCallback(),a.instances.delete(this),this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=void 0);}firstUpdated(){this.extCustomerId&&a.cdnBaseUrl&&(this.previousExtCustomerId=this.extCustomerId,this.loadCdnImage());}updated(e){super.updated(e),this.extCustomerId&&a.cdnBaseUrl&&!this.cdnImageUrl&&!this.previousExtCustomerId&&(this.previousExtCustomerId=this.extCustomerId,this.cdnLoadFailed=false,this.loadCdnImage());}willUpdate(e){e.has("src")&&this.src!==this.previousSrc&&(this.isLoaded=false,this.hasError=false,this.previousSrc=this.src);let t=e.has("extCustomerId")&&this.extCustomerId!==this.previousExtCustomerId,n=e.has("size")||e.has("imageMode");(t||n&&this.extCustomerId)&&(this.previousExtCustomerId=this.extCustomerId,this.cdnImageUrl=void 0,this.cdnLoadFailed=false,this.isLoaded=false,this.hasError=false,this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=void 0),this.loadCdnImage());}handleLoad(){this.isLoaded=true,this.dispatchEvent(new CustomEvent("load",{bubbles:true,composed:true}));}handleClick(e){this.resolveObjectProp(this.interactive)?.pressable&&this.dispatchEvent(new CustomEvent("profile-picture-click",{bubbles:true,composed:true,detail:{extCustomerId:this.extCustomerId,alt:this.alt,src:this.src}}));}handleKeyDown(e){this.resolveObjectProp(this.interactive)?.pressable&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.handleClick(e));}handleError(){if(this.cdnImageUrl&&!this.cdnLoadFailed){this.cdnLoadFailed=true,this.cdnImageUrl=void 0,this.dispatchEvent(new CustomEvent("cdn-error",{bubbles:true,composed:true,detail:{error:"Image load failed"}})),this.retryTimeoutId&&clearTimeout(this.retryTimeoutId),this.retryTimeoutId=setTimeout(()=>{this.retryTimeoutId=void 0,this.extCustomerId&&a.cdnBaseUrl&&(this.cdnLoadFailed=false,this.hasError=false,this.isLoaded=false,this.loadCdnImage());},this.RETRY_DELAY_MS);return}this.hasError=true,this.isLoaded=true,this.dispatchEvent(new CustomEvent("error",{bubbles:true,composed:true}));}loadCdnImage(){if(!(this.extCustomerId&&a.cdnBaseUrl)){this.cdnLoadFailed=true;return}let e=ge(this.pixelSize),t=typeof window<"u"?window.location.hostname:"localhost";this.cdnImageUrl=ue(a.cdnBaseUrl,this.extCustomerId,e,this.imageMode,t);}getContainerStyles(){let e=me(this.bgColor,this.bgGradient),t=this.border?be(this.borderWidth,this.borderColor):null,n=he(this.shadow),i=this.resolveObjectProp(this.glow),l={};if(i){let c=i.color??this.borderColor??"#6366f1";l={"--pp-glow-color":c,boxShadow:ve(c,i.intensity??.3)};}let p=this.resolveObjectProp(this.interactive),d=p?.hoverable||p?.pressable;return {classes:$("pp-container",fe(this.variant),t?.className,d&&"pp-interactive",i?.animate&&"pp-glow"),styles:{width:`${this.pixelSize}px`,height:`${this.pixelSize}px`,borderRadius:A[this.variant],...t?.style,...n,...l,cursor:p?.cursor??(d?"pointer":"default"),transform:this.rotation?`rotate(${this.rotation}deg)`:void 0},innerStyles:e.style??{},innerClasses:e.className}}renderPlaceholder(){if(this.isLoaded||this.placeholder==="none")return lit.nothing;let e={shimmer:"pp-shimmer",pulse:"pp-pulse",skeleton:"pp-skeleton",blur:"",none:""}[this.placeholder];return lit.html`
753
+ ${this.placeholder==="shimmer"?lit.html`<style>${we}</style>`:lit.nothing}
754
754
  <div
755
- class=${S("np:absolute np:inset-0",e)}
755
+ class=${$("np:absolute np:inset-0",e)}
756
756
  style=${styleMap_js.styleMap({backgroundColor:this.placeholderColor,borderRadius:"inherit"})}>
757
757
  </div>
758
- `}renderFallback(){let e=!!(this.bgColor||this.bgGradient);if(this.fallbackMode==="gradient"){let n=ie(this.gradientSeed);return lit.html`
758
+ `}renderFallback(){let e=!!(this.bgColor||this.bgGradient);if(this.fallbackMode==="gradient"){let n=se(this.gradientSeed);return lit.html`
759
759
  <div
760
760
  class="pp-fallback np:absolute np:inset-0"
761
761
  style=${styleMap_js.styleMap({background:e?"transparent":n})}>
@@ -763,14 +763,14 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
763
763
  `}if(this.fallback)return lit.html`
764
764
  <span
765
765
  class="pp-fallback"
766
- style=${styleMap_js.styleMap({fontSize:`${H(this.pixelSize)}px`})}>
766
+ style=${styleMap_js.styleMap({fontSize:`${W(this.pixelSize)}px`})}>
767
767
  ${this.fallback}
768
768
  </span>
769
- `;if(this.alt){let n=P(this.alt);return lit.html`
769
+ `;if(this.alt){let n=O(this.alt);return lit.html`
770
770
  <div
771
771
  class="pp-fallback np:absolute np:inset-0"
772
- style=${styleMap_js.styleMap({background:e?"transparent":n,fontSize:`${H(this.pixelSize)}px`})}>
773
- ${L(this.alt)}
772
+ style=${styleMap_js.styleMap({background:e?"transparent":n,fontSize:`${W(this.pixelSize)}px`})}>
773
+ ${P(this.alt)}
774
774
  </div>
775
775
  `}let t=this.pixelSize*.5;return lit.html`
776
776
  <svg
@@ -788,33 +788,33 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
788
788
  decoding="async"
789
789
  @load=${this.handleLoad}
790
790
  @error=${this.handleError}
791
- class=${S("pp-image",this.isLoaded?"pp-image-loaded":"pp-image-loading")}
791
+ class=${$("pp-image",this.isLoaded?"pp-image-loaded":"pp-image-loading")}
792
792
  style=${n}
793
793
  draggable="false" />
794
- `}renderRing(){if(!this.ring?.show)return lit.nothing;let e=this.ring.width??3,t=this.ring.gap??3,n=e+t,i,d=this.ring.progress!==void 0;if(d){let c=this.ring.progress??0,p=this.ring.color??"#30D158",l=this.ring.emptyColor??"#8E8E93";i=oe(c,p,l);}else this.ring.gradient&&this.ring.gradient.length>0?i=ne(this.ring.gradient):i=this.ring.color??"linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888)";return lit.html`
794
+ `}renderRing(){let e=this.resolveObjectProp(this.ring);if(!e?.show)return lit.nothing;let t=e.width??3,n=e.gap??3,i=t+n,l,p=e.progress!==void 0;if(p){let d=e.progress??0,c=e.color??"#30D158",u=e.emptyColor??"#8E8E93";l=ae(d,c,u);}else e.gradient&&e.gradient.length>0?l=ie(e.gradient):l=e.color??"linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888)";return lit.html`
795
795
  <div
796
- class=${S("pp-ring",this.ring.animate&&!d&&"pp-ring-animated",d&&"pp-ring-progress")}
797
- style=${styleMap_js.styleMap({inset:`-${n}px`,padding:`${e}px`,background:i,borderRadius:T[this.variant]})}>
796
+ class=${$("pp-ring",e.animate&&!p&&"pp-ring-animated",p&&"pp-ring-progress")}
797
+ style=${styleMap_js.styleMap({inset:`-${i}px`,padding:`${t}px`,background:l,borderRadius:A[this.variant]})}>
798
798
  </div>
799
- `}getCornerOffset(){let e=this.pixelSize/2,n={circle:1-Math.SQRT2/2,square:0,rounded:.04,squircle:.08}[this.variant];return e*n}renderPresence(){if(!this.presence)return lit.nothing;let e=this.presence.thickness??2,t=te(this.pixelSize,e),n=X[this.presence.status],d=this.getCornerOffset()-t/2;return lit.html`
799
+ `}getCornerOffset(){let e=this.pixelSize/2,n={circle:1-Math.SQRT2/2,square:0,rounded:.04,squircle:.08}[this.variant];return e*n}renderPresence(){let e=this.resolveObjectProp(this.presence);if(!e)return lit.nothing;let t=e.thickness??2,n=ne(this.pixelSize,t),i=Q[e.status],p=this.getCornerOffset()-n/2;return lit.html`
800
800
  <div
801
- class=${S("pp-presence",this.presence.animate&&"pp-presence-animated")}
802
- style=${styleMap_js.styleMap({width:`${t}px`,height:`${t}px`,backgroundColor:n,bottom:`${d}px`,right:`${d}px`,color:n})}
803
- title=${this.presence.status}>
801
+ class=${$("pp-presence",e.animate&&"pp-presence-animated")}
802
+ style=${styleMap_js.styleMap({width:`${n}px`,height:`${n}px`,backgroundColor:i,bottom:`${p}px`,right:`${p}px`,color:i})}
803
+ title=${e.status}>
804
804
  </div>
805
- `}renderBadge(){if(!this.badge)return lit.nothing;let e=this.badge.position??"bottom-right",t=this.badge.content!==void 0,n=this.badge.icon!==void 0,i=t||n,{size:d,fontSize:c}=ee(this.pixelSize,i),p=this.badge.bgColor??"#22c55e",l=this.badge.color??"#ffffff",f=this.badge.borderRadius??"9999px",b=t&&this.badge.content!==void 0?re(this.badge.content,this.badge.max):null,M=n?this.badge.icon:null,F=c*.9,h=`${this.getCornerOffset()-d/2}px`,U={"top-left":{top:h,left:h},"top-center":{top:h,left:"50%",transform:"translateX(-50%)"},"top-right":{top:h,right:h},"bottom-left":{bottom:h,left:h},"bottom-center":{bottom:h,left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:h,right:h}};return lit.html`
805
+ `}renderBadge(){let e=this.resolveObjectProp(this.badge);if(!e)return lit.nothing;let t=e.position??"bottom-right",n=e.content!==void 0,i=e.icon!==void 0,l=n||i,{size:p,fontSize:d}=re(this.pixelSize,l),c=e.bgColor??"#22c55e",u=e.color??"#ffffff",b=e.borderRadius??"9999px",z=n&&e.content!==void 0?oe(e.content,e.max):null,E=i?e.icon:null,w=d*.9,m=`${this.getCornerOffset()-p/2}px`,N={"top-left":{top:m,left:m},"top-center":{top:m,left:"50%",transform:"translateX(-50%)"},"top-right":{top:m,right:m},"bottom-left":{bottom:m,left:m},"bottom-center":{bottom:m,left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:m,right:m}};return lit.html`
806
806
  <div
807
- class=${S("pp-badge",this.badge.pulse&&"pp-badge-pulse",this.badge.glow&&"pp-badge-glow",n&&"pp-badge-with-icon")}
808
- style=${styleMap_js.styleMap({width:i?"auto":`${d}px`,minWidth:`${d}px`,height:`${d}px`,padding:i?"0 6px":"0",fontSize:`${c}px`,backgroundColor:p,color:l,borderRadius:f,"--pp-badge-glow-color":p,gap:n&&t?"4px":"0",...U[e]})}>
809
- ${M?lit.html`<span class="pp-badge-icon" style=${styleMap_js.styleMap({fontSize:`${F}px`})}>${M}</span>`:lit.nothing}
810
- ${b??lit.nothing}
807
+ class=${$("pp-badge",e.pulse&&"pp-badge-pulse",e.glow&&"pp-badge-glow",i&&"pp-badge-with-icon")}
808
+ style=${styleMap_js.styleMap({width:l?"auto":`${p}px`,minWidth:`${p}px`,height:`${p}px`,padding:l?"0 6px":"0",fontSize:`${d}px`,backgroundColor:c,color:u,borderRadius:b,"--pp-badge-glow-color":c,gap:i&&n?"4px":"0",...N[t]})}>
809
+ ${E?lit.html`<span class="pp-badge-icon" style=${styleMap_js.styleMap({fontSize:`${w}px`})}>${E}</span>`:lit.nothing}
810
+ ${z??lit.nothing}
811
811
  </div>
812
- `}render(){let e=this.getContainerStyles(),t=this.interactive?.focusable||this.interactive?.pressable?0:void 0;return lit.html`
812
+ `}render(){let e=this.getContainerStyles(),t=this.resolveObjectProp(this.interactive),n=t?.focusable||t?.pressable?0:void 0;return lit.html`
813
813
  <div
814
814
  class=${e.classes}
815
815
  style=${styleMap_js.styleMap(e.styles)}
816
- tabindex=${t??lit.nothing}
817
- role=${this.interactive?.pressable?"button":lit.nothing}
816
+ tabindex=${n??lit.nothing}
817
+ role=${t?.pressable?"button":lit.nothing}
818
818
  aria-label=${this.alt||lit.nothing}
819
819
  @click=${this.handleClick}
820
820
  @keydown=${this.handleKeyDown}
@@ -825,8 +825,8 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
825
825
 
826
826
  <!-- Inner container for image clipping -->
827
827
  <div
828
- class=${S("pp-inner",e.innerClasses)}
829
- style=${styleMap_js.styleMap({borderRadius:T[this.variant],...e.innerStyles})}>
828
+ class=${$("pp-inner",e.innerClasses)}
829
+ style=${styleMap_js.styleMap({borderRadius:A[this.variant],...e.innerStyles})}>
830
830
  <!-- Placeholder -->
831
831
  ${this.renderPlaceholder()}
832
832
 
@@ -840,7 +840,7 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
840
840
  <!-- Presence Indicator -->
841
841
  ${this.renderPresence()}
842
842
  </div>
843
- `}};s([decorators_js.property({type:String})],a.prototype,"src"),s([decorators_js.property({type:String})],a.prototype,"alt"),s([decorators_js.property({type:String,attribute:"ext-customer-id"})],a.prototype,"extCustomerId"),s([decorators_js.property({type:String})],a.prototype,"size"),s([decorators_js.property({type:String})],a.prototype,"variant"),s([decorators_js.property({type:String})],a.prototype,"shadow"),s([decorators_js.property({type:Boolean})],a.prototype,"border"),s([decorators_js.property({type:Number,attribute:"border-width"})],a.prototype,"borderWidth"),s([decorators_js.property({type:String,attribute:"border-color"})],a.prototype,"borderColor"),s([decorators_js.property({type:Number})],a.prototype,"rotation"),s([decorators_js.property({type:Number})],a.prototype,"zoom"),s([decorators_js.property({type:String,attribute:"bg-color"})],a.prototype,"bgColor"),s([decorators_js.property({type:String,attribute:"bg-gradient"})],a.prototype,"bgGradient"),s([decorators_js.property({type:Object,attribute:"ring",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"ring"),s([decorators_js.property({type:Object,attribute:"presence",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"presence"),s([decorators_js.property({type:Object,attribute:"glow",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"glow"),s([decorators_js.property({type:Object,attribute:"badge",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"badge"),s([decorators_js.property({type:String})],a.prototype,"loading"),s([decorators_js.property({type:String})],a.prototype,"placeholder"),s([decorators_js.property({type:String,attribute:"placeholder-color"})],a.prototype,"placeholderColor"),s([decorators_js.property({type:String})],a.prototype,"fallback"),s([decorators_js.property({type:String,attribute:"fallback-mode"})],a.prototype,"fallbackMode"),s([decorators_js.property({type:String,attribute:"image-mode"})],a.prototype,"imageMode"),s([decorators_js.property({type:Object,attribute:"interactive",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"interactive"),s([decorators_js.state()],a.prototype,"isLoaded"),s([decorators_js.state()],a.prototype,"hasError"),s([decorators_js.state()],a.prototype,"cdnImageUrl"),s([decorators_js.state()],a.prototype,"cdnLoadFailed");var A=a;customElements.get("profile-picture")||customElements.define("profile-picture",A);var Y=false;function Ue(){if(Y||typeof document>"u")return;(typeof requestIdleCallback<"u"?requestIdleCallback:o=>setTimeout(o,1))(()=>{if(Y)return;let o=document.createElement("style");o.textContent=we,document.head.appendChild(o),Y=true;});}var u=class extends lit.LitElement{constructor(){super(...arguments);this.max=k.max;this.direction=k.direction;this.overlap=k.overlap;this.size=k.size;this.showAddButton=false;this.addButtonLabel="Add user";this.animated=k.animated;this.rotationAmount=0;this.users=[];this.dropdownOpen=false;this.tooltipData=null;this.tooltipTimeout=null;this.slotObserver=null;this.portalContainer=null;this.counterRef=null;this.handleBackdropClick=()=>{this.dropdownOpen=false,this.destroyPortal();};}createRenderRoot(){return Ue(),this}get pixelSize(){return ae(this.size)}get tooltipEnabled(){return this.tooltip?.enabled!==false}get tooltipPosition(){return this.tooltip?.position??"top"}get tooltipDelay(){return this.tooltip?.delay??k.tooltipDelay}get dropdownMaxHeight(){return this.dropdown?.maxHeight??k.dropdownMaxHeight}get showPresence(){return this.dropdown?.showPresence!==false}get dropdownPosition(){return this.dropdown?.position??"bottom"}connectedCallback(){super.connectedCallback(),this.updateUsers(),this.setupSlotObserver();}disconnectedCallback(){super.disconnectedCallback(),this.slotObserver?.disconnect(),this.clearTooltipTimeout(),this.destroyPortal();}setupSlotObserver(){this.slotObserver=new MutationObserver(()=>{this.updateUsers();}),this.slotObserver.observe(this,{childList:true,subtree:true,attributes:true,attributeFilter:["src","alt","ext-customer-id","data-user-id","data-status","variant","shadow","border","border-width","border-color","bg-color","bg-gradient","image-mode","zoom","loading","placeholder","placeholder-color","fallback","fallback-mode","glow","ring","badge","interactive"]});}updateUsers(){let e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="profile-picture"&&t.getAttribute("slot")!=="internal");this.users=e.map((t,n)=>{let i=(p,l)=>{let f=l??p,b=t[p];return b!=null&&b!==""?String(b):t.getAttribute(f)??void 0},d=i("borderWidth","border-width"),c=d?Number.parseInt(String(d),10):void 0;return {id:i("dataUserId","data-user-id"),name:i("alt")??`User ${n+1}`,src:i("src"),extCustomerId:i("extCustomerId","ext-customer-id"),status:i("dataStatus","data-status"),element:t,index:n,variant:i("variant"),shadow:i("shadow"),border:!!(t.border??t.hasAttribute("border")),borderWidth:c,borderColor:i("borderColor","border-color"),bgColor:i("bgColor","bg-color"),bgGradient:i("bgGradient","bg-gradient"),imageMode:i("imageMode","image-mode"),zoom:(()=>{let p=i("zoom");return p?Number(p):void 0})(),loading:i("loading"),placeholder:i("placeholder"),placeholderColor:i("placeholderColor","placeholder-color"),fallback:i("fallback"),fallbackMode:i("fallbackMode","fallback-mode"),glow:(()=>{let p=t.glow;if(p&&typeof p=="object")return p;let l=t.getAttribute("glow");if(l)try{return JSON.parse(l)}catch{}})(),ring:(()=>{let p=t.ring;if(p&&typeof p=="object")return p;let l=t.getAttribute("ring");if(l)try{return JSON.parse(l)}catch{}})(),badge:(()=>{let p=t.badge;if(p&&typeof p=="object")return p;let l=t.getAttribute("badge");if(l)try{return JSON.parse(l)}catch{}})(),interactive:(()=>{let p=t.interactive;if(p&&typeof p=="object")return p;let l=t.getAttribute("interactive");if(l)try{return JSON.parse(l)}catch{}})()}});for(let t of this.users)t.element&&(t.element.style.display="none");}createPortal(){this.portalContainer||(this.portalContainer=document.createElement("div"),this.portalContainer.className="ppg-portal",this.portalContainer.style.cssText="position: fixed; z-index: 99999; pointer-events: none;",document.body.appendChild(this.portalContainer),document.body.style.overflow="hidden");}destroyPortal(){this.portalContainer&&(lit.render(lit.nothing,this.portalContainer),this.portalContainer.remove(),this.portalContainer=null,document.body.style.overflow="");}updatePortalContent(e){if(!(this.portalContainer&&this.counterRef))return;let t=this.counterRef.getBoundingClientRect(),n=10,i=280,d=Math.min(this.dropdownMaxHeight+60,e.length*56+60),c=window.innerWidth,p=window.innerHeight;if(c<480){let N=lit.html`
843
+ `}};s([decorators_js.property({type:String})],a.prototype,"src"),s([decorators_js.property({type:String})],a.prototype,"alt"),s([decorators_js.property({type:String,attribute:"ext-customer-id"})],a.prototype,"extCustomerId"),s([decorators_js.property({type:String})],a.prototype,"size"),s([decorators_js.property({type:String})],a.prototype,"variant"),s([decorators_js.property({type:String})],a.prototype,"shadow"),s([decorators_js.property({type:Boolean})],a.prototype,"border"),s([decorators_js.property({type:Number,attribute:"border-width"})],a.prototype,"borderWidth"),s([decorators_js.property({type:String,attribute:"border-color"})],a.prototype,"borderColor"),s([decorators_js.property({type:Number})],a.prototype,"rotation"),s([decorators_js.property({type:Number})],a.prototype,"zoom"),s([decorators_js.property({type:String,attribute:"bg-color"})],a.prototype,"bgColor"),s([decorators_js.property({type:String,attribute:"bg-gradient"})],a.prototype,"bgGradient"),s([decorators_js.property({type:Object,attribute:"ring",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"ring"),s([decorators_js.property({type:Object,attribute:"presence",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"presence"),s([decorators_js.property({type:Object,attribute:"glow",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"glow"),s([decorators_js.property({type:Object,attribute:"badge",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"badge"),s([decorators_js.property({type:String})],a.prototype,"loading"),s([decorators_js.property({type:String})],a.prototype,"placeholder"),s([decorators_js.property({type:String,attribute:"placeholder-color"})],a.prototype,"placeholderColor"),s([decorators_js.property({type:String})],a.prototype,"fallback"),s([decorators_js.property({type:String,attribute:"fallback-mode"})],a.prototype,"fallbackMode"),s([decorators_js.property({type:String,attribute:"image-mode"})],a.prototype,"imageMode"),s([decorators_js.property({type:Object,attribute:"interactive",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],a.prototype,"interactive"),s([decorators_js.state()],a.prototype,"isLoaded"),s([decorators_js.state()],a.prototype,"hasError"),s([decorators_js.state()],a.prototype,"cdnImageUrl"),s([decorators_js.state()],a.prototype,"cdnLoadFailed");var R=a;customElements.get("profile-picture")||customElements.define("profile-picture",R);var K=false;function Be(){if(K||typeof document>"u")return;(typeof requestIdleCallback<"u"?requestIdleCallback:o=>setTimeout(o,1))(()=>{if(K)return;let o=document.createElement("style");o.textContent=ye,document.head.appendChild(o),K=true;});}var f=class extends lit.LitElement{constructor(){super(...arguments);this.max=S.max;this.direction=S.direction;this.overlap=S.overlap;this.size=S.size;this.showAddButton=false;this.addButtonLabel="Add user";this.animated=S.animated;this.rotationAmount=0;this.users=[];this.dropdownOpen=false;this.tooltipData=null;this.tooltipTimeout=null;this.slotObserver=null;this.portalContainer=null;this.counterRef=null;this.handleBackdropClick=()=>{this.dropdownOpen=false,this.destroyPortal();};}createRenderRoot(){return Be(),this}get pixelSize(){return pe(this.size)}get tooltipEnabled(){return this.tooltip?.enabled!==false}get tooltipPosition(){return this.tooltip?.position??"top"}get tooltipDelay(){return this.tooltip?.delay??S.tooltipDelay}get dropdownMaxHeight(){return this.dropdown?.maxHeight??S.dropdownMaxHeight}get showPresence(){return this.dropdown?.showPresence!==false}get dropdownPosition(){return this.dropdown?.position??"bottom"}connectedCallback(){super.connectedCallback(),this.updateUsers(),this.setupSlotObserver();}disconnectedCallback(){super.disconnectedCallback(),this.slotObserver?.disconnect(),this.clearTooltipTimeout(),this.destroyPortal();}setupSlotObserver(){this.slotObserver=new MutationObserver(()=>{this.updateUsers();}),this.slotObserver.observe(this,{childList:true,subtree:true,attributes:true,attributeFilter:["src","alt","ext-customer-id","data-user-id","data-status","variant","shadow","border","border-width","border-color","bg-color","bg-gradient","image-mode","zoom","loading","placeholder","placeholder-color","fallback","fallback-mode","glow","ring","badge","interactive"]});}updateUsers(){let e=Array.from(this.children).filter(t=>t.tagName.toLowerCase()==="profile-picture"&&t.getAttribute("slot")!=="internal");this.users=e.map((t,n)=>{let i=(d,c)=>{let u=c??d,b=t[d];return b!=null&&b!==""?String(b):t.getAttribute(u)??void 0},l=i("borderWidth","border-width"),p=l?Number.parseInt(String(l),10):void 0;return {id:i("dataUserId","data-user-id"),name:i("alt")??`User ${n+1}`,src:i("src"),extCustomerId:i("extCustomerId","ext-customer-id"),status:i("dataStatus","data-status"),element:t,index:n,variant:i("variant"),shadow:i("shadow"),border:!!(t.border??t.hasAttribute("border")),borderWidth:p,borderColor:i("borderColor","border-color"),bgColor:i("bgColor","bg-color"),bgGradient:i("bgGradient","bg-gradient"),imageMode:i("imageMode","image-mode"),zoom:(()=>{let d=i("zoom");return d?Number(d):void 0})(),loading:i("loading"),placeholder:i("placeholder"),placeholderColor:i("placeholderColor","placeholder-color"),fallback:i("fallback"),fallbackMode:i("fallbackMode","fallback-mode"),glow:(()=>{let d=t.glow;if(d&&typeof d=="object")return d;let c=t.getAttribute("glow");if(c)try{return JSON.parse(c)}catch{}})(),ring:(()=>{let d=t.ring;if(d&&typeof d=="object")return d;let c=t.getAttribute("ring");if(c)try{return JSON.parse(c)}catch{}})(),badge:(()=>{let d=t.badge;if(d&&typeof d=="object")return d;let c=t.getAttribute("badge");if(c)try{return JSON.parse(c)}catch{}})(),interactive:(()=>{let d=t.interactive;if(d&&typeof d=="object")return d;let c=t.getAttribute("interactive");if(c)try{return JSON.parse(c)}catch{}})()}});for(let t of this.users)t.element&&(t.element.style.display="none");}createPortal(){this.portalContainer||(this.portalContainer=document.createElement("div"),this.portalContainer.className="ppg-portal",this.portalContainer.style.cssText="position: fixed; z-index: 99999; pointer-events: none;",document.body.appendChild(this.portalContainer),document.body.style.overflow="hidden");}destroyPortal(){this.portalContainer&&(lit.render(lit.nothing,this.portalContainer),this.portalContainer.remove(),this.portalContainer=null,document.body.style.overflow="");}updatePortalContent(e){if(!(this.portalContainer&&this.counterRef))return;let t=this.counterRef.getBoundingClientRect(),n=10,i=280,l=Math.min(this.dropdownMaxHeight+60,e.length*56+60),p=window.innerWidth,d=window.innerHeight;if(p<480){let j=lit.html`
844
844
  <div
845
845
  class="ppg-backdrop ppg-backdrop-visible"
846
846
  style="pointer-events: auto; background: rgba(0,0,0,0.5);"
@@ -861,10 +861,10 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
861
861
  class="ppg-dropdown-list"
862
862
  style=${styleMap_js.styleMap({maxHeight:"calc(70vh - 60px)"})}
863
863
  >
864
- ${e.map(ve=>this.renderDropdownItem(ve))}
864
+ ${e.map(Ce=>this.renderDropdownItem(Ce))}
865
865
  </div>
866
866
  </div>
867
- `;lit.render(N,this.portalContainer);return}let f=p-t.bottom-n,b=t.top-n,M=c-t.left,F=t.right,I=this.dropdownPosition;I==="bottom"&&f<d&&b>f?I="top":I==="top"&&b<d&&f>b&&(I="bottom");let z;M>=i?z=t.left:F>=i?z=t.right-i:z=(c-i)/2,z=Math.max(8,Math.min(z,c-i-8));let h=I==="bottom"?t.bottom+n:void 0,U=I==="top"?p-t.top+n:void 0,ye=lit.html`
867
+ `;lit.render(j,this.portalContainer);return}let u=d-t.bottom-n,b=t.top-n,z=p-t.left,E=t.right,w=this.dropdownPosition;w==="bottom"&&u<l&&b>u?w="top":w==="top"&&b<l&&u>b&&(w="bottom");let M;z>=i?M=t.left:E>=i?M=t.right-i:M=(p-i)/2,M=Math.max(8,Math.min(M,p-i-8));let F=w==="bottom"?t.bottom+n:void 0,m=w==="top"?d-t.top+n:void 0,N=lit.html`
868
868
  <div
869
869
  class="ppg-backdrop"
870
870
  style="pointer-events: auto;"
@@ -873,8 +873,8 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
873
873
  ></div>
874
874
  <div
875
875
  class="ppg-dropdown ppg-dropdown-portal"
876
- style=${styleMap_js.styleMap({position:"fixed",pointerEvents:"auto",top:h!==void 0?`${h}px`:"auto",bottom:U!==void 0?`${U}px`:"auto",left:`${z}px`,width:`${i}px`})}
877
- data-position=${I}
876
+ style=${styleMap_js.styleMap({position:"fixed",pointerEvents:"auto",top:F!==void 0?`${F}px`:"auto",bottom:m!==void 0?`${m}px`:"auto",left:`${M}px`,width:`${i}px`})}
877
+ data-position=${w}
878
878
  role="menu"
879
879
  aria-label="Hidden users"
880
880
  >
@@ -885,22 +885,22 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
885
885
  class="ppg-dropdown-list"
886
886
  style=${styleMap_js.styleMap({maxHeight:`${this.dropdownMaxHeight}px`})}
887
887
  >
888
- ${e.map(N=>this.renderDropdownItem(N))}
888
+ ${e.map(j=>this.renderDropdownItem(j))}
889
889
  </div>
890
890
  </div>
891
- `;lit.render(ye,this.portalContainer);}handleAvatarClick(e){this.dispatchEvent(new CustomEvent("avatar-click",{detail:{user:e},bubbles:true,composed:true}));}handleAvatarHover(e,t){if(!this.tooltipEnabled)return;this.clearTooltipTimeout();let n=t.currentTarget;this.tooltipTimeout=window.setTimeout(()=>{this.tooltipData={user:e,rect:n.getBoundingClientRect()};},this.tooltipDelay),this.dispatchEvent(new CustomEvent("avatar-hover",{detail:{user:e},bubbles:true,composed:true}));}handleAvatarLeave(){this.clearTooltipTimeout(),this.tooltipData=null;}clearTooltipTimeout(){this.tooltipTimeout&&(window.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=null);}handleCounterClick(e){this.dropdownOpen=!this.dropdownOpen,this.dropdownOpen?(this.createPortal(),this.updatePortalContent(e)):this.destroyPortal(),this.dispatchEvent(new CustomEvent("counter-click",{detail:{hiddenUsers:e,open:this.dropdownOpen},bubbles:true,composed:true}));}handleDropdownItemClick(e){this.dropdownOpen=false,this.destroyPortal(),this.dispatchEvent(new CustomEvent("dropdown-item-click",{detail:{user:e},bubbles:true,composed:true}));}handleAddClick(){this.dispatchEvent(new CustomEvent("add-click",{bubbles:true,composed:true}));}handleKeyDown(e,t){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),t());}renderAvatar(e,t,n){let i=O(t,this.pixelSize,this.overlap,this.direction,this.spacing),d=se(t,n,this.direction),c=e.variant??"circle",p=e.shadow??"none",l=this.rotationAmount?t%2===0?-this.rotationAmount:this.rotationAmount:0;return lit.html`
891
+ `;lit.render(N,this.portalContainer);}handleAvatarClick(e){this.dispatchEvent(new CustomEvent("avatar-click",{detail:{user:e},bubbles:true,composed:true}));}handleAvatarHover(e,t){if(!this.tooltipEnabled)return;this.clearTooltipTimeout();let n=t.currentTarget;this.tooltipTimeout=window.setTimeout(()=>{this.tooltipData={user:e,rect:n.getBoundingClientRect()};},this.tooltipDelay),this.dispatchEvent(new CustomEvent("avatar-hover",{detail:{user:e},bubbles:true,composed:true}));}handleAvatarLeave(){this.clearTooltipTimeout(),this.tooltipData=null;}clearTooltipTimeout(){this.tooltipTimeout&&(window.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=null);}handleCounterClick(e){this.dropdownOpen=!this.dropdownOpen,this.dropdownOpen?(this.createPortal(),this.updatePortalContent(e)):this.destroyPortal(),this.dispatchEvent(new CustomEvent("counter-click",{detail:{hiddenUsers:e,open:this.dropdownOpen},bubbles:true,composed:true}));}handleDropdownItemClick(e){this.dropdownOpen=false,this.destroyPortal(),this.dispatchEvent(new CustomEvent("dropdown-item-click",{detail:{user:e},bubbles:true,composed:true}));}handleAddClick(){this.dispatchEvent(new CustomEvent("add-click",{bubbles:true,composed:true}));}handleKeyDown(e,t){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),t());}renderAvatar(e,t,n){let i=L(t,this.pixelSize,this.overlap,this.direction,this.spacing),l=de(t,n,this.direction),p=e.variant??"circle",d=e.shadow??"none",c=this.rotationAmount?t%2===0?-this.rotationAmount:this.rotationAmount:0;return lit.html`
892
892
  <div
893
893
  class="ppg-avatar-wrapper"
894
- style=${styleMap_js.styleMap({left:`${i}px`,zIndex:String(d),width:`${this.pixelSize}px`,height:`${this.pixelSize}px`})}
894
+ style=${styleMap_js.styleMap({left:`${i}px`,zIndex:String(l),width:`${this.pixelSize}px`,height:`${this.pixelSize}px`})}
895
895
  tabindex="0"
896
896
  role="button"
897
897
  aria-label=${e.name}
898
898
  @click=${()=>this.handleAvatarClick(e)}
899
- @mouseenter=${f=>this.handleAvatarHover(e,f)}
899
+ @mouseenter=${u=>this.handleAvatarHover(e,u)}
900
900
  @mouseleave=${this.handleAvatarLeave}
901
- @keydown=${f=>this.handleKeyDown(f,()=>this.handleAvatarClick(e))}
901
+ @keydown=${u=>this.handleKeyDown(u,()=>this.handleAvatarClick(e))}
902
902
  >
903
- ${this.renderProfilePicture(e,c,p,l)}
903
+ ${this.renderProfilePicture(e,p,d,c)}
904
904
  </div>
905
905
  `}renderProfilePicture(e,t,n,i){return lit.html`
906
906
  <profile-picture
@@ -939,7 +939,7 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
939
939
  aria-haspopup="true"
940
940
  @click=${()=>this.handleCounterClick(n)}
941
941
  >
942
- ${de(e)}
942
+ ${ce(e)}
943
943
  </button>
944
944
  `}renderAddButton(e){let t=Math.round(this.pixelSize*.4);return lit.html`
945
945
  <button
@@ -963,16 +963,16 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
963
963
  <line x1="5" y1="12" x2="19" y2="12"></line>
964
964
  </svg>
965
965
  </button>
966
- `}renderTooltip(){if(!this.tooltipData)return lit.nothing;let{user:e,rect:t}=this.tooltipData,n=8,i=this.getBoundingClientRect(),d=t.left-i.left+t.width/2,c=t.top-i.top,p=t.bottom-i.top,l=this.tooltipPosition==="top";return lit.html`
966
+ `}renderTooltip(){if(!this.tooltipData)return lit.nothing;let{user:e,rect:t}=this.tooltipData,n=8,i=this.getBoundingClientRect(),l=t.left-i.left+t.width/2,p=t.top-i.top,d=t.bottom-i.top,c=this.tooltipPosition==="top";return lit.html`
967
967
  <div
968
968
  class="ppg-tooltip"
969
- style=${styleMap_js.styleMap({top:l?"auto":`${p+n}px`,bottom:l?`${i.height-c+n}px`:"auto",left:`${d}px`})}
969
+ style=${styleMap_js.styleMap({top:c?"auto":`${d+n}px`,bottom:c?`${i.height-p+n}px`:"auto",left:`${l}px`})}
970
970
  data-position=${this.tooltipPosition}
971
971
  role="tooltip"
972
972
  >
973
973
  ${e.name}
974
974
  </div>
975
- `}renderDropdownItem(e){let t=P(e.name),n=e.src||e.extCustomerId;return lit.html`
975
+ `}renderDropdownItem(e){let t=O(e.name),n=e.src||e.extCustomerId;return lit.html`
976
976
  <div
977
977
  class="ppg-dropdown-item"
978
978
  role="menuitem"
@@ -992,7 +992,7 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
992
992
  class="ppg-dropdown-avatar-fallback"
993
993
  style=${styleMap_js.styleMap({background:t})}
994
994
  >
995
- ${L(e.name)}
995
+ ${P(e.name)}
996
996
  </div>`}
997
997
  <div class="ppg-dropdown-info">
998
998
  <div class="ppg-dropdown-name">${e.name}</div>
@@ -1007,10 +1007,10 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
1007
1007
  `:lit.nothing}
1008
1008
  </div>
1009
1009
  </div>
1010
- `}formatStatus(e){return {online:"Online",away:"Away",busy:"Busy",offline:"Offline",dnd:"Do not disturb"}[e]??e}updated(e){super.updated(e);let t=this.querySelector(".ppg-counter");if(t&&(this.counterRef=t),this.dropdownOpen&&this.portalContainer){let{visible:n}=V(this.users.length,this.max,this.showAddButton),i=this.users.slice(n);this.updatePortalContent(i);}}render(){let{visible:e,hidden:t,showCounter:n}=V(this.users.length,this.max,this.showAddButton),i=this.direction==="ltr"?this.users.slice(0,e):this.users.slice(0,e).reverse(),d=this.users.slice(e),c=e;n&&c++,this.showAddButton&&c++;let p=pe(c,this.pixelSize,this.overlap,this.spacing),l=n?O(e,this.pixelSize,this.overlap,this.direction,this.spacing):0,f=O(e+(n?1:0),this.pixelSize,this.overlap,this.direction,this.spacing);return lit.html`
1010
+ `}formatStatus(e){return {online:"Online",away:"Away",busy:"Busy",offline:"Offline",dnd:"Do not disturb"}[e]??e}updated(e){super.updated(e);let t=this.querySelector(".ppg-counter");if(t&&(this.counterRef=t),this.dropdownOpen&&this.portalContainer){let{visible:n}=q(this.users.length,this.max,this.showAddButton),i=this.users.slice(n);this.updatePortalContent(i);}}render(){let{visible:e,hidden:t,showCounter:n}=q(this.users.length,this.max,this.showAddButton),i=this.direction==="ltr"?this.users.slice(0,e):this.users.slice(0,e).reverse(),l=this.users.slice(e),p=e;n&&p++,this.showAddButton&&p++;let d=le(p,this.pixelSize,this.overlap,this.spacing),c=n?L(e,this.pixelSize,this.overlap,this.direction,this.spacing):0,u=L(e+(n?1:0),this.pixelSize,this.overlap,this.direction,this.spacing);return lit.html`
1011
1011
  <div
1012
- class=${S("ppg-container",this.animated&&"ppg-animated")}
1013
- style=${styleMap_js.styleMap({width:`${p}px`,height:`${this.pixelSize}px`})}
1012
+ class=${$("ppg-container",this.animated&&"ppg-animated")}
1013
+ style=${styleMap_js.styleMap({width:`${d}px`,height:`${this.pixelSize}px`})}
1014
1014
  role="group"
1015
1015
  aria-label="User avatars"
1016
1016
  >
@@ -1018,16 +1018,16 @@ ${Te}`;var a=class a extends lit.LitElement{constructor(){super(...arguments);th
1018
1018
  <slot style="display: none;"></slot>
1019
1019
 
1020
1020
  <!-- Visible avatars -->
1021
- ${i.map((b,M)=>this.renderAvatar(b,M,e))}
1021
+ ${i.map((b,z)=>this.renderAvatar(b,z,e))}
1022
1022
 
1023
1023
  <!-- Counter -->
1024
- ${n?this.renderCounter(t,l,d):lit.nothing}
1024
+ ${n?this.renderCounter(t,c,l):lit.nothing}
1025
1025
 
1026
1026
  <!-- Add button -->
1027
- ${this.showAddButton?this.renderAddButton(f):lit.nothing}
1027
+ ${this.showAddButton?this.renderAddButton(u):lit.nothing}
1028
1028
 
1029
1029
  <!-- Tooltip -->
1030
1030
  ${this.renderTooltip()}
1031
1031
  </div>
1032
- `}};s([decorators_js.property({type:Number})],u.prototype,"max"),s([decorators_js.property({type:String})],u.prototype,"direction"),s([decorators_js.property({type:Number})],u.prototype,"overlap"),s([decorators_js.property({type:String})],u.prototype,"size"),s([decorators_js.property({type:Number})],u.prototype,"spacing"),s([decorators_js.property({type:Object})],u.prototype,"tooltip"),s([decorators_js.property({type:Object})],u.prototype,"dropdown"),s([decorators_js.property({type:Boolean,attribute:"show-add-button"})],u.prototype,"showAddButton"),s([decorators_js.property({type:String,attribute:"add-button-label"})],u.prototype,"addButtonLabel"),s([decorators_js.property({type:Boolean})],u.prototype,"animated"),s([decorators_js.property({type:Number,attribute:"rotation-amount"})],u.prototype,"rotationAmount"),s([decorators_js.state()],u.prototype,"users"),s([decorators_js.state()],u.prototype,"dropdownOpen"),s([decorators_js.state()],u.prototype,"tooltipData");customElements.get("profile-picture-group")||customElements.define("profile-picture-group",u);function pt(r){A.setCdnBaseUrl(r);}function dt(){return A.getCdnBaseUrl()}K();exports.getCdnBaseUrl=dt;exports.setCdnBaseUrl=pt;//# sourceMappingURL=angular.cjs.map
1032
+ `}};s([decorators_js.property({type:Number})],f.prototype,"max"),s([decorators_js.property({type:String})],f.prototype,"direction"),s([decorators_js.property({type:Number})],f.prototype,"overlap"),s([decorators_js.property({type:String})],f.prototype,"size"),s([decorators_js.property({type:Number})],f.prototype,"spacing"),s([decorators_js.property({type:Object})],f.prototype,"tooltip"),s([decorators_js.property({type:Object})],f.prototype,"dropdown"),s([decorators_js.property({type:Boolean,attribute:"show-add-button"})],f.prototype,"showAddButton"),s([decorators_js.property({type:String,attribute:"add-button-label"})],f.prototype,"addButtonLabel"),s([decorators_js.property({type:Boolean})],f.prototype,"animated"),s([decorators_js.property({type:Number,attribute:"rotation-amount"})],f.prototype,"rotationAmount"),s([decorators_js.state()],f.prototype,"users"),s([decorators_js.state()],f.prototype,"dropdownOpen"),s([decorators_js.state()],f.prototype,"tooltipData");customElements.get("profile-picture-group")||customElements.define("profile-picture-group",f);function dt(r){R.setCdnBaseUrl(r);}function lt(){return R.getCdnBaseUrl()}Z();exports.getCdnBaseUrl=lt;exports.setCdnBaseUrl=dt;//# sourceMappingURL=angular.cjs.map
1033
1033
  //# sourceMappingURL=angular.cjs.map