1import{a as u,b as p}from"./chunk-NPWLU3FF.js";import{ja as d,la as n,ya as s}from"./chunk-CSSHMB2L.js";var i=class{constructor(){this.document=n(s),this.name="sierra";let e=this.document.createElement("style");e.textContent="div[data-sierra-chat-launcher] { position: absolute; }",this.document.head.appendChild(e)}openChat(){let e=this.document?.defaultView?.sierraSXM;if(!e)throw new Error("Sierra API not found");e.openChatModal()}};var h={general:"chat-247-Link-body1",cancel:"chat-247-Link-body2",agents:"chat-247-Link-body3"},a=class{constructor(){this.name="247"}init(e="general",o,r){return o.id=h[e]||h.general,this.waitForChatEnabled(o,r)}waitForChatEnabled(e,o){let r=new MutationObserver((C,v)=>{C.forEach(x=>{x.type==="attributes"&&this.chatLinkHasCssClassAppliedFromTwentyFourSeven(e)&&(o(),v.disconnect())})});return r.observe(e,{attributes:!0,childList:!1,subtree:!1}),r}chatLinkHasCssClassAppliedFromTwentyFourSeven(e){return e.classList.contains("chat-enabled")||e.classList.contains("chat-engage")||e.classList.contains("chat-engaged")}};var T=new d("chatProvider",{providedIn:"root",factory:()=>"liveperson"});var l=class{constructor(){this.document=n(s);let e=this.document.createElement("style");e.textContent="div[data-sierra-chat-launcher] { position: absolute; }",this.document.head.appendChild(e)}openChat(){this.document?.defaultView.sierraSXM.openChatModal()}},c=class{openChat(){}},m=class{openChat(){}};function f(t){switch(t){case"247":return new a;case"liveperson":return new c;default:return new i}}function N({chatProvider:t}){return[{provide:u,useValue:t},{provide:p,useFactory:()=>f(t)}]}function P({chatProvider:t}){return[{provide:p,useFactory:()=>f(t)}]}export{T as a,l as b,c,m as d,N as e,P as f};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.