@momentum-ui/web-components 2.22.4 → 2.22.6

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.
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-html/directives/class-map.js","lit-html/directives/until.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit-html/directives/class-map.js"],e["lit-html/directives/until.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,n,o,a,s,l,c)=>(()=>{"use strict";var p,h={8229:e=>{e.exports=t},17518:e=>{e.exports=l},23968:e=>{e.exports=r},32022:e=>{e.exports=o},37782:e=>{e.exports=c},38028:(e,t,i)=>{i.r(t),i.d(t,{Avatar:()=>r}),i(80528),i(61200),i(69788);var r,n=i(31890),o=i(26283),a=i(26272),s=i(41488),l=i(40333),c=i(23968),p=i(97822),h=i(8229),m=i(37782),d=i(22887),u=i(3553),y=function(e,t,i,r){var n,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(o<3?n(a):o>3?n(t,i,a):n(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(e){const t=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",t)}static get styles(){return[a.A,u.A]}isPresenceType(e){return d.eO.includes(e)}firstUpdated(){const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e){const{presenceColor:t,presenceIcon:i}=(0,d.E0)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}}updated(e){super.updated(e);const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t&&(e.has("type")||e.has("presenceType")||e.has("newMomentum"))){const{presenceColor:e,presenceIcon:i}=(0,d.E0)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}e.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const e=this.title.trim().split(" ");return 1===e.length?e[0].charAt(0):e[0].charAt(0)+e[e.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(e){return this.iconNameMap[e]||""}get chatIconSize(){return this.iconSize}get iconSize(){return(this.size/2).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?s.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?s.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-html/directives/class-map.js","lit-html/directives/until.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit-html/directives/class-map.js"],e["lit-html/directives/until.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,o,n,a,s,l,c)=>(()=>{"use strict";var p,h={8229:e=>{e.exports=t},17518:e=>{e.exports=l},23968:e=>{e.exports=r},32022:e=>{e.exports=n},37782:e=>{e.exports=c},38028:(e,t,i)=>{i.r(t),i.d(t,{Avatar:()=>r}),i(80528),i(61200),i(69788);var r,o=i(31890),n=i(26283),a=i(26272),s=i(41488),l=i(40333),c=i(23968),p=i(97822),h=i(8229),m=i(37782),d=i(22887),u=i(3553),y=function(e,t,i,r){var o,n=arguments.length,a=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(t,i,a):o(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends s.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-call-inbound":"incoming-call-legacy-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-facebook":"social-facebook-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(e){const t=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",t)}static get styles(){return[a.A,u.A]}isPresenceType(e){return d.eO.includes(e)}firstUpdated(){const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e){const{presenceColor:t,presenceIcon:i}=(0,d.E0)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}}updated(e){super.updated(e);const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t&&(e.has("type")||e.has("presenceType")||e.has("newMomentum"))){const{presenceColor:e,presenceIcon:i}=(0,d.E0)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}e.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const e=this.title.trim().split(" ");return 1===e.length?e[0].charAt(0):e[0].charAt(0)+e[e.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(e){return this.iconNameMap[e]||""}get chatIconSize(){return this.iconSize}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?s.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?s.html`
2
2
  <span class="md-avatar__letter ${(0,c.classMap)(this.avatarLetterClassMap)}">
3
3
  ${this.pretifyTitle}
4
4
  <slot></slot>
@@ -14,7 +14,7 @@
14
14
  </span>
15
15
  `}get avatarImage(){return s.html`
16
16
  ${(0,m.until)(this.loadImage().then((e=>(this.handleImageLoad(),s.html` ${e} `))).catch((()=>this.handleImageError())),s.html` ${this.iconName?this.avatarIcon:this.title?s.html` ${this.avatarLetter} `:l.nothing} `)}
17
- `}loadImage(){return e=this,t=void 0,r=function*(){return new Promise(((e,t)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>e(i),i.onerror=e=>t(e),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)}))},new((i=void 0)||(i=Promise))((function(n,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}));var e,t,i,r}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(e){if(!this.clickable)return;const{code:t}=e;(0,o.o)(t)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}handleClick(e){var t;this.clickable&&(null===(t=this.clickFunction)||void 0===t||t.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:e}})))}getBrandOrDesignIconSet(e){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(e)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?s.html`
17
+ `}loadImage(){return e=this,t=void 0,r=function*(){return new Promise(((e,t)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>e(i),i.onerror=e=>t(e),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)}))},new((i=void 0)||(i=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}));var e,t,i,r}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(e){if(!this.clickable)return;const{code:t}=e;(0,n.o)(t)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}handleClick(e){var t;this.clickable&&(null===(t=this.clickFunction)||void 0===t||t.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:e}})))}getBrandOrDesignIconSet(e){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","social-facebook-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(e)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?s.html`
18
18
  <md-presence
19
19
  class="avatar-presence"
20
20
  name="${this.presenceIcon}"
@@ -58,4 +58,4 @@
58
58
  ${this.hasNotification?s.html` <span class="md-avatar__notification-badge"></span> `:l.nothing}
59
59
  ${this.renderPresence()}
60
60
  </div>
61
- `}};y([(0,s.property)({type:Number,attribute:"tab-index",reflect:!0})],t.prototype,"tabIndex",null),y([(0,s.property)({type:String})],t.prototype,"alt",void 0),y([(0,s.property)({type:String})],t.prototype,"src",void 0),y([(0,s.property)({type:String})],t.prototype,"label",void 0),y([(0,s.property)({type:String})],t.prototype,"title",void 0),y([(0,s.property)({type:String})],t.prototype,"color",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"decrypting",void 0),y([(0,s.property)({type:String})],t.prototype,"role",void 0),y([(0,s.property)({type:String,attribute:"icon-name"})],t.prototype,"iconName",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"failurePresence",void 0),y([(0,s.property)({type:String})],t.prototype,"type",void 0),y([(0,s.property)({type:String,attribute:"presence-type"})],t.prototype,"presenceType",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"newMomentum",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"typing",void 0),y([(0,s.property)({type:Number})],t.prototype,"size",void 0),y([(0,s.property)({type:Boolean,attribute:"has-notification"})],t.prototype,"hasNotification",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"clickable",void 0),y([(0,s.property)({attribute:!1})],t.prototype,"clickFunction",void 0),y([(0,s.property)({type:String,attribute:"avatar-style"})],t.prototype,"avatarStyle",void 0),y([(0,s.property)({type:String})],t.prototype,"state",void 0),y([(0,s.internalProperty)()],t.prototype,"imageLoaded",void 0),y([(0,s.internalProperty)()],t.prototype,"imageErrored",void 0),y([(0,s.internalProperty)()],t.prototype,"presenceColor",void 0),y([(0,s.internalProperty)()],t.prototype,"presenceIcon",void 0),t=y([(0,n.w)("md-avatar")],t),e.ELEMENT=t}(r||(r={}))},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=a},85314:e=>{e.exports=s},97822:e=>{e.exports=n}},m={};function d(e){var t=m[e];if(void 0!==t)return t.exports;var i=m[e]={exports:{}};return h[e](i,i.exports,d),i.exports}d.m=h,p=[],d.O=(e,t,i,r)=>{if(!t){var n=1/0;for(l=0;l<p.length;l++){for(var[t,i,r]=p[l],o=!0,a=0;a<t.length;a++)(!1&r||n>=r)&&Object.keys(d.O).every((e=>d.O[e](t[a])))?t.splice(a--,1):(o=!1,r<n&&(n=r));if(o){p.splice(l--,1);var s=i();void 0!==s&&(e=s)}}return e}r=r||0;for(var l=p.length;l>0&&p[l-1][2]>r;l--)p[l]=p[l-1];p[l]=[t,i,r]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8028:0,8115:0};d.O.j=t=>0===e[t];var t=(t,i)=>{var r,n,[o,a,s]=i,l=0;if(o.some((t=>0!==e[t]))){for(r in a)d.o(a,r)&&(d.m[r]=a[r]);if(s)var c=s(d)}for(t&&t(i);l<o.length;l++)n=o[l],d.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return d.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var u=d.O(void 0,[4367,1890,6272,6325,6283,9217,2176,6798,5830,1200,2576,3553,6700,528,9788],(()=>d(38028)));return d.O(u)})()));
61
+ `}};y([(0,s.property)({type:Number,attribute:"tab-index",reflect:!0})],t.prototype,"tabIndex",null),y([(0,s.property)({type:String})],t.prototype,"alt",void 0),y([(0,s.property)({type:String})],t.prototype,"src",void 0),y([(0,s.property)({type:String})],t.prototype,"label",void 0),y([(0,s.property)({type:String})],t.prototype,"title",void 0),y([(0,s.property)({type:String})],t.prototype,"color",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"decrypting",void 0),y([(0,s.property)({type:String})],t.prototype,"role",void 0),y([(0,s.property)({type:String,attribute:"icon-name"})],t.prototype,"iconName",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"failurePresence",void 0),y([(0,s.property)({type:String})],t.prototype,"type",void 0),y([(0,s.property)({type:String,attribute:"presence-type"})],t.prototype,"presenceType",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"newMomentum",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"typing",void 0),y([(0,s.property)({type:Number})],t.prototype,"size",void 0),y([(0,s.property)({type:Boolean,attribute:"has-notification"})],t.prototype,"hasNotification",void 0),y([(0,s.property)({type:Boolean})],t.prototype,"clickable",void 0),y([(0,s.property)({attribute:!1})],t.prototype,"clickFunction",void 0),y([(0,s.property)({type:String,attribute:"avatar-style"})],t.prototype,"avatarStyle",void 0),y([(0,s.property)({type:String})],t.prototype,"state",void 0),y([(0,s.internalProperty)()],t.prototype,"imageLoaded",void 0),y([(0,s.internalProperty)()],t.prototype,"imageErrored",void 0),y([(0,s.internalProperty)()],t.prototype,"presenceColor",void 0),y([(0,s.internalProperty)()],t.prototype,"presenceIcon",void 0),t=y([(0,o.w)("md-avatar")],t),e.ELEMENT=t}(r||(r={}))},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=a},85314:e=>{e.exports=s},97822:e=>{e.exports=o}},m={};function d(e){var t=m[e];if(void 0!==t)return t.exports;var i=m[e]={exports:{}};return h[e](i,i.exports,d),i.exports}d.m=h,p=[],d.O=(e,t,i,r)=>{if(!t){var o=1/0;for(l=0;l<p.length;l++){for(var[t,i,r]=p[l],n=!0,a=0;a<t.length;a++)(!1&r||o>=r)&&Object.keys(d.O).every((e=>d.O[e](t[a])))?t.splice(a--,1):(n=!1,r<o&&(o=r));if(n){p.splice(l--,1);var s=i();void 0!==s&&(e=s)}}return e}r=r||0;for(var l=p.length;l>0&&p[l-1][2]>r;l--)p[l]=p[l-1];p[l]=[t,i,r]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8028:0,8115:0};d.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[n,a,s]=i,l=0;if(n.some((t=>0!==e[t]))){for(r in a)d.o(a,r)&&(d.m[r]=a[r]);if(s)var c=s(d)}for(t&&t(i);l<n.length;l++)o=n[l],d.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return d.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var u=d.O(void 0,[4367,1890,6272,6325,6283,9217,2176,6798,5830,1200,2576,3553,6700,528,9788],(()=>d(38028)));return d.O(u)})()));
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("lit-html/directives/style-map"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","lit-html/directives/style-map","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("lit-html/directives/style-map"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):t(e["lit-element"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["lit-html/directives/style-map"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,((e,t,i,o,s,r,n,l)=>(()=>{"use strict";var a,d={8229:e=>{e.exports=s},23968:e=>{e.exports=i},32022:e=>{e.exports=r},40333:e=>{e.exports=t},41488:t=>{t.exports=e},60554:e=>{e.exports=n},63704:(e,t,i)=>{var o,s=i(31890),r=i(26272),n=i(41488),l=i(40333),a=i(23968),d=i(97822),m=i(92019),c=function(e,t,i,o){var s,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};!function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:l.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:l.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:l.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:l.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?n.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-html/directives/class-map.js","lit-html/directives/until.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit-html/directives/class-map.js"],e["lit-html/directives/until.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i,s,a,n,r,o,l,d)=>(()=>{"use strict";var c,m={8229:e=>{e.exports=t},17518:e=>{e.exports=l},23968:e=>{e.exports=s},32022:e=>{e.exports=n},37782:e=>{e.exports=d},40333:e=>{e.exports=i},41488:t=>{t.exports=e},60554:e=>{e.exports=r},63704:(e,t,i)=>{var s,a=i(31890),n=i(26272),r=i(41488),o=i(40333),l=i(23968),d=i(97822),c=i(92019),m=function(e,t,i,s){var a,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(n<3?a(r):n>3?a(t,i,r):a(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r};!function(e){let t=class extends r.LitElement{constructor(){super(...arguments),this.ariaLabel="",this.color="",this.bgColor="",this.textColor="",this.height="",this.width="",this.outlined=!1,this.compact=!1,this.circle=!1,this.small=!1,this.split=!1,this.disabled=!1,this.tabIndexing="",this.ariaHiddenSplits="",this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:o.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:o.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:o.nothing,this.renderWidth=()=>this.width?`width: ${this.width};`:o.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height||this.width?r.html`
2
2
  <style>
