1import{K as d,N as c,Ob as p,d as o,dc as r,ha as h}from"./chunk-RYQV473N.js";var E=(()=>{class s{constructor(t,e){this.document=t,this.platformId=e,this.dataLayerName="dataLayer",this.scriptId="GTMscript",this.ready=new o(!1),this.gtmCoordenacaoCuidado=new o(!1)}config(t){return this.configOptions=t,this}init(){r(this.platformId)&&!this.document.getElementById(this.scriptId)&&this.configOptions&&this.loadScript()}setUser(t){r(this.platformId)&&(this.userId=t,this.dataLayer&&this.dataLayer.push({userId:this.userId}))}getUser(){return this.userId}setErrorEvent(t,e,i=""){this.dataLayer&&this.setEvent("Exception",t,e,i)}setEvent(t,e,i,n=""){this.dataLayer&&this.dataLayer.push({event:"gaEvent",gaEventCategory:t,gaEventAction:e,gaEventLabel:i,gaEventValue:n})}setDimension(t,e){if(this.dataLayer){let i={};i[t]=e,this.dataLayer.push(i)}}setDimensionWithObject(t){this.dataLayer&&this.dataLayer.push(t)}loadScript(){if(r(this.platformId)&&!this.document.getElementById(this.scriptId)){let t=this.dataLayerName,e=`${this.configOptions.src}?id=${this.configOptions.containerId}>m_auth=${this.configOptions.auth}>m_preview=${this.configOptions.preview}>m_cookies_win=x`,i={"gtm.start":new Date().getTime(),event:"gtm.js"};this.userId&&(i.userId=this.userId),this.dataLayer=this.getDataLayer(i,t),this.createScript(e,this.scriptId,!0)}}createScript(t,e,i=!1){let n=this.document.getElementsByTagName("style")[0],f=n.parentNode,a=this.document.createElement("script");a.id=e,a.async=i,a.src=t,f.insertBefore(a,n),a.onload=()=>{this.ready.next(!0)}}getDataLayer(t,e){return r(this.platformId)?(window[e]=window[e]||[],t&&window[e].push(t),window[e]):null}setGtmCoordCuidados(t){this.gtmCoordenacaoCuidado.next(t)}static{this.\u0275fac=function(e){return new(e||s)(c(p),c(h))}}static{this.\u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{E as a};
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.