1 2/* /web/static/src/legacy/js/public/lazyloader.js defined in bundle 'web.assets_frontend_minimal' */ 3odoo.define('web.public.lazyloader',function(require){'use strict';var blockEvents=['submit','click'];var blockFunction=function(ev){ev.preventDefault();ev.stopImmediatePropagation();};var waitingLazy=false;function waitLazy(){if(waitingLazy){return;} 4waitingLazy=true;var lazyEls=document.querySelectorAll('.o_wait_lazy_js');for(var i=0;i<lazyEls.length;i++){var element=lazyEls[i];blockEvents.forEach(function(evType){element.addEventListener(evType,blockFunction);});} 5document.body.classList.add('o_lazy_js_waiting');} 6function stopWaitingLazy(){if(!waitingLazy){return;} 7waitingLazy=false;var lazyEls=document.querySelectorAll('.o_wait_lazy_js');for(var i=0;i<lazyEls.length;i++){var element=lazyEls[i];blockEvents.forEach(function(evType){element.removeEventListener(evType,blockFunction);});element.classList.remove('o_wait_lazy_js');} 8document.body.classList.remove('o_lazy_js_waiting');} 9if(document.readyState!=='loading'){waitLazy();}else{document.addEventListener('DOMContentLoaded',function(){waitLazy();});} 10var doResolve=null;var _allScriptsLoaded=new Promise(function(resolve){if(doResolve){resolve();}else{doResolve=resolve;}}).then(function(){stopWaitingLazy();});
10if(document.readyState==='complete'){setTimeout(_loadScripts,0);}else{window.addEventListener('load',function(){setTimeout(_loadScripts,0);});} 11function _loadScripts(scripts,index){if(scripts===undefined){scripts=document.querySelectorAll('script[data-src]');} 12if(index===undefined){index=0;} 13if(index>=scripts.length){if(typeof doResolve==='function'){doResolve();}else{doResolve=true;} 14return;} 15var script=scripts[index];script.addEventListener('load',_loadScripts.bind(this,scripts,index+1));script.src=script.dataset.src;script.removeAttribute('data-src');} 16return{loadScripts:_loadScripts,allScriptsLoaded:_allScriptsLoaded,};});; 17 18/* /web_editor/static/src/js/frontend/loader_loading.js defined in bundle 'web.assets_frontend_minimal' */ 19(function(){'use strict';document.addEventListener('DOMContentLoaded',()=>{var textareaEls=document.querySelectorAll('textarea.o_wysiwyg_loader');for(var i=0;i<textareaEls.length;i++){var textarea=textareaEls[i];var wrapper=document.createElement('div');wrapper.classList.add('position-relative','o_wysiwyg_textarea_wrapper');var loadingElement=document.createElement('div');loadingElement.classList.add('o_wysiwyg_loading');var loadingIcon=document.createElement('i');loadingIcon.classList.add('text-600','text-center','fa','fa-circle-o-notch','fa-spin','fa-2x');loadingElement.appendChild(loadingIcon);wrapper.appendChild(loadingElement);textarea.parentNode.insertBefore(wrapper,textarea);wrapper.insertBefore(textarea,loadingElement);}});})();; 20 21/* /website/static/src/js/content/inject_dom.js defined in bundle 'web.assets_frontend_minimal' */ 22odoo.define('@website/js/content/inject_dom',async function(require){'use strict';let __exports={};const{get_cookie}=require('web.utils.cookies');const{session}=require('@web/session');document.addEventListener('DOMContentLoaded',()=>{const htmlEl=document.documentElement;const cookieNamesToDataNames={'utm_source':'utmSource','utm_medium':'utmMedium','utm_campaign':'utmCampaign',};for(const[name,dsName]of Object.entries(cookieNamesToDataNames)){const cookie=get_cookie(`odoo_${name}`);if(cookie){htmlEl.dataset[dsName]=cookie.replace(/(^["']|["']$)/g,'');}} 23const country=session.geoip_country_code;if(country){htmlEl.dataset.country=country;} 24htmlEl.dataset.logged=!session.is_website_user;const styleEl=document.createElement('style');styleEl.id="conditional_visibility";document.head.appendChild(styleEl);const conditionalEls=document.querySelectorAll('[data-visibility="conditional"]');for(const conditionalEl of conditionalEls){const selectors=conditionalEl.dataset.visibilitySelectors;styleEl.sheet.insertRule(`${selectors} { display: none !important; }`);} 25for(const conditionalEl of conditionalEls){conditionalEl.classList.remove('o_conditional_hidden');}});return __exports;});; 26 27/* /website/static/src/js/content/auto_hide_menu.js defined in bundle 'web.assets_frontend_minimal' */ 28odoo.define('@website/js/content/auto_hide_menu',async function(require){'use strict';let __exports={};const{initAutoMoreMenu}=require('@web/legacy/js/core/menu');document.addEventListener('DOMContentLoaded',async()=>{const header=document.querySelector('header#top');if(header){const topMenu=header.querySelector('#top_menu');if(header.classList.contains('o_no_autohide_menu')){topMenu.classList.remove('o_menu_loading');return;} 29const unfoldable='.divider, .divider ~ li, .o_no_autohide_item, .js_language_selector';const excludedImagesSelector='.o_mega_menu, .o_offcanvas_logo_container, .o_lang_flag';const excludedImages=[...header.querySelectorAll(excludedImagesSelector)];const images=[...header.querySelectorAll('img')].filter((img)=>{excludedImages.forEach(node=>{if(node.contains(img)){return false;}});return img.matches&&!img.matches(excludedImagesSelector);});initAutoMoreMenu(topMenu,{unfoldable:unfoldable,images:images,loadingStyleClasses:['o_menu_loading']});}});return __exports;});; 30 31/* /website/static/src/js/content/adapt_content.js defined in bundle 'web.assets_frontend_minimal' */ 32odoo.define('@website/js/content/adapt_content',async function(require){'use strict';let __exports={};document.addEventListener('DOMContentLoaded',()=>{const htmlEl=document.documentElement;const editTranslations=!!htmlEl.dataset.edit_translations;if(editTranslations){[...document.querySelectorAll('textarea')].map(textarea=>{if(textarea.value.indexOf('data-oe-translation-id')!==-1){textarea.classList.add('o_text_content_invisible');}});}});return __exports;});; 33 34/* /addon_gtmc_website/static/src/js/content/anchor_point_adjustment.js defined in bundle 'web.assets_frontend_minimal' */ 35var anchorScrollCount=0;
35function increaseScrollCount(){anchorScrollCount+=1;} 36window.addEventListener("DOMContentLoaded",function(){const warp=document.getElementById('wrapwrap');if(warp){warp.addEventListener("scroll",increaseScrollCount);}});window.addEventListener("load",function(){setTimeout(function(){const warp=document.getElementById('wrapwrap');warp.removeEventListener("scroll",increaseScrollCount);if(anchorScrollCount>10)return;const hash=window.location.hash.substring(1);const targetElement=document.getElementById(hash);if(!targetElement)return;const header=document.getElementById('top_menu_container');const editHeader=document.getElementById('oe_main_menu_navbar');const tables=document.querySelectorAll('.s_table_of_content_navbar_sticky.s_table_of_content_horizontal_navbar');const extraOffset=tables.length>0?tables[0].offsetHeight:0;if(warp){let offsetHeight=header.offsetHeight+extraOffset;if(editHeader){offsetHeight+=editHeader.offsetHeight;} 37warp.scrollTo({top:warp.scrollTop-offsetHeight,behavior:'smooth'});}},500);});
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.