PageSourceSearch

https://www.hypertherm.com/dist/js/chunks/tc.f5c2975bb4ee9e1ee389.chunk.bundle.js

js hypertherm.com collected 2026-09-25 22:49:04 UTC 28,313 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhypertherm_dotcom=self.webpackChunkhypertherm_dotcom||[]).push([[1568,5822,7575],{5409:function(t,e,s){s.d(e,{A:function(){return i}});class i{constructor(){this.overlay=null,this.parent=null,this.isFullViewport=!0}show(t=null){if(this.overlay&&document.body.contains(this.overlay))return;this.isFullViewport=!t,this.parent=t||document.body,this.overlay=document.createElement("div"),this.overlay.className=this.isFullViewport?"loading-spinner-overlay loading-spinner-overlay--fullscreen":"loading-spinner-overlay loading-spinner-overlay--fill-parent";const e=document.createElement("div");e.className="loading-spinner-box";const s=document.createElement("div");s.className="spinner",e.appendChild(s),this.overlay.appendChild(e),this.isFullViewport?(document.body.appendChild(this.overlay),document.body.classList.add("loading-spinner-active")):("static"===window.getComputedStyle(this.parent).position&&(this.parent.style.position="relative"),this.parent.appendChild(this.overlay)),this.overlay.offsetWidth,this.overlay.classList.add("loading-spinner-overlay--visible")}hide(){this.overlay&&(this.overlay.classList.remove("loading-spinner-overlay--visible"),setTimeout(()=>{this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),this.isFullViewport&&document.body.classList.remove("loading-spinner-active"),this.overlay=null,this.parent=null},150))}}},7498:function(t,e,s){s.d(e,{initializePopovers:function(){return n},initializeTooltips:function(){return o}});var i=s(2245);class a{constructor(t,e={}){this.element=t,this.isTooltip="tooltip"===t.getAttribute("data-toggle");const s={container:t.getAttribute("data-container"),placement:t.getAttribute("data-placement"),trigger:t.getAttribute("data-trigger"),html:t.getAttribute("data-html")};Object.keys(s).forEach(t=>{null!==s[t]&&void 0!==s[t]||delete s[t]}),void 0!==s.html&&(s.html="false"!==s.html),this.options={container:null,placement:"auto",html:!this.isTooltip,trigger:"hover",...e,...s},this.tooltipElement=null,this.isVisible=!1,this.init()}init(){"hover"===this.options.trigger?(this.element.addEventListener("mouseenter",()=>this.show()),this.element.addEventListener("mouseleave",()=>this.hide())):"click"===this.options.trigger&&this.element.addEventListener("click",t=>{t.preventDefault(),this.toggle()})}show(){if(this.isVisible)return;let t,e;this.isTooltip?(t=this.element.getAttribute("data-original-title")||this.element.getAttribute("title"),this.element.hasAttribute("title")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")),this.element.removeAttribute("title"))):(t=this.element.getAttribute("data-content"),e=this.element.getAttribute("data-title")||this.element.getAttribute("title")),t&&(this.tooltipElement=this.isTooltip?this.createTooltipElement(t):this.createPopoverElement(e,t),this.placeElement(),this.isVisible=!0,"hover"===this.options.trigger&&(this.tooltipElement.addEventListener("mouseenter",()=>{this.isVisible=!0}),this.tooltipElement.addEventListener("mouseleave",()=>{this.hide()})))}hide(){this.isVisible&&this.tooltipElement&&(setTimeout(()=>{this.isVisible||(this.tooltipElement&&this.tooltipElement.parentNode&&this.tooltipElement.parentNode.removeChild(this.tooltipElement),this.tooltipElement=null)},100),this.isVisible=!1)}toggle(){this.isVisible?this.hide():this.show()}createTooltipElement(t){const e=document.createElement("div");e.className="tooltip fade in",e.setAttribute("role","tooltip"),e.style.display="block";const s=document.createElement("div");s.className="tooltip-arrow",e.appendChild(s);const i=document.createElement("div");i.className="tooltip-inner",i[this.options.html?"innerHTML":"textContent"]=t,e.appendChild(i);let a=document.body;if(this.options.container){const t=document.querySelector(this.options.container);t&&(a=t)}return a.appendChild(e),e}createPopoverElement(t,e){const s=document.createElement("div");s.className="popover fade in",s.setAttribute("role","tooltip"),s.style.display="block";const i=document.createElement("div");if(i.className="arrow",s.appendChild(i),t){const e=document.createElement("h3");e.className="popover-title",e[this.options.html?"innerHTML":"textContent"]=t,s.appendChild(e)}const a=document.createElement("div");a.className="popover-content",a[this.options.html?"innerHTML":"textContent"]=e,s.appendChild(a);let o=document.body;if(this.options.container){const t=document.querySelector(this.options.container);t&&(o=t)}return o.appendChild(s),s}placeElement(){if(!this.tooltipElement)return;const t=this.element.getBoundingClientRect(),e=this.tooltipElement.getBoundingClientRect();let s,i,a=this.options.placement;if("auto"===a){const s=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=t.top,n=i-t.bottom,l=t.left,r=s-t.right;a=n>=e.height?"bottom":o>
1=e.height?"top":r>=e.width?"right":l>=e.width?"left":"bottom"}switch(this.tooltipElement.classList.add(a),a){case"top":s=t.top+window.scrollY-e.height-10,i=t.left+window.scrollX+t.width/2-e.width/2;break;case"bottom":default:s=t.bottom+window.scrollY+10,i=t.left+window.scrollX+t.width/2-e.width/2;break;case"left":s=t.top+window.scrollY+t.height/2-e.height/2,i=t.left+window.scrollX-e.width-10;break;case"right":s=t.top+window.scrollY+t.height/2-e.height/2,i=t.right+window.scrollX+10}this.tooltipElement.style.position="absolute",this.tooltipElement.style.top=`${s}px`,this.tooltipElement.style.left=`${i}px`,this.tooltipElement.style.zIndex="1070"}}function o(t=document){t.querySelectorAll('[data-toggle="tooltip"]').forEach(t=>{new a(t,{placement:"auto",html:!1,trigger:"hover"})})}function n(t=document){t.querySelectorAll('[data-toggle="popover"]').forEach(t=>{new a(t,{placement:"auto",html:!0,trigger:"hover"})})}(0,i.v)(()=>{document.querySelectorAll('[data-toggle="popover"]').forEach(t=>{new a(t,{placement:"auto",html:!0,trigger:"hover"})}),document.querySelectorAll('[data-toggle="tooltip"]').forEach(t=>{new a(t,{placement:"auto",html:!1,trigger:"hover"})})})},4285:function(t,e){class s{constructor(t){t&&!t.dataset.tabsInitialized&&(this.tabElement=t,this.tabElement.dataset.tabsInitialized="true",this.tablist=this.tabElement.closest("ul.nav-tabs, .nav-tabs"),this.tablist?this.tabs=Array.from(this.tablist.querySelectorAll('[data-toggle="tab"]')):this.tabs=[this.tabElement],this.targetSelector=this._getTargetSelector(),this.targetPanel=this.targetSelector?this._querySelector(this.targetSelector):null,!this.targetPanel&&this.targetSelector,this._bindAccessibility(),this._bindEvents())}static initAll(){document.querySelectorAll('[data-toggle="tab"]').forEach(t=>new s(t))}static initContainer(t){const e="string"==typeof t?document.querySelector(t):t;e&&e.querySelectorAll('[data-toggle="tab"]').forEach(t=>new s(t))}_bindAccessibility(){this.tablist&&this.tablist.setAttribute("role","tablist"),this.tabs.forEac
1h(t=>{const e=t.dataset.target||t.getAttribute("href"),s=e?this._querySelector(e):null;t.setAttribute("role","tab");const i=this._isActive(t);t.setAttribute("aria-selected",i.toString()),t.setAttribute("tabindex",i?"0":"-1"),s&&(t.id||(t.id=`tab-${Math.random().toString(36).substr(2,9)}`),s.id||(s.id=`panel-${Math.random().toString(36).substr(2,9)}`),t.setAttribute("aria-controls",s.id),s.setAttribute("role","tabpanel"),s.setAttribute("aria-labelledby",t.id),s.setAttribute("aria-hidden",(!i).toString()))})}_bindEvents(){this.tabElement.addEventListener("click",t=>{t.preventDefault(),this.show()}),this.tabElement.addEventListener("keydown",t=>{this._handleKeyboard(t)})}_handleKeyboard(t){const e=this.tabs.indexOf(this.tabElement);switch(t.key){case"ArrowRight":case"ArrowDown":t.preventDefault(),this._focusTab((e+1)%this.tabs.length);break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this._focusTab((e-1+this.tabs.length)%this.tabs.length);break;case"Home":t.preventDefault(),this._focusTab(0);break;case"End":t.preventDefault(),this._focusTab(this.tabs.length-1);break;case"Enter":case" ":t.preventDefault(),this.show()}}_focusTab(t){const e=this.tabs[t];e&&e.focus()}_dispatchEvent(t,e,s=!1,i=null){const a=new CustomEvent(t,{bubbles:!0,cancelable:s,detail:{relatedTarget:i}});return e.dispatchEvent(a),!a.defaultPrevented}show(){if(this._isActive(this.tabElement))return;const t=this._getActiveTab();this._dispatchEvent("show.bs.tab",this.tabElement,!0,t)&&(t&&t!==this.tabElement&&this._dispatchEvent("hide.bs.tab",t,!1,this.tabElement),this._deactivateSiblingTabs(),this._deactivateSiblingPanels(),this._activateTab(),this.targetPanel&&this._activatePanel(this.targetPanel),t&&t!==this.tabElement&&this._dispatchEvent("hidden.bs.tab",t,!1,this.tabElement),this._dispatchEvent("shown.bs.tab",this.tabElement,!1,t))}
1_deactivateSiblingTabs(){this.tablist&&this.tabs.forEach(t=>{t.classList.remove("active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");const e=t.closest("li.nav-item, li");e&&e.classList.remove("active")})}_deactivateSiblingPanels(){if(!this.targetPanel)return;const t=this.targetPanel.closest(".tab-content");t&&t.querySelectorAll(":scope > .tab-pane").forEach(t=>{t!==this.targetPanel&&(t.classList.remove("in","active"),t.setAttribute("aria-hidden","true"))})}_activateTab(){this.tabElement.classList.add("active"),this.tabElement.setAttribute("aria-selected","true"),this.tabElement.setAttribute("tabindex","0");const t=this.tabElement.closest("li.nav-item, li");t&&t.classList.add("active")}_activatePanel(t){t.classList.contains("fade")&&t.classList.remove("in"),t.classList.add("active"),t.setAttribute("aria-hidden","false"),t.classList.contains("fade")&&requestAnimationFrame(()=>{t.classList.add("in")})}_querySelector(t){if(!t)return null;if(t.startsWith("#")){const e=t.substring(1),s=document.getElementById(e);if(s)return s}try{return document.querySelector(t)}catch(t){return null}}_getTargetSelector(){let t=this.tabElement.dataset.target||this.tabElement.getAttribute("href");return t&&!t.startsWith("#")&&(t="#"+t),t}_isActive(t){return t.classList.contains("active")||t.closest("li.nav-item, li")?.classList.contains("active")}_getActiveTab(){return this.tablist&&this.tabs.find(t=>this._isActive(t))||null}}e.default=s},8542:function(t,e,s){s.d(e,{default:function(){return m}});class i{constructor(t){this.storageKey=t}getStateFromStorage(){try{return JSON.parse(sessionStorage.getItem(this.storageKey))||{}}catch(t){return{}}}setItem(t,e){const s=this.getStateFromStorage();s[t]=e;try{sessionStorage.setItem(this.storageKey,JSON.stringify(s))}catch(t){console.log("Could not store item in storage",t)}}getItem(t){const e=this.getStateFromStorage();return e.hasOwnProperty(t)?e[t]:null}removeItem(t){this.setItem(t,null)}}var a=s(2245),o=s(4911);const n={parent:null,byRow:!0,timeOut:50},l=(t,e)=>{let s=performance.now();const i=a=>{a-s>=e?t():requestAnimationFrame(i)};requestAnimationFrame(i)};var r=class{constructor(t,e={}){this.options={...n,...e},this.element=t,this.element?("loading"!==document.readyState?this.init():document.addEventListener("DOMContentLoaded",()=>{this.init()}),window.addEventListener("resize",()=>{l(()=>{this.update()},100)})):this.error("class")}init(){l(()=>{this.reset()},this.options.timeOut)}findElements(){let t;this.options.parent&&document.querySelectorAll(this.options.parent).length?document.querySelectorAll(this.options.parent).forEach(e=>{t=e.querySelectorAll(this.element),this.createGroup(t,e)}):(t=document.querySelectorAll(this.element),this.createGroup(t)),this.findRows()}findRows(){this.elements&&(this.elements.map(t=>{let e=[];t.elements.forEach(t=>{let s=0;this.options.byRow&&(s=Math.round(t.getBoundingClientRect().top+window.scrollY)),e[s]=e[s]??{offset:s,elements:[]},e[s].elements.push(t)}),e.map(e=>{t.rows.push({height:0,offset:e.offset,elements:e.elements})})}),this.setHeights())}createGroup(t,e){let s={elements:t,rows:[],parent:e};this.elements.push(s)}setHeights(){if(this.elements)for(let t of this.elements)t.rows.map(t=>{let e=[];t.elements.forEach(t=>{t.style.height=null,e.push(t.offsetHeight)}),t.height=Math.max.apply(Math,e),t.elements.forEach(e=>{e.style.height=`${t.height}px`})});else this.error()}update(){this.elements.length?this.findRows():this.error()}reset(){this.elements=[],this.findElements()}debug(){l(()=>{this.elements?this.elements.forEach((t,e)=>
1{t.parent?console.log(`Element: ${this.element} Parent: ${t.parent.tagName}.${t.parent.className}`):console.log(`Element: ${this.element}`),t.rows.forEach((t,e)=>{console.log(`Offset Group: ${t.offset}`),console.log(t)}),console.log("\n\n")}):console.log(`⛔ No cached MatchHeight elements found for "${this.element}" \n\n Make sure this element exists on the current page.`)},this.options.timeOut+250)}error(t=""){"class"==t?console.error("⛔ Missing class name in new MatchHeight()"):console.error(`⛔ Can't trigger update as no elements found for the MatchHeight element ${this.element}`)}},c=s(7498),h=s(4285),d=s(5409);class m{constructor(){}init(t){const e=new i(window.location.pathname);this.element=t,this.elementTcAnchor=document.getElementById("torches-and-consumables"),this.elementScAnchor=document.getElementById("standard-consumables"),this.slider=t.querySelector("[data-torch-consumable-slider]"),this.selectedApplication=null,this.persistedState=e,this.navigationElement=t.querySelector("[data-torch-consumable-nav]"),this.applicationNavItem=this.navigationElement.querySelector("[data-nav-item=application]"),this.torchNavItem=this.navigationElement.querySelector("[data-nav-item=torch]"),this.systemNavItem=this.navigationElement.querySelector("[data-nav-item=system]"),this.consumableNavItem=this.navigationElement.querySelector("[data-nav-item=consumable]"),this.systemsElement=t.querySelector("[data-system-container]"),this.torchesElement=t.querySelector("[data-torch-container]"),this.consumablesElement=t.querySelector("[data-consumables-container]"),this.loadingSpinner=new d.A,this.stepTwoActive="/dist/imgs/tc-step2.png",this.stepTwoInactive="/dist/imgs/tc-step2-inactive.png",this.stepThreeActive="/dist/imgs/tc-step3.png",this.stepThreeInactive="/dist/imgs/tc-step3-inactive.png",this.stepFourActive="/dist/imgs/tc-step4.png",this.stepFourInactive="/dist/imgs/tc-step4-inactive.png";const s=t.dataset.torchesAndConsumablesContainer?JSON.parse(t.dataset.torchesAndConsumablesContainer):{};this.torchesUrl=s.torchesUrl,this.consumablesUrl=s.consumablesUrl,this.selectedProduct=s.productCode?{code:s.productCode,name:s.productName}:null,this.selectedTorch=s.torchCode?{code:s.torchCode,name:s.torchName}:null,this.consumableCode=s.consumableCode?s.consumableCode:null,this.isTorchPage="True"===s.isTorchPage,this.isConsumablePage=!!s.consumableCode,this.loading=!1,this.bindEvents(),this.initSlider(),this.loadFromCache()}bindEvents(){this.element.addEventListener("click",t=>{const e=t.target.closest("[data-application-item]");e&&(t.preventDefault(),this.onApplicationChange(e));const s=t.target.closest("[data-system-select]");s&&(t.preventDefault(),this.onSystemChange(s));const i=t.target.closest("[data-torch-select]");i&&(t.preventDefault(),this.onTorchChange(i));const a=t.target.closest("[data-nav-item]");a&&(t.preventDefault(),this.onNavItemChange(a))})}initSlider(){this.slider&&(this.tinySlider=(0,o.U)({textDirection:document.documentElement.dir||"ltr",container:this.slider,items:1,slideBy:1,controls:!1,nav:!1,mouseDrag:!1,touch:!1,loop:!1,speed:300,onInit:t=>{this.slider.classList.remove("cS-hidden");const e=t.slideItems[t.index],s=(e?e.offsetHeight:0)+30;this.slider.style.height=s+"px"}}),this.tinySlider.events.on("indexChanged",()=>{this.resizeSlide()}))}onNavItemChange(t){const e=t.dataset.navItem;t.classList.contains("nav-item-active")&&"consumable"!==e&&("application"===e?this.navigateToApplication():"torch"===e?this.navigateToTorch():"system"===e&&this.navigateToSystem())}navigateToApplication(){this.clearTorches(),this.clearConsumables(),this.goToSlide(0),this.setApplicationNav(3),this.setSystemNav(1,!0),this.setTorchNav(1),this.setConsumableNav(1),(0,a.C3)()&&this.setNavArrows(1)}navigateToTorch(){this.clearConsumables();const t=this.isConsumablePage?2:1,e=this.isConsumablePage?5:6;this.goToSlide(t),this.setApplicationNav(4),this.setSystemNav(2),this.setTorchNav(3),this.setConsumableNav(1,!0),(0,a.C3)()&&this.setNavArrows(e)}navigateToSystem(){this.clearConsumables(),this.goToSlide(1),this.setApplicationNav(2),this.setSystemNav(3),this.setTorchNav(1,!0),this.setConsumableNav(1),(0,a.C3)()&&this.setNavArrows(4)}goToSlide(t){if(this.tinySlider)this.tinySlider.goTo(t);else{const e=this.slider.querySelectorAll(".lslide");e.forEach(t=>t.classList.remove("active")),e[t]&&e[t].classList.add("active")}}setNavArrows(t){switch(document.querySelectorAll(".nav-item-arrow-desktop").forEach(t=>{t.style.display="none"}),t){case 1:document.querySelector(".nav-item-arrow-desktop-first").style.display="block";break;case 2:document.querySelector(".nav-item-arrow-desktop-middle").style.display="block";break;case 3:document.querySelector(".nav-item-arrow-desktop-last").style.display="block";break;case 4:document.querySelector(".nav-item-arrow-desktop-first").style.display="block",document.querySelector(".nav-item-arrow-desktop-middle").style.display="block";break;case 5:document.querySelector(".nav-item-arrow-desktop-middle").style.display="block",document.querySelector(".nav-item-arrow-desktop-last").style.display="block";break;case 6:document.querySelector(".nav-item-arrow-desktop-first").style.display="block",document.querySelector(".nav-item-arrow-desktop-last").style.display="block"}}setApplicationNav(t){let e,s;
1switch(t){case 1:e="nav-item-application-disabled",s="nav-item-active nav-item-application-active nav-item-application-active-current nav-item-application-active-background";break;case 2:e="nav-item-active nav-item-application-active",s="nav-item-application-disabled nav-item-application-active-current nav-item-application-active-background";break;case 3:e="nav-item-active nav-item-application-active-current",s="nav-item-application-disabled nav-item-application-active nav-item-application-active-background";break;case 4:e="nav-item-active nav-item-application-active-background",s="nav-item-application-disabled nav-item-application-active nav-item-application-active-background";break;default:e="",s=""}this.updateElementClasses(this.applicationNavItem,s,e)}setSystemNav(t,e){if(!this.systemNavItem)return;let s,i,a;switch(e=void 0!==e&&e,t){case 1:s="nav-item-system-disabled",i="nav-item-active nav-item-system-active nav-item-system-active-current nav-item-system-active-background float-left",a=this.stepTwoInactive;break;case 2:s="nav-item-active nav-item-system-active",i="nav-item-system-disabled nav-item-system-active-current nav-item-system-active-background float-left",a=this.stepTwoActive;break;case 3:s="nav-item-active nav-item-system-active-current",i="nav-item-system-disabled nav-item-system-active nav-item-system-active-background float-left",a=this.stepTwoActive;break;case 4:s="nav-item-active nav-item-system-active-background",i="nav-item-system-disabled nav-item-system-active nav-item-system-active-current float-left",a=this.stepTwoActive;break;default:s="",i=""}s=e?s+" float-left":s,this.updateElementClasses(this.systemNavItem,i,s),this.systemNavItem.querySelector("img").src=a}setTorchNav(t,e){if(!this.torchNavItem)return;let s,i,a;switch(e=void 0!==e&&e,t){case 1:s="nav-item-torch-disabled",i="nav-item-active nav-item-torch-active nav-item-torch-active-current float-left",a=this.isConsumablePage?this.stepThreeInactive:this.stepTwoInactive;break;case 2:s="nav-item-active nav-item-torch-active",i="nav-item-torch-disabled nav-item-torch-active-current float-left",a=this.isConsumablePage?this.stepThreeActive:this.stepTwoActive;break;case 3:s="nav-item-active nav-item-torch-active-current",i="nav-item-torch-disabled nav-item-torch-active float-left",a=this.isConsumablePage?this.stepThreeActive:this.stepTwoActive;break;default:s="",i=""}s=e?s+" float-left":s,this.updateElementClasses(this.torchNavItem,i,s),this.torchNavItem.querySelector("img").src=a}setConsumableNav(t,e){if(!this.consumableNavItem)return;let s,i,a;switch(e=void 0!==e&&e,t){case 1:s="nav-item-consumable-disabled",i="nav-item-active nav-item-consumable-active nav-item-consumable-active-current float-left",a=this.isConsumablePage?this.stepFourInactive:this.stepThreeInactive;break;case 2:s="nav-item-active nav-item-consumable-active",i="nav-item-consumable-disabled nav-item-consumable-active-current float-left",a=this.isConsumablePage?this.stepFourActive:this.stepThreeActive;break;case 3:s="nav-item-active nav-item-consumable-active-current",i="nav-item-consumable-disabled nav-item-consumable-active float-left",a=this.isConsumablePage?this.stepFourActive:this.stepThreeActive;break;default:s="",i=""}s=e?s+" float-left":s,this.updateElementClasses(this.consumableNavItem,i,s),this.consumableNavItem.querySelector("img").src=a}updateElementClasses(t,e,s){e&&e.split(" ").forEach(e=>{e&&t.classList.remove(e)}),s&&s.split(" ").forEach(e=>{e&&t.classList.add(e)})}onApplicationChange(t){return history.pushState?history.pushState(null,null,"#torches-and-consumables"):window.location.hash="#torches-and-consumables",this.selectApplication(t),this.filterSystems(this.selectedApplication.value),this.clearTorches(),this.clearConsumables(),this.scrollModuleIntoView(),this.loadTorches()}onSystemChange(t){return this.selectSystem(t),this.isConsumablePage?this.loadTorches():this.isTorchPage?this.loadConsumables():Promise.resolve()}onTorchChange(t){return this.selectTorch(t),this.loadConsumables()}selectApplication(t){const e=JSON.parse(t.dataset.applicationItem||"{}");this.selectedApplication={value:e.application,url:e.applicationUrl},this.persistedState.setItem("application",this.selectedApplication),this.element.querySelectorAll("[data-application-item]").forEach(t=>{t.classList.remove("active")}),t.classList.add("active"),this.isTorchPage||(this.selectedTorch=null,this.persistedState.removeItem("torch"))}selectSystem(t){const e=JSON.parse(t.dataset.systemItem||"{}"),s=t.querySelector("[data-title]").textContent;this.selectedProduct={code:e.code,name:s},this.persistedState.setItem("system",this.selectedProduct),this.element.querySelectorAll("[data-system-select]").forEach(t=>{t.classList.remove("active")}),t.classList.add("active"),this.element.querySelectorAll("[data-system-item]").forEach(t=>{t.classList.remove("selected")}),t.classList.add("selected")}selectTorch(t){const e=JSON.parse(t.dataset.torchItem||"{}"),s=t.querySelector("[data-title]").textContent;this.selectedTorch={code:e.code,angle:e.angle,name:s},this.persistedState.setItem("torch",this.selectedTorch),this.element.querySelectorAll("[data-torch-select]").forEach(t=>{t.classList.remove("active")}),t.classList.add("active"),this.element.querySelectorAll("[data-torch-item]").forEach(t=>{t.classList.remove("selected")}),t.classList.add("selected")}filterSystems(t){if(this.systemsElement){const e=this.systemsElement.querySelector("[data-system-selector]");e&&"none"===e.style.display&&(e.style.display="block");const s=this.systemsElement.querySelectorAll("[data-system-item]");
1s.forEach(t=>{t.classList.remove("selected")}),this.selectedProduct=null,this.persistedState.removeItem("system"),s.forEach(e=>{const s=e.closest(".system-item-container")||e.parentElement;this.hasApplication(e,t)?s.classList.remove("hidden"):s.classList.add("hidden")}),this.goToNextSlide(),this.setApplicationNav(2),this.setSystemNav(3),this.setTorchNav(1),this.setConsumableNav(1),(0,a.C3)()&&this.setNavArrows(4)}}goToNextSlide(){if(this.tinySlider)this.tinySlider.goTo("next");else{const t=this.slider.querySelector(".lslide.active"),e=t?.nextElementSibling;t&&e&&(t.classList.remove("active"),e.classList.add("active"))}}hasApplication(t,e){const s=JSON.parse(t.dataset.systemItem||"{}").applications||[];return!!Array.isArray(s)&&-1!==s.indexOf(e)}clearTorches(){this.isTorchPage||(this.torchesElement.querySelectorAll(".block-item.selected").forEach(t=>{t.classList.remove("selected")}),this.selectedTorch=null,this.persistedState.removeItem("torch"))}clearConsumables(){this.consumablesElement.querySelectorAll("div.tabbable, div.tab-content").forEach(t=>t.remove())}scrollModuleIntoView(){const t=(0,a.C3)()?0:75;this.elementScAnchor?(0,a.Rt)(this.elementScAnchor,null,t,!0):this.elementTcAnchor&&(0,a.Rt)(this.elementTcAnchor,null,t,!0)}setupTabEvents(){h.default.initContainer("[data-consumable-tabs]");const t=document.querySelector("[data-consumable-tabs]");t&&t.addEventListener("shown.bs.tab",()=>{this.applyMatchHeight().then(()=>{this.resizeSlide()})})}initializeTooltips(){(0,c.initializeTooltips)(this.element)}applyMatchHeight(){const t=Array.from(this.element.querySelectorAll("img")).filter(t=>!t.complete).map(t=>new Promise(e=>{t.addEventListener("load",e,{once:!0}),t.addEventListener("error",e,{once:!0})}));return Promise.all(t).then(()=>{new r("[data-mh=block-item-torch]"),new r("[data-mh=consumable-type]"),new r("[data-mh=block-item]"),new r("[data-mh=block-item-kit]"),new r("[data-mh=block-item-bulk]"),new r("[data-mh=block-item-optional]"),new r("[data-mh=block-item-preventive]"),new r("[data-mh=block-item-system]")})}resizeSlide(){if(!this.tinySlider)return;const t=this.tinySlider.getInfo(),e=t.slideItems[t.index],s=e.querySelector("[data-application-container]"),i=e.querySelector("[data-torch-container]"),a=e.querySelector("[data-consumables-container]"),o=(s||i||a||e).offsetHeight+15;e&&(this.slider.style.height=`${o}px`)}async loadTorches(){if(this.isTorchPage||!this.selectedProduct)return Promise.resolve();{await this.load(this.torchesUrl,this.torchesElement.querySelector(".injected-content"),{code:this.selectedProduct.code,application:this.selectedApplication.value,consumableCode:this.consumableCode});const t=this.isConsumablePage?5:6;this.goToNextSlide(),this.setApplicationNav(4),this.setSystemNav(2),this.setTorchNav(3),this.setConsumableNav(1),(0,a.C3)()&&this.setNavArrows(t),this.applyMatchHeight(),this.scrollModuleIntoView()}}async loadConsumables(){if(!this.selectedProduct||!this.selectedTorch)return Promise.resolve();await this.load(this.consumablesUrl,this.consumablesElement.querySelector(".injected-content"),{productCode:this.selectedProduct.code,torchCode:this.selectedTorch.code,application:this.selectedApplication.value,consumableCode:this.consumableCode}),this.goToNextSlide(),this.setApplicationNav(4),this.setSystemNav(4),this.setTorchNav(2),this.setConsumableNav(3),(0,a.C3)()&&this.setNavArrows(3),this.applyMatchHeight(),this.setupTabEvents(),this.scrollModuleIntoView(),document.querySelectorAll("#consumables-tabs-content .block-foldable-content .foldable-title").forEach(t=>{t.addEventListener("click",()=>{const e=t.closest(".block-foldable-content");e&&(e.classList.toggle("open"),this.resizeSlide())})}),this.initializeTooltips()}async load(t,e,s){try{if(this.loading)throw new Error("Already loading content");this.loading=!0,this.loadingSpinner.show(this.element);const i=new FormData;Object.entries(s).filter(([t,e])=>null!=e).forEach(([t,e])=>i.append(t,e));const a=await fetch(t,{method:"POST",body:i});if(!a.ok)throw new Error(`Failed to load content: ${a.statusText}`);const o=await a.text();e.innerHTML=o}catch(t){i=`Failed to load content: ${t.message}`,window.console.error(`Torch and Consumables module: ${i}`)}finally{this.loadingSpinner.hide(),this.loading=!1,this.resizeSlide()}var i}loadFromCache(){const t=this.persistedState.getItem("application"),e=this.persistedState.getItem("system"),s=this.persistedState.getItem("torch");if(!t)return;const i=Array.from(document.querySelectorAll("[data-application-item]")).find(e=>JSON.parse(e.dataset.applicationItem||"{}").application===t.value);i&&this.onApplicationChange(i).then(()=>{let t=Promise.resolve();if(e){const s=Array.from(document.querySelectorAll("[data-system-item]")).find(t=>JSON.parse(t.dataset.systemItem||"{}").code===e.code);s&&(t=this.onSystemChange(s))}return t.then(()=>
1{if(s){const t=Array.from(document.querySelectorAll("[data-torch-item]")).find(t=>{const e=JSON.parse(t.dataset.torchItem||"{}");return e.code===s.code&&e.angle===s.angle});if(t)return this.onTorchChange(t)}})}),this.applyMatchHeight()}}}}]);

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.