"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[378],{4470(e,t,i){i.d(t,{mS:()=>n});const n={active:"Available",meeting:"In a meeting",schedule:"Scheduled",call:"On a call",dnd:"Do not disturb",presenting:"Presenting","quiet-hours":"Quiet hours",away:"Away",idle:"Idle",inactive:"Inactive","away-calling":"Away",ooo:"Out of office",busy:"Busy","on-mobile":"On mobile","on-device":"On device","on-hold":"On hold",engaged:"Engaged",rona:"Unavailable",wrapup:"Wrap up"}},1161(e,t,i){var n,s=i(9609),o=i(4084),a=i(7161),r=i(429),l=i(5125),c=i(1392),p=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[o.A,c.A]}firstUpdated(e){super.firstUpdated(e),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");if(!t)return;let i=null;const n=1400,s=e=>{if(!this.isAnimating)return;i||(i=e);const o=(e-i)%n;t.forEach((e,t)=>{const i=(o-200*t+n)%n;let s=0,a=.1;if(i<280){const e=.1+i/280*.9;s=e,a=e}else if(i<1400){const e=Math.min((i-280)/1120*2,1);s=Math.max(1-.9*e,.9),a=Math.max(1-.9*e,.2)}e.style.transform=`scale(${s})`,e.style.opacity=`${a}`}),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var e;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");t&&t.forEach(e=>{e.style.transform="scale(0, 0)",e.style.opacity="0.1"})}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return a.html`
        <div class="md-loading ${(0,l.classMap)(this.loadingClassMap)}">
          <span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
          <span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
          <span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
        </div>
      `}};p([(0,r.property)({type:String})],t.prototype,"size",void 0),t=p([(0,s.w)("md-loading")],t),e.ELEMENT=t}(n||(n={}))},3477(e,t,i){i(1821);var n,s=i(9609),o=i(4084),a=i(7161),r=i(429),l=i(5125),c=i(1618),p=i(4449),d=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.name="",this.size=48,this.title="",this.color="",this.presenceType="",this.newMomentum=!1,this.failurePresence=!1,this.avatarLinked=!1}static get styles(){return[o.A,p.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:e,presenceColor:t}=(0,c.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=e,this.color=t}return a.html`
        <div class="${(0,l.classMap)(this.presenceClassMap)}" data-size=${this.size} data-icon-size=${this.size}>
          <md-icon
            name="${this.name}"
            color="${this.color}"
            size=${this.size}
            title="${this.title}"
            .iconSet=${"momentumDesign"}
          >
          </md-icon>
        </div>
      `}};d([(0,r.property)({type:String})],t.prototype,"name",void 0),d([(0,r.property)({type:Number})],t.prototype,"size",void 0),d([(0,r.property)({type:String})],t.prototype,"title",void 0),d([(0,r.property)({type:String})],t.prototype,"color",void 0),d([(0,r.property)({type:String,attribute:"presence-type"})],t.prototype,"presenceType",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"newMomentum",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"failurePresence",void 0),d([(0,r.property)({type:Boolean})],t.prototype,"avatarLinked",void 0),t=d([(0,s.w)("md-presence")],t),e.ELEMENT=t}(n||(n={}))}}]);