{"version":3,"sources":["loadCSS.js","acon.se.js"],"names":["w","loadCSS","href","before","media","ready","cb","doc","body","setTimeout","loadCB","ss","addEventListener","removeEventListener","ref","document","createElement","refs","getElementsByTagName","childNodes","length","sheets","styleSheets","rel","parentNode","insertBefore","nextSibling","onloadcssdefined","resolvedHref","i","exports","global","this","window","console","log","$","didScroll","expr","external","obj","match","hostname","location","cookieConsent","e","preventDefault","cookie","js","remove","siteNavbarOnScroll","scrollValue","scrollTop","addClass","removeClass","initApsisLeadForms","each","item","form","ApsisLead","FormbuilderInstance","init","formId","data","bindEvents","on","fadeOut","elem","FB","ui","method","display","response","setInterval","name","ctx","jQuery","MTIProjectId","mtiTracking","type","async","src","appendChild","fbAsyncInit","appId","status","xfbml","d","debug","id","getElementById"],"mappings":"CACC,SAASA,GACT,YAEA,IAAIC,GAAU,SAAUC,EAAMC,EAAQC,GAwBrC,QAASC,GAAOC,GACf,MAAIC,GAAIC,KACAF,QAERG,YAAW,WACVJ,EAAOC,KAuBT,QAASI,KACJC,EAAGC,kBACND,EAAGE,oBAAqB,OAAQH,GAEjCC,EAAGP,MAAQA,GAAS,MAlDrB,GAEIU,GAFAP,EAAMP,EAAEe,SACRJ,EAAKJ,EAAIS,cAAe,OAE5B,IAAIb,EACHW,EAAMX,MAEF,CACJ,GAAIc,IAASV,EAAIC,MAAQD,EAAIW,qBAAsB,QAAU,IAAMC,UACnEL,GAAMG,EAAMA,EAAKG,OAAS,GAG3B,GAAIC,GAASd,EAAIe,WACjBX,GAAGY,IAAM,aACTZ,EAAGT,KAAOA,EAEVS,EAAGP,MAAQ,SAcXC,EAAO,WACNS,EAAIU,WAAWC,aAAcd,EAAMR,EAASW,EAAMA,EAAIY,cAGvD,IAAIC,GAAmB,SAAUrB,GAGhC,IAFA,GAAIsB,GAAejB,EAAGT,KAClB2B,EAAIR,EAAOD,OACRS,KACN,GAAIR,EAAQQ,GAAI3B,OAAS0B,EACxB,MAAOtB,IAGTG,YAAW,WACVkB,EAAkBrB,K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zBO,EAAG,kBAAkBK,SAAS,eAK5BL,EAAK,SAAU0B,EAAMC,GAKxB,MAJKA,KACJA,EAAM5D,UAGAqB,EAAE,cAAgBsC,EAAO,KAAMC,GAWvC1C,QAAOhC,QAAQ,wBAEfmC,EAAErB,UAAUV,MAAMwD,IAChB5B,OAAO2C,OAAQ3C,OAAOC,QAGzB,IAAI2C,cAAe,wCAEnB,WACC,GAAIC,GAAc/D,SAASC,cAAc,SACzC8D,GAAYC,KAAO,kBACnBD,EAAYE,MAAQ,OACpBF,EAAYG,IAAM,iCAEjBlE,SAASG,qBAAqB,QAAQ,IAAMH,SAASG,qBAAqB,QAAQ,IAAIgE,YAAYJ,MAIpG7C,OAAOkD,YAAc,WACpBf,GAAGP,MACFuB,MAAO,kBAAmBC,QAAQ,EAAMtC,QAAQ,EAAMuC,OAAO,KAG9D,SAAUC,EAAGC,GACb,GAAIxC,GAAIyC,EAAK,iBAAkB3E,EAAMyE,EAAErE,qBAAqB,UAAU,EAClEqE,GAAEG,eAAeD,KACrBzC,EAAKuC,EAAEvE,cAAc,UAAWgC,EAAGyC,GAAKA,EACxCzC,EAAGgC,OAAQ,EAAMhC,EAAGiC,IAAM,oCAAsCO,EAAQ,SAAW,IAAM,MACzF1E,EAAIU,WAAWC,aAAauB,EAAIlC,KAC/BC,UAAoB","file":"acon.se.min.js","sourcesContent":["/*! loadCSS: load a CSS file asynchronously. [c]2016 @scottjehl, Filament Group, Inc. Licensed MIT */\n(function(w){\n\t\"use strict\";\n\t/* exported loadCSS */\n\tvar loadCSS = function( href, before, media ){\n\t\t// Arguments explained:\n\t\t// `href` [REQUIRED] is the URL for your CSS file.\n\t\t// `before` [OPTIONAL] is the element the script should use as a reference for injecting our stylesheet before\n\t\t\t// By default, loadCSS attempts to inject the link after the last stylesheet or script in the DOM. However, you might desire a more specific location in your document.\n\t\t// `media` [OPTIONAL] is the media type or query of the stylesheet. By default it will be 'all'\n\t\tvar doc = w.document;\n\t\tvar ss = doc.createElement( \"link\" );\n\t\tvar ref;\n\t\tif( before ){\n\t\t\tref = before;\n\t\t}\n\t\telse {\n\t\t\tvar refs = ( doc.body || doc.getElementsByTagName( \"head\" )[ 0 ] ).childNodes;\n\t\t\tref = refs[ refs.length - 1];\n\t\t}\n\n\t\tvar sheets = doc.styleSheets;\n\t\tss.rel = \"stylesheet\";\n\t\tss.href = href;\n\t\t// temporarily set media to something inapplicable to ensure it'll fetch without blocking render\n\t\tss.media = \"only x\";\n\n\t\t// wait until body is defined before injecting link. This ensures a non-blocking load in IE11.\n\t\tfunction ready( cb ){\n\t\t\tif( doc.body ){\n\t\t\t\treturn cb();\n\t\t\t}\n\t\t\tsetTimeout(function(){\n\t\t\t\tready( cb );\n\t\t\t});\n\t\t}\n\t\t// Inject link\n\t\t\t// Note: the ternary preserves the existing behavior of \"before\" argument, but we could choose to change the argument to \"after\" in a later release and standardize on ref.nextSibling for all refs\n\t\t\t// Note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/\n\t\tready( function(){\n\t\t\tref.parentNode.insertBefore( ss, ( before ? ref : ref.nextSibling ) );\n\t\t});\n\t\t// A method (exposed on return object for external use) that mimics onload by polling until document.styleSheets until it includes the new sheet.\n\t\tvar onloadcssdefined = function( cb ){\n\t\t\tvar resolvedHref = ss.href;\n\t\t\tvar i = sheets.length;\n\t\t\twhile( i-- ){\n\t\t\t\tif( sheets[ i ].href === resolvedHref ){\n\t\t\t\t\treturn cb();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetTimeout(function() {\n\t\t\t\tonloadcssdefined( cb );\n\t\t\t});\n\t\t};\n\n\t\tfunction loadCB(){\n\t\t\tif( ss.addEventListener ){\n\t\t\t\tss.removeEventListener( \"load\", loadCB );\n\t\t\t}\n\t\t\tss.media = media || \"all\";\n\t\t}\n\n\t\t// once loaded, set link's media back to `all` so that the stylesheet applies once it loads\n\t\tif( ss.addEventListener ){\n\t\t\tss.addEventListener( \"load\", loadCB);\n\t\t}\n\t\tss.onloadcssdefined = onloadcssdefined;\n\t\tonloadcssdefined( loadCB );\n\t\treturn ss;\n\t};\n\t// commonjs\n\tif( typeof exports !== \"undefined\" ){\n\t\texports.loadCSS = loadCSS;\n\t}\n\telse {\n\t\tw.loadCSS = loadCSS;\n\t}\n}( typeof global !== \"undefined\" ? global : this ));\n","/* eslint-disable */\r\n/// \r\n/* eslint-enable */\r\n\r\nif (!window.console) {\r\n\twindow.console = {\r\n\t\tlog: function () { }\r\n\t}\r\n}\r\n\r\n(function ($, console) {\r\n\tvar didScroll = false\r\n\r\n\t$.expr[':'].external = function (obj) {\r\n\t\treturn !obj.href.match(/^mailto:/) && (obj.hostname !== window.location.hostname)\r\n\t}\r\n\r\n\t// cookie consent\r\n\tvar cookieConsent = function (e) {\r\n\t\te.preventDefault()\r\n\t\tdocument.cookie = 'cookieConsent=true; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/'\r\n\t\tjs('cookie-consent').remove()\r\n\t}\r\n\r\n\t// set navbar class on scroll\r\n\tvar siteNavbarOnScroll = function () {\r\n\t\tvar scrollValue = $(window).scrollTop()\r\n\t\tif (scrollValue > 0) {\r\n\t\t\tjs('site-navbar').addClass('is-sticky')\r\n\t\t} else {\r\n\t\t\tjs('site-navbar').removeClass('is-sticky')\r\n\t\t}\r\n\r\n\t\tdidScroll = true\r\n\t}\r\n\r\n\t// init forms from Apsis Lead\r\n\tvar initApsisLeadForms = function () {\r\n\t\t$('[data-apsis-form]').each(function (i, item) {\r\n\t\t\tvar form = new window.ApsisLead.FormbuilderInstance()\r\n\t\t\tform.init({\r\n\t\t\t\tformId: $(item).data('apsis-form')\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tvar bindEvents = function () {\r\n\t\t// cookie consent\r\n\t\tjs('accept-cookies').on('click', cookieConsent)\r\n\r\n\t\tjs('show-all-services').on('click', function () {\r\n\t\t\t$(this).fadeOut('30')\r\n\t\t})\r\n\r\n\t\t// share button\r\n\t\tjs('facebook-share-btn').on('click', function () {\r\n\t\t\tvar elem = $(this)\r\n\r\n\t\t\twindow.FB.ui({\r\n\t\t\t\tmethod: 'share',\r\n\t\t\t\tdisplay: 'popup',\r\n\t\t\t\thref: elem.data('url')\r\n\t\t\t}, function (response) { })\r\n\r\n\t\t\treturn false\r\n\t\t})\r\n\r\n\t\t// on scroll event handler\r\n\t\t$(window).on('scroll', siteNavbarOnScroll)\r\n\r\n\t\tsetInterval(function () {\r\n\t\t\tif (didScroll) {\r\n\t\t\t\tdidScroll = false\r\n\t\t\t}\r\n\t\t}, 100)\r\n\t}\r\n\r\n\tvar init = function () {\r\n\t\t// eslint-disable-next-line no-console\r\n\t\tconsole.log('Initializing acon.se...')\r\n\t\tbindEvents()\r\n\t\tinitApsisLeadForms()\r\n\t\t// show cookie consent if no accepted\r\n\r\n\t\tif (document.cookie.match(/cookieConsent=[^;]+(.*)?$/) === null) {\r\n\t\t\tjs('cookie-consent').addClass('is-visible')\r\n\t\t}\r\n\t}\r\n\r\n\t// fetch element from data-js param\r\n\tvar js = function (name, ctx) {\r\n\t\tif (!ctx) {\r\n\t\t\tctx = document\r\n\t\t}\r\n\r\n\t\treturn $('[data-js~=\"' + name + '\"]', ctx)\r\n\t}\r\n\r\n\t/* var jsClosest = function (name, ctx) {\r\n\t\tif (!ctx) {\r\n\t\t\tctx = document\r\n\t\t}\r\n\t\treturn $(ctx).closest('[data-js~=\"' + name + '\"]')\r\n\t} */\r\n\r\n\t// Load CSS asynchronously when above the fold css is in use\r\n\twindow.loadCSS('/css/acon.se.min.css')\r\n\r\n\t$(document).ready(init)\r\n})(window.jQuery, window.console)\r\n\r\n/* eslint-disable */\r\nvar MTIProjectId = '96546ccf-47a7-4876-9e4d-42252e96c188';\r\n\r\n(function () {\r\n\tvar mtiTracking = document.createElement('script');\r\n\tmtiTracking.type = 'text/javascript';\r\n\tmtiTracking.async = 'true';\r\n\tmtiTracking.src = '/fonts/mtiFontTrackingCode.js';\r\n\r\n\t(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(mtiTracking);\r\n})();\r\n\r\n\r\nwindow.fbAsyncInit = function () {\r\n\tFB.init({\r\n\t\tappId: '587276751464821', status: true, cookie: true, xfbml: true\r\n\t});\r\n};\r\n(function (d, debug) {\r\n\tvar js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];\r\n\tif (d.getElementById(id)) { return; }\r\n\tjs = d.createElement('script'); js.id = id;\r\n\tjs.async = true; js.src = \"//connect.facebook.net/en_US/all\" + (debug ? \"/debug\" : \"\") + \".js\";\r\n\tref.parentNode.insertBefore(js, ref);\r\n}(document, /*debug*/ false)); /* switch to false on publish */\r\n\r\n/* eslint-enable */\r\n"]}