3
3
  :host .md-badge {
4
4
  ${this.renderBgColor()};
@@ -7,15 +7,15 @@
7
7
  ${this.renderWidth()};
8
8
  }
9
9
  </style>
10
- `:l.nothing}static get styles(){return[r.A,m.A]}get computedAriaHiddenSplits(){return"true"===this.ariaHiddenSplits||"false"!==this.ariaHiddenSplits&&void 0}get computedTabIndex(){const e=parseInt(this.tabIndexing);return isNaN(e)?void 0:e}render(){const e={"md-badge--circle":this.circle,"md-badge--split":this.split,"md-badge--compact":this.compact,"md-badge--small":this.small,"md-badge--outline":this.outlined,"md-badge--disabled":this.disabled,[`md-badge--${this.color}`]:!this.disabled&&this.color};return n.html`
10
+ `:o.nothing}static get styles(){return[n.A,c.A]}get computedAriaHiddenSplits(){return"true"===this.ariaHiddenSplits||"false"!==this.ariaHiddenSplits&&void 0}get computedTabIndex(){const e=parseInt(this.tabIndexing);return isNaN(e)?void 0:e}render(){const e={"md-badge--circle":this.circle,"md-badge--split":this.split,"md-badge--compact":this.compact,"md-badge--small":this.small,"md-badge--outline":this.outlined,"md-badge--disabled":this.disabled,[`md-badge--${this.color}`]:!this.disabled&&this.color};return r.html`
11
11
  ${this.getStyles()}
12
12
  <span
13
13
  tabindex=${(0,d.ifDefined)(this.computedTabIndex)}
14
14
  part="badge"
15
- class="md-badge ${(0,a.classMap)(e)}"
15
+ class="md-badge ${(0,l.classMap)(e)}"
16
16
  aria-label=${this.ariaLabel}
17
17
  >
18
- ${this.split?(()=>n.html`
18
+ ${this.split?(()=>r.html`
19
19
  <slot
20
20
  aria-hidden=${(0,d.ifDefined)(this.computedAriaHiddenSplits)}
21
21
  name="split-left"
@@ -27,59 +27,76 @@
27
27
  name="split-right"
28
28
  class="split split-right"
29
29
  ></slot>
30
- `)():l.nothing}
30
+ `)():o.nothing}
31
31
  <slot></slot>
32
32
  </span>
33
- `}};c([(0,n.property)({type:String})],t.prototype,"ariaLabel",void 0),c([(0,n.property)({type:String})],t.prototype,"color",void 0),c([(0,n.property)({type:String})],t.prototype,"bgColor",void 0),c([(0,n.property)({type:String})],t.prototype,"textColor",void 0),c([(0,n.property)({type:String})],t.prototype,"height",void 0),c([(0,n.property)({type:String})],t.prototype,"width",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"outlined",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"compact",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"circle",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"small",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"split",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"disabled",void 0),c([(0,n.property)({type:String})],t.prototype,"tabIndexing",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaHiddenSplits",void 0),t=c([(0,s.w)("md-badge")],t),e.ELEMENT=t}(o||(o={}))},85314:e=>{e.exports=l},86610:(e,t,i)=>{i.r(t),i.d(t,{TaskItem:()=>o}),i(63704),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),l=i(40333),a=i(23968),d=i(50182),m=function(e,t,i,o){var s,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};!function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.mediaType="call",this.status="",this.popovertitle="",this.queue="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.renderTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return n.html`
33
+ `}};m([(0,r.property)({type:String})],t.prototype,"ariaLabel",void 0),m([(0,r.property)({type:String})],t.prototype,"color",void 0),m([(0,r.property)({type:String})],t.prototype,"bgColor",void 0),m([(0,r.property)({type:String})],t.prototype,"textColor",void 0),m([(0,r.property)({type:String})],t.prototype,"height",void 0),m([(0,r.property)({type:String})],t.prototype,"width",void 0),m([(0,r.property)({type:Boolean})],t.prototype,"outlined",void 0),m([(0,r.property)({type:Boolean})],t.prototype,"compact",void 0),m([(0,r.property)({type:Boolean})],t.prototype,"circle",void 0),m([(0,r.property)({type:Boolean})],t.prototype,"small",void 0),m([(0,r.property)({type:Boolean})],t.prototype,"split",void 0),m([(0,r.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,r.property)({type:String})],t.prototype,"tabIndexing",void 0),m([(0,r.property)({type:String})],t.prototype,"ariaHiddenSplits",void 0),t=m([(0,a.w)("md-badge")],t),e.ELEMENT=t}(s||(s={}))},85314:e=>{e.exports=o},86610:(e,t,i)=>{i.r(t),i.d(t,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,a=i(31890),n=i(26272),r=i(41488),o=i(40333),l=i(23968),d=i(50182),c=function(e,t,i,s){var a,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(n<3?a(r):n>3?a(t,i,r):a(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r};!function(e){let t=class extends r.LitElement{constructor(){super(...arguments),this.mediaType="call",this.status="",this.popovertitle="",this.queue="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.renderLegacyTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return r.html`
34
34
  <md-badge color="green" circle>
