1(()=>{let e={"construction-safety":"Construction","dangerous-substances":"COSHH",falls:"Falls",featured:"Featured","first-aid":"First Aid",food:"Food",harassment:"Harassment",healthcare:"Healthcare","health-and-safety-law":"Health & Safety Law","office-safety":"Office Safety","risk-assessment":"Risk Assessment","safety-leadership":"Safety Leadership","learning-management":"Training Staff",transportation:"Transportation",wellbeing:"Wellbeing","young-people":"Young People"};if(window.echo3?.pageType==="news"){let e=new URLSearchParams(window.location.search);e.has("category")?r(e.get("category")):t(null)}function t(t){let r=t?e[t]:"Health & Safety Articles",n=document.querySelector(".blog-page-all-articles-container h1");n&&(n.textContent=r,n.style.visibility="visible")}function r(r){t(Object.keys(e).find(e=>r.includes(e)));let n=Array.from(document.querySelectorAll(".article-categories-container li"));if(n.length>0){let e=n.find(e=>{let t=e.querySelector("a");return t&&t.getAttribute("href").includes(r)});n.forEach(e=>{e.className="cat-item"}),e&&(e.className="cat-item background-secondary")}}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".article-categories-container li").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();let t=this.querySelector("a");if(t){let e=t.getAttribute("href").split("/category/")[1].replace("/","");r(e),fetch(ajaxObj.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"filter_articles",nonce:ajaxObj.nonce,category:e})}).then(e=>e.text()).then(e=>{document.querySelector(".echo-3-posts-container ul").innerHTML=e}).catch(()=>{document.querySelector(".echo-3-posts-container ul").innerHTML="<p>There was an error. Please try again later.</p>"}),document.querySelector(".echo-3-posts-container ul").innerHTML="<p>Loading articles...</p>"}})})});let n=document.getElementById("billing_email"),o=document.getElementById("billing_em_ver");if(n&&o){let e=e=>String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);function i(e,t){let r=document.createElement("div");return r.id=t,r.style.color="red",r.style.marginTop="4px",r.style.display="none",r.textContent="Please enter a valid email address.",e.insertAdjacentElement("afterend",r),r}let t=i(n,"billing_email_error"),r=i(o,"billing_email_confirm_error");function a(t,r){t.addEventListener("blur",()=>{e(t.value.trim())?r.style.display="none":r.style.display="block"}),t.addEventListener("input",()=>{"block"===r.style.display&&e(t.value.trim())&&(r.style.display="none")})}a(n,t),a(o,r)}function l(e,t){let r=document.querySelector("#for-teams .woocommerce-Price-amount > bdi");if(!r)return null;let{price:n,percentage:o}=function(e,t){let r=window.echo3_pricing&&Array.isArray(window.echo3_pricing.discountTiers)?window.echo3_pricing.discountTiers:[],n=e*t,o=1,i=0;for(let e of r){let t=parseFloat(e.min_spend),r=parseFloat(e.multiplier);if(n>=t){o=r,i=parseFloat(e.percentage)||0;break}}return{price:t*o,percentage:i}}(e,t);r.textContent=`\xa3${(n*e).toFixed(2)}`;let i=function(e,t){let r=window.echo3_pricing&&Array.isArray(window.echo3_pricing.discountTiers)?window.echo3_pricing.discountTiers:[],n=e*t;for(let e=r.length-1;e>=0;e--){let t=parseFloat(r[e].min_spend);if(n<t)return{amountNeeded:(t-n).toFixed(2),minSpend:t,percentage:parseFloat(r[e].percentage)||0}}return null}(e,t),a=document.querySelector("#for-teams .tab-pane__price-sub"),l=document.querySelector("#for-teams .tab-pane__discount");if(a)if(o>0){let e=document.createElement("del");e.textContent=`\xa3${t.toFixed(2)}`;let r=document.createTextNode(`\xa3${n.toFixed(2)} `),o=document.createElement("b");o.textContent="per learner",a.replaceChildren(e,r,o)}else if(i){let e=Math.ceil(parseFloat(i.amountNeeded)/t);a.replaceChildren(document.createTextNode(`Price per learner (add ${e} more to unlock ${i.percentage}% off)`))}else a.replaceChildren();if(l){let e=l.querySelector(".tab-pane__discount-heading");e&&(e.textContent=`${o}% discount applied`),l.hidden=0===o}}function c(e,t=0){let r=document.querySelector(e);
1if(!r)return;let n=document.body.scrollTop||document.documentElement.scrollTop||window.pageYOffset,o=r.getBoundingClientRect().top+n+t;window.scrollTo({top:o,behavior:"smooth"}),document.body.scrollTo({top:o,behavior:"smooth"}),document.documentElement.scrollTo({top:o,behavior:"smooth"})}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".courses-table tr").forEach(e=>{let t=e.querySelector("span");t&&t.addEventListener("click",()=>{let r=e.querySelector(".accordion-content");if(r){let e=r.style.maxHeight&&"0px"!==r.style.maxHeight;r.style.maxHeight=e?"0":`${r.scrollHeight}px`,r.style.padding=e?"0":"1rem",t.classList.toggle("open",!e)}else(r=document.createElement("div")).classList.add("accordion-content"),r.innerHTML=` 2 <div>Accreditation: ${e.querySelector("td:nth-child(2)")?.innerText||"N/A"}</div> 3 <div>Duration: ${e.querySelector("td:nth-child(3)")?.innerText||"N/A"}</div> 4 <div>Credits: ${e.querySelector("td:nth-child(4)")?.innerText||"N/A"}</div> 5 `,e.appendChild(r),r.style.maxHeight=`${r.scrollHeight}px`,r.style.padding="1rem",t.classList.add("open")})}),document.addEventListener("click",e=>{if(!e.target.matches(".buy-btn button"))return;let t=e.target.closest("tr"),r=t?t.querySelector(".quantity input").value:"";1>Number(r)?alert("Enter a valid quantity"):function(e,t){if(window.Echo3Cart){let r=document.querySelector(`button[data-productid="${e}"]`),n=r?r.closest("tr"):null,o=n&&n.querySelector(".product-name a")?.textContent||"Course",i=parseFloat((n&&n.querySelector(".price")?.textContent||"0").replace(/[^0-9.]/g,""))||0,a=r?r.getAttribute("data-course-id"):null;window.ECHO3_DEBUG&&console.log("Adding to cart with Echo3Cart:",{productId:e,quantity:t,purchaseType:null,productName:o,price:i,courseId:a}),Echo3Cart.addItem(e,a,o,i,parseInt(t),null).then(()=>{window.Echo3CartSidebar&&"function"==typeof window.Echo3CartSidebar.open&&window.Echo3CartSidebar.open()}).catch(e=>{window.ECHO3_DEBUG&&console.error("Error adding to cart:",e)})}else fetch(`/?add-to-cart=${e}&quantity=${t}&purchase_type=null`).then(e=>e.text()).then(()=>{window.Echo3CartSidebar&&"function"==typeof window.Echo3CartSidebar.open&&window.Echo3CartSidebar.open()}).catch(e=>{window.ECHO3_DEBUG&&console.error("Error:",e)})}(parseInt(e.target.getAttribute("data-productid"),10),r)})}),document.addEventListener("DOMContentLoaded",function(){if(this.querySelector(".home-2026-page")){let e=document.querySelector(".product-cards-container"),t=window.location.protocol+"//"+window.location.hostname,r=["/online-course/manual-handling-training/","/online-course/first-aid-training/","/online-course/food-hygiene-level-2/"];if(e){let n=e.children;for(let e=0;e<Math.min(r.length,n.length);e++){let o=n[e];o.style.cursor="pointer",o.addEventListener("click",function(){window.location.href=t+r[e]})}}}}),document.addEventListener("DOMContentLoaded",function(){let e;!function(){if("u"<typeof Swiper)return;let e=document.querySelector(".top-component-reviews-swiper"),t=e?e.querySelectorAll(".swiper-slide").length:0;if(t>1){let r=t>=3,n=e.closest(".top-component-reviews-slider");new Swiper(".top-component-reviews-swiper",{slidesPerView:1.15,spaceBetween:16,loop:r,allowTouchMove:!0,autoplay:!!r&&{delay:4e3,disableOnInteraction:!1},navigation:{nextEl:n.querySelector(".swiper-button-next"),prevEl:n.querySelector(".swiper-button-prev")},pagination:{el:n.querySelector(".top-component-reviews__count"),type:"fraction"},breakpoints:{600:{slidesPerView:1.5,spaceBetween:16}}})}let r=document.querySelector(".top-component-gallery-swiper");r&&r.querySelectorAll(".swiper-slide").length>1&&new Swiper(".top-component-gallery-swiper",{slidesPerView:1,loop:!0,allowTouchMove:!0,speed:800,navigation:{nextEl:".top-component-gallery__next",prevEl:".top-component-gallery__prev"}})}(),(e=document.getElementById("qty_for-teams"))&&e.addEventListener("input",function(){let e=document.getElementById("quantity_for_teams");if(!e)return;let t=new URL(e.href);t.searchParams.set("quantity",this.value),e.href=t.toString(),e.setAttribute("data-quantity",this.value)}),function(){let e=document.getElementById("qty_for-teams");if(!e)return;let t=e.closest(".quantity-stepper");if(!t)return;
5let r=t.querySelector(".quantity-stepper__btn--minus"),n=parseInt(e.min,10)||1,o=parseInt(e.step,10)||1;function i(){r&&(r.disabled=(parseInt(e.value,10)||n)<=n)}t.querySelectorAll(".quantity-stepper__btn").forEach(function(t){t.addEventListener("click",function(){let r=parseInt(t.dataset.qtyStep,10)*o,a=parseInt(e.value,10)||n;e.value=Math.max(n,a+r),e.dispatchEvent(new Event("input",{bubbles:!0})),i()})}),e.addEventListener("input",i),i()}(),function(){let e=document.querySelector(".top-component-right"),t=document.querySelector(".top-component-grid");if(!e||!t)return;let r=!1,n=null,o=null;function i(){let t=r;t&&(e.classList.remove("is-floating"),e.style.width="",e.style.left="");let n=e.getBoundingClientRect();o={width:n.width,left:n.left},t&&(e.classList.add("is-floating"),e.style.width=o.width+"px",e.style.left=o.left+"px")}function a(t,n){t&&n&&(e.style.width=n.width+"px",e.style.left=n.left+"px",e.style.top=n.top+"px"),t&&!r?(e.classList.add("is-floating"),r=!0):!t&&r&&(e.classList.remove("is-floating"),e.style.width="",e.style.left="",e.style.top="",r=!1)}function l(){if(n=null,window.innerWidth<782)return void a(!1);let r=e.offsetHeight;if(t.getBoundingClientRect().bottom<r+16){o||i();let e=document.querySelector(".certificate-tab-container"),t=16;e&&(t=Math.min(16,e.getBoundingClientRect().top-r-16)),a(!0,{width:o.width,left:o.left,top:t})}else a(!1)}function c(){null===n&&(n=window.requestAnimationFrame(l))}window.addEventListener("scroll",c,{passive:!0,capture:!0}),document.addEventListener("scroll",c,{passive:!0,capture:!0}),window.addEventListener("resize",function(){o=null,i(),c()},{passive:!0}),c()}()}),window.echo3?.pageType==="product"&&document.addEventListener("DOMContentLoaded",function(){let e,t,r;!function(){let e=function(){let e=document.querySelector("#for-teams [data-price]");if(!e)return null;let t=parseFloat(e.dataset.price)||0;return 0===t?(window.ECHO3_DEBUG&&console.warn("Could not extract base price from data-price attribute"),null):t}();if(!e)return;let t=document.querySelectorAll(".input-text.qty");function r(t){let r=parseInt(t.target.value,10);isNaN(r)||r<1||l(r,e)}0!==t.length&&t.forEach(t=>{t.addEventListener("input",r),t.addEventListener("change",r);let n=parseInt(t.value,10);!isNaN(n)&&n>0&&l(n,e)})}(),new Swiper(".unit-blocks-swiper",{slidesPerView:1.2,loop:!1,allowTouchMove:!0,autoHeight:!1,speed:1e3,centeredSlides:!1,centeredSlidesBounds:!0,setWrapperSize:!0,spaceBetween:8,breakpoints:{600:{slidesPerView:2,slidesPerGroup:1,spaceBetween:30},782:{slidesPerView:2,slidesPerGroup:2,spaceBetween:30},891:{slidesPerView:3,slidesPerGroup:2,spaceBetween:40}},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});let n=document.querySelectorAll(".tab-headings-container .tab-button");function o(e){var t;e.preventDefault(),n.forEach(e=>e.classList.remove("active"));let r=e.currentTarget;t=r.getAttribute("data-tab"),t&&(document.getElementById(t)?(c(`#${t}`,-76),r.classList.add("active")):window.ECHO3_DEBUG&&console.warn(`Echo Error: No element found with ID "${t}"`))}n&&n.forEach(e=>{e.removeEventListener("click",o),e.addEventListener("click",o)}),document.querySelectorAll(".scroll-to-reviews").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),c("#reviews",-76)})}),(e=document.querySelector(".add-to-basket-container .product-selection-tabs-container ul"))&&e.addEventListener("click",function(e){let t,r;"LI"===e.target.tagName&&(document.querySelectorAll(".add-to-basket-container .product-selection-tabs-container .active").forEach(function(e){e.classList.remove("active")}),(t=e.target).classList.add("active"),r=t.getAttribute("data-tab"),document.getElementById(r).classList.add("active"))},!1),t=document.querySelector(".sticky-add-to-basket-component"),r=document.querySelector(".basket-sticky-trigger"),t&&r&&new IntersectionObserver(([e])=>{e.boundingClientRect.top<0?t.classList.add("is-visible"):t.classList.remove("is-visible")},{root:null,threshold:0}).observe(r),function(){let e=document.querySelector(".tab-headings-container");if(e){if(window.matchMedia("(min-width: 782px)").matches){let t=document.querySelector(".basket-sticky-trigger");if(!t)return;new IntersectionObserver(([t])=>{t.boundingClientRect.top<0?e.classList.add("is-visible"):e.classList.remove("is-visible")},{root:null,threshold:0}).observe(t);return}new IntersectionObserver(([t])=>{t.isIntersecting?e.classList.add("is-visible"):e.classList.remove("is-visible")},{root:null,threshold:0}).observe(e)}}()}),document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelector(".purchase-credit-page");
5e&&e.querySelectorAll('a[href^="#"]:not([href="#"])').forEach(e=>{let t=e.getAttribute("href");document.querySelector(t)&&e.addEventListener("click",e=>{e.preventDefault(),c(t)})})});let s="#ff5500",d=window.location;if(window.echo3?.pageType==="shop"){function u(e){let t=document.querySelector(".echo-shop-page-title");return!!t&&(t.innerHTML=e,!0)}if(!u("Echo3 Online Courses")){let e=new MutationObserver(()=>{u("Echo3 Online Courses")&&e.disconnect()});e.observe(document.body,{childList:!0,subtree:!0})}document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".course-categories-container");if(e){let t=Array.from(e.getElementsByTagName("a"));if(t){let e=d.pathname.replace(/^\/shop\/?/,""),r=t.find(t=>t.getAttribute("href").replace(/^\/shop\/?/,"")===e);r&&(r.closest(".wp-block-button").style.backgroundColor=s,r.style.cssText=`color: white !important; background-color: ${s} !important`)}}})}function p(){if(window.innerWidth<782){let t=0,r=document.querySelectorAll(".benefits-bar-container .slide"),n=r.length;function e(){r.forEach((e,r)=>{r===t||r===(t+1)%n?(e.style.opacity="1",e.style.transform="scale(1)",e.style.zIndex="2"):(e.style.opacity="0",e.style.transform="scale(0.98)",e.style.zIndex="1")})}r.forEach((e,t)=>{e.style.position="absolute",e.style.top="0",e.style.width="50%",e.style.transition="opacity 0.8s ease, transform 0.8s ease",e.style.left=t%2==0?"0":"50%",e.style.opacity="0",e.style.transform="scale(0.98)",e.style.zIndex="1"}),e(),setInterval(()=>{t=(t+2)%n,e()},2e3)}}document.addEventListener("DOMContentLoaded",()=>{var e;let t,r,n,o,i=document.querySelector(".account-icon-wrapper");if(!i)return;let a=i.cloneNode(!0);i.parentNode.replaceChild(a,i);let l=!!function(e){if(!e)return null;let t=function(e){try{let t=e.split(".");if(3!==t.length)return null;let r=t[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(r).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(n)}catch(e){return window.ECHO3_DEBUG&&console.error("Failed to parse JWT:",e),null}}(e);return t?t&&"number"==typeof t.exp&&1e3*t.exp<Date.now()?null:t:null}((t=document.cookie.match(RegExp("(^| )echo3_token=([^;]+)")))?t[2]:null),c="dev.echo-3.co.uk"===window.location.host?"https://dev-lms.echo-3.co.uk/":"https://lms.echo-3.co.uk/";a&&!l?(e="echo3_token",o=(n=(r=window.location.hostname).split(".")).length>=2?"."+n[n.length-2]+"."+n[n.length-1]:r,document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain="+o,document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",a.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),window.location.href=`${c}login`})):a&&l&&a.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),window.location.href=c})}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll(".author-card__toggle");e.length&&e.forEach(function(e){let t=document.getElementById(e.getAttribute("aria-controls"));t&&e.addEventListener("click",function(){let r="true"!==e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",r?"true":"false"),e.textContent=r?e.dataset.labelHide:e.dataset.labelRead,t.hidden=!r})})}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",p):p(),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".editor-toggle").forEach(function(e){e.addEventListener("click",function(t){t.stopPropagation(),window.ECHO3_DEBUG&&console.log("Button clicked");let r=e.closest(".editor-container");if(!r){window.ECHO3_DEBUG&&console.log("Container not found");return}let n=r.querySelector(".editor-content"),o=e.querySelector(".editor-title-loader");if(r.classList.contains("editor--hide")){if(r.classList.remove("editor--hide"),e.setAttribute("aria-expanded","true"),n){n.removeAttribute("hidden");let e=r.querySelector(".editor-content-block"),t=e?e.offsetHeight+40:0;n.style.maxHeight=t+"px",n.style.margin="12px 0px"}if(o){let t=e.querySelector(".editor-title-text");if(t){let e=t.offsetWidth;setTimeout(function(){o.style.width=e+"px"},10)}else o.style.width="100%"}}else{if(r.classList.add("editor--hide"),e.setAttribute("aria-expanded","fal
5se"),n){n.style.maxHeight="0px",n.style.margin="0px";let e=function(t){t.target===n&&"max-height"===t.propertyName&&(n.removeEventListener("transitionend",e),r.classList.contains("editor--hide")&&n.setAttribute("hidden",""))};n.addEventListener("transitionend",e)}o&&(o.style.width="0%")}e.blur()})})}),document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelector(".wp-site-blocks header"),t=0;window.addEventListener("scroll",()=>{let r=window.scrollY;r<=140||(r>t?e.classList.add("hidden"):e.classList.remove("hidden"),t=r)})}),document.addEventListener("DOMContentLoaded",function(){let e=window.matchMedia("(max-width: 782px)"),t=document.querySelector(".site-header__mobile-actions"),r=document.querySelector(".site-header__menu-toggle"),n=document.querySelector(".site-header__bar .site-header__actions"),o=document.querySelector(".site-header__brand-inner");function i(){let i=document.querySelector(".basket-icon-wrapper");if(!t||!r||!i)return;let a=document.querySelector(".site-header__login");e.matches?(a&&t.insertBefore(a,r),t.insertBefore(i,r)):(a&&o&&o.appendChild(a),n&&n.appendChild(i))}i(),e.addEventListener("change",i);let a=document.querySelector(".echo3-navigation-toggle"),l=document.querySelector(".echo3-navigation-menu .navigation");r&&a&&l&&(r.addEventListener("click",function(e){e.stopPropagation(),a.click()}),new MutationObserver(function(){r.setAttribute("aria-expanded",l.classList.contains("is-open")?"true":"false")}).observe(l,{attributes:!0,attributeFilter:["class"]}))}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll(".popular-courses-carousel");e.length&&"u">typeof Swiper&&e.forEach(function(e){let t=e.querySelector(".swiper");t&&new Swiper(t,{slidesPerView:1.2,loop:!1,allowTouchMove:!0,autoHeight:!1,speed:400,spaceBetween:16,breakpoints:{600:{slidesPerView:2,slidesPerGroup:2,spaceBetween:24},1024:{slidesPerView:3,slidesPerGroup:3,spaceBetween:24},1200:{slidesPerView:4,slidesPerGroup:4,spaceBetween:24}},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},observer:!0,observeParents:!0})})}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll(".comparison-table__carousel");e.length&&"u">typeof Swiper&&e.forEach(function(e){let t=e.querySelector(".swiper");t&&new Swiper(t,{slidesPerView:1,loop:!1,allowTouchMove:!0,autoHeight:!1,speed:400,spaceBetween:16,navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},pagination:{el:e.querySelector(".swiper-pagination"),clickable:!0},observer:!0,observeParents:!0})})});let g=[{selector:".logo-band",variant:"fade",stagger:".logo-band__row > *"},{selector:".popular-courses-block",variant:"fade-up",stagger:".course-card",triggerOnly:!0},{selector:".stats-block",variant:"fade",stagger:".stat-item",triggerOnly:!0},{selector:".echo-3-differences-component > .wp-block-column:first-child",variant:"from-left"},{selector:".echo-3-differences-component > .wp-block-column:last-child",variant:"from-right"},{selector:"#reviewsio-carousel-widget",variant:"fade"},{selector:".switch-to-credits-component",variant:"zoom-in"},{selector:".latest-articles-section",variant:"fade-up",stagger:".post-card"},{selector:".net-zero-section",variant:"blur-in"},{selector:".about-page .split:not(.split--reverse) > .split__media",variant:"from-left"},{selector:".about-page .split:not(.split--reverse) > div:not(.split__media)",variant:"from-right"},{selector:".about-page .split--reverse > .split__media",variant:"from-right"},{selector:".about-page .split--reverse > div:not(.split__media)",variant:"from-left"},{selector:".timeline__item:nth-child(odd)",variant:"from-left"},{selector:".timeline__item:nth-child(even)",variant:"from-right"},{selector:".value-band",variant:"fade-up",stagger:".sec-head, .meaning",triggerOnly:!0},{selector:".journey-section",variant:"fade-up",stagger:".jstep, .journey-payoff",triggerOnly:!0},{selector:".best-value-section",variant:"fade-up",stagger:".sec-head, .value-comparison__col, .provider-comparison",triggerOnly:!0},{selector:".stats-section",variant:"fade-up",stagger:".stat",triggerOnly:!0},{selector:".train-yourself-page .split > *:first-child",variant:"from-left"},{selector:".train-yourself-page .split > *:last-child",variant:"from-right"},{selector:".customer-quotes__inner",variant:"fade-up",stagger:".customer-quotes__head, .quote",triggerOnly:!0},{selector:".faq-section",variant:"fade-up",stagger:".sec-head, .faq > details",triggerOnly:!0},{selector:".final-card",variant:"zoom-in"},{selector:".stats-bar",variant:"fade-up",stagger:".stat",triggerOnly:!0},{selector:".use-cases-section",variant:"fade-up",stagger:".persona-card",triggerOnly:!0},{selector:".lms-callout",variant:"zoom-in"},{selector:".gsf-container",variant:"fade-up",stagger:".gsf-card, .gsf-eyebrow, .gsf-step",triggerOnly:!0},{selector:".order-finder-section",variant:"fade-up",stagger:".sec-head, .order-finder-placeholder",triggerOnly:!0},{selector:".bulk-discounts-section",variant:"fade-up",stagger:".sec-head, .bulk-discount-tiers__grid .card",triggerOnly:!0},{selector:".cta-band",variant:"zoom-in"},{selector:".lms-page .sec-head",variant:"fade-up"},{selector:".lms-page .grid",variant:"fade-up",stagger:".persona-card, .card",triggerOnly:!0},{selector:".migrate",variant:"fade-up",stagger:".migrate > *",triggerOnly:!0},{selector:".feature:not(.feature--reverse) > .feature__media",variant:"from-left"},{selector:".feature:not(.feature--reverse) > div:not(.feature__media)",variant:"from-right"},{selector:".feature--reverse > .feature__media",variant:"from-right"},{selector:".feature--reverse > div:not(.feature__media)",variant:"from-left"},{selector:".cross-sell > .lms-media",variant:"from-left"},{selector:".cross-sell > div",variant:"from-right"},{selector:".price-grid",variant:"fade-up",stagger:".price-card",triggerOnly:!0},{selector:".lead > div:not(.form-card)",variant:"from-left"},{selector:".lead > .form-card",variant:"from-right"},{selector:".single-product-page-container .top-component-reviews-sli
5der",variant:"fade"},{selector:".single-product-page-container #description",variant:"fade-up"},{selector:".single-product-page-container .certificate-tab-container > h2",variant:"fade-up"},{selector:".single-product-page-container .certificate-left",variant:"from-left"},{selector:".single-product-page-container .certificate-right",variant:"from-right"},{selector:".single-product-page-container #course-content",variant:"fade-up",stagger:"h2, .unit-card",triggerOnly:!0},{selector:".single-product-page-container .x-woocommerce-featured-video-container > div > div:first-child",variant:"from-left"},{selector:".single-product-page-container .x-woocommerce-featured-video-container > div > div:last-child",variant:"from-right"},{selector:".single-product-page-container .course-assessment-container",variant:"fade-up",stagger:"h2, .course-assessment-container > div > div",triggerOnly:!0},{selector:".single-product-page-container .tab-body-container#faqs",variant:"fade-up",stagger:"h2, .editor-container",triggerOnly:!0},{selector:".single-product-page-container .administration-container > h3",variant:"fade-up"},{selector:".single-product-page-container .learner-types-container",variant:"fade-up",stagger:".individual-container, .group-admin-container",triggerOnly:!0},{selector:".single-product-page-container .bulk-discount-tiers",variant:"fade-up",stagger:".bulk-discount-tiers__heading, .bulk-discount-tiers__grid .card",triggerOnly:!0},{selector:".single-product-page-container .secure-checkout-component",variant:"fade-up"},{selector:".single-product-page-container .related-courses",variant:"fade-up",stagger:"h3, li.product",triggerOnly:!0},{selector:".purchase-credit-page .split > *:first-child",variant:"from-left"},{selector:".purchase-credit-page .split > *:last-child",variant:"from-right"},{selector:".purchase-credit-page .section--orange",variant:"fade-up",stagger:".sec-head, .purchase-credit-benefits-component .card",triggerOnly:!0},{selector:".purchase-credit-page .lms-section > .container > .sec-head",variant:"fade-up"},{selector:".mobile-band__copy",variant:"from-left"},{selector:".mobile-band__phone",variant:"from-right"},{selector:".bulk-section",variant:"fade-up",stagger:".bulk-discount-tiers__heading, .bulk-discount-tiers__grid .card",triggerOnly:!0},{selector:".big-teams-section",variant:"fade-up",stagger:".big-teams > div",triggerOnly:!0},{selector:".faqs",variant:"fade-up",stagger:".faqs__head, .faq > details",triggerOnly:!0}],f=[".home-2026-page",".about-page",".train-yourself-page",".train-your-team-page",".lms-page",".single-product-page-container",".purchase-credit-page"],m="reveal",h="is-visible";function v(e){return e.getBoundingClientRect().top<.9*window.innerHeight}document.addEventListener("DOMContentLoaded",()=>{if(!f.some(e=>document.querySelector(e))||window.matchMedia("(prefers-reduced-motion: reduce)").matches||"u"<typeof IntersectionObserver)return;function e(e,t,r){e.classList.add(m,`${m}--${t}`),"number"==typeof r&&e.style.setProperty("--reveal-index",r)}function t(e){e.classList.remove(h),Array.from(e.classList).forEach(t=>{(t===m||t.startsWith(`${m}--`))&&e.classList.remove(t)}),e.style.removeProperty("--reveal-index")}function r(e){e.classList.contains(m)?e.addEventListener("transitionend",function r(n){n.target===e&&(e.removeEventListener("transitionend",r),t(e))}):t(e)}let n=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){var t;(t=e.target).classList.add(h),r(t),t.querySelectorAll(`.${m}`).forEach(e=>{e.classList.add(h),r(e)}),n.unobserve(e.target)}})},{root:null,threshold:0,rootMargin:"0px 0px -10% 0px"});g.forEach(({selector:t,variant:r,stagger:o,triggerOnly:i})=>{document.querySelectorAll(t).forEach(t=>{let a=!v(t),l=!i&&a;l&&e(t,r);let c=o?Array.from(t.querySelectorAll(o)).filter(e=>e.getBoundingClientRect().height>0&&!v(e)):[];c.forEach((t,n)=>{e(t,r,n)}),l||i&&a?n.observe(t):c.forEach(e=>n.observe(e))})})}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".video-embed__play-btn").forEach(e=>{e.addEventListener("click",()=>{let t=e.closest(".video-embed");if(!t)return;let r=t.getAttribute("data-video-url");if(!r)return;let n=t.getAttribute("data-video-title")||"Embedded video",o=-1===r.indexOf("?")?"?":"&",i=document.createElement("iframe");i.src=`${r}${o}autoplay=1`,i.setAttribute("allow","autoplay; fullscreen; picture-in-picture"),i.setAttribute("allowfullscreen",""),i.setAttribute("title",n);let a=t.querySelector(".video-embed__holding-image");a&&a.remove(),e.remove(),t.appendChild(i)})})}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".basket-icon-wrapper figure.wp-block-image");if(!e)return;let t=document.createElement("span");function r(e){e>0?(t.textContent=e,t.style.display="block"):t.style.display="none"}
5t.className="cart-count-badge",t.id="cart-count-badge",e.appendChild(t),window.Echo3Cart&&r(Echo3Cart.getItemCount()),window.addEventListener("echo3_cart_updated",function(e){let t=e.detail&&e.detail.cart;t&&Array.isArray(t.items)?r(t.items.reduce(function(e,t){return e+(t.quantity||0)},0)):window.Echo3Cart&&r(Echo3Cart.getItemCount())})})})(); 6//# sourceMappingURL=scripts.js.map
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.