(()=>{"use strict";var e={942:()=>{const e={bottomBar:document.querySelector("div.module-bottom-bar")||null,buy:document.querySelector(".buy"),isBuyLowerThanScroll(){return this.buy.getBoundingClientRect().y+this.buy.getBoundingClientRect().height<0},bottomBarAppearance(){e.isBuyLowerThanScroll()?e.bottomBar.classList.add("active"):e.bottomBar.classList.remove("active")}};e.bottomBar&&(document.addEventListener("scroll",e.bottomBarAppearance),document.querySelector("header.header").prepend(e.bottomBar))},987:()=>{const e=document.querySelectorAll("a.button-green")||null;e&&e.forEach((e=>{e.href.length&&e.href!==window.location.href||(e.href="javascript: void(0)")}))},300:()=>{document.addEventListener("copy",(function(){var e,t,o=window.getSelection(),n="Read more at atncorp.com";if(o.toString().length<80)return!1;document.querySelector("h1")?n=document.querySelector("h1").innerText:document.querySelector('meta[name="keywords"')&&(n=document.querySelector('meta[name="keywords"').content.split(",")[0]),e=o+` &lt;a href="${document.location.href}" target="_blank" &gt;${n}&lt;/a&gt;`,(t=document.createElement("div")).style.position="absolute",t.style.left="-99999px",document.body.appendChild(t),t.innerHTML=e,o.selectAllChildren(t),window.setTimeout((function(){document.body.removeChild(t)}),100)}))},297:()=>{let e,t,o,n,i,r,s=localStorage.getItem("subscription"),c=document.querySelector(".module-commercial-top")||null,a=function(e,t){let o=new Date(e),n=new Date(t)-o;return n/=1e3,Math.round(n)}(s,new Date)>=2592e3;(()=>{if(c){if(e=c.querySelector("div.subscribe"),t=c.querySelector("div.subscribe img.cross"),o=c.querySelector("form#commertialTopSubscribe"),s="closed",a&&(localStorage.removeItem("subscription"),c.classList.remove("centered"),s=!1),null==e)return c.classList.add("centered"),!1;c.childElementCount<2&&c.classList.add("centered"),"closed"==s&&(c.classList.add("centered"),e.remove()),n=o.querySelector("[type=email]"),i=o.querySelector("[type=submit]"),r=o.querySelector(".error-handler"),i.addEventListener("click",(t=>{if(r.innerText="",!o.checkValidity())return!1;n.disabled=!0,i.disabled=!0,n.disabled=!1,i.disabled=!1,o.innerHTML="<p>Thanks for subscription! You will get confirmation mail</p>",localStorage.setItem("subscription","subscribed"),e.style.maxHeight="300px",e.style.transition="all 1s ease",e.style.overflow="hidden",setTimeout((()=>{e.style.maxHeight="0"}),3e3)})),t.addEventListener("click",(t=>{"subscribed"==localStorage.getItem("subscription")?localStorage.setItem("subscription","closed"):localStorage.setItem("subscription",new Date),c.classList.add("centered"),e.remove()}))}})()},162:()=>{!function(){const e=document.querySelector("form#digitalCatalogQr")||null;if(e){const t=e.querySelector("[type=submit]");let o=e.querySelector(".error-handler");const n=`/fs/${e.dataset.catalog}.pdf`;t.addEventListener("click",(function(t){if(o.innerText="",!e.checkValidity())return!1;window.location.replace(n)}))}}()},655:()=>{const e={$detection:document.querySelectorAll(".distant-chart__values .detection span"),$recognition:document.querySelectorAll(".distant-chart__values .recognition span"),$identification:document.querySelectorAll(".distant-chart__values .identification span"),detectionValues:[],highestValue:"",detectionObj:{},recognitionObj:{},identificationObj:{},getChartsValues(){Array.from(this.$detection).forEach((e=>{this.detectionValues.push(+e.innerText)})),this.detectionValues.sort(((e,t)=>t-e)),this.highestValue=this.detectionValues[0],this.$detection.forEach((e=>{let t=(+e.innerText/this.highestValue*100).toFixed(0);this.detectionObj[+e.innerText]=t})),this.$recognition.forEach((e=>{let t=(+e.innerText/this.highestValue*100).toFixed(0);this.recognitionObj[+e.innerText]=t})),this.$identification.forEach((e=>{let t=(+e.innerText/this.highestValue*100).toFixed(0);this.identificationObj[+e.innerText]=t}))},setDetectionWidth(){for(let e in this.detectionObj)document.querySelectorAll(`.detection-${e}`).forEach((t=>{t.style.width=this.detectionObj[e]+"%"}))},setRecognitionWidth(){for(let e in this.recognitionObj)document.querySelectorAll(`.recognition-${e}`).forEach((t=>{t.style.width=this.recognitionObj[e]+"%"}))},setIdentificationWidth(){for(let e in this.identificationObj)document.querySelectorAll(`.identification-${e}`).forEach((t=>{t.style.width=this.identificationObj[e]+"%"}))}},t={$sensor:document.querySelector(".sensor-box"),$freegift:document.querySelector(".freegift .container")||document.querySelector(".gen5 .container")||null,$freegiftTarget:document.querySelector(".buy")||null,$mainButtons:document.querySelector(".main-buttons")},o={lastScrollTop:window.scrollY,$sensor:document.querySelector(".sensor-box"),setAnimation(){document.addEventListener("scroll",(()=>{let n=window.pageYOffset;o.sensorOffset=t.$freegift?t.$freegift.offsetTop:t.$mainButtons.offsetTop,n>this.lastScrollTop&&n>=this.sensorOffset&&(e.getChartsValues(),e.setDetectionWidth(),e.setRecognitionWidth(),e.setIdentificationWidth()),this.lastScrollTop=n}))},isVisible(t){let o=window.pageYOffset+t.getBoundingClientRect().top,n=window.pageXOffset+t.getBoundingClientRect().left,i=window.pageXOffset+t.getBoundingClientRect().right,r=window.pageYOffset+t.getBoundingClientRect().bottom,s=window.pageYOffset,c=window.pageXOffset,a=window.pageXOffset+document.documentElement.clientWidth,l=window.pageYOffset+document.documentElement.clientHeight;r>s&&o<l&&i>c&&n<a&&(e.getChartsValues(),e.setDetectionWidth(),e.setRecognitionWidth(),e.setIdentificationWidth())}};e.$detection.length&&e.$identification.length&&e.$recognition.length&&(o.isVisible(document.querySelector(".sensor-box")),o.setAnimation())},111:()=>{"path"in Event.prototype||Object.defineProperty(Event.prototype,"path",{get:function(){const e=[];let t=this.target;for(;t;)e.push(t),t=t.parentElement;return-1===e.indexOf(window)&&-1===e.indexOf(document)&&e.push(document),-1===e.indexOf(window)&&e.push(window),e}})},824:()=>{const e=document.querySelectorAll("ul"),t=document.querySelectorAll("i.material-icons");if(window.screen.width<900){function o(o){e.forEach((e=>{e===o.nextElementSibling||e.classList.contains("hidden")||e.classList.add("hidden")})),t.forEach((e=>{e!==o.children[0]&&e.classList.contains("rotate")&&e.classList.remove("rotate")})),o.nextElementSibling.classList.toggle("hidden"),o.children[0].classList.toggle("rotate")}document.querySelector(".footer-links .container").addEventListener("click",(e=>{e.target.parentElement.classList.contains("drop")&&o(e.target.parentElement),e.target.classList.contains("drop")&&o(e.target)}))}!function(){const e=document.querySelector("footer form#subscribe")||null;if(e){const t=e.querySelector("input[type=email]"),o=e.querySelector("input[type=submit]");e.querySelector(".error-handler"),o.addEventListener("click",(function(o){if(!t.checkValidity())return!1;e.innerHTML="<p>Thanks for subscription! You will get confirmation mail</p>"}))}}()},454:()=>{const e={$sensor:document.querySelector(".sensor-box"),$freegift:document.querySelector(".freegift .container")||document.querySelector(".gen5 .container")||null,$freegiftTarget:document.querySelector(".buy")||null,$mainButtons:document.querySelector(".main-buttons")};try{const t={lastScrollTop:window.scrollY,giftOffset:e.$freegift?e.$freegiftTarget.offsetTop:null,setAnimation(){document.addEventListener("scroll",(()=>{let o=window.pageYOffset;e.$freegift?t.sensorOffset=e.$freegift.offsetTop:t.sensorOffset=e.$mainButtons.offsetTop,e.$freegift&&o>this.lastScrollTop&&o>=this.giftOffset&&e.$freegift.classList.add("parallax"),this.lastScrollTop=o}))}};e.$freegift&&t.setAnimation()}catch(e){console.warn(e)}},597:(e,t,o)=>{var n=o(248);const i=document.querySelector("header.header"),r=i.querySelector("nav.navigation"),s=r.querySelector("span.menu"),c=r.querySelectorAll("ul.shop, ul.tools"),a=r.querySelector(".cart"),l=document.querySelector("#cart-mini");let d=window.scrollY;function u(e="toggle"){i.classList[e]("opened"),s.classList[e]("opened"),[...c].forEach((t=>t.classList[e]("opened")))}a&&l&&!n.om().touchscreen&&n.om().brakePoint>600&&(i.addEventListener("mousemove",(e=>function(e){let t=i.querySelector(".cart-list");e.path.some((e=>{if(e&&e.classList)return e.classList.contains("cart")||e.classList.contains("cart-list")}))?(a.classList.add("opened"),t&&t.classList.add("opened")):(a.classList.remove("opened"),t&&t.classList.remove("opened"))}(e))),i.addEventListener("mouseout",(e=>(a.classList.remove("opened"),void(i.querySelector(".cart-list")&&i.querySelector(".cart-list").classList.remove("opened")))))),s.addEventListener("click",(e=>u())),(n.om().touchscreen||n.om().brakePoint<900)&&r.addEventListener("click",(e=>function(e){let t=e.target,o=t.classList.contains("opened");return[...r.querySelectorAll("ul .opened")].forEach((e=>e.classList.remove("opened"))),o?(t.classList.remove("opened"),t.blur()):t.classList.add("opened"),!1}(e))),document.addEventListener("scroll",(e=>{let t=window.scrollY;t>d&&t>=50&&!i.classList.contains("opened")?(u("remove"),i.classList.remove("opened"),i.classList.remove("expanded"),i.classList.add("minimized")):t!=d&&(i.classList.remove("minimized"),i.classList.add("expanded")),t<=50?(i.classList.remove("minimized"),i.classList.remove("expanded")):t==d&&i.classList.add("expanded"),d=t})),document.querySelectorAll("ul.drop li a").forEach((e=>{let t=e.pathname;window.location.pathname.match(/html/)||("/"!==window.location.pathname&&window.location.pathname===t&&!e.hostname.match(/manual.atn/)||"/"===window.location.pathname&&window.location.href===e.pathname?(e.classList.add("active"),e.href="javascript:void(0);"):e.classList.remove("active"))}))},930:()=>{!function(){let e=document.querySelector(".module-included-accessories")||null,t=!!e&&e.querySelector(".included"),o=!!t&&t.querySelectorAll(".block");function n(){let n,i;return!!e&&!!t&&(n=o[0].offsetWidth*o.length,i=t.offsetWidth,void(n>i-0?t.classList.add("scroll"):t.classList.remove("scroll")))}n(),window.addEventListener("resize",n)}()},248:(e,t,o)=>{o.d(t,{om:()=>c});var n="phone",i="ontouchstart"in document.documentElement,r={phone:599,tabletPortrait:600,tabletLandscape:900,desktopHd:1200,desktopFullhd:1800,desktop4k:2560},s={phone:1280,tabletPortrait:1280,tabletLandscape:1280,desktopHd:1280,desktopFullhd:1920,desktop4k:1920};function c(){return{media:n,touchscreen:i,brakePoint:r[n],videoMedia:s[n]}}function a(){var e=window.innerWidth,t="phone";for(let o in r)e>=r[o]&&(n=o),e<=r[t]&&(n=t)}a(),i&&(document.body.classList.add("is-touch"),i=!0),window.addEventListener("resize",a)},716:()=>{if(document.querySelector("video")&&document.querySelector("video").dataset.video){const e={videoFolder:"/video/"};e.videoFolderDev,document.querySelector("[data-video]").dataset.video;let t=e.videoFolder,o="phone";const n={phone:599,tabletPortrait:600,tabletLandscape:900,desktopHd:1200,desktopFullhd:1800,desktop4k:2560},i={phone:1280,tabletPortrait:1280,tabletLandscape:1280,desktopHd:1280,desktopFullhd:1280,desktop4k:1280};let r=["webm","mp4"];function s(e){const t=[];return r.map((function(n){t.push(e+"-"+i[o]+"."+n)})),t}function c(){let e=window.innerWidth,t="phone";for(let i in n)e>=n[i]&&(o=i),e<=n[t]&&(o=t)}function a(e){if(!e.querySelector("source"))for(let o of s(e.dataset.video)){let n=document.createElement("source");n.src=t+o,e.appendChild(n)}}function l(e){let t=window.pageYOffset+e.getBoundingClientRect().top,o=window.pageXOffset+e.getBoundingClientRect().left,n=window.pageXOffset+e.getBoundingClientRect().right,i=window.pageYOffset+e.getBoundingClientRect().bottom,r=window.pageYOffset,s=window.pageXOffset,c=window.pageXOffset+document.documentElement.clientWidth,l=window.pageYOffset+document.documentElement.clientHeight;i>r&&t<l&&n>s&&o<c&&a(e)}function d(e,t){let o;return function(...n){return clearTimeout(o),new Promise((i=>{o=setTimeout((()=>i(e(...n))),t)}))}}c(),window.addEventListener("resize",c),document.addEventListener("scroll",(()=>{document.querySelectorAll("[data-video]").forEach((e=>{d(l(e),1e3)}))}))}},262:()=>{!function(){let e=document.querySelector(".module-more-accessories"),t=!!e&&e.querySelector(".more"),o=!!t&&t.querySelectorAll(".block");function n(){let n,i;return!!e&&!(!t||!t.childElementCount)&&(n=o[0].offsetWidth*o.length,i=t.offsetWidth,void(n>i-50?t.classList.add("scroll"):t.classList.remove("scroll")))}n(),window.addEventListener("resize",n);const i=document.querySelectorAll(".module-more-accessories .block a");let r=0;i.forEach((e=>{const t=e.querySelector("span");if(t){const e=t.getBoundingClientRect().height;e>r&&(r=e)}})),i.forEach((e=>{e.querySelector("span")&&(e.style.height=`${170+r}px`)}))}()},710:()=>{document.querySelector("[data-slide-prefix]")&&function(){var e=document.querySelector("[data-slide-prefix]"),t="/images/mossy-oak";if(null!=e){for(var o=e.querySelector(".wrapper"),n=e.querySelector(".pagination"),i=e.querySelector(".patterns"),r=i.querySelector(".text"),s=e.dataset.slidePrefix,c=e.dataset.slidePatterns.split(","),a=e.dataset.slideTitles.split(","),l=e.dataset.slideCount,d=function(e,o){return t+"/mo_0"+e+"_"+s+"_0"+o+".png"},u=function(e,o){return t+"/mo_0"+e+"_bg_0"+o+".png"},m=0,f=0,p=0,h=0,g=!1,y=function(e){var t=document.createElement("div");t.addEventListener("click",(function(t){return b(m,e)})),f==e&&t.classList.add("active"),n.appendChild(t)},v=0;v<=l-1;++v)y(v);c.map((function(n,s){var c=document.createElement("div"),p=document.createElement("div"),h=document.createTextNode(a[s]||"");p.style.backgroundImage="url("+t+"/"+n+".png)",c.appendChild(p),c.appendChild(h),c.dataset.pattern=s,s==m&&(e.style.backgroundImage="url("+u(s+1,m+1),c.classList.add("active")),c.addEventListener("click",(function(e){return b(s,f)})),i.insertBefore(c,r);for(var g=1;g<=l;++g){var y=document.createElement("div"),v=document.createElement("div");v.dataset.slidePos=g,v.dataset.patternPos=s+1,y.style.backgroundImage="url("+d(s+1,g)+")",y.classList.add("foreground"),v.appendChild(y),v.classList.add("slide"),s==m&&g==f+1&&v.classList.add("active"),o.appendChild(v)}})),setInterval((function(){if(!g)return g=!0;p=0,h=1,w()}),5e3),e.addEventListener("mousedown",(function(e){g=!1})),e.addEventListener("mousedown",(function(e){p=e.clientX})),e.addEventListener("mouseup",(function(e){h=e.clientX,w()}))}function w(){h<p&&b(m,0==f?l-1:f-=1),h>p&&b(m,f==l-1?0:f+=1),p=0,h=0}function b(t,r){t!=m&&(r=0),m=t,f=r,[].concat(Array.from(i.querySelectorAll("[data-pattern]"))).map((function(e,t){m==t?e.classList.add("active"):e.classList.remove("active")})),[].concat(Array.from(n.querySelectorAll("div"))).map((function(e,t){f==t?e.classList.add("active"):e.classList.remove("active")})),[].concat(Array.from(o.querySelectorAll(".slide"))).map((function(t){var o=t.dataset.slidePos,n=t.dataset.patternPos;t.classList.remove("active"),n-1==m&&o-1==f&&(t.classList.add("active"),e.style.backgroundImage="url("+u(m+1,f+1))}))}}()},910:()=>{const e=function(e,t){let o,n=0;return function(...t){const i=(new Date).getTime();i-n<3e3?(clearTimeout(o),o=setTimeout((()=>{n=i,e(...t)}),3e3-(i-n))):(n=i,e(...t))}}((function({color:e,message:t}){const o=document.querySelector("header.header nav.navigation ul.tools li.cart div.cart-tip"),n=document.querySelector("header.header nav.navigation ul.tools li.cart");o.style.backgroundColor=e,o.textContent=t,o.style.display="block",n.classList.add("tip"),setTimeout((()=>{n.classList.remove("tip"),o.addEventListener("animationend",(e=>{"fadeOut"!==e.animationName||(o.style.display="none")}),{once:!0})}),2e3)}));document.addEventListener("showTip",(t=>{const{color:o,message:n}=t.detail;e({color:o,message:n})}))},793:()=>{const e={reviews:document.querySelector("section.reviews"),rating:document.querySelectorAll(".rating"),allRatings:Array.from(document.querySelectorAll(".feed .rating")),score:document.querySelector("div.score"),reviewActive:document.querySelector(".review.active"),buttons:document.querySelectorAll("button.reviews"),feed:document.querySelector(".reviews .feed"),count:document.querySelector("span.count"),fillRating(){this.rating.forEach((e=>{const t=Array.from(e.children).filter((e=>"svg"===e.tagName));for(let o=0;o<e.dataset.rating;o++)t[o].style.fill="#c59618"}))},feedOpen(){this.buttons.forEach((e=>{e.addEventListener("click",(e=>{this.buttons.forEach((e=>{e.classList.toggle("opened")})),this.feed.classList.toggle("opened")}))}))},calcScore(){let e=(this.allRatings.reduce(((e,t)=>e+ +t.dataset.rating),0)/(this.allRatings.length||1)).toFixed(2);e=e.replace(/.0+$/g,""),this.score.textContent=e},countReviews(){const e=this.allRatings.length;this.count.textContent=1===e?` ${e} review`:` ${e} reviews`}};e.reviews&&(e.fillRating(),e.feedOpen(),e.countReviews())},88:()=>{!async function(){let e=document.querySelector("p.transaction-ip span.ip")||null;if(e){let t;e.textContent="";try{let e=await fetch("https://api.ipify.org/?format=json");t=(await e.json()).ip}catch(e){console.warn(e)}e.textContent=t}}();const e=document.querySelector("header ul.tools li.cart")||null,t=document.querySelector("header ul.tools li.cart a")||null;window.location.pathname.includes("shoppingcart")&&(e.style.width="47px",t.style.display="none")},689:()=>{const e={buttons:document.querySelectorAll("main.content.tshirt .text a.button-blue-o")||null,activateItem(e){let t=e.pathname;if(!window.location.pathname.match(/html/))return window.location.pathname===t?(e.setAttribute("disabled",!0),void(e.href="javascript:void(0);")):void e.removeAttribute("disabled")}};e.buttons&&e.buttons.forEach((t=>{e.activateItem(t)}))}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o(942),o(987),o(300),o(297),o(162),o(655),o(111),o(824),o(454),o(597),o(930),o(248),o(716),o(262),o(710),o(910),o(793),o(88),o(689)})();