@grasco/profile-picture 0.1.0 → 0.1.2
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 +49 -31
- package/dist/angular.cjs.map +1 -1
- package/dist/angular.d.cts +34 -1
- package/dist/angular.d.ts +34 -1
- package/dist/angular.js +49 -31
- package/dist/angular.js.map +1 -1
- package/dist/index.cjs +112 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -4
- package/dist/index.d.ts +59 -4
- package/dist/index.js +112 -93
- package/dist/index.js.map +1 -1
- package/dist/standalone.d.ts +37 -3
- package/dist/standalone.standalone.js +81 -62
- package/dist/standalone.standalone.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/svelte.cjs +49 -31
- package/dist/svelte.cjs.map +1 -1
- package/dist/svelte.d.cts +34 -1
- package/dist/svelte.d.ts +34 -1
- package/dist/svelte.js +49 -31
- package/dist/svelte.js.map +1 -1
- package/dist/vue.cjs +49 -31
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.d.cts +34 -1
- package/dist/vue.d.ts +34 -1
- package/dist/vue.js +49 -31
- package/dist/vue.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(this.__reverseDefinitions.has(e))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the constructor has already been used with this registry for the tag name ${this.__reverseDefinitions.get(e)}`);e.__localName=t,this.__definitions.set(t,{ctor:e,observedAttributes:e.observedAttributes??[]}),this.__reverseDefinitions.set(e,t),this.__pendingWhenDefineds.get(t)?.resolve(e),this.__pendingWhenDefineds.delete(t);}get(t){return this.__definitions.get(t)?.ctor}getName(t){return this.__reverseDefinitions.get(t)??null}upgrade(t){throw new Error("customElements.upgrade is not currently supported in SSR. Please file a bug if you need it.")}async whenDefined(t){let e=this.__definitions.get(t);if(e)return e.ctor;let r=this.__pendingWhenDefineds.get(t);return r||(r=
|
|
3
|
-
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,pe=/>/g,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,de=/"/g,ge=/^(?:script|style|textarea|title)$/i,Ht=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Ht(1),L=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ce=new WeakMap,I=N.createTreeWalker(N,129);function fe(i,t){if(!Bt(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}var or=(i,t)=>{let e=i.length-1,r=[],n,o=t===2?"<svg>":t===3?"<math>":"",s=et;for(let p=0;p<e;p++){let a=i[p],c,b,g=-1,S=0;for(;S<a.length&&(s.lastIndex=S,b=s.exec(a),b!==null);)S=s.lastIndex,s===et?b[1]==="!--"?s=ae:b[1]!==void 0?s=pe:b[2]!==void 0?(ge.test(b[2])&&(n=RegExp("</"+b[2],"g")),s=O):b[3]!==void 0&&(s=O):s===O?b[0]===">"?(s=n??et,g=-1):b[1]===void 0?g=-2:(g=s.lastIndex-b[2].length,c=b[1],s=b[3]===void 0?O:b[3]==='"'?de:le):s===de||s===le?s=O:s===ae||s===pe?s=et:(s=O,n=void 0);let _=s===O&&i[p+1].startsWith("/>")?" ":"";o+=s===et?a+ir:g>=0?(r.push(c),a.slice(0,g)+he+a.slice(g)+D+_):a+D+(g===-2?p:_);}return [fe(i,o+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},nt=class i{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let o=0,s=0,p=t.length-1,a=this.parts,[c,b]=or(t,e);if(this.el=i.createElement(c,r),I.currentNode=this.el.content,e===2||e===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes);}for(;(n=I.nextNode())!==null&&a.length<p;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(he)){let S=b[s++],_=n.getAttribute(g).split(D),U=/([.?@])?(.*)/.exec(S);a.push({type:1,index:o,name:U[2],strings:_,ctor:U[1]==="."?zt:U[1]==="?"?Ot:U[1]==="@"?It:F}),n.removeAttribute(g);}else g.startsWith(D)&&(a.push({type:6,index:o}),n.removeAttribute(g));if(ge.test(n.tagName)){let g=n.textContent.split(D),S=g.length-1;if(S>0){n.textContent=gt?gt.emptyScript:"";for(let _=0;_<S;_++)n.append(g[_],rt()),I.nextNode(),a.push({type:2,index:++o});n.append(g[S],rt());}}}else if(n.nodeType===8)if(n.data===ue)a.push({type:2,index:o});else {let g=-1;for(;(g=n.data.indexOf(D,g+1))!==-1;)a.push({type:7,index:o}),g+=D.length-1;}o++;}}static createElement(t,e){let r=N.createElement("template");return r.innerHTML=t,r}};function j(i,t,e=i,r){if(t===L)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,o=it(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(false),o===void 0?n=void 0:(n=new o(i),n._$AT(i,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=j(i,n._$AS(i,t.values),n,r)),t}var Dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,n=(t?.creationScope??N).importNode(e,true);I.currentNode=n;let o=I.nextNode(),s=0,p=0,a=r[0];for(;a!==void 0;){if(s===a.index){let c;a.type===2?c=new ot(o,o.nextSibling,this,t):a.type===1?c=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(c=new Nt(o,this,t)),this._$AV.push(c),a=r[++p];}s!==a?.index&&(o=I.nextNode(),s++);}return I.currentNode=N,n}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++;}},ot=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=j(this,t,e),it(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==L&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):nr(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==d&&it(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t;}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=nt.createElement(fe(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else {let o=new Dt(n,this),s=o.u(this.options);o.p(e),this.T(s),this._$AH=o;}}_$AC(t){let e=ce.get(t.strings);return e===void 0&&ce.set(t.strings,e=new nt(t)),e}k(t){Bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let o of t)n===e.length?e.push(r=new i(this.O(rt()),this.O(rt()),this,this.options)):r=e[n],r._$AI(o),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n);}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=oe(t).nextSibling;oe(t).remove(),t=r;}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t));}},F=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d;}_$AI(t,e=this,r,n){let o=this.strings,s=false;if(o===void 0)t=j(this,t,e,0),s=!it(t)||t!==this._$AH&&t!==L,s&&(this._$AH=t);else {let p=t,a,c;for(t=o[0],a=0;a<o.length-1;a++)c=j(this,p[r+a],e,a),c===L&&(c=this._$AH[a]),s||=!it(c)||c!==this._$AH[a],c===d?t=d:t!==d&&(t+=(c??"")+o[a+1]),this._$AH[a]=c;}s&&!n&&this.j(t);}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}},zt=class extends F{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===d?void 0:t;}},Ot=class extends F{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d);}},It=class extends F{constructor(t,e,r,n,o){super(t,e,r,n,o),this.type=5;}_$AI(t,e=this){if((t=j(this,t,e,0)??d)===L)return;let r=this._$AH,n=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==d&&(r===d||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}},Nt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r;}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t);}};var sr=ft.litHtmlPolyfillSupport;sr?.(nt,ot),(ft.litHtmlVersions??=[]).push("3.3.2");var me=(i,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let o=e?.renderBefore??null;r._$litPart$=n=new ot(t.insertBefore(rt(),o),o,void 0,e??{});}return n._$AI(i),n};var jt=globalThis,C=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=me(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return L}};C._$litElement$=true,C.finalized=true,jt.litElementHydrateSupport?.({LitElement:C});var ar=jt.litElementPolyfillSupport;ar?.({LitElement:C});(jt.litElementVersions??=[]).push("4.2.2");var mt=i=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(i,t);}):customElements.define(i,t);};var pr={attribute:true,type:String,converter:Q,reflect:false,hasChanged:ut},lr=(i=pr,t,e)=>{let{kind:r,metadata:n}=e,o=globalThis.litPropertyMetadata.get(n);if(o===void 0&&globalThis.litPropertyMetadata.set(n,o=new Map),r==="setter"&&((i=Object.create(i)).wrapped=true),o.set(e.name,i),r==="accessor"){let{name:s}=e;return {set(p){let a=t.get.call(this);t.set.call(this,p),this.requestUpdate(s,a,i,true,p);},init(p){return p!==void 0&&this.C(s,void 0,i,p),p}}}if(r==="setter"){let{name:s}=e;return function(p){let a=this[s];t.call(this,p),this.requestUpdate(s,a,i,true,p);}}throw Error("Unsupported decorator location: "+r)};function h(i){return (t,e)=>typeof e=="object"?lr(i,t,e):((r,n,o)=>{let s=n.hasOwnProperty(o);return n.constructor.createProperty(o,r),s?Object.getOwnPropertyDescriptor(n,o):void 0})(i,t,e)}function B(i){return h({...i,state:true,attribute:false})}var be={ATTRIBUTE:1},ve=i=>(...t)=>({_$litDirective$:i,values:t}),vt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ye="important",dr=" !"+ye,y=ve(class extends vt{constructor(i){if(super(i),i.type!==be.ATTRIBUTE||i.name!=="style"||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((t,e)=>{let r=i[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[t]){let{style:e}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(let r in t){let n=t[r];if(n!=null){this.ft.add(r);let o=typeof n=="string"&&n.endsWith(dr);r.includes("-")||o?e.setProperty(r,o?n.slice(0,-11):n,o?ye:""):e[r]=n;}}return L}});var G={"2xs":20,xs:24,sm:32,md:40,lg:48,xl:64,"2xl":80,"3xl":120},xe={online:"#30D158",away:"#FFD60A",busy:"#FF453A",offline:"#8E8E93",dnd:"#FF453A"},we={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)"},R={size:"md",variant:"circle",loading:"lazy",placeholder:"shimmer",borderWidth:2,borderColor:"#ffffff",placeholderColor:"#f3f4f6",shadow:"sm"};var W={circle:"9999px",rounded:"12px",squircle:"30%",square:"0px"},T={max:4,direction:"ltr",overlap:.3,size:"md",tooltipDelay:300,dropdownMaxHeight:280,animated:true};function $(...i){return i.filter(Boolean).join(" ")}function yt(i){return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(i)}function Se(i){return {"top-left":"np:top-0 np:left-0","top-right":"np:top-0 np:right-0","bottom-left":"np:bottom-0 np:left-0","bottom-right":"np:bottom-0 np:right-0"}[i]}function _e(i){return {"top-left":"np:-rotate-45 np:-translate-x-1/4 np:-translate-y-1/2","top-right":"np:rotate-45 np:translate-x-1/4 np:-translate-y-1/2","bottom-left":"np:rotate-45 np:-translate-x-1/4 np:translate-y-1/2","bottom-right":"np:-rotate-45 np:translate-x-1/4 np:translate-y-1/2"}[i]}function xt(i){let e=i.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[e.length-1][0]).toUpperCase()}function Ft(i){return Math.round(i*.38)}function Ee(i,t){let r=Math.max(t?18:10,Math.round(i*(t?.32:.22))),n=Math.round(r*.6);return {size:r,fontSize:n}}function $e(i,t){return Math.max(8,Math.round(i*.25))+(t-1)*2}function Ae(i,t){return typeof i=="string"?i:t&&i>t?`${t}+`:i.toString()}function Ce(i){return i.length===0?"transparent":i.length===1?i[0]:`conic-gradient(${i.map((e,r)=>{let n=r/i.length*360,o=(r+1)/i.length*360;return `${e} ${n}deg ${o}deg`}).join(", ")})`}function cr(i){let t=0;for(let e=0;e<i.length;e++){let r=i.charCodeAt(e);t=(t<<5)-t+r,t&=t;}return Math.abs(t)}function wt(i){let t=["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=cr(i)%t.length;return t[e]}function Re(i){return typeof i=="number"?i:G[i]??G[T.size]}function Te(i,t,e){let r=e?t-1:t;if(i<=r)return {visible:i,hidden:0,showCounter:false};let n=r-1,o=i-n;return {visible:n,hidden:o,showCounter:true}}function St(i,t,e,r,n){let o=n??t*(1-e);return i*o}function ke(i,t,e){return e==="ltr"?t-i:i+1}function Me(i,t,e,r){if(i===0)return 0;if(i===1)return t;let n=r??t*(1-e);return t+n*(i-1)}function Le(i){return i>99?"+99":`+${i}`}function Ue(i){return {circle:"np:rounded-full",rounded:"np:rounded-xl",squircle:"np:rounded-[30%]",square:"np:rounded-none"}[i]}function Pe(i,t){return {className:{1:"np:border",2:"np:border-2",3:"np:border-[3px]",4:"np:border-4"}[i],style:{borderColor:t,borderStyle:"solid"}}}function De(i,t){return t?{className:"",style:{background:t}}:i?i.includes("gradient")?{className:"",style:{background:i}}:{className:"",style:{backgroundColor:i}}:{className:"np:bg-gray-100"}}function ze(i){return {boxShadow:we[i]}}var hr={shimmer:`
|
|
1
|
+
var Ve=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var d=(n,t,e,r)=>{for(var i=r>1?void 0:r?qe(t,e):t,o=n.length-1,s;o>=0;o--)(s=n[o])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&Ve(t,e,i),i};var Wt="grasco-profile-picture-styles",at=false;function Vt(){if(at||typeof document>"u")return;if(document.getElementById(Wt)){at=true;return}if(document.querySelector('link[href*="profile-picture"][href$="styles.css"]')){at=true;return}let t=Ye();if(!t)return;let e=document.createElement("link");e.id=Wt,e.rel="stylesheet",e.href=t,document.head.appendChild(e),at=true;}function Ye(){if(typeof window<"u"&&window.__GRASCO_PROFILE_PICTURE_CSS__)return window.__GRASCO_PROFILE_PICTURE_CSS__;try{let t=import.meta.url;if(t)return `${t.substring(0,t.lastIndexOf("/")+1)}dist/styles.css`}catch{}let n=document.currentScript;if(n?.src){let t=new URL(n.src);return `${t.href.substring(0,t.href.lastIndexOf("/")+1)}dist/styles.css`}return null}var qt=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaActiveDescendantElement=null,this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBrailleLabel="",this.ariaBrailleRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColIndexText="",this.ariaColSpan="",this.ariaControlsElements=null,this.ariaCurrent="",this.ariaDescribedByElements=null,this.ariaDescription="",this.ariaDetailsElements=null,this.ariaDisabled="",this.ariaErrorMessageElements=null,this.ariaExpanded="",this.ariaFlowToElements=null,this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLabelledByElements=null,this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaOwnsElements=null,this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRelevant="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowIndexText="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=true,this.__host=t;}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),true}reportValidity(){return true}setFormValue(){}setValidity(){}};var C=function(n,t,e,r,i){if(typeof t=="function"?n!==t||true:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(n,e),e},w=function(n,t,e,r){if(typeof t=="function"?n!==t||!r:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?r:e==="a"?r.call(n):r?r.value:t.get(n)},H,pt,lt,q,$t,Y,dt,N,K,D,ct,Yt,Kt=n=>typeof n=="boolean"?n:n?.capture??false;var Ct=class{constructor(){this.__eventListeners=new Map,this.__captureEventListeners=new Map;}addEventListener(t,e,r){if(e==null)return;let i=Kt(r)?this.__captureEventListeners:this.__eventListeners,o=i.get(t);if(o===void 0)o=new Map,i.set(t,o);else if(o.has(e))return;let s=typeof r=="object"&&r?r:{};s.signal?.addEventListener("abort",()=>this.removeEventListener(t,e,r)),o.set(e,s??{});}removeEventListener(t,e,r){if(e==null)return;let i=Kt(r)?this.__captureEventListeners:this.__eventListeners,o=i.get(t);o!==void 0&&(o.delete(e),o.size||i.delete(t));}dispatchEvent(t){let e=[this],r=this.__eventTargetParent;if(t.composed)for(;r;)e.push(r),r=r.__eventTargetParent;else for(;r&&r!==this.__host;)e.push(r),r=r.__eventTargetParent;let i=false,o=false,s=0,p=null,a=null,u=null,m=t.stopPropagation,g=t.stopImmediatePropagation;Object.defineProperties(t,{target:{get(){return p??a},...f},srcElement:{get(){return t.target},...f},currentTarget:{get(){return u},...f},eventPhase:{get(){return s},...f},composedPath:{value:()=>e,...f},stopPropagation:{value:()=>{i=true,m.call(t);},...f},stopImmediatePropagation:{value:()=>{o=true,g.call(t);},...f}});let S=(x,k,V)=>{typeof x=="function"?x(t):typeof x?.handleEvent=="function"&&x.handleEvent(t),k.once&&V.delete(x);},_=()=>(u=null,s=0,!t.defaultPrevented),M=e.slice().reverse();p=!this.__host||!t.composed?this:null;let Gt=x=>{for(a=this;a.__host&&x.includes(a.__host);)a=a.__host;};for(let x of M){!p&&(!a||a===x.__host)&&Gt(M.slice(M.indexOf(x))),u=x,s=x===t.target?2:1;let k=x.__captureEventListeners.get(t.type);if(k){for(let[V,Et]of k)if(S(V,Et,k),o)return _()}if(i)return _()}let _t=t.bubbles?e:[this];a=null;for(let x of _t){!p&&(!a||x===a.__host)&&Gt(_t.slice(0,_t.indexOf(x)+1)),u=x,s=x===t.target?2:3;let k=x.__eventListeners.get(t.type);if(k){for(let[V,Et]of k)if(S(V,Et,k),o)return _()}if(i)return _()}return _()}},At=Ct;var f={__proto__:null};f.enumerable=true;Object.freeze(f);var Rt=(D=class{constructor(t,e={}){if(H.set(this,false),pt.set(this,false),lt.set(this,false),q.set(this,false),$t.set(this,Date.now()),Y.set(this,false),dt.set(this,void 0),N.set(this,void 0),K.set(this,void 0),this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,arguments.length===0)throw new Error("The type argument must be specified");if(typeof e!="object"||!e)throw new Error('The "options" argument must be an object');let{bubbles:r,cancelable:i,composed:o}=e;C(this,H,!!i),C(this,pt,!!r),C(this,lt,!!o),C(this,dt,`${t}`),C(this,N,null),C(this,K,false);}initEvent(t,e,r){throw new Error("Method not implemented.")}stopImmediatePropagation(){this.stopPropagation();}preventDefault(){C(this,q,true);}get target(){return w(this,N,"f")}get currentTarget(){return w(this,N,"f")}get srcElement(){return w(this,N,"f")}get type(){return w(this,dt,"f")}get cancelable(){return w(this,H,"f")}get defaultPrevented(){return w(this,H,"f")&&w(this,q,"f")}get timeStamp(){return w(this,$t,"f")}composedPath(){return w(this,K,"f")?[w(this,N,"f")]:[]}get returnValue(){return !w(this,H,"f")||!w(this,q,"f")}get bubbles(){return w(this,pt,"f")}get composed(){return w(this,lt,"f")}get eventPhase(){return w(this,K,"f")?D.AT_TARGET:D.NONE}get cancelBubble(){return w(this,Y,"f")}set cancelBubble(t){t&&C(this,Y,true);}stopPropagation(){C(this,Y,true);}get isTrusted(){return false}},H=new WeakMap,pt=new WeakMap,lt=new WeakMap,q=new WeakMap,$t=new WeakMap,Y=new WeakMap,dt=new WeakMap,N=new WeakMap,K=new WeakMap,D.NONE=0,D.CAPTURING_PHASE=1,D.AT_TARGET=2,D.BUBBLING_PHASE=3,D);Object.defineProperties(Rt.prototype,{initEvent:f,stopImmediatePropagation:f,preventDefault:f,target:f,currentTarget:f,srcElement:f,type:f,cancelable:f,defaultPrevented:f,timeStamp:f,composedPath:f,returnValue:f,bubbles:f,composed:f,eventPhase:f,cancelBubble:f,stopPropagation:f,isTrusted:f});var Jt=(Yt=class extends Rt{constructor(t,e={}){super(t,e),ct.set(this,void 0),C(this,ct,e?.detail??null);}initCustomEvent(t,e,r,i){throw new Error("Method not implemented.")}get detail(){return w(this,ct,"f")}},ct=new WeakMap,Yt);Object.defineProperties(Jt.prototype,{detail:f});var Tt=Rt,kt=Jt;var E;(E=class{constructor(){this.STYLE_RULE=1,this.CHARSET_RULE=2,this.IMPORT_RULE=3,this.MEDIA_RULE=4,this.FONT_FACE_RULE=5,this.PAGE_RULE=6,this.NAMESPACE_RULE=10,this.KEYFRAMES_RULE=7,this.KEYFRAME_RULE=8,this.SUPPORTS_RULE=12,this.COUNTER_STYLE_RULE=11,this.FONT_FEATURE_VALUES_RULE=14,this.__parentStyleSheet=null,this.cssText="";}get parentRule(){return null}get parentStyleSheet(){return this.__parentStyleSheet}get type(){return 0}},E.STYLE_RULE=1,E.CHARSET_RULE=2,E.IMPORT_RULE=3,E.MEDIA_RULE=4,E.FONT_FACE_RULE=5,E.PAGE_RULE=6,E.NAMESPACE_RULE=10,E.KEYFRAMES_RULE=7,E.KEYFRAME_RULE=8,E.SUPPORTS_RULE=12,E.COUNTER_STYLE_RULE=11,E.FONT_FEATURE_VALUES_RULE=14,E);globalThis.Event??=Tt;globalThis.CustomEvent??=kt;var Zt=new WeakMap,J=n=>{let t=Zt.get(n);return t===void 0&&Zt.set(n,t=new Map),t},Ke=class extends At{constructor(){super(...arguments),this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null;}get attributes(){return Array.from(J(this)).map(([t,e])=>({name:t,value:e}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}get localName(){return this.constructor.__localName}get tagName(){return this.localName?.toUpperCase()}setAttribute(t,e){J(this).set(t,String(e));}removeAttribute(t){J(this).delete(t);}toggleAttribute(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),false}else return e===void 0||e?(this.setAttribute(t,""),true):false;return true}hasAttribute(t){return J(this).has(t)}attachShadow(t){let e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new qt(this);return this.__internals=t,t}getAttribute(t){return J(this).get(t)??null}};var Je=class extends Ke{},Lt=Je;globalThis.litServerRoot??=Object.defineProperty(new Lt,"localName",{get(){return "lit-server-root"}});function Ze(){let n,t;return {promise:new Promise((r,i)=>{n=r,t=i;}),resolve:n,reject:t}}var It=class{constructor(){this.__definitions=new Map,this.__reverseDefinitions=new Map,this.__pendingWhenDefineds=new Map;}define(t,e){if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${t}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
|
|
2
|
+
Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(this.__reverseDefinitions.has(e))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the constructor has already been used with this registry for the tag name ${this.__reverseDefinitions.get(e)}`);e.__localName=t,this.__definitions.set(t,{ctor:e,observedAttributes:e.observedAttributes??[]}),this.__reverseDefinitions.set(e,t),this.__pendingWhenDefineds.get(t)?.resolve(e),this.__pendingWhenDefineds.delete(t);}get(t){return this.__definitions.get(t)?.ctor}getName(t){return this.__reverseDefinitions.get(t)??null}upgrade(t){throw new Error("customElements.upgrade is not currently supported in SSR. Please file a bug if you need it.")}async whenDefined(t){let e=this.__definitions.get(t);if(e)return e.ctor;let r=this.__pendingWhenDefineds.get(t);return r||(r=Ze(),this.__pendingWhenDefineds.set(t,r)),r.promise}},Xe=It;var Xt=new Xe;var Z=globalThis,ut=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,te=Symbol(),Qt=new WeakMap,ht=class{constructor(t,e,r){if(this._$cssResult$=true,r!==te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o,e=this.t;if(ut&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Qt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Qt.set(e,t));}return t}toString(){return this.cssText}},ee=n=>new ht(typeof n=="string"?n:n+"",void 0,te);var re=(n,t)=>{if(ut)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Z.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,n.appendChild(r);}},Ut=ut||Z.CSSStyleSheet===void 0?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ee(e)})(n):n;var{is:Qe,defineProperty:tr,getOwnPropertyDescriptor:er,getOwnPropertyNames:rr,getOwnPropertySymbols:nr,getPrototypeOf:ir}=Object,tt=globalThis;tt.customElements??=Xt;var ne=tt.trustedTypes,or=ne?ne.emptyScript:"",sr=tt.reactiveElementPolyfillSupport,X=(n,t)=>n,Q={toAttribute(n,t){switch(t){case Boolean:n=n?or:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n);}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n);}catch{e=null;}}return e}},gt=(n,t)=>!Qe(n,t),ie={attribute:true,type:String,converter:Q,reflect:false,useDefault:false,hasChanged:gt};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var I=class extends(globalThis.HTMLElement??Lt){static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ie){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&tr(this.prototype,t,i);}}static getPropertyDescriptor(t,e,r){let{get:i,set:o}=er(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s;}};return {get:i,set(s){let p=i?.call(this);o?.call(this,s),this.requestUpdate(t,p,r);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??ie}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;let t=ir(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(X("properties"))){let e=this.properties,r=[...rr(e),...nr(e)];for(let i of r)this.createProperty(i,e[i]);}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i);}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(Ut(i));}else t!==void 0&&e.push(Ut(t));return e}static _$Eu(t,e){let r=e.attribute;return r===false?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this));}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t);}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return re(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(t=>t.hostConnected?.());}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.());}attributeChangedCallback(t,e,r){this._$AK(t,r);}_$ET(t,e){let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===true){let o=(r.converter?.toAttribute!==void 0?r.converter:Q).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null;}}_$AK(t,e){let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=r.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Q;this._$Em=i;let p=s.fromAttribute(e,o.type);this[i]=p??this._$Ej?.get(i)??p,this._$Em=null;}}requestUpdate(t,e,r,i=false,o){if(t!==void 0){let s=this.constructor;if(i===false&&(o=this[t]),r??=s.getPropertyOptions(t),!((r.hasChanged??gt)(o,e)||r.useDefault&&r.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r);}this.isUpdatePending===false&&(this._$ES=this._$EP());}C(t,e,{useDefault:r,reflect:i,wrapped:o},s){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),o!==true||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),i===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(e){Promise.reject(e);}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0;}let r=this.constructor.elementProperties;if(r.size>0)for(let[i,o]of r){let{wrapped:s}=o,p=this[i];s!==true||this._$AL.has(i)||p===void 0||this.C(i,void 0,o,p);}}let t=false,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM();}catch(r){throw t=false,this._$EM(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM();}updated(t){}firstUpdated(t){}};I.elementStyles=[],I.shadowRootOptions={mode:"open"},I[X("elementProperties")]=new Map,I[X("finalized")]=new Map,sr?.({ReactiveElement:I}),(tt.reactiveElementVersions??=[]).push("2.1.2");var mt=globalThis,oe=n=>n,ft=mt.trustedTypes,se=ft?ft.createPolicy("lit-html",{createHTML:n=>n}):void 0,he="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,ue="?"+O,ar=`<${ue}>`,P=mt.document===void 0?{createTreeWalker:()=>({})}:document,rt=()=>P.createComment(""),nt=n=>n===null||typeof n!="object"&&typeof n!="function",Pt=Array.isArray,pr=n=>Pt(n)||typeof n?.[Symbol.iterator]=="function",Mt=`[
|
|
3
|
+
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,pe=/>/g,z=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,de=/"/g,ge=/^(?:script|style|textarea|title)$/i,Ht=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),b=Ht(1),L=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),ce=new WeakMap,B=P.createTreeWalker(P,129);function fe(n,t){if(!Pt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}var lr=(n,t)=>{let e=n.length-1,r=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=et;for(let p=0;p<e;p++){let a=n[p],u,m,g=-1,S=0;for(;S<a.length&&(s.lastIndex=S,m=s.exec(a),m!==null);)S=s.lastIndex,s===et?m[1]==="!--"?s=ae:m[1]!==void 0?s=pe:m[2]!==void 0?(ge.test(m[2])&&(i=RegExp("</"+m[2],"g")),s=z):m[3]!==void 0&&(s=z):s===z?m[0]===">"?(s=i??et,g=-1):m[1]===void 0?g=-2:(g=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?z:m[3]==='"'?de:le):s===de||s===le?s=z:s===ae||s===pe?s=et:(s=z,i=void 0);let _=s===z&&n[p+1].startsWith("/>")?" ":"";o+=s===et?a+ar:g>=0?(r.push(u),a.slice(0,g)+he+a.slice(g)+O+_):a+O+(g===-2?p:_);}return [fe(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},it=class n{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let o=0,s=0,p=t.length-1,a=this.parts,[u,m]=lr(t,e);if(this.el=n.createElement(u,r),B.currentNode=this.el.content,e===2||e===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes);}for(;(i=B.nextNode())!==null&&a.length<p;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(he)){let S=m[s++],_=i.getAttribute(g).split(O),M=/([.?@])?(.*)/.exec(S);a.push({type:1,index:o,name:M[2],strings:_,ctor:M[1]==="."?Ot:M[1]==="?"?Nt:M[1]==="@"?zt:j}),i.removeAttribute(g);}else g.startsWith(O)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(ge.test(i.tagName)){let g=i.textContent.split(O),S=g.length-1;if(S>0){i.textContent=ft?ft.emptyScript:"";for(let _=0;_<S;_++)i.append(g[_],rt()),B.nextNode(),a.push({type:2,index:++o});i.append(g[S],rt());}}}else if(i.nodeType===8)if(i.data===ue)a.push({type:2,index:o});else {let g=-1;for(;(g=i.data.indexOf(O,g+1))!==-1;)a.push({type:7,index:o}),g+=O.length-1;}o++;}}static createElement(t,e){let r=P.createElement("template");return r.innerHTML=t,r}};function F(n,t,e=n,r){if(t===L)return t;let i=r!==void 0?e._$Co?.[r]:e._$Cl,o=nt(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(false),o===void 0?i=void 0:(i=new o(n),i._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=i:e._$Cl=i),i!==void 0&&(t=F(n,i._$AS(n,t.values),i,r)),t}var Dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,i=(t?.creationScope??P).importNode(e,true);B.currentNode=i;let o=B.nextNode(),s=0,p=0,a=r[0];for(;a!==void 0;){if(s===a.index){let u;a.type===2?u=new ot(o,o.nextSibling,this,t):a.type===1?u=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(u=new Bt(o,this,t)),this._$AV.push(u),a=r[++p];}s!==a?.index&&(o=B.nextNode(),s++);}return B.currentNode=P,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++;}},ot=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),nt(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==L&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pr(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==c&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t;}$(t){let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=it.createElement(fe(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(e);else {let o=new Dt(i,this),s=o.u(this.options);o.p(e),this.T(s),this._$AH=o;}}_$AC(t){let e=ce.get(t.strings);return e===void 0&&ce.set(t.strings,e=new it(t)),e}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let o of t)i===e.length?e.push(r=new n(this.O(rt()),this.O(rt()),this,this.options)):r=e[i],r._$AI(o),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i);}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=oe(t).nextSibling;oe(t).remove(),t=r;}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t));}},j=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c;}_$AI(t,e=this,r,i){let o=this.strings,s=false;if(o===void 0)t=F(this,t,e,0),s=!nt(t)||t!==this._$AH&&t!==L,s&&(this._$AH=t);else {let p=t,a,u;for(t=o[0],a=0;a<o.length-1;a++)u=F(this,p[r+a],e,a),u===L&&(u=this._$AH[a]),s||=!nt(u)||u!==this._$AH[a],u===c?t=c:t!==c&&(t+=(u??"")+o[a+1]),this._$AH[a]=u;}s&&!i&&this.j(t);}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}},Ot=class extends j{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===c?void 0:t;}},Nt=class extends j{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c);}},zt=class extends j{constructor(t,e,r,i,o){super(t,e,r,i,o),this.type=5;}_$AI(t,e=this){if((t=F(this,t,e,0)??c)===L)return;let r=this._$AH,i=t===c&&r!==c||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==c&&(r===c||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}},Bt=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r;}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t);}};var dr=mt.litHtmlPolyfillSupport;dr?.(it,ot),(mt.litHtmlVersions??=[]).push("3.3.2");var me=(n,t,e)=>{let r=e?.renderBefore??t,i=r._$litPart$;if(i===void 0){let o=e?.renderBefore??null;r._$litPart$=i=new ot(t.insertBefore(rt(),o),o,void 0,e??{});}return i._$AI(n),i};var Ft=globalThis,A=class extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=me(e,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return L}};A._$litElement$=true,A.finalized=true,Ft.litElementHydrateSupport?.({LitElement:A});var cr=Ft.litElementPolyfillSupport;cr?.({LitElement:A});(Ft.litElementVersions??=[]).push("4.2.2");var bt=n=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(n,t);}):customElements.define(n,t);};var hr={attribute:true,type:String,converter:Q,reflect:false,hasChanged:gt},ur=(n=hr,t,e)=>{let{kind:r,metadata:i}=e,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),r==="setter"&&((n=Object.create(n)).wrapped=true),o.set(e.name,n),r==="accessor"){let{name:s}=e;return {set(p){let a=t.get.call(this);t.set.call(this,p),this.requestUpdate(s,a,n,true,p);},init(p){return p!==void 0&&this.C(s,void 0,n,p),p}}}if(r==="setter"){let{name:s}=e;return function(p){let a=this[s];t.call(this,p),this.requestUpdate(s,a,n,true,p);}}throw Error("Unsupported decorator location: "+r)};function h(n){return (t,e)=>typeof e=="object"?ur(n,t,e):((r,i,o)=>{let s=i.hasOwnProperty(o);return i.constructor.createProperty(o,r),s?Object.getOwnPropertyDescriptor(i,o):void 0})(n,t,e)}function U(n){return h({...n,state:true,attribute:false})}var be={ATTRIBUTE:1},ye=n=>(...t)=>({_$litDirective$:n,values:t}),xt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var xe="important",gr=" !"+xe,y=ye(class extends xt{constructor(n){if(super(n),n.type!==be.ATTRIBUTE||n.name!=="style"||n.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((t,e)=>{let r=n[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(n,[t]){let{style:e}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(let r in t){let i=t[r];if(i!=null){this.ft.add(r);let o=typeof i=="string"&&i.endsWith(gr);r.includes("-")||o?e.setProperty(r,o?i.slice(0,-11):i,o?xe:""):e[r]=i;}}return L}});var G={"2xs":20,xs:24,sm:32,md:40,lg:48,xl:64,"2xl":80,"3xl":120},ve={online:"#30D158",away:"#FFD60A",busy:"#FF453A",offline:"#8E8E93",dnd:"#FF453A"},we={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)"},R={size:"md",variant:"circle",loading:"lazy",placeholder:"shimmer",borderWidth:2,borderColor:"#ffffff",placeholderColor:"#f3f4f6",shadow:"sm"};var W={circle:"9999px",rounded:"12px",squircle:"30%",square:"0px"},T={max:4,direction:"ltr",overlap:.3,size:"md",tooltipDelay:300,dropdownMaxHeight:280,animated:true};function $(...n){return n.filter(Boolean).join(" ")}function st(n){return /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(n)}function Se(n){return {"top-left":"np:top-0 np:left-0","top-right":"np:top-0 np:right-0","bottom-left":"np:bottom-0 np:left-0","bottom-right":"np:bottom-0 np:right-0"}[n]}function _e(n){return {"top-left":"np:-rotate-45 np:-translate-x-1/4 np:-translate-y-1/2","top-right":"np:rotate-45 np:translate-x-1/4 np:-translate-y-1/2","bottom-left":"np:rotate-45 np:-translate-x-1/4 np:translate-y-1/2","bottom-right":"np:-rotate-45 np:translate-x-1/4 np:translate-y-1/2"}[n]}function vt(n){let e=n.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[e.length-1][0]).toUpperCase()}function jt(n){return Math.round(n*.38)}function Ee(n,t){let r=Math.max(t?18:10,Math.round(n*(t?.32:.22))),i=Math.round(r*.6);return {size:r,fontSize:i}}function $e(n,t){return Math.max(8,Math.round(n*.25))+(t-1)*2}function Ce(n,t){return typeof n=="string"?n:t&&n>t?`${t}+`:n.toString()}function Ae(n){return n.length===0?"transparent":n.length===1?n[0]:`conic-gradient(${n.map((e,r)=>{let i=r/n.length*360,o=(r+1)/n.length*360;return `${e} ${i}deg ${o}deg`}).join(", ")})`}function fr(n){let t=0;for(let e=0;e<n.length;e++){let r=n.charCodeAt(e);t=(t<<5)-t+r,t&=t;}return Math.abs(t)}function Re(n,t,e){let i=Math.max(0,Math.min(100,n))/100*360;return `conic-gradient(from 270deg, ${t} 0deg ${i}deg, ${e} ${i}deg 360deg)`}function wt(n){let t=["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=fr(n)%t.length;return t[e]}function Te(n){return typeof n=="number"?n:G[n]??G[T.size]}function ke(n,t,e){let r=e?t-1:t;if(n<=r)return {visible:n,hidden:0,showCounter:false};let i=r-1,o=n-i;return {visible:i,hidden:o,showCounter:true}}function St(n,t,e,r,i){let o=i??t*(1-e);return n*o}function Ie(n,t,e){return e==="ltr"?t-n:n+1}function Le(n,t,e,r){if(n===0)return 0;if(n===1)return t;let i=r??t*(1-e);return t+i*(n-1)}function Ue(n){return n>99?"+99":`+${n}`}function Me(n){return n<=80?"80":n<=120?"120":n<=240?"240":n<=480?"480":"960"}function De(n){if(!(n&&st(n)))return "light";let t=n.replace("#","");t.length===3&&(t=t.split("").map(s=>s+s).join(""));let e=Number.parseInt(t.slice(0,2),16),r=Number.parseInt(t.slice(2,4),16),i=Number.parseInt(t.slice(4,6),16);return (.299*e+.587*r+.114*i)/255>.5?"light":"dark"}function Oe(n,t,e,r,i){let o=n.endsWith("/")?n.slice(0,-1):n,s=`${t}_${e}_${r}.webp`;return `${o}/api/profile-picture/cdn/${s}?hostname=${i}`}function Ne(n){return {circle:"np:rounded-full",rounded:"np:rounded-xl",squircle:"np:rounded-[30%]",square:"np:rounded-none"}[n]}function ze(n,t){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"}[n],style:{borderColor:t,borderStyle:"solid"}}}function Be(n,t){return t?{className:"",style:{background:t}}:n?n.includes("gradient")?{className:"",style:{background:n}}:{className:"",style:{backgroundColor:n}}:{className:"",style:{backgroundColor:"#e7e7e7"}}}function Pe(n){return {boxShadow:we[n]}}var mr={shimmer:`
|
|
5
5
|
@keyframes pp-shimmer {
|
|
6
6
|
0% { transform: translateX(-100%); }
|
|
7
7
|
100% { transform: translateX(100%); }
|
|
@@ -39,8 +39,8 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
39
39
|
0% { transform: scale(0.8); opacity: 0; }
|
|
40
40
|
50% { transform: scale(1.05); }
|
|
41
41
|
100% { transform: scale(1); opacity: 1; }
|
|
42
|
-
}`},
|
|
43
|
-
`),
|
|
42
|
+
}`},br=Object.values(mr).join(`
|
|
43
|
+
`),yr=`
|
|
44
44
|
/* Profile Picture Component Styles */
|
|
45
45
|
.pp-container {
|
|
46
46
|
--pp-transition-duration: 200ms;
|
|
@@ -163,7 +163,18 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
163
163
|
line-height: 1;
|
|
164
164
|
animation: pp-badge-bounce 0.4s var(--pp-spring-timing);
|
|
165
165
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
|
|
166
|
-
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pp-badge-with-icon {
|
|
169
|
+
gap: 4px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pp-badge-icon {
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
line-height: 1;
|
|
177
|
+
flex-shrink: 0;
|
|
167
178
|
}
|
|
168
179
|
|
|
169
180
|
.pp-badge-pulse {
|
|
@@ -204,12 +215,18 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
204
215
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
205
216
|
-webkit-mask-composite: xor;
|
|
206
217
|
mask-composite: exclude;
|
|
218
|
+
transition: background 0.3s ease;
|
|
207
219
|
}
|
|
208
220
|
|
|
209
221
|
.pp-ring-animated {
|
|
210
222
|
animation: pp-ring-rotate 3s linear infinite;
|
|
211
223
|
}
|
|
212
224
|
|
|
225
|
+
.pp-ring-progress {
|
|
226
|
+
/* Progress rings should not animate rotation */
|
|
227
|
+
animation: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
213
230
|
/* Presence indicator */
|
|
214
231
|
.pp-presence {
|
|
215
232
|
position: absolute;
|
|
@@ -245,8 +262,8 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
245
262
|
transition: none !important;
|
|
246
263
|
}
|
|
247
264
|
}
|
|
248
|
-
`,
|
|
249
|
-
${
|
|
265
|
+
`,He=`${br}
|
|
266
|
+
${yr}`,Fe=`
|
|
250
267
|
@keyframes np-shimmer {
|
|
251
268
|
0% { background-position: -200% 0; }
|
|
252
269
|
100% { background-position: 200% 0; }
|
|
@@ -256,7 +273,7 @@ ${gr}`,Ie=`
|
|
|
256
273
|
background-size: 200% 100%;
|
|
257
274
|
animation: np-shimmer 1.5s infinite;
|
|
258
275
|
}
|
|
259
|
-
`;function
|
|
276
|
+
`;function je(n,t=.3){if(st(n)){let e=Number.parseInt(n.slice(1,3),16),r=Number.parseInt(n.slice(3,5),16),i=Number.parseInt(n.slice(5,7),16);return `0 0 20px 0 rgba(${e}, ${r}, ${i}, ${t})`}return `0 0 20px 0 ${n}`}var xr=`
|
|
260
277
|
@keyframes ppg-tooltip-in {
|
|
261
278
|
from {
|
|
262
279
|
opacity: 0;
|
|
@@ -287,7 +304,7 @@ ${gr}`,Ie=`
|
|
|
287
304
|
transform: translateY(-4px) scale(1.08);
|
|
288
305
|
}
|
|
289
306
|
}
|
|
290
|
-
`,
|
|
307
|
+
`,vr=`
|
|
291
308
|
/* Profile Picture Group Container */
|
|
292
309
|
.ppg-container {
|
|
293
310
|
--ppg-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -638,26 +655,26 @@ ${gr}`,Ie=`
|
|
|
638
655
|
border-color: rgba(255, 255, 255, 0.1);
|
|
639
656
|
}
|
|
640
657
|
}
|
|
641
|
-
`,
|
|
642
|
-
${
|
|
643
|
-
${this.placeholder==="shimmer"?
|
|
658
|
+
`,Ge=`${xr}
|
|
659
|
+
${vr}`;var l=class extends A{constructor(){super(...arguments);this.src="";this.alt="";this.size=R.size;this.variant=R.variant;this.shadow=R.shadow;this.border=false;this.borderWidth=R.borderWidth;this.borderColor=R.borderColor;this.rotation=0;this.loading=R.loading;this.placeholder=R.placeholder;this.placeholderColor=R.placeholderColor;this.isLoaded=false;this.hasError=false;this.cdnLoadFailed=false;this.previousSrc="";this.RETRY_DELAY_MS=3e4;}static setCdnBaseUrl(e){l.cdnBaseUrl=e,l.instances.forEach(r=>{r.extCustomerId&&!r.cdnImageUrl&&(r.cdnLoadFailed=false,r.retryTimeoutId&&(clearTimeout(r.retryTimeoutId),r.retryTimeoutId=void 0),r.previousExtCustomerId||(r.previousExtCustomerId=r.extCustomerId),r.loadCdnImage());});}static getCdnBaseUrl(){return l.cdnBaseUrl}createRenderRoot(){return l.injectStylesOnce(),this}static injectStylesOnce(){if(l.stylesInjected||typeof document>"u")return;let e=document.createElement("style");e.textContent=He,document.head.appendChild(e),l.stylesInjected=true;}get pixelSize(){let e=this.size;return typeof e=="number"?e:G[e]??G[R.size]}connectedCallback(){super.connectedCallback(),l.instances.add(this);}disconnectedCallback(){super.disconnectedCallback(),l.instances.delete(this),this.retryTimeoutId&&(clearTimeout(this.retryTimeoutId),this.retryTimeoutId=void 0);}firstUpdated(){this.extCustomerId&&l.cdnBaseUrl&&(this.previousExtCustomerId=this.extCustomerId,this.loadCdnImage());}updated(e){super.updated(e),this.extCustomerId&&l.cdnBaseUrl&&!this.cdnImageUrl&&(this.cdnLoadFailed||!this.previousExtCustomerId)&&(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),(e.has("extCustomerId")||e.has("size")||e.has("bgColor"))&&this.extCustomerId!==this.previousExtCustomerId&&(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}));}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&&l.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&&l.cdnBaseUrl)){this.cdnLoadFailed=true;return}let e=Me(this.pixelSize),r=De(this.bgColor),i=typeof window<"u"?window.location.hostname:"localhost";this.cdnImageUrl=Oe(l.cdnBaseUrl,this.extCustomerId,e,r,i);}getContainerStyles(){let e=Be(this.bgColor,this.bgGradient),r=this.border?ze(this.borderWidth,this.borderColor):null,i=Pe(this.shadow),o={};if(this.glow){let p=this.glow.color??this.borderColor??"#6366f1";o={"--pp-glow-color":p,boxShadow:je(p,this.glow.intensity??.3)};}let s=this.interactive?.hoverable||this.interactive?.pressable;return {classes:$("pp-container",Ne(this.variant),e.className,r?.className,s&&"pp-interactive",this.glow?.animate&&"pp-glow"),styles:{width:`${this.pixelSize}px`,height:`${this.pixelSize}px`,borderRadius:W[this.variant],...e.style,...r?.style,...i,...o,cursor:this.interactive?.cursor??(s?"pointer":"default"),transform:this.rotation?`rotate(${this.rotation}deg)`:void 0}}}renderPlaceholder(){if(this.isLoaded||this.placeholder==="none")return c;let e={shimmer:"pp-shimmer",pulse:"pp-pulse",skeleton:"pp-skeleton",blur:"",none:""}[this.placeholder];return b`
|
|
660
|
+
${this.placeholder==="shimmer"?b`<style>${Fe}</style>`:c}
|
|
644
661
|
<div
|
|
645
662
|
class=${$("np:absolute np:inset-0",e)}
|
|
646
663
|
style=${y({backgroundColor:this.placeholderColor,borderRadius:"inherit"})}>
|
|
647
664
|
</div>
|
|
648
|
-
`}renderFallback(){if(this.fallback)return
|
|
665
|
+
`}renderFallback(){if(this.fallback)return b`
|
|
649
666
|
<span
|
|
650
667
|
class="pp-fallback"
|
|
651
|
-
style=${y({fontSize:`${
|
|
668
|
+
style=${y({fontSize:`${jt(this.pixelSize)}px`})}>
|
|
652
669
|
${this.fallback}
|
|
653
670
|
</span>
|
|
654
|
-
`;if(this.alt){let r=wt(this.alt);return
|
|
671
|
+
`;if(this.alt){let r=wt(this.alt);return b`
|
|
655
672
|
<div
|
|
656
673
|
class="pp-fallback np:absolute np:inset-0"
|
|
657
|
-
style=${y({background:this.bgColor??r,fontSize:`${
|
|
658
|
-
${
|
|
674
|
+
style=${y({background:this.bgColor??r,fontSize:`${jt(this.pixelSize)}px`})}>
|
|
675
|
+
${vt(this.alt)}
|
|
659
676
|
</div>
|
|
660
|
-
`}let e=this.pixelSize*.5;return
|
|
677
|
+
`}let e=this.pixelSize*.5;return b`
|
|
661
678
|
<svg
|
|
662
679
|
class="pp-fallback-icon"
|
|
663
680
|
style="width: ${e}px; height: ${e}px;"
|
|
@@ -665,9 +682,9 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
665
682
|
viewBox="0 0 24 24">
|
|
666
683
|
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
|
|
667
684
|
</svg>
|
|
668
|
-
`}renderImage(){return this.
|
|
685
|
+
`}renderImage(){let e=!!(this.extCustomerId&&l.cdnBaseUrl),r;return this.cdnImageUrl?r=this.cdnImageUrl:(!e||this.cdnLoadFailed)&&(r=this.src),this.hasError||!r?this.renderFallback():b`
|
|
669
686
|
<img
|
|
670
|
-
src=${
|
|
687
|
+
src=${r}
|
|
671
688
|
alt=${this.alt}
|
|
672
689
|
loading=${this.loading}
|
|
673
690
|
decoding="async"
|
|
@@ -675,41 +692,42 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
675
692
|
@error=${this.handleError}
|
|
676
693
|
class=${$("pp-image",this.isLoaded?"pp-image-loaded":"pp-image-loading")}
|
|
677
694
|
draggable="false" />
|
|
678
|
-
`}renderRing(){if(!this.ring?.show)return
|
|
695
|
+
`}renderRing(){if(!this.ring?.show)return c;let e=this.ring.width??3,r=this.ring.gap??3,i=e+r,o,s=this.ring.progress!==void 0;if(s){let p=this.ring.progress??0,a=this.ring.color??"#30D158",u=this.ring.emptyColor??"#8E8E93";o=Re(p,a,u);}else this.ring.gradient&&this.ring.gradient.length>0?o=Ae(this.ring.gradient):o=this.ring.color??"linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888)";return b`
|
|
679
696
|
<div
|
|
680
|
-
class=${$("pp-ring",this.ring.animate&&"pp-ring-animated")}
|
|
681
|
-
style=${y({inset:`-${
|
|
697
|
+
class=${$("pp-ring",this.ring.animate&&!s&&"pp-ring-animated",s&&"pp-ring-progress")}
|
|
698
|
+
style=${y({inset:`-${i}px`,padding:`${e}px`,background:o,borderRadius:W[this.variant]})}>
|
|
682
699
|
</div>
|
|
683
|
-
`}renderPresence(){if(!this.presence)return
|
|
700
|
+
`}renderPresence(){if(!this.presence)return c;let e=this.presence.thickness??2,r=$e(this.pixelSize,e),i=ve[this.presence.status],o=Math.max(0,this.pixelSize*.02);return b`
|
|
684
701
|
<div
|
|
685
702
|
class=${$("pp-presence",this.presence.animate&&"pp-presence-animated")}
|
|
686
|
-
style=${y({width:`${r}px`,height:`${r}px`,backgroundColor:
|
|
703
|
+
style=${y({width:`${r}px`,height:`${r}px`,backgroundColor:i,bottom:`${o}px`,right:`${o}px`,color:i})}
|
|
687
704
|
title=${this.presence.status}>
|
|
688
705
|
</div>
|
|
689
|
-
`}renderBadge(){if(!this.badge)return
|
|
706
|
+
`}renderBadge(){if(!this.badge)return c;let e=this.badge.position??"bottom-right",r=this.badge.content!==void 0,i=this.badge.icon!==void 0,o=r||i,{size:s,fontSize:p}=Ee(this.pixelSize,o),a=this.badge.bgColor??"#22c55e",u=this.badge.color??"#ffffff",m=r&&this.badge.content!==void 0?Ce(this.badge.content,this.badge.max):null,g=i?this.badge.icon:null,S=p*.9,_={"top-left":{top:"-4px",left:"-4px"},"top-right":{top:"-4px",right:"-4px"},"bottom-left":{bottom:"-4px",left:"-4px"},"bottom-right":{bottom:"-4px",right:"-4px"}};return b`
|
|
690
707
|
<div
|
|
691
|
-
class=${$("pp-badge",this.badge.pulse&&"pp-badge-pulse",this.badge.glow&&"pp-badge-glow")}
|
|
692
|
-
style=${y({width:
|
|
693
|
-
${
|
|
708
|
+
class=${$("pp-badge",this.badge.pulse&&"pp-badge-pulse",this.badge.glow&&"pp-badge-glow",i&&"pp-badge-with-icon")}
|
|
709
|
+
style=${y({width:o?"auto":`${s}px`,minWidth:`${s}px`,height:`${s}px`,padding:o?"0 6px":"0",fontSize:`${p}px`,backgroundColor:a,color:u,"--pp-badge-glow-color":a,gap:i&&r?"4px":"0",..._[e]})}>
|
|
710
|
+
${g?b`<span class="pp-badge-icon" style=${y({fontSize:`${S}px`})}>${g}</span>`:c}
|
|
711
|
+
${m??c}
|
|
694
712
|
</div>
|
|
695
|
-
`}renderRibbon(){if(!this.ribbon)return
|
|
713
|
+
`}renderRibbon(){if(!this.ribbon)return c;let e=this.ribbon.position??"top-right",r=this.ribbon.bgColor??"#ef4444",i=this.ribbon.color??"#ffffff",o=st(r)?{backgroundColor:r}:{background:r},s={color:i},p=this.pixelSize*.9,a=this.pixelSize*.4,u=Math.max(8,this.pixelSize*.11);return b`
|
|
696
714
|
<div
|
|
697
715
|
class=${$("pp-ribbon-container",Se(e))}
|
|
698
716
|
style=${y({width:`${p}px`,height:`${a}px`})}>
|
|
699
717
|
<div
|
|
700
718
|
class=${$("pp-ribbon np:origin-center np:transform",_e(e))}
|
|
701
|
-
style=${y({fontSize:`${
|
|
702
|
-
${this.ribbon.icon?
|
|
719
|
+
style=${y({fontSize:`${u}px`,padding:`${u*.3}px 0`,...o,...s})}>
|
|
720
|
+
${this.ribbon.icon?b`<span style="margin-right: 2px">${this.ribbon.icon}</span>`:c}
|
|
703
721
|
${this.ribbon.text}
|
|
704
722
|
</div>
|
|
705
723
|
</div>
|
|
706
|
-
`}render(){let e=this.getContainerStyles(),r=this.interactive?.focusable||this.interactive?.pressable?0:void 0;return
|
|
724
|
+
`}render(){let e=this.getContainerStyles(),r=this.interactive?.focusable||this.interactive?.pressable?0:void 0;return b`
|
|
707
725
|
<div
|
|
708
726
|
class=${e.classes}
|
|
709
727
|
style=${y(e.styles)}
|
|
710
|
-
tabindex=${r??
|
|
711
|
-
role=${this.interactive?.pressable?"button":
|
|
712
|
-
aria-label=${this.alt||
|
|
728
|
+
tabindex=${r??c}
|
|
729
|
+
role=${this.interactive?.pressable?"button":c}
|
|
730
|
+
aria-label=${this.alt||c}
|
|
713
731
|
data-profile-picture>
|
|
714
732
|
|
|
715
733
|
<!-- Ring Effect (behind everything) -->
|
|
@@ -735,7 +753,7 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
735
753
|
<!-- Presence Indicator -->
|
|
736
754
|
${this.renderPresence()}
|
|
737
755
|
</div>
|
|
738
|
-
`}};
|
|
756
|
+
`}};l.stylesInjected=false,l.cdnBaseUrl="",l.instances=new Set,d([h({type:String})],l.prototype,"src",2),d([h({type:String})],l.prototype,"alt",2),d([h({type:String,attribute:"ext-customer-id"})],l.prototype,"extCustomerId",2),d([h({type:String})],l.prototype,"size",2),d([h({type:String})],l.prototype,"variant",2),d([h({type:String})],l.prototype,"shadow",2),d([h({type:Boolean})],l.prototype,"border",2),d([h({type:Number,attribute:"border-width"})],l.prototype,"borderWidth",2),d([h({type:String,attribute:"border-color"})],l.prototype,"borderColor",2),d([h({type:Number})],l.prototype,"rotation",2),d([h({type:String,attribute:"bg-color"})],l.prototype,"bgColor",2),d([h({type:String,attribute:"bg-gradient"})],l.prototype,"bgGradient",2),d([h({type:Object,attribute:"ring",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],l.prototype,"ring",2),d([h({type:Object,attribute:"presence",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],l.prototype,"presence",2),d([h({type:Object,attribute:"glow",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],l.prototype,"glow",2),d([h({type:Object,attribute:"ribbon",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],l.prototype,"ribbon",2),d([h({type:Object,attribute:"badge",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],l.prototype,"badge",2),d([h({type:String})],l.prototype,"loading",2),d([h({type:String})],l.prototype,"placeholder",2),d([h({type:String,attribute:"placeholder-color"})],l.prototype,"placeholderColor",2),d([h({type:String})],l.prototype,"fallback",2),d([h({type:Object,attribute:"interactive",converter:{fromAttribute:e=>{if(e)try{return JSON.parse(e)}catch{return}},toAttribute:e=>e?JSON.stringify(e):null}})],l.prototype,"interactive",2),d([U()],l.prototype,"isLoaded",2),d([U()],l.prototype,"hasError",2),d([U()],l.prototype,"cdnImageUrl",2),d([U()],l.prototype,"cdnLoadFailed",2),l=d([bt("profile-picture")],l);var We=false;function wr(){if(We||typeof document>"u")return;let n=document.createElement("style");n.textContent=Ge,document.head.appendChild(n),We=true;}var v=class extends A{constructor(){super(...arguments);this.max=T.max;this.direction=T.direction;this.overlap=T.overlap;this.size=T.size;this.showAddButton=false;this.addButtonLabel="Add user";this.animated=T.animated;this.rotationAmount=0;this.users=[];this.dropdownOpen=false;this.tooltipData=null;this.tooltipTimeout=null;this.slotObserver=null;this.handleBackdropClick=()=>{this.dropdownOpen=false;};}createRenderRoot(){return wr(),this}get pixelSize(){return Te(this.size)}get tooltipEnabled(){return this.tooltip?.enabled!==false}get tooltipPosition(){return this.tooltip?.position??"top"}get tooltipDelay(){return this.tooltip?.delay??T.tooltipDelay}get dropdownMaxHeight(){return this.dropdown?.maxHeight??T.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();}setupSlotObserver(){this.slotObserver=new MutationObserver(()=>{this.updateUsers();}),this.slotObserver.observe(this,{childList:true,subtree:true,attributes:true,attributeFilter:["src","alt","data-user-id","data-status","variant","shadow","border","border-width","border-color","bg-color","bg-gradient"]});}updateUsers(){let e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="profile-picture"&&r.getAttribute("slot")!=="internal");this.users=e.map((r,i)=>{let o=r.getAttribute("border-width"),s=o?Number.parseInt(o,10):void 0;return {id:r.getAttribute("data-user-id")??void 0,name:r.getAttribute("alt")??`User ${i+1}`,src:r.getAttribute("src")??void 0,status:r.getAttribute("data-status")??void 0,element:r,index:i,variant:r.getAttribute("variant")??void 0,shadow:r.getAttribute("shadow")??void 0,border:r.hasAttribute("border"),borderWidth:s,borderColor:r.getAttribute("border-color")??void 0,bgColor:r.getAttribute("bg-color")??void 0,bgGradient:r.getAttribute("bg-gradient")??void 0}});for(let r of this.users)r.element&&(r.element.style.display="none");}handleAvatarClick(e){this.dispatchEvent(new CustomEvent("avatar-click",{detail:{user:e},bubbles:true,composed:true}));}handleAvatarHover(e,r){if(!this.tooltipEnabled)return;this.clearTooltipTimeout();let i=r.currentTarget;this.tooltipTimeout=window.setTimeout(()=>{this.tooltipData={user:e,rect:i.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.dispatchEvent(new CustomEvent("counter-click",{detail:{hiddenUsers:e,open:this.dropdownOpen},bubbles:true,composed:true}));}handleDropdownItemClick(e){this.dropdownOpen=false,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,r){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),r());}renderAvatar(e,r,i){let o=St(r,this.pixelSize,this.overlap,this.direction,this.spacing),s=Ie(r,i,this.direction),p=e.variant??"circle",a=e.shadow??"none",u=this.rotationAmount?r%2===0?-this.rotationAmount:this.rotationAmount:0;return b`
|
|
739
757
|
<div
|
|
740
758
|
class="ppg-avatar-wrapper"
|
|
741
759
|
style=${y({left:`${o}px`,zIndex:String(s),width:`${this.pixelSize}px`,height:`${this.pixelSize}px`})}
|
|
@@ -743,19 +761,20 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
743
761
|
role="button"
|
|
744
762
|
aria-label=${e.name}
|
|
745
763
|
@click=${()=>this.handleAvatarClick(e)}
|
|
746
|
-
@mouseenter=${
|
|
764
|
+
@mouseenter=${m=>this.handleAvatarHover(e,m)}
|
|
747
765
|
@mouseleave=${this.handleAvatarLeave}
|
|
748
|
-
@keydown=${
|
|
766
|
+
@keydown=${m=>this.handleKeyDown(m,()=>this.handleAvatarClick(e))}
|
|
749
767
|
>
|
|
750
|
-
${this.renderProfilePicture(e,p,a)}
|
|
768
|
+
${this.renderProfilePicture(e,p,a,u)}
|
|
751
769
|
</div>
|
|
752
|
-
`}renderProfilePicture(e,r,
|
|
770
|
+
`}renderProfilePicture(e,r,i,o){return b`
|
|
753
771
|
<profile-picture
|
|
754
772
|
.src=${e.src??""}
|
|
755
773
|
.alt=${e.name}
|
|
756
774
|
.size=${this.pixelSize}
|
|
757
775
|
.variant=${r}
|
|
758
|
-
.shadow=${
|
|
776
|
+
.shadow=${i}
|
|
777
|
+
.rotation=${o}
|
|
759
778
|
?border=${e.border}
|
|
760
779
|
.borderWidth=${e.border?e.borderWidth??2:2}
|
|
761
780
|
.borderColor=${e.border?e.borderColor??"#ffffff":"#ffffff"}
|
|
@@ -764,7 +783,7 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
764
783
|
data-user-id=${e.id??""}
|
|
765
784
|
data-status=${e.status??""}
|
|
766
785
|
></profile-picture>
|
|
767
|
-
`}renderCounter(e,r){return
|
|
786
|
+
`}renderCounter(e,r){return b`
|
|
768
787
|
<button
|
|
769
788
|
class="ppg-counter"
|
|
770
789
|
style=${y({left:`${r}px`,width:`${this.pixelSize}px`,height:`${this.pixelSize}px`,zIndex:"1"})}
|
|
@@ -773,9 +792,9 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
773
792
|
aria-haspopup="true"
|
|
774
793
|
@click=${()=>this.handleCounterClick(this.users.slice(-e))}
|
|
775
794
|
>
|
|
776
|
-
${
|
|
795
|
+
${Ue(e)}
|
|
777
796
|
</button>
|
|
778
|
-
`}renderAddButton(e){let r=Math.round(this.pixelSize*.4);return
|
|
797
|
+
`}renderAddButton(e){let r=Math.round(this.pixelSize*.4);return b`
|
|
779
798
|
<button
|
|
780
799
|
class="ppg-add-button"
|
|
781
800
|
style=${y({left:`${e}px`,width:`${this.pixelSize}px`,height:`${this.pixelSize}px`,zIndex:"1"})}
|
|
@@ -797,16 +816,16 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
797
816
|
<line x1="5" y1="12" x2="19" y2="12"></line>
|
|
798
817
|
</svg>
|
|
799
818
|
</button>
|
|
800
|
-
`}renderTooltip(){if(!this.tooltipData)return
|
|
819
|
+
`}renderTooltip(){if(!this.tooltipData)return c;let{user:e,rect:r}=this.tooltipData,i=8,o,s;return this.tooltipPosition==="bottom"?(o=r.bottom+i,s=r.left+r.width/2):(o=r.top-i,s=r.left+r.width/2),b`
|
|
801
820
|
<div
|
|
802
821
|
class="ppg-tooltip"
|
|
803
|
-
style=${y({top:this.tooltipPosition==="top"?"auto":`${o}px`,bottom:this.tooltipPosition==="top"?`${window.innerHeight-r.top+
|
|
822
|
+
style=${y({top:this.tooltipPosition==="top"?"auto":`${o}px`,bottom:this.tooltipPosition==="top"?`${window.innerHeight-r.top+i}px`:"auto",left:`${s}px`,transform:"translateX(-50%)"})}
|
|
804
823
|
data-position=${this.tooltipPosition}
|
|
805
824
|
role="tooltip"
|
|
806
825
|
>
|
|
807
826
|
${e.name}
|
|
808
827
|
</div>
|
|
809
|
-
`}renderDropdown(e){return this.dropdownOpen?
|
|
828
|
+
`}renderDropdown(e){return this.dropdownOpen?b`
|
|
810
829
|
<div
|
|
811
830
|
class="ppg-backdrop"
|
|
812
831
|
@click=${this.handleBackdropClick}
|
|
@@ -828,27 +847,27 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
828
847
|
${e.map(r=>this.renderDropdownItem(r))}
|
|
829
848
|
</div>
|
|
830
849
|
</div>
|
|
831
|
-
`:
|
|
850
|
+
`:c}renderDropdownItem(e){let r=wt(e.name);return b`
|
|
832
851
|
<div
|
|
833
852
|
class="ppg-dropdown-item"
|
|
834
853
|
role="menuitem"
|
|
835
854
|
tabindex="0"
|
|
836
855
|
@click=${()=>this.handleDropdownItemClick(e)}
|
|
837
|
-
@keydown=${
|
|
856
|
+
@keydown=${i=>this.handleKeyDown(i,()=>this.handleDropdownItemClick(e))}
|
|
838
857
|
>
|
|
839
|
-
${e.src?
|
|
858
|
+
${e.src?b`<img
|
|
840
859
|
class="ppg-dropdown-avatar"
|
|
841
860
|
src=${e.src}
|
|
842
861
|
alt=${e.name}
|
|
843
|
-
/>`:
|
|
862
|
+
/>`:b`<div
|
|
844
863
|
class="ppg-dropdown-avatar-fallback"
|
|
845
864
|
style=${y({background:r})}
|
|
846
865
|
>
|
|
847
|
-
${
|
|
866
|
+
${vt(e.name)}
|
|
848
867
|
</div>`}
|
|
849
868
|
<div class="ppg-dropdown-info">
|
|
850
869
|
<div class="ppg-dropdown-name">${e.name}</div>
|
|
851
|
-
${this.showPresence&&e.status?
|
|
870
|
+
${this.showPresence&&e.status?b`
|
|
852
871
|
<div class="ppg-dropdown-status">
|
|
853
872
|
<span
|
|
854
873
|
class="ppg-dropdown-presence"
|
|
@@ -856,10 +875,10 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
856
875
|
></span>
|
|
857
876
|
${this.formatStatus(e.status)}
|
|
858
877
|
</div>
|
|
859
|
-
`:
|
|
878
|
+
`:c}
|
|
860
879
|
</div>
|
|
861
880
|
</div>
|
|
862
|
-
`}formatStatus(e){return {online:"Online",away:"Away",busy:"Busy",offline:"Offline",dnd:"Do not disturb"}[e]??e}render(){let{visible:e,hidden:r,showCounter:
|
|
881
|
+
`}formatStatus(e){return {online:"Online",away:"Away",busy:"Busy",offline:"Offline",dnd:"Do not disturb"}[e]??e}render(){let{visible:e,hidden:r,showCounter:i}=ke(this.users.length,this.max,this.showAddButton),o=this.direction==="ltr"?this.users.slice(0,e):this.users.slice(0,e).reverse(),s=this.users.slice(e),p=e;i&&p++,this.showAddButton&&p++;let a=Le(p,this.pixelSize,this.overlap,this.spacing),u=i?St(e,this.pixelSize,this.overlap,this.direction,this.spacing):0,m=St(e+(i?1:0),this.pixelSize,this.overlap,this.direction,this.spacing);return b`
|
|
863
882
|
<div
|
|
864
883
|
class=${$("ppg-container",this.animated&&"ppg-animated")}
|
|
865
884
|
style=${y({width:`${a}px`,height:`${this.pixelSize}px`})}
|
|
@@ -873,18 +892,18 @@ ${mr}`;var u=class extends C{constructor(){super(...arguments);this.src="";this.
|
|
|
873
892
|
${o.map((g,S)=>this.renderAvatar(g,S,e))}
|
|
874
893
|
|
|
875
894
|
<!-- Counter -->
|
|
876
|
-
${
|
|
895
|
+
${i?this.renderCounter(r,u):c}
|
|
877
896
|
|
|
878
897
|
<!-- Add button -->
|
|
879
|
-
${this.showAddButton?this.renderAddButton(
|
|
898
|
+
${this.showAddButton?this.renderAddButton(m):c}
|
|
880
899
|
|
|
881
900
|
<!-- Tooltip -->
|
|
882
901
|
${this.renderTooltip()}
|
|
883
902
|
|
|
884
903
|
<!-- Dropdown -->
|
|
885
|
-
${
|
|
904
|
+
${i?this.renderDropdown(s):c}
|
|
886
905
|
</div>
|
|
887
|
-
`}};
|
|
906
|
+
`}};d([h({type:Number})],v.prototype,"max",2),d([h({type:String})],v.prototype,"direction",2),d([h({type:Number})],v.prototype,"overlap",2),d([h({type:String})],v.prototype,"size",2),d([h({type:Number})],v.prototype,"spacing",2),d([h({type:Object})],v.prototype,"tooltip",2),d([h({type:Object})],v.prototype,"dropdown",2),d([h({type:Boolean,attribute:"show-add-button"})],v.prototype,"showAddButton",2),d([h({type:String,attribute:"add-button-label"})],v.prototype,"addButtonLabel",2),d([h({type:Boolean})],v.prototype,"animated",2),d([h({type:Number,attribute:"rotation-amount"})],v.prototype,"rotationAmount",2),d([U()],v.prototype,"users",2),d([U()],v.prototype,"dropdownOpen",2),d([U()],v.prototype,"tooltipData",2),v=d([bt("profile-picture-group")],v);Vt();
|
|
888
907
|
/*! Bundled license information:
|
|
889
908
|
|
|
890
909
|
@lit-labs/ssr-dom-shim/lib/element-internals.js:
|