PageSourceSearch

https://www.dealguru.se/_next/static/chunks/865-50be87e69bfe8130.js

js dealguru.se collected 2026-10-08 06:29:57 UTC 11,778 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[865],{19545:function(e,t,n){var r=n(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=r.useState,o=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=u({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&s({inst:i})},[e,n,t]),o(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},97508:function(e,t,n){e.exports=n(19545)},46741:function(e,t,n){n.d(t,{B:function(){return g},I:function(){return R},O:function(){return c},S:function(){return J},U:function(){return l},a:function(){return f},b:function(){return o},c:function(){return $},d:function(){return z},e:function(){return s},f:function(){return B},g:function(){return Z},i:function(){return w},j:function(){return q},m:function(){return d},n:function(){return N},o:function(){return M},r:function(){return L},s:function(){return A},t:function(){return T},u:function(){return V},z:function(){return O}});var r=n(2265),i=n(95148),u=Object.prototype.hasOwnProperty;let o=new WeakMap,a=()=>{},l=a(),c=Object,s=e=>e===l,f=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),g=e=>f(e.then),h={},v={},p="undefined",w=typeof window!=p,y=typeof document!=p,b=w&&"Deno"in window,m=()=>w&&typeof window.requestAnimationFrame!=p,O=(e,t)=>{let n=o.get(e);return[()=>!s(t)&&e.get(t)||h,r=>{if(!s(t)){let i=e.get(t);t in v||(v[t]=i),n[5](t,d(i,r),i||h)}},n[6],()=>!s(t)&&t in v?v[t]:!s(t)&&e.get(t)||h]},S=!0,[E,_]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],k={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{S=!0,e()},n=()=>{S=!1};
1return E("online",t),E("offline",n),()=>{_("online",t),_("offline",n)}}},R=!r.useId,L=!w||b,T=e=>m()?window.requestAnimationFrame(e):setTimeout(e,1),V=L?r.useEffect:r.useLayoutEffect,j="undefined"!=typeof navigator&&navigator.connection,D=!L&&j&&(["slow-2g","2g"].includes(j.effectiveType)||j.saveData),C=new WeakMap,x=e=>c.prototype.toString.call(e),I=(e,t)=>e==="[object ".concat(t,"]"),P=0,U=e=>{let t,n;let r=typeof e,i=x(e),u=I(i,"Date"),o=I(i,"RegExp"),a=I(i,"Object");if(c(e)!==e||u||o)t=u?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=C.get(e))return t;if(t=++P+"~",C.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=U(e[n])+",";C.set(e,t)}if(a){t="#";let r=c.keys(e).sort();for(;!s(n=r.pop());)s(e[n])||(t+=n+":"+U(e[n])+",");C.set(e,t)}}return t},A=e=>{if(f(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?U(e):"",t]},F=0,M=()=>++F;async function N(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,u,a,c]=t,h=d({populateCache:!0,throwOnError:!0},"boolean"==typeof c?{revalidate:c}:c||{}),v=h.populateCache,p=h.rollbackOnError,w=h.optimisticData,y=e=>"function"==typeof p?p(e):!1!==p,b=h.throwOnError;
1if(f(u)){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&u(r.get(t)._k)&&e.push(t);return Promise.all(e.map(m))}return m(u);async function m(e){let n;let[u]=A(e);if(!u)return;let[c,d]=O(r,u),[p,m,S,E]=o.get(r),_=()=>{let t=p[u];return(f(h.revalidate)?h.revalidate(c().data,e):!1!==h.revalidate)&&(delete S[u],delete E[u],t&&t[0])?t[0](i.QQ).then(()=>c().data):c().data};if(t.length<3)return _();let k=a,R=!1,L=M();m[u]=[L,0];let T=!s(w),V=c(),j=V.data,D=V._c,C=s(D)?j:D;if(T&&d({data:w=f(w)?w(C,j):w,_c:C}),f(k))try{k=k(C)}catch(e){n=e,R=!0}if(k&&g(k)){if(k=await k.catch(e=>{n=e,R=!0}),L!==m[u][0]){if(R)throw n;return k}R&&T&&y(n)&&(v=!0,d({data:C,_c:l}))}if(v&&!R&&(f(v)?d({data:v(k,C),error:l,_c:l}):d({data:k,error:l,_c:l})),m[u][1]=M(),Promise.resolve(_()).then(()=>{d({_c:l})}),R){if(b)throw n;return}return k}}let W=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},Q=(e,t)=>{if(!o.has(e)){let n=d(k,t),r=Object.create(null),u=N.bind(l,e),c=a,s=Object.create(null),f=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},g=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},h=()=>{if(!o.has(e)&&(o.set(e,[r,Object.create(null),Object.create(null),Object.create(null),u,g,f]),!L)){let t=n.initFocus(setTimeout.bind(l,W.bind(l,r,i.N4))),u=n.initReconnect(setTimeout.bind(l,W.bind(l,r,i.l2)));c=()=>{t&&t(),u&&u(),o.delete(e)}}};return h(),[e,u,h,c]}return[e,o.get(e)[4]]},[$,q]=Q(new Map),z=d({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(e,t,n,r,i)=>{let u=n.errorRetryCount,o=i.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(s(u)||!(o>u))&&setTimeout(r,a,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:D?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:D?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(u.call(t,r)&&++i&&!u.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:$,mutate:q,fallback:{}},{isOnline:()=>S,isVisible:()=>{let e=y&&document.visibilityState;return s(e)||"hidden"!==e}}),B=(e,t)=>{let n=d(e,t);if(t){let{use:r,fallback:i}=e,{use:u,fallback:o}=t;r&&u&&(n.use=r.concat(u)),i&&o&&(n.fallback=d(i,o))}return n},J=(0,r.createContext)({}),Z=e=>{let{value:t}=e,n=(0,r.useContext)(J),i=f(t),u=(0,r.useMemo)(()=>i?t(n):t,[i,n,t]),o=(0,r.useMemo)(()=>i?u:B(n,u),[i,n,u]),a=u&&u.provider,c=(0,r.useRef)(l);a&&!c.current&&(c.current=Q(a(o.cache||$),u));let s=c.current;return s&&(o.cache=s[0],o.mutate=s[1]),V(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,r.createElement)(J.Provider,d(e,{value:o}))}},57295:function(e,t,n){n.d(t,{U:function(){return r}});let r="$inf$"},95148:function(e,t,n){n.d(t,{N4:function(){return r},QQ:function(){return u},aU:function(){return o},l2:function(){return i}});let r=0,i=1,u=2,o=3},14025:function(e,t,n){n.d(t,{ko:function(){return d},s6:function(){return f},xD:function(){return g}});var r=n(46741),i=n(57295),u=n(2265);let o=r.i&&window.__SWR_DEVTOOLS_USE__,a=o?window.__SWR_DEVTOOLS_USE__:[],l=e=>(0,r.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],c=()=>(0,r.m)(r.d,(0,u.useContext)(r.S)),s=a.concat(e=>(t,n,u)=>{let o=n&&((...e)=>{let[u]=(0,r.s)(t),[,,,o]=r.b.get(r.c);if(u.startsWith(i.U))return n(...e);let a=o[u];return(0,r.e)(a)?n(...e):(delete o[u],a)});return e(t,o,u)}),f=e=>function(...t){let n=c(),[i,u,o]=l(t),a=(0,r.f)(n,o),f=e,{use:d}=a,g=(d||[]).concat(s);for(let e=g.length;e--;)f=g[e](f);return f(i,u||a.fetcher||null,a)},d=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},g=(e,t)=>(...n)=>{let[r,i,u]=l(n),o=(u.use||[]).concat(t);return e(r,i,{...u,use:o})};o&&(window.__SWR_DEVTOOLS_REACT__=u)},865:function(e,t,n){n.d(t,{ZP:function(){return f}});var r=n(2265),i=n(97508),u=n(46741),o=n(95148),a=n(14025);let l=()=>{};l(),new WeakMap;let c=r.use||(e=>
1{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),s={dedupe:!0};u.O.defineProperty(u.g,"defaultValue",{value:u.d});let f=(0,a.s6)((e,t,n)=>{let{cache:l,compare:f,suspense:d,fallbackData:g,revalidateOnMount:h,revalidateIfStale:v,refreshInterval:p,refreshWhenHidden:w,refreshWhenOffline:y,keepPreviousData:b}=n,[m,O,S,E]=u.b.get(l),[_,k]=(0,u.s)(e),R=(0,r.useRef)(!1),L=(0,r.useRef)(!1),T=(0,r.useRef)(_),V=(0,r.useRef)(t),j=(0,r.useRef)(n),D=()=>j.current,C=()=>D().isVisible()&&D().isOnline(),[x,I,P,U]=(0,u.z)(l,_),A=(0,r.useRef)({}).current,F=(0,u.e)(g)?(0,u.e)(n.fallback)?u.U:n.fallback[_]:g,M=(e,t)=>{for(let n in A)if("data"===n){if(!f(e[n],t[n])&&(!(0,u.e)(e[n])||!f(Z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},N=(0,r.useMemo)(()=>{let e=!!_&&!!t&&((0,u.e)(h)?!D().isPaused()&&!d&&!1!==v:h),n=t=>{let n=(0,u.m)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=x(),i=U(),o=n(r),a=r===i?o:n(i),l=o;return[()=>{let e=n(x());return M(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]},[l,_]),W=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>P(_,(t,n)=>{M(n,t)||e()}),[l,_]),N[0],N[1]),Q=!R.current,$=m[_]&&m[_].length>0,q=W.data,z=(0,u.e)(q)?F&&(0,u.B)(F)?c(F):F:q,B=W.error,J=(0,r.useRef)(z),Z=b?(0,u.e)(q)?(0,u.e)(J.current)?z:J.current:q:z,G=(!$||!!(0,u.e)(B))&&(Q&&!(0,u.e)(h)?h:!D().isPaused()&&(d?!(0,u.e)(z)&&v:(0,u.e)(z)||v)),H=!!(_&&t&&Q&&G),K=(0,u.e)(W.isValidating)?H:W.isValidating,X=(0,u.e)(W.isLoading)?H:W.isLoading,Y=(0,r.useCallback)(async e=>{let t,r;let i=V.current;if(!_||!i||L.current||D().isPaused())return!1;let a=!0,l=e||{},c=!S[_]||!l.dedupe,s=()=>u.I?!L.current&&_===T.current&&R.current:_===T.current,d={isValidating:!1,isLoading:!1},g=()=>{I(d)},h=()=>{let e=S[_];e&&e[1]===r&&delete S[_]},v={isValidating:!0};(0,u.e)(x().data)&&(v.isLoading=!0);try{if(c&&(I(v),n.loadingTimeout&&(0,u.e)(x().data)&&setTimeout(()=>{a&&s()&&D().onLoadingSlow(_,n)},n.loadingTimeout),S[_]=[i(k),(0,u.o)()]),[t,r]=S[_],t=await t,c&&setTimeout(h,n.dedupingInterval),!S[_]||S[_][1]!==r)return c&&s()&&D().onDiscarded(_),!1;d.error=u.U;let e=O[_];if(!(0,u.e)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return g(),c&&s()&&D().onDiscarded(_),!1;let o=x().data;d.data=f(o,t)?o:t,c&&s()&&D().onSuccess(t,_,n)}catch(n){h();let e=D(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,c&&s()&&(e.onError(n,_,e),(!0===t||(0,u.a)(t)&&t(n))&&(!D().revalidateOnFocus||!D().revalidateOnReconnect||C())&&e.onErrorRetry(n,_,e,e=>{let t=m[_];t&&t[0]&&t[0](o.aU,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return a=!1,g(),!0},[_,l]),ee=(0,r.useCallback)((...e)=>(0,u.n)(l,T.current,...e),[]);if((0,u.u)(()=>{V.current=t,j.current=n,(0,u.e)(q)||(J.current=q)}),(0,u.u)(()=>{if(!_)return;let e=Y.bind(u.U,s),t=0;D().revalidateOnFocus&&(t=Date.now()+D().focusThrottleInterval);let n=(0,a.ko)(_,m,(n,r={})=>{if(n==o.N4){let n=Date.now();D().revalidateOnFocus&&n>t&&C()&&(t=n+D().focusThrottleInterval,e())}else if(n==o.l2)D().revalidateOnReconnect&&C()&&e();else if(n==o.QQ)return Y();else if(n==o.aU)return Y(r)});return L.current=!1,T.current=_,R.current=!0,I({_k:k}),G&&!S[_]&&((0,u.e)(z)||u.r?e():(0,u.t)(e)),()=>{L.current=!0,n()}},[_]),(0,u.u)(()=>{let e;function t(){let t=(0,u.a)(p)?p(x().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!x().error&&(w||D().isVisible())&&(y||D().isOnline())?Y(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,w,y,_]),(0,r.useDebugValue)(Z),d&&(0,u.e)(z)&&_){if(!u.I&&u.r)throw Error("Fallback data is required when using Suspense in SSR.");V.current=t,j.current=n,L.current=!1;let e=E[_];if((0,u.e)(e)||c(ee(e)),(0,u.e)(B)){let e=Y(s);(0,u.e)(Z)||(e.status="fulfilled",e.value=!0),c(e)}else throw B}return{mutate:ee,get data(){return A.data=!0,Z},get error(){return A.error=!0,B},get isValidating(){return A.isValidating=!0,K},get isLoading(){return A.isLoading=!0,X}}})}}]);
2//# sourceMappingURL=865-50be87e69bfe8130.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.