export const __webpack_esm_id__=861;export const __webpack_esm_ids__=[861,9244];export const __webpack_esm_modules__={5076(e,t,a){a.d(t,{LG:()=>r,Um:()=>l,i0:()=>n});var i=a(2927),o=a(9244);const n=(e,t,a,o,n)=>i.html`${e?s(t,a,o,n):c(t,a,n)}`,m=(e,t,a,o)=>i.html`<md-avatar
    size="32"
    type=${a}
    state=${e?"active":"rest"}
    presence-type=${null!=t?t:""}
    newMomentum
    >${null!=o?o:i.nothing}</md-avatar
  >`,s=(e,t,a,n)=>{switch(e.toLowerCase()){case o.r.PROGRESSIVE_CAMPAIGN:case o.r.CALLBACK:return m(t,a,"channel-callback-v2");case o.r.TELEPHONY:return m(t,a,"channel-call");case o.r.OUTBOUND_TELEPHONY:return m(t,a,"channel-callback");case o.r.INBOUND_TELEPHONY:return m(t,a,"channel-call-inbound");case o.r.APPLE_MESSAGES:return m(t,a,"channel-apple-chat");case o.r.OUTBOUND_CAMPAIGN:return m(t,a,"channel-campaign");case o.r.CHAT:return m(t,a,"channel-chat");case o.r.EMAIL:return m(t,a,"channel-email-inbound");case o.r.SMS:return m(t,a,"channel-sms-inbound");case o.r.FACEBOOK:return m(t,a,"channel-fb-messenger");case o.r.WHATSAPP:return m(t,a,"channel-whats-app");case o.r.MESSENGER:return m(t,a,"channel-facebook");case o.r.MIDCALL_TELEPHONY:return m(t,a,"channel-monitoring");case o.r.OUTBOUND_EMAIL:return m(t,a,"channel-email-outbound");case o.r.OUTBOUND_SMS:return m(t,a,"channel-sms-outbound");case o.r.SOCIAL_X:return m(t,a,"channel-twitter-x");case o.r.VIBER:return m(t,a,"channel-viber");case o.r.WECHAT:return m(t,a,"channel-we-chat");case o.r.WEBEX:return m(t,a,"channel-webex");case o.r.OUTBOUND_CHAT:return m(t,a,"channel-chat-outbound");case o.r.GOOGLE_MESSAGES:return m(t,a,"channel-custom",i.html`<img height="32px" width="32px" src="${n}" />`);case o.r.ICON_SRC:return m(t,a,"channel-custom",i.html`<img height="20px" width="20px" src="${n}" />`);case o.r.WORKITEM:return m(t,a,"channel-work-item");default:return m(t,a,"channel-custom",i.html`<slot name="task-type"></slot>`)}},r=e=>{switch(e){case o.j.CONSULTING:return i.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case o.j.PLAY:return i.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case o.j.HOLD:return i.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case o.j.CONFERENCE:return i.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case o.j.TRANSFERED:return i.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case o.j.COURTESY_CALLBACK:return i.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case o.j.CAMPAIGN:return i.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return i.html` <slot name="task-status"></slot> `}},c=(e,t,a)=>{switch(e.toLowerCase()){case o.r.TELEPHONY:return i.html`
        <md-badge color="green" circle>
          <md-icon name="handset-filled" size="20" iconSet="momentumDesign"></md-icon>
        </md-badge>
      `;case o.r.OUTBOUND_TELEPHONY:return i.html`
        <md-badge color="green" circle>
          <md-icon name="outgoing-call-legacy-filled" size="20" iconSet="momentumDesign"></md-icon>
        </md-badge>
      `;case o.r.INBOUND_TELEPHONY:return i.html`
        <md-badge color="green" circle>
          <md-icon name="incoming-call-legacy-filled" size="20" iconSet="momentumDesign"></md-icon>
        </md-badge>
      `;case o.r.APPLE_MESSAGES:case o.r.MIDCALL_TELEPHONY:case o.r.ICON_SRC:return i.html`
        <md-badge circle>
          <img src="${a}" />
        </md-badge>
      `;case o.r.CALLBACK:return i.html`
        <md-badge color="lime" circle>
          <md-icon name="icon-icon-callback_18"></md-icon>
        </md-badge>
      `;case o.r.PROGRESSIVE_CAMPAIGN:return i.html`
        <md-badge color="green" circle>
          <md-icon name="icon-icon-campaign_18"></md-icon>
        </md-badge>
      `;case o.r.OUTBOUND_CAMPAIGN:return i.html`
        <md-avatar
          title="Channel Campaign"
          type="channel-campaign"
          avatar-style="default"
          state=${t?"active":"rest"}
        ></md-avatar>
      `;case o.r.CHAT:return i.html`
        <md-badge color="blue" circle>
          <md-icon name="chat-filled" size="20" iconSet="momentumDesign"></md-icon>
        </md-badge>
      `;case o.r.EMAIL:return i.html`
        <md-badge color="violet" circle>
          <md-icon name="email-filled" size="20" iconSet="momentumDesign"></md-icon>
        </md-badge>
      `;case o.r.SMS:return i.html`
        <md-badge color="darkmint" circle>
          <md-icon name="sms-filled" size="20" iconSet="momentumDesign" color="white-100"></md-icon>
        </md-badge>
      `;case o.r.FACEBOOK:return i.html`
        <md-badge bgColor="#0078FF" circle>
          <md-icon name="messenger_16" iconSet="momentumUI" color="white-100"></md-icon>
        </md-badge>
      `;case o.r.WHATSAPP:return i.html`
        <md-badge bgColor="#25D366" circle>
          <md-icon name="whatsApp_16" iconSet="momentumUI" color="white-100"></md-icon>
        </md-badge>
      `;case o.r.OUTBOUND_CHAT:return i.html`
        <md-badge color="blue" circle>
          <md-icon name="chat-outbound-filled" size="20" iconSet="momentumDesign"></md-icon>
        </md-badge>
      `;case o.r.WORKITEM:return i.html`
        <md-avatar
          title="Channel Work Item"
          type="channel-work-item"
          avatar-style="default"
          state=${t?"active":"rest"}
        ></md-avatar>
      `;default:return i.html` <slot name="task-type"></slot> `}},l=(e,t,a)=>{if(e<=0)return a.removeAttribute("has-messages"),i.nothing;a.setAttribute("has-messages","true");const o=e>99?"99+":e.toString();return t?i.html` <md-badge color="unreadcount"> ${o} </md-badge>`:i.html` <span class="new-chat-quantity">${o}</span> `}},8634(e,t,a){a.d(t,{A:()=>i});const i=a(2927).css`:host{width:100%}.md-taskitem{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:stretch;border-radius:.5rem;color:var(--md-secondary-text-color);cursor:pointer;margin-bottom:4px;min-height:5rem;padding:.75rem;position:relative;width:auto;z-index:0}.md-taskitem.selected{background-color:var(--taskitem-pressed-bg-color,#fff);box-shadow:0 .125rem .25rem rgba(0,0,0,.16)}.md-taskitem.selected .md-taskitem__content_chat,.md-taskitem.selected .md-taskitem__content_popover_title,.md-taskitem.selected .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem.selected .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:hover{background-color:var(--taskitem-hover-bg-color)}.md-taskitem:hover .md-taskitem__content_chat,.md-taskitem:hover .md-taskitem__content_popover_title,.md-taskitem:hover .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem:hover .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:active{background-color:var(--taskitem-pressed-bg-color)}.md-taskitem:active .md-taskitem__content_chat,.md-taskitem:active .md-taskitem__content_popover_title,.md-taskitem:active .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem:active .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:focus{background:var(--taskitem-focus-bg-color);box-shadow:none;outline:0}.md-taskitem:focus::after{box-shadow:0 0 0 .125rem var(--taskitem-focus-border-color,#007aa3)}.md-taskitem::after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:-1;border-radius:.5rem;margin:-.125rem}.md-taskitem__mediatype{margin-inline-end:.5rem;position:relative;width:2.625rem}.md-taskitem__mediatype img{max-width:fit-content}.md-taskitem__mediatype .md-taskitem__status{align-items:center;display:inline-flex;justify-content:space-around;position:absolute;background:var(--taskitem-status-bg-color);border-radius:50%;bottom:-4px;color:var(--taskitem-status-text-color);height:1.25rem;right:-4px;width:1.25rem}.md-taskitem__mediatype .md-taskitem__status md-icon{height:.75rem}.md-taskitem__mediatype .md-taskitem__status md-icon::part(icon){vertical-align:top}.md-taskitem__mediatype .md-taskitem__status.hold{background:var(--taskitem-status-pause-bg-color)}.md-taskitem__content{align-content:stretch;align-items:flex-start;align-self:stretch;display:flex;flex:0 1 auto;flex-direction:column;justify-content:center;width:calc(100% - (2.625rem + 6.25rem))}.md-taskitem__content_popover_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--taskitem-text-color);font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;line-height:.9375rem;margin-bottom:.5rem;width:100%}.md-taskitem__content_popover_title.popover-item-title{margin-bottom:0}.md-taskitem__content_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.1875rem;margin-bottom:.5rem;width:100%}.md-taskitem__content_title.mainTitle{color:var(--taskitem-text-color);font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif)}.md-taskitem__content_title.display-only-title{margin-bottom:0;width:6.25rem}.md-taskitem__content_inner{display:flex;flex:0 1 auto;width:100%}.md-taskitem__content_queue{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:.875rem;width:100%}.md-taskitem__content_chat{color:var(--taskitem-chat-text-color);display:flex;font-size:12px;line-height:.875rem;margin-top:.5rem;position:relative;width:100%}.md-taskitem__content_chat .new-chat_massages{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline-end:2.5rem;width:calc(100% - .5rem)}.md-taskitem__addition{align-items:flex-end;display:flex;flex-direction:column;margin-inline-start:.5rem;text-align:end;width:6.25rem}.md-taskitem__addition .new-chat-quantity{background:var(--taskitem-chat-quantity-bg-color);border-radius:9px;color:var(--taskitem-chat-quantity-text-color);display:inline-block;font-size:10px;line-height:.875rem;min-width:18px;padding:.125rem .25rem;text-align:center}:host([is-restyle]) .md-taskitem{padding:.5rem .75rem;justify-content:space-between}:host([is-restyle]) .md-taskitem__mediatype{margin-inline-end:.75rem;white-space:nowrap;width:auto}:host([is-restyle]) .md-taskitem .md-taskitem__content{width:auto;min-width:0;flex:1}:host([is-restyle]) .md-taskitem .md-taskitem__content_popover_title,:host([is-restyle]) .md-taskitem .md-taskitem__content_title{font-size:1rem;font-weight:500;line-height:24px;margin:0;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);color:var(--taskitem-restyle-text-color)}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue{font-size:.875rem;line-height:20px;color:var(--taskitem-text-color);width:auto}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time{font-size:.875rem;line-height:20px;color:var(--taskitem-text-color);margin-inline-start:4px;min-width:4.375rem;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time_dot{background-color:var(--taskitem-restyle-dot-color);border-radius:50%;height:.25rem;width:.25rem;display:inline-flex;margin:3px 0}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time ::slotted(*){display:inline-flex}:host([is-restyle]) .md-taskitem .md-taskitem__content_chat{margin:0;font-size:.875rem;line-height:20px;color:var(--taskitem-text-color)}:host([is-restyle]) .md-taskitem .md-taskitem__content_chat .new-chat_massages{padding:0}:host([is-restyle]) .md-taskitem__addition{white-space:nowrap;margin-inline-start:.75rem;width:auto}:host([is-restyle]) .md-taskitem__addition.empty_addition{margin:0}:host([is-restyle]) .md-taskitem .avatar-badge::part(badge){height:2rem;width:2rem;background-color:var(--avatar-darkgray-bg-color)}:host([is-restyle]) .md-taskitem.selected .avatar-badge::part(badge){background-color:var(--avatar-white-bg-color)}:host([is-restyle]) .md-taskitem.selected .md-taskitem__content_popover_title,:host([is-restyle]) .md-taskitem.selected .md-taskitem__content_title{font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif)}:host([is-restyle]) .md-taskitem::after{margin:0}:host([is-restyle][disabled]) .md-taskitem{cursor:not-allowed;pointer-events:none}:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_chat,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_popover_title,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_queue,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_title{color:var(--taskitem-restyle-text-disabled-color)}:host([is-restyle][has-messages=true]) .md-taskitem__content_popover_title ::part(tooltip_reference),:host([is-restyle][has-messages=true]) .md-taskitem__content_title ::part(tooltip_reference){font-weight:700!important}:host([is-restyle][has-messages=true]) .md-taskitem__addition{margin-inline-end:.75rem!important}@media(forced-colors:active){.md-taskitem:focus{outline:1px solid Highlight}.md-taskitem.selected,.md-taskitem:hover{forced-color-adjust:none;outline:1px solid Highlight;background-color:Highlight;color:HighlightText;box-shadow:none}.md-taskitem:active{forced-color-adjust:none;outline:1px solid HighlightText;background-color:Highlight;color:HighlightText;box-shadow:none}.md-taskitem__addition .new-chat-quantity{forced-color-adjust:auto}}`},9244(e,t,a){a.d(t,{j:()=>i,r:()=>o});const i={CONSULTING:"consulting",PLAY:"play",HOLD:"hold",CONFERENCE:"conference",TRANSFERED:"transfered",COURTESY_CALLBACK:"courtesy_callback",CAMPAIGN:"campaign"},o={TELEPHONY:"telephony",OUTBOUND_TELEPHONY:"outbound telephony",INBOUND_TELEPHONY:"inbound telephony",OUTBOUND_CAMPAIGN:"outbound-campaign",CALLBACK:"callback",CHAT:"chat",PROGRESSIVE_CAMPAIGN:"progressive_campaign",MIDCALL_TELEPHONY:"midcall telephony",APPLE_MESSAGES:"applemessages",ICON_SRC:"icon src",EMAIL:"email",SMS:"sms",FACEBOOK:"facebook",WHATSAPP:"whatsapp",MESSENGER:"messenger",OUTBOUND_EMAIL:"outboundemail",OUTBOUND_SMS:"outboundsms",SOCIAL_X:"socialx",VIBER:"viber",WECHAT:"wechat",WEBEX:"webex",GOOGLE_MESSAGES:"googlemessages",OUTBOUND_CHAT:"outbound_chat",WORKITEM:"workitem"}}};