PageSourceSearch

https://www.kaspersky.fi/siterenderer/_next/static/chunks/Baseline.MediaCards.fab01bff48811dc2.js

js kaspersky.fi collected 2026-10-02 19:38:14 UTC 7,628 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2391],{51169:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return G}});var s=a(52322),n=a(2784),r=a(12524),i=a.n(r),l=a(44934),o=a(21020),c=a(4884),d=a(40357),u=a(68453),h=a(20302),_=a(49331),m=a(34063),b=a.n(m),g=e=>{let{label:t,link:a,isExternal:r,type:i,ariaLabel:m}=e,{mode:g}=(0,n.useContext)(_.Z);if(!t||!a)return null;let x=i===h.JB.primary||!i;return g===h.IK.dark?x?(0,s.jsx)(d.Z,{isExternal:r,href:a,className:b().button,dataAtSelector:l.JN.ctaPrimaryButton,ariaLabel:m,children:t}):(0,s.jsx)(u.Z,{isExternal:r,href:a,className:b().button,dataAtSelector:l.JN.ctaSecondaryButton,ariaLabel:m,children:t}):x?(0,s.jsx)(o.Z,{isExternal:r,href:a,className:b().button,dataAtSelector:l.JN.ctaPrimaryButton,ariaLabel:m,children:t}):(0,s.jsx)(c.Z,{isExternal:r,href:a,className:b().button,dataAtSelector:l.JN.ctaSecondaryButton,ariaLabel:m,children:t})},x=a(89043),T=a(89687),C=a(22119),p=a(35003),M=a(49864),f=a(70877),j=a(67843),v=a(67743),S=a(35395),Z=a(10755),w=a(71202),k=a(34289),y=a(95196),N=a(77362),E=e=>{let{mode:t}=(0,n.useContext)(_.Z);return t===h.IK.dark?(0,s.jsx)(N.Z,{...e,isDarkMode:!0}):(0,s.jsx)(y.Z,{...e})},H=a(92862),B=a(10635),I=a.n(B),A=a(91433),K=a.n(A);let J={[p.Yj]:I(),[M.WI]:I()};var L=e=>{let{pluginStyle:t,title:a,subtitle:r,sectionID:l,tabs:o,defaultActiveTabNumber:d=0,tabsAriaLabel:u,isMasthead:m,gridView:b=!1,buttonText:p,showCardsNumber:y}=e,{mode:N,theme:B,themeClassName:I,modeClassName:A}=(0,n.useContext)(_.Z),{isMobile:L,isTablet:W}=(0,n.useContext)(w.ZP),D=(0,n.useRef)(),[G,P]=(0,n.useState)(+d||0),[Y,F]=(0,n.useState)(1),O=(0,n.useCallback)(e=>{e>=0&&P(e)},[]),{tabsAnchorProps:R,changeHash:z}=(0,j.Z)(o,O),Q=(0,n.useCallback)(e=>{P(e),z(e)},[z]),U=(0,n.useMemo)(()=>o&&o.length>0&&o[G].cards,[G,o]),q=(0,n.useMemo)(()=>o&&o.length>0&&o[G].buttons,[G,o]),V=L?!b:B===h.C6.ent||o&&o.length>0&&o[G].layoutType===H.yP.carousel,X=!L&&B!==h.C6.ent&&o&&o.length>0&&o[G].layoutType===H.yP.grid,$=o&&o.length>0&&o[G].carouselCardWidth||"",ee=(0,n.useMemo)(()=>{if(!U||0===U.length||V)return[];let e=[];return X&&(e=U.map(e=>W?{...e,cardWidth:e.cardWidth!==H.M0.oneThird?H.M0.twoThirds:e.cardWidth}:{...e})),e},[U,X,V,W]),et=(0,n.useMemo)(()=>{let e=(Object.values(H.M0).includes("".concat($))?$:H.M0.half)===H.M0.half?H.YE:H.Ab;return{showDots:!0,breakpoints:{mobile:{slidesToShow:H.HZ,showArrows:!1,min:0,max:x.ub-1},tablet:{slidesToShow:H.YE,showArrows:!1,min:x.ub,max:x.YC-1},desktop:{slidesToShow:e,showArrows:!0,min:x.YC,max:1/0}}}},[$]),ea=V&&U&&U.length>0?U.map(e=>{let t;let{cardType:a}=e;return t=W||L?H.M0.oneThird:Object.values(H.M0).includes("".concat($))?$:H.M0.half,{...e,cardWidth:t,cardType:B===h.C6.ent?H.WK.text:a}}):[],es=(0,n.useMemo)(()=>!!V&&ee.flat().some(e=>!!e.tag),[ee,V]),en=o&&o.length>1,er=(0,n.useMemo)(()=>{if(o&&o.length>0&&o[G])return L&&o[G].imageCustomHeightMobile?o[G].imageCustomHeightMobile:W&&o[G].imageCustomHeightTablet?o[G].imageCustomHeightTablet:W||L||!o[G].imageCustomHeightDesktop?void 0:o[G].imageCustomHeightDesktop},[o,G,W,L]),ei=(0,n.useMemo)(()=>p&&y&&U&&U.length>y?[...U.slice(0,Y*y)]:U&&U.length>0?[...U]:[],[y,U,p,Y]),el=p&&y&&U&&U.length>ei.length,eo=(0,n.useCallback)(()=>{F(e=>e+1)},[]);return(0,n.useEffect)(()=>{D.current&&D.current.goToSlide(0)},[G]),(0,s.jsxs)(S.Z,{children:[l&&(0,s.jsx)(T.Z,{id:l}),(0,s.jsx)(Z.Z,{pluginStyle:t,children:(0,s.jsxs)("div",{className:i()(K().container,K()[I]||null,K()[A]),children:[(0,s.jsxs)("div",{className:K().inner,children:[(0,s.jsx)(f.Z,{title:a,subtitle:r,isMasthead:m,isDarkMode:N===h.IK.dark}),en&&(0,s.jsxs)(s.Fragment,{children:[R&&(0,s.jsx)(T.Z,{...R}),(0,s.jsx)(E,{ariaLabel:u,items:o&&o.length>0?o.map(e=>({title:e.title})):[],activeTab:G,onChange:Q,className:K().tabs})]})]}),(0,s.jsxs)(v.Z,{tabIndex:G,hasTabs:en,children:[(0,s.jsxs)(C.Z,{children:[V&&(0,s.jsx)("div",{className:K().carousel,children:(0,s.jsx)(M.ZP,{settings:et,classes:J,sliderRef:D,children:ea.map((e,t)=>(0,n.createElement)(k.Z,{...e,key:"carousel-".concat(t),isCarouselCard:!0,hasTag:es,imageCustomHeight:er}))})}),(0,s.jsx)("div",{className:i()(K().desktop,K().inner),children:X&&!L&&(0,s.jsx)("div",{className:K().grid,children:ee.map((e,t)=>(0,n.createElement)(k.Z,{...e,key:"grid-".concat(t),imageCustomHeight:er}))})})]}),(0,s.jsx)("div",{className:i()(K().mobile,K().inner),children:b&&L&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:K().grid,children:ei.map((e,t)=>(0,n.createElement)(k.Z,{...e,key:"grid-".concat(t),imageCustomHeight:er,gridView:!0}))}),el&&(0,s.jsx)(c.Z,{className:K().moreButton,onClick:eo,children:p})]})}),q&&q.length>0&&(0,s.jsx)("div",{className:K().buttons,children:q.map((e,t)=>(0,n.createElement)(g,{...e,key:t}))})]})]})})]})},W=a(30986),D=a(40902);function G(e){let{data:t,pluginStyle:a,pluginData:n,_pluginIndex:r,_componentKey:i,_schema:l}=e,{theme:o,...c}=t||{},{display:d,pluginId:u}=n||{},{css:h,anchorId:_,crossPlatformIndent:m}=(0,D.B)(a,null==t?void 0:t.sectionID);
1return(0,s.jsx)(W.Z,{anchorId:_,crossPlatformIndent:m,display:"none"!==d,toggleKey:u,theme:o,wrapSwitcher:!0,wrapTheme:!0,pluginIndex:r,componentKey:i,schema:l,isBackgroundPreload:null==t?void 0:t.isMasthead,children:(0,s.jsx)(L,{...c,pluginStyle:h})})}},95196:function(e,t,a){"use strict";var s=a(52322),n=a(23271),r=a(14556),i=a(79421),l=a(70397),o=a(4462),c=a.n(o),d=a(44228),u=a.n(d);let h={[l.y]:c(),[i.x]:c(),[n.W]:u()};t.Z=e=>(0,s.jsx)(r.Z,{...e,classes:h})},77362:function(e,t,a){"use strict";var s=a(52322),n=a(2784),r=a(575),i=a(23271),l=a(14556),o=a(79421),c=a(70397),d=a(28144),u=a.n(d),h=a(12590),_=a.n(h);let m={[c.y]:u(),[o.x]:u(),[i.W]:_()};t.Z=e=>{let{classes:t,...a}=e,i=(0,n.useMemo)(()=>(0,r.ze)(m,t),[t]);return(0,s.jsx)(l.Z,{...a,classes:i||{}})}},67843:function(e,t,a){"use strict";var s=a(2784),n=a(12060);t.Z=(e,t,a)=>{let{isSiteEditor:r}=(0,s.useContext)(n.Z),[i,l]=(0,s.useState)(!1),[o,c]=(0,s.useState)(),d=(0,s.useCallback)(()=>{let s=decodeURIComponent(window.location.hash.substring(1)),n="function"==typeof a?a(s):s;if(n&&e&&e.length){let a=e.findIndex(e=>n&&e.name===n);-1!==a&&(c({id:n}),t&&t(a))}},[a,t,e]),u=(0,s.useCallback)(t=>{i&&e&&e.length>t&&!r&&window.history.pushState(null,"",e[t].name?"#".concat(e[t].name||""):"#")},[i,e,r]);return(0,s.useEffect)(()=>(r||d(),l(!0),r||window.addEventListener("hashchange",d),()=>window.removeEventListener("hashchange",d)),[d,r]),{tabsAnchorProps:o,changeHash:u}}},34063:function(e){e.exports={button:"Button_button__F1jcg"}},10635:function(e){e.exports={kslider:"KSlider_kslider__byRhJ",inner:"KSlider_inner__JjSJC",dots:"KSlider_dots__wy2mu",item:"KSlider_item__NxNYp"}},91433:function(e){e.exports={container:"MediaCards_container__YdaDA",inner:"MediaCards_inner__IhSeH",tabs:"MediaCards_tabs__Hj5Bp",group:"MediaCards_group__zgd83",carousel:"MediaCards_carousel__SAhE1",arrow:"MediaCards_arrow__coSgA",buttons:"MediaCards_buttons__1ci6G",grid:"MediaCards_grid__8Iofe",desktop:"MediaCards_desktop__liSTu",moreButton:"MediaCards_moreButton__hrwF6",mobile:"MediaCards_mobile__xiTFn"}},4462:function(e){e.exports={content:"GreenTabs_content__TSFxz",tabs:"GreenTabs_tabs__4OEh2",activeTabText:"GreenTabs_activeTabText__Qv_xB",tab:"GreenTabs_tab__HgGyr",activeTab:"GreenTabs_activeTab__JtXnK",tabSeparator:"GreenTabs_tabSeparator__OoMJj"}},28144:function(e){e.exports={content:"TealTabs_content__hgHQN",isLightMode:"TealTabs_isLightMode__9Z9MM",tabs:"TealTabs_tabs__NdOwE",activeTabText:"TealTabs_activeTabText__Q5nlj",tab:"TealTabs_tab__vDqW3",activeTab:"TealTabs_activeTab__v8U2f",tabSeparator:"TealTabs_tabSeparator__xC9Ma"}}}]);

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.