35
35
  <md-icon name="handset-filled" size="20" iconSet="momentumDesign"></md-icon>
36
36
  </md-badge>
37
- `;case"outbound telephony":return n.html`
37
+ `;case"outbound telephony":return r.html`
38
38
  <md-badge color="green" circle>
39
39
  <md-icon name="outgoing-call-legacy-filled" size="20" iconSet="momentumDesign"></md-icon>
40
40
  </md-badge>
41
- `;case"inbound telephony":return n.html`
41
+ `;case"inbound telephony":return r.html`
42
42
  <md-badge color="green" circle>
43
43
  <md-icon name="incoming-call-legacy-filled" size="20" iconSet="momentumDesign"></md-icon>
44
44
  </md-badge>
45
- `;case"applemessages":case"midcall telephony":case"icon src":return n.html`
46
- <md-badge circle>
45
+ `;case"applemessages":case"midcall telephony":case"icon src":return r.html`
46
+ <md-badge class="avatar-badge" circle>
47
47
  <img src="${this.iconSrc}" />
48
48
  </md-badge>
49
- `;case"callback":return n.html`
50
- <md-badge color="lime" circle>
49
+ `;case"callback":return r.html`
50
+ <md-badge class="avatar-badge" color="lime" circle>
51
51
  <md-icon name="icon-icon-callback_18"></md-icon>
52
52
  </md-badge>
53
- `;case"progressive_campaign":return n.html`
54
- <md-badge color="green" circle>
53
+ `;case"progressive_campaign":return r.html`
54
+ <md-badge class="avatar-badge" color="green" circle>
55
55
  <md-icon name="icon-icon-campaign_18"></md-icon>
56
56
  </md-badge>
57
- `;case"outbound-campaign":return n.html`
58
- <md-avatar title="Channel Campaign" type="channel-campaign" avatar-style="default" state="rest"></md-avatar>
59
- `;case"chat":return n.html`
57
+ `;case"outbound-campaign":return r.html`
58
+ <md-avatar
59
+ title="Channel Campaign"
60
+ type="channel-campaign"
61
+ avatar-style="default"
62
+ state=${this.selected?"active":"rest"}
63
+ ></md-avatar>
64
+ `;case"chat":return r.html`
60
65
  <md-badge color="blue" circle>
61
66
  <md-icon name="chat-filled" size="20" iconSet="momentumDesign"></md-icon>
62
67
  </md-badge>
63
- `;case"email":return n.html`
68
+ `;case"email":return r.html`
64
69
  <md-badge color="violet" circle>
65
70
  <md-icon name="email-filled" size="20" iconSet="momentumDesign"></md-icon>
66
71
  </md-badge>
67
- `;case"sms":return n.html`
72
+ `;case"sms":return r.html`
68
73
  <md-badge color="darkmint" circle>
69
74
  <md-icon name="sms-filled" size="20" iconSet="momentumDesign" color="white-100"></md-icon>
70
75
  </md-badge>
71
- `;case"facebook":return n.html`
76
+ `;case"facebook":return r.html`
72
77
  <md-badge bgColor="#0078FF" circle>
73
78
  <md-icon name="messenger_16" iconSet="momentumUI" color="white-100"></md-icon>
74
79
  </md-badge>
75
- `;case"whatsapp":return n.html`
80
+ `;case"whatsapp":return r.html`
76
81
  <md-badge bgColor="#25D366" circle>
77
82
  <md-icon name="whatsApp_16" iconSet="momentumUI" color="white-100"></md-icon>
78
83
  </md-badge>
79
- `;default:return n.html` <slot name="task-type"></slot> `}},this.renderStatus=()=>{switch(this.status){case"consulting":return n.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"play":return n.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"hold":return n.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"conference":return n.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"transfered":return n.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"courtesy_callback":return n.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"campaign":return n.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return n.html` <slot name="task-status"></slot> `}}}get title(){return this.displayTitle}set title(e){this.titleValue=e,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(e){this.itemTitleValue=e,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(e){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:e}})),this.blur()}handleKeyDown(e){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:e.code},bubbles:!0,composed:!0}))}renderChatCount(){return this.quantity>0?this.quantity>99?n.html` <span class="new-chat-quantity">99+</span> `:n.html` <span class="new-chat-quantity">${this.quantity}</span> `:l.nothing}getAriaLabel(){var e;if(this.customAriaLabel)return this.customAriaLabel;let t=this.queue;if(!t){const i=this.querySelector('[slot="queue"]');if(i){t=(null===(e=i.textContent)||void 0===e?void 0:e.trim())||i.innerText.trim();const o=t.match(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/);if(o){const[,e=0,i,s]=o.map(Number);(new Date).setHours(e,i,s),t=t.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${e?e+" hours ":""}${i} minutes ${s} seconds`)}}}return`${this.mediaType} ${this.status} ${this.title} ${t} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,d.A]}get sanitizedTabIndexForContainer(){var e;return null!==(e=parseInt(this.tabIndexForContainer))&&void 0!==e?e:0}render(){return n.html`
84
+ `;default:return r.html` <slot name="task-type"></slot> `}},this.renderStatus=()=>{switch(this.status){case"consulting":return r.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"play":return r.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"hold":return r.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"conference":return r.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"transfered":return r.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"courtesy_callback":return r.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"campaign":return r.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return r.html` <slot name="task-status"></slot> `}}}get title(){return this.displayTitle}set title(e){this.titleValue=e,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(e){this.itemTitleValue=e,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}getChannelAvatar(e){return r.html`<md-avatar size="32" type=${e} state=${this.selected?"active":"rest"}></md-avatar>`}get taskTypeTemplate(){return r.html`${this.isRestyle?this.renderTaskType:this.renderLegacyTaskType()}`}get renderTaskType(){switch(this.mediaType.toLowerCase()){case"telephony":return this.getChannelAvatar("channel-call");case"outbound telephony":return this.getChannelAvatar("channel-callback");case"inbound telephony":return this.getChannelAvatar("channel-call-inbound");case"applemessages":return this.getChannelAvatar("channel-apple-chat");case"outbound-campaign":return this.getChannelAvatar("channel-campaign");case"chat":return this.getChannelAvatar("channel-chat");case"email":return this.getChannelAvatar("channel-email-inbound");case"sms":return this.getChannelAvatar("channel-sms-inbound");case"facebook":return this.getChannelAvatar("channel-fb-messenger");case"whatsapp":return this.getChannelAvatar("channel-whats-app");case"messenger":return this.getChannelAvatar("channel-facebook");case"midcall telephony":case"icon src":return r.html`
85
+ <md-badge circle>
86
+ <img src="${this.iconSrc}" />
87
+ </md-badge>
88
+ `;case"callback":return r.html`
89
+ <md-badge color="lime" circle>
90
+ <md-icon name="icon-icon-callback_18"></md-icon>
91
+ </md-badge>
92
+ `;case"progressive_campaign":return r.html`
93
+ <md-badge color="green" circle>
94
+ <md-icon name="icon-icon-campaign_18"></md-icon>
95
+ </md-badge>
96
+ `;default:return r.html` <slot name="task-type"></slot> `}}handleClick(e){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:e}})),this.blur()}handleKeyDown(e){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:e.code},bubbles:!0,composed:!0}))}renderChatCount(){if(this.quantity<=0)return o.nothing;const e=this.quantity>99?"99+":this.quantity.toString();return this.isRestyle?r.html` <md-badge color="unreadcount" outlined> ${e} </md-badge>`:r.html` <span class="new-chat-quantity">${e}</span> `}getAriaLabel(){var e,t;if(this.customAriaLabel)return this.customAriaLabel;let i=this.queue;if(!i){const s=this.querySelector('[slot="queue"]');if(s){i=null!==(t=null===(e=s.textContent)||void 0===e?void 0:e.trim())&&void 0!==t?t:s.innerText.trim();const a=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(i);if(a){const[,e=0,t,s]=a.map(Number);(new Date).setHours(e,t,s),i=i.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${e?e+" hours ":""}${t} minutes ${s} seconds`)}}}return`${this.mediaType} ${this.status} ${this.title} ${i} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[n.A,d.A]}get sanitizedTabIndexForContainer(){var e;return null!==(e=parseInt(this.tabIndexForContainer))&&void 0!==e?e:0}render(){return r.html`
80
97
  <div
81
98
  part="task-item-container"
82
- class="md-taskitem ${(0,a.classMap)({selected:this.selected})}"
99
+ class="md-taskitem ${(0,l.classMap)({selected:this.selected,"is-restyle":this.isRestyle})}"
83
100
  tabindex=${this.sanitizedTabIndexForContainer}
84
101
  aria-selected="${this.selected}"
85
102
  @click=${e=>this.handleClick(e)}
@@ -87,30 +104,31 @@
87
104
  aria-label=${this.getAriaLabel()}
