1(function () { 2 var WIDGET = { 3 targetNode: document.getElementById('root'), 4 styleElements: [], 5 scriptElements: [], 6 }; 7 8 9 function addStyle(href) { 10 if (document.querySelector('link[href="' + href + '"]')) return; 11 var link = document.createElement('link'); 12 link.rel = 'stylesheet'; 13 link.href = href; 14 if (WIDGET.shadowSupported) { 15 WIDGET.targetNode.appendChild(link); 16 } else { 17 document.head.appendChild(link); 18 } 19 } 20 21 function addScript(src) { 22 if (document.querySelector('script[src="' + src + '"]')) return; 23 var script = document.createElement('script'); 24 script.src = src; 25 script.async = false; 26 document.head.appendChild(script); 27 WIDGET.scriptElements.push(script); 28 } 29 30 addStyle('/rcapp-assets/components.css?v=1'); 31 addStyle('/assets/customer-dashboard/commons.239b7a09.css'); 32 addStyle('/assets/customer-dashboard/app.3a2f38ab.css'); 33 34 addScript('/rcapp-assets/components.js?v=1'); 35 addScript('/assets/customer-dashboard/commons.ce7873a1.js'); 36 addScript('/assets/customer-dashboard/main.4ca84fcf.js'); 37 addScript('/assets/customer-dashboard/app.639dfef5.js'); 38 39 40 (function () { 41 42 function init() { 43 Array.prototype.slice.call(WIDGET.targetNode.children).forEach(function(child) { 44 if (WIDGET.styleElements.indexOf(child) > -1) return; 45 child.parentNode.removeChild(child); 46 }) 47 48 var contentContainer = document.createElement('div'); 49 WIDGET.targetNode.appendChild(contentContainer); 50 51 try { 52 __CWT_CD_main__.default({ 53 useRouter: JSON.parse('1'), 54 55 basename: 'dashboard', 56 }); 57 __CWT_CD_app__.default({ 58 target: contentContainer, 59 60 app: 'full\u002Dapp', 61 62 rcappComponents: window.rcappComponents, 63 64 65 }); 66 } catch (e) { 67 if (typeof raven === 'object') { 68 raven.captureException(e, {logger: 'rcapp'}); 69 } else if (typeof ga === 'function') { 70 ga('send', 'exception', {exDescription: e.message, exFatal: true}); 71 } 72 throw e; 73 } 74 } 75 76 if (typeof __CWT_CD_app__ !== 'undefined') { 77 init(); 78 } else { 79 window.addEventListener('rcapp-loaded', init); 80 } 81})(); 82 83 })();
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.