PageSourceSearch

https://www.almooond.com/web/assets/2/5b0c0a8/web.assets_frontend_minimal.min.js

js almooond.com collected 2026-10-01 12:01:56 UTC 34,659 bytes, 207 lines download raw bytes

1
2/* /web/static/src/polyfills/object.js */
3if(!Object.hasOwn){Object.hasOwn=(obj,key)=>Object.prototype.hasOwnProperty.call(obj,key);}
4if(!Object.groupBy){Object.defineProperty(Object,"groupBy",{configurable:true,enumerable:false,writable:true,value:function(items,callbackfn){const obj=Object.create(null);let i=0;for(const item of items){const key=callbackfn(item,i++);if(obj[key]){obj[key].push(item);}else{obj[key]=[item];}}
5return obj;},});};
6
7/* /web/static/src/polyfills/array.js */
8if(!Array.prototype.at){Object.defineProperty(Array.prototype,"at",{enumerable:false,value:function(index){if(index>=0){return this[index];}
9return this[this.length+index];},});};
10
11/* /web/static/src/polyfills/promise.js */
12if(!Promise.withResolvers){Promise.withResolvers=function withResolvers(){let resolve,reject;const promise=new Promise((res,rej)=>{resolve=res;reject=rej;});return{promise,resolve,reject};};};
13
14/* /web/static/src/module_loader.js */
15(function(odoo){"use strict";if(odoo.loader){return;}
16class ModuleLoader{bus=new EventTarget();checkErrorProm=null;factories=new Map();failed=new Set();jobs=new Set();modules=new Map();constructor(root){this.root=root;const strDebug=new URLSearchParams(location.search).get("debug");this.debug=Boolean(strDebug&&strDebug!=="0");}
17addJob(name){this.jobs.add(name);this.startModules();}
18define(name,deps,factory,lazy=false){if(typeof name!=="string"){throw new Error(`Module name should be a string, got: ${String(name)}`);}
19if(!Array.isArray(deps)){throw new Error(`Module dependencies should be a list of strings, got: ${String(deps)}`);}
20if(typeof factory!=="function"){throw new Error(`Module factory should be a function, got: ${String(factory)}`);}
21if(this.factories.has(name)){return;}
22this.factories.set(name,{deps,fn:factory,ignoreMissingDeps:globalThis.__odooIgnoreMissingDependencies,});if(!lazy){this.addJob(name);this.checkErrorProm||=Promise.resolve().then(()=>{this.checkErrorProm=null;this.reportErrors(this.findErrors());});}}
23findErrors(moduleNames){const findCycle=(currentModuleNames,visited)=>{for(const name of currentModuleNames||[]){if(visited.has(name)){const cycleModuleNames=[...visited,name];return cycleModuleNames.slice(cycleModuleNames.indexOf(name)).map((j)=>`"${j}"`).join(" => ");}
24const cycle=findCycle(dependencyGraph[name],new Set(visited).add(name));if(cycle){return cycle;}}
25return null;};moduleNames||=this.jobs;const dependencyGraph=Object.create(null);const missing=new Set();const unloaded=new Set();for(const moduleName of moduleNames){const{deps,ignoreMissingDeps}=this.factories.get(moduleName);dependencyGraph[moduleName]=deps;if(ignoreMissingDeps){continue;}
26unloaded.add(moduleName);for(const dep of deps){if(!this.factories.has(dep)){missing.add(dep);}}}
27const cycle=findCycle(moduleNames,new Set());const errors={};if(cycle){errors.cycle=cycle;}
28if(this.failed.size){errors.failed=this.failed;}
29if(missing.size){errors.missing=missing;}
30if(unloaded.size){errors.unloaded=unloaded;}
31return errors;}
32findJob(){for(const job of this.jobs){if(this.factories.get(job).deps.every((dep)=>this.modules.has(dep))){return job;}}
33return null;}
34async reportErrors(errors){if(!Object.keys(errors).length){return;}
35if(errors.failed){console.error("The following modules failed to load because of an error:",[...errors.failed,]);}
36if(errors.missing){console.error("The following modules are needed by other modules but have not been defined, they may not be present in the correct asset bundle:",[...errors.missing]);}
37if(errors.cycle){console.error("The following modules could not be loaded because they form a dependency cycle:",errors.cycle);}
38if(errors.unloaded){console.error("The following modules could not be loaded because they have unmet dependencies, this is a secondary error which is likely caused by one of the above problems:",[...errors.unloaded]);}
39const document=this.root?.ownerDocument||globalThis.document;if(document.readyState==="loading"){await new Promise((resolve)=>document.addEventListener("DOMContentLoaded",resolve));}
40if(this.debug){const style=document.createElement("style");style.className="o_module_error_banner";style.textContent=`
41                    body::before {
42                        font-weight: bold;
43                        content: "An error occurred while loading javascript modules, you may find more information in the devtools console";
44                        position: fixed;
45                        left: 0;
46                        bottom: 0;
47                        z-index: 100000000000;
48                        background-color: #C00;
49                        color: #DDD;
50                    }
51                `;document.head.appendChild(style);}}
52require(dependency){return this.modules.get(dependency);}
53startModules(){let job;while((job=this.findJob())){this.startModule(job);}}
54startModule(name){this.jobs.delete(name);const factory=this.factories.get(name);let module=null;try{module=factory.fn(this.require.bind(this));}catch(error){this.failed.add(name);throw new Error(`Error while loading "${name}":\n${error}`);}
55this.modules.set(name,module);this.bus.dispatchEvent(new CustomEvent("module-started",{detail:{moduleName:name,module},}));return module;}}
56const loader=new ModuleLoader();odoo.define=loader.define.bind(loader);odoo.loader=loader;if(odoo.debug&&!loader.debug){odoo.debug="";}})((globalThis.odoo||={}));;
57
58/* /web/static/src/polyfills/set.js */
59odoo.define('@web/polyfills/set',[],function(require){'use strict';let __exports={};const difference=__exports.difference=function(s){if(!(s instanceof Set)){throw new Error("argument must be a Set");}
60return new Set([...this].filter((e)=>
60!s.has(e)));};if(!Set.prototype.difference){Object.defineProperty(Set.prototype,"difference",{enumerable:false,value:difference,});}
61return __exports;});;
62
63/* /web/static/src/polyfills/map.js */
64odoo.define('@web/polyfills/map',[],function(require){'use strict';let __exports={};if(!Map.groupBy){Object.defineProperty(Map,"groupBy",{configurable:true,enumerable:false,writable:true,value:function(items,callbackfn){const map=new Map();let i=0;for(const item of items){const key=callbackfn(item,i++);if(map.has(key)){map.get(key).push(item);}else{map.set(key,[item]);}}
65return map;},});}
66return __exports;});;
67
68/* /web/static/src/session.js */
69odoo.define('@web/session',[],function(require){'use strict';let __exports={};const session=__exports.session=odoo.__session_info__||{};delete odoo.__session_info__;return __exports;});;
70
71/* /web/static/src/core/browser/cookie.js */
72odoo.define('@web/core/browser/cookie',[],function(require){'use strict';let __exports={};const COOKIE_TTL=24*60*60*365;const cookie=__exports.cookie={get _cookieMonster(){return document.cookie;},set _cookieMonster(value){document.cookie=value;},get(str){const parts=this._cookieMonster.split("; ");for(const part of parts){const[key,value]=part.split(/=(.*)/);if(key===str){return value||"";}}},set(key,value,ttl=COOKIE_TTL){let fullCookie=[];if(value!==undefined){fullCookie.push(`${key}=${value}`);}
73fullCookie=fullCookie.concat(["path=/",`max-age=${Math.floor(ttl)}`]);this._cookieMonster=fullCookie.join("; ");},delete(key){this.set(key,"kill",0);},};return __exports;});;
74
75/* /web/static/src/core/utils/ui.js */
76odoo.define('@web/core/utils/ui',[],function(require){'use strict';let __exports={};__exports.closest=closest;function closest(elements,targetPos){let closestEl=null;let closestDistance=Infinity;for(const el of elements){const rect=el.getBoundingClientRect();const distance=getQuadrance(rect,targetPos);if(!closestEl||distance<closestDistance){closestEl=el;closestDistance=distance;}}
77return closestEl;}
78__exports.isVisible=isVisible;function isVisible(el){if(el===document||el===window){return true;}
79if(!el){return false;}
80let _isVisible=false;if("offsetWidth"in el&&"offsetHeight"in el){_isVisible=el.offsetWidth>0&&el.offsetHeight>0;}else if("getBoundingClientRect"in el){const rect=el.getBoundingClientRect();_isVisible=rect.width>0&&rect.height>0;}
81if(!_isVisible&&getComputedStyle(el).display==="contents"){for(const child of el.children){if(isVisible(child)){return true;}}}
82return _isVisible;}
83__exports.getQuadrance=getQuadrance;function getQuadrance(rect,pos){const isPoint=!pos.width||!pos.height;if(isPoint){const dx=Math.max(rect.x-pos.x,0,pos.x-(rect.x+rect.width));const dy=Math.max(rect.y-pos.y,0,pos.y-(rect.y+rect.height));return dx**2+dy**2;}
84const rectCenter={x:rect.x+rect.width/2,y:rect.y+rect.height/2,};const posCenter={x:pos.x+pos.width/2,y:pos.y+pos.height/2,};const dx=Math.abs(rectCenter.x-posCenter.x);const dy=Math.abs(rectCenter.y-posCenter.y);const gapX=dx-(rect.width+pos.width)/2;const gapY=dy-(rect.height+pos.height)/2;if(gapX>=0||gapY>=0){return Math.max(0,gapX)**2+Math.max(0,gapY)**2;}
85const overlapRect={left:Math.max(rect.x,pos.x),right:Math.min(rect.x+rect.width,pos.x+pos.width),top:Math.max(rect.y,pos.y),bottom:Math.min(rect.y+rect.height,pos.y+pos.height),};const overlapArea=(overlapRect.right-overlapRect.left)*(overlapRect.bottom-overlapRect.top);const rectArea=rect.width*rect.height;return-(overlapArea/rectArea);}
86__exports.getVisibleElements=getVisibleElements;function getVisibleElements(activeElement,selector){const visibleElements=[];const elements=activeElement.querySelectorAll(selector);for(const el of elements){if(isVisible(el)){visibleElements.push(el);}}
87return visibleElements;}
88__exports.touching=touching;function touching(elements,targetRect){const r1={x:0,y:0,width:0,height:0,...targetRect};return[...elements].filter((el)=>{const r2=el.getBoundingClientRect();return(r2.x+r2.width>=r1.x&&r2.x<=r1.x+r1.width&&r2.y+r2.height>=r1.y&&r2.y<=r1.y+r1.height);});}
89const FOCUSABLE_SELECTORS=["[tabindex]","a","area","button","frame","iframe","input","object","select","textarea","details > summary:nth-child(1)",].map((sel)=>`${sel}:not(:disabled)`);const TABABLE_SELECTORS=FOCUSABLE_SELECTORS.map((sel)=>`${sel}:not([tabindex="-1"])`);__exports.isFocusable=isFocusable;function isFocusable(el){return el.matches(FOCUSABLE_SELECTORS.join(","))&&isVisible(el)&&!el.closest("[inert]");}
90__exports.getTabableElements=getTabableElements;function getTabableElements(container=document.body){const elements=[...container.querySelectorAll(TABABLE_SELECTORS.join(","))].filter((el)=>isVisible(el)&&!el.closest("[inert]"));const byTabIndex={};for(const el of[...elements]){if(!byTabIndex[el.tabIndex]){byTabIndex[el.tabIndex]=[];}
91byTabIndex[el.tabIndex].push(el);}
92const withTabIndexZero=byTabIndex[0]||[];delete byTabIndex[0];return[...Object.values(byTabIndex).flat(),...withTabIndexZero];}
93__exports.getNextTabableElement=getNextTabableElement;function getNextTabableElement(container=document.body){const tabableElements=getTabableElements(container);const index=tabableElements.indexOf(document.activeElement);return index===-1?tabableElements[0]:tabableElements[index+1]||null;}
94__exports.getPreviousTabableElement=getPreviousTabableElement;function getPreviousTabableElement(container=document.body){const tabableElements=getTabableElements(container);const index=tabableElements.indexOf(document.activeElement);return index===-1?tabableElements[tabableElements.length-1]:tabableElements[index-1]||null;}
95__exports.addLoadingEffect=addLoadingEffect;function addLoadingEffect(btnEl){btnEl.classList.add("o_btn_loading","disabled","pe-none");btnEl.disabled=true;const loaderEl=document.createElement("span");loaderEl.classList.add("fa","fa-circle-o-notch","fa-spin","me-2");btnEl.prepend(loaderEl);return()=>{btnEl.classList.remove("o_btn_loading","disabled","pe-none");btnEl.disabled=false;loaderEl.remove();};}
96return __exports;});;
97
98/* /web/static/src/public/utils.js */
99odoo.define('@web/public/utils',['@web/core/utils/ui'],function(require){'use strict';let __exports={};const PairSet=__exports.PairSet=class PairSet{constructor(){this.map=new Map();}
100add(elem1,elem2){if(!this.map.has(elem1)){this.map.set(elem1,new Set());}
101this.map.get(elem1).add(elem2);}
102has(elem1,elem2){if(!this.map.has(elem1)){return false;}
103return this.map.get(elem1).has(elem2);}
104delete(elem1,elem2){if(!this.map.has(elem1)){return;}
105const s=this.map.get(elem1);s.delete(elem2);
105if(!s.size){this.map.delete(elem1);}}}
106const{addLoadingEffect}=require("@web/core/utils/ui");const DEBOUNCE=__exports.DEBOUNCE=400;const BUTTON_HANDLER_SELECTOR=__exports.BUTTON_HANDLER_SELECTOR='a, button, input[type="submit"], input[type="button"], .btn';__exports.makeAsyncHandler=makeAsyncHandler;function makeAsyncHandler(fct,preventEventPropagation=false){let pending=false;function _isLocked(){return pending;}
107function _lock(){pending=true;}
108function _unlock(){pending=false;}
109return function(ev){if(preventEventPropagation){ev.preventDefault();ev.stopPropagation();ev.stopImmediatePropagation();}
110if(_isLocked()){return;}
111_lock();const result=fct.apply(this,arguments);Promise.resolve(result).finally(_unlock);return result;};}
112__exports.makeButtonHandler=makeButtonHandler;function makeButtonHandler(fct,preventEventPropagation=false){fct=makeAsyncHandler(fct,preventEventPropagation);return function(ev){const handlerResult=fct.apply(this,arguments);const buttonEl=ev.target.closest(BUTTON_HANDLER_SELECTOR);if(!(buttonEl instanceof HTMLElement)){return handlerResult;}
113buttonEl.classList.add("pe-none");let showDebouncedLoading=false;const addLoadingIfPending=()=>{buttonEl.classList.remove("pe-none");if(showDebouncedLoading){const restore=addLoadingEffect(buttonEl);Promise.resolve(handlerResult).then(restore,restore);}};Promise.race([handlerResult,new Promise((resolve)=>setTimeout(resolve,DEBOUNCE)).then(()=>{showDebouncedLoading=true;}),]).then(addLoadingIfPending,addLoadingIfPending);return handlerResult;};}
114__exports.patchDynamicContentEntry=patchDynamicContentEntry;function patchDynamicContentEntry(dynamicContent,selector,t,replacement){dynamicContent[selector]=dynamicContent[selector]||{};const forSelector=dynamicContent[selector];if(replacement===undefined){delete forSelector[t];}else if(typeof replacement==="function"&&t!=="t-component"){if(!forSelector[t]){forSelector[t]=()=>{};}
115const oldFn=forSelector[t];if(["t-att-class","t-att-style"].includes(t)){forSelector[t]=(el,oldResult)=>{const result=oldResult||{};Object.assign(result,oldFn(el,result));Object.assign(result,replacement(el,result));return result;};}else if(t.startsWith("t-on-")){forSelector[t]=(el,...args)=>replacement(el,oldFn,...args);}else{forSelector[t]=(el,oldResult)=>{let result=oldResult;result=oldFn(el,result);result=replacement(el,result);return result;};}}else{forSelector[t]=replacement;}}
116__exports.patchDynamicContent=patchDynamicContent;function patchDynamicContent(dynamicContent,replacement){for(const[selector,forSelector]of Object.entries(replacement)){for(const[t,forT]of Object.entries(forSelector)){patchDynamicContentEntry(dynamicContent,selector,t,forT);}}}
117return __exports;});;
118
119/* /web/static/src/public/lazyloader.js */
120odoo.define('@web/public/lazyloader',['@web/public/utils'],function(require){'use strict';let __exports={};const{BUTTON_HANDLER_SELECTOR,makeAsyncHandler,makeButtonHandler}=require("@web/public/utils");let allScriptsLoadedResolve=null;const _allScriptsLoaded=new Promise(resolve=>{allScriptsLoadedResolve=resolve;}).then(stopWaitingLazy);const retriggeringWaitingProms=[];async function waitForLazyAndRetrigger(ev){const targetEl=ev.target;await _allScriptsLoaded;await Promise.all(retriggeringWaitingProms);setTimeout(()=>{if(targetEl.isConnected){targetEl.dispatchEvent(new ev.constructor(ev.type,ev));}},0);}
121const loadingEffectHandlers=[];function registerLoadingEffectHandler(el,type,handler){el.addEventListener(type,handler,{capture:true});loadingEffectHandlers.push({el,type,handler});}
122let waitingLazy=false;function waitLazy(){if(waitingLazy){return;}
123waitingLazy=true;document.body.classList.add('o_lazy_js_waiting');const mainEl=document.getElementById('wrapwrap')||document.body;const loadingEffectButtonEls=[...mainEl.querySelectorAll(BUTTON_HANDLER_SELECTOR)].filter(el=>{return!el.classList.contains('o_no_wait_lazy_js')&&!(el.nodeName==='A'&&el.href&&el.getAttribute('href')!=='#');});const loadingEffectEventTypes=['mouseover','mouseenter','mousedown','mouseup','click','mouseout','mouseleave'];for(const buttonEl of loadingEffectButtonEls){for(const eventType of loadingEffectEventTypes){const loadingEffectHandler=eventType==='click'?makeButtonHandler(waitForLazyAndRetrigger,true):makeAsyncHandler(waitForLazyAndRetrigger,true);registerLoadingEffectHandler(buttonEl,eventType,loadingEffectHandler);}}
124for(const formEl of document.querySelectorAll('form:not(.o_no_wait_lazy_js)')){registerLoadingEffectHandler(formEl,'submit',ev=>{ev.preventDefault();ev.stopImmediatePropagation();});}}
125function stopWaitingLazy(){if(!waitingLazy){return;}
126waitingLazy=false;document.body.classList.remove('o_lazy_js_waiting');for(const{el,type,handler}of loadingEffectHandlers){el.removeEventListener(type,handler,{capture:true});}}
127if(document.readyState!=='loading'){waitLazy();}else{document.addEventListener('DOMContentLoaded',function(){waitLazy();});}
128if(document.readyState==='complete'){setTimeout(_loadScripts,0);}else{window.addEventListener('load',function(){setTimeout(_loadScripts,0);});}
129function _loadScripts(scripts,index){if(scripts===undefined){scripts=document.querySelectorAll('script[data-src]');}
130if(index===undefined){index=0;}
131if(index>=scripts.length){allScriptsLoadedResolve();return;}
132const script=scripts[index];script.addEventListener('load',_loadScripts.bind(this,scripts,index+1));script.setAttribute('defer','defer');script.src=script.dataset.src;script.removeAttribute('data-src');}
133__exports[Symbol.for("default")]={loadScripts:_loadScripts,allScriptsLoaded:_allScriptsLoaded,registerPageReadinessDelay:retriggeringWaitingProms.push.bind(retriggeringWaitingProms),};return __exports;});;
134
135/* /website/static/src/utils/misc.js */
136odoo.define('@website/utils/misc',['@web/core/browser/cookie'],function(require){'use strict';let __exports={};const{cookie:cookieManager}=require("@web/core/browser/cookie");const EventBus=__exports.EventBus=class EventBus extends EventTarget{trigger(name,payload){this.dispatchEvent(new CustomEvent(name,{detail:payload}));}}
137__exports.getClosestLiEls=getClosestLiEls;function getClosestLiEls(selector){return Array.from(document.querySelectorAll(selector),(el)=>el.closest("li"));}
138__exports.unhideConditionalElements=unhideConditionalElements;function unhideConditionalElements(){const styleEl=document.createElement("style");styleEl.id="conditional_visibility";document.head.appendChild(styleEl);const conditionalEls=document.querySelectorAll('[data-visibility="conditional"]');const desktopMegaMenuLiEls=getClosestLiEls("header#top nav:not(.o_header_mobile) .o_mega_menu_toggle");const mobileMegaMenuLiEls=getClosestLiEls("header#top nav.o_header_mobile .o_mega_menu_toggle");for(const conditionalEl of conditionalEls){if(conditionalEl.parentElement.classList.contains("o_mega_menu")){const desktopMegaMenuLiEl=conditionalEl.closest("li");const index=desktopMegaMenuLiEls.indexOf(desktopMegaMenuLiEl);const mobileMegaMenuLiEl=mobileMegaMenuLiEls[index];const visibilityId=conditionalEl.dataset.visibilityId;desktopMegaMenuLiEl.dataset.visibilityId=visibilityId;mobileMegaMenuLiEl.dataset.visibilityId=visibilityId;}
139const selectors=conditionalEl.dataset.visibilitySelectors;styleEl.sheet.insertRule(`${selectors} { display: none !important; }`);}
140for(const conditionalEl of conditionalEls){conditionalEl.classList.remove("o_conditional_hidden");}}
141__exports.setUtmsHtmlDataset=setUtmsHtmlDataset;function setUtmsHtmlDataset(){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=cookieManager.get(`odoo_${name}`);if(cookie){htmlEl.dataset[dsName]=cookie.replace(/(^["']|["']$)/g,"");}}}
142__exports.verifyHttpsUrl=verifyHttpsUrl;function verifyHttpsUrl(link){const url=new URL(link,window.location.href);if(!/https?:/.test(url.protocol)){return"";}
143return url;}
144return __exports;});;
145
146/* /website/static/src/js/content/inject_dom.js */
147odoo.define('@website/js/content/inject_dom',['@web/session','@website/utils/misc'],function(require){'use strict';let __exports={};const{session}=require("@web/session");const{setUtmsHtmlDataset,getClosestLiEls,unhideConditionalElements,}=require("@website/utils/misc");document.addEventListener("DOMContentLoaded",()=>{setUtmsHtmlDataset();const htmlEl=document.documentElement;const country=session.geoip_country_code;if(country){htmlEl.dataset.country=country;}
148htmlEl.dataset.logged=!session.is_website_user;unhideConditionalElements();document.querySelectorAll(".o_mega_menu > section.o_snippet_desktop_invisible").forEach((el)=>el.closest("li").classList.add("hidden_mega_menu_li"));const mobileInvisibleMegaMenuLiEls=getClosestLiEls(".o_mega_menu > section.o_snippet_mobile_invisible");if(!mobileInvisibleMegaMenuLiEls.length){return;}
149const desktopMegaMenuLiEls=getClosestLiEls("header#top nav:not(.o_header_mobile) .o_mega_menu_toggle");const mobileMegaMenuLiEls=getClosestLiEls("header#top nav.o_header_mobile .o_mega_menu_toggle");for(const mobileInvisibleMegaMenuLiEl of mobileInvisibleMegaMenuLiEls){const index=desktopMegaMenuLiEls.indexOf(mobileInvisibleMegaMenuLiEl);mobileMegaMenuLiEls[index].classList.add("hidden_mega_menu_li");}});return __exports;});;
150
151/* /website/static/src/js/content/auto_hide_menu.js */
152odoo.define('@website/js/content/auto_hide_menu',[],function(require){'use strict';let __exports={};const BREAKPOINT_SIZES={sm:"575",md:"767",lg:"991",xl:"1199",xxl:"1399"};let ignoreDOMMutations;__exports.setupIgnoreDOMMutations=setupIgnoreDOMMutations;function setupIgnoreDOMMutations(fn){ignoreDOMMutations=fn;}
153async function autoHideMenu(el,options){if(!el){return;}
154const navbar=el.closest(".navbar");const[breakpoint="md"]=navbar?Object.keys(BREAKPOINT_SIZES).filter((suffix)=>navbar.classList.contains(`navbar-expand-${suffix}`)):[];const isNoHamburgerMenu=!!navbar&&navbar.classList.contains("navbar-expand");const minSize=BREAKPOINT_SIZES[breakpoint];let wasExtraMenuOpenBefore=false;const docSelection=el.ownerDocument.getSelection();let{anchorNode,anchorOffset,focusNode,focusOffset}=docSelection;options=Object.assign({unfoldable:"none",images:[],loadingStyleClasses:[],autoClose:()=>true,},options||{});const isUserNavbar=el.parentElement.classList.contains("o_main_navbar");const dropdownSubMenuClasses=["show","border-0","position-static"];const dropdownToggleClasses=["h-auto","py-2","text-secondary"];const autoMarginLeftRegex=/\bm[sx]?(?:-(?:sm|md|lg|xl|xxl))?-auto\b/;const autoMarginRightRegex=/\bm[ex]?(?:-(?:sm|md|lg|xl|xxl))?-auto\b/;var extraItemsToggle=null;const afterFontsloading=new Promise((resolve)=>{if(document.fonts){document.fonts.ready.then(resolve);}else{setTimeout(resolve,150);}});afterFontsloading.then(_adapt);if(options.images.length){await _afterImagesLoading(options.images);_adapt();}
155let pending=false;let refreshId=null;const onRefresh=()=>{if(pending){refreshId=window.requestAnimationFrame(onRefresh);_adapt();pending=false;}else{refreshId=null;}};const throttleAdapt=()=>{if(refreshId===null){refreshId=window.requestAnimationFrame(onRefresh);_adapt();}
155else{pending=true;}};const observer=new ResizeObserver(throttleAdapt);for(const child of el.parentElement.children){observer.observe(child);}
156observer.observe(el.parentElement);observer.observe(navbar);function _restore(){if(!extraItemsToggle){return;}
157[...extraItemsToggle.querySelector(".dropdown-menu").children].forEach((item)=>{if(!isUserNavbar){item.classList.add("nav-item");const itemLink=item.querySelector(".dropdown-item");if(itemLink){itemLink.classList.remove("dropdown-item");itemLink.classList.add("nav-link");}}else{item.classList.remove("dropdown-item");const dropdownSubMenu=item.querySelector(".dropdown-menu");const dropdownSubMenuButton=item.querySelector(".dropdown-toggle");if(dropdownSubMenu){dropdownSubMenu.classList.remove(...dropdownSubMenuClasses);}
158if(dropdownSubMenuButton){dropdownSubMenuButton.classList.remove(...dropdownToggleClasses);}}
159el.insertBefore(item,extraItemsToggle);});extraItemsToggle.remove();extraItemsToggle=null;}
160function _adapt(){if(ignoreDOMMutations){ignoreDOMMutations(__adapt);return;}
161__adapt();}
162function __adapt(){if(options.loadingStyleClasses.length){el.classList.add(...options.loadingStyleClasses);}
163const extraMenuEl=_getExtraMenuEl();wasExtraMenuOpenBefore=extraMenuEl&&extraMenuEl.classList.contains("show");({anchorNode,anchorOffset,focusNode,focusOffset}=docSelection);_restore();if(!el.getClientRects().length||el.closest(".show")||(window.matchMedia(`(max-width: ${minSize}px)`).matches&&!isNoHamburgerMenu)){return _endAutoMoreMenu();}
164const unfoldableItems=[];const items=[...el.children].filter((node)=>{if(node.matches&&!node.matches(options.unfoldable)){return true;}
165unfoldableItems.push(node);return false;});var nbItems=items.length;var menuItemsWidth=items.reduce((sum,el)=>sum+computeFloatOuterWidthWithMargins(el,true,true,false),0);let maxWidth=0;if(!maxWidth){maxWidth=computeFloatOuterWidthWithMargins(el,true,true,true);var style=window.getComputedStyle(el);maxWidth-=parseFloat(style.paddingLeft)+
166parseFloat(style.paddingRight)+
167parseFloat(style.borderLeftWidth)+
168parseFloat(style.borderRightWidth);maxWidth-=unfoldableItems.reduce((sum,el)=>sum+computeFloatOuterWidthWithMargins(el,true,true,false),0);}
169if(maxWidth-menuItemsWidth>=-0.001){return _endAutoMoreMenu();}
170const dropdownMenu=_addExtraItemsButton(items[nbItems-1].nextElementSibling);menuItemsWidth+=computeFloatOuterWidthWithMargins(extraItemsToggle,true,true,false);do{menuItemsWidth-=computeFloatOuterWidthWithMargins(items[--nbItems],true,true,false);}while(!(maxWidth-menuItemsWidth>=-0.001)&&nbItems>0);const extraItems=items.slice(nbItems);extraItems.forEach((el)=>{if(!isUserNavbar){const navLink=el.querySelector(".nav-link, a");el.classList.remove("nav-item");if(navLink){navLink.classList.remove("nav-link");navLink.classList.add("dropdown-item");}}else{const dropdownSubMenu=el.querySelector(".dropdown-menu");const dropdownSubMenuButton=el.querySelector(".dropdown-toggle");el.classList.add("dropdown-item","p-0");if(dropdownSubMenu){dropdownSubMenu.classList.add(...dropdownSubMenuClasses);}
171if(dropdownSubMenuButton){dropdownSubMenuButton.classList.add(...dropdownToggleClasses);}}
172dropdownMenu.appendChild(el);});_endAutoMoreMenu();}
173function computeFloatOuterWidthWithMargins(el,mLeft,mRight,considerAutoMargins){var rect=el.getBoundingClientRect();var style=window.getComputedStyle(el);var outerWidth=rect.right-rect.left;const isRTL=style.direction==="rtl";if(mLeft!==false&&(considerAutoMargins||!(isRTL?autoMarginRightRegex:autoMarginLeftRegex).test(el.getAttribute("class")))){outerWidth+=parseFloat(style.marginLeft);}
174if(mRight!==false&&(considerAutoMargins||!(isRTL?autoMarginLeftRegex:autoMarginRightRegex).test(el.getAttribute("class")))){outerWidth+=parseFloat(style.marginRight);}
175return isNaN(outerWidth)?0:outerWidth;}
176function _addExtraItemsButton(target){const dropdownMenu=document.createElement("ul");extraItemsToggle=document.createElement("li");const extraItemsToggleIcon=document.createElement("i");const extraItemsToggleLink=document.createElement("a");dropdownMenu.className="dropdown-menu";extraItemsToggle.className="nav-item dropdown o_extra_menu_items";extraItemsToggle.setAttribute("role","presentation");extraItemsToggleIcon.className="oi oi-plus";const extraItemsToggleAriaLabel=el.closest("[data-extra-items-toggle-aria-label]")?.dataset.extraItemsToggleAriaLabel;Object.entries({role:"menuitem",href:"#",class:"nav-link dropdown-toggle o-no-caret","data-bs-toggle":"dropdown","aria-expanded":false,"aria-label":extraItemsToggleAriaLabel||" ",}
176).forEach(([key,value])=>{extraItemsToggleLink.setAttribute(key,value);});extraItemsToggleLink.appendChild(extraItemsToggleIcon);extraItemsToggle.appendChild(extraItemsToggleLink);extraItemsToggle.appendChild(dropdownMenu);el.insertBefore(extraItemsToggle,target);if(!options.autoClose()){extraItemsToggleLink.setAttribute("data-bs-auto-close","outside");}
177return dropdownMenu;}
178function _afterImagesLoading(images){const defs=images.map((image)=>{if(image.complete||!image.getClientRects().length){return null;}
179return new Promise(function(resolve,reject){if(!image.width){image.classList.add("o_menu_image_placeholder");}
180image.addEventListener("load",()=>{image.classList.remove("o_menu_image_placeholder");resolve();});});});return Promise.all(defs);}
181function _getExtraMenuEl(){return el.querySelector(".o_extra_menu_items .dropdown-toggle");}
182function _endAutoMoreMenu(){const extraMenuEl=_getExtraMenuEl();const setSelection=()=>docSelection.setBaseAndExtent(anchorNode,anchorOffset,focusNode,focusOffset);const anchorInExtra=anchorNode?.parentElement.closest(".o_extra_menu_items .dropdown-menu");if(extraMenuEl&&(anchorInExtra||wasExtraMenuOpenBefore)){if(anchorInExtra){el.addEventListener("shown.bs.dropdown",setSelection,{once:true});}
183window.Dropdown.getOrCreateInstance(extraMenuEl).show();}
184el.classList.remove(...options.loadingStyleClasses);}}
185document.addEventListener("DOMContentLoaded",async()=>{const header=document.querySelector("header#top");if(header){const topMenu=header.querySelector(".top_menu");const unfoldable=".divider, .divider ~ li, .o_no_autohide_item, .js_language_selector";if(!topMenu.querySelector(`:scope > :not(${unfoldable})`)||header.classList.contains("o_no_autohide_menu")){topMenu.classList.remove("o_menu_loading");return;}
186const 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);});autoHideMenu(topMenu,{unfoldable:unfoldable,images:images,loadingStyleClasses:["o_menu_loading"],autoClose:()=>!document.body.classList.contains("editor_enable"),});}});return __exports;});;
187
188/* /website/static/src/js/content/redirect.js */
189odoo.define('@website/js/content/redirect',['@web/session'],function(require){'use strict';let __exports={};const{session}=require("@web/session");document.addEventListener("DOMContentLoaded",()=>{if(session.is_website_user){return;}
190if(!window.frameElement){const frontendToBackendNavEl=document.querySelector(".o_frontend_to_backend_nav");if(frontendToBackendNavEl){frontendToBackendNavEl.classList.add("d-flex");frontendToBackendNavEl.classList.remove("d-none");}
191const currentUrl=new URL(window.location.href);currentUrl.pathname=`/@${currentUrl.pathname}`;if(currentUrl.searchParams.get("enable_editor")||currentUrl.searchParams.get("edit_translations")){document.body.innerHTML="";window.location.replace(currentUrl.href);return;}
192const backendEditBtnEl=document.querySelector(".o_frontend_to_backend_edit_btn");if(backendEditBtnEl){backendEditBtnEl.href=currentUrl.href;document.addEventListener("keydown",(ev)=>{if(ev.key==="a"&&ev.altKey){currentUrl.searchParams.set("enable_editor",1);currentUrl.searchParams.set("edit_translations",1);window.location.replace(currentUrl.href);}},true);}}else{const backendUserDropdownLinkEl=document.getElementById("o_backend_user_dropdown_link");if(backendUserDropdownLinkEl){backendUserDropdownLinkEl.classList.add("d-none");backendUserDropdownLinkEl.classList.remove("d-flex");}
193window.frameElement.dispatchEvent(new CustomEvent("OdooFrameContentLoaded"));}});return __exports;});;
194
195/* /website/static/src/js/content/adapt_content.js */
196odoo.define('@website/js/content/adapt_content',[],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)=>
196{if(textarea.value.indexOf("data-oe-translation-source-sha")!==-1){textarea.classList.add("o_text_content_invisible");}});}});return __exports;});;
197
198/* /website/static/src/js/content/generate_video_iframe.js */
199odoo.define('@website/js/content/generate_video_iframe',[],function(require){'use strict';let __exports={};const SUPPORTED_DOMAINS=["youtu.be","youtube.com","youtube-nocookie.com","instagram.com","player.vimeo.com","vimeo.com","dailymotion.com","facebook.com",];function manageIframeSrcOnLoad(iframeEl,src){if(!iframeEl.closest("[data-need-cookies-approval]")){iframeEl.setAttribute("src",src);}else{iframeEl.dataset.nocookieSrc=src;iframeEl.setAttribute("src","about:blank");iframeEl.dataset.needCookiesApproval="true";}}
200__exports.generateVideoIframe=generateVideoIframe;function generateVideoIframe(parentEl,manageIframeSrcFct){const src=parentEl.dataset.oeExpression||parentEl.dataset.src;if(!src){return;}
201parentEl.replaceChildren();const extraEditionEl=document.createElement("div");extraEditionEl.className="css_editable_mode_display";const extraSizeEl=document.createElement("div");extraSizeEl.className=parentEl.dataset.isVertical?"media_iframe_video_size_for_vertical":"media_iframe_video_size";parentEl.append(extraEditionEl,extraSizeEl);const m=src.match(/^(?:https?:)?\/\/([^/?#]+)/);if(!m){return;}
202const domain=m[1].replace(/^www\./,"");if(!SUPPORTED_DOMAINS.includes(domain)){return;}
203const iframeEl=document.createElement("iframe");iframeEl.setAttribute("frameborder","0");iframeEl.setAttribute("allowfullscreen","allowfullscreen");iframeEl.setAttribute("referrerpolicy","strict-origin-when-cross-origin");parentEl.appendChild(iframeEl);manageIframeSrcFct?manageIframeSrcFct(iframeEl,src):manageIframeSrcOnLoad(iframeEl,src);return iframeEl;}
204document.addEventListener("DOMContentLoaded",()=>{for(const videoIframeEl of document.querySelectorAll(".media_iframe_video")){if(!videoIframeEl.querySelector(":scope > iframe")){generateVideoIframe(videoIframeEl);}}});return __exports;});;
205
206/* /website/static/src/js/content/age_verification_content_blur.js */
207odoo.define('@website/js/content/age_verification_content_blur',['@web/core/browser/cookie'],function(require){'use strict';let __exports={};const{cookie}=require("@web/core/browser/cookie");document.addEventListener("DOMContentLoaded",()=>{const ageVerificationPopupEl=document.querySelector(".s_age_verification_popup:has([data-blur-background='true'])");if(ageVerificationPopupEl){const isAgeVerified=cookie.get(ageVerificationPopupEl.id);ageVerificationPopupEl.dataset.ageVerificationPending=!isAgeVerified;}});return __exports;});

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.