PageSourceSearch

https://www.uline.com/dist/57.94e82fe75ad5b3d39e5f.js

js uline.com collected 2026-09-24 15:17:55 UTC 7,821 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkUline=self.webpackChunkUline||[]).push([[57],{7808(t,e,i){i.d(e,{r:()=>s});var n=i(21039),a=i(54139),o=i(59205),r=i(74692);class s{get isChatLoaded(){return r("#LiveChatLinkEID a").length>0}constructor(t){this.isMobile=t,this.hideChatLink=async()=>{r("#helpChatLink").hide(),r("#LiveChatLinkEID").hide(),r("#ChatUnavailMessage").removeClass("hidden")},this.waitForChatLink=async()=>new Promise(t=>{this.isChatLoaded?t(this.isChatLoaded):setTimeout(async()=>{await this.waitForChatLink(),t(this.isChatLoaded)},0)}),this.mobileChatSetup=async()=>{r(document).on("click","#helpChatLink a",async t=>{t.preventDefault(),this.mobileChatClickHandler()}),await this.waitForChatLink(),this.copyMobileContent()},this.mobileChatClickHandler=async()=>{a.P.showMobileOverLay(),await this.waitForChatLink(),r(".contact-options #LiveChatLinkEID #LiveChatLink")[0].click(),a.P.hideMobileOverLay()},this.desktopChatSetup=async()=>{r(document).on("click","#helpChatLink a",async t=>{t.preventDefault(),this.desktopChatClickHandler()})},this.desktopChatClickHandler=async()=>{a.P.showMobileOverLay(),await this.waitForChatLink(),r("#LiveChatLinkEID a")[0].click(),a.P.hideMobileOverLay()},this.copyMobileContent=()=>{this.mobileContentCopied||(r(".contact-options #LiveChatLinkEID.chat").removeClass("hide"),r(".header-phone-icon-when-nochat").addClass("hide"),r(".header-phone-icon").removeClass("hide"),r(".chat-trigger").removeClass("hide"),this.isLivePersonChatDisabled?r(".chat-trigger").html(r("#LiveChatLinkEID .Intercom").html()):r(".chat-trigger").html(r("#LiveChatLinkEID .LPMcontainer").html()),r(".chat-trigger #LiveChatLink").attr("id","CopiedLiveChatLink"),this.mobileContentCopied=!0)},this.initChatLinkIntercom=()=>{0===r("#helpChatLink a").length&&r("#LiveChatLinkEID #defaultChatText").addClass("ChatLink"),r("#LiveChatLinkEID .Intercom").length&&this.isMobile&&this.copyMobileContent()},this.init=async()=>{try{(await n.d.get("/REST/Chat/IsChatAvailable")).data?this.isLivePersonChatDisabled?this.initChatLinkIntercom():this.isMobile?this.mobileChatSetup():this.desktopChatSetup():this.hideChatLink()}catch(t){console.error(t)}},this.intercomLoader=()=>{const t=c,e=t.Intercom;if("function"==typeof e)e("reattach_activator"),e("update",t.intercomSettings);else{const e=document,i=(...t)=>{i.c(t)};i.q=[],i.c=t=>{i.q.push(t)},t.Intercom=i;const n=()=>{var t;const i=e.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://widget.intercom.io/widget/"+c.intercomSettings.app_id;const n=e.getElementsByTagName("script")[0];null===(t=n.parentNode)||void 0===t||t.insertBefore(i,n)};"complete"===document.readyState?n():t.addEventListener("load",n)}},this.intercomEventUpdater=()=>{c.Intercom&&c.Intercom("onShow",()=>{this.handleIntercomShow()})},this.handleIntercomShow=()=>{r(".intercom-messenger-frame").length||localStorage.setItem("intercom.intercom-expanded-mode","false");const t=this.getChatDocumentPromise(),e=this.createExpandCollapseToggle();t.then(t=>{this.applyChatDocumentStyles(t),this.injectQuantumMetricScripts(t),this.setupChatDocumentEvents(t,e)})},this.getChatDocumentPromise=()=>new Promise(t=>{const e=this.tryGetChatDocument();e?t(e):this.observeForChatDocument(t)}),this.tryGetChatDocument=()=>r('iframe[name="intercom-messenger-frame"]').contents().get(0),this.observeForChatDocument=t=>{const e=new MutationObserver(()=>{const i=this.tryGetChatDocument();i&&(e.disconnect(),t(i))});e.observe(document.body,{childList:!0,subtree:!0})},this.createExpandCollapseToggle=()=>()=>{const t=localStorage.getItem("intercom.intercom-expanded-mode");this.checkIfMessengerMode()&&"true"===t?r(".intercom-messenger-frame").addClass("expanded"):r(".intercom-messenger-frame").removeClass("expanded")},this.checkIfMessengerMode=()=>{var t,e,i,n;const a=localStorage.getItem("intercom.intercom-state-"+c.intercomSettings.app_id),o=a?JSON.parse(a):null;return null!==(n=null===(i=null===(e=null===(t=null==o?void 0:o.router)||void 0===t?void 0:t.location)||void 0===e?void 0:e.pathname)||void 0===i?void 0:i.includes("/messages/conversation/"))&&void 0!==n&&n},this.applyChatDocumentStyles=t=>{r(t).find("head").append('\n            <style>\n                div[data-testid="avatar-stack-item"]:not(:first-of-type), \n                div[data-testid="team-avatar-container"] > img:not(:first-of-type),\n                div[data-testid="team-avatar-container"] > div {\n                    display: none;\n                }\n\n                div[data-testid="team-avatar-container"] {\n\t                width: 40px;\n\t                height: 40px;\n                }\n\n                div[data-testid="team-avatar-container"] > img:first-of-type {\n\t                width: 40px;\n\t                height: 40px;\n\t                position:unset;\n\t                border: 0px\n                }\n            </style>\n\n          ')},this.getQuantumMetricScriptSrcs=(t=window.top.document)=>{var e,i;try{const n=Array.from(t.querySelectorAll("script[src]")),a=null===(e=n.find(t=>t.src.includes("cdn.quantummetric.com/network-interceptor")))||void 0===e?void 0:e.src,o=null===(i=n.find(t=>t.src.includes("cdn.quantummetric.com/qscripts")))||void 0===i?void 0:i.src;return a&&o?{interceptorSrc:a,trackingSrc:o}:(console.warn("QM scripts not found on parent page"),null)}catch(t){return console.warn("QM scripts could not be read from parent page",t),null}},this.injectQuantumMetricScripts=t=>{const e=this.getQuantumMetricScriptSrcs();e&&r(t).find("head").append(`\n            \x3c!-- Quantum Metric Snippet --\x3e\n            <script>
1\n                (function() {\n                    function loadScript(src) {\n                        return new Promise(function(resolve, reject) {\n                            var script = document.createElement('script');\n                            script.src = src;\n                            script.async = true;\n                            script.onload = function() { resolve(src); };\n                            script.onerror = function() { reject(new Error('Failed to load ' + src)); };\n                            document.head.appendChild(script);\n                        });\n                    }\n\n                    loadScript('${e.interceptorSrc}')\n                        .then(function() {\n                            return loadScript('${e.trackingSrc}');\n                        })\n                        .catch(function(err) { console.error(err); });\n                })();\n            <\/script>\n        `)},this.setupChatDocumentEvents=(t,e)=>{r(t).ready(()=>{e(),r(t).on("click",'div[role="button"], button',()=>{e()})})},this.initCSRepChat=async()=>{var t;if(this.isLivePersonChatDisabled)try{const e=null!==(t=window.dpcReadyPromise)&&void 0!==t?t:Promise.resolve();await Promise.race([e,new Promise(t=>setTimeout(t,3e3))]);let i=(await n.d.get("/REST/ChatSetup/getChatSettings")).data;c.intercomSettings=i,this.intercomLoader(),this.intercomEventUpdater()}catch(t){console.error(t)}}}}!function(t,e,i,n){var a,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);o>3&&r&&Object.defineProperty(e,i,r)}([(0,o.d)("isLivePersonChatDisabled"),function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Boolean)],s.prototype,"isLivePersonChatDisabled",void 0);const c=window||i.g},21450(t,e,i){i.r(e),i.d(e,{MasterPageDesktop:()=>a});var n=i(7808);class a{constructor(){this.init=()=>{"HelpWin"===window.name||"FreightOptionsHelpWin"===window.name||this.ChatWindow.initCSRepChat()},this.ChatWindow=new n.r(!1)}}}}]);

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.