1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[920],{28408:e=>{e.exports={"background-color":"merryChristmas_background-color__v9bWT",backgroundColor:"merryChristmas_background-color__v9bWT",item:"merryChristmas_item__jyxmB",inner:"merryChristmas_inner__0fAYi",back:"merryChristmas_back__PPEcw",front:"merryChristmas_front__ZzdkY",text:"merryChristmas_text__YrdeN"}},81453:(e,s,i)=>{"use strict";i.r(s),i.d(s,{InlineAdventcalendar:()=>f,default:()=>p});var a=i(6029),l=i(28408),r=i.n(l),t=i(92476),n=i(58057),c=i(32988),m=i.n(c),o=i(55729);let d=({id:e,link:s,flip:i})=>(0,a.jsxs)("div",{className:m()({"va-xmas-inner relative aspect-square w-full h-full":!0,[r().inner]:!0,"cursor-pointer":s.canFlip}),children:[(0,a.jsxs)("div",{className:m()({"va-xmas-front bg-skin-primary absolute top-0 left-0 z-30 w-full h-full aspect-square":!0,[r().front]:!0}),children:[(0,a.jsx)("span",{className:m()({"bg-skin-primary w-full h-full font-skin-primary text-skin-white font-bold flex items-center justify-center absolute z-20":!0,[r().text]:!0,"bg-opacity-50":s.isOpen||i[e]}),children:s.day}),(0,a.jsx)(n.Ay,{dimensions:{desktop:{width:262,height:262},mobile:{width:232,height:232}},src:s?.image,className:"w-full"})]}),(0,a.jsx)("div",{className:m()({"va-xmas-back absolute top-0 left-0 w-full h-full":!0,[r().back]:!0}),children:(0,a.jsx)(n.Ay,{dimensions:{desktop:{width:262,height:262},mobile:{width:232,height:232}},src:s?.image,getHeightWithResize:!0,className:"w-full"})})]}),h=({items:e})=>{let[s,i]=(0,o.useState)({});return(0,a.jsx)("div",{className:"va-xmas lg:w-content lg:-left-1/2 lg:ml-px-70 relative z-10 px-4 lg:px-0 pb-9 "+r().backgroundColor,children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-4",children:e&&e.links&&e.links.length?e.links.map((e,l)=>(0,a.jsxs)(o.Fragment,{children:[(!!e.isOpen||!!e.canFlip)&&(0,a.jsx)(t.Ay,{className:m()({[`va-xmas-item--${e.day}`]:!0,"va-xmas-item block relative":!0,[r().item]:!0,"va-xmas-inner--flip":s[l]}),onClick:a=>{if(e.canFlip){var r;r=e.URL,i({...s,[l]:!0}),setTimeout(()=>window.location.href=r,1e3)}},children:(0,a.jsx)(d,{id:l,link:e,flip:s})}),!e.isOpen&&!e.canFlip&&(0,a.jsx)("div",{className:m()({[`va-xmas-item--${e.day}`]:!0,"va-xmas-item block relative":!0,[r().item]:!0,"va-xmas-inner--flip":s[l]}),children:(0,a.jsx)(d,{id:l,link:e,flip:s})})]},`christmas-${l}`)):null})})};var u=i(64996),x=i(81278);let f=({data:e,imgFileFormat:s,element:i,irConfig:l,page:r})=>{let t=(0,x.useRouter)(),[n,c]=(0,o.useState)(e),m=(0,u.A)(),d=async(e,s)=>{try{let e=await m(i,l,r,t.query);c(e.data)}catch(e){console.error(e)}};return((0,o.useEffect)(()=>{d()},[t.query]),e&&e.links)?(0,a.jsx)(h,{items:n,imgFileFormat:s}):null},p=f}}]);
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.