PageSourceSearch

https://www.kusch.com/js/5225.js?v=6d7519c261ce9346c8ab

js kusch.com collected 2026-10-05 01:49:04 UTC 17,421 bytes, 21 lines download raw bytes

1"use strict";(self.webpackChunknowy_styl_webpage=self.webpackChunknowy_styl_webpage||[]).push([[392,954,2347,5225,6193,6484,6985,7485,8680,9075,9866],{9075:function(e,t,r){r.r(t),r.d(t,{buildFeaturePayload:function(){return u},parseFromUrl:function(){return s},stripHtml:function(){return n},takeByCapacity:function(){return a},updateUrl:function(){return o}});const n=e=>{if(!e)return"";const t=document.createElement("div");return t.innerHTML=e,t.textContent||""},o=e=>{const t=new URL(window.location.href);void 0!==e.features?e.features&&0!==e.features.length?t.searchParams.set("features",e.features.join(",")):t.searchParams.delete("features"):void 0!==e.activeFilters?0===e.activeFilters.length?t.searchParams.delete("features"):t.searchParams.set("features",e.activeFilters.join(",")):void 0!==e.filters&&(null===e.filters||""===e.filters?t.searchParams.delete("features"):t.searchParams.set("features",e.filters)),void 0!==e.categoryId&&(e.categoryId?t.searchParams.set("categoryId",String(e.categoryId)):t.searchParams.delete("categoryId")),void 0!==e.featuresItems&&(e.featuresItems&&0!==e.featuresItems.length?t.searchParams.set("features_items",e.featuresItems.join(",")):t.searchParams.delete("features_items")),Object.entries(e).forEach(([e,r])=>{"filters"!==e&&"activeFilters"!==e&&"features"!==e&&"categoryId"!==e&&"featuresItems"!==e&&(null==r||""===r?t.searchParams.delete(e):t.searchParams.set(e,String(r)))});const r=t.searchParams.toString(),n=`${window.location.pathname}${r?`?${r}`:""}${window.location.hash}`;history.pushState({},"",n)},s=()=>{const e=new URLSearchParams(window.location.search),t=e.get("features"),r=t?t.split(",").filter(Boolean):[],n=e.get("features_items"),o=n?n.split(",").filter(Boolean):[];return{features:t,activeFilters:o.length>0?o:r,featuresFromUrl:r,featuresItemsFromUrl:o,sector:e.get("sector"),categoryId:e.get("categoryId"),count:(t=>{const r=e.get(t);return r&&Number.isFinite(parseInt(r,10))?parseInt(r,10):null})("count")}},a=(e,t,r,n)=>{if(r<=0)return{items:[],nextIndex:t};const o=[];let s=0,a=t;for(;a<e.length;){const t=e[a];let u=1;if(n&&(u="l"===t.capacity?2:"m"===t.capacity?1.5:1),s+u>r)break;o.push(t),s+=u,a+=1}return{items:o,nextIndex:a}},u=(e,t)=>{const r=new Set(e),n=new Set,o=[];return Array.isArray(t)&&t.length>0&&t.forEach(e=>{e.filters&&0!==e.filters.length&&e.filters.forEach(t=>{r.has(t.id)&&(n.add(e.id),o.push(t.id))})}),{features:Array.from(n),features_items:o}}},12347:function(e,t,r){r.r(t),r.d(t,{abort:function(){return u},getUrl:function(){return c}});const n="application/json",o="caches"in self,s="geturlcache",a={};function u({url:e,data:t}){if(a[e])if(t){const n=JSON.stringify(t);var r;if(a[e][n])null===(r=a[e][n])||void 0===r||r.abort(),a[e][n]=null}else{var n;if(a[e][e])null===(n=a[e][e])||void 0===n||n.abort(),a[e][e]=null;else for(const t in a[e])a[e][t]&&a[e][t].abort()}}async function c({url:e,data:t,body:r,method:u="GET",cacheMinutes:c=0}){const l=t||r,f=l?JSON.stringify(l):e,d=new AbortController;a[e]=a[e]||{},a[e][f]=d;let p=e;const m={method:u,signal:d.signal};if(l){if(t){const e=new URLSearchParams(t);p=`${p}?${e.toString()}`}r&&(m.body=JSON.stringify(r)),"POST"==m.method&&(m.headers={"Content-Type":n})}return async function(e,t,r){if(r&&o)return async function(e,t,r,n){const s=sessionStorage.getItem(e+t);if(!s)return;if(i(parseInt(s),n))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,r))}catch(e){return}}(s,e,t,r)}(p,m,c).then(t=>t&&t.ok?(a[e][f]=null,t):fetch(p,m).then(t=>(200==t.status&&c&&async function(e,t,r){if(o)return sessionStorage.setItem(s+e,Date.now().toString()),async function(e,t,r,n){try{(await caches.open(e)).put(new Request(t,r),n)}catch(e){return}}(s,e,t,r)}(p,m,t.clone()).then(()=>{a[e][f]=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 i=(e,t)=>{const r=new Date(e);r.setHours(r.getHours(),r.getMinutes()+t);return(new Date).getTime()>r.getTime()}},26484:function(e,t,r){r.r(t),r.d(t,{fetchBasicProducts:function(){return s},fetchPromoProduct:function(){return a}});var n=r(12347),o=r(48680);const s=async(e,t)=>{if(!e||!e.api.products)return{products:[],categories:null,features:null};
vendor: 4,174 bytes, lines 1-21
1const r=new URLSearchParams({language:(0,o.getLanguageFromUrl)(window.location.href)});t.categoryId&&r.append("categoryId",t.categoryId),t.features&&t.features.length>0&&r.append("features",t.features.join(",")),t.features_items&&t.features_items.length>0&&r.append("features_items",t.features_items.join(",")),t.sector&&"all"!==t.sector&&""!==t.sector&&r.append("sector",t.sector);return await(0,n.getUrl)({url:("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname?"https://test.kusch.com":"")+e.api.products+"?"+r.toString(),method:"POST"})||{products:[],categories:null,features:[]}},a=async(e,t)=>{if(!e)return null;return await(0,n.getUrl)({url:("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname?"https://test.kusch.com":"")+e+"?language="+(0,o.getLanguageFromUrl)(window.location.href)+"&id="+t,method:"POST"})||null}},29698:function(e,t){
2/**
3 * @license React
4 * react-jsx-runtime.production.js
5 *
6 * Copyright (c) Meta Platforms, Inc. and affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */
11var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var s in n={},t)"key"!==s&&(n[s]=t[s]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}t.Fragment=n,t.jsx=o,t.jsxs=o},29869:function(e,t){
12/**
13 * @license React
14 * react.production.js
15 *
16 * Copyright (c) Meta Platforms, Inc. and affiliates.
17 *
18 * This source code is licensed under the MIT license found in the
19 * LICENSE file in the root directory of this source tree.
20 */
21var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,y={};function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function v(){}function _(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=_.prototype=new v;b.constructor=_,h(b,g.prototype),b.isPureReactComponent=!0;var w=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function j(e,t,n,o,s,a){return n=a.ref,{$$typeof:r,type:e,key:t,ref:void 0!==n?n:null,props:a}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var r,n}function k(){}function C(e,t,o,s,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,i,l=!1;if(null===e)l=!0;else switch(u){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0;break;case d:return C((l=e._init)(e._payload),t,o,s,a)}}if(l)return a=a(e),l=""===s?"."+I(e,0):s,w(a)?(o="",null!=l&&(o=l.replace(E,"$&/")+"/"),C(a,t,o,"",function(e){return e})):null!=a&&(x(a)&&(c=a,i=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+l,a=j(c.type,i,void 0,0,0,c.props)),t.push(a)),1;l=0;var f,m=""===s?".":s+":";if(w(e))for(var h=0;h<e.length;h++)l+=C(s=e[h],t,o,u=m+I(s,h),a);else if("function"==typeof(h=null===(f=e)||"object"!=typeof f?null:"function"==typeof(f=p&&f[p]||f["@@iterator"])?f:null))for(e=h.call(e),h=0;!(s=e.next()).done;
21)l+=C(s=s.value,t,o,u=m+I(s,h++),a);else if("object"===u){if("function"==typeof e.then)return C(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,s,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function $(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",function(e){return t.call(r,e,o++)}),n}function H(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function N(){}t.Children={map:$,forEach:function(e,t,r){$(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $(e,function(){t++}),t},toArray:function(e){return $(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=_,t.StrictMode=s,t.Suspense=l,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return P.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=h({},e.props),o=e.key;if(null!=t)for(s in void 0!==t.ref&&void 0,void 0!==t.key&&(o=""+t.key),t)!S.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(n[s]=t[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];n.children=a}return j(e.type,o,void 0,0,0,n)},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:u,_context:e},e},t.createElement=function(e,t,r){var n,o={},s=null;if(null!=t)for(n in void 0!==t.key&&(s=""+t.key),t)S.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return j(e,s,void 0,0,0,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:H}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.T,r={};P.T=r;try{var n=e(),o=P.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(N,R)}catch(e){R(e)}finally{P.T=t}},t.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},t.use=function(e){return P.H.use(e)},t.useActionState=function(e,t,r){return P.H.useActionState(e,t,r)},t.useCallback=function(e,t){return P.H.useCallback(e,t)},t.useContext=function(e){return P.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return P.H.useDeferredValue(e,t)},t.useEffect=function(e,t,r){var n=P.H;if("function"==typeof r)throw Error("useEffect CRUD overload is not enabled in this build of React.");return n.useEffect(e,t)},t.useId=function(){return P.H.useId()},t.useImperativeHandle=function(e,t,r){return P.H.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.H.useMemo(e,t)},t.useOptimistic=function(e,t){return P.H.useOptimistic(e,t)},t.useReducer=function(e,t,r){return P.H.useReducer(e,t,r)},t.useRef=function(e){return P.H.useRef(e)},t.useState=function(e){return P.H.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.H.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.H.useTransition()},t.version="19.1.1"},36985:function(e,t,r){r.r(t),r.d(t,{PromoProduct:function(){return u}});var n=r(26484),o=r(96540),s=r(9075),a=r(74848);const u=({apiUrl:e,promoId:t,size:r})=>{const[u,c]=(0,o.useState)(null),[i,l]=(0,o.useState)(!0),[f,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{const r=new AbortController;let o=!0;return(async()=>{try{var s;const a=await(0,n.fetchPromoProduct)(e,null!==(s=t.id)&&void 0!==s?s:"");!r.signal.aborted&&o&&c(a)}catch{!r.signal.aborted&&o&&c(null)}finally{!r.signal.aborted&&o&&l(!1)}})(),()=>{r.abort(),o=!1}},[e,t]),(0,o.useEffect)(()=>
21{if(u&&!i){const e=setTimeout(()=>{d(!0)},10);return()=>clearTimeout(e)}},[u,i]),i?(0,a.jsx)("div",{className:`c-ProductPromo size-${r}`,children:(0,a.jsx)("div",{className:"c-ProductPromo__content",children:(0,a.jsx)("p",{children:"Loading..."})})}):u?(0,a.jsxs)("div",{className:`c-ProductPromo size-${r} ${f?"is-visible":""}`,children:[(0,a.jsx)("div",{className:"c-ProductPromo__image",children:(0,a.jsx)("img",{src:u.poster,alt:u.posterAlt||u.name,loading:"lazy",decoding:"async"})}),(0,a.jsxs)("div",{className:"c-ProductPromo__content",children:[(0,a.jsx)("h3",{className:"c-ProductPromo__name",children:(0,s.stripHtml)(u.name)}),(0,a.jsx)("p",{className:"c-ProductPromo__description",children:(0,s.stripHtml)(u.description)}),u.href&&u.labelBtn&&(0,a.jsx)("a",{className:`c-Button ${u.buttonIcon?"":"c-Button--noIcon"} c-ProductPromo__button`,href:u.href,target:"_self",children:(0,a.jsxs)("span",{className:"c-Button__wrapper",children:[u.buttonIcon&&(0,a.jsx)("img",{src:u.buttonIcon,alt:""}),(0,a.jsx)("span",{children:u.labelBtn})]})})]})]},u.id):null}},38011:function(e,t,r){r.r(t),r.d(t,{LabelsContext:function(){return n}});const n=(0,r(96540).createContext)(void 0)},48680:function(e,t,r){r.r(t),r.d(t,{getLanguageFromUrl:function(){return n}});const n=e=>{const{pathname:t}=new URL(e),r=t.indexOf("/",1),n=t.substring(1,r);return"views"==n?"en":n}},60954:function(e,t,r){r.r(t),r.d(t,{BasicProduct:function(){return u}});var n=r(96540),o=r(38011),s=r(9075),a=r(74848);const u=e=>{var t;const r=n.useContext(o.LabelsContext),u=null==r?void 0:r.labels,[c,i]=(0,n.useState)(!1),[l,f]=(0,n.useState)("delay-0");return(0,n.useEffect)(()=>{const e=Math.floor(5*Math.random());f(`delay-${e}`);const t=setTimeout(()=>{i(!0)},10);return()=>clearTimeout(t)},[]),(0,a.jsxs)("div",{className:`c-Product ${"l"===e.capacity?"double":"m"===e.capacity?"one-and-half":""} ${l} ${c?"is-visible":""}`,children:[(0,a.jsxs)("div",{className:"c-Product__image ",children:[(0,a.jsx)("a",{href:e.url,target:"_self","aria-label":(0,s.stripHtml)(e.name),children:(0,a.jsx)("img",{src:e.poster.src,alt:e.poster.alt||"",loading:"lazy",decoding:"async"})}),e.label&&(0,a.jsx)("div",{className:"c-Product__label",style:{backgroundColor:e.label.bgColorClass},children:e.label.title})]}),(0,a.jsxs)("div",{className:"c-Product__content",children:[(0,a.jsxs)("h3",{className:"h5 c-Product__name",children:[(0,a.jsx)("a",{href:e.url,target:"_self",children:(0,s.stripHtml)(e.name)}),(0,a.jsx)("span",{className:"c-Product__description",children:(0,s.stripHtml)(e.description)})]}),(null===(t=e.designer)||void 0===t?void 0:t.name)&&(0,a.jsxs)("p",{className:"c-Product__designer",children:[null==u?void 0:u.designBy," ",e.designer.href?(0,a.jsx)("a",{href:e.designer.href,target:"_self",children:(0,s.stripHtml)(e.designer.name)}):(0,s.stripHtml)(e.designer.name)]})]})]},e.id)}},74848:function(e,t,r){e.exports=r(29698)},85225:function(e,t,r){r.r(t),r.d(t,{BigRowWithPromo:function(){return a}});r(96540);var n=r(60954),o=r(36985),s=r(74848);const a=({products:e,promoId:t,promoApiUrl:r})=>(0,s.jsxs)("div",{className:"c-ProductListingRow c-ProductListingRow--bigPromo",children:[t&&r&&(0,s.jsx)(o.PromoProduct,{apiUrl:r,promoId:t,size:4}),e.map(e=>(0,s.jsx)(n.BasicProduct,{...e},e.id))]})},96540:function(e,t,r){e.exports=r(29869)}}]);

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.