1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{32472:function(e,t,s){Promise.resolve().then(s.t.bind(s,65878,23)),Promise.resolve().then(s.t.bind(s,72972,23)),Promise.resolve().then(s.bind(s,15861)),Promise.resolve().then(s.t.bind(s,96948,23)),Promise.resolve().then(s.bind(s,99913)),Promise.resolve().then(s.t.bind(s,41121,23)),Promise.resolve().then(s.bind(s,79085)),Promise.resolve().then(s.t.bind(s,68573,23)),Promise.resolve().then(s.t.bind(s,61491,23)),Promise.resolve().then(s.bind(s,40238)),Promise.resolve().then(s.t.bind(s,6368,23)),Promise.resolve().then(s.t.bind(s,89010,23)),Promise.resolve().then(s.t.bind(s,91630,23)),Promise.resolve().then(s.t.bind(s,35398,23)),Promise.resolve().then(s.t.bind(s,33571,23)),Promise.resolve().then(s.t.bind(s,55541,23)),Promise.resolve().then(s.t.bind(s,35997,23)),Promise.resolve().then(s.t.bind(s,18213,23)),Promise.resolve().then(s.t.bind(s,14061,23)),Promise.resolve().then(s.t.bind(s,76311,23)),Promise.resolve().then(s.t.bind(s,85100,23)),Promise.resolve().then(s.t.bind(s,83627,23)),Promise.resolve().then(s.t.bind(s,20037,23)),Promise.resolve().then(s.t.bind(s,59621,23)),Promise.resolve().then(s.t.bind(s,57236,23)),Promise.resolve().then(s.bind(s,22653)),Promise.resolve().then(s.bind(s,79)),Promise.resolve().then(s.bind(s,10116)),Promise.resolve().then(s.bind(s,85253)),Promise.resolve().then(s.bind(s,42913)),Promise.resolve().then(s.bind(s,46982)),Promise.resolve().then(s.bind(s,33024)),Promise.resolve().then(s.bind(s,75065)),Promise.resolve().then(s.bind(s,89813)),Promise.resolve().then(s.bind(s,63716)),Promise.resolve().then(s.bind(s,17395)),Promise.resolve().then(s.bind(s,84193)),Promise.resolve().then(s.bind(s,96061)),Promise.resolve().then(s.bind(s,77224)),Promise.resolve().then(s.bind(s,8177)),Promise.resolve().then(s.bind(s,20555)),Promise.resolve().then(s.bind(s,90330)),Promise.resolve().then(s.bind(s,32908)),Promise.resolve().then(s.bind(s,49162)),Promise.resolve().then(s.bind(s,27516)),Promise.resolve().then(s.bind(s,69111)),Promise.resolve().then(s.bind(s,4686)),Promise.resolve().then(s.bind(s,93899)),Promise.resolve().then(s.bind(s,59191)),Promise.resolve().then(s.bind(s,15805)),Promise.resolve().then(s.bind(s,32059)),Promise.resolve().then(s.bind(s,6412)),Promise.resolve().then(s.bind(s,84621)),Promise.resolve().then(s.bind(s,42220)),Promise.resolve().then(s.bind(s,45003)),Promise.resolve().then(s.bind(s,64804)),Promise.resolve().then(s.bind(s,210))},22653:function(e,t,s){"use strict";s.d(t,{default:function(){return a}});var l=s(57437),i=s(99376),r=s(2265),n=s(79);function a(e){let{widgetId:t,height:s,containerId:a}=e,o=(0,i.usePathname)(),d=""!==s&&s?s:"583px",c=""!==s&&s?"false":"true",u=a||"svenskaspel-".concat(t),h="svenskaspel-widget-frame-".concat(t),f="svenskaspel-widget-init-".concat(t);return(0,r.useEffect)(()=>{var e,s;let l="".concat(o,":").concat(t);window.__svsWidgetLastInit=window.__svsWidgetLastInit||{};let i=Date.now();if(i-(window.__svsWidgetLastInit[l]||0)<500)return;window.__svsWidgetLastInit[l]=i;let r=document.getElementById(u);r&&(r.innerHTML=""),null===(e=document.getElementById(f))||void 0===e||e.remove();let n=document.createElement("script");n.id=f,n.text="\n window.svsWidget = window.svsWidget || function() {\n (window.svsWidget.q = window.svsWidget.q || []).push(arguments);\n };\n window.svsWidget('".concat(t,"', '").concat(u,"');\n "),document.body.appendChild(n),null===(s=document.getElementById(h))||void 0===s||s.remove();let a=document.createElement("script");a.id=h,a.src="https://cdn.spelwidgets.se/oddset.min.js",a.async=!0,a.setAttribute("data-responsive","true"),a.setAttribute("data-height",d),a.setAttribute("data-width",""),document.body.appendChild(a)},[o,t,d,c]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{src:"https://track.adform.net/adfserve/?bn=86525284;1x1inv=1;srctype=3;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_50};ord=[timestamp]",width:"0",height:"0"}),(0,l.jsx)(n.default,{bannerName:"SvS - Oddswidget Speltips",action:"view"}),(0,l.jsx)("div",{id:u})]})}},85253:function(e,t,s){"use strict";var l=s(57437),i=s(57099),r=s(13786),n=s(2265),a=s(89087);t.default=e=>{var t;let[s]=(0,a.fP)([i.Q8]),o=s[i.Q8],d=null==o?void 0:null===(t=o.split(","))||void 0===t?void 0:t[0],c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var t;let s=document.createElement("script");s.innerHTML="\n var settings = {\n id: '".concat(e.id,"',\n width: '").concat(e.width,"',\n height: '").concat(e.height,"',\n gdpr_consent: '").concat(d,"',\n numberOfAds: ").concat(e.numberOfAds,",\n }\n var element = document.currentScript || document.querySelectorAll('script')[document.querySelectorAll('script').length-1];\n window.__rpplc = window.__rpplc || [];\n window.__rpplc.push(settings, element);\n "),null===(t=c.current)||void 0===t||t.replaceChildren(s)}
1,[e.numberOfAds,e.width,e.height,e.id,d]),(0,n.useEffect)(()=>{(0,r.sendGTMEvent)({event:"ad_view",ad_type:"readpeak",context:e.context||""})},[]),(0,l.jsx)("div",{ref:c,style:{minHeight:"".concat(e.height,"px")}})}},33024:function(e,t,s){"use strict";var l=s(57437),i=s(13786),r=s(27648),n=s(51772),a=s(51936);t.default=e=>(0,l.jsx)("div",{className:"h-[45px] relative after:content-[''] after:absolute after:h-full after:w-[50px] after:bg-gradient-to-r after:from-transparent after:to-beige after:right-0 after:inset-y-0 after:z-10 after:pointer-events-none before:content-[''] before:absolute before:h-full before:w-[50px] before:bg-gradient-to-l before:from-transparent before:to-beige before:left-0 before:inset-y-0 before:z-10 before:pointer-events-none",children:(0,l.jsx)(n.Z,{pauseOnHover:!0,children:(0,l.jsx)("div",{className:"flex",children:e.articles.filter((e,t,s)=>t===s.findIndex(t=>t.link===e.link)).sort((e,t)=>Number(new Date(t.date))-Number(new Date(e.date))).map((e,t)=>(0,l.jsx)(a.Z,{callback:()=>(0,i.sendGTMEvent)({event:"article_marquee_impression",article_title:e.title,article_url:e.link}),children:(0,l.jsxs)(r.default,{onClick:()=>(0,i.sendGTMEvent)({event:"article_marquee_click",article_title:e.title,article_url:e.link}),href:e.link,className:"bg-white rounded-lg overflow-hidden h-[45px] flex items-center mr-4",children:[(0,l.jsx)("div",{className:"inline-block -skew-x-12 rounded-br-lg bg-red text-white py-2 px-6 -ml-1 font-bold shadow-inner h-full flex-shrink-0",children:(0,l.jsx)("span",{className:"block skew-x-12",children:e.label})}),(0,l.jsx)("span",{className:"font-bold mx-4 line-clamp-1",children:e.title})]})},"article-marquee-".concat(t)))})})})},75065:function(e,t,s){"use strict";var l=s(57437),i=s(99685),r=s(47885),n=s(33145),a=s(27648),o=s(2265),d=s(39172),c=s(54641),u=s(79631);t.default=e=>{var t,s;let h=(0,o.useRef)(null),[f,m]=(0,o.useState)(0),[v,b]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=h.current,t=null==e?void 0:e.children[f],s=t.offsetLeft,l=t.offsetWidth,i=(null==e?void 0:e.offsetWidth)||0;null==e||e.scrollTo({left:s-(i-l)/2,behavior:"smooth"})},[f]),(0,d.Z)(()=>{v||m(t=>(t+1)%e.articles.length)},1e4);let x=e.articles[f];return(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between bg-white rounded-lg overflow-hidden",children:[(0,l.jsx)(u.Z,{title:e.title}),(0,l.jsxs)("div",{className:"space-x-2 flex items-center mr-2",children:[(0,l.jsx)("button",{onClick:()=>{b(!0),m(t=>0===t?e.articles.length-1:t-1)},className:"w-[30px] h-[30px] rounded transition-colors flex items-center justify-center bg-blue-light",children:(0,l.jsx)(c.Z.ChevronDown,{className:"text-white rotate-90"})}),(0,l.jsx)("button",{onClick:()=>{b(!0),m(t=>(t+1)%e.articles.length)},className:"w-[30px] h-[30px] rounded transition-colors flex items-center justify-center bg-blue-light",children:(0,l.jsx)(c.Z.ChevronDown,{className:"text-white -rotate-90"})})]})]}),(0,l.jsxs)(a.default,{href:"".concat((0,i.bv)(x.fields.type)).concat(x.fields.slug),className:"block rounded-lg overflow-hidden bg-white relative",children:[(null===(s=x.fields.image)||void 0===s?void 0:null===(t=s.fields.file)||void 0===t?void 0:t.url)&&(0,l.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,l.jsx)(n.default,{alt:x.fields.image.fields.title||"",fill:!0,priority:!0,src:(0,r.o)(x.fields.image.fields.file.url,{crop:"16:9"}),sizes:(0,r.G)({desktop:"50vw",tablet:"100vw",mobile:"100vw"}),className:"object-cover object-center"})}),(0,l.jsx)("div",{className:"p-4 lg:p-8 space-y-4 bg-blue text-yellow",children:x.fields.title&&(0,l.jsx)("h2",{className:"font-bold text-3xl lg:text-5xl",children:x.fields.title})})]}),(0,l.jsx)("div",{ref:h,className:"flex space-x-2 overflow-auto [&>*]:flex-shrink-0 [&>*]:basis-[calc(50%-0.5rem)] lg:[&>*]:basis-[calc(33.33%-0.5rem)] snap-x snap-proximity [&>*]:snap-start no-scrollbar",children:e.articles.map(e=>{var t,s;let o=(0,i.bv)(e.fields.type);return(0,l.jsxs)(a.default,{className:"bg-white rounded-lg overflow-hidden",href:"".concat(o).concat(e.fields.slug),children:[(null===(s=e.fields.image)||void 0===s?void 0:null===(t=s.fields.file)||void 0===t?void 0:t.url)&&(0,l.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,l.jsx)(n.default,{alt:"",fill:!0,src:(0,r.o)(e.fields.image.fields.file.url,{crop:"16:9"}),sizes:(0,r.G)({desktop:"25vw",tablet:"50vw",mobile:"50vw"}),className:"object-cover object-center"})}),(0,l.jsx)("div",{className:"p-4",children:(0,l.jsx)("h5",{className:"font-bold line-clamp-2",children:e.fields.title})})]},"article-rotator-".concat(e.sys.id))})})]})}},89813:function(e,t,s){"use strict";var l=s(57437),i=s(47885),r=s(33145),n=s(27648),a=s(2265),o=s(54641);t.default=e=>{let{authors:t}=e,s=(0,a.useRef)(null),[d,c]=(0,a.useState)(!1),[u,h]=(0,a.useState)(!1),f=(0,a.useCallback)(()=>{let e=s.current;e&&(c(e.scrollLeft>0),h(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[]);if((0,a.useEffect)(()=>{let e=s.current;if(e)return f(),e.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",f),()=>{e.removeEventListener("scroll",f),window.removeEventListener("resize",f)}},[f]),!t.length)return null;let m=e=>{s.current&&s.current.scrollBy({left:"left"===e?-280:280,behavior:"smooth"})};return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"py-2 relative group/container",children:[(0,l.jsx)("div",{ref:s,className:"flex gap-3 overflow-x-auto no-scrollbar snap-x snap-mandatory",children:t.map(e=>{var t,s;let{author:a,latestArticle:d}=e,c=d?"/nyheter/".concat(d.fields.slug):"/skribenter/".concat(a.fields.slug);return(0,l.jsx)(n.default,{href:c,className:"flex-shrink-0 snap-start w-[220px] rounded-lg overflow-hidden group",children:(0,l.jsxs)("div",{className:"p-2 flex items-start gap-2.5",children:[(0,l.jsx)("div",{className:"w-[44px] h-[44px] flex-shrink-0 rounded-full bg-gradient-to-tr from-blue-light via-blue to-blue-dark p-[2px] transition-transform duration-200 group-hover:scale-110",children:(0,l.jsx)("div",{className:"relative w-full h-full rounded-full bg-white p-[1.5px] overflow-hidden",children:(null===(s=a.fields.image)||void 0===s?void 0:null===(t=s.fields.file)||void 0===t?void 0:t.url)?(0,l.jsx)(r.default,{src:"https:".concat(a.fields.image.fields.file.url),alt:"".concat(a.fields.firstName," ").concat(a.fields.lastName),fill:!0,className:"object-cover object-center rounded-full",sizes:(0,i.G)({mobile:"44px",tablet:"44px",desktop:"44px"})}):(0,l.jsx)("div",{className:"bg-blue-light h-full w-full rounded-full flex items-center justify-center",children:(0,l.jsx)(o.Z.User,{className:"text-white w-6 h-6"})})})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("span",{className:"font-bold text-sm block group-hover:underline",children:[a.fields.firstName," ",a.fields.lastName]}),d&&(0,l.jsx)("p",{className:"text-sm text-gray-700 mt-0.5 line-clamp-2 group-hover:underline",children:d.fields.title})]})]})},a.sys.id)})}),d&&(0,l.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-12 bg-gradient-to-r from-white to-transparent pointer-events-none z-[5]"}),u&&(0,l.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-12 bg-gradient-to-l from-white to-transparent pointer-events-none z-[5]"}),d&&(0,l.jsx)("button",{onClick:()=>m("left"),className:"hidden lg:flex absolute left-2 top-1/2 -translate-y-1/2 w-9 h-9 bg-white rounded-full shadow-md items-center justify-center opacity-0 group-hover/container:opacity-100 transition-opacity duration-200 hover:bg-gray-50 z-10","aria-label":"Scrolla v\xe4nster",children:(0,l.jsx)(o.Z.ChevronLeft,{className:"w-5 h-5"})}),u&&(0,l.jsx)("button",{onClick:()=>m("right"),className:"hidden lg:flex absolute right-2 top-1/2 -translate-y-1/2 w-9 h-9 bg-white rounded-full shadow-md items-center justify-center opacity-0 group-hover/container:opacity-100 transition-opacity duration-200 hover:bg-gray-50 z-10","aria-label":"Scrolla h\xf6ger",children:(0,l.jsx)(o.Z.ChevronRight,{className:"w-5 h-5"})})]})})}},8177:function(e,t,s){"use strict";var l=s(57437),i=s(25064),r=s(99685),n=s(65913),a=s(27648),o=s(2265),d=s(79631);t.default=()=>{let[e,t]=(0,o.useState)([]),[s,c]=(0,o.useState)(!0);return((0,o.useEffect)(()=>{(0,i.bc)().then(e=>t(e)).finally(()=>c(!1))},[]),s||e.length)?(0,l.jsxs)("div",{className:"bg-white rounded-lg overflow-hidden min-h-[340px]",children:[(0,l.jsx)(d.Z,{title:"Mest l\xe4sta PLUS",tagName:"h3"}),(0,l.jsxs)("div",{className:"p-4 space-y-3",children:[s&&[,,,,,].fill(null).map((e,t)=>(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("div",{className:"w-6 h-6 bg-gray animate-pulse rounded-full flex-shrink-0 mt-1"}),(0,l.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,l.jsx)("div",{className:"bg-gray animate-pulse h-[20px] rounded w-full"}),(0,l.jsx)("div",{className:"bg-gray animate-pulse h-[20px] rounded w-2/3"}),(0,l.jsx)("div",{className:"bg-gray animate-pulse h-[16px] rounded w-1/4"})]})]},"most-read-plus-skeleton-".concat(t))),!s&&e.map((e,t)=>{let s=(0,r.bv)(e.fields.type);return(0,l.jsxs)(a.default,{href:"".concat(s).concat(e.fields.slug),className:"flex items-start gap-3 group",children:[(0,l.jsx)("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-blue text-white text-sm font-bold flex items-center justify-center mt-1",children:t+1}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"font-bold line-clamp-2 group-hover:underline",children:e.fields.title}),(0,l.jsx)("span",{className:"text-gray text-sm block",children:(0,n.p6)(e.sys.createdAt)})]})]},e.sys.id)})]})]}):null}},20555:function(e,t,s){"use strict";var l=s(57437),i=s(99685),r=s(47885),n=s(13786),a=s(33145),o=s(27648),d=s(2265);t.default=e=>{var t,s,c;let u=(0,d.useRef)(null),[h,f]=(0,d.useState)(!1),m=(0,i.bv)(e.article.fields.type);return(0,d.useEffect)(()=>{let e=u.current,t=new IntersectionObserver(e=>{let[t]=e;f(t.isIntersecting)},{threshold:1});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[]),(0,d.useEffect)(()=>{h&&(0,n.sendGTMEvent)({event:"native_article_teaser_in_view",article_title:e.article.fields.title,article_slug:e.article.fields.slug})},[h,e.article]),(0,l.jsxs)(o.default,{ref:u,href:"".concat(m).concat(e.article.fields.slug),className:"bg-yellow bg-opacity-30 rounded-lg overflow-hidden",children:[(null===(c=e.article.fields.image)||void 0===c?void 0:null===(s=c.fields)||void 0===s?void 0:null===(t=s.file)||void 0===t?void 0:t.url)&&(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"aspect-w-16 aspect-h-9",children:(0,l.jsx)(a.default,{alt:e.article.fields.image.fields.title||"Artikelbild",fill:!0,src:"https:".concat(e.article.fields.image.fields.file.url),sizes:(0,r.G)({desktop:"25vw",tablet:"50vw",mobile:"50vw"}),className:"object-cover object-center"})}),(0,l.jsx)("figcaption",{className:"rounded bg-white/80 absolute bottom-2 right-2 text-xs font-bold p-0.5",children:"Sponsrad artikel"})]}),(0,l.jsx)("div",{className:"p-2",children:(0,l.jsx)("h2",{className:"font-bold text-sm lg:text-xl",children:e.article.fields.title})})]})}},90330:function(e,t,s){"use strict";var l=s(57437),i=s(25064),r=s(99685),n=s(65913),a=s(27648),o=s(2265);let d=[{id:"latest",label:"Senaste nytt"},{id:"most-read",label:"Mest l\xe4sta"}];t.default=e=>{let{latestNews:t}=e,[s,c]=(0,o.useState)("latest"),[u,h]=(0,o.useState)([]),[f,m]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(0,i.ou)().then(e=>h(e)).finally(()=>m(!1))},[]),(0,l.jsxs)("div",{className:"bg-white rounded-lg overflow-hidden min-h-[420px]",children:[(0,l.jsx)("div",{className:"flex",children:d.map(e=>(0,l.jsx)("button",{onClick:()=>c(e.id),className:"inline-block -skew-x-12 rounded-br-lg py-2 px-6 -ml-1 font-bold shadow-inner transition-colors ".concat(s===e.id?"bg-blue text-white":"bg-gradient-to-b from-gray-lighter to-gray-light text-black cursor-pointer"),children:(0,l.jsx)("span",{className:"block skew-x-12",children:(0,l.jsx)("h3",{className:s===e.id?"text-white":"",children:e.label})})},e.id))}),"latest"===s&&(0,l.jsxs)("div",{className:"p-4",children:[t.map(e=>(0,l.jsxs)(a.default,{href:"/nyheter/".concat(e.fields.slug),className:"mb-2 overflow-hidden pl-4 block relative before:content before:absolute before:w-[10px] before:h-[10px] before:bg-red before:rounded-full before:left-0 before:top-2",children:[(0,l.jsx)("h3",{className:"font-bold line-clamp-2 before:content before:absolute before:w-[2px] before:h-full before:bg-gray-light before:left-[4px] before:top-0 before:mt-[30px]",children:e.fields.title}
1),(0,l.jsx)("span",{className:"text-gray mb-2 block",children:(0,n.p6)(e.sys.createdAt)})]},e.sys.id)),(0,l.jsx)(a.default,{className:"btn-primary w-full mt-2",href:"/senaste-nytt",children:"Till senaste nyheterna"})]}),"most-read"===s&&(0,l.jsxs)("div",{className:"p-4 space-y-3",children:[f&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return Array(e).fill(null).map((e,t)=>(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("div",{className:"w-6 h-6 bg-gray animate-pulse rounded-full flex-shrink-0 mt-1"}),(0,l.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,l.jsx)("div",{className:"bg-gray animate-pulse h-[20px] rounded w-full"}),(0,l.jsx)("div",{className:"bg-gray animate-pulse h-[20px] rounded w-2/3"}),(0,l.jsx)("div",{className:"bg-gray animate-pulse h-[16px] rounded w-1/4"})]})]},"skeleton-".concat(t)))}(),!f&&u.map((e,t)=>{let s=(0,r.bv)(e.fields.type);return(0,l.jsxs)(a.default,{href:"".concat(s).concat(e.fields.slug),className:"flex items-start gap-3 group",children:[(0,l.jsx)("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-blue text-white text-sm font-bold flex items-center justify-center mt-1",children:t+1}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("h3",{className:"font-bold line-clamp-2 group-hover:underline",children:[e.fields.title,e.fields.isPremium&&(0,l.jsx)("span",{className:"ml-1",children:"(PLUS)"})]}),(0,l.jsx)("span",{className:"text-gray text-sm block",children:(0,n.p6)(e.sys.createdAt)})]})]},e.sys.id)}),!f&&0===u.length&&(0,l.jsx)("p",{className:"text-gray text-sm",children:"Inga artiklar att visa"})]})]})}},51936:function(e,t,s){"use strict";var l=s(57437),i=s(2265);t.Z=e=>{let t=(0,i.useRef)(null),s=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let l=t.current,i=new IntersectionObserver((t,l)=>{let[i]=t;i.isIntersecting&&!s.current&&(e.callback(),s.current=!0,l.disconnect())},{threshold:e.rootMargin?0:.1,rootMargin:e.rootMargin});return l&&i.observe(l),()=>{l&&i.disconnect()}},[e.callback]),(0,l.jsx)("div",{ref:t,children:e.children})}},45003:function(e,t,s){"use strict";var l=s(57437),i=s(36760),r=s.n(i),n=s(2265),a=s(54641),o=s(79631);t.default=e=>{let t=(0,n.useRef)(null),[s,i]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!0);(0,n.useEffect)(()=>{t.current&&u()},[]);let u=()=>{let e=t.current.scrollWidth-(t.current.scrollLeft+t.current.offsetWidth);i(t.current.scrollLeft>0),c(e>0)};return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center justify-between bg-white rounded-lg overflow-hidden mb-2",children:[e.title&&(0,l.jsx)(o.Z,{icon:e.icon,title:e.title}),(0,l.jsxs)("div",{className:"space-x-2 flex items-center mr-2",children:[(0,l.jsx)("button",{disabled:!s,onClick:()=>{var e;null===(e=t.current)||void 0===e||e.scrollBy({left:-t.current.offsetWidth,behavior:"smooth"})},className:r()("w-[30px] h-[30px] rounded transition-colors flex items-center justify-center",s?"bg-blue-light":"bg-gray"),children:(0,l.jsx)(a.Z.ChevronDown,{className:"text-white rotate-90"})}),(0,l.jsx)("button",{disabled:!d,onClick:()=>{var e;null===(e=t.current)||void 0===e||e.scrollBy({left:t.current.offsetWidth,behavior:"smooth"})},className:r()("w-[30px] h-[30px] rounded transition-colors flex items-center justify-center",d?"bg-blue-light":"bg-gray"),children:(0,l.jsx)(a.Z.ChevronDown,{className:"text-white -rotate-90"})})]})]}),(0,l.jsx)("div",{ref:t,onScroll:u,className:"flex space-x-2 overflow-auto [&>*]:flex-shrink-0 [&>*]:basis-[calc(50%-0.5rem)] lg:[&>*]:basis-[calc(33.33%-0.5rem)] snap-x snap-proximity [&>*]:snap-start no-scrollbar",children:e.children})]})}},210:function(e,t,s){"use strict";var l=s(57437),i=s(25064),r=s(91181),n=s(30166),a=s(33145),o=s(99376),d=s(2265),c=s(54641),u=s(45003);let h=(0,n.default)(()=>s.e(1761).then(s.bind(s,81761)),{loadableGenerated:{webpack:()=>[81761]},ssr:!1}),f=e=>{let t=Math.floor(e/1e3),s=t%60;return"".concat(Math.floor(t/60),":").concat(s<10?"0".concat(s):s)};t.default=e=>{let[t,s]=(0,d.useState)(!0),[n,m]=(0,d.useState)([]),v=(0,o.usePathname)(),{open:b}=(0,r.d)();return((0,d.useEffect)(()=>
1{(0,i.WY)(e.zid,v).then(e=>m(e)).finally(()=>s(!1))},[v,e.zid]),t||n.length)?(0,l.jsxs)(u.default,{icon:(0,l.jsx)(c.Z.Play,{className:"text-yellow"}),title:e.title,children:[t&&[,,,,].fill(null).map((e,t)=>(0,l.jsxs)("div",{className:"bg-gray animate-pulse rounded-lg overflow-hidden",children:[(0,l.jsx)("div",{className:"aspect-w-9 aspect-h-16"}),(0,l.jsx)("div",{className:"p-4",children:(0,l.jsx)("div",{className:"bg-gray-light h-[40px] rounded"})})]},"video-slider-".concat(t))),!t&&n.map((e,t)=>(0,l.jsxs)("div",{className:"group relative rounded-lg overflow-hidden cursor-pointer",onClick:()=>b((0,l.jsx)(h,{video:e})),children:[(0,l.jsx)("div",{className:"aspect-w-9 aspect-h-16",children:(0,l.jsx)(a.default,{fill:!0,src:e.img,alt:"",className:"object-cover"})}),(0,l.jsx)("div",{className:"absolute bg-overlay bottom-0 inset-x-0 h-[200px]"}),(0,l.jsx)(c.Z.Play,{className:"w-[50px] h-[50px] transition-transform group-hover:scale-110 text-yellow absolute inset-0 m-auto"}),(0,l.jsx)("div",{className:"p-4 absolute bottom-0 inset-x-0",children:(0,l.jsx)("h5",{className:"font-bold text-white line-clamp-2",children:e.title})}),(0,l.jsx)("div",{className:"rounded bg-white/80 absolute top-2 right-2 text-xs font-bold p-0.5",children:f(e.duration)})]},"video-slider-".concat(t)))]}):null}}},function(e){e.O(0,[5546,8009,9644,4065,2972,5878,3786,3819,6815,799,6,8726,9087,3887,4641,5743,9685,6304,9823,2971,2117,1744],function(){return e(e.s=32472)}),_N_E=e.O()}]);
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.