1(()=>{var f=class{constructor(e){this.element=e,this.sections=this.element.querySelectorAll('[data-element="section"]'),this.buttons=this.element.querySelectorAll('[data-element="button"]'),this.mobileButtons=this.element.querySelectorAll('.path-nav--mobile [data-element="button"]'),this.accordionToggles=this.element.querySelectorAll(".gb-accordion__toggle"),this.activeButtonClass="path-nav__button--active",this.init()}init(){document.documentElement.classList.add("nav-path--js"),this.sections.length>0&&this.buttons.length>0&&(window.addEventListener("scroll",()=>{this.handleScroll()}),this.handleScroll()),this.mobileButtons.forEach(e=>{e.addEventListener("click",o=>{o.preventDefault(),this.mobileButtonClick(e)})})}handleScroll(){let e=window.scrollY;this.buttons.forEach(o=>{o.classList.remove(this.activeButtonClass)});for(let o=this.sections.length-1;o>=0;o--)if(e>this.sections[o].offsetTop-132){let n=this.sections[o].id;document.querySelector(`[href="#${n}"]`).classList.add(this.activeButtonClass);break}}mobileButtonClick(e){this.accordionToggles.forEach(o=>{o.click(),setTimeout(()=>{let n=e.getAttribute("href");if(n){let t=document.querySelector(n);t&&t.scrollIntoView({behavior:"smooth",block:"start"})}},200)})}},V={init(){document.querySelectorAll('[data-module="path-nav"]').forEach(e=>{new f(e)})}},L=V;function q(i,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function u(i){return function(e){if(Array.isArray(e))return v(e)}(i)||function(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,o){if(e){if(typeof e=="string")return v(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,o)}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(i,e){(e==null||e>i.length)&&(e=i.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=i[o];return n}var T,g,c,p,j,I=(T=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],g=function(){function i(t){var s=t.targetModal,a=t.triggers,r=a===void 0?[]:a,l=t.onShow,d=l===void 0?function(){}:l,h=t.onClose,O=h===void 0?function(){}:h,b=t.openTrigger,F=b===void 0?"data-micromodal-trigger":b,w=t.closeTrigger,_=w===void 0?"data-micromodal-close":w,E=t.openClass,D=E===void 0?"is-open":E,k=t.disableScroll,P=k!==void 0&&k,C=t.disableFocus,K=C!==void 0&&C,S=t.awaitCloseAnimation,N=S!==void 0&&S,M=t.awaitOpenAnimation,R=M!==void 0&&M,A=t.debugMode,$=A!==void 0&&A;(function(H,Q){if(!(H instanceof Q))throw new TypeError("Cannot call a class as a function")})(this,i),this.modal=document.getElementById(s),this.config={debugMode:$,disableScroll:P,openTrigger:F,closeTrigger:_,openClass:D,onShow:d,onClose:O,awaitCloseAnimation:N,awaitOpenAnimation:R,disableFocus:K},r.length>0&&this.registerTriggers.apply(this,u(r)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var e,o,n;return e=i,(o=[{key:"registerTriggers",value:function(){for(var t=this,s=arguments.length,a=new Array(s),r=0;r<s;r++)a[r]=arguments[r];a.filter(Boolean).forEach(function(l){l.addEventListener("click",function(d){return t.showModal(d)})})}},{key:"showModal",value:function(){var t=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var a=function r(){t.modal.removeEventListener("animationend",r,!1),t.setFocusToFirstNode()};this.modal.addEventListener("animationend",a,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,s)}},{key:"closeModal",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,t),this.config.awaitCloseAnimation){var a=this.config.openClass;this.modal.addEventListener("animationend",function r(){s.classList.remove(a),s.removeEventListener("animationend",r,!1)},!1)}else s.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(t){this.modal=document.getElementById(t),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(t){if(this.config.disableScroll){var s=document.querySelector("body");switch(t){case"enable":Object.assign(s.style,{overflow:""});break;case"disable":Object.assign(s.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(t){(t.target.hasAttribute(this.config.closeTrigger)||t.target.parentNode.hasAttribute(this.config.closeTrigger))&&(t.preventDefault(),t.stopPropagation(),this.closeModal(t))}},{key:"onKeydown",value:function(t){t.keyCode===27&&this.closeModal(t),t.keyCode===9&&this.retainFocus(t)}},{key:"getFocusableNodes",value:function(){var t=this.modal.querySelectorAll(T);return Array.apply(void 0,u(t))}},{key:"setFocusToFirstNode",value:function(){var t=this;if(!this.config.disableFocus){var s=this.getFocusableNodes();if(s.length!==0){var a=s.filter(function(r){return!r.hasAttribute(t.config.closeTrigger)});a.length>0&&a[0].focus(),a.length===0&&s[0].focus()}}}},{key:"retainFocus",value:function(t){var s=this.getFocusableNodes();if(s.length!==0)if(s=s.filter(function(r){return r.offsetParent!==null}),this.modal.contains(document.activeElement)){var a=s.indexOf(document.activeElement);t.shiftKey&&a===0&&(s[s.length-1].focus(),t.preventDefault()),!t.shiftKey&&s.length>0&&a===s.length-1&&(s[0].focus(),t.preventDefault())}else s[0].focus()}}])&&q(e.prototype,o),n&&q(e,n),i}(),c=null,p=function(i){if(!document.getElementById(i))return console.warn("MicroModal: \u2757Seems like you have missed %c'".concat(i,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(i,'"></div>')),!1},j=function(i,e){if(function(n){n.length<=0&&(console.warn("MicroModal: \u2757Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))}(i),!e)return!0;for(var o in e)p(o);return!0},{init:function(i){var e=Object.assign({},{openTrigger:"data-micromodal-trigger"},i),o=u(document.querySelectorAll("[".concat(e.openTrigger,"]"))),n=function(a,r){var l=[];return a.forEach(function(d){var h=d.attributes[r].value;l[h]===void 0&&(l[h]=[]),l[h].push(d)}),l}
2(o,e.openTrigger);if(e.debugMode!==!0||j(o,n)!==!1)for(var t in n){var s=n[t];e.targetModal=t,e.triggers=u(s),c=new g(e)}},show:function(i,e){var o=e||{};o.targetModal=i,o.debugMode===!0&&p(i)===!1||(c&&c.removeEventListeners(),(c=new g(o)).showModal())},close:function(i){i?c.closeModalById(i):c.closeModal()}});typeof window<"u"&&(window.MicroModal=I);var m=I;var{__:z}=window.wp.i18n,y=class{constructor(e){this.element=e,this.productId=this.element.dataset.productId,this.nonce=this.element.dataset.nonce,this.modal=document.querySelector('[data-element="product-preview-modal"]'),this.modalOverlay=this.modal.querySelector('[data-element="product-preview-overlay"]'),this.modalContainer=this.modal.querySelector('[data-element="product-preview-container"]'),this.modalTitle=this.modal.querySelector('[data-element="product-preview-title"]'),this.modalDescription=this.modal.querySelector('[data-element="product-preview-description"]'),this.modalObjectives=this.modal.querySelector('[data-element="product-preview-objectives"]'),this.modalIconsContainer=this.modal.querySelector('[data-element="product-preview-icons"]'),this.modal.icons={location:this.modalIconsContainer.querySelector('[data-icon="location"]'),online:this.modalIconsContainer.querySelector('[data-icon="online"]'),certified:this.modalIconsContainer.querySelector('[data-icon="certified"]'),languages:this.modalIconsContainer.querySelector('[data-icon="languages"]'),french:this.modalIconsContainer.querySelector('[data-icon="fr"]'),english:this.modalIconsContainer.querySelector('[data-icon="en"]')},this.modalLink=this.modal.querySelector('[data-element="product-preview-link"]'),this.modalCloseBtn=this.modal.querySelector('[data-element="product-preview-close"]'),this.microModalAttributes={onClose:()=>this.onModalClose(),onShow:()=>this.onModalShow(),openClass:"product-preview--is-open"},this.init()}init(){this.element.addEventListener("click",this.onClick.bind(this)),this.modalContainer.addEventListener("click",this.stopEventPropagation.bind(this)),this.modalCloseBtn.addEventListener("click",this.hideModal.bind(this)),this.modalOverlay.addEventListener("click",this.hideModal.bind(this))}onClick(e){e.preventDefault(),this.ajaxResponse=this.ajaxRequest()}populateModal(e){this.modalLink.setAttribute("href",e.link),this.modalTitle.innerHTML=e.name,this.modalDescription.innerHTML=`<span class="product-preview__description-title">${z("Description:","doceo")} </span>`+e.description,this.modalLink.href=e.permalink;let o=e.objectives.slice(0,2).map(n=>`<li>${n.objective}</li>`);this.modalObjectives.innerHTML=o.join(""),e.location&&(this.modal.icons.location.style.display="flex"),e.online&&(this.modal.icons.online.style.display="flex"),e.certified&&(this.modal.icons.certified.style.display="flex"),e.languages.length>0&&(this.modal.icons.languages.style.display="flex"),e.languages.includes("fr")&&(this.modal.icons.french.style.display="flex"),e.languages.includes("en")&&(this.modal.icons.english.style.display="flex")}showModal(){m.show("product-preview",this.microModalAttributes)}hideModal(){m.close("product-preview")}
2hideIcons(){Object.values(this.modal.icons).forEach(e=>e.style.display="none")}onModalClose(){this.hideIcons(),document.body.style.overflow="auto"}onModalShow(){document.body.style.overflow="hidden"}stopEventPropagation(e){e.stopPropagation()}ajaxRequest(){let e=new FormData;e.append("action","alzr_get_preview_product_content"),e.append("nonce",this.nonce),e.append("productid",this.productId),fetch(window.doceoVars.ajaxurl,{method:"POST",credentials:"same-origin",body:e}).then(o=>o.json()).then(o=>{o&&!o.error?(this.populateModal(o),this.showModal()):(o.error&&console.log(o.error),window.location=window.location.origin+"/?p="+this.productId)}).catch(function(o){console.log("Preview product"),console.error(o),window.location=window.location.origin+"/?p="+this.productId})}},U={init(){document.querySelectorAll('[data-type="preview-button"]').forEach(e=>{new y(e)}),m.init()}},B=U;var x=window.jQuery;(()=>{function i(){B.init()}x(document).ready(()=>{i(),L.init()}),x(document).ajaxComplete(()=>i())})();})();
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.