js.hsadspixel.net Open in urlscan Pro
2606:4700::6811:df98  Public Scan

URL: https://js.hsadspixel.net/fb.js
Submission: On October 29 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

!function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};e[o].call(i.exports,i,i.exports,t);i.l=!0;return i.exports}var o=[{name:"head-dlb/bundle.production.js",path:"head-dlb/static-1.1160/bundle.production.js",ids:{}}];t.dlbpr=function(e,n){var i=o[e];if(!i.r){i.r=window["__webpack_require_"+i.name+"__"];if(!i.r)throw new Error("dlb "+i.name+" not loaded");i.r.linkDlb(t,i.ids)}return i.r(n)};t.m=e;t.c=n;t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})};t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};t.t=function(e,n){1&n&&(e=t(e));if(8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);t.r(o);Object.defineProperty(o,"default",{enumerable:!0,value:e});if(2&n&&"string"!=typeof e)for(var i in e)t.d(o,i,function(n){return e[n]}.bind(null,i));return o};t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};t.d(n,"a",n);return n};t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};t.p="//static.hsappstatic.net/adsscriptloaderstatic/static-1.605/";t(t.s=0)}([function(e,n,t){"use strict";t.r(n);const o="data-hsjs-portal",i="data-hsjs-env",a="data-hsjs-hublet",r={PROD:"prod",QA:"qa"};function d(e){if(!e)return null;const n=document.querySelectorAll(`script[${e}]`);return n.length?n[0].getAttribute(e):null}function s(){return d(i)||r.PROD}function c(){let e=d(o);e=parseInt(e,10);if(!e)throw new Error("HS Pixel Loader can't identify portalId via "+o);return e}function l(){return d(a)||"na1"}function u(){return"withCredentials"in new XMLHttpRequest}function p(e,n){!function(e,n,t,o,i,a,r){if(!e.fbq){i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)};e._fbq||(e._fbq=i);i.push=i;i.loaded=!0;i.version="2.0";i.queue=[];(a=n.createElement(t)).async=!0;a.src=o;(r=n.getElementsByTagName(t)[0]).parentNode.insertBefore(a,r)}}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");for(var t=0;t<e.length;t++){e[t].limitedDataUseEnabled&&fbq("dataProcessingOptions",["LDU"],0,0);fbq("init",""+e[t].pixelId,{external_id:n});fbq("set","agent","hubspot",""+e[t].pixelId)}fbq("track","PageView")}function f(e){const n=document.createElement("script");n.async=!0;n.src="https://www.googletagmanager.com/gtag/js?id=AW-"+e;document.head.appendChild(n)}function w(e){window.dataLayer=window.dataLayer||[];var n="qa"===s()?"dZWU5Zm":"dZTQ1Zm";function t(){dataLayer.push(arguments)}t("js",new Date);t("set","developer_id."+n,!0);for(var o=0;o<e.length;o++)t("config","AW-"+e[o].pixelId)}function b(e){for(var n=0;n<e.length;n++){const t=e[n].pixelId;window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[];window._linkedin_data_partner_ids.push(t)}!function(){var e=document.getElementsByTagName("script")[0],n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://snap.licdn.com/li.lms-analytics/insight.min.js";e.parentNode.insertBefore(n,e)}()}function h(e,n){for(var t in e)if(e.hasOwnProperty(t)&&e[t].length>0){var o=e[t];switch(t){case"FACEBOOK":if(n&&!e.loadedFbPixel){p(o,n);e.loadedFbPixel=!0}break;case"ADWORDS":f(o[0].pixelId);w(o);break;case"LINKEDIN":b(o)}}}function v(e,n){for(var t in e)if(e.hasOwnProperty(t)&&e[t].length>0)switch(t){case"FACEBOOK":if(!e.loadedFbPixel){p(e[t],n);e.loadedFbPixel=!0}}}function g(e,n){for(var t in e)if(e.hasOwnProperty(t)&&e[t].length>0)switch(t){case"FACEBOOK":fbq("consent","grant");break;case"ADWORDS":dataLayer.push("consent","update",{ad_storage:"granted",analytics_storage:"granted"})}}function m(e){if(e.hasOwnProperty("LINKEDIN"))window.location.reload();else for(var n in e)if(e.hasOwnProperty(n)&&e[n].length>0)switch(n){case"FACEBOOK":fbq("consent","revoke");break;case"ADWORDS":dataLayer.push("consent","update",{ad_storage:"denied",analytics_storage:"denied"})}}const _=function(e){return`https://${e}?portalId=${c()}`},y=function(e,n){const t=new XMLHttpRequest;t.addEventListener("load",()=>{const e=JSON.parse(t.responseText);n(e)});t.open("GET",_(e));t.send()},O=e=>"hubspotJsonpCallbackName"+e,E=function(e,n){return`https://${e}?${["portalId="+c(),"callback="+n].join("&")}`},S=function(e,n,t){const o=document.createElement("script"),i=O(t);window[i]=function(e){n(e);document.body.removeChild(o);delete window[i]};o.src=E(e,i);document.body.appendChild(o)};function P({jsonUrl:e,jsonpUrl:n},t,o){if(!e&&!n)throw new Error("Missing jsonUrl and jsonpUrl args");u()?y(e,t):S(n,t,o)}const j=function(){const e="qa"===s()?"qa":"",n=l(),t=`api${"na1"!==n&&n?"-"+n:""}.hubapi${e}.com`;let o,i=null,a=null;window.enabledEventSettings={FACEBOOK:[],ADWORDS:[]};if(!(window.disabledHsPopups&&window.disabledHsPopups.indexOf("ADS")>-1)){window._hsp=window._hsp||[];window._hsp.push(["addPrivacyConsentListener",function(e){e.categories.advertisement?i?g(i,a):P({jsonUrl:t+"/hs-script-loader-public/v1/config/pixels-and-events/json",jsonpUrl:t+"/hs-script-loader-public/v1/config/pixels-and-events/jsonp"},e=>{i=e.pixels;h(e.pixels,a);window.enabledEventSettings=e.enhancedConversionEventSettings},"addPixels"):i&&m(i)}]);window._hsq=window._hsq||[];window._hsq.push(["addUserTokenListener",function(e){a=e;i&&v(i,a)}]);window.addEventListener("message",e=>{if(e.data&&"hsFormCallback"===e.data.type&&"onFormSubmitted"===e.data.eventName){window.enabledEventSettings.FACEBOOK&&window.enabledEventSettings.FACEBOOK.forEach(n=>{r(n,e.data.data)});window.enabledEventSettings.ADWORDS&&window.enabledEventSettings.ADWORDS.forEach(n=>{d(n,e.data.data)})}},!1)}function r(e,n){if(void 0===window.fbq)return;const{hubSpotFormId:t,eventCategory:o}=e,{conversionId:i,formGuid:a}=n;a===t&&window.fbq("track",o,{},{eventID:i})}function d(e,n){const{hubSpotFormId:t,pixelId:i,conversionLabel:a}=e,{conversionId:r,formGuid:d}=n;o=function(){window.dataLayer.push(arguments)};d===t&&null!==a&&o("event","conversion",{send_to:`AW-${i}/${a}`,transaction_id:r})}};window.PIXELS_RAN=window.PIXELS_RAN||!1;if(!window.PIXELS_RAN){window.PIXELS_RAN=!0;j()}}]);
//# sourceMappingURL=//static.hsappstatic.net/adsscriptloaderstatic/static-1.605/bundles/pixels-release.js.map