var t,e,o={7030(t,e,o){o.d(e,{A:()=>c,e:()=>d}),o(2245),o(5983),o(1821);var r=o(2900),s=o(9609),i=o(4084),a=o(2927),n=o(8899),l=o(6341),p=o(3006),m=function(t,e,o,r){var s,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const d=["alert","alertdialog","button","checkbox","dialog","link","option","status"];var c;!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=t=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:t}}))},this._onClose=t=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:t}}))},this.handleSnooze=t=>{this.onSnooze?this.onSnooze(t):this._onSnooze(t),t.stopPropagation()},this.handleClose=t=>{this._onClose(t),t.stopPropagation()},this.handleKeyDown=t=>{if(t.code===r.Uz.Escape&&this.handleClose(t),t.code===r.Uz.Enter||t.code===r.Uz.Space){switch(t.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(t);break;case"snooze":this.handleSnooze(t)}t.preventDefault()}this.onKeyDown&&this.onKeyDown(t)}}getStyles(){return a.html`
        <style>
          ::slotted(img) {
            display: inline-block;
            vertical-align: middle;
            -ms-interpolation-mode: bicubic;
            height: auto;
            max-width: 100%;
            border-style: none;
          }
          ${this.userStyles}
        </style>
      `}static get styles(){return[i.A,p.A]}render(){const{attendees:t,message:e,onSnooze:o,role:r,src:s,status:i,title:n,closeAriaLabel:p,show:m,snoozeAriaLabel:d}=this;return a.html`
        ${this.getStyles()}
        ${m?a.html`
              <div
                aria-label="Meeting Alert"
                class=${"md-alert md-alert--meeting"}
                @keydown=${t=>this.handleKeyDown(t)}
                role=${r}
              >
                <slot name="custom-avatar"> ${t.length>=2?(0,l.o)(t):a.html` <md-avatar title=${n} label="avatar" src=${s} tabindex="-1"></md-avatar> `} </slot>
                <div class=${"md-alert__content "+(o?"":" md-alert__content--wide")}>
                  <div class="md-alert__title" title=${n}>${n}</div>
                  <div class="md-alert__status" title=${i}>${i}</div>
                  <div class="md-alert__message" title=${e}>${e}</div>
                </div>
                ${o?a.html`
                      <div class="md-alert__button">
                        <md-button
                          variant="secondary"
                          aria-label=${d}
                          circle
                          @click=${t=>{this.handleSnooze(t)}}
                          .size=${40}
                        >
                          <md-icon name="alarm-bold" size="16" iconSet="momentumDesign"></md-icon>
                        </md-button>
                      </div>
                    `:a.nothing}
                <slot name="custom-action">
                  <md-button
                    class="md-alert__button"
                    variant="ghost"
                    ariaLabel=${p}
                    circle
                    @click=${t=>{this.handleClose(t)}}
                    .size=${40}
                  >
                    <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
                  </md-button>
                </slot>
              </div>
            `:a.nothing}
      `}};m([(0,n.property)({type:Array})],e.prototype,"attendees",void 0),m([(0,n.property)({type:String})],e.prototype,"closeAriaLabel",void 0),m([(0,n.property)({attribute:!1})],e.prototype,"onKeyDown",void 0),m([(0,n.property)({attribute:!1})],e.prototype,"onSnooze",void 0),m([(0,n.property)({type:String})],e.prototype,"message",void 0),m([(0,n.property)({type:String})],e.prototype,"snoozeAriaLabel",void 0),m([(0,n.property)({type:String})],e.prototype,"role",void 0),m([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),m([(0,n.property)({type:String})],e.prototype,"src",void 0),m([(0,n.property)({type:String})],e.prototype,"status",void 0),m([(0,n.property)({type:String})],e.prototype,"userStyles",void 0),m([(0,n.property)({type:String})],e.prototype,"title",void 0),e=m([(0,s.w)("md-meeting-alert")],e),t.ELEMENT=e}(c||(c={}))}},r={};function s(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return o[t](i,i.exports,s),i.exports}s.m=o,t=[],s.O=(e,o,r,i)=>{if(!o){var a=1/0;for(m=0;m<t.length;m++){for(var[o,r,i]=t[m],n=!0,l=0;l<o.length;l++)(!1&i||a>=i)&&Object.keys(s.O).every(t=>s.O[t](o[l]))?o.splice(l--,1):(n=!1,i<a&&(a=i));if(n){t.splice(m--,1);var p=r();void 0!==p&&(e=p)}}return e}i=i||0;for(var m=t.length;m>0&&t[m-1][2]>i;m--)t[m]=t[m-1];t[m]=[o,r,i]},s.d=(t,e)=>{for(var o in e)s.o(e,o)&&!s.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{s as __webpack_require__};e={4908:0},s.C=t=>{var o,r,{__webpack_esm_ids__:i,__webpack_esm_modules__:a,__webpack_esm_runtime__:n}=t,l=0;for(o in a)s.o(a,o)&&(s.m[o]=a[o]);for(n&&n(s);l<i.length;l++)r=i[l],s.o(e,r)&&e[r]&&e[r][0](),e[i[l]]=0;s.O()},s.O.j=t=>0===e[t];import*as i from"../9609.js";s.C(i);import*as a from"../4084.js";s.C(a);import*as n from"../4955.js";s.C(n);import*as l from"../3517.js";s.C(l);import*as p from"../1156.js";s.C(p);import*as m from"../3305.js";s.C(m);import*as d from"../4739.js";s.C(d);import*as c from"../7154.js";s.C(c);import*as h from"../9773.js";s.C(h);import*as y from"../5983.js";s.C(y);import*as v from"../7755.js";s.C(v);import*as f from"../1821.js";s.C(f);import*as u from"../4980.js";s.C(u);import*as g from"../9500.js";s.C(g);import*as b from"../519.js";s.C(b);import*as _ from"../4137.js";s.C(_);import*as C from"../8165.js";s.C(C);import*as j from"../6325.js";s.C(j);import*as S from"../4449.js";s.C(S);import*as z from"../1392.js";s.C(z);import*as $ from"../3365.js";s.C($);import*as w from"../378.js";s.C(w);import*as A from"../9244.js";s.C(A);import*as O from"../4626.js";s.C(O);import*as E from"../1816.js";s.C(E);var k=s.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,4980,9500,519,4137,8165,6325,4449,1392,3365,378,9244,4626,1816],()=>s(7030));const x=(k=s.O(k)).A,D=k.e;export{x as MeetingAlert,D as MeetingAlertRole};