import*as e from"lit/directives/style-map.js";import*as a from"lit";import*as r from"@momentum-ui/utils/lib/getColorValue";import*as s from"lit/directives/if-defined.js";import*as t from"lit/directives/class-map.js";import*as i from"mobx";import*as n from"lit/decorators.js";import*as c from"@momentum-ui/icons/data/momentumUiIconsNames.json";var o,p,v={1156(a,r,s){var t,i;a.exports=(t={styleMap:()=>e.styleMap},i={},s.d(i,t),i)},1618(e,a,r){r.d(a,{E:()=>t});var s=r(9244);const t=(e,a,r=!1)=>{let t="",i="";if(a)t="warning-badge-filled",i="var(--avatar-presence-warning)";else{if(!e)return{presenceIcon:void 0,presenceColor:void 0};switch(e){case"active":t="active-presence-small-filled",i="var(--avatar-presence-active)";break;case"meeting":t=r?"camera-presence-filled":"camera-presence_14",i="var(--avatar-presence-unstable)";break;case"schedule":t=r?"meetings-presence-badge-filled":"meetings-presence_14",i="var(--avatar-presence-unstable)";break;case"call":t=r?"handset-filled":"handset-active_16",i="var(--avatar-presence-unstable)";break;case"dnd":t=r?"dnd-presence-badge-filled":"dnd-presence_14",i="var(--avatar-presence-dnd)";break;case"presenting":t=r?"share-screen-badge-filled":"content-share_14",i="var(--avatar-presence-dnd)";break;case"quiet-hours":t="quiet-hours-presence-filled",i="var(--avatar-presence-inactive)";break;case"away":case"idle":case"inactive":t=r?"recents-presence-badge-filled":"recents-presence_14",i="var(--avatar-presence-inactive)";break;case"away-calling":t="away-calling-presence-filled",i="var(--avatar-presence-inactive)";break;case"ooo":t="pto-presence-filled",i="var(--avatar-presence-inactive)";break;case"busy":t="busy-presence-bold",i="var(--avatar-presence-unstable)";break;case"wrapup":t="archive-filled",i="var(--avatar-chat-icon-color)";break;case"on-mobile":t="phone-filled",i="var(--avatar-presence-inactive)";break;case"on-device":t=r?"generic-device-video-filled":"generic-device-video_16",i="var(--avatar-presence-inactive)";break;case"on-hold":case s.j.HOLD:t="pause-badge-filled",i="var(--avatar-presence-inactive)";break;case"engaged":t="busy-presence-bold",i="var(--avatar-presence-engaged)";break;case"rona":t="dnd-presence-badge-filled",i="var(--avatar-presence-rona)";break;case s.j.CONSULTING:t="headset-bold",i="var(--avatar-presence-inactive)";break;case s.j.PLAY:t="play-bold",i="var(--avatar-presence-inactive)";break;case s.j.CONFERENCE:t="meet-bold",i="var(--avatar-presence-inactive)";break;case s.j.TRANSFERED:t="assign-privilege-bold",i="var(--avatar-presence-inactive)";break;case s.j.COURTESY_CALLBACK:t="callrate-bold",i="var(--avatar-presence-inactive)";break;case s.j.CAMPAIGN:t="announcement-bold",i="var(--avatar-presence-inactive)"}}return{presenceColor:i,presenceIcon:t}}},2927(e,r,s){var t,i;e.exports=(t={LitElement:()=>a.LitElement,css:()=>a.css,html:()=>a.html,nothing:()=>a.nothing},i={},s.d(i,t),i)},3496(e,a,s){var t,i;e.exports=(t={default:()=>r.default},i={},s.d(i,t),i)},3517(e,a,r){var t,i;e.exports=(t={ifDefined:()=>s.ifDefined},i={},r.d(i,t),i)},4955(e,a,r){var s,i;e.exports=(s={classMap:()=>t.classMap},i={},r.d(i,s),i)},4980(e,a,r){var s,t;e.exports=(s={action:()=>i.action,observable:()=>i.observable},t={},r.d(t,s),t)},8899(e,a,r){var s,t;e.exports=(s={property:()=>n.property,query:()=>n.query,state:()=>n.state},t={},r.d(t,s),t)},9500(e,a,r){var s,t;e.exports=(s={default:()=>c.default},t={},r.d(t,s),t)}},l={};function d(e){var a=l[e];if(void 0!==a)return a.exports;var r=l[e]={exports:{}};return v[e](r,r.exports,d),r.exports}d.m=v,o=[],d.O=(e,a,r,s)=>{if(!a){var t=1/0;for(p=0;p<o.length;p++){for(var[a,r,s]=o[p],i=!0,n=0;n<a.length;n++)(!1&s||t>=s)&&Object.keys(d.O).every(e=>d.O[e](a[n]))?a.splice(n--,1):(i=!1,s<t&&(t=s));if(i){o.splice(p--,1);var c=r();void 0!==c&&(e=c)}}return e}s=s||0;for(var p=o.length;p>0&&o[p-1][2]>s;p--)o[p]=o[p-1];o[p]=[a,r,s]},d.d=(e,a)=>{for(var r in a)d.o(a,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},d.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);export{d as __webpack_require__};p={502:0,1618:0,1745:0,3667:0,4545:0,4928:0,5369:0,6060:0,6920:0,8111:0,8442:0},d.C=e=>{var a,r,{__webpack_esm_ids__:s,__webpack_esm_modules__:t,__webpack_esm_runtime__:i}=e,n=0;for(a in t)d.o(t,a)&&(d.m[a]=t[a]);for(i&&i(d);n<s.length;n++)r=s[n],d.o(p,r)&&p[r]&&p[r][0](),p[s[n]]=0;d.O()},d.O.j=e=>0===p[e];import*as m from"../9609.js";d.C(m);import*as f from"../4084.js";d.C(f);import*as b from"../3305.js";d.C(b);import*as u from"../4739.js";d.C(u);import*as g from"../7154.js";d.C(g);import*as j from"../9773.js";d.C(j);import*as k from"../5983.js";d.C(k);import*as _ from"../9488.js";d.C(_);import*as C from"../1821.js";d.C(C);import*as h from"../519.js";d.C(h);import*as y from"../4449.js";d.C(y);import*as x from"../9244.js";d.C(x);import*as O from"../3477.js";d.C(O);var w=d.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,519,4449,9244,3477],()=>d(3477));const E=(w=d.O(w)).C;export{E as Presence};