1(()=>{const r=location.pathname,e=r.split("/")[1];const t=()=>"undefined"!=typeof Splide;t()&&document.querySelectorAll(".js-top-mainSlide").length&&new Splide(".js-top-mainSlide.splide",{rewind:!0,perPage:1,autoplay:!0,interval:5e3,speed:1e3,arrows:!1,pagination:!0,pauseOnHover:!1}).mount();{function o(){return document.querySelectorAll(".js-products-tab-slider.splide")}function n(){var e=document.querySelectorAll("[data-mh]");const o=new Map;e.forEach(e=>{e.style.height="auto"}),e.forEach(e=>{var t=e.getAttribute("data-mh");o.has(t)||o.set(t,[]),o.get(t).push(e)}),o.forEach(e=>{const o=new Map;e.forEach(e=>{var t=e.getAttribute("data-mh")+"_"+e.getBoundingClientRect().top;o.has(t)||o.set(t,[]),o.get(t).push(e)}),o.forEach(e=>{const t=Math.max(...e.map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=t+"px"})})})}function a(){var e=o();e.length&&e.forEach(o=>{if(!o.classList.contains("is-initialized")){var e=new window.Splide(o,{perPage:3,gap:"40px",pagination:!1,arrows:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,rewind:!1,breakpoints:{1024:{perPage:1}}});const t=e=>{var t=o.querySelector(".splide__arrow--prev");t&&(t.style.display=0===e?"none":"")};e.on("mounted",()=>{t(0),console.log("Splide mounted, arrows:",o.querySelectorAll(".splide__arrow").length),setTimeout(n,50)}),e.on("moved",function(e){t(e)});try{e.mount(),o.classList.add("is-initialized"),o.splideInstance=e}catch(e){console.error("Splide mount failed:",e)}}})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a(),new MutationObserver(()=>{0<o().length&&setTimeout(()=>{a(),n()},100)}).observe(document.body,{childList:!0,subtree:!0});let e;window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(function(){a(),n()},200)})}(c=document.querySelectorAll(".topics-slider.splide")).length&&c.forEach(e=>{new Splide(e,{perPage:3,gap:40,pagination:!1,arrows:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,rewind:!1,breakpoints:{768:{perPage:1,gap:24}}}).mount()}),(async()=>{var e=document.querySelector(".js-category-block");if(e){const d=e.querySelectorAll("li.__column_3.__column_sp_1.rt_bn_products");if(d.length){let r=await fetch("/common/js/html/products-list-head.html").then(e=>e.text()),a="";let c="",l=document.createElement("section"),s=(l.classList.add("mod-spacer-section"),document.createElement("ul"));s.classList.add("mod-column"),d.forEach((e,t)=>{var o=e.querySelector("div.rt_cf_pc3_name").textContent.trim(),n=e.querySelector("div.rt_cf_pc3_code").textContent.trim(),n=(0!==t&&o===a||(0<t&&(l.appendChild(s),c+=l.outerHTML,(l=document.createElement("section")).classList.add("mod-spacer-section"),(s=document.createElement("ul")).classList.add("mod-column")),n=r.replaceAll("{!id!}",n).replaceAll("{!category!}",o),l.insertAdjacentHTML("beforeend",n)),e.cloneNode(!0));s.appendChild(n),a=o,t===d.length-1&&(l.appendChild(s),c+=l.outerHTML)}),e.innerHTML=c;e=new Event("categoryContentLoaded");document.dispatchEvent(e)}}})();var c=document.querySelector(".js-newProductsList");if(c){var l=Array.from(c.querySelectorAll("li.rt_bn_products_newproducts"));const q={};l.forEach(e=>{var t=e.querySelector(".rt_cf_pc1_name")?.textContent.trim(),o=e.querySelector(".rt_cf_pc2_name")?.textContent.trim(),n=e.querySelector(".rt_cf_pc3_name")?.textContent.trim();t&&o&&n&&(q[t]||(q[t]={}),q[t][o]||(q[t][o]={}),q[t][o][n]||(q[t][o][n]=[]),q[t][o][n].push(e))});var s=document.createDocumentFragment();let e=!0;for(const C in q){var d=q[C],i=document.createElement("section"),u=(i.className=e?"mod-spacer-section js-newProductsList":"mod-spacer-section",e=!1,document.createElement("h2"));u.className="mod-head02 _products",u.textContent=C,i.appendChild(u);let t=!0;for(const b in d){var p=d[b],m=document.createElement("h3"),h=["mod-head03","_obj"];t||h.push("mod-spacer"),m.className=h.join(" "),m.textContent=b,i.appendChild(m);let e=!(t=!1);for(const j in p){var P=p[j],y=document.createElement("h4"),_=["mod-head04"];e||_.push("mod-spacer_64"),y.className=_.join(" "),y.textContent=j,i.appendChild(y),e=!1;const L=document.createElement("ul");L.className="mod-column products-list mod-spacer-small",P.forEach(e
1=>L.appendChild(e)),i.appendChild(L)}}s.appendChild(i)}c.parentNode.replaceChild(s,c)}(l=document.querySelectorAll(".js-products-detail-slide")).length&&l.forEach(n=>{new Splide(n,{rewind:!0,perPage:1,autoplay:!1,interval:5e3,speed:2e3,gap:24,arrows:!1,pagination:!0,paginationKeyboard:!1}).mount();n.querySelectorAll(".splide__slide img").forEach((e,t)=>{var o,t=n.querySelectorAll(".splide__pagination li")[t];t&&(t=t.querySelector("button"))&&((o=document.createElement("img")).src=e.src,t.appendChild(o))})}),(c=document.querySelector(".js-products-detail-support"))&&!c.querySelectorAll(".products-top-panels > li").length&&c.remove(),t()&&document.querySelectorAll(".js-topics-slide02").length&&new Splide(".js-topics-slide02.splide",{rewind:!1,perPage:1,autoplay:!1,interval:5e3,speed:1e3,arrows:!0,pagination:!0,pauseOnHover:!1}).mount();c=document.querySelectorAll(".js-search-form");if(c.length){const A=`/${e}/products/search/`;c.forEach(n=>{n.addEventListener("submit",function(e){e.preventDefault();e=n.querySelector(".js-search-keyword");let t=n.querySelector('input[name="p_category"]');r.includes("/products/search/")&&(t=n.querySelector('input[name="p_category"]:checked'));e=e.value.trim();e||(window.location.href=A);e=e.split(/[\sã]+/).filter(Boolean).slice(0,5);const o=new URLSearchParams;e.forEach((e,t)=>{t+=1;o.append("p_block_"+t,e),o.append("p_keywords_"+t,e)}),o.append("p_keyword",e.join(" ")),t&&o.append("p_category",t.value);e=A+"?"+o.toString();window.location.href=e})})}if(document.querySelectorAll(".rt_bn_news_event").forEach(e=>{var t=e.querySelector(".rt_news_id");t&&(t=t.textContent.trim())&&(e.id=""+t)}),document.querySelectorAll(".rt_bn_news_event_past").forEach(e=>{var t=e.querySelector(".rt_news_id");t&&(t=t.textContent.trim())&&(e.id=""+t)}),document.querySelector(".js-news-yearList")){var c=document.querySelector(".js-news-latest-year").textContent,$=document.querySelector(".js-news-earliest-year").textContent;const R=document.querySelector(".js-news-yearList"),x=["my","us"].includes(e)?`/${e}/exhibitions/end/`:`/${e}/products/exhibitions/end/`,U=x;for(var f=new URLSearchParams(window.location.search).get("p_year"),F=f?f.split("_")[0]:"latest",v=Number(c);v>=Number($);v--){var S=document.createElement("option");S.textContent=v.toString(),S.value=v.toString(),v.toString()===F&&(S.selected=!0),document.querySelector(".js-news-yearList").appendChild(S)}f=document.querySelector(".js-news-searchBtn");f&&f.addEventListener("click",function(){var e=R.value;location.href="latest"===e?U:x+`?p_year=${e}_`+(Number(e)+1)})}{let e=null;for(const N of document.querySelectorAll(".products-download-list"))if(!N.closest(".js-fixed")){e=N;break}if(e){c=Array.from(e.querySelectorAll("li.rt_bn_products"));if(c.length){const k={},H=(c.forEach(e=>{var t=e.querySelector(".rt_cf_pc2_name")?.textContent.trim(),o=e.querySelector(".rt_cf_pc3_name")?.textContent.trim(),n=e.querySelector(".rt_cf_pc3_code")?.textContent.trim();t&&o&&n&&(k[t]||(k[t]={}),k[t][o]||(k[t][o]={code:n,items:[]}),k[t][o].items.push(e))}),document.querySelector(".mod-anchorLink"));H&&(H.querySelectorAll("li:not(.js-fixed)").forEach(e=>e.remove()),Object.keys(k).forEach(e=>{const n=k[e];Object.keys(n).forEach(e=>{var t=n[e],o=document.createElement("li");o.innerHTML=` 2 <a href="#${t.code}" rel="scroll"> 3 <svg aria-hidden="true"> 4 <use href="/common/svg/sprite.svg#arrow_bottom"></use> 5 </svg><span class="">${e}</span> 6 </a> 7 `,H.appendChild(o)})}));var D=document.createDocumentFragment();let t=!0;for(const M in k){var z=k[M],g=document.createElement("section"),w=(g.className=(t,"mod-auto mod-spacer-section"),t=!1,document.createElement("h2"));w.className="mod-head02 _products",w.innerHTML=`<span>${M}</span>`,g.appendChild(w);let e=!0;for(const T in z){var B=z[T],E=document.createElement("h3");E.className=e?"mod-head03 _obj":"mod-head03 _obj mod-spacer",E.id=B.code,E.innerHTML=`<span>${T}</span>`,g.appendChild(E),e=!1;const O=document.createElement("ul");O.className="mod-column products-download-list",B.items.forEach(e=>O.appendChild(e)),g.appendChild(O)}D.appendChild(g)}c=e.closest(".mod-spacer-section");c&&c.parentNode.replaceChild(D,c)}}}})(window.FUNCTIONS); 8//# sourceMappingURL=products.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.