PageSourceSearch

https://www.airgas.com/_ui/addons/smarteditaddon/shared/common/js/webApplicationInjector.js?v=1789789706

js airgas.com collected 2026-10-02 03:27:52 UTC 7,649 bytes, 6 lines download raw bytes

1!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3);class o{static getWebappScriptElementFromDocument(t){if(t.currentScript){if(!(t.currentScript instanceof HTMLScriptElement))throw new Error("getWebappScriptElementFromDocument() found non htlm script element");return t.currentScript}const e=t.querySelector("script#"+o.webappScriptId);if(e)return e;const n=t.querySelectorAll(`script[src*=${o.webappScriptName}]`);if(1!==n.length)throw new Error(`SmartEdit unable to load - invalid ${o.webappScriptName} script tag`);return n.item(0)}static extractQueryParameter(t,e){const n={};return t.replace(/([?&])([^&=]+)=([^&]*)?/g,(t,e,r,o)=>(n[r]=o,"")),n[e]}static injectJS(t,e=0){t.length&&e<t.length&&o.getScriptJs()(t[e],(function(){o.injectJS(t,e+1)}))}static injectCSS(t,e,n=0){if(!e||0===e.length)return;const r=document.createElement("link");r.rel="stylesheet",r.href=e[n],t.appendChild(r),n+1<e.length&&o.injectCSS(t,e,n+1)}static getScriptJs(){return r}}e.default=o,o.webappScriptId="smartedit-injector",o.webappScriptName="webApplicationInjector"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(2),o=n(0),a=n(4),i=o.default.getWebappScriptElementFromDocument(document);if(!i)throw new Error("Unable to location webappInjector script");const c=a.default.getWhitelistFromScriptElement(i,window),s=a.default.convertWhitelistingToRegexp(c);parent.postMessage({pk:Math.random(),gatewayId:"smartEditBootstrap",eventId:"loading",data:{location:document.location.href}},"*"),window.addEventListener("load",(function(){parent.postMessage({pk:Math.random(),gatewayId:"smartEditBootstrap",eventId:"bootstrapSmartEdit",data:{location:document.location.href}},"*")})),window.addEventListener("message",(function(t){if("smartEditBootstrap"!==t.data.gatewayId||"bundle"!==t.data.eventId)return;if(!a.default.isAllowed(t.origin,window,s))throw new Error(t.origin+" is not allowed to override this storefront.");!function(t,e){if(window.smartedit=window.smartedit||{},parent.postMessage({gatewayId:"smartEditBootstrap",eventId:"promiseAcknowledgement",data:{pk:t}},"*"),e){const t=document.getElementsByTagName("head")[0];!function(t){if(!t.properties)return;for(const e in t.properties)t.properties.hasOwnProperty(e)&&(window.smartedit[e]=t.properties[e])}(e),function(t){if(!(t.js&&t.js.length>0))return;let e;e="string"==typeof t.js[0]?t.js:t.js.filter(t=>!t.namespaceToCheck||!window[t.namespaceToCheck]).map(t=>t.src);o.default.injectJS(e)}(e),e.css&&e.css.length>0&&o.default.injectCSS(t,e.css)}parent.postMessage({gatewayId:"smartEditBootstrap",eventId:"promiseReturn",data:{pk:t,type:"success"}},"*")}(t.data.pk,t.data.data.resources)}),!1),window.onbeforeunload=function(){parent.postMessage({pk:Math.random(),gatewayId:"smartEditBootstrap",eventId:"unloading",data:{location:document.location.href}},"*")},r.Heartbeat.startSendingHeartBeatToIframe(i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Heartbeat=void 0;class r{static startSendingHeartBeatToIframe(t){const e=r.getHeartBeatInterval(t);setInterval(()=>{parent.postMessage({pk:Math.random(),gatewayId:"heartBeatGateway",eventId:"heartBeat",data:{location:document.location.href}},"*")},e)}static getHeartBeatInterval(t){return parseInt(t.getAttribute("data-smartedit-heart-beat-interval")||r.DEFAULT_HEARTBEAT_INTERVAL,10)}}e.Heartbeat=r,r.DEFAULT_HEARTBEAT_INTERVAL="500"},function(t,e,n){var r,o,a;
2/*!
3  * $script.js JS loader & dependency manager
4  * https://github.com/ded/script.js
5  * (c) Dustin Diaz 2014 | License MIT
6  */a=function(){var t,e,n=document,r=n.getElementsByTagName("head")[0],o={},a={},i={},c={};function s(t,e){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return 1}function l(t,e){s(t,(function(t){return e(t),1}))}function u(e,n,r){e=e.push?e:[e];var p=n&&n.call,f=p?n:r,m=p?e.join(""):n,g=e.length;function h(t){return t.call?t():o[t]}function w(){if(!--g)for(var t in o[m]=1,f&&f(),i)s(t.split("|"),h)&&!l(i[t],h)&&(i[t]=[])}return setTimeout((function(){l(e,(function e(n,r){return null===n?w():(r||/^https?:\/\//.test(n)||!t||(n=-1===n.indexOf(".js")?t+n+".js":t+n),c[n]?(m&&(a[m]=1),2==c[n]?w():setTimeout((function(){e(n,!0)}),0)):(c[n]=1,m&&(a[m]=1),void d(n,w)))}))}),0),u}function d(t,o){var a,i=n.createElement("script");i.onload=i.onerror=i.onreadystatechange=function(){i.readyState&&!/^c|loade/.test(i.readyState)||a||(i.onload=i.onreadystatechange=null,a=1,c[t]=2,o())},i.async=1,i.src=e?t+(-1===t.indexOf("?")?"?":"&")+e:t,r.insertBefore(i,r.lastChild)}return u.get=d,u.order=function(t,e,n){!function r(o){o=t.shift(),t.length?u(o,r):u(o,e,n)}()},u.path=function(e){t=e},u.urlArgs=function(t){e=t},u.ready=function(t,e,n){t=t.push?t:[t];var r,a=[];return!l(t,(function(t){o[t]||a.push(t)}))&&s(t,(function(t){return o[t]}))?e():(r=t.join("|"),i[r]=i[r]||[],i[r].push(e),n&&n(a)),u},u.done=function(t){u([null],t)},u},t.exports?t.exports=a():void 0===(o="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0);class o{static convertWhitelistingToRegexp(t){return(t=t||[]).map(t=>{const e=t.trim();if(o.whitelistingConfigRegex.test(e)){const t=["^","$"].join(e.replace(/\./g,"\\.").replace(/\*/g,"[-a-zA-Z0-9]*"));return new RegExp(t)}throw new Error(o.whitelistingErrorMsg)})}static getWhitelistFromScriptElement(t,e){let n=[o.getSanitizedHostFromLocation(e.location)];const a=t.getAttribute(o.allowOriginAttributeName)||"";a&&(n=n.concat(a.split(",")));let i="";const c=e.document.createElement("a");c.href=t.src;const s=r.default.extractQueryParameter(c.search,o.allowOriginQueryParamName);return s&&(i=decodeURI(s),i&&i.split(",").forEach(t=>n.push(t))),n}static isAllowed(t,e,n){if(!/^(https?:)\/\/([-.a-zA-Z0-9]+(:[0-9]{1,5})?)$/.test(t))return!1;const r=e.document.createElement("a");return r.href=t,("https:"!==e.location.protocol||"https:"===r.protocol)&&n.some(t=>(t.lastIndex=0,t.test(o.getSanitizedHostFromLocation(r))))}static getSanitizedHostFromLocation(t){const e=t.port||("https"===t.protocol.replace(/:/g,"")?"443":"80");return`${t.hostname}:${e}`}}e.default=o,o.whitelistingConfigRegex=new RegExp(/^(([-*a-zA-Z0-9]+[.])*([-a-zA-Z0-9]+[.]))?[-a-zA-Z0-9]+(:[0-9]{1,5})$/),o.allowOriginAttributeName="data-smartedit-allow-origin",o.allowOriginQueryParamName="allow-origin",o.whitelistingErrorMsg="\n\t\tAllowed whitelist characters are a-z, A-Z, 0-9, -, period, or *\n\t\tThe wildcard * can be used to represent a prefixed domain, Good example: *.domain.com:80\n\t\tbut not a suffix or port, Bad examples: subdomain.*.com subdomain.domain.com:*.\n\t\tEvery whitelisting must contain a specific port.\n\t"}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.