1"use strict";(self.webpackChunknowy_styl_webpage=self.webpackChunknowy_styl_webpage||[]).push([[1829,2347,2479,2580,3141,4743,5085,5158,5406,7347,8399,8611],{5085:function(e,t,n){n.r(t),n.d(t,{fetchForgeToken:function(){return l},startForgeTokenRefresh:function(){return i}});var s=n(12347);const o=()=>"undefined"!=typeof window&&window.location.href.includes("localhost");async function l(e){try{const n=await(0,s.getUrl)({url:e,method:o()?"GET":"POST",...!o()&&{body:{}}});if(n&&"object"==typeof n&&"status"in n)return null;const l=n;var t;return null!=l&&l.expires_in&&null!=l&&l.access_token?{access_token:l.access_token,expires_in:l.expires_in,token_type:null!==(t=l.token_type)&&void 0!==t?t:"Bearer"}:null}catch(e){throw e}}function i(e,t){!async function n(){const s=await l(e);s&&(t(s),setTimeout(n,1e3*s.expires_in))}()}},12347:function(e,t,n){n.r(t),n.d(t,{abort:function(){return r},getUrl:function(){return a}});const s="application/json",o="caches"in self,l="geturlcache",i={};function r({url:e,data:t}){if(i[e])if(t){const s=JSON.stringify(t);var n;if(i[e][s])null===(n=i[e][s])||void 0===n||n.abort(),i[e][s]=null}else{var s;if(i[e][e])null===(s=i[e][e])||void 0===s||s.abort(),i[e][e]=null;else for(const t in i[e])i[e][t]&&i[e][t].abort()}}async function a({url:e,data:t,body:n,method:r="GET",cacheMinutes:a=0}){const d=t||n,u=d?JSON.stringify(d):e,m=new AbortController;i[e]=i[e]||{},i[e][u]=m;let h=e;const p={method:r,signal:m.signal};if(d){if(t){const e=new URLSearchParams(t);h=`${h}?${e.toString()}`}n&&(p.body=JSON.stringify(n)),"POST"==p.method&&(p.headers={"Content-Type":s})}return async function(e,t,n){if(n&&o)return async function(e,t,n,s){const l=sessionStorage.getItem(e+t);if(!l)return;if(c(parseInt(l),s))return void async function(e,t){if(o)try{if(t){(await caches.open(e)).delete(t,{cacheName:e})}else caches.delete(e)}catch(e){return}}(e,t);try{return(await caches.open(e)).match(new Request(t,n))}catch(e){return}}(l,e,t,n)}(h,p,a).then(t=>t&&t.ok?(i[e][u]=null,t):fetch(h,p).then(t=>(200==t.status&&a&&async function(e,t,n){if(o)return sessionStorage.setItem(l+e,Date.now().toString()),async function(e,t,n,s){try{(await caches.open(e)).put(new Request(t,n),s)}catch(e){return}}(l,e,t,n)}(h,p,t.clone()).then(()=>{i[e][u]=null}),t))).then(e=>{if(e.status>=200&&e.status<500)return e;throw{message:"errors.server",name:"500"}}).then(e=>e.json()).catch(e=>Promise.resolve({status:!1,message:e.message||"",code:e.name||""}))}const c=(e,t)=>{const n=new Date(e);n.setHours(n.getHours(),n.getMinutes()+t);return(new Date).getTime()>n.getTime()}},14743:function(e,t,n){n.r(t);t.default=async(e,t)=>{if(e)try{const n=await fetch(e);if(!n.ok)throw new Error(`Download failed with status ${n.status}`);const s=await n.blob(),o=window.URL.createObjectURL(s),l=document.createElement("a");l.href=o,l.download=t||(e=>{const t=e.split("/");return t[t.length-1]||"download"})(e),document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(o)}catch(e){}}},32479:function(e,t,n){n.r(t),n.d(t,{setBodyPadding:function(){return l},setScrollState:function(){return i}});var s=n(35406),o=n(63141);function l(e){const t=document.querySelector(".m-TopMenu"),n=document.querySelector(".m-Submenu");e?(document.body.style.paddingRight="",document.body.classList.remove("scroll-padding"),t&&(t.style.right=""),n&&(n.style.right="")):(document.body.style.setProperty("padding-right",`${s.default}px`,"important"),document.body.classList.add("scroll-padding"),t&&(t.style.right=s.default+"px"),n&&(n.style.right=s.default+"px"))}function i(e){e?(document.documentElement.style.overflow="hidden",document.body.classList.add(o.CLASS_IS_SCROLL)):(document.documentElement.style.overflow="",document.body.classList.remove(o.CLASS_IS_SCROLL))}},35406:function(e,t,n){n.r(t);const s=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var s=n.offsetWidth;return e.parentNode.removeChild(e),t-s}();t.default=s},40199:function(e,t,n){n.r(t),n.d(t,{convertRemToPixels:function(){return p},innerDimensions:function(){return h},insertAfter:function(){return f},isDescendant:function(){return r},isElementInViewport:function(){return l},isElementVisible:function(){return o},removeFixedClass:function(){return d},scrollToElement:function(){return u},scrollToElementKuschCo:function(){return m},setFixedClass:function(){return c},setToggleElementHeight:function(){return a},toggleBodyScrollLock:function(){return S},wrapElement:function(){return i}});var s=n(63141);const o=function(e){const t=e.getBoundingClientRect(),n=e.offsetHeight,s=e.offsetWidth;return t.top>=-n&&t.left>=-s&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+s&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+n},l=function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},i=function(e,t){var n;return t=t||document.createElement("div"),null===(n=e.parentNode)||void 0===n||n.insertBefore(t,e),t.appendChild(e)},r=function(e,t){let n=t.parentNode;for(;null!=n;){if(n==e)return!0;n=n.parentNode}return!1},a=(e,t)=>{e.style.maxHeight=t?t.scrollHeight+p(3.2)+"px":e.scrollHeight+"px"},c=(e,t,n,o=!1)=>{const l=e.getBoundingClientRect();if(l[n]<0){if(t.classList.contains(s.CLASS_IS_FIXED)||t.classList.add(s.CLASS_IS_FIXED),o){const e=l[n]+l.height-t.clientHeight;e<0?t.style.transform=`translateY(${e}px)`:t.style.transform&&(t.style.transform="")}}else d(t,o)},d=(e,t=!1)=>{e.classList.contains(s.CLASS_IS_FIXED)&&(e.classList.remove(s.CLASS_IS_FIXED),t&&(e.style.transform=""))},u=(e,t=0)=>{const n=document.querySelector(".m-TopMenu");let s=0;n&&(s=n.offsetHeight),window.scrollTo({behavior:"smooth",top:e.getBoundingClientRect().top-document.body.getBoundingClientRect().top-s+t})},m=(e,t=!0)=>{const n=document.querySelector('[data-jsmodule="TopMenu"]'),s=n?n.getBoundingClientRect().height:0,o=window.pageYOffset,l=e.getBoundingClientRect().top+o;let i=s;if(!document.body.hasAttribute("data-anchor-scroll")){const e=l<o,t=Math.abs(l-o);if(!e){t>s+40&&(i=Math.max(20,Math.round(s/2)))}}const r=l-i;window.scrollTo({top:r,behavior:t?"smooth":"auto"})},h=e=>{const t=getComputedStyle(e);let n=e.clientWidth,s=e.clientHeight;return s-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:s,width:n}},p=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize);function f(e,t){var n;null===(n=t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling)}const _="data-scroll-lock-prev-overflow",S=(e,t=s.BREAKPOINTS.L)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const n=document.body;if(!n)return;const o=Number(t),l=window.innerWidth<o,i=n.hasAttribute(_);
1if(e&&l)return i||n.setAttribute(_,n.style.overflow||""),void(n.style.overflow="hidden");if(i){const e=n.getAttribute(_)||"";n.style.overflow=e,n.removeAttribute(_)}else e&&l||(n.style.overflow="")}},41712:function(e,t,n){n.r(t);var s=n(74848);t.default=e=>{const{center:t}=e;return(0,s.jsx)("div",{className:"c-Loader "+(t?"c-Loader--center":""),children:(0,s.jsx)("div",{className:"c-Loader__icon"})})}},47347:function(e,t,n){function s(e,t,n){let s,o,l,i,r;const a=function a(){const c=+new Date-i;c<t&&c>=0?s=setTimeout(a,t-c):(s=null,n||(r=e.apply(l,o),s||(l=null,o=null)))};return function(){l=this,o=arguments,i=+new Date;const c=n&&!s;return s||(s=setTimeout(a,t)),c&&(r=e.apply(l,o),l=null,o=null),r}}n.r(t),n.d(t,{debounce:function(){return s}})},48091:function(e,t,n){n.r(t);var s=n(96540),o=n(41712),l=n(74848);t.default=e=>{const{src:t,lazy:n,sources:i,loader:r,alt:a}=e,c=(0,s.useRef)(null),[d,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{const e=c.current;if(e){const t=()=>u(!0);return e.complete&&0!==e.naturalHeight?void setTimeout(()=>u(!0),100):(e.addEventListener("load",t,{once:!0}),()=>{e.removeEventListener("load",t)})}},[t]),(0,l.jsxs)("picture",{children:[i.map((e,t)=>(0,l.jsx)("source",{srcSet:e.srcset,media:e.media},t)),(0,l.jsx)("img",{loading:n?"lazy":void 0,src:t,alt:a||"",ref:c,onLoad:()=>u(!0)}),r&&!d&&(0,l.jsx)(o.default,{})]})}},49984:function(e,t,n){n.r(t);var s=n(96540),o=n(48091),l=n(94515),i=n(68302),r=n(63141),a=n(14743),c=n(74848);t.default=e=>{var t;const{preview:n,finishes:d,items:u,currentItem:m,currentItemIndex:h,galleryTitleInfo:p,priceGroupLabel:f,handleGalleryClose:_,handleSlideChange:S,popup:g}=e,w=window.location.href.includes("localhost")&&d?"http://cm.nowystyl.com":"",[v,A]=(0,s.useState)(),[x,b]=(0,s.useState)(),N=s.useRef(null),y=s.useRef(null),C=s.useRef(null),j=null!==(t=null!=m?m:Number.isInteger(h)?u[h]:void 0)&&void 0!==t?t:u[0];return(0,s.useEffect)(()=>{v&&v.slideTo(h),x&&x.slideTo(h)},[h,x]),(0,c.jsxs)("aside",{className:`m-Popup ${n?r.CLASS_IS_ACTIVE:""} `,children:[(0,c.jsx)("button",{className:"m-Popup__close",onClick:()=>{_()},children:(0,c.jsx)("img",{src:g.closeButtonIcon,className:"m-TopMenu__btn-icon m-TopMenu__btn-icon--close",alt:""})}),(0,c.jsx)("div",{className:"m-Popup__container",children:(0,c.jsx)("div",{className:"m-PopupGallery m-PopupGallery--finishes",children:(0,c.jsxs)("div",{className:"m-PopupGallery__container",children:[(0,c.jsxs)(l.RC,{modules:[i.WO,i.Vx],thumbs:{swiper:x},className:"m-PopupGallery__swiper",initialSlide:h,slidesPerView:1,lazyPreloadPrevNext:2,lazyPreloaderClass:"c-Loader--swiper",navigation:{prevEl:N.current,nextEl:y.current},pagination:{el:C.current,type:"fraction"},onSlideChange:()=>S(v.activeIndex),onSwiper:e=>A(e),children:[(0,c.jsxs)("div",{className:"m-PopupGallery__bar",children:[p&&d&&(0,c.jsxs)("p",{className:"m-FinishingMaterials__gallery-title",children:[(0,c.jsx)("span",{className:"m-FinishingMaterials__gallery-title-item",children:p.itemCode}),(0,c.jsx)("span",{className:"m-FinishingMaterials__gallery-title-item m-FinishingMaterials__gallery-title--grey",children:p.finishTitle}),p.showPriceGroup&&(0,c.jsxs)("span",{className:"m-FinishingMaterials__gallery-title-item m-FinishingMaterials__gallery-title--grey",children:[f,"Â :Â ",p.priceGroup]})]}),(0,c.jsx)("button",{type:"button",className:"c-Button m-PopupGallery__btn--download",onClick:()=>{null!=j&&j.download&&(0,a.default)(j.download)},disabled:!(null!=j&&j.download),children:(0,c.jsxs)("span",{className:"c-Button__wrapper",children:[(0,c.jsx)("img",{src:g.downloadIcon,alt:""}),(0,c.jsx)("span",{children:g.downloadText})]})})]}),(0,c.jsx)("div",{className:"m-PopupGallery__list",children:u.map((e,t)=>(0,c.jsx)(l.qr,{className:"m-PopupGallery__slide",children:(0,c.jsx)("div",{className:"m-PopupGallery__slideContainer",children:(0,c.jsxs)("div",{className:"m-PopupGallery__slideImage",children:[(0,c.jsx)("div",{className:"c-Loader c-Loader--swiper",style:{zIndex:"-1"},children:(0,c.jsx)("div",{className:"c-Loader__icon"})}),d&&(0,c.jsx)("img",{loading:"lazy",src:w+e.image.src,alt:e.image.alt?e.image.alt:""}),!d&&(0,c.jsx)(o.default,{...e.preview,loader:!1})]})})},""+(d?"finish_"+t:"item_"+t)))}),u.length>1&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{className:"m-PopupGallery__button swiper-button-prev desktop-only",ref:N,children:(0,c.jsx)("img",{src:g.swiperButtonIcon,alt:""})}),(0,c.jsx)("button",{className:"m-PopupGallery__button swiper-button-next desktop-only",ref:y,children:(0,c.jsx)("img",{src:g.swiperButtonIcon,alt:""})})]})]}),(0,c.jsx)(l.RC,{className:"m-PopupGallery__thumbs",slidesPerView:"auto",initialSlide:h,onSwiper:e=>b(e),watchSlidesProgress:!0,touchRatio:0,children:(0,c.jsx)("div",{className:"m-PopupGallery__thumbsList swiper-wrapper",children:u.map((e,t)=>(0,c.jsx)(l.qr,{className:"m-PopupGallery__thumb m-PopupGallery__thumb--square swiper-slide",children:(0,c.jsx)("img",{src:w+e.thumb,alt:""})},""+(d?"finishThumb_"+t:"itemThumb_"+t)))})}),u.length>1&&(0,c.jsx)("div",{className:"swiper-pagination m-PopupGallery__pagination mobile-only",ref:C})]})})})]})}},51829:function(e,t,n){let s;n.r(t),n.d(t,{getAppConfig:function(){return c},getGlobalConfig:function(){return r},getHTMLConfig:function(){return a},getModuleConfig:function(){return i},setupAppConfig:function(){return l}});const o=window.APP_CFG;function l(){try{const e=document.getElementById("AppMainConfig");s=JSON.parse(e.innerHTML)}catch(e){}}function i(e){try{return s.modules[e]}catch(e){return}}function r(e){try{return s.global[e]}catch(e){return}}const a=()=>{try{return o}catch(e){return}};function c(e){try{const t=document.getElementById(e);return s=JSON.parse(t.innerHTML),s}catch(e){}}},55158:function(e,t,n){n.r(t),n.d(t,{initAfterDynamicImport:function(){return x}});var s=n(96540),o=n(5338),l=n(12347),i=n(40199),r=n(32479),a=n(78611),c=n(63141),d=n(94515),u=n(68302),m=n(51829),h=n(82272),p=n(49984),f=n(72765),_=n(47347),S=n(71727),g=n(5085),w=n(78399),v=n(14743),A=n(74848);const x=e=>{var t;const n=e.getAttribute("data-downloads-api"),x=e.getAttribute("data-post-url"),b=e.getAttribute("data-post-id"),N=e.getAttribute("data-lang"),y=(0,m.getAppConfig)("ProductAttachmentsConfig"),C=null!==(t=e.getAttribute("id"))&&void 0!==t?t:"productAttachmentsId",j=e.getAttribute("data-forge-token-url"),I=window.location.href.includes("localhost"),E=e.getAttribute("data-downloads-accordion");let L=null;L="open"===E||"close"!==E&&null;const D={selectedFiles:null==y?void 0:y.labels.selectedFiles,selectedFinishes:null==y?void 0:y.labels.selectedFinishes,selectedDownloads:null==y?void 0:y.labels.selectedDownloads,selectAll:null==y?void 0:y.labels.selectAll,clearSelection:null==y?void 0:y.labels.clearSelection,clearAll:null==y?void 0:y.labels.clearAll,downloadFiles:null==y?void 0:y.labels.downloadFiles,failMessage:null==y?void 0:y.messages.fail,loadMoreIcon:null==y?void 0:y.labels.loadMoreIcon};function T({downloadsApi:t,postUrl:n,open:o,forgeTokenUrl:m}
1){const[x,j]=(0,s.useState)(null),[E,L]=(0,s.useState)([]),[T,P]=(0,s.useState)(),[M,R]=(0,s.useState)(0),[k,B]=(0,s.useState)(!1),[O,F]=(0,s.useState)(0),[H,G]=(0,s.useState)(1),[U,V]=(0,s.useState)([]),[$,W]=(0,s.useState)(0),[q,K]=(0,s.useState)([]),[z,Y]=(0,s.useState)(!1),[X,J]=(0,s.useState)(0),[Q,Z]=(0,s.useState)(o),[ee,te]=(0,s.useState)(!1),[ne,se]=(0,s.useState)(!1),[oe,le]=(0,s.useState)({access_token:"",expires_in:0,token_type:"Bearer"}),ie=s.useRef(null),re=s.useRef(null),ae=s.useRef(null),[ce,de]=(0,s.useState)({loading:!0,error:!1}),ue={text:null==y?void 0:y.heading.text,tag:null==y?void 0:y.heading.tag,classes:null==y?void 0:y.heading.classes,iconOpen:null==y?void 0:y.heading.iconOpen,iconClose:null==y?void 0:y.heading.iconClose},me=[2,3,4,5],[he,pe]=(0,s.useState)(me[0]);(0,s.useEffect)(()=>{e.setAttribute("id",C),h.DownloadsBar.AddModule(C),(async()=>{de({loading:!0,error:!1});const{success:e,data:n}=await(0,l.getUrl)({url:t,method:I?"GET":"POST",...!I&&{body:{lang:N,id:b}}});if(e){de({loading:!1,error:!1});const e=[];n.tabs.map(t=>{t.items.length>0&&e.push(t)}),V([...e])}else de({loading:!1,error:!0})})(),(0,g.startForgeTokenRefresh)(m,le),h.DownloadsBar.isDownloadBar||(h.DownloadsBar.SetActive(),te(h.DownloadsBar.isDownloadBar))},[t]),(0,s.useEffect)(()=>{let e=!0;U[$]&&U[$].items.forEach(t=>{q.includes(t.id)||(e=!1)}),Y(e)},[q,U,$]),(0,f.useInterval)(()=>{h.DownloadsBar.modules[C]&&h.DownloadsBar.modules[C].clearAll&&(_e(),h.DownloadsBar.modules[C].clearAll=!1)},300),(0,s.useEffect)(()=>{U.length&&requestAnimationFrame(()=>{document.dispatchEvent(new CustomEvent("kuschco:data-anchors-refresh"))})},[U]),(0,s.useEffect)(()=>{const t=()=>Z(!0);return e.addEventListener("kuschco:product-attachments-open",t),()=>{e.removeEventListener("kuschco:product-attachments-open",t)}},[]);const fe=()=>{const e=q;U[$].items.forEach(t=>{const n=e.indexOf(t.id);n>-1&&e.splice(n,1)}),K([...new Set(e)]),h.DownloadsBar.AddDownloads(C,[...new Set(e)])},_e=()=>{K([]),h.DownloadsBar.AddDownloads(C,[])},Se=e=>{const t=q,n=t.indexOf(e);-1==n?t.push(e):t.splice(n,1),K([...t]),h.DownloadsBar.AddDownloads(C,t)},ge=e=>-1!=q.indexOf(e),we=(0,_.debounce)(()=>{const e=window.innerWidth;let t=me[0];e>600&&(t=me[1]),e>1024&&(t=me[2]),e>1440&&(t=me[3]),pe(t)},100);function ve(e){if(ie.current){const t=ie.current.querySelector(".swiper-wrapper");setTimeout(()=>{(0,i.innerDimensions)(ie.current).width>(0,i.innerDimensions)(t).width?null==e||e.disable():null==e||e.enable()},0)}}(0,s.useEffect)(()=>{we(),window.addEventListener("resize",we,!1)},[]);const Ae=(e,t)=>
1{P(e),R(t)};return(0,A.jsxs)(A.Fragment,{children:[ee&&(0,A.jsx)(h.DownloadsBar.DownloadsDetails,{labels:D,postUrl:n}),!ce.loading&&(0,A.jsx)("div",{className:"m-ProductAttachments__wrapper ",children:(0,A.jsxs)("div",{className:"l-wrapper l-wrapper--maxWidth-mobile",children:[(0,A.jsxs)("div",{className:"m-ProductAttachments__header",...null!==Q&&{onClick:()=>Z(!Q)},children:[null!==Q&&(0,A.jsx)("img",{src:Q?ue.iconClose:ue.iconOpen,alt:""}),ue&&(0,A.jsx)(w.Heading,{...ue})]}),(0,A.jsxs)("div",{className:`m-ProductAttachments__content ${!1===Q?c.CLASS_IS_HIDE:""}`,children:[(0,A.jsx)("div",{className:"m-TabsKusch",children:(0,A.jsxs)(d.RC,{modules:[u.Vx],ref:ie,className:"m-TabsKusch__wrapper",tag:"nav",slidesPerView:"auto",spaceBetween:(0,i.convertRemToPixels)(1.5),navigation:{prevEl:re.current,nextEl:ae.current},wrapperClass:"m-TabsKusch__tabs",wrapperTag:"ul",lazyPreloadPrevNext:2,lazyPreloaderClass:"c-Loader--swiper",breakpoints:{[c.BREAKPOINTS.M]:{spaceBetween:(0,i.convertRemToPixels)(3)}},onSwiper:e=>{ve(e),window.addEventListener("resize",()=>{ve(e)},!1)},children:[U&&U.map((e,t)=>{const n=e.anchorName;return(0,A.jsx)(d.qr,{id:e.id,className:`m-TabsKusch__tab ${$==t?c.CLASS_IS_ACTIVETAB:""}`,tag:"li",children:(0,A.jsxs)("button",{className:"m-TabsKusch__action","data-tab":e.id,...n&&{"data-anchor-label":n},onClick:()=>W(t),children:[(0,A.jsx)("span",{className:"m-TabsKusch__action-text",children:e.name}),e.name]})},`tab_${t}`)}),U&&U.length>1&&(0,A.jsxs)("div",{className:"c-Navigation",children:[(0,A.jsx)("div",{className:"c-Navigation__button c-Navigation__button--prev",ref:re,children:(0,A.jsx)("img",{src:null==y?void 0:y.popup.swiperButtonIcon,alt:""})}),(0,A.jsx)("div",{className:"c-Navigation__button c-Navigation__button--next",ref:ae,children:(0,A.jsx)("img",{src:null==y?void 0:y.popup.swiperButtonIcon,alt:""})})]})]})}),(0,A.jsxs)("div",{className:"m-ProductAttachments__components",children:[U[$]&&(0,A.jsxs)("div",{className:"m-ProductAttachments__buttons",children:[(0,A.jsxs)("button",{className:`m-ProductAttachments__btn-checkbox ${z?c.CLASS_IS_SELECTED:""}`,onClick:()=>(()=>{if(z)fe();else{const e=q;U[$].items.forEach(t=>{e.push(t.id)}),K([...new Set(e)]),h.DownloadsBar.AddDownloads(C,[...new Set(e)])}})(),children:[" ",(0,A.jsx)("span",{className:"m-ProductAttachments__btn-checkbox-square"}),(0,A.jsxs)("span",{className:"m-ProductAttachments__btn-checkbox-label",children:[null==y?void 0:y.labels.selectAll," (",U[$].items.length,")"]})]}),(0,A.jsx)("button",{className:"m-ProductAttachments__btn-clear",onClick:fe,children:null==y?void 0:y.labels.clearSelection})]}),(0,A.jsx)("ul",{className:"m-ProductAttachments__container",children:U[$]&&U[$].items.slice(0,X+he).map((e,t)=>(0,A.jsxs)("li",{className:`m-ProductAttachments__item ${1==e.type?"m-ProductAttachments__item--image":""} ${1==e.packshot?"m-ProductAttachments__item--packshot":""} ${ge(e.id)?"is--selected":""} ${ne?c.CLASS_IS_HOVER:""}`,onMouseEnter:()=>se(!0),onMouseLeave:()=>se(!1),children:[2==e.type&&(0,A.jsxs)("div",{className:"m-ProductAttachments__image",children:[(0,A.jsx)("a",{href:""+e.preview,target:"_blank",rel:"noreferrer",className:"m-ProductAttachments__preview-link",children:(0,A.jsx)("img",{className:"m-ProductAttachments__img",src:""+e.thumb})}),(0,A.jsxs)("div",{className:"m-ProductAttachments__item-buttons",children:[(0,A.jsx)("button",{className:"m-ProductAttachments__btn m-ProductAttachments__btn-select",onClick:()=>Se(e.id)}),(0,A.jsx)("button",{className:"c-Button m-ProductAttachments__btn m-ProductAttachments__btn-download",onClick:()=>(0,v.default)(e.download),children:(0,A.jsxs)("span",{className:"c-Button__wrapper",children:[(0,A.jsx)("img",{src:null==y?void 0:y.labels.downloadIcon,alt:""}),(0,A.jsx)("span",{children:null==y?void 0:y.labels.download})]})})]})]}),2!=e.type&&(0,A.jsxs)("div",{className:"m-ProductAttachments__image "+(e.preview?"":"no-cursor"),children:[(0,A.jsx)("img",{className:"m-ProductAttachments__img",src:""+e.thumb,alt:e.alt?e.alt:"",onClick:()=>{3==e.type?e.preview&&j({type:e.type,path:e.preview}):(L(U[$].items),R(t),B(!0),(0,a.default)()&&(0,r.setBodyPadding)(!1),(0,r.setScrollState)(!0))}}),(0,A.jsxs)("div",{className:"m-ProductAttachments__item-buttons",children:[(0,A.jsx)("button",{className:"m-ProductAttachments__btn m-ProductAttachments__btn-select",onClick:()=>Se(e.id)}),(0,A.jsx)("button",{className:"c-Button m-ProductAttachments__btn m-ProductAttachments__btn-download",onClick:()=>(0,v.default)(e.download),children:(0,A.jsxs)("span",{className:"c-Button__wrapper",children:[(0,A.jsx)("img",{src:null==y?void 0:y.labels.downloadIcon,alt:""}),(0,A.jsx)("span",{children:null==y?void 0:y.labels.download})]})})]})]}),1!=e.type&&(0,A.jsxs)("div",{className:"m-ProductAttachments__item-details",children:[e.title&&(0,A.jsx)("span",{className:"m-ProductAttachments__detail-name",children:e.title}),e.description&&(0,A.jsx)("span",{className:"m-ProductAttachments__detail-type",children:e.description}),e.details&&(0,A.jsx)("span",{className:"m-ProductAttachments__detail-file",children:e.details})]})]},`item_${t}`))}),U[$]&&U[$].items.length>he&&(0,A.jsx)("div",{className:"m-ProductAttachments__loadMore",children:(0,A.jsx)("button",{className:"c-Button","aria-expanded":0==X,onClick:()=>{X>he?(J(0),(0,i.scrollToElement)(e)):J(X+1e3)},children:(0,A.jsxs)("span",{className:"c-Button__wrapper",children:[(0,A.jsx)("img",{src:0==X?null==y?void 0:y.labels.loadMoreIcon:null==y?void 0:y.labels.loadLessIcon,alt:""}),(0,A.jsx)("span",{children:0==X?null==y?void 0:y.labels.loadMore:null==y?void 0:y.labels.loadLess}
1)]})})}),(null==y?void 0:y.buttonsSection)&&(0,A.jsx)("div",{className:"m-FinishingMaterialsDocs",children:(0,A.jsx)("div",{className:"m-FinishingMaterialsDocs__buttons",children:null==y?void 0:y.buttonsSection.buttons.map((e,t)=>{const n="c-Button"+(e.class?` ${e.class}`:"");return(0,A.jsx)("a",{target:e.target?`_${e.target}`:"_self",rel:e.rel?`${e.rel}`:"",className:n,href:e.url,children:(0,A.jsxs)("span",{className:"c-Button__wrapper",children:[(0,A.jsx)("img",{src:e.icon,alt:""}),(0,A.jsx)("span",{children:e.text})]})},t)})})})]})]})]})}),x&&(0,A.jsxs)("aside",{className:`m-Popup ${x?c.CLASS_IS_ACTIVE:""} `,children:[H>1&&(0,A.jsxs)("div",{className:"m-Popup__forge-btns",children:[(0,A.jsx)("button",{className:`${0==O?c.CLASS_IS_ACTIVE:""} `,onClick:()=>F(0),children:(0,A.jsx)("span",{children:"2D"})}),(0,A.jsx)("button",{className:`${1==O?c.CLASS_IS_ACTIVE:""} `,onClick:()=>F(1),children:(0,A.jsx)("span",{children:"3D"})})]}),(0,A.jsx)("button",{className:"m-Popup__close",onClick:()=>j(null),children:(0,A.jsx)("img",{src:null==y?void 0:y.popup.closeButtonIcon,className:"m-TopMenu__btn-icon m-TopMenu__btn-icon--close",alt:""})}),(0,A.jsxs)("div",{className:"m-Popup__container",children:[3==x.type&&0==O&&(0,A.jsx)(S.default,{token:oe,urn:x.path,viewInd:O,forgeViewsCount:G}),3==x.type&&1==O&&(0,A.jsx)(S.default,{token:oe,urn:x.path,viewInd:O,forgeViewsCount:G})]})]}),(0,A.jsx)(p.default,{preview:k,items:E,currentItem:T,currentItemIndex:M,handleGalleryClose:()=>{B(!1),(0,r.setScrollState)(!1),(0,r.setBodyPadding)(!0)},handleSlideChange:e=>{Ae(E[e],e)},popup:null==y?void 0:y.popup})]})}n&&(0,o.createRoot)(e).render((0,A.jsx)(T,{downloadsApi:n,postUrl:x,open:L,forgeTokenUrl:j}))}},63141:function(e,t,n){n.r(t),n.d(t,{ANIMATION_TIMING:function(){return H},API_IMAGE_BASE:function(){return a},API_PATH:function(){return r},ASSETS_PATH:function(){return l},BREAKPOINTS:function(){return d},CLASS_FLOATING_SIDE_MENU_IS_OPEN:function(){return B},CLASS_IS_ACTIVE:function(){return h},CLASS_IS_ACTIVETAB:function(){return p},CLASS_IS_CENTERED:function(){return f},CLASS_IS_CHECKED:function(){return _},CLASS_IS_COLLAPSED:function(){return S},CLASS_IS_COMPRESSED:function(){return g},CLASS_IS_ENTERING:function(){return R},CLASS_IS_ERROR:function(){return w},CLASS_IS_FIXED:function(){return v},CLASS_IS_HIDDEN:function(){return A},CLASS_IS_HIDE:function(){return x},CLASS_IS_HOVER:function(){return b},CLASS_IS_LAYER_ACTIVE:function(){return N},CLASS_IS_LOADING:function(){return y},CLASS_IS_OPEN:function(){return C},CLASS_IS_OPENED:function(){return j},CLASS_IS_REQUIRED:function(){return I},CLASS_IS_SCROLL:function(){return E},CLASS_IS_SELECTED:function(){return L},CLASS_IS_STICKY:function(){return D},CLASS_IS_SUCCESS:function(){return T},CLASS_IS_TRANSITIONING:function(){return M},CLASS_IS_VISIBLE:function(){return k},CLASS_IS_ZOOM:function(){return P},CONTENT_PATH:function(){return i},CSS_VAR_LAYOUT_TOP_MENU_HEIGHT_KUSCH:function(){return F},EVENT_MENU_VISIBILITY_CHANGE:function(){return O},KEYS:function(){return u},LAYOUT_SETTINGS:function(){return c},STORAGE:function(){return m}});const s=document.currentScript&&document.currentScript.src||"";let o="";if(s){o=new URL(s).origin}const l=o+"/",i=o+"/content",r="",a="",c={WRAPPER_WIDTH:"1180"},d={XS:"375",S:"480",M:"1024",ML:"1280",L:"1360",LXL:"1536",XL:"1920"},u={tab:"Tab",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",left:"ArrowLeft",enter:"Enter",space:"Space",esc:"Escape"},m={DAMCollection:"DAM-collection",DAMNestCollection:"DAM-Nest-collection",DAMFiltersStates:"DAM-filters-states",DAMNestFiltersStates:"DAM-Nest-filters-states",DAMCollectionSelected:"DAM-collectionSelected",DAMNestCollectionSelected:"DAM-Nest-collectionSelected",DAMSelected:"DAM-selected",DAMNestSelected:"DAM-Nest-selected",DAMUrlParams:"DAM-urlParams",DAMNestUrlParams:"DAM-Nest-urlParams"},h="is--active",p="is--activeTab",f="is--centered",_="is--checked",S="is--collapsed",g="is--compressed",w="is--error",v="is--fixed",A="is--hidden",x="is--hide",b="is--hover",N="is--layer-active",y="is--loading",C="is--open",j="is--opened",I="is--required",E="is--scroll",L="is--selected",D="is--sticky",T="is--success",P="is--zoom",M="is--transitioning",R="is--entering",k="is--visible",B="floating-side-menu-is-open",O="kuschco:menu-visibility-change",F="--layout-top-menu-height-kusch",H={MENU_TRANSITION:300,MENU_TRANSITION_DELAY:150,MENU_ENTRY_DELAY:50,SCROLL_THRESHOLD:100,SCROLL_TOP_THRESHOLD:50,SCROLL_HIDE_THRESHOLD:200}},71727:function(e,t,n){n.r(t);var s=n(96540),o=n(52712),l=n.n(o),i=n(74848);t.default=e=>{const{token:t,urn:n,viewInd:o}
1=e,[r,a]=(0,s.useState)([]);return(0,i.jsx)(l(),{version:"6.0",urn:n,view:r[o],headless:!1,onViewerError:e=>{},onTokenRequest:e=>{e&&null!=t&&t.access_token&&e(t.access_token,t.expires_in)},onDocumentLoad:(t,n)=>{0===n.length||(a(n),e.forgeViewsCount(n.length))},onDocumentError:(e,t)=>{},onModelLoad:(e,t)=>{},onModelError:(e,t)=>{}})}},72765:function(e,t,n){n.r(t),n.d(t,{useInterval:function(){return o}});var s=n(96540);const o=(e,t)=>{const n=(0,s.useRef)();(0,s.useEffect)(()=>{n.current=e},[e]),(0,s.useEffect)(()=>{if(null!==t){let e=setInterval(function(){n.current()},t);return()=>clearInterval(e)}},[t])}},78399:function(e,t,n){n.r(t),n.d(t,{Heading:function(){return l},HeadingSection:function(){return i}});n(96540);var s=n(10900),o=n(74848);const l=e=>{const{text:t,tag:n,classes:l}=e,i=`${n}`;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(i,{className:l,children:(0,s.Ay)(t)})})},i=e=>{const{text:t,tag:n,classes:l}=e,i=`${n}`;return(0,o.jsx)("div",{className:"l-section__heading Heading",children:(0,o.jsx)(i,{className:l,children:(0,s.Ay)(t)})})}},78611:function(e,t,n){function s(){return"number"==typeof window.innerWidth&&window.innerWidth>document.documentElement.clientWidth}n.r(t),n.d(t,{default:function(){return s}})},82272:function(e,t,n){n.r(t),n.d(t,{DownloadsBar:function(){return r}});var s=n(96540),o=n(12347),l=n(72765),i=n(74848);const r={isDownloadBar:!1,prevControl:0,control:0,modules:{},SetActive:function(){this.isDownloadBar=!0},AddModule:function(e){this.modules[e]={finishes:[],downloads:[],clearAll:!1,selectAll:!1}},AddFiles:function(e,t){this.modules[e].files=t,this.control=Date.now()},AddFinishes:function(e,t){this.modules[e].finishes=t,this.control=Date.now()},AddDownloads:function(e,t){this.modules[e].downloads=t,this.control=Date.now()},DownloadsDetails:function(e){const[t,n]=(0,s.useState)(""),[a,c]=(0,s.useState)([]),[d,u]=(0,s.useState)([]),[m,h]=(0,s.useState)([]),{labels:p,postUrl:f}=e;(0,l.useInterval)(()=>
1{if(r.control!=r.prevControl){let e=[],t=[];for(const n in r.modules)e=e.concat(r.modules[n].finishes),t=t.concat(r.modules[n].downloads);u([...e]),h([...t]),r.prevControl=r.control}},300);return(0,i.jsx)(i.Fragment,{children:(d.length>0||m.length>0)&&(0,i.jsxs)("div",{className:"m-DownloadsDetails",children:[(0,i.jsxs)("div",{className:"l-wrapper l-wrapper--maxWidth-mobile",children:[(0,i.jsxs)("div",{className:"m-DownloadsDetails-block",children:[(0,i.jsxs)("span",{className:"m-DownloadsDetails-selected",children:[p.selectedFiles,":"," ",d.length+m.length]}),(0,i.jsxs)("span",{className:"m-DownloadsDetails-selected",children:[p.selectedFinishes,": (",d.length,")"]}),(0,i.jsxs)("span",{className:"m-DownloadsDetails-selected",children:[p.selectedDownloads,": (",m.length,")"]}),(0,i.jsx)("button",{className:"m-DownloadsDetails-clear",onClick:()=>{for(const e in r.modules)r.modules[e].clearAll=!0},children:p.clearAll})]}),(0,i.jsx)("div",{className:"m-DownloadsDetails-block",children:(0,i.jsx)("button",{className:"c-Button m-DownloadsDetails-download",onClick:()=>{(async()=>{n("processing");const e=d.concat(m),{success:t,file:s}=await(0,o.getUrl)({url:f,method:"POST",body:{files:e}});t?(n(""),setTimeout(()=>{window.open(s,"_blank")})):(n("fail"),setTimeout(()=>{n("")},3e3))})()},disabled:""!=t,children:(0,i.jsxs)("span",{className:"c-Button__wrapper",children:[(0,i.jsx)("img",{src:p.loadMoreIcon,alt:""}),(0,i.jsx)("span",{children:p.downloadFiles})]})})})]}),"fail"==t&&(0,i.jsx)("div",{className:"l-wrapper l-wrapper--maxWidth-mobile",children:(0,i.jsx)("p",{className:"m-DownloadsDetails__sendMessage",children:p.failMessage})})]})})}}}}]);
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.