An unexpected error has occurred

Home News Connectz An unexpected error has occurred
An unexpected error has occurred

An unexpected error has occurred.

/* eslint-disable */

const emptyFunction = () => ({})

// FB pixel
window.getFBPixel = new Promise(resolve => {
window.loadFBPixel = function loadFBPixel() {
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
const FB_PIXEL_IDS = [
‘1712804822377885’,
‘495172008028661’,
‘656154598419042’,
‘833460721476748’
]
window.fbPixelIds = FB_PIXEL_IDS
window.isFbOea = !!window.location.href.match(/eventref=fb_oea/)
fbq.disablePushState = true; // Needed because we manually call PageViews for partner pixels on event pages
FB_PIXEL_IDS.forEach(function (pixelId) {
fbq(‘init’, pixelId);
fbq(‘trackSingle’, pixelId, ‘PageView’);
})

window.loadFBPixel = emptyFunction
resolve()
}
})

// TikTok pixel
window.getTikTokPixel = new Promise(resolve => {
window.loadTikTokPixel = function loadTikTokPixel() {
!function (w, d, t) {
w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=[“page”,”track”,”identify”,”instances”,”debug”,”on”,”off”,”once”,”ready”,”alias”,”group”,”enableCookie”,”disableCookie”,”holdConsent”,”revokeConsent”,”grantConsent”],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(
var e=ttq._i[t]||[],n=0;n {
window.loadTwitterPixel = function loadTwitterPixel() {
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version=’1.1′,s.queue=[],u=t.createElement(n),u.async=!0,u.src=”https://static.ads-twitter.com/uwt.js”,
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,’script’);

window.loadTwitterPixel = emptyFunction
resolve()
}
})

// Branch.io lazy
window.getBranchIo = new Promise((resolve, reject) => {
window.loadBranchIO = function loadBranchIO() {
if (!window.allowBranchIO) {
reject()
return
}
(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s {
if (data && data.data_parsed) {
resolve(data.data_parsed)
} else {
reject(err)
}
});

window.loadBranchIO = emptyFunction
}
})

// Braze lazy
window.getBraze = new Promise(resolve => {
window.loadBraze = function loadBraze() {
+function(a,p,P,b,y){a.braze={};a.brazeQueue=[];for(var s=”BrazeSdkMetadata DeviceProperties Card Card.prototype.dismissCard Card.prototype.removeAllSubscriptions Card.prototype.removeSubscription Card.prototype.subscribeToClickedEvent Card.prototype.subscribeToDismissedEvent Card.fromContentCardsJson ImageOnly CaptionedImage ClassicCard ControlCard ContentCards ContentCards.prototype.getUnviewedCardCount Feed Feed.prototype.getUnreadCardCount ControlMessage InAppMessage InAppMessage.SlideFrom InAppMessage.ClickAction InAppMessage.DismissType InAppMessage.OpenTarget InAppMessage.ImageStyle InAppMessage.Orientation InAppMessage.TextAlignment InAppMessage.CropType InAppMessage.prototype.closeMessage InAppMessage.prototype.removeAllSubscriptions InAppMessage.prototype.removeSubscription InAppMessage.prototype.subscribeToClickedEvent InAppMessage.prototype.subscribeToDismissedEvent InAppMessage.fromJson FullScreenMessage ModalMessage HtmlMessage SlideUpMessage User User.Genders User.NotificationSubscriptionTypes User.prototype.addAlias User.prototype.addToCustomAttributeArray User.prototype.addToSubscriptionGroup User.prototype.getUserId User.prototype.getUserId User.prototype.incrementCustomUserAttribute User.prototype.removeFromCustomAttributeArray User.prototype.removeFromSubscriptionGroup User.prototype.setCountry User.prototype.setCustomLocationAttribute User.prototype.setCustomUserAttribute User.prototype.setDateOfBirth User.prototype.setEmail User.prototype.setEmailNotificationSubscriptionType User.prototype.setFirstName User.prototype.setGender User.prototype.setHomeCity User.prototype.setLanguage User.prototype.setLastKnownLocation User.prototype.setLastName User.prototype.setPhoneNumber User.prototype.setPushNotificationSubscriptionType InAppMessageButton InAppMessageButton.prototype.removeAllSubscriptions InAppMessageButton.prototype.removeSubscription InAppMessageButton.prototype.subscribeToClickedEvent FeatureFlag FeatureFlag.prototype.getStringProperty FeatureFlag.prototype.getNumberProperty FeatureFlag.prototype.getBooleanProperty automaticallyShowInAppMessages destroyFeed hideContentCards showContentCards showFeed showInAppMessage deferInAppMessage toggleContentCards toggleFeed changeUser destroy getDeviceId getDeviceId initialize isPushBlocked isPushPermissionGranted isPushSupported logCardClick logCardDismissal logCardImpressions logContentCardImpressions logContentCardClick logCustomEvent logFeedDisplayed logInAppMessageButtonClick logInAppMessageClick logInAppMessageHtmlClick logInAppMessageImpression logPurchase openSession requestPushPermission removeAllSubscriptions removeSubscription requestContentCardsRefresh requestFeedRefresh refreshFeatureFlags requestImmediateDataFlush enableSDK isDisabled setLogger setSdkAuthenticationSignature addSdkMetadata disableSDK subscribeToContentCardsUpdates subscribeToFeedUpdates subscribeToInAppMessage subscribeToSdkAuthenticationFailures toggleLogging unregisterPush wipeData handleBrazeAction subscribeToFeatureFlagsUpdates getAllFeatureFlags logFeatureFlagImpression”.split(” “),i=0;i<s.length;i++){for(var m=s[i],k=a.braze,l=m.split("."),j=0;j {
window.loadFBPixel();
window.loadTikTokPixel();
window.loadTwitterPixel();
// window.loadBraze(); FX-3664: loadBraze is called by authSaga onIdentify
}
],
preferences: [],
}

const loadCategory = function (catId) {
const loaders = LOADERS[catId] || []
loaders.forEach(function (loader) {
loader()
})
}

// CookieHub Init
window.getCookieHub = new Promise((resolve) => {
if (document.cookie.match(/disable_cookiehub/) || navigator.userAgent.indexOf(“Chrome-Lighthouse”) > -1) return

window.addEventListener(‘load’, function () {
if (window.location.pathname.indexOf(‘/stream/player’) === 0) return
if (window.location.pathname.indexOf(‘/event/deeps’) === 0) return
if (window.location.pathname.indexOf(‘/payment-redirect-callback’) === 0) return

let cpm = {
language: window.NEXT_LOCALE,
onInitialise: function (status) {
window.gtag(‘consent’, ‘update’, {
‘ad_storage’: this.hasConsented(‘marketing’) ? ‘granted’ : ‘denied’,
‘analytics_storage’: this.hasConsented(‘analytics’) ? ‘granted’ : ‘denied’,
});

const check = this.hasConsented.bind(this)
status.categories.forEach(function (category) {
if (check(category.id)) loadCategory(category.id)
})
resolve()
},

onStatusChange: function (status, arg2, arg3) {
window.gtag(‘consent’, ‘update’, {
‘ad_storage’: this.hasConsented(‘marketing’) ? ‘granted’ : ‘denied’,
‘analytics_storage’: this.hasConsented(‘analytics’) ? ‘granted’ : ‘denied’,
});

const check = this.hasConsented.bind(this)
status.categories.forEach(function (category) {
if (check(category.id)) loadCategory(category.id)
})
},
}
;(function(h,u,b){
var d=h.getElementsByTagName(“script”)[0],e=h.createElement(“script”);
e.async=true;e.src=”https://cdn.cookiehub.eu/c2/94563516.js”;
e.onload=function(){u.cookiehub.load(b);};
d.parentNode.insertBefore(e,d);
})(document,window,cpm);
})
})

Source link

Leave a Reply

Your email address will not be published.