(self.webpackChunkebui=self.webpackChunkebui||[]).push([[4346],{42725:function(t,i,n){var e,s;!function(o,r){"use strict";e=[n(45128)],s=function(t){return o.grylls=function(t){function Grylls(){this.load=function(i,n){var e={debugging:!1,enabled:!1,identify:!1,identifyData:{},launchSupportMultipleFacebookPixels:!1},s=["Google Analytics","Twitter Ads","Facebook Pixel","AdWords"];this.options=Object.assign({},e,n),i&&this.options.enabled&&(s.forEach(function(t){i[t]&&(i[t]=this.filterEmptyPixelIds(i[t]))}.bind(this)),this.trackingData=this.checkForGA4Property(i),this.trackingData=this.format(i),this.analyticsjs=t,this.debug(),this.analyticsjs.initialize(this.trackingData,this.options),this.options.identify&&this.identify(this.options.identifyData))},this.proxy=function(t){var i=Array.prototype.slice.call(arguments,1);this.analyticsjs&&this.analyticsjs.initialized&&(this.analyticsjs[t].apply(null,i),this.logInfo("Grylls event: ",t,i))},this.debug=function(){this.options.debugging&&(console.group("::TRACKING_PIXEL_DEBUG::"),console.log("TrackingData:",this.trackingData),console.log("Options:",this.options),console.groupEnd(),this.proxy("debug"))},this.logInfo=function(t,i,n){var e=t+i;this.options.debugging&&(n.length&&(e=e+" - "+n),console.log(e,"trackingPixelArguments: ",JSON.stringify(n)))},this.identify=function(t){this.proxy("identify",this.options.uuid,t)},this.page=function(t){this.proxy("page",t)},this.track=function(t,i){this.proxy("track",t,i)},this.renameKey=function(t,i,n){return i===n||(t[n]=t[i],delete t[i]),t},this.renameKeyInObjectArray=function(t,i,n){return t?(t.forEach(function(t){this.renameKey(t,i,n)}.bind(this)),t):null},this.cleanEmptyAttr=function(t,i){return Object.keys(t).forEach((function(n){t[n][i]||delete t[n][i]})),t},this.filterEmptyPixelIds=function(t){return t.filter((function(t){return!!t.pixelId}))},this.checkForGA4Property=function(t){var i=t["Google Analytics"];return i&&0!==i.length?(i.some((function(t){return t.pixelId.includes("G-")}))&&(t["Google Analytics 4"]=i,delete t["Google Analytics"]),t):t},this.format=function(t){return this.renameKeyInObjectArray(t["Google Analytics"],"pixelId","trackingId"),this.renameKeyInObjectArray(t.AdWords,"pixelId","conversionId"),this.renameKeyInObjectArray(t["Twitter Ads"],"pixelId","page"),this.renameKeyInObjectArray(t["Google Analytics 4"],"pixelId","measurementId"),this.cleanEmptyAttr(t,"events")}}return new Grylls}(t)}.apply(i,e),void 0===s||(t.exports=s)}(this)},24346:(t,i,n)=>{t.exports=n(42725)}}]); //# sourceMappingURL=4346.9305a9e0ab8421dbda37.async.web.js.map