!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],r);else{var t="object"==typeof exports?r(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):r(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var a in t)("object"==typeof exports?exports:e)[a]=t[a]}}(self,(e,r,t,a,i,s,n,o)=>(()=>{"use strict";var c,l={3477(e,r,t){t.r(r),t.d(r,{Presence:()=>a}),t(1821);var a,i=t(9609),s=t(4084),n=t(7161),o=t(429),c=t(5125),l=t(1618),p=t(4449),d=function(e,r,t,a){var i,s=arguments.length,n=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,t,a);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(s<3?i(n):s>3?i(r,t,n):i(r,t))||n);return s>3&&n&&Object.defineProperty(r,t,n),n};!function(e){let r=class extends n.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[s.A,p.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:e,presenceColor:r}=(0,l.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=e,this.color=r}return n.html`
        <div class="${(0,c.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,o.property)({type:String})],r.prototype,"name",void 0),d([(0,o.property)({type:Number})],r.prototype,"size",void 0),d([(0,o.property)({type:String})],r.prototype,"title",void 0),d([(0,o.property)({type:String})],r.prototype,"color",void 0),d([(0,o.property)({type:String,attribute:"presence-type"})],r.prototype,"presenceType",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"newMomentum",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"failurePresence",void 0),d([(0,o.property)({type:Boolean})],r.prototype,"avatarLinked",void 0),r=d([(0,i.w)("md-presence")],r),e.ELEMENT=r}(a||(a={}))},1618(e,r,t){t.d(r,{E:()=>i});var a=t(9244);const i=(e,r,t=!1)=>{let i="",s="";if(r)i="warning-badge-filled",s="var(--avatar-presence-warning)";else{if(!e)return{presenceIcon:void 0,presenceColor:void 0};switch(e){case"active":i="active-presence-small-filled",s="var(--avatar-presence-active)";break;case"meeting":i=t?"camera-presence-filled":"camera-presence_14",s="var(--avatar-presence-unstable)";break;case"schedule":i=t?"meetings-presence-badge-filled":"meetings-presence_14",s="var(--avatar-presence-unstable)";break;case"call":i=t?"handset-filled":"handset-active_16",s="var(--avatar-presence-unstable)";break;case"dnd":i=t?"dnd-presence-badge-filled":"dnd-presence_14",s="var(--avatar-presence-dnd)";break;case"presenting":i=t?"share-screen-badge-filled":"content-share_14",s="var(--avatar-presence-dnd)";break;case"quiet-hours":i="quiet-hours-presence-filled",s="var(--avatar-presence-inactive)";break;case"away":case"idle":case"inactive":i=t?"recents-presence-badge-filled":"recents-presence_14",s="var(--avatar-presence-inactive)";break;case"away-calling":i="away-calling-presence-filled",s="var(--avatar-presence-inactive)";break;case"ooo":i="pto-presence-filled",s="var(--avatar-presence-inactive)";break;case"busy":i="busy-presence-bold",s="var(--avatar-presence-unstable)";break;case"wrapup":i="archive-filled",s="var(--avatar-chat-icon-color)";break;case"on-mobile":i="phone-filled",s="var(--avatar-presence-inactive)";break;case"on-device":i=t?"generic-device-video-filled":"generic-device-video_16",s="var(--avatar-presence-inactive)";break;case"on-hold":case a.j.HOLD:i="pause-badge-filled",s="var(--avatar-presence-inactive)";break;case"engaged":i="busy-presence-bold",s="var(--avatar-presence-engaged)";break;case"rona":i="dnd-presence-badge-filled",s="var(--avatar-presence-rona)";break;case a.j.CONSULTING:i="headset-bold",s="var(--avatar-presence-inactive)";break;case a.j.PLAY:i="play-bold",s="var(--avatar-presence-inactive)";break;case a.j.CONFERENCE:i="meet-bold",s="var(--avatar-presence-inactive)";break;case a.j.TRANSFERED:i="assign-privilege-bold",s="var(--avatar-presence-inactive)";break;case a.j.COURTESY_CALLBACK:i="callrate-bold",s="var(--avatar-presence-inactive)";break;case a.j.CAMPAIGN:i="announcement-bold",s="var(--avatar-presence-inactive)"}}return{presenceColor:s,presenceIcon:i}}},2022(e){e.exports=s},554(e){e.exports=n},7161(r){r.exports=e},429(e){e.exports=r},5125(e){e.exports=t},291(e){e.exports=i},318(e){e.exports=a},5314(e){e.exports=o}},p={};function d(e){var r=p[e];if(void 0!==r)return r.exports;var t=p[e]={exports:{}};return l[e](t,t.exports,d),t.exports}d.m=l,c=[],d.O=(e,r,t,a)=>{if(!r){var i=1/0;for(l=0;l<c.length;l++){for(var[r,t,a]=c[l],s=!0,n=0;n<r.length;n++)(!1&a||i>=a)&&Object.keys(d.O).every(e=>d.O[e](r[n]))?r.splice(n--,1):(s=!1,a<i&&(i=a));if(s){c.splice(l--,1);var o=t();void 0!==o&&(e=o)}}return e}a=a||0;for(var l=c.length;l>0&&c[l-1][2]>a;l--)c[l]=c[l-1];c[l]=[r,t,a]},d.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return d.d(r,{a:r}),r},d.d=(e,r)=>{for(var t in r)d.o(r,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},d.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1618:0,3667:0};d.O.j=r=>0===e[r];var r=(r,t)=>{var a,i,[s,n,o]=t,c=0;if(s.some(r=>0!==e[r])){for(a in n)d.o(n,a)&&(d.m[a]=n[a]);if(o)var l=o(d)}for(r&&r(t);c<s.length;c++)i=s[c],d.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return d.O(l)},t=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var v=d.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,519,4449,9244],()=>d(3477));return d.O(v)})());