1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5991],{5151:function(t,n,e){"use strict";e.d(n,{Z:function(){return r}});var i=e(5893),a=e(8512),c=e(297);function r(t){var n=t.title,e=t.content,r=t.className;if(!Array.isArray(e))return null;if(0===e.length)return null;var s=!1,o=!1,l=!0,u=!1,d=void 0;try{for(var f,m=e[Symbol.iterator]();!(l=(f=m.next()).done);l=!0){f.value.rating?s=!0:o=!0}}catch(h){u=!0,d=h}finally{try{l||null==m.return||m.return()}finally{if(u)throw d}}var v={title:"",link:"",url:""};return s&&o?(v.title="Top tre\u015bci",v.link="Zobacz wszystkie newsy",v.url="/news"):s?(v.title="Top recenzje",v.link="Zobacz wszystkie recenzje",v.url="/recenzje"):(v.title="Top newsy",v.link="Zobacz wszystkie newsy",v.url="/news"),n&&(v.title=n),(0,i.jsxs)("aside",{className:"top-frame relative".concat(r?" "+r:""),children:[(0,i.jsx)("div",{className:"black-box"}),(0,i.jsxs)("h2",{className:"title flex-left",children:[(0,i.jsx)(a.Z,{icon:"icon-top"}),v.title]}),(0,i.jsx)("div",{className:"row",children:e.map((function(t,n){return(0,i.jsx)(c.Z,{item:t},n)}))})]})}},297:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var i=e(5893),a=e(7294),c=e(9424),r=e(3306);function s(t){var n=t.item,e=t.hidden,s=t.h3,o=(0,a.useState)(0),l=o[0],u=o[1],d=(0,a.useRef)(null),f=function(){var t=0;d.current&&(t=d.current.clientWidth),u(t)};return(0,a.useEffect)((function(){return window.addEventListener("resize",f),f(),function(){window.removeEventListener("resize",f)}}),[]),(0,i.jsx)("div",{className:"col-12 col-sm-6 col-lg-3 top-item"+(e?" hidden":""),children:(0,i.jsxs)("a",{href:n.url,className:"limiter","aria-label":"Link do artyku\u0142u ".concat(n.title),children:[(0,i.jsx)(c.Z,{className:"miniature relative",image:"https://images.gram.pl/".concat(n.article?"article":"news","/top/").concat((0,r.k4)(n.image)),innerRef:d,style:{height:"".concat(l,"px")},children:(0,i.jsx)("div",{className:"anchored",children:n.comments>0&&(0,i.jsx)("div",{className:"comment-counter small",children:n.comments})})}),s?(0,i.jsx)("h3",{className:"title",children:n.title}):(0,i.jsx)("div",{className:"title",children:n.title}),(0,i.jsx)("div",{className:"date",children:n.date})]})})}},5342:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(5893);function a(t){var n=t.className,e=void 0===n?"":n,a=t.children,c="ad-wrapper mock-off column ".concat(e);return(0,i.jsx)("div",{className:c,children:a})}},756:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(5893);function a(t){var n=t.id,e=t.top,a=t.disableMock,c=t.setHeight,r=void 0===c||c,s=t.children;return(0,i.jsx)("div",{className:"ad-wrapper ".concat(e?"top":""," ").concat(a?"mock-off":""," ").concat(r?"":"no-height"),children:(0,i.jsx)("div",{id:n,className:"w2g",children:s})})}},9424:function(t,n,e){"use strict";e.d(n,{Z:function(){return u}});var i=e(6042),a=e(9396),c=e(5893),r=e(7294),s=e(2732),o=e.n(s),l=e(6025);function u(t){var n=t.image,e=t.style,s=t.className,u=t.children,d=t.innerRef,f=t.onLoad,m=(0,r.useState)(!0),v=m[0],h=m[1],g=(0,r.useState)(!1),p=g[0],_=g[1],b=(0,r.useRef)(null);return(0,r.useEffect)((function(){document.lazyLoadInstance||(document.lazyLoadInstance=new(o())(l.Z))}),[]),(0,r.useEffect)((function(){var t;null===(t=document.lazyLoadInstance)||void 0===t||t.update()})),v?s+=" image-loading":p?s+=" image-error":(e=e||{},e=(0,a.Z)((0,i.Z)({},e),{backgroundImage:"url(".concat(n,")")})),(0,c.jsxs)("div",{className:s,style:e,ref:d,children:[v&&(0,c.jsx)("img",{className:"lazy",style:{width:"1px",height:"1px"},"data-src":n,onLoad:function(){h(!1),null===f||void 0===f||f()},onError:function(){h(!1),_(!0)},alt:"",ref:b}),u]})}},1392:function(t,n,e){"use strict";e.d(n,{Z:function(){return l}});var i=e(5893),a=e(7294),c=e(2236);function r(t){var n=t.score,e=t.small,a=t.contrast,c=parseInt(n),r={class:c<=3?" bad":c>=10?" full":"",icon:"icon-thumb-"+(c>3?"up":"down"),score:"Tw\xf3j wynik: "+n};return"psychotest"===n.toLowerCase()&&(r.class=" psychotest",r.icon="icon-checkbox",r.score="Psychotest"),r.class+=(e?" small":"")+(a?" contrast":""),e&&(r.icon+=" up"),(0,i.jsxs)("div",{className:"tag quiz".concat(r.class),children:[(0,i.jsx)("span",{className:r.icon}),r.score]})}var s=e(9424),o=e(3306);function l(t){var n=t.item,e=t.isVideo,l=(0,a.useState)(0),u=l[0],d=l[1],f=(0,a.useState)(!0),m=f[0],v=f[1],h=(0,a.useRef)(null);(0,a.useEffect)((function(){return window.addEventListener("resize",g),g(),function(){window.removeEventListener("resize",g)}}),[]);var g=function(){var t=0;h.current&&(t=h.current.clientWidth);var n=16/9,e=t<=540;e&&(n=4/3),window.innerWidth<576&&(n=1),d(Math.round(t/n)),v(e)},p=m?" small":"";return(0,i.jsx)("a",{href:n.url,className:"video"+p,children:(0,i.jsxs)(s.Z,{className:"miniature",image:"https://images.gram.pl/video/miniature/".concat(m?"small":"big","/").concat((0,o.k4)(n.image)),innerRef:h,style:{height:u},children:[(0,i.jsxs)("div",{className:"left",children:[n.hot&&(0,i.jsx)(c.Z,{contrast:!0,small:m}),"0"!==n.score&&"undefined"!==typeof n.score&&(0,i.jsx)(r,{score:n.score,contrast:!0,small:m})]}),n.comments>0&&(0,i.jsx)("div",{className:"comment-counter"+p,children:n.comments}),(0,i.jsxs)("div",{className:"bottom",children:[(0,i.jsx)("div",{className:"author",children:(0,o.aV)(n.author)}),(0,i.jsxs)("div",{className:"title",children:[e&&(0,i.jsx)("div",{className:"tag-video"}),(0,o.Hp)((0,o.aV)((0,o.Rp)(n.title)),80)]}),(0,i.jsx)("div",{className:"date",children:n.date.includes("T")?(0,o.R2)(n.date):n.date})]})]})})}},8512:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(5893);function a(t){var n=t.icon,e=t.compact;return(0,i.jsx)("div",{className:"i-box right flex-center"+(e?" compact":""),children:(0,i.jsx)("span",{className:n+" i-24"})})}},2236:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(5893);function a(t){var n=t.small,e=t.contrast;return(0,i.jsxs)("div",{className:"tag hot".concat(n?" small":"").concat(e?" contrast":""),children:[(0,i.jsx)("span",{className:"icon-hot".concat(n?" up":"")}),"HOT"]})}},6025:function(t,n){"use strict";n.Z={elements_selector:".lazy",load_delay:100,auto_unobserve:!0}},2732:function(t){t.exports=function(){"use strict";function t(){return(t=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}var n="undefined"!=typeof window,e=n&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),i=n&&"IntersectionObserver"in window,a=n&&"classList"in document.createElement("p"),c=n&&window.devicePixelRatio>1,r={elements_selector:"img",container:e||n?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,cancel_on_exit:!1,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},s=function(n){return t({},r,n)},o=function(t,n){var e,i=new t(n);try{e=new CustomEvent("LazyLoad::Initialized",{detail:{instance:i}})}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:i})}window.dispatchEvent(e)},l=function(t,n){return t.getAttribute("data-"+n)},u=function(t,n,e){var i="data-"+n;null!==e?t.setAttribute(i,e):t.removeAttribute(i)},d=function(t){return l(t,"ll-status")},f=function(t,n){return u(t,"ll-status",n)},m=function(t){return f(t,null)},v=function(t){return null===d(t)},h=function(t){return"delayed"===d(t)},g=["loading","applied","loaded","error"],p=function(t){return g.indexOf(d(t))>-1},_=function(t,n){return u(t,"ll-timeout",n)},b=function(t){return l(t,"ll-timeout")},x=function(t,n,e,i){t&&(void 0===i?void 0===e?t(n):t(n,e):t(n,e,i))},y=function(t,n){a?t.classList.add(n):t.className+=(t.className?" ":"")+n},w=function(t,n){a?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\s+)"+n+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},N=function(t){return t.llTempImage},E=function(t,n,e){if(e){var i=e._observer;i&&n.auto_unobserve&&i.unobserve(t)}},k=function(t){t&&(t.loadingCount+=1)},j=function(t){for(var n,e=[],i=0;n=t.children[i];i+=1)"SOURCE"===n.tagName&&e.push(n);return e},z=function(t,n,e){e&&t.setAttribute(n,e)},L=function(t,n){t.removeAttribute(n)},I=function(t){return!!t.llOriginalAttrs},A=function(t){if(!I(t)){var n={};n.src=t.getAttribute("src"),n.srcset=t.getAttribute("srcset"),n.sizes=t.getAttribute("sizes"),t.llOriginalAttrs=n}},Z=function(t){if(I(t)){var n=t.llOriginalAttrs;z(t,"src",n.src),z(t,"srcset",n.srcset),z(t,"sizes",n.sizes)}},C=function(t,n){z(t,"sizes",l(t,n.data_sizes)),z(t,"srcset",l(t,n.data_srcset)),z(t,"src",l(t,n.data_src))},O=function(t){L(t,"src"),L(t,"srcset"),L(t,"sizes")}
1,R=function(t,n){var e=t.parentNode;e&&"PICTURE"===e.tagName&&j(e).forEach(n)},T={IMG:function(t,n){R(t,(function(t){A(t),C(t,n)})),A(t),C(t,n)},IFRAME:function(t,n){z(t,"src",l(t,n.data_src))},VIDEO:function(t,n){j(t).forEach((function(t){z(t,"src",l(t,n.data_src))})),z(t,"poster",l(t,n.data_poster)),z(t,"src",l(t,n.data_src)),t.load()}},M=function(t,n,e){var i=T[t.tagName];i&&(i(t,n),k(e),y(t,n.class_loading),f(t,"loading"),x(n.callback_loading,t,e),x(n.callback_reveal,t,e))},S=["IMG","IFRAME","VIDEO"],V=function(t){t&&(t.loadingCount-=1)},G=function(t,n){!n||n.toLoadCount||n.loadingCount||x(t.callback_finish,n)},H=function(t,n,e){t.addEventListener(n,e),t.llEvLisnrs[n]=e},P=function(t,n,e){t.removeEventListener(n,e)},D=function(t){return!!t.llEvLisnrs},F=function(t){if(D(t)){var n=t.llEvLisnrs;for(var e in n){var i=n[e];P(t,e,i)}delete t.llEvLisnrs}},W=function(t,n,e){!function(t){delete t.llTempImage}(t),V(e),w(t,n.class_loading),E(t,n,e)},q=function(t,n,e){var i=N(t)||t;D(i)||function(t,n,e){D(t)||(t.llEvLisnrs={}),H(t,"load",n),H(t,"error",e),"VIDEO"===t.tagName&&H(t,"loadeddata",n)}(i,(function(a){!function(t,n,e,i){W(n,e,i),y(n,e.class_loaded),f(n,"loaded"),x(e.callback_loaded,n,i),G(e,i)}(0,t,n,e),F(i)}),(function(a){!function(t,n,e,i){W(n,e,i),y(n,e.class_error),f(n,"error"),x(e.callback_error,n,i),G(e,i)}(0,t,n,e),F(i)}))},U=function(t){t&&(t.toLoadCount-=1)},$=function(t,n,e){!function(t){t.llTempImage=document.createElement("img")}(t),q(t,n,e),function(t,n,e){var i=l(t,n.data_bg),a=l(t,n.data_bg_hidpi),r=c&&a?a:i;r&&(t.style.backgroundImage='url("'.concat(r,'")'),N(t).setAttribute("src",r),k(e),y(t,n.class_loading),f(t,"loading"),x(n.callback_loading,t,e),x(n.callback_reveal,t,e))}(t,n,e),function(t,n,e){var i=l(t,n.data_bg_multi),a=l(t,n.data_bg_multi_hidpi),r=c&&a?a:i;r&&(t.style.backgroundImage=r,y(t,n.class_applied),f(t,"applied"),E(t,n,e),x(n.callback_applied,t,e))}(t,n,e)},B=function(t,n,e){!function(t){return S.indexOf(t.tagName)>-1}(t)?$(t,n,e):function(t,n,e){q(t,n,e),M(t,n,e)}(t,n,e),U(e),G(n,e)},J=function(t){var n=b(t);n&&(h(t)&&m(t),clearTimeout(n),_(t,null))},K=function(t,n,e,i){"IMG"===t.tagName&&(F(t),function(t){R(t,(function(t){O(t)})),O(t)}(t),function(t){R(t,(function(t){Z(t)})),Z(t)}(t),w(t,e.class_loading),V(i),x(e.callback_cancel,t,n,i),setTimeout((function(){i.resetElementStatus(t,i)}),0))},Q=function(t,n,e,i){x(e.callback_enter,t,n,i),p(t)||(e.load_delay?function(t,n,e){var i=n.load_delay,a=b(t);a||(a=setTimeout((function(){B(t,n,e),J(t)}),i),f(t,"delayed"),_(t,a))}(t,e,i):B(t,e,i))},X=function(t,n,e,i){v(t)||(e.cancel_on_exit&&function(t){return"loading"===d(t)}(t)&&K(t,n,e,i),x(e.callback_exit,t,n,i),e.load_delay&&h(t)&&J(t))},Y=["IMG","IFRAME"],tt=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},nt=function(t,n,e){t.forEach((function(t){-1!==Y.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),function(t,n,e){q(t,n,e),M(t,n,e),U(e),f(t,"native"),G(n,e)}(t,n,e))})),e.toLoadCount=0},et=function(t){var n=t._settings;i&&!tt(t._settings)&&(t._observer=new IntersectionObserver((function(e){!function(t,n,e){t.forEach((function(t){return function(t){return t.isIntersecting||t.intersectionRatio>0}(t)?Q(t.target,t,n,e):X(t.target,t,n,e)}))}(e,n,t)}),function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}}(n)))},it=function(t){return Array.prototype.slice.call(t)},at=function(t){return t.container.querySelectorAll(t.elements_selector)},ct=function(t){return function(t){return"error"===d(t)}(t)},rt=function(t,n){return function(t){return it(t).filter(v)}(t||at(n))},st=function(t){var n,e=t._settings;(n=at(e),it(n).filter(ct)).forEach((function(t){w(t,e.class_error),m(t)})),t.update()},ot=function(t,e){var i;this._settings=s(t),this.loadingCount=0,et(this),i=this,n&&window.addEventListener("online",(function(t){st(i)})),this.update(e)};return ot.prototype={update:function(t){var n,a,c=this._settings,r=rt(t,c);this.toLoadCount=r.length,!e&&i?tt(c)?nt(r,c,this):(a=r,function(t){t.disconnect()}
1(n=this._observer),function(t,n){n.forEach((function(n){t.observe(n)}))}(n,a)):this.loadAll(r)},destroy:function(){this._observer&&this._observer.disconnect(),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var n=this,e=this._settings;rt(t,e).forEach((function(t){B(t,e,n)}))},resetElementStatus:function(t){!function(t,n){p(t)&&function(t){t&&(t.toLoadCount+=1)}(n),f(t,null)}(t,this)},load:function(t){B(t,this._settings,this)}},ot.load=function(t,n){var e=s(n);B(t,e)},n&&function(t,n){if(n)if(n.length)for(var e,i=0;e=n[i];i+=1)o(t,e);else o(t,n)}(ot,window.lazyLoadOptions),ot}()}}]);
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.