Skip to Content

JavaScript File

URL: https://www.we-are-digital.co.uk/hs/hsstatic/HubspotToolsMenu/static-1.119/js/index.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Mon, 15 Nov 2021 14:59:45 GMT
Download Time: Less than a second
Cookies: __cfruid=ae387b922806d67c3504
Size: 11 KB
HTTP Headers:  20 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
  
OK Issues: No issues found

1!function(e){var t={}

2;function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}

3}

4;e[o].call(i.exports,i,i.exports,n);i.l=!0;return i.exports}

5n.m=e;n.c=t;n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o}

6)}

7;n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}

8);Object.defineProperty(e,"__esModule",{value:!0}

9)}

10;n.t=function(e,t){1&t&&(e=n(e));if(8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);n.r(o);Object.defineProperty(o,"default",{enumerable:!0,value:e}

11);if(2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}

12.bind(null,i));return o}

13;n.n=function(e){var t=e&&e.__esModule?function(){return e.default}

14:function(){return e}

15;n.d(t,"a",t);return t}

16;n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}

17;n.p="//static.hsappstatic.net/HubspotToolsMenu/static-1.119/";n(n.s=7)}

18([function(e,t){e.exports="//static.hsappstatic.net/HubspotToolsMenu/static-1.119/js/sprocket_white.svg"}

19,function(e,t){e.exports="//static.hsappstatic.net/HubspotToolsMenu/static-1.119/js/sprocket_orange.svg"}

20,function(e,t){e.exports="//static.hsappstatic.net/HubspotToolsMenu/static-1.119/css/toolsmenu.css"}

21,,,,,function(e,t,n){"use strict";n.r(t);var o="HS_SPROCKET_MENU_LOCAL_OVERRIDE",i="https://local.hsappstatic.net/HubspotToolsMenu/static/js/index.js",r=function(){return Array.from(document.body.getElementsByTagName("script")).some((function(e){return e.src===i}

22))}

23,s=function(){return!(!window.localStorage.getItem(o)&&1)&&!r()}

24,a=function(){var e=document.createElement("script");e.src=i;e.onload=function(){setTimeout((function(){var e=new Event("DOMContentLoaded");document.dispatchEvent(e)}

25),100)}

26;document.body.appendChild(e)}

27;s()&&a();function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}

28function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1;o.configurable=!0;"value"in o&&(o.writable=!0);Object.defineProperty(e,o.key,o)}

29}

30function u(e,t,n){t&&c(e.prototype,t);n&&c(e,n);return e}

31var d=n(0),p=n.n(d),m=n(1),f=n.n(m),h=n(2),v=n.n(h),g=function(){function e(t){l(this,e);this.baseUrl=this.getHsBaseUrl(t.app_hs_base_url);this.cpBaseUrl=this.getHsBaseUrl(t.cp_hs_base_url);this.contentId=t.dynamic_page_id&&"0"!==t.dynamic_page_id&&"null"!==t.dynamic_page_id?t.dynamic_page_id:t.page_id;this.categoryId=t.category_id;this.contentGroupId=t.content_group_id;this.portalId=t.portal_id;this.environments={PRODUCTION:1,STAGING:2}

32;this.isCustomerPortal=!0===t.is_customer_portal;this.cmsEnvironment=this.getCmsEnvironmentFromCookie();this.permissionObj={}

33}

34u(e,[{key:"getHsBaseUrl",value:function(e){return window.localStorage.getItem("HS_LOCAL_TESTING")?e.replace(/[^/](\w+?)(?=\.)/,"local"):e}

35}

36,{key:"createElementFromHTML",value:function(e){var t=document.createElement("div");t.innerHTML=e.trim();return t.firstChild}

37}

38,{key:"jsonp",value:function(e,t){window.jsonpHandler=function(e){t(e)}

39;var n=e+(-1!==e.indexOf("?")?"&":"?")+"callback=jsonpHandler",o=document.createElement("script");o.type="text/javascript";o.referrerPolicy="no-referrer-when-downgrade";o.async=!0;o.src=n;document.getElementsByTagName("head")[0].appendChild(o)}

40}

...

</html>