!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e93b2aef-f243-49a2-924c-f0980175c2cd",e._sentryDebugIdIdentifier="sentry-dbid-e93b2aef-f243-49a2-924c-f0980175c2cd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6270],{64838:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return O},default:function(){return C}});var i=n(95235),s=n(2784),r=n(64897),o=n(27794),a=n(92177),d=n(98803),l=n(88627),c=n(96187),u=n(37364),p=n(7307);const m=(0,p.keyframes)(["0%{opacity:0}100%{opacity:1}"]),h=(0,p.styled)(a.I).withConfig({componentId:"sc-1n3wq8q-0"})(["max-width:340px;margin:0 auto;"]),g=(0,p.styled)(l.$0).withConfig({componentId:"sc-1n3wq8q-1"})(["position:relative;background-position:center;background-size:cover;"]),f=p.styled.div.withConfig({componentId:"sc-1n3wq8q-2"})(["max-width:1020px;margin:1rem auto;background:",";border-radius:",";padding:2rem;text-align:center;display:grid;grid-template-columns:1fr;grid-gap:1rem;h1,h2,h3{margin:0;}p:empty{display:none;}"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.borderRadius})),b=(0,p.styled)(l.$0).withConfig({componentId:"sc-1n3wq8q-3"})(["text-align:center;"]),y=p.styled.div.withConfig({componentId:"sc-1n3wq8q-4"})(["display:grid;grid-template-columns:1fr;grid-gap:2rem;","{grid-template-columns:repeat(4,1fr);}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),w=p.styled.div.withConfig({componentId:"sc-1n3wq8q-5"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;p{font-weight:",";}img{max-height:200px;max-width:340px;margin:0 auto;object-fit:contain;object-position:center;border-radius:",";transition:0.2s ease-in-out;position:relative;top:0;}","{&:hover{cursor:pointer;img{top:-1rem;box-shadow:0 0 8px rgba(0,0,0,0.5);}}}"],(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),x=(0,p.styled)(l.$0).withConfig({componentId:"sc-1n3wq8q-6"})(["> div{display:grid;grid-template-columns:1fr;grid-gap:1rem;text-align:center;justify-items:center;}"]),j=p.styled.div.withConfig({componentId:"sc-1n3wq8q-7"})(["padding:2rem;text-align:center;width:90vw;max-width:1000px;display:grid;grid-template-columns:1fr;justify-items:center;grid-gap:1rem;p{margin:0;}img{border-radius:",";}"],(e=>{let{theme:t}=e;return t.borderRadius})),v=p.styled.div.withConfig({componentId:"sc-1n3wq8q-8"})(["position:absolute;width:100%;background:url('https://assets.nintendo.com/image/upload/v1711742016/IndieWorld/divider-desktop.png');background-repeat:no-repeat;background-position:center;height:44px;top:100%;left:50%;transform:translate(-50%,-47%);&::after{content:'';position:absolute;width:100%;background:url('https://assets.nintendo.com/image/upload/v1711742016/IndieWorld/divider-desktop-unlit.png');background-repeat:no-repeat;background-position:center;opacity:0;height:44px;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;transition:0.3s ease-in-out;animation:"," 3s infinite 3s alternate;}"],m),P=p.styled.img.withConfig({componentId:"sc-1n3wq8q-9"})(["max-width:100%;"]);var _=n(52322);var k=e=>{let{body:t,asset:n,cta:i,heading:s,transitionProp:r,handleTransition:a}=e;return(0,_.jsx)(c.M,{lang:"en",visible:r,onClose:a,dialogLabel:"Close",children:(0,_.jsxs)(j,{children:[s&&(0,_.jsx)(u.H,{as:"h2",children:s}),n?.secondary?.assetPath&&r?(0,_.jsx)(o.V,{assetPath:n?.secondary?.assetPath},n?.secondary?.assetPath):(0,_.jsx)(P,{src:`https://assets.nintendo.com/image/upload/f_auto/q_auto/dpr_2.0/c_scale,w_1000/${n?.primary?.assetPath}`,alt:s}),t&&(0,_.jsx)(l.Ho,{data:t}),i?.label&&(0,_.jsx)(d.B,{href:i.url,children:i.label})]})})};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function q(e){for(var t=1;t!e)),O(!I)}const D=()=>{switch(c){case"moduleCloudinaryVideo":return(0,_.jsx)(o.V,{assetPath:i[0].modules[1].id});case"moduleCloudinaryImage":return(0,_.jsx)(a.I,{assetPath:i[0].modules[1].primary.assetPath,alt:i[0].modules[1].alt});case"moduleYouTubeVideo":return(0,_.jsx)(o.V,{noCookie:!0,host:"youtube",timeStamp:i[0].modules[1].videoId.split("?t=")[1],assetPath:i[0].modules[1].videoId})}};return(0,s.useEffect)((()=>{P(!0)}),[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.Xe,{preview:n}),(0,_.jsxs)(g,{background:u,id:i[0].deepLink,hide:i[0].hide,children:[(0,_.jsx)(h,{assetPath:i[0].modules[0].primary.assetPath,alt:i[0].modules[0].alt}),(0,_.jsxs)(f,{children:[(0,_.jsx)(D,{}),(0,_.jsx)("div",{children:(0,_.jsx)(l.Ho,{data:i[0].modules[2].richText})})]}),(0,_.jsx)(v,{})]}),(0,_.jsxs)(b,{id:i[1].deepLink,hide:i[1].hide,constrained:!0,small:!0,children:[(0,_.jsx)(l.Ho,{data:i[1].modules[0].richText}),(0,_.jsx)(y,{children:i[1].modules.slice(1).map(((e,t)=>(0,_.jsxs)(w,{onClick:()=>T(e),children:[(0,_.jsx)(a.I,{assetPath:e.asset?.primary?.assetPath,alt:e.heading}),(0,_.jsx)("p",{children:e.heading})]},e.heading+t)))})]}),(0,_.jsxs)(x,{id:i[2].deepLink,hide:i[2].hide,constrained:!0,small:!0,marginTop:"16",children:[i[2]?.modules[0]?.label&&(0,_.jsx)(d.B,{href:i[2].modules[0].url,children:i[2].modules[0].label}),(0,_.jsx)(l.Ho,{data:i[2].modules[1]?.richText}),i[2].modules[2]?.contentRating&&(0,_.jsx)(l.bs,{gamesShown:i[2].modules[2].gamesShown,rating:i[2].modules[2].contentRating,descriptors:i[2].modules[2].contentDescriptors})]}),j&&(0,_.jsx)(k,q(q({},C),{},{transitionProp:p,open:I,handleTransition:T}))]})}},77242:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/indie-world/showcase",function(){return n(64838)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=77242,e(e.s=t);var t}));var t=e.O();_N_E=t}]); //# sourceMappingURL=showcase-982198044851d6c7.js.map