88
105
  >
89
106
  <div class="md-taskitem__mediatype">
90
- ${this.renderTaskType()}
91
- ${this.status?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${this.renderStatus()} </span> `:l.nothing}
107
+ ${this.taskTypeTemplate}
108
+ ${this.status?r.html` <span class=${`md-taskitem__status ${this.status}`}> ${this.renderStatus()} </span> `:o.nothing}
92
109
  </div>
93
110
  <div class="md-taskitem__content" part="task-item-content">
94
- ${this.popovertitle?n.html` <span class="md-taskitem__content_popover_title">${this.popovertitle}</span> `:l.nothing}
95
- ${this.title?n.html`
96
- <span class="md-taskitem__content_title ${(0,a.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
111
+ ${this.popovertitle?r.html` <span class="md-taskitem__content_popover_title">${this.popovertitle}</span> `:o.nothing}
112
+ ${this.title?r.html`
113
+ <span
114
+ class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
97
115
  >${this.title}</span
98
116
  >
99
- `:l.nothing}
117
+ `:o.nothing}
100
118
  <div class="md-taskitem__content_inner">
101
119
  <span class="md-taskitem__content_queue">
102
- ${this.queue.length>0?this.queue:n.html` <slot name="queue"></slot> `}
120
+ ${this.queue.length>0?this.queue:r.html` <slot name="queue"></slot> `}
103
121
  </span>
104
122
  </div>
105
- ${this.lastmessage?n.html`
123
+ ${this.lastmessage?r.html`
106
124
  <span class="md-taskitem__content_chat">
107
125
  <span class="new-chat_massages">${this.lastmessage}</span>
108
126
  </span>
109
- `:l.nothing}
127
+ `:o.nothing}
110
128
  </div>
111
129
  <div class="md-taskitem__addition">
112
130
  <slot></slot>
113
131
  ${this.renderChatCount()}
114
132
  </div>
115
133
  </div>
116
- `}};m([(0,n.property)({type:String})],t.prototype,"mediaType",void 0),m([(0,n.property)({type:String})],t.prototype,"status",void 0),m([(0,n.property)({type:String})],t.prototype,"popovertitle",void 0),m([(0,n.property)({type:String})],t.prototype,"queue",void 0),m([(0,n.property)({type:Boolean})],t.prototype,"accepted",void 0),m([(0,n.property)({type:Boolean})],t.prototype,"displayOnlyTitle",void 0),m([(0,n.property)({type:Number})],t.prototype,"quantity",void 0),m([(0,n.property)({type:String})],t.prototype,"lastmessage",void 0),m([(0,n.property)({type:Boolean})],t.prototype,"selected",void 0),m([(0,n.property)({type:String})],t.prototype,"customAriaLabel",void 0),m([(0,n.property)({type:String})],t.prototype,"iconSrc",void 0),m([(0,n.property)({type:String})],t.prototype,"tabIndexForContainer",void 0),m([(0,n.property)({type:String,reflect:!0})],t.prototype,"title",null),m([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],t.prototype,"itemTitle",null),t=m([(0,s.w)("md-task-item")],t),e.ELEMENT=t}(o||(o={}))},97822:e=>{e.exports=o}},m={};function c(e){var t=m[e];if(void 0!==t)return t.exports;var i=m[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.m=d,a=[],c.O=(e,t,i,o)=>{if(!t){var s=1/0;for(d=0;d<a.length;d++){for(var[t,i,o]=a[d],r=!0,n=0;n<t.length;n++)(!1&o||s>=o)&&Object.keys(c.O).every((e=>c.O[e](t[n])))?t.splice(n--,1):(r=!1,o<s&&(s=o));if(r){a.splice(d--,1);var l=i();void 0!==l&&(e=l)}}return e}o=o||0;for(var d=a.length;d>0&&a[d-1][2]>o;d--)a[d]=a[d-1];a[d]=[t,i,o]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8111:0,8339:0};c.O.j=t=>0===e[t];var t=(t,i)=>{var o,s,[r,n,l]=i,a=0;if(r.some((t=>0!==e[t]))){for(o in n)c.o(n,o)&&(c.m[o]=n[o]);if(l)var d=l(c)}for(t&&t(i);a<r.length;a++)s=r[a],c.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return c.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var p=c.O(void 0,[4367,1890,6272,6325,6283,9217,2176,6798,5830,1200,2576,2019,182],(()=>c(86610)));return c.O(p)})()));
134
+ `}};c([(0,r.property)({type:String})],t.prototype,"mediaType",void 0),c([(0,r.property)({type:String})],t.prototype,"status",void 0),c([(0,r.property)({type:String})],t.prototype,"popovertitle",void 0),c([(0,r.property)({type:String})],t.prototype,"queue",void 0),c([(0,r.property)({type:Boolean})],t.prototype,"accepted",void 0),c([(0,r.property)({type:Boolean,attribute:"display-only-title"})],t.prototype,"displayOnlyTitle",void 0),c([(0,r.property)({type:Number})],t.prototype,"quantity",void 0),c([(0,r.property)({type:String})],t.prototype,"lastmessage",void 0),c([(0,r.property)({type:Boolean})],t.prototype,"selected",void 0),c([(0,r.property)({type:String})],t.prototype,"customAriaLabel",void 0),c([(0,r.property)({type:String})],t.prototype,"iconSrc",void 0),c([(0,r.property)({type:String})],t.prototype,"tabIndexForContainer",void 0),c([(0,r.property)({type:Boolean,attribute:"is-restyle"})],t.prototype,"isRestyle",void 0),c([(0,r.property)({type:String,reflect:!0})],t.prototype,"title",null),c([(0,r.property)({type:String,reflect:!0,attribute:"item-title"})],t.prototype,"itemTitle",null),t=c([(0,a.w)("md-task-item")],t),e.ELEMENT=t}(s||(s={}))},97822:e=>{e.exports=a}},p={};function h(e){var t=p[e];if(void 0!==t)return t.exports;var i=p[e]={exports:{}};return m[e](i,i.exports,h),i.exports}h.m=m,c=[],h.O=(e,t,i,s)=>{if(!t){var a=1/0;for(l=0;l<c.length;l++){for(var[t,i,s]=c[l],n=!0,r=0;r<t.length;r++)(!1&s||a>=s)&&Object.keys(h.O).every((e=>h.O[e](t[r])))?t.splice(r--,1):(n=!1,s<a&&(a=s));if(n){c.splice(l--,1);var o=i();void 0!==o&&(e=o)}}return e}s=s||0;for(var l=c.length;l>0&&c[l-1][2]>s;l--)c[l]=c[l-1];c[l]=[t,i,s]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={8111:0,8339:0};h.O.j=t=>0===e[t];var t=(t,i)=>{var s,a,[n,r,o]=i,l=0;if(n.some((t=>0!==e[t]))){for(s in r)h.o(r,s)&&(h.m[s]=r[s]);if(o)var d=o(h)}for(t&&t(i);l<n.length;l++)a=n[l],h.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return h.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var u=h.O(void 0,[4367,1890,6272,6325,6283,9217,2176,6798,5830,1200,2576,3553,6700,528,9788,8028,2019,182],(()=>h(86610)));return h.O(u)})()));
@@ -1 +1 @@
1
- require("../4367"),require("../1890"),require("../6272"),require("../6325"),require("../6283"),require("../9217"),require("../2176"),require("../6798"),require("../5830"),require("../1200"),require("../2576"),require("../2019"),require("../182"),module.exports=require("../comp/md-task-item-entry");
1
+ require("../4367"),require("../1890"),require("../6272"),require("../6325"),require("../6283"),require("../9217"),require("../2176"),require("../6798"),require("../5830"),require("../1200"),require("../2576"),require("../3553"),require("../6700"),require("../528"),require("../9788"),require("../8028"),require("../2019"),require("../182"),module.exports=require("../comp/md-task-item-entry");
@@ -1054,7 +1054,7 @@
1054
1054
  <div class="md-accordion" part="accordion">
1055
1055
  <slot name="accordion-item"></slot>
1056
1056
  </div>
1057
- `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),h([(0,l.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=h([(0,n.w)("md-accordion")],e),t.ELEMENT=e}(s||(s={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>o,themeManager:()=>r});var s=i(85314);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setVisualRebrandEnabled:s.action,setMomentumAvatar:s.action,update:s.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new o},37782:t=>{t.exports=h},38028:(t,e,i)=>{i.d(e,{Avatar:()=>s}),i(80528),i(61200),i(69788);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),c=i(8229),p=i(37782),u=i(22887),m=i(3553),y=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[n.A,m.A]}isPresenceType(t){return u.eO.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E0)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}updated(t){super.updated(t);const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:i}=(0,u.E0)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get iconSize(){return(this.size/2).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?a.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?a.html`
1057
+ `}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"multiple",void 0),h([(0,l.query)('slot[name="accordion-item"]')],e.prototype,"accordionItemSlotElement",void 0),e=h([(0,n.w)("md-accordion")],e),t.ELEMENT=e}(s||(s={}))},37719:(t,e,i)=>{i.d(e,{ThemeManager:()=>o,themeManager:()=>r});var s=i(85314);class o{get isMomentumV2Enabled(){return"momentumV2"===this.themeName}constructor(t){this.isDarkMode=!1,this.themeName="lumos",this.isVisualRebrandEnabled=!1,this.isMomentumAvatarEnabled=!1,(0,s.makeObservable)(this,{isDarkMode:s.observable,themeName:s.observable,isVisualRebrandEnabled:s.observable,isMomentumAvatarEnabled:s.observable,isMomentumV2Enabled:s.computed,setDarkMode:s.action,setThemeName:s.action,setVisualRebrandEnabled:s.action,setMomentumAvatar:s.action,update:s.action}),t&&this.update(t)}update(t){void 0!==t.isDarkMode&&(this.isDarkMode=t.isDarkMode),void 0!==t.themeName&&(this.themeName=t.themeName),void 0!==t.isVisualRebrandEnabled&&(this.isVisualRebrandEnabled=t.isVisualRebrandEnabled),void 0!==t.isMomentumAvatarEnabled&&(this.isMomentumAvatarEnabled=t.isMomentumAvatarEnabled)}setDarkMode(t){this.isDarkMode=t}setThemeName(t){this.themeName=t}setVisualRebrandEnabled(t){this.isVisualRebrandEnabled=t}setMomentumAvatar(t){this.isMomentumAvatarEnabled=t}}const r=new o},37782:t=>{t.exports=h},38028:(t,e,i)=>{i.d(e,{Avatar:()=>s}),i(80528),i(61200),i(69788);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),c=i(8229),p=i(37782),u=i(22887),m=i(3553),y=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this._tabIndex=0,this.alt="",this.src="",this.label="",this.title="",this.color="",this.decrypting=!1,this.role="img",this.iconName="",this.failurePresence=!1,this.type="",this.newMomentum=!1,this.typing=!1,this.size=40,this.hasNotification=!1,this.clickable=!1,this.avatarStyle="default",this.state="rest",this.imageLoaded=!1,this.imageErrored=!1,this.presenceColor="",this.presenceIcon="",this.iconNameMap={"channel-chat":"chat-filled","channel-social":"sms-message-filled","channel-sms-inbound":"sms-filled","channel-sms-outbound":"sms-outgoing-filled","channel-email-inbound":"email-filled","channel-email-outbound":"email-outgoing-filled","channel-call":"handset-filled","channel-call-inbound":"incoming-call-legacy-filled","channel-callback":"outgoing-call-legacy-filled","channel-headset":"headset-filled","channel-campaign":"campaign-management-bold","channel-emoji":"emoji-happy-filled","channel-webex":"webex-app-icon-color-container","channel-fb-messenger":"social-fbmessenger-color","channel-facebook":"social-facebook-color","channel-apple-chat":"apple-business-chat-color","channel-line":"social-line-color","channel-twitter-x":"social-x","channel-viber":"social-viber-color","channel-whats-app":"social-whatsapp-color","channel-we-chat":"social-wechat-color","channel-spam":"participant-unknown-bold"}}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[n.A,m.A]}isPresenceType(t){return u.eO.includes(t)}firstUpdated(){const t=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(t){const{presenceColor:e,presenceIcon:i}=(0,u.E0)(t,this.failurePresence,this.newMomentum);this.presenceColor=e,this.presenceIcon=i}}updated(t){super.updated(t);const e=this.presenceType||(this.isPresenceType(this.type)?this.type:"");if(e&&(t.has("type")||t.has("presenceType")||t.has("newMomentum"))){const{presenceColor:t,presenceIcon:i}=(0,u.E0)(e,this.failurePresence,this.newMomentum);this.presenceColor=t,this.presenceIcon=i}t.has("role")&&this.style.setProperty("--avatar-cursor","button"===this.role?"pointer":"default")}get avatarClassMap(){return Object.assign(Object.assign({},this.newMomentum&&"bot"!==this.type||!this.type?{}:{[`md-avatar--${this.type}`]:!0}),{[`md-avatar--${this.size}`]:!!this.size,[`md-avatar--${this.color}`]:!!this.color})}get avatarLetterClassMap(){return{"md-decrypting":this.decrypting,[`md-avatar--${this.color}`]:this.color,"new-momentum":this.newMomentum}}get avatarStyleMap(){return{[`md-avatar--${this.color}`]:this.color}}get pretifyTitle(){if(this.title.length){const t=this.title.trim().split(" ");return 1===t.length?t[0].charAt(0):t[0].charAt(0)+t[t.length-1].charAt(0)}return this.title}get chatIconName(){return"chat-filled"}getIconName(t){return this.iconNameMap[t]||""}get chatIconSize(){return this.iconSize}get iconSize(){return 24===this.size?"16":28===this.size?"18":32===this.size?"20":36===this.size?"22":40===this.size?"24":48===this.size?"28":56===this.size?"32":64===this.size?"36":72===this.size?"40":Math.round(this.size/1.7).toString()}get renderIsTyping(){return"typing"===this.type||this.typing?a.html` <md-loading></md-loading> `:l.nothing}get avatarLetter(){return this.title?a.html`
1058
1058
  <span class="md-avatar__letter ${(0,d.classMap)(this.avatarLetterClassMap)}">
1059
1059
  ${this.pretifyTitle}
1060
1060
  <slot></slot>
@@ -1070,7 +1070,7 @@
1070
1070
  </span>
1071
1071
  `}get avatarImage(){return a.html`
1072
1072
  ${(0,p.until)(this.loadImage().then((t=>(this.handleImageLoad(),a.html` ${t} `))).catch((()=>this.handleImageError())),a.html` ${this.iconName?this.avatarIcon:this.title?a.html` ${this.avatarLetter} `:l.nothing} `)}
1073
- `}loadImage(){return t=this,e=void 0,s=function*(){return new Promise(((t,e)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>t(i),i.onerror=t=>e(t),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)}))},new((i=void 0)||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}));var t,e,i,s}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(t){if(!this.clickable)return;const{code:e}=t;(0,r.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.clickable&&(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}getBrandOrDesignIconSet(t){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(t)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?a.html`
1073
+ `}loadImage(){return t=this,e=void 0,s=function*(){return new Promise(((t,e)=>{const i=document.createElement("img");i.src=this.src,i.alt=this.alt,i.onload=()=>t(i),i.onerror=t=>e(t),i.classList.add("md-avatar__img"),i.classList.toggle("md-avatar__img--hidden",!this.imageLoaded)}))},new((i=void 0)||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}));var t,e,i,s}handleImageLoad(){this.imageLoaded=!0}handleImageError(){this.imageErrored=!0}handleKeyDown(t){if(!this.clickable)return;const{code:e}=t;(0,r.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.clickable&&(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}getBrandOrDesignIconSet(t){return new Set(["webex-app-icon-color-container","social-fbmessenger-color","social-facebook-color","apple-business-chat-color","social-line-color","social-viber-color","social-x","social-whatsapp-color","social-wechat-color"]).has(t)?"momentumBrandVisuals":"momentumDesign"}get avatarContent(){return this.src&&!this.imageErrored?this.avatarImage:this.iconName?this.avatarIcon:this.title?this.avatarLetter:l.nothing}renderPresence(){return this.newMomentum&&(this.presenceType||this.type)&&"self"!==this.type&&this.presenceIcon?a.html`
1074
1074
  <md-presence
1075
1075
  class="avatar-presence"
1076
1076
  name="${this.presenceIcon}"
@@ -2292,7 +2292,7 @@
2292
2292
  </div>
2293
2293
  </md-datepicker>
2294
2294
  </div>
2295
- `}};p([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),p([(0,a.property)({type:String})],e.prototype,"minDate",void 0),p([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),p([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),p([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),p([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),p([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),p([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),p([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),p([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),p([(0,a.property)({type:String})],e.prototype,"locale",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),p([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),p([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),p([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=p([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(63704),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(50182),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType="call",this.status="",this.popovertitle="",this.queue="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.renderTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return n.html`
2295
+ `}};p([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),p([(0,a.property)({type:String})],e.prototype,"minDate",void 0),p([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),p([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),p([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),p([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),p([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),p([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),p([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),p([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),p([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),p([(0,a.property)({type:String})],e.prototype,"locale",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),p([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),p([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),p([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),p([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=p([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(50182),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType="call",this.status="",this.popovertitle="",this.queue="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.renderLegacyTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return n.html`
2296
2296
  <md-badge color="green" circle>
2297
2297
  <md-icon name="handset-filled" size="20" iconSet="momentumDesign"></md-icon>
2298
2298
  </md-badge>
@@ -2305,19 +2305,24 @@
2305
2305
  <md-icon name="incoming-call-legacy-filled" size="20" iconSet="momentumDesign"></md-icon>
2306
2306
  </md-badge>
2307
2307
  `;case"applemessages":case"midcall telephony":case"icon src":return n.html`
2308
- <md-badge circle>
2308
+ <md-badge class="avatar-badge" circle>
2309
2309
  <img src="${this.iconSrc}" />
2310
2310
  </md-badge>
2311
2311
  `;case"callback":return n.html`
2312
- <md-badge color="lime" circle>
2312
+ <md-badge class="avatar-badge" color="lime" circle>
2313
2313
  <md-icon name="icon-icon-callback_18"></md-icon>
2314
2314
  </md-badge>
2315
2315
  `;case"progressive_campaign":return n.html`
2316
- <md-badge color="green" circle>
2316
+ <md-badge class="avatar-badge" color="green" circle>
2317
2317
  <md-icon name="icon-icon-campaign_18"></md-icon>
2318
2318
  </md-badge>
2319
2319
  `;case"outbound-campaign":return n.html`
2320
- <md-avatar title="Channel Campaign" type="channel-campaign" avatar-style="default" state="rest"></md-avatar>
2320
+ <md-avatar
2321
+ title="Channel Campaign"
2322
+ type="channel-campaign"
2323
+ avatar-style="default"
2324
+ state=${this.selected?"active":"rest"}
2325
+ ></md-avatar>
2321
2326
  `;case"chat":return n.html`
2322
2327
  <md-badge color="blue" circle>
2323
2328
  <md-icon name="chat-filled" size="20" iconSet="momentumDesign"></md-icon>
@@ -2338,10 +2343,22 @@
2338
2343
  <md-badge bgColor="#25D366" circle>
2339
2344
  <md-icon name="whatsApp_16" iconSet="momentumUI" color="white-100"></md-icon>
2340
2345
  </md-badge>
2341
- `;default:return n.html` <slot name="task-type"></slot> `}},this.renderStatus=()=>{switch(this.status){case"consulting":return n.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"play":return n.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"hold":return n.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"conference":return n.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"transfered":return n.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"courtesy_callback":return n.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"campaign":return n.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return n.html` <slot name="task-status"></slot> `}}}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}renderChatCount(){return this.quantity>0?this.quantity>99?n.html` <span class="new-chat-quantity">99+</span> `:n.html` <span class="new-chat-quantity">${this.quantity}</span> `:a.nothing}getAriaLabel(){var t;if(this.customAriaLabel)return this.customAriaLabel;let e=this.queue;if(!e){const i=this.querySelector('[slot="queue"]');if(i){e=(null===(t=i.textContent)||void 0===t?void 0:t.trim())||i.innerText.trim();const s=e.match(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/);if(s){const[,t=0,i,o]=s.map(Number);(new Date).setHours(t,i,o),e=e.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${i} minutes ${o} seconds`)}}}return`${this.mediaType} ${this.status} ${this.title} ${e} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,d.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}render(){return n.html`
2346
+ `;default:return n.html` <slot name="task-type"></slot> `}},this.renderStatus=()=>{switch(this.status){case"consulting":return n.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"play":return n.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"hold":return n.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"conference":return n.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"transfered":return n.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case"courtesy_callback":return n.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case"campaign":return n.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return n.html` <slot name="task-status"></slot> `}}}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}getChannelAvatar(t){return n.html`<md-avatar size="32" type=${t} state=${this.selected?"active":"rest"}></md-avatar>`}get taskTypeTemplate(){return n.html`${this.isRestyle?this.renderTaskType:this.renderLegacyTaskType()}`}get renderTaskType(){switch(this.mediaType.toLowerCase()){case"telephony":return this.getChannelAvatar("channel-call");case"outbound telephony":return this.getChannelAvatar("channel-callback");case"inbound telephony":return this.getChannelAvatar("channel-call-inbound");case"applemessages":return this.getChannelAvatar("channel-apple-chat");case"outbound-campaign":return this.getChannelAvatar("channel-campaign");case"chat":return this.getChannelAvatar("channel-chat");case"email":return this.getChannelAvatar("channel-email-inbound");case"sms":return this.getChannelAvatar("channel-sms-inbound");case"facebook":return this.getChannelAvatar("channel-fb-messenger");case"whatsapp":return this.getChannelAvatar("channel-whats-app");case"messenger":return this.getChannelAvatar("channel-facebook");case"midcall telephony":case"icon src":return n.html`
2347
+ <md-badge circle>
2348
+ <img src="${this.iconSrc}" />
2349
+ </md-badge>
2350
+ `;case"callback":return n.html`
2351
+ <md-badge color="lime" circle>
2352
+ <md-icon name="icon-icon-callback_18"></md-icon>
2353
+ </md-badge>
2354
+ `;case"progressive_campaign":return n.html`
2355
+ <md-badge color="green" circle>
2356
+ <md-icon name="icon-icon-campaign_18"></md-icon>
2357
+ </md-badge>
2358
+ `;default:return n.html` <slot name="task-type"></slot> `}}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}renderChatCount(){if(this.quantity<=0)return a.nothing;const t=this.quantity>99?"99+":this.quantity.toString();return this.isRestyle?n.html` <md-badge color="unreadcount" outlined> ${t} </md-badge>`:n.html` <span class="new-chat-quantity">${t}</span> `}getAriaLabel(){var t,e;if(this.customAriaLabel)return this.customAriaLabel;let i=this.queue;if(!i){const s=this.querySelector('[slot="queue"]');if(s){i=null!==(e=null===(t=s.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:s.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(i);if(o){const[,t=0,e,s]=o.map(Number);(new Date).setHours(t,e,s),i=i.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${s} seconds`)}}}return`${this.mediaType} ${this.status} ${this.title} ${i} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,d.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}render(){return n.html`
2342
2359
  <div
2343
2360
  part="task-item-container"
2344
- class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
2361
+ class="md-taskitem ${(0,l.classMap)({selected:this.selected,"is-restyle":this.isRestyle})}"
2345
2362
  tabindex=${this.sanitizedTabIndexForContainer}
2346
2363
  aria-selected="${this.selected}"
2347
2364
  @click=${t=>this.handleClick(t)}
@@ -2349,13 +2366,14 @@
2349
2366
  aria-label=${this.getAriaLabel()}
2350
2367
  >
2351
2368
  <div class="md-taskitem__mediatype">
2352
- ${this.renderTaskType()}
2369
+ ${this.taskTypeTemplate}
2353
2370
  ${this.status?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${this.renderStatus()} </span> `:a.nothing}
2354
2371
  </div>
2355
2372
  <div class="md-taskitem__content" part="task-item-content">
2356
2373
  ${this.popovertitle?n.html` <span class="md-taskitem__content_popover_title">${this.popovertitle}</span> `:a.nothing}
2357
2374
  ${this.title?n.html`
2358
- <span class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
2375
+ <span
2376
+ class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
2359
2377
  >${this.title}</span
2360
2378
  >
2361
2379
  `:a.nothing}
@@ -2375,7 +2393,7 @@
2375
2393
  ${this.renderChatCount()}
2376
2394
  </div>
2377
2395
  </div>
2378
- `}};h([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),h([(0,n.property)({type:String})],e.prototype,"queue",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"displayOnlyTitle",void 0),h([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),h([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),h([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),h([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),h([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),h([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),e=h([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var s,o,r,n;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>o}),i(96798),i(61200),i(83192);var s,o,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(52759),c=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(s||(s={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.state=s.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.expandable=!1}connectedCallback(){super.connectedCallback()}static get styles(){return[n.A,h.A]}get isActive(){return this.state===s.ACTIVE}expandCardToggled(){var t;this.state=this.isActive?s.DEFAULT:s.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isActive},bubbles:!0,composed:!0}))}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===s.INACTIVE}}get footerClassMap(){return{"md-card-v2-footer":!0,hidden:!this.expandable}}renderHeader(){return a.html`
2396
+ `}};h([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),h([(0,n.property)({type:String})],e.prototype,"status",void 0),h([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),h([(0,n.property)({type:String})],e.prototype,"queue",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),h([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),h([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),h([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),h([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),h([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),h([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),h([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),h([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),e=h([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var s,o,r,n;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>o}),i(96798),i(61200),i(83192);var s,o,r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(52759),c=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(s||(s={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.state=s.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.expandable=!1}connectedCallback(){super.connectedCallback()}static get styles(){return[n.A,h.A]}get isActive(){return this.state===s.ACTIVE}expandCardToggled(){var t;this.state=this.isActive?s.DEFAULT:s.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isActive},bubbles:!0,composed:!0}))}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===s.INACTIVE}}get footerClassMap(){return{"md-card-v2-footer":!0,hidden:!this.expandable}}renderHeader(){return a.html`
2379
2397
  <div class="md-card-v2-header-title">
2380
2398
  <h3>${this.header}</h3>
2381
2399
  ${this.info?a.html`
@@ -2672,7 +2690,7 @@
2672
2690
  >
2673
2691
  <slot></slot>
2674
2692
  </form>
2675
- `}};a([(0,r.property)({type:String})],e.prototype,"rel",void 0),a([(0,r.property)({type:String})],e.prototype,"name",void 0),a([(0,r.property)({type:String})],e.prototype,"action",void 0),a([(0,r.property)({type:String})],e.prototype,"label",void 0),a([(0,r.property)({type:String})],e.prototype,"method",void 0),a([(0,r.property)({type:String})],e.prototype,"target",void 0),a([(0,r.property)({type:String})],e.prototype,"enctype",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([(0,r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([(0,r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([(0,r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([(0,r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([(0,r.query)(".md-form")],e.prototype,"form",void 0),e=a([(0,o.wW)("md-form")],e),t.ELEMENT=e}(s||(s={}))},99687:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>m.Badge,Breadcrumb:()=>y.Breadcrumb,Button:()=>v.Button,ButtonGroup:()=>b.ButtonGroup,Card:()=>w.Card,CardAi:()=>g.CardAi,CardV2:()=>f.CardV2,ChatMessage:()=>C.ChatMessage,Checkbox:()=>x.Checkbox,CheckboxGroup:()=>S.CheckboxGroup,Chip:()=>$.Chip,Coachmark:()=>T.Coachmark,CoachmarkPopover:()=>E.CoachmarkPopover,CodeEditor:()=>P,ComboBox:()=>R.ComboBox,CompositeAvatar:()=>u.CompositeAvatar,DatePicker:()=>F.DatePicker,DatePickerCalendar:()=>z.DatePickerCalendar,DatePickerDay:()=>V.DatePickerDay,DatePickerMonth:()=>j.DatePickerMonth,DatePickerWeek:()=>N.DatePickerWeek,DateRangePicker:()=>_.DateRangePicker,DateTimePicker:()=>B.DateTimePicker,Draggable:()=>U.Draggable,DraggableItem:()=>q.DraggableItem,Dropdown:()=>H.Dropdown,EditableTextfield:()=>K.EditableTextfield,Favorite:()=>W.Favorite,FloatingMinimizedModal:()=>G.FloatingMinimizedModal,FloatingModal:()=>Y.FloatingModal,Form:()=>X.Form,Grabber:()=>Q.Grabber,HelpText:()=>Z.HelpText,Icon:()=>c.Icon,Input:()=>tt.Input,InputFile:()=>J.InputFile,Label:()=>et.Label,Link:()=>it.Link,List:()=>st.List,ListItem:()=>ot.ListItem,Loading:()=>rt.Loading,MeetingAlert:()=>nt.MeetingAlert,Menu:()=>lt.Menu,MenuItem:()=>dt.MenuItem,MenuOverlay:()=>at.MenuOverlay,Modal:()=>ht.Modal,Pagination:()=>ct.Pagination,PhoneInput:()=>pt.PhoneInput,Popover:()=>ut.Popover,ProgressBar:()=>mt.ProgressBar,Radio:()=>yt.Radio,RadioGroup:()=>bt.RadioGroup,Slider:()=>vt.Slider,Spinner:()=>gt.Spinner,Tab:()=>Ct.Tab,TabPanel:()=>xt.TabPanel,Table:()=>wt.Table,TableAdvanced:()=>ft.TableAdvanced,Tabs:()=>St.Tabs,TaskItem:()=>$t.TaskItem,Theme:()=>Et.Theme,ThemeManager:()=>Lt.ThemeManager,TimePicker:()=>Tt.TimePicker,ToggleSwitch:()=>kt.ToggleSwitch,Tooltip:()=>At.Tooltip,iconUrlManager:()=>It.O,themeManager:()=>Lt.themeManager});var s=i(33328),o=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028),c=i(61200);const p=["bot","group","self","typing","channel-chat","channel-sms-inbound","channel-sms-outbound","channel-email-inbound","channel-email-outbound","channel-call","channel-social","channel-callback","channel-headset","channel-campaign","channel-emoji","channel-webex","channel-fb-messenger","channel-apple-chat","channel-line","channel-twitter-x","channel-viber","channel-whats-app","channel-we-chat","channel-spam","channel-custom",""];var u=i(2207),m=i(63704),y=i(92992),b=i(45629),v=i(96798),g=i(64311),f=i(90827),w=i(10654),C=i(95281),x=i(3664),S=i(55294),$=i(60046),E=i(29895),T=i(46312),k=i(3001),A=i(26272),I=i(45001),L=i.n(I),O=i(41488);const M=O.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var P,D=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends O.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[A.A,M]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find((t=>"CODE"===t.tagName));if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find((t=>t));if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),L().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,s=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);L().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))((function(t,i){function n(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(e,s||[])).next())}));var e,s,o,r}getAllAcceptTypes(){const t=L().listLanguages();return t.length?t.map((t=>L().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return O.html`
2693
+ `}};a([(0,r.property)({type:String})],e.prototype,"rel",void 0),a([(0,r.property)({type:String})],e.prototype,"name",void 0),a([(0,r.property)({type:String})],e.prototype,"action",void 0),a([(0,r.property)({type:String})],e.prototype,"label",void 0),a([(0,r.property)({type:String})],e.prototype,"method",void 0),a([(0,r.property)({type:String})],e.prototype,"target",void 0),a([(0,r.property)({type:String})],e.prototype,"enctype",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"no-validate"})],e.prototype,"novalidate",void 0),a([(0,r.property)({type:String,reflect:!0,attribute:"accept-charset"})],e.prototype,"charset",void 0),a([(0,r.property)({type:Boolean,reflect:!0,attribute:"is-valid"})],e.prototype,"isvalid",void 0),a([(0,r.property)({type:String,attribute:"autofill-token"})],e.prototype,"token",void 0),a([(0,r.property)({type:Boolean,attribute:"allow-redirect"})],e.prototype,"allowRedirect",void 0),a([(0,r.property)({type:String,attribute:"autofill-name"})],e.prototype,"autofillname",void 0),a([(0,r.query)(".md-form")],e.prototype,"form",void 0),e=a([(0,o.wW)("md-form")],e),t.ELEMENT=e}(s||(s={}))},99687:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>m.Badge,Breadcrumb:()=>y.Breadcrumb,Button:()=>v.Button,ButtonGroup:()=>b.ButtonGroup,Card:()=>w.Card,CardAi:()=>g.CardAi,CardV2:()=>f.CardV2,ChatMessage:()=>C.ChatMessage,Checkbox:()=>x.Checkbox,CheckboxGroup:()=>S.CheckboxGroup,Chip:()=>$.Chip,Coachmark:()=>T.Coachmark,CoachmarkPopover:()=>E.CoachmarkPopover,CodeEditor:()=>P,ComboBox:()=>R.ComboBox,CompositeAvatar:()=>u.CompositeAvatar,DatePicker:()=>F.DatePicker,DatePickerCalendar:()=>z.DatePickerCalendar,DatePickerDay:()=>V.DatePickerDay,DatePickerMonth:()=>j.DatePickerMonth,DatePickerWeek:()=>N.DatePickerWeek,DateRangePicker:()=>_.DateRangePicker,DateTimePicker:()=>B.DateTimePicker,Draggable:()=>U.Draggable,DraggableItem:()=>q.DraggableItem,Dropdown:()=>H.Dropdown,EditableTextfield:()=>K.EditableTextfield,Favorite:()=>W.Favorite,FloatingMinimizedModal:()=>G.FloatingMinimizedModal,FloatingModal:()=>Y.FloatingModal,Form:()=>X.Form,Grabber:()=>Q.Grabber,HelpText:()=>Z.HelpText,Icon:()=>c.Icon,Input:()=>tt.Input,InputFile:()=>J.InputFile,Label:()=>et.Label,Link:()=>it.Link,List:()=>st.List,ListItem:()=>ot.ListItem,Loading:()=>rt.Loading,MeetingAlert:()=>nt.MeetingAlert,Menu:()=>lt.Menu,MenuItem:()=>dt.MenuItem,MenuOverlay:()=>at.MenuOverlay,Modal:()=>ht.Modal,Pagination:()=>ct.Pagination,PhoneInput:()=>pt.PhoneInput,Popover:()=>ut.Popover,ProgressBar:()=>mt.ProgressBar,Radio:()=>yt.Radio,RadioGroup:()=>bt.RadioGroup,Slider:()=>vt.Slider,Spinner:()=>gt.Spinner,Tab:()=>Ct.Tab,TabPanel:()=>xt.TabPanel,Table:()=>wt.Table,TableAdvanced:()=>ft.TableAdvanced,Tabs:()=>St.Tabs,TaskItem:()=>$t.TaskItem,Theme:()=>Et.Theme,ThemeManager:()=>Lt.ThemeManager,TimePicker:()=>Tt.TimePicker,ToggleSwitch:()=>kt.ToggleSwitch,Tooltip:()=>At.Tooltip,iconUrlManager:()=>It.O,themeManager:()=>Lt.themeManager});var s=i(33328),o=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028),c=i(61200);const p=["bot","group","self","typing",""];var u=i(2207),m=i(63704),y=i(92992),b=i(45629),v=i(96798),g=i(64311),f=i(90827),w=i(10654),C=i(95281),x=i(3664),S=i(55294),$=i(60046),E=i(29895),T=i(46312),k=i(3001),A=i(26272),I=i(45001),L=i.n(I),O=i(41488);const M=O.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var P,D=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends O.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[A.A,M]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find((t=>"CODE"===t.tagName));if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find((t=>t));if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),L().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,s=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);L().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))((function(t,i){function n(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(e,s||[])).next())}));var e,s,o,r}getAllAcceptTypes(){const t=L().listLanguages();return t.length?t.map((t=>L().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return O.html`
2676
2694
  <div class="md-code-editor" part="code-editor">
2677
2695
  <div class="md-code-editor-header">
2678
2696
  <div class="md-code-editor-name">
@@ -2727,4 +2745,4 @@
2727
2745
  size="16"
2728
2746
  ></md-icon>
2729
2747
  </label>
2730
- `}};p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),p([(0,l.property)({type:String})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"id",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=p([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},j={};function N(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return V[t].call(i.exports,i,i.exports,N),i.exports}N.m=V,R=[],N.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<R.length;l++){for(var[e,i,s]=R[l],r=!0,n=0;n<e.length;n++)(!1&s||o>=s)&&Object.keys(N.O).every((t=>N.O[t](e[n])))?e.splice(n--,1):(r=!1,s<o&&(o=s));if(r){R.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var l=R.length;l>0&&R[l-1][2]>s;l--)R[l]=R[l-1];R[l]=[e,i,s]},N.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return N.d(e,{a:e}),e},B=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,N.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);N.r(i);var s={};_=_||[null,B({}),B([]),B(B)];for(var o=2&e&&t;"object"==typeof o&&!~_.indexOf(o);o=B(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,N.d(i,s),i},N.d=(t,e)=>{for(var i in e)N.o(e,i)&&!N.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},N.f={},N.e=t=>Promise.all(Object.keys(N.f).reduce(((e,i)=>(N.f[i](t,e),e)),[])),N.u=t=>"chunks/md-"+t+".js",N.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),N.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},z="@momentum-ui/web-components:",N.l=(t,e,i,s)=>{if(F[t])F[t].push(e);else{var o,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==z+i){o=l;break}}o||(r=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,N.nc&&o.setAttribute("nonce",N.nc),o.setAttribute("data-webpack",z+i),o.src=t),F[t]=[e];var d=(e,i)=>{o.onerror=o.onload=null,clearTimeout(h);var s=F[t];if(delete F[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(i))),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),r&&document.head.appendChild(o)}},N.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},N.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2576:0,2779:0,2909:0,3001:0,3079:0,3192:0,3413:0,3539:0,3747:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6652:0,6677:0,6724:0,6754:0,6798:0,6834:0,6920:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0,9788:0};N.f.j=(e,i)=>{var s=N.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var o=new Promise(((i,o)=>s=t[e]=[i,o]));i.push(s[2]=o);var r=N.p+N.u(e),n=new Error;N.l(r,(i=>{if(N.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var o=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",n.name="ChunkLoadError",n.type=o,n.request=r,s[1](n)}}),"chunk-"+e,e)}},N.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,n,a]=i,l=0;if(r.some((e=>0!==t[e]))){for(s in n)N.o(n,s)&&(N.m[s]=n[s]);if(a)var d=a(N)}for(e&&e(i);l<r.length;l++)o=r[l],N.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return N.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var U=N.O(void 0,[4367,7103,1890,6272,6325,6283,9217,5830,8889,8210,3135,1598,4977,1572,6366,7251,4974,2243,3553,4548,6700,6795,76,528,1392,9164,2019,1625,3625,6067,8841,4663,3112,3866,1107,7330,7092,9719,6979,9130,6273,9618,8521,4400,779,573,5801,2043,8171,2798,182,2984,7919,1869,2215,5467,4392,630,3604,7833,8728,8227,1250,1705,7997,7875,6400,587,6441,6015,3663],(()=>N(99687)));return N.O(U)})()));
2748
+ `}};p([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),p([(0,l.property)({type:String})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"id",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=p([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},j={};function N(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return V[t].call(i.exports,i,i.exports,N),i.exports}N.m=V,R=[],N.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<R.length;l++){for(var[e,i,s]=R[l],r=!0,n=0;n<e.length;n++)(!1&s||o>=s)&&Object.keys(N.O).every((t=>N.O[t](e[n])))?e.splice(n--,1):(r=!1,s<o&&(o=s));if(r){R.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var l=R.length;l>0&&R[l-1][2]>s;l--)R[l]=R[l-1];R[l]=[e,i,s]},N.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return N.d(e,{a:e}),e},B=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,N.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);N.r(i);var s={};_=_||[null,B({}),B([]),B(B)];for(var o=2&e&&t;"object"==typeof o&&!~_.indexOf(o);o=B(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,N.d(i,s),i},N.d=(t,e)=>{for(var i in e)N.o(e,i)&&!N.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},N.f={},N.e=t=>Promise.all(Object.keys(N.f).reduce(((e,i)=>(N.f[i](t,e),e)),[])),N.u=t=>"chunks/md-"+t+".js",N.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),N.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},z="@momentum-ui/web-components:",N.l=(t,e,i,s)=>{if(F[t])F[t].push(e);else{var o,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==z+i){o=l;break}}o||(r=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,N.nc&&o.setAttribute("nonce",N.nc),o.setAttribute("data-webpack",z+i),o.src=t),F[t]=[e];var d=(e,i)=>{o.onerror=o.onload=null,clearTimeout(h);var s=F[t];if(delete F[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(i))),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),r&&document.head.appendChild(o)}},N.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},N.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2576:0,2779:0,2909:0,3001:0,3079:0,3192:0,3413:0,3539:0,3747:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6652:0,6677:0,6724:0,6754:0,6798:0,6834:0,6920:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0,9788:0};N.f.j=(e,i)=>{var s=N.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var o=new Promise(((i,o)=>s=t[e]=[i,o]));i.push(s[2]=o);var r=N.p+N.u(e),n=new Error;N.l(r,(i=>{if(N.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var o=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",n.name="ChunkLoadError",n.type=o,n.request=r,s[1](n)}}),"chunk-"+e,e)}},N.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,n,a]=i,l=0;if(r.some((e=>0!==t[e]))){for(s in n)N.o(n,s)&&(N.m[s]=n[s]);if(a)var d=a(N)}for(e&&e(i);l<r.length;l++)o=r[l],N.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return N.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var U=N.O(void 0,[4367,7103,1890,6272,6325,6283,9217,5830,8889,8210,3135,1598,4977,1572,6366,7251,4974,2243,3553,6700,528,4548,6795,76,1392,9164,2019,1625,3625,6067,8841,4663,3112,3866,1107,7330,7092,9719,6979,9130,6273,9618,8521,4400,779,573,5801,2043,8171,182,2798,2984,7919,1869,2215,5467,4392,630,3604,7833,8728,8227,1250,1705,7997,7875,6400,587,6441,6015,3663],(()=>N(99687)));return N.O(U)})()));
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- require("./4367"),require("./7103"),require("./1890"),require("./6272"),require("./6325"),require("./6283"),require("./9217"),require("./5830"),require("./8889"),require("./8210"),require("./3135"),require("./1598"),require("./4977"),require("./1572"),require("./6366"),require("./7251"),require("./4974"),require("./2243"),require("./3553"),require("./4548"),require("./6700"),require("./6795"),require("./76"),require("./528"),require("./1392"),require("./9164"),require("./2019"),require("./1625"),require("./3625"),require("./6067"),require("./8841"),require("./4663"),require("./3112"),require("./3866"),require("./1107"),require("./7330"),require("./7092"),require("./9719"),require("./6979"),require("./9130"),require("./6273"),require("./9618"),require("./8521"),require("./4400"),require("./779"),require("./573"),require("./5801"),require("./2043"),require("./8171"),require("./2798"),require("./182"),require("./2984"),require("./7919"),require("./1869"),require("./2215"),require("./5467"),require("./4392"),require("./630"),require("./3604"),require("./7833"),require("./8728"),require("./8227"),require("./1250"),require("./1705"),require("./7997"),require("./7875"),require("./6400"),require("./587"),require("./6441"),require("./6015"),require("./3663"),module.exports=require("./index-entry");
1
+ require("./4367"),require("./7103"),require("./1890"),require("./6272"),require("./6325"),require("./6283"),require("./9217"),require("./5830"),require("./8889"),require("./8210"),require("./3135"),require("./1598"),require("./4977"),require("./1572"),require("./6366"),require("./7251"),require("./4974"),require("./2243"),require("./3553"),require("./6700"),require("./528"),require("./4548"),require("./6795"),require("./76"),require("./1392"),require("./9164"),require("./2019"),require("./1625"),require("./3625"),require("./6067"),require("./8841"),require("./4663"),require("./3112"),require("./3866"),require("./1107"),require("./7330"),require("./7092"),require("./9719"),require("./6979"),require("./9130"),require("./6273"),require("./9618"),require("./8521"),require("./4400"),require("./779"),require("./573"),require("./5801"),require("./2043"),require("./8171"),require("./182"),require("./2798"),require("./2984"),require("./7919"),require("./1869"),require("./2215"),require("./5467"),require("./4392"),require("./630"),require("./3604"),require("./7833"),require("./8728"),require("./8227"),require("./1250"),require("./1705"),require("./7997"),require("./7875"),require("./6400"),require("./587"),require("./6441"),require("./6015"),require("./3663"),module.exports=require("./index-entry");