PageSourceSearch

https://www.systemair.com/_next/static/chunks/4163.8084493fd2aa9ff8.js

js systemair.com collected 2026-10-02 02:58:29 UTC 8,345 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4163],{17132:(e,r,t)=>{t.d(r,{SiteConfigStore:()=>l,z:()=>y});var n=t(12115),o=t(35867),a=t(41535);function s(e,r){return(0,o.y)()((t,n)=>({siteConfig:e,fallbackSiteConfig:r,selectSiteConfigurationProperties(e,r,t){let o={};return e.forEach(e=>{o[e]=c(e,n().siteConfig,n().fallbackSiteConfig,r,t)}),o},selectSiteConfigurationProperty:(e,r,t)=>c(e,n().siteConfig,n().fallbackSiteConfig,r,t)}))}let i=s(),u=(0,n.createContext)(null);function c(e,r,t,n,o){if(!r)return;let a=r?.[e];return!o&&(n||void 0!==a)?a:t?.[e]}function l({siteConfig:e,fallback:r,children:t}){let o=[e?.id,e?.locale,r?.id,r?.locale].join("|"),a=(0,n.useMemo)(()=>s(e,r),[o]);return(0,n.createElement)(u.Provider,{value:a},t)}function y(e){let r=(0,n.useContext)(u);return(0,a.P)(r??i,e)}},24402:(e,r,t)=>{t.d(r,{B3:()=>d,E9:()=>p,F:()=>f,Qs:()=>S,Ws:()=>m,a3:()=>O,lo:()=>h,m0:()=>w,mJ:()=>b,rS:()=>v,v:()=>g,vm:()=>y,w$:()=>l,xY:()=>F,xi:()=>q});var n=t(23023),o=t(50424),a=t(84456),s=t(52744),i=t(37549);let u=(0,a.Sy)(o.bH).map(e=>e.value).join(","),c=async(e,r)=>{let t=`Failed to fetch data from ${e}`;try{let n=await fetch(e,{signal:r});return n.ok||(t=(await n.json()).error||t),await n.json()}catch(e){throw Error(t)}},l=(e,r,t)=>(0,n.I)({queryKey:["shopData",e,r,t],queryFn:async()=>{let n=[],[o,a]=await Promise.all([(0,s.a)("/get-categories",{shopDomain:e,locale:r,source:t}),(0,s.a)("/get-products",{shopDomain:e,locale:r,source:t})]);if(n.length>0)throw Error(n.join(","));return{categories:o,products:a}},enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),y=(e,r)=>(0,n.I)({queryKey:["certifications",e,r],queryFn:async({signal:t})=>c((0,a.rY)(e,"rest",r,"certifications"),t).then(e=>e.items),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),d=e=>(0,n.I)({queryKey:["statistics",e],queryFn:async()=>(0,s.a)("/get-statistics",{shopDomain:e}),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),h=(e,r)=>{let t=(0,a.rY)(e,void 0,r,"api/shop/settings");return(0,n.I)({queryKey:["settings",e,r],queryFn:async({signal:e})=>c(t,e).catch(()=>{throw Error(`Failed to fetch data from ${t}`)}),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1})},f=(e,r,t,o)=>(0,n.I)({queryKey:["productSkus",e,r,t,o],queryFn:async()=>(0,s.a)("/get-product-skus",{shopDomain:r,locale:t,source:o||"all",id:e}),enabled:!!e,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),p=(e,r,t,o)=>(0,n.I)({queryKey:["sku",e,r,t,o],queryFn:async({signal:n})=>{let s=[];try{let o=await c((0,a.rY)(r,"rest",t,"sku",e),n);o&&s.push({...o,type:"sku"})}catch(e){(0,i.MD)("Failed to fetch SKU by ID",e)}try{let i=await c((0,a.rY)(r,"rest",t,"sku",void 0,void 0,{vendorId:e,source:o||"all"}),n);i?.items?.[0]&&s.push({...i.items[0],type:"sku"})}catch(e){(0,i.MD)("Failed to fetch SKU by vendor ID",e)}return s.length>0?s:null},enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),m=(e,r,t,o)=>(0,n.I)({queryKey:["opm",e,r,t,o],queryFn:async({signal:n})=>{let s=[];try{let o=await c((0,a.rY)(r,"rest",t,"operating-mode",e),n);o&&s.push({...o,type:"om"})}catch(e){(0,i.MD)("Failed to fetch operating mode by ID",e)}try{let i=await c((0,a.rY)(r,"rest",t,"operating-mode",void 0,void 0,{vendorId:e,source:o||"all"}),n).then(e=>e.items[0]);i&&s.push({...i,type:"om"})}catch(e){(0,i.MD)("Failed to fetch operating mode by vendor ID",e)}return s.length>0?s:null},enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),w=e=>(0,n.I)({queryKey:["schedulerQueue",e],queryFn:async({signal:r})=>{let t="all"===e?u:e;return c(`/api/admin/importer/scheduler/queue?shop=${t}`,r)},enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),g=(e,r)=>(0,n.I)({queryKey:["schedulerPromote",e,r],queryFn:async({signal:t})=>c(`/api/admin/importer/scheduler/promote?shop=${e}&locale=${r}`,t),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),F=(e,r)=>(0,n.I)({queryKey:["schedulerRemove",e,r],queryFn:async({signal:t})=>c(`/api/admin/importer/scheduler/remove?shop=${e}&locale=${r}`,t),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),v=(e,r)=>(0,n.I)({queryKey:["shopLocales",e],queryFn:async({signal:t})=>{if(r)try{let r=await c((0,a.rY)(e,"rest",void 0,"statistics"),t);if(!r?.locales||!Array.isArray(r.locales))return(0,i.MD)("Invalid response format in useShopLocales mock API: locales array is missing or invalid"),[];return r.locales}catch(e){return(0,i.MD)("Error fetching mock API data in useShopLocales:",e),[]}try{return await (0,s.a)("/get-shops",{shopDomain:`https://${e}`})}catch(e){throw(0,i.MD)("Error fetching shop data in useShopLocales:",e),Error(e instanceof Error?e.message:"Error fetching shop locales")}},enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),O=(e,r,t)=>(0,n.I)({queryKey:["relations",e,r,t],queryFn:async({signal:n})=>c((0,a.rY)(e,"rest",r,"sku",t,"relations"),n).then(e=>e.items),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),q=(e,r,t)=>(0,n.I)({queryKey:["documents",e,r,t],queryFn:async({signal:n})=>c((0,a.rY)(e,"rest",r,"sku",t,"documents"),n).then(e=>e.items),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),S=(e,r,t)=>(0,n.I)({queryKey:["certifications",e,r,t],queryFn:async({signal:n})=>c((0,a.rY)(e,"rest",r,"sku",t,"certifications"),n).then(e=>e.items),enabled:!1,refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1}),b=e=>(0,n.I)({queryKey:["site-configurations",e],queryFn:async({signal:r})=>c(`/api/admin/site-configurations?spaceId=${e}`,r),refetchOnWindowFocus:!1,retryOnMount:!1,retry:!1})},52744:(e,r,t)=>{t.d(r,{a:()=>n});async function n(e,r){return(await fetch(`/api/datastore${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}},62921:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(95155),o=t(69730),a=t.n(o),s=t(12115),i=t(35208);let u=(0,s.forwardRef)(({className:e,size:r,selectClassName:t,children:o,...s},u)=>(0,n.jsx)("div",{className:a()("dropdown-wrapper",{"dropdown-wrapper-small":r===i.x0Q.SMALL,"dropdown-wrapper-tiny":r===i.x0Q.TINY},e),children:(0,n.jsx)("select",{ref:u,className:a()(t,"form-dropdown form-input",r===i.x0Q.SMALL&&"form-dropdown-small",r===i.x0Q.TINY&&"form-dropdown-tiny"),...s,children:o})}));u.displayName="Dropdown";let c=u},69660:(e,r,t)=>{t.d(r,{A:()=>
1o});var n=t(73321);let o=()=>{let e=(0,n.useRouter)(),r=(0,n.useSearchParams)();return{queryParams:new URLSearchParams(r?.toString()??""),replaceMultipleQueryParams:r=>{let t=new URL(window.location.href);Object.entries(r).forEach(([e,r])=>{null==r?t.searchParams.delete(e):t.searchParams.set(e,String(r))}),e.replace(t.pathname+t.search)}}}},74276:(e,r,t)=>{t.d(r,{W9:()=>v,W1:()=>g,Ms:()=>p,CK:()=>F,b7:()=>w,yn:()=>m});var n=t(97623),o=t.n(n),a=t(96035),s=t(65482),i=t(57648),u=t(73321),c=t(12115),l=t(61681),y=t(83908);function d(e,r){let t=(0,c.useRef)(void 0);(0,c.useEffect)(()=>{t.current=e},[e]),(0,c.useEffect)(()=>{if("number"==typeof r){let e=setInterval((...e)=>t.current?.(...e),r);return()=>clearInterval(e)}},[r])}var h=t(67763);let f=(0,l.A)()?[]:(0,a.A)([window.location.hash.slice(1)]);function p(){let[e,r]=(0,c.useState)([]);return d(()=>{o()(e,f)||r(f)},80),e}function m(){let e=(0,u.usePathname)(),r=(0,u.useRouter)(),t=(0,u.useSearchParams)();return(0,c.useCallback)((n,o)=>{if(!e)return;let a=new URLSearchParams(t?.toString()??""),s=e=>"string"==typeof e?e.split("?")[0]:e,i=s(o);if(s(a.get(n)??void 0)===i)return;i?a.set(n,i):a.delete(n);let u=a.toString(),c=u?`${e}?${u}`:e;r.replace(c,{scroll:!1})},[e,r,t])}function w(){let e=(0,u.usePathname)(),r=(0,u.useSearchParams)(),t=(0,y.G)(h.Cv),n=(0,y.G)(h.JV),o=null!=e;return(0,c.useMemo)(()=>{if(!o||!e)return;let a=r?.getAll?.("params")??[],s=e.split("/").filter(Boolean),i=a.length>0?a:s.slice(1);return 0===i.length&&s.length<=1?`${t}-${n}`:[`${t}-${n}`,...i].join("/")},[t,o,n,e,r])}function g(e){let[r,t]=(0,c.useState)(!1);return d(()=>{t(f.includes(e))},80),r}function F(e=0){let[r,t]=(0,c.useState)();return(0,c.useEffect)(()=>{if(void 0===r)return;let e=(0,s.A)(f)||"";if(e===window.location.hash.slice(1))return;let t=new URL(window.location.href);t.hash=e,window.history.replaceState({...window.history.state,as:t.pathname+t.search+t.hash},"",t)},[r]),(0,c.useCallback)((r,n)=>{r?f[e]!==n&&(f[e]=n):(0,i.A)(f,n),t(r?n:"")},[e])}function v(e){return`${e}-anchor`}}}]);

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.