!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]="99aaee5a-83c9-4dcd-94e7-7bbd96d2a94f",e._sentryDebugIdIdentifier="sentry-dbid-99aaee5a-83c9-4dcd-94e7-7bbd96d2a94f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4071],{19924:function(e,t,a){a.d(t,{C:function(){return v},R:function(){return f}});var i=a(95235),n=a(82269),r=a(13980),o=a.n(r),s=a(82731),l=a(52322),d=a(2771);const p=["children","className","horizontalUncenter","noWrap","reverse","stackMedium","verticalBaseline","verticalCenter"],c=["children","className","deep","span","large","xlarge","xxlarge"];function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function h(e){for(var t=1;t{let{theme:t}=e;return t.pmp.layout.totalWidth}),(e=>{let{theme:t}=e;return t.pmp.breakpoints.mediumUp}),(e=>!e.stackMedium&&(0,s.css)(["display:flex;flex-wrap:wrap;justify-content:center;"])),(e=>e.noWrap&&(0,s.css)(["flex-wrap:nowrap;"])),(e=>e.verticalCenter&&(0,s.css)(["align-items:center;"])),(e=>e.verticalBaseline&&(0,s.css)(["align-items:baseline;"])),(e=>e.horizontalUncenter&&(0,s.css)(["justify-content:flex-start;"])),(e=>e.reverse&&(0,s.css)(["flex-direction:row-reverse;"])),(e=>{let{theme:t}=e;return t.pmp.breakpoints.largeUp}),(e=>e.stackMedium&&(0,s.css)(["display:flex;flex-wrap:wrap;justify-content:center;"]))),g=e=>{let{children:t,className:a,horizontalUncenter:i,noWrap:r,reverse:o,stackMedium:s,verticalBaseline:d,verticalCenter:c}=e,m=(0,n.Z)(e,p);return(0,l.jsx)(u,h(h({className:a,noWrap:r,verticalCenter:c,verticalBaseline:d,horizontalUncenter:i,stackMedium:s,reverse:o},m),{},{children:t}))};g.propTypes={children:o().node,className:o().string,horizontalUncenter:o().bool,noWrap:o().bool,reverse:o().bool,stackMedium:o().bool,verticalBaseline:o().bool,verticalCenter:o().bool};var f=g;const x=s.default.div.withConfig({componentId:"pmp-module__sc-fsfwz4-0"})(["&&{padding-right:calc(var(--gutter-width) * 0.5);padding-left:calc(var(--gutter-width) * 0.5);}@media ","{flex:0 0 auto;"," ","}@media ","{","}@media ","{","}@media ","{","}"],(e=>{let{theme:t}=e;return t.pmp.breakpoints.mediumUp}),(e=>e.$span&&(0,s.css)(["flex-basis:",";"],(0,d.g)(e.theme,e.$span))),(e=>e.deep&&(0,s.css)(["&&{padding-right:0;padding-left:0;}"])),(e=>{let{theme:t}=e;return t.pmp.breakpoints.largeUp}),(e=>e.large&&(0,s.css)(["flex-basis:",";"],(0,d.g)(e.theme,e.large))),(e=>{let{theme:t}=e;return t.pmp.breakpoints.xlargeUp}),(e=>e.xlarge&&(0,s.css)(["flex-basis:",";"],(0,d.g)(e.theme,e.xlarge))),(e=>{let{theme:t}=e;return t.pmp.breakpoints.xxlarge}),(e=>e.xxlarge&&(0,s.css)(["flex-basis:",";"],(0,d.g)(e.theme,e.xxlarge)))),b=e=>{let{children:t,className:a,deep:i,span:r,large:o,xlarge:s,xxlarge:d}=e,p=(0,n.Z)(e,c);return(0,l.jsx)(x,h(h({className:a,$span:r,large:o,xlarge:s,xxlarge:d,deep:i},p),{},{children:t}))};b.propTypes={className:o().string,span:o().number,large:o().number,xlarge:o().number,xxlarge:o().number,deep:o().bool,children:o().node};var v=b},98046:function(e,t,a){a.d(t,{I:function(){return b},a:function(){return y}});var i=a(95235),n=a(82269),r=a(2784),o=a(13980),s=a.n(o),l=a(82731),d=a(52322);const p=["width","height","maxWidth","children","className"],c=["width","left","top","noMaxWidth","children","className"];function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function h(e){for(var t=1;t{let{value:t,relativeTo:a}=e;if(!isNaN(t)&&null!==t&&!isNaN(a)&&null!==a)return t/a*100+"%"},g=l.default.div.withConfig({componentId:"pmp-module__sc-6zzwsp-0"})(["",""],(e=>{let{$width:t,$height:a,maxWidth:i}=e;return(0,l.css)(["max-width:",";position:relative;&::before{content:'';display:block;padding-top:",";}"],i,u({value:a,relativeTo:t}))})),f=(0,r.createContext)(),x=e=>{let{width:t,height:a,maxWidth:i,children:r,className:o}=e,s=(0,n.Z)(e,p);const l={parentWidth:t,parentHeight:a};return(0,d.jsx)(f.Provider,{value:l,children:(0,d.jsx)(g,h(h({$width:t,$height:a,maxWidth:i,className:o},s),{},{children:r}))})};x.defaultProps={maxWidth:"100%"},x.propTypes={children:s().node,className:s().string,height:s().number.isRequired,maxWidth:s().string.isRequired,width:s().number.isRequired};var b=x;const v=l.default.div.withConfig({componentId:"pmp-module__sc-1p75k38-0"})(["pointer-events:none;position:absolute;max-width:100%;"," ",""],(e=>{let{noMaxWidth:t}=e;return t&&(0,l.css)(["max-width:none;"])}),(e=>{let{$width:t,left:a,top:i,parentWidth:n,parentHeight:r}=e;return(0,l.css)(["left:",";top:",";width:",";"],u({value:a,relativeTo:n}),u({value:i,relativeTo:r}),u({value:t,relativeTo:n}))})),w=e=>{let{width:t,left:a,top:i,noMaxWidth:o,children:s,className:l}=e,p=(0,n.Z)(e,c);const{parentWidth:m,parentHeight:u}=(0,r.useContext)(f);return(0,d.jsx)(v,h(h({$width:t,left:a,top:i,parentWidth:m,parentHeight:u,noMaxWidth:o,className:l},p),{},{children:s}))};w.propTypes={children:s().node,className:s().string,left:s().number.isRequired,noMaxWidth:s().bool,top:s().number.isRequired,width:s().number.isRequired};var y=w},74071:function(e,t,a){a.r(t),a.d(t,{default:function(){return Ya}});var i=a(95235),n=a(82269),r=a(46533),o=a.n(r),s=a(52322),l=a(67870),d=a(18532),p=a(90008),c=a(70675),m=a(82731),h=a(2784),u=a(52049),g=a(13980),f=a.n(g),x=a(53770),b=a(2771),v=a(19924),w=a(17072),y=a(3517),j=a(76057),_=a(88919),k=a(64758),z=a(98046),C=a(82091),I=a(72692),N=a(27010),U=a(29650);const M=["bgColor","children","className"],q=["id","use","className"],O=["heading","richText","video","fallback"],T=["smaller","direction","color"],P=["animate","className","children"],S=["items"],E=["direction","setCharacterState"],W=["items"],R=["id"],X=["children","className"],D=["children","className"],Y=["variant","children","className"];function H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Z(e){for(var t=1;t{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{theme:t}=e;return t.pmp.typography.families.handwriting}),(e=>{let{theme:t}=e;return t.pmp.typography.weights.handwriting})),G=(0,m.createGlobalStyle)([".","{--paper-tear-angle:5vw;--paper-tear-duration:1.5;@media ","{--paper-tear-duration:2;}@media ","{--paper-tear-duration:2.5;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,l.t)("mediumUp"),(0,l.t)("largeUp")),V=m.default.figcaption.withConfig({componentId:"pmp-module__sc-1vrpza9-0"})(["align-self:end;background-color:",";clip-path:polygon(0 3%,100% 0,96% 100%,2% 96%);grid-area:main;justify-self:center;padding:13px 19px 11px;transform:translateY(50%);@media ","{padding:20px 32px 12px;}"],(e=>{let{bgColor:t}=e;return(0,l.a)(t)}),(0,l.t)("largeUp"));function F(e){let{bgColor:t,children:a,className:i}=e,r=(0,n.Z)(e,M);return(0,s.jsx)(V,Z(Z({bgColor:t,className:i},r),{},{children:a}))}F.defaultProps={bgColor:"yellow"},F.propTypes=Z({bgColor:f().oneOf(["yellow","blue","white"]).isRequired},x.c);const J=m.default.svg.withConfig({componentId:"pmp-module__sc-1543wt0-0"})([""," "," ",""],(e=>{let{fillColor:t,theme:a}=e;return t&&(0,m.css)(["fill:",";"],a.pmp.colors[t])}),(e=>{let{strokeColor:t,theme:a}=e;return t&&(0,m.css)(["stroke:",";"],a.pmp.colors[t])}),(e=>{let{theme:t}=e;return(0,m.css)(["height:",";width:",";"],t.pmp.iconSize.inline,t.pmp.iconSize.inline)})),$=e=>{let{id:t,use:a,className:i}=e,r=(0,n.Z)(e,q);return a?(0,s.jsx)(J,Z(Z({className:i},r),{},{"aria-hidden":"true",children:(0,s.jsx)("use",{xlinkHref:`#${b.N}-icon-${t}`,style:{width:"100%",height:"100%"}})})):At(Z({id:t,className:i,as:"svg","aria-hidden":!0},r))};$.defaultProps={use:!0},$.propTypes={id:g.string.isRequired,use:g.bool,fillColor:g.string,strokeColor:g.string,className:g.string};var B=$;const Q=m.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-0"})(["padding-block-start:72px;padding-block-end:calc(var(--paper-tear-angle) - 45px);position:relative;margin-bottom:calc(var(--paper-tear-angle) * -1);overflow:hidden;&::after{background-color:",";content:'';height:",";inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute;}@media ","{padding-block-end:calc(var(--paper-tear-angle) * 2);}@media ","{padding-block-start:160px;}"],(0,l.a)("burnt-orange"),(0,b.s)(2),(0,l.t)("mediumUp"),(0,l.t)("largeUp")),K=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-1pyxua8-1"})(["@media ","{margin-inline-start:",";}"],(0,l.t)("largeUp"),(e=>{let{theme:t}=e;return(0,b.g)(t,1)})),ee=m.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-2"})(["@media ","{inline-size:min(100%,614px);margin:auto;}"],(0,l.t)("xlargeUp")),te=(0,m.default)(B).withConfig({componentId:"pmp-module__sc-1pyxua8-3"})(["--rotation:0deg;--scale:1;--size:28px;color:",";height:var(--size);position:relative;top:-0.1em;transform:scale(var(--scale)) rotate(var(--rotation));transition:transform "," ",";width:var(--size);@media ","{--size:44px;}"],(0,l.a)("red"),(0,w.d)(.2),(0,l.b)("out"),(0,l.t)("largeUp")),ae=(0,m.default)(w.V).withConfig({componentId:"pmp-module__sc-1pyxua8-4"})(["display:block;inline-size:100%;@media (hover:hover){&:hover{","{--rotation:-6deg;--scale:1.36;}}}"],te),ie=(0,m.default)(F).withConfig({componentId:"pmp-module__sc-1pyxua8-5"})(["align-items:center;display:flex;gap:",";@media ","{gap:",";}"],(0,b.s)(),(0,l.t)("largeUp"),(0,b.s)(2)),ne=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1pyxua8-6"})(["--start-alpha:0;--end-alpha:1;--start-rotate:-20deg;--end-rotate:-45deg;--start-scale:1.4;--end-scale:1;left:-8%;position:absolute;top:12%;width:34%;"]),re=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1pyxua8-7"})(["display:block;"]),oe=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-1pyxua8-8"})(["inline-size:240px;margin-inline:auto;"]),se=m.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-9"})(["@media ","{inline-size:118%;margin-inline:0;max-inline-size:none;}"],(0,l.t)("mediumUp")),le=m.default.div.withConfig({componentId:"pmp-module__sc-1pyxua8-10"})(["--y:",";inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute;transform:translateY(var(--y));transition:transform "," ",";."," & img{inline-size:max(100%,745px);inset-block-start:0;inset-inline-start:50%;max-width:none;position:relative;transform:translateX(-50%);}@media (prefers-reduced-motion:reduce){display:none;}"],(e=>{let{reveal:t}=e;return t?"-100%":0}),(0,w.d)(2),(0,l.b)("in-out"),(e=>{let{theme:t}=e;return t.pmp.namespace}));function de(){const{section:e,content:t,trailer:a,character:i}=(0,w.u)({section:"4G6MTbGTup0bQSWpbx9zgV",content:"5ye6pOewuplOblLrNY9gn7",trailer:"645wnLEflk88AXl24lLYXr",character:"5MllDHMdljouGc7DgWXhjm"}),[n,r]=(0,u.YD)(.3,!0,!0),{0:o,1:l}=(0,h.useState)(!1);return(0,h.useEffect)((()=>{let e=setTimeout((()=>{l(!0)}),1400);return()=>{clearTimeout(e)}}),[r]),e.hide?null:(0,s.jsx)("section",{ref:n,children:(0,s.jsxs)(Q,{as:pa,variant:"paper-red",children:[(0,s.jsxs)(v.R,{verticalCenter:!0,className:"child-spacing-small--6",children:[(0,s.jsxs)(K,{span:6,className:"text-center child-spacing--3 child-spacing-small--2",forwardedAs:w.I,once:!0,children:[(0,s.jsx)(w.a,{as:"h2",className:"title-1 color-white",animation:"up",delay:1,children:t.heading}),(0,s.jsx)(w.a,{animation:"up",delay:1.2,children:(0,s.jsx)(w.R,{className:"title-3 text-weight-bold color-yellow",data:t.body})}),(0,s.jsx)(ee,{children:(0,s.jsx)(ae,{assetPath:a.heading,dialogLabel:"Paper Mario: The Thousand Year Door trailer",hashId:"",children:(0,s.jsxs)(ea,{children:[(0,s.jsx)(aa,{children:(0,s.jsx)(Vt,{as:w.a,delay:1.4,animation:"pop",children:(0,s.jsx)(rt,{animate:o,children:(0,s.jsx)(_.I,Z(Z({},t.asset.primary),{},{alt:""}))})})}),(0,s.jsxs)(ie,{forwardedAs:w.a,animation:!0,delay:1.8,bgColor:"blue",className:"handwriting color-white",children:[t.cta.label,(0,s.jsx)(te,{id:"play"})]}),(0,s.jsx)(ne,{as:w.a,delay:1.8,animation:"fade",children:(0,s.jsx)(re,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tape/tape-green",alt:""})})]})})})]}),(0,s.jsx)(oe,{span:6,large:5,forwardedAs:w.I,once:!0,children:(0,s.jsx)(se,Z(Z({},i.primary),{},{alt:i.alt,as:w.a,forwardedAs:_.I,animation:"left",delay:.75,duration:.6}))})]}),(0,s.jsx)(le,{reveal:r,children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/intro/curtain",alt:"",loading:"lazy"})})]})})}const pe=m.default.div.withConfig({componentId:"pmp-module__sc-17zt1h2-0"})(["padding:"," 0 calc(var(--paper-tear-angle) * 2.5);margin-bottom:calc(var(--paper-tear-angle) * -1);@media ","{padding-block-start:",";}"],(0,b.s)(6),(0,l.t)("xlargeUp"),(0,b.s)(11));function ce(){const{section:e,content:t}=(0,w.u)({section:"k8EgAz2MncFATk3wksPGx",content:"4jwbPUElZCGhGJNzHapQCD"}),a=(0,h.useMemo)((()=>e.modules.filter((e=>"modulePromoC"===e.__contentType))),[e]);return e.hide?null:(0,s.jsx)("section",{children:(0,s.jsx)(pa,{variant:"paper-brown",className:"color-black text-center",children:(0,s.jsxs)(pe,{as:w.I,className:"child-spacing-small--4 child-spacing-medium--4 child-spacing--8",children:[(0,s.jsx)(v.R,{children:(0,s.jsxs)(v.C,{span:10,large:8,className:"child-spacing--2",children:[(0,s.jsx)(w.a,{as:"h3",className:"title-1 color-blue",animation:"shortUp",children:t.heading}),(0,s.jsx)(w.a,{animation:"shortUp",delay:.2,children:(0,s.jsx)(w.R,{data:t.body,className:"title-3 text-weight-700"})})]})}),(0,s.jsx)(w.a,{animation:"pop",delay:.4,children:(0,s.jsx)(Lt,{items:a})})]})})})}const me=m.default.article.withConfig({componentId:"pmp-module__sc-85wr6s-0"})(["margin-top:calc(var(--paper-tear-angle) * -1);padding-block:calc(50px + var(--paper-tear-angle,0vw));padding-block-start:calc(var(--paper-tear-angle) * 2.5 + 30px);@media ","{padding-block-start:calc(var(--paper-tear-angle) * 2.5);}"],(0,l.t)("mediumUp")),he=m.default.div.withConfig({componentId:"pmp-module__sc-85wr6s-1"})(["perspective:1850px;"]),ue=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-85wr6s-2"})(["display:grid;padding-block:"," ",";place-items:center;text-align:center;[class^='title-']{text-shadow:0px 4px 4px rgba(0,0,0,0.25);}@media ","{padding-block-end:",";}@media ","{padding-block:",";}"],(0,b.s)(3),(0,b.s)(6),(0,l.t)("mediumUp"),(0,b.s)(7),(0,l.t)("largeUp"),(0,b.s)(7)),ge=m.default.div.withConfig({componentId:"pmp-module__sc-85wr6s-3"})(["inline-size:min(100%,450px);padding-inline:calc(var(--gutter-width) * 0.5);@media ","{padding-inline:0;}"],(0,l.t)("xlargeUp")),fe=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-85wr6s-4"})(["--rotate:",";align-items:flex-end;background-color:",";background:linear-gradient(180deg,#0010a1 0%,rgba(1,17,161,0) 100%),#0012b1;backface-visibility:visible;display:flex;padding-inline:0 !important;perspective:inherit;transform-origin:50% 0;transform:rotateX(var(--rotate));transition:transform "," ",";@media (prefers-reduced-motion:reduce){--rotate:0deg;}@media ","{--rotate:",";background-image:linear-gradient( 90deg,#0010a1 0%,rgba(1,17,161,0) 100% );transform-origin:0 50%;transform:rotateY(var(--rotate));}"],(e=>{let{unfold:t}=e;return t?"0deg":"180deg"}),(0,l.a)("blue"),(0,w.d)(1.5),(0,l.b)("in-out"),(0,l.t)("largeUp"),(e=>{let{unfold:t}=e;return t?"0deg":"-180deg"})),xe=m.default.div.withConfig({componentId:"pmp-module__sc-85wr6s-5"})(["--rotate:",";inline-size:100%;opacity:0;transform-origin:50% 100%;transform:rotateX(var(--rotate));transition:transform 0.4s "," 0s,opacity 0s 0.4s;"," margin-top:auto;@media (prefers-reduced-motion:reduce){opacity:1;transform:none;}"],(e=>{let{reveal:t}=e;return t?"0deg":"-82deg"}),(0,l.b)("back-in"),(e=>{let{reveal:t}=e;return t&&(0,m.css)(["opacity:1;transition-delay:1s,1s;transition-duration:0.5s,0.5s;transition-timing-function:linear,linear;"])})),be=m.default.img.withConfig({componentId:"pmp-module__sc-85wr6s-6"})(["clip-path:inset(0 0 13.36666% 0);@media ","{inline-size:min(100%,422px);}"],(0,l.t)("medium"));function ve(){const{mediumDown:e}=(0,k.u)(),[t,a]=(0,u.YD)(.3,!1,!1),{section:i,content:n}=(0,w.u)({section:"1JWUKERRKBHULAJMWvqQUt",content:"1TMsuA2Pf7VuMi66qX48Gz"});return i.hide?null:(0,s.jsx)("section",{ref:t,children:(0,s.jsx)(me,{as:pa,variant:"dots-yellow",children:(0,s.jsx)(v.R,{children:(0,s.jsx)(v.C,{span:10,large:11,xxlarge:10,children:(0,s.jsxs)(he,{as:v.R,stackMedium:!0,children:[(0,s.jsx)(ue,{span:6,className:"bg-blue",children:(0,s.jsxs)(ge,{className:"child-spacing--2",children:[(0,s.jsx)("h3",{className:"title-2 color-yellow",children:n.heading}),(0,s.jsx)(w.R,{data:n.body,className:"body color-white"})]})}),(0,s.jsx)(fe,{span:6,unfold:a,children:(0,s.jsx)(xe,{as:z.I,width:578,height:470,maxWidth:e?"422px":"100%",className:"center",reveal:a,children:(0,s.jsx)(z.a,{width:566,left:12,top:-50,children:(0,s.jsx)(be,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/mario-map-2x",alt:""})})})})]})})})})})}const we=(0,m.default)(F).attrs({bgColor:"yellow"}).withConfig({componentId:"pmp-module__sc-xmzgj1-0"})(["--alpha:0;--delay:0;--overlap:1rem;--scale:0.5;inline-size:88%;opacity:var(--alpha);padding:20px 32px;margin:calc(var(--overlap) * -1) auto var(--overlap);transform:scale(var(--scale));transition-property:transform,opacity;transition-duration:",";transition-delay:",";transition-timing-function:",";.pmp-module & > * + *{margin-top:4px;}"," @media ","{--overlap:2rem;inline-size:min(80%,470px);padding:28px 40px;}"],(0,w.d)(.4),(0,w.d)("var(--delay)"),(0,l.b)("back-out"),(e=>{let{animate:t}=e;return t&&(0,m.css)(["--alpha:1;--delay:0.4;--scale:1;"])}),(0,l.t)("mediumUp"));function ye(e){let{heading:t,richText:a,video:i,fallback:r}=e,o=(0,n.Z)(e,O);const[l,d]=(0,u.YD)(.3,!0,!1),p=(0,y.J)();return(0,s.jsxs)("div",Z(Z({ref:l},o),{},{children:[(0,s.jsx)(rt,{animate:d,reverse:!d,children:(0,s.jsx)(ea,{children:(0,s.jsx)(aa,{children:(0,s.jsx)(U.o,{src:i,posterImg:r,prefersReducedMotion:p,renderReducedMotionFallback:()=>(0,s.jsx)("img",{src:r,alt:""})})})})}),t&&(0,s.jsxs)(we,{forwardedAs:"div",bgColor:"yellow",animate:d,children:[(0,s.jsx)("h4",{className:"handwriting color-blue",children:t}),a&&(0,s.jsx)(w.R,{data:a,className:"color-black"})]})]}))}ye.propTypes={heading:f().string,richText:f().object,asset:f().object,video:f().string,fallback:f().string};const je=m.default.div.withConfig({componentId:"pmp-module__sc-4ufqxp-0"})(["padding:calc(var(--paper-tear-angle) * 2.5 + ",") 0 calc(var(--paper-tear-angle) * 2.5 + ",");margin:calc(var(--paper-tear-angle) * -1) auto;z-index:2;@media ","{padding:calc(var(--paper-tear-angle) * 2.5) 0 calc(var(--paper-tear-angle) * 2.5 + ",");}@media ","{padding:calc(var(--paper-tear-angle)) 0;}"],(0,b.s)(4),(0,b.s)(8),(0,l.t)("mediumUp"),(0,b.s)(10),(0,l.t)("largeUp")),_e=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-4ufqxp-1"})(["@media ","{block-size:100vh;display:grid;place-content:center;position:sticky;inset-block-start:120px;}"],(0,l.t)("largeUp")),ke=m.default.div.withConfig({componentId:"pmp-module__sc-4ufqxp-2"})(["--max-width:486px;inline-size:min(100%,var(--max-width));margin:0 auto;@media ","{--max-width:384px;margin-block-start:-170px;}@media ","{--max-width:450px;}"],(0,l.t)("largeUp"),(0,l.t)("xlarge")),ze=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-4ufqxp-3"})(["display:flex;flex-direction:column;gap:48px;margin:"," auto 0 !important;inline-size:min(100%,486px);@media ","{margin-block-start:",";}@media ","{gap:0;inline-size:auto;margin:0 !important;}"],(0,b.s)(3),(0,l.t)("largeUp"),(0,b.s)(4),(0,l.t)("largeUp")),Ce=m.default.li.withConfig({componentId:"pmp-module__sc-4ufqxp-4"})(["align-items:center;display:grid;@media ","{block-size:100vh;}"],(0,l.t)("largeUp")),Ie=(0,m.default)(v.R).attrs({stackMedium:!0}).withConfig({componentId:"pmp-module__sc-4ufqxp-5"})(["inset:0;inset-block-start:420px;pointer-events:none;position:absolute;@media ","{inset-block-start:0;}"],(0,l.t)("largeUp")),Ne=(0,m.default)(v.C).attrs({span:6}).withConfig({componentId:"pmp-module__sc-4ufqxp-6"})(["inset:0;position:absolute;@media ","{margin-inline-start:",";position:relative;}@media ","{margin-inline-start:",";}"],(0,l.t)("largeUp"),(e=>{let{theme:t}=e;return(0,b.g)(t,5)}),(0,l.t)("xxlarge"),(e=>{let{theme:t}=e;return(0,b.g)(t,4)})),Ue=m.default.div.withConfig({componentId:"pmp-module__sc-4ufqxp-7"})(["--tile-size:17px;--half-tile-size:calc(var(--tile-size) * 0.5);background-image:radial-gradient( circle at 50%,"," 40%,transparent 43% );background-size:var(--half-tile-size) var(--tile-size);block-size:100%;inline-size:var(--half-tile-size);margin-inline:auto;"],(0,l.a)("white")),Me=(0,m.default)((function(e){const[t,a]=(0,u.YD)(0,!1,!1);return(0,s.jsx)(na,Z(Z({ref:t,animate:a},e),{},{children:(0,s.jsx)(ra,{src:"https://assets.nintendo.com/image/upload/v1713826850/Marketing/pmp-paper-mario-ttyd-197h3odh827n/gameplay/plane-optimised.png",alt:""})}))})).withConfig({componentId:"pmp-module__sc-4ufqxp-8"})(["inline-size:100%;inset-block-end:40vh;inset-inline-start:0;position:absolute;"]);function qe(){const{section:e,content:t,badges:a,badgesVideo:i,badgesThumb:n,specials:r,specialsVideo:o,specialsThumb:l,abilities:d,abilitiesVideo:p,abilitiesThumb:c}=(0,w.u)({section:"31OV4Pts9qrppJNFRd2jy6",content:"5tvYsNnRArHfmjHWYzQYim",badges:"2v9vgd8HX9U2D9gXZ8UMap",badgesVideo:"1S88qLPPzSkieilsN1Lnhr",badgesThumb:"2AEjRpGd2fbazeRiKE16gY",specials:"4jS7Bn33M10iPeeiMs0DG1",specialsVideo:"1A8td6aEaqsjcFhLqF8dLE",specialsThumb:"44k3mel2oQPWSx82K04Lxb",abilities:"mxPX8ugX7aDtWZpCMK3FW",abilitiesVideo:"356qBaOJ3zoaXhaKXnAOOY",abilitiesThumb:"147tiNldmpty145qN6oJ9k"}),m=(0,y.J)(),u=(0,h.useMemo)((()=>[a,r,d]),[a,r,d]),g={"2v9vgd8HX9U2D9gXZ8UMap":{video:i.heading,fallback:n.heading},"4jS7Bn33M10iPeeiMs0DG1":{video:o.heading,fallback:l.heading},mxPX8ugX7aDtWZpCMK3FW:{video:p.heading,fallback:c.heading}};return e.hide?null:(0,s.jsx)("section",{children:(0,s.jsx)(pa,{variant:"paper-blue",className:"color-white text-center relative",children:(0,s.jsxs)(je,{children:[(0,s.jsx)(Ie,{children:(0,s.jsx)(Ne,{children:(0,s.jsx)(Ue,{})})}),(0,s.jsxs)(v.R,{stackMedium:!0,children:[(0,s.jsx)(_e,{span:5,xxlarge:4,children:(0,s.jsxs)(ke,{className:"child-spacing--1",as:w.I,staggerChildren:{animation:"shortUp"},once:!0,children:[(0,s.jsx)("h3",{className:"title-2 color-yellow",children:t.heading}),(0,s.jsx)(w.R,{data:t.body})]})}),(0,s.jsx)(ze,{forwardedAs:"ul",span:6,children:u.map((e=>(0,s.jsx)(Ce,{children:(0,s.jsx)(ye,{heading:e.heading,richText:e.body,video:g[e.__entryId].video,fallback:g[e.__entryId].fallback})},e.__entryId)))})]}),!m&&(0,s.jsx)(Me,{})]})})})}const Oe=m.default.div.withConfig({componentId:"pmp-module__sc-1kjrz9m-0"})(["padding:calc(var(--paper-tear-angle) * 4 + ",") 0 ",";margin-top:calc(var(--paper-tear-angle) * -1);@media screen and (min-width:460px){padding:calc(var(--paper-tear-angle) * 3 + ",") 0 ",";}@media ","{padding:calc(var(--paper-tear-angle) * 2.5 + ",") 0 ",";}"],(0,b.s)(6),(0,b.s)(6),(0,b.s)(4),(0,b.s)(6),(0,l.t)("mediumUp"),(0,b.s)(3),(0,b.s)(7)),Te=(0,m.default)(v.R).attrs({reverse:!0}).withConfig({componentId:"pmp-module__sc-1kjrz9m-1"})(["align-items:flex-start;"]),Pe=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1kjrz9m-2"})(["position:absolute;right:-30px;top:9px;transform:rotate(45deg);width:130px;@media ","{right:-5.3%;top:4%;width:26%;}"],(0,l.t)("mediumUp"));function Se(){const{section:e,content:t}=(0,w.u)({section:"1X4BTlN9bd03IS2LJEQorO",content:"4Co0RwNcffdH0S6g6sdYun"}),a=(0,w.u)([{content:"1KJQGgmhsP4h9pJag9iUof",cloudinaryUrl:"6nOzFb48DzmuHMqJcAsU2L"},{content:"7sSTOOGTntERkU90QXIcRr",cloudinaryUrl:"57ojYIeEZbe47NscCGsFUm"},{content:"7mbl4kE174XQOYusjcFziM",cloudinaryUrl:"2T6b5SJm5iFmxShUVTeaJP"},{content:"7domBVOc2AlOQ9kTWq7mqK",cloudinaryUrl:"3gEgqjnABpFTlZAVcGpz8q"},{content:"imRtuoDDuykKAfirbVA6i",cloudinaryUrl:"2BhVGrYK2GnjVcqYchpq35"},{content:"4Or2LtyPiV5MMOEuFnNSG0",cloudinaryUrl:"3NJ9DsvhMU9BxEwEYpvGMm"},{content:"wjeZJAVFAYqiE5Cj8cGWf",cloudinaryUrl:"5A0vC5vOGV291QNEQshq8Z"},{content:"3kCDxvYjddxSzPL33PZCQt",cloudinaryUrl:"1tYmhPX1JOGjMZSYXSXax7"},{content:"63ToJKYjQQHfjQvnfdzolB",cloudinaryUrl:"21sNZMgXNOhslhZheEXc73"},{content:"2HxzxM0nBeYp2XIy5xP3VP",cloudinaryUrl:"41cZKaAKuMwsQ5k9r7ouW1"}]),i=Object.keys(a).map((e=>[e,a[e]]));return e.hide?null:(0,s.jsx)("section",{children:(0,s.jsx)(pa,{variant:"paper-red",className:"color-white text-center",children:(0,s.jsxs)(Oe,{className:"child-spacing-small--5 child-spacing-medium--6 child-spacing--14",children:[(0,s.jsx)(v.R,{children:(0,s.jsxs)(v.C,{as:w.I,span:10,className:"child-spacing--2",staggerChildren:{animation:"up",stagger:.2},children:[(0,s.jsx)("h3",{className:"title-1 color-yellow",children:t.heading}),(0,s.jsx)(w.R,{data:t.body,className:"title-3"})]})}),(0,s.jsxs)(Te,{forwardedAs:w.I,children:[(0,s.jsxs)(v.C,{as:w.a,animation:"pop",delay:.2,span:7,className:"relative",children:[(0,s.jsx)(ht,{items:i}),(0,s.jsx)(Pe,{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tape/tape-yellow",alt:""})]}),(0,s.jsx)(v.C,{span:3,children:(0,s.jsx)(Qt,{})})]})]})})})}m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1kjrz9m-3"})(["display:block;inline-size:240px;margin-inline:auto;@media ","{inline-size:100%;margin-block-end:",";}"],(0,l.t)("mediumUp"),(0,b.s)(5));const Ee=m.default.div.withConfig({componentId:"pmp-module__sc-1t85z3v-0"})(["padding-top:",";@media ","{padding-top:",";}"],(0,b.s)(7),(0,l.t)("largeUp"),(0,b.s)(12)),We=m.default.div.withConfig({componentId:"pmp-module__sc-1t85z3v-1"})(["display:inline-block;padding:"," ",";position:relative;margin-left:auto;margin-right:auto;&::before{clip-path:polygon( 0 4px,100% 0,calc(100% - 8px) 100%,6px calc(100% - 4px) );content:'';background:#fff;position:absolute;top:0;left:0;height:100%;width:100%;}"],(0,b.s)(3),(0,b.s)(8)),Re=m.default.div.withConfig({componentId:"pmp-module__sc-1t85z3v-2"})(["&&{inline-size:min(100%,1074px);margin-inline:auto;}"]),Xe=(0,m.default)(F).withConfig({componentId:"pmp-module__sc-1t85z3v-3"})(["align-items:center;justify-content:center;display:inline-flex;gap:",";position:absolute;bottom:0;left:50%;transform:translate(-50%,50%);@media ","{gap:",";}"],(0,b.s)(),(0,l.t)("largeUp"),(0,b.s)(2)),De=(0,m.default)(B).withConfig({componentId:"pmp-module__sc-1t85z3v-4"})(["--rotation:0deg;--scale:1;--size:28px;color:",";height:var(--size);position:relative;top:-0.1em;transform:scale(var(--scale)) rotate(var(--rotation));transition:transform "," ",";width:var(--size);@media ","{--size:44px;}"],(0,l.a)("red"),(0,w.d)(.2),(0,l.b)("out"),(0,l.t)("largeUp")),Ye=(0,m.default)(w.V).withConfig({componentId:"pmp-module__sc-1t85z3v-5"})(["display:block;inline-size:100%;@media (hover:hover){&:hover{","{--rotation:-6deg;--scale:1.36;}}}"],De);function He(){const{section:e,content:t,clourdinaryThumb:a,clourdinaryVideo:i}=(0,w.u)({section:"4qKw4YuRN0G5b5BOS5yPGp",content:"6l62zuU5c46KB0CJuHemSx",clourdinaryThumb:"1Q06kbne5KG4DG1ibl4Uxp",clourdinaryVideo:"3bWmXnnQEThPkjgaRlpviD"}),[n,r]=(0,u.YD)();return e.hide?null:(0,s.jsx)("section",{ref:n,children:(0,s.jsxs)(Ee,{as:pa,variant:"dots-yellow",className:"child-spacing-small--2 child-spacing-medium--2 child-spacing--3",children:[(0,s.jsx)(v.R,{verticalCenter:!0,children:(0,s.jsxs)(v.C,{as:w.I,span:10,className:"text-center child-spacing--2 child-spacing-large--3",staggerChildren:{animation:"shortUp",stagger:.2},children:[(0,s.jsx)(We,{children:(0,s.jsx)("h3",{className:"title-2 relative color-blue",children:t.heading})}),(0,s.jsx)(Re,{as:w.R,data:t.body,className:"text-weight-bold body--larger"}),(0,s.jsx)(Ye,{assetPath:i.heading,posterPath:a.heading,dialogLabel:"Paper Mario: The Thousand Year Door. See what's new.",hashId:"",children:(0,s.jsxs)(z.I,{className:"center",height:443,maxWidth:1047,width:1047,children:[(0,s.jsx)(z.a,{width:1047,left:0,top:0,children:(0,s.jsx)(_.I,{assetPath:t.asset.primary.assetPath,alt:t.asset.alt})}),(0,s.jsx)(z.a,{width:670,left:190,top:40,children:(0,s.jsx)(_.I,{assetPath:a.heading,alt:""})}),(0,s.jsxs)(Xe,{bgColor:"blue",className:"handwriting color-white txt-center",children:[t.cta.label,(0,s.jsx)(De,{id:"play"})]})]})})]})}),(0,s.jsx)(Ke,{reveal:r})]})})}const Ze=m.default.div.withConfig({componentId:"pmp-module__sc-1toktdz-0"})(["--color:",";--color-hover:",";--size:40px;background-color:var(--color);block-size:var(--size);clip-path:polygon(0 2%,100% 0,100% 100%,0 98%);color:",";inline-size:var(--size);transition:background-color "," ",";"," @media (hover:hover){&:hover{background-color:var(--color-hover);}}@media ","{--size:",";}"],(e=>{let{$color:t}=e;return(0,l.a)(t)}),(0,l.a)("black"),(0,l.a)("white"),(0,w.d)(.3),(0,l.b)("out"),(e=>{let{$direction:t}=e;return!t&&(0,m.css)(["transform:scaleX(-1);"])}),(0,l.t)("largeUp"),(e=>{let{smaller:t}=e;return t?"52px":"80px"})),Le=(0,m.default)(B).attrs({id:"arrow"}).withConfig({componentId:"pmp-module__sc-1toktdz-1"})(["block-size:100%;inline-size:100%;transform:rotate(0deg) scale(1);transition:transform "," ",";@media (hover:hover){",":hover &{transform:rotate(-6deg) scale(1.1);}}"],(0,w.d)(.2),(0,l.b)("out"),Ze);function Ae(e){let{smaller:t,direction:a,color:i}=e,r=(0,n.Z)(e,T);return(0,s.jsx)(Ze,Z(Z({smaller:t,$color:i,$direction:a},r),{},{children:(0,s.jsx)(Le,{})}))}Ae.defaultProps={color:"red",direction:1},Ae.propTypes={color:f().oneOf(["red","blue"]).isRequired,direction:f().oneOf([0,1]).isRequired,smaller:f().bool};const Ge=(0,m.keyframes)(["0%{transform:rotateX(var(--rotate)) translateY(0);}20%{transform:rotateX(var(--rotate)) translateY(-5%);}30%{transform:rotateX(var(--rotate)) translateY(0%);}40%{transform:rotateX(var(--rotate)) translateY(-3%);}50%,100%{transform:rotateX(var(--rotate)) translateY(0%);}"]),Ve=(0,m.default)(z.a).withConfig({componentId:"pmp-module__sc-w2eckp-0"})(["--rotate:",";transform:rotateX(var(--rotate));transform-origin:bottom;transition:transform 0.4s "," 0s;"," "," ",""],(e=>{let{reveal:t}=e;return t?"0deg":"-90deg"}),(0,l.b)("back-in"),(e=>{let{reveal:t,delay:a}=e;return t&&(0,m.css)(["animation:"," "," infinite;animation-delay:0.5s;transition-delay:","s;transition-duration:",";transition-timing-function:",";"],Ge,(0,w.d)(2),a,(0,w.d)(1.6),(0,l.b)("spring"))}),(e=>{let{minWidth:t}=e;return t&&(0,m.css)(["top:20px;position:relative;left:-75px;min-width:calc(100% + 150px);"])}),(e=>{let{displayMedium:t}=e;return t&&(0,m.css)(["display:none;@media ","{display:block;}@media ","{display:none;}"],(0,l.t)("mediumUp"),(0,l.t)("largeUp"))})),Fe=(0,m.default)(z.I).withConfig({componentId:"pmp-module__sc-w2eckp-1"})(["display:none;@media ","{display:block;}"],(0,l.t)("largeUp")),Je=(0,m.default)(z.I).withConfig({componentId:"pmp-module__sc-w2eckp-2"})(["display:block;@media ","{display:none;}"],(0,l.t)("mediumUp"));function $e(e){let{reveal:t}=e;return(0,s.jsxs)(Fe,{width:1440,height:226,maxWidth:"1793px",className:"center",as:z.I,children:[(0,s.jsx)(Ve,{as:z.a,reveal:t,width:433,left:-97,top:15,delay:.6,children:(0,s.jsx)(_.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-left-2x.png"})}),(0,s.jsx)(Ve,{as:z.a,reveal:t,width:918,left:256,top:15,delay:.8,children:(0,s.jsx)(_.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-center-2x.png"})}),(0,s.jsx)(Ve,{as:z.a,reveal:t,width:443,left:1094,top:15,delay:.7,children:(0,s.jsx)(_.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-right-2x.png"})})]})}function Be(e){let{reveal:t}=e;return(0,s.jsx)(Ve,{as:_.I,reveal:t,delay:.8,assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-center-2x.png",minWidth:763,displayMedium:!0})}function Qe(e){let{reveal:t}=e;return(0,s.jsxs)(Je,{as:z.I,width:375,height:197,maxWidth:"500px",className:"center",children:[(0,s.jsx)(Ve,{as:z.a,reveal:t,width:377,left:-100,top:15,delay:.7,children:(0,s.jsx)(_.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-left-2x.png"})}),(0,s.jsx)(Ve,{as:z.a,reveal:t,width:387,left:100,top:20,delay:.8,children:(0,s.jsx)(_.I,{assetPath:"/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/audience-right-2x.png"})})]})}function Ke(e){let{reveal:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($e,{reveal:t}),(0,s.jsx)(Be,{reveal:t}),(0,s.jsx)(Qe,{reveal:t})]})}$e.propTypes={reveal:f().bool},Be.propTypes={reveal:f().bool},Qe.propTypes={reveal:f().bool},Ke.propTypes={reveal:f().bool};const et=(0,m.keyframes)(["0%{mask-position:0 0;}100%{mask-position:0 100%;}"]),tt=(0,m.keyframes)(["0%{background-position:0% 0%;}100%{background-position:0% 100%;}"]),at=m.default.div.withConfig({componentId:"pmp-module__sc-xevlnf-0"})(["",";aspect-ratio:16 / 9;mask-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/sprite');mask-mode:alpha;mask-position:0 0;mask-size:100% 700%;overflow:hidden;position:relative;",""],j.w,(e=>{let{animate:t}=e;return t&&(0,m.css)(["animation:"," 0.5s steps(6,end) forwards;"],et)})),it=m.default.div.withConfig({componentId:"pmp-module__sc-xevlnf-1"})(["height:100%;object-fit:cover;width:100%;"]),nt=m.default.div.withConfig({componentId:"pmp-module__sc-xevlnf-2"})(["background-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/overlay');background-position:0% 0%;background-size:100% auto;width:100%;height:100%;position:absolute;inset:0;z-index:1;",""],(e=>{let{animate:t}=e;return t&&(0,m.css)(["animation:"," 0.5s steps(6,end) forwards;"],tt)}));function rt(e){let{animate:t,className:a,children:i}=e,r=(0,n.Z)(e,P);return(0,y.J)()?(0,s.jsx)("div",Z(Z({},r),{},{children:i})):(0,s.jsxs)(at,Z(Z({className:a},r),{},{animate:t,children:[(0,s.jsx)(it,{children:i}),(0,s.jsx)(nt,{animate:t})]}))}rt.propTypes=Z({},x.c);const ot=m.default.div.withConfig({componentId:"pmp-module__sc-fa443g-0"})(["height:30px;position:relative;"]);function st(){return(0,s.jsx)(ot,{as:pa,variant:"vintage-tile"})}const lt=(0,m.default)(F).withConfig({componentId:"pmp-module__sc-7f8btz-0"})(["flex:1 1 100%;justify-content:center;text-align:center;transform:none;"]);function dt(e){const t=(0,I.d5)();if(!t)throw new Error("Must be used within a ");const a=t.galleryItems[t.activeIndex][1]?.content.heading;return a?(0,s.jsx)(lt,Z(Z({bgColor:"yellow",className:"color-blue handwriting"},e),{},{children:a})):null}const pt=m.default.div.withConfig({componentId:"pmp-module__sc-1tj55hs-0"})(["",";position:relative;touch-action:pan-y;.gallery{--item-width:100%;--gap:0;display:grid;grid-template-areas:'main';justify-items:center;}.gallery__main{grid-area:main;z-index:0;}"],N.w),ct=m.default.div.withConfig({componentId:"pmp-module__sc-1tj55hs-1"})(["opacity:0;transition:opacity "," linear;transform:none;",""],(0,w.d)(.4),(e=>{let{active:t}=e;return t&&(0,m.css)(["opacity:1;"])})),mt=m.default.div.withConfig({componentId:"pmp-module__sc-1tj55hs-2"})(["align-self:end;display:flex;gap:",";inline-size:92%;justify-content:center;justify-self:center;transform:translateY(-60%);@media ","{inline-size:min(83.7%,672px);}"],(0,b.s)(),(0,l.t)("mediumUp"));function ht(e){let{items:t}=e,a=(0,n.Z)(e,S);const{text:i}=(0,C.useLocalizer)();return(0,s.jsx)(pt,Z(Z({},a),{},{children:(0,s.jsxs)(I.ri,{items:t,ariaLiveText:i("Active gallery item: $i of $t."),loop:!0,children:[(0,s.jsx)(Vt,{children:(0,s.jsx)(I.nH,{renderGalleryItem:e=>{let{active:t,index:a,item:i}=e;return(0,s.jsx)(ct,{as:I.Lm,index:a,active:t,children:(0,s.jsx)(ea,{children:(0,s.jsx)(aa,{children:(0,s.jsx)("img",{className:"block",src:i[1].cloudinaryUrl.heading,alt:"",loading:"lazy"})})})},i.__entryId)}})}),(0,s.jsxs)(mt,{children:[(0,s.jsxs)(I.__,{direction:0,children:[(0,s.jsx)(Ae,{direction:0,color:"blue",smaller:!0}),(0,s.jsx)(p.S,{children:i("Previous gallery item")})]}),(0,s.jsx)(dt,{}),(0,s.jsxs)(I.__,{direction:1,children:[(0,s.jsx)(Ae,{direction:1,color:"blue",smaller:!0}),(0,s.jsx)(p.S,{children:i("Next gallery item")})]})]})]})}))}ht.propTypes={items:f().array};const ut=(0,m.css)(["display:grid;grid-template-areas:'top' 'bottom';grid-template-rows:300px 300px;@media ","{grid-template-areas:'left right';grid-template-columns:50% 50%;grid-template-rows:min(40vw,400px);}"],(0,l.t)("mediumUp")),gt=m.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-0"})(["grid-area:book;"]),ft=m.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-1"})(["",";opacity:0;pointer-events:none;transition:opacity ",";",""],ut,(0,w.d)(.6),(e=>{let{active:t}=e;return t&&(0,m.css)(["opacity:1;pointer-events:all;"])})),xt=m.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-2"})(["display:grid;gap:8px;grid-area:top;margin-inline:auto;max-inline-size:min(100%,450px);opacity:",";padding:24px;place-content:center;transition:opacity ",";transition-delay:",";@media ","{grid-area:left;}"],(e=>{let{characterState:t}=e;return"enter"===t?1:0}),(0,w.d)(.4),(e=>{let{characterState:t}=e;return"enter"===t?0:(0,w.d)(.25)}),(0,l.t)("mediumUp")),bt=m.default.div.withConfig({componentId:"pmp-module__sc-1t63bc-3"})(["grid-area:bottom;@media ","{grid-area:right;}"],(0,l.t)("mediumUp")),vt=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-1t63bc-4"})(["object-fit:contain;position:relative;top:-10%;user-select:none;&&{block-size:120%;inline-size:100%;}",""],(e=>{let{characterState:t}=e;return"enter"===t?(0,m.css)(["opacity:1;transform:scale(1);transition-property:transform,opacity;transition-duration:",";transition-timing-function:",";"],(0,w.d)(.4),(0,l.b)("back-out")):(0,m.css)(["opacity:0;transform:scale(0);transition-property:transform,opacity;transition-duration:0.3s;transition-timing-function:",";"],(0,l.b)("back-in"))}));function wt(e){let{characterState:t}=e;return(0,s.jsx)(gt,{as:I.nH,renderGalleryItem:e=>{let{active:a,index:i,item:n}=e;return(0,s.jsxs)(ft,{as:I.Lm,index:i,active:a,children:[(0,s.jsxs)(xt,{characterState:t,children:[(0,s.jsx)("h4",{className:"title-2 color-blue",children:n.heading}),(0,s.jsx)(w.R,{data:n.body,className:"body--larger text-weight-bold"})]}),(0,s.jsx)(bt,{children:(0,s.jsx)(vt,{characterState:t,src:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${n.asset.primary.assetPath.split(".").shift()}`,alt:""})})]},n.__entryId)}})}wt.propTypes={characterState:f().oneOf(["enter","exit"]).isRequired};const yt=m.default.button.withConfig({componentId:"pmp-module__sc-yaqc71-0"})(["appearance:none;background:none;border-radius:0;border:0;cursor:pointer;margin:0;padding:0;filter:drop-shadow(0px 6px 20px rgba(0,0,0,0.2));"]);function jt(e){let{direction:t,setCharacterState:a}=e,i=(0,n.Z)(e,E);const r=(0,y.J)(),{text:o}=(0,C.useLocalizer)(),{next:l,previous:d}=(0,I.d5)(),c=(0,h.useCallback)((()=>{const e=r?0:Ht,i=new CustomEvent("bookflipstart"),n=new CustomEvent("bookflipend"),o=new CustomEvent("flipnext"),s=new CustomEvent("flipprevious");window.dispatchEvent(i),a(Zt.EXIT),setTimeout((()=>{t?(l(),window.dispatchEvent(o)):(d(),window.dispatchEvent(s))}),.5*e),setTimeout((()=>{window.dispatchEvent(n),a(Zt.ENTER)}),e)}),[t,l,r,d,a]);return(0,s.jsxs)(yt,Z(Z({onClick:c},i),{},{children:[(0,s.jsx)(Ae,{direction:t,color:"red"}),(0,s.jsx)(p.S,{children:o(t?"Next gallery item":"Previous gallery item")})]}))}jt.propTypes={direction:f().number.isRequired,setCharacterState:f().func.isRequired};const _t=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-0"})(["."," &&{position:absolute;width:100%;height:50%;top:0;left:0;background:linear-gradient(-180deg,rgb(255,255,255) 0%,#f9f3ec 100%);@media ","{background:linear-gradient(90deg,rgba(255,255,255) 0%,#f9f3ec 100%);width:50%;height:100%;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,l.t)("mediumUp")),kt=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-1"})(["",";box-shadow:0px 6px 20px 0px rgba(0,0,0,0.2);grid-area:book;perspective:1850px;position:relative;"],ut),zt=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-1adz5tk-2"})(["."," &&{--rotate:0deg;background:linear-gradient(-180deg,rgb(255,255,255) 0%,#f9f3ec 100%);transform-style:preserve-3d;transform-origin:bottom;transform:rotateX(var(--rotate));transition:none;position:relative;z-index:1;padding-inline:0;"," @media ","{background:linear-gradient(90deg,rgba(255,255,255) 0%,#f9f3ec 100%);transform-origin:right;transform:rotateY(var(--rotate));","}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{flipPrevious:t}=e;return t&&(0,m.css)(["--rotate:-180deg;transition:transform;transition-duration:",";"],(0,w.d)("var(--flip-duration)"))}),(0,l.t)("mediumUp"),(e=>{let{flipPrevious:t}=e;return t&&(0,m.css)(["--rotate:179deg;"])})),Ct=(0,m.default)(v.C).withConfig({componentId:"pmp-module__sc-1adz5tk-3"})(["."," &&{--rotate:0deg;display:grid;grid-area:bottom;grid-template-areas:'a';padding:0;transform-origin:50% 0;transform-style:preserve-3d;transform:rotateX(var(--rotate));transition:none;"," @media ","{grid-area:right;transform-origin:0 50%;transform:rotateY(var(--rotate));","}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{flipNext:t}=e;return t&&(0,m.css)(["--rotate:179deg;transition:transform;transition-duration:",";transition-timing-function:",";"],(0,w.d)("var(--flip-duration)"),(0,l.b)("in-out"))}),(0,l.t)("mediumUp"),(e=>{let{flipNext:t}=e;return t&&(0,m.css)(["--rotate:-180deg;"])})),It=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-4"})(["background-color:",";backface-visibility:hidden;grid-area:a;display:grid;grid-template-areas:'inner';transform:translateZ(0);"],(0,l.a)("white")),Nt=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-5"})(["."," &&{background:linear-gradient(0deg,rgba(255,255,255,0) 0%,#f9f3ec 100%);grid-area:a;transform:translateZ(-1px);@media ","{background:linear-gradient( -90deg,rgba(255,255,255,0) 0%,#f9f3ec 100% );}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(0,l.t)("mediumUp")),Ut=(0,m.css)(["--inset:",";--size:calc(100% - var(--inset) * 2);block-size:var(--size);border-radius:20px;border:4px solid ",";inline-size:var(--size);margin:var(--inset) var(--inset);"],(0,b.s)(3),(0,l.a)("yellow")),Mt=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-6"})(["",";grid-area:inner;",""],Ut,(e=>{let{reverse:t}=e;return t&&(0,m.css)(["transform:translateZ(-1px);"])})),qt=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-7"})(["background-color:",";transform:translateZ(-1px);position:absolute;left:0;top:0;width:100%;height:100%;"],(0,l.a)("white")),Ot=m.default.div.withConfig({componentId:"pmp-module__sc-1adz5tk-8"})(["."," &&{",";grid-area:bottom;@media ","{grid-area:right;}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),Ut,(0,l.t)("mediumUp"));function Tt(e){const{0:t,1:a}=(0,h.useState)(!1),{0:i,1:n}=(0,h.useState)(!1);return(0,h.useEffect)((()=>{function e(){a(!0)}function t(){n(!0)}function i(){setTimeout((()=>{a(!1),n(!1)}),500)}return window.addEventListener("flipnext",e),window.addEventListener("flipprevious",t),window.addEventListener("bookflipend",i),()=>{window.removeEventListener("flipnext",e),window.removeEventListener("flipprevious",t),window.removeEventListener("bookflipend",i)}})),(0,s.jsxs)(kt,Z(Z({className:"bg-white"},e),{},{children:[(0,s.jsx)(_t,{}),(0,s.jsxs)(zt,{span:6,flipPrevious:i,children:[(0,s.jsx)(qt,{}),(0,s.jsx)(Mt,{reverse:!0})]}),(0,s.jsxs)(Ct,{span:6,className:"bg-white",flipNext:t,children:[(0,s.jsx)(It,{children:(0,s.jsx)(Mt,{})}),(0,s.jsx)(Nt,{})]}),(0,s.jsx)(Ot,{})]}))}const Pt=m.default.ul.withConfig({componentId:"pmp-module__sc-hqteg6-0"})(["display:flex;gap:",";padding:0;grid-area:pagination;list-style-type:none;margin:0;"],(0,b.s)()),St=m.default.span.withConfig({componentId:"pmp-module__sc-hqteg6-1"})(["background:",";clip-path:polygon(0 2%,100% 0,94% 100%,0 97%);inset:0;position:absolute;transition:background-color "," linear;"],(0,l.a)("white"),(0,w.d)(.2)),Et=m.default.li.withConfig({componentId:"pmp-module__sc-hqteg6-2"})(["--size:",";block-size:var(--size);inline-size:var(--size);position:relative;transition:inline-size "," ",";",""],(0,b.s)(2),(0,w.d)(.3),(0,l.b)("in-out"),(e=>{let{active:t}=e;return t&&(0,m.css)(["inline-size:",";","{background:",";}"],(0,b.s)(5),St,(0,l.a)("blue"))}));function Wt(){const{galleryItems:e,activeIndex:t}=(0,I.d5)(),{text:a}=(0,C.useLocalizer)();return(0,s.jsx)(Pt,{"aria-hidden":"true",children:e.map(((e,i)=>{let{id:n,heading:r}=e;return(0,s.jsxs)(Et,{active:i===t,children:[(0,s.jsx)(St,{}),(0,s.jsx)(p.S,{children:`${a("Gallery item")} ${i+1}: ${r}`})]},n)}))})}const Rt=m.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-0"})(["",";position:relative;touch-action:pan-y;"],N.w),Xt=m.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-1"})(["."," &&{--flip-duration:",";--item-width:100%;--gap:0;display:grid;gap:",";grid-template-rows:1fr 16px;grid-template-areas:'main' 'pagination';inline-size:min(100%,1316px);justify-items:center;margin-inline:auto;@media ","{gap:",";}}"],(e=>{let{theme:t}=e;return t.pmp.namespace}),(e=>{let{pageFlipDuration:t}=e;return t}),(0,b.s)(4),(0,l.t)("largeUp"),(0,b.s)(5)),Dt=m.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-2"})(["align-content:center;display:flex;grid-area:main;inline-size:100%;"]),Yt=m.default.div.withConfig({componentId:"pmp-module__sc-1lz3qig-3"})(["display:grid;flex:1 1 100%;grid-template-areas:'book';z-index:3;"]),Ht=1e3,Zt={ENTER:"enter",EXIT:"exit"};function Lt(e){let{items:t}=e,a=(0,n.Z)(e,W);const{text:i}=(0,C.useLocalizer)(),r=(0,y.J)(),{0:o,1:l}=(0,h.useState)(Zt.ENTER);return(0,s.jsx)(Rt,Z(Z({},a),{},{children:(0,s.jsxs)(Xt,{as:I.ri,items:t,ariaLiveText:i("Active gallery item: $i of $t."),pageFlipDuration:r?0:.001*Ht,loop:!0,children:[(0,s.jsxs)(Dt,{children:[(0,s.jsx)(jt,{direction:0,setCharacterState:l}),(0,s.jsxs)(Yt,{children:[(0,s.jsx)(Tt,{}),(0,s.jsx)(wt,{characterState:o})]}),(0,s.jsx)(jt,{direction:1,setCharacterState:l})]}),(0,s.jsx)(Wt,{})]})}))}Lt.propTypes={items:f().array};const At=e=>{let{id:t}=e,a=(0,n.Z)(e,R);return{arrow:(0,s.jsx)(c.S,Z(Z({},a),{},{id:"arrow",width:52,height:52,children:(0,s.jsx)("path",{fill:"currentColor",d:"M43 26.14 25.71 39.33l.22-9.15-13.94 2.24L11 20.61l15.07 1.71-.41-9.65L43 26.14z"})})),play:(0,s.jsxs)(c.S,Z(Z({},a),{},{id:"play",width:28,height:28,children:[(0,s.jsx)("circle",{cx:"14",cy:"14",r:"14",fill:"currentColor"}),(0,s.jsx)("path",{d:"M21 14.0644L10.0274 20L10 8L21 14.0644Z",fill:"white"})]}))}[t]},Gt=()=>(0,s.jsx)(p.S,{children:(0,s.jsxs)("svg",{"aria-hidden":"true",children:[(0,s.jsx)("defs",{children:At({id:"arrow"})}),(0,s.jsx)("defs",{children:At({id:"play"})})]})}),Vt=m.default.div.withConfig({componentId:"pmp-module__sc-cfseng-0"})(["background-color:",";clip-path:polygon(0 0.6%,100% 0,99.5% 100%,0.8% 99%);padding:2%;"],(0,l.a)("white")),Ft=(0,m.keyframes)(["0%{opacity:1;transform:translateX(var(--start-x));}99.9%{opacity:1;transform:translateX(0);}100%{opacity:0;transform:translateX(0);}"]),Jt=m.default.div.withConfig({componentId:"pmp-module__sc-6l5xwa-0"})(["--start-x:-300%;inline-size:min(100%,210px);margin-inline:auto;position:relative;@media ","{inline-size:auto;}@media ","{--start-x:-200%;--walk-duration:1.32s !important;}"],(0,l.t)("mediumUp"),(0,l.t)("xlargeUp")),$t=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-6l5xwa-1"})(["opacity:0;"," @media ","{&&{max-width:none;}}"],(e=>{let{show:t}=e;return t&&(0,m.css)(["opacity:1;transition:opacity 0s calc(var(--walk-duration) - 0.01s);"])}),(0,l.t)("mediumUp")),Bt=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-6l5xwa-2"})(["inline-size:115%;inset-block-start:-2.5%;inset-inline-start:-7.5%;position:absolute;transform:translateX(var(--start-x));&&{max-width:none;}"," @media ","{inset-inline-start:-4.5%;inline-size:auto;}"],(e=>{let{walk:t}=e;return t&&(0,m.css)(["animation:"," var(--walk-duration) linear 1 forwards;"],Ft)}),(0,l.t)("mediumUp"));function Qt(){const[e,t]=(0,u.YD)(0,!1,!1),a=(0,y.J)(),i=a?0:"2s";return(0,s.jsxs)(Jt,{ref:e,style:{"--walk-duration":i},children:[(0,s.jsx)($t,{src:"https://assets.nintendo.com/image/upload/q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/mario_idle.webp",alt:"",show:t}),!a&&(0,s.jsx)(Bt,{src:"https://assets.nintendo.com/image/upload/q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/mario_walk.webp",alt:"",walk:t})]})}const Kt=m.default.div.withConfig({componentId:"pmp-module__sc-1q3tokx-0"})(["display:grid;grid-template-areas:'main';inline-size:100%;position:relative;"]);function ea(e){let{children:t,className:a}=e,i=(0,n.Z)(e,X);return(0,s.jsx)(Kt,Z(Z({className:(0,b.c)([a])},i),{},{children:t}))}ea.propTypes=x.c;const ta=m.default.div.withConfig({componentId:"pmp-module__sc-9tkri3-0"})(["grid-area:main;"]);function aa(e){let{children:t,className:a}=e,i=(0,n.Z)(e,D);return(0,s.jsx)(ta,Z(Z({className:(0,b.c)([a])},i),{},{children:t}))}aa.propTypes={children:f().oneOfType([f().node,f().arrayOf(f().node)]),className:f().string};const ia=(0,m.keyframes)(["0%{transform:translateX(var(--plane-size)) translateY(0);}40%,100%{transform:translateX(-100%) translateY(10vw);}"]),na=m.default.div.withConfig({componentId:"pmp-module__sc-qf6j4-0"})(["--plane-size:250px;display:flex;justify-content:flex-end;",";"],(e=>{let{animate:t}=e;return t&&(0,m.css)(["animation:"," 8s linear infinite forwards;"],ia)})),ra=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-qf6j4-1"})(["inline-size:var(--plane-size);transform:rotate(5deg);"]);const oa=m.default.div.withConfig({componentId:"pmp-module__sc-1cjqkeg-0"})(["background-color:",";background-image:url(",");background-repeat:repeat;background-size:",";"],(e=>{let{bgColor:t}=e;return(0,l.a)(t)}),(e=>{let{bgTile:t}=e;return t}),(e=>{let{bgSize:t}=e;return t})),sa="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/dots-transparent-dark",la="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/stripes-transparent-dark",da=new Map([["dots-red",{color:"red",image:sa,cssSize:"40px"}],["dots-yellow",{color:"yellow",image:sa,cssSize:"40px"}],["stripes-green",{color:"green",image:la,cssSize:"45px"}],["stripes-blue",{color:"blue",image:la,cssSize:"45px"}],["stripes-yellow",{color:"yellow",image:la,cssSize:"45px"}],["vintage-tile",{color:"tan",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/divider-vintage-tile-2x",cssSize:"42px 30px"}],["paper-blue",{color:"blue",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/paper-blue",cssSize:"500px"}],["paper-brown",{color:"tan",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/paper-brown",cssSize:"750px"}],["paper-red",{color:"red",image:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/paper-red",cssSize:"500px"}]]);function pa(e){let{variant:t,children:a,className:i}=e,r=(0,n.Z)(e,Y);const o=(0,h.useMemo)((()=>da.get(t)),[t]);return(0,s.jsx)(oa,Z(Z({className:(0,b.c)([i]),bgColor:o.color,bgTile:o.image,bgSize:o.cssSize},r),{},{children:a}))}pa.propTypes={variant:f().oneOf(da.keys()).isRequired,children:f().oneOfType([f().node,f().arrayOf(f().node)]),className:f().string};const ca="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-s-2x",ma="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-m-2x",ha="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-l-2x",ua="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/backgrounds/map-xl-2x",ga=(0,m.keyframes)(["0%{clip-path:polygon(0 0,100% 0,100% 100%,0% 100%);opacity:1;}99%{opacity:1;}100%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%);opacity:0;}"]),fa=(0,m.keyframes)(["0%{transform:translateX(0);}100%{transform:translateX(100%);}"]),xa=(0,m.keyframes)(["0%{transform:scaleX(1) scaleY(1);}100%{transform:scaleX(2) scaleY(1);}"]),ba=m.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-0"})(["width:100%;position:relative;text-align:center;max-height:420px;z-index:2;transform:",";&::before{clip-path:polygon( 0 var(--paper-tear-angle),100% 0%,100% calc(100% - var(--paper-tear-angle)),0% 100% );content:'';position:absolute;inline-size:100%;block-size:100%;top:0;left:0;",";}"],(e=>{let{reverse:t}=e;return t?"scaleX(-1)":""}),(e=>{let{background:t}=e;switch(t){case"map":return(0,m.css)(["background-image:url(",");background-size:cover;background-position:center;@media ","{background-image:url(",");}@media ","{background-image:url(",");}@media ","{background-image:url(",");}"],ca,(0,l.t)("mediumUp"),ma,(0,l.t)("largeUp"),ha,(0,l.t)("xlargeUp"),ua);case"dots":return(0,m.css)(["background-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/dots-transparent-dark');background-repeat:repeat;background-size:40px;background-color:",";"],(0,l.a)("red"));case"stripes":return(0,m.css)(["background-image:url('https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/patterns/stripes-transparent-dark');background-repeat:repeat;background-size:45px;background-color:",";"],(0,l.a)("green"))}})),va=m.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-1"})(["position:relative;"," ",""],(e=>{let{hasChildren:t}=e;return!t&&(0,m.css)(["padding-top:calc(var(--paper-tear-angle) * 3);padding-bottom:calc(var(--paper-tear-angle) * 3);min-height:393px;"])}),(e=>{let{reverse:t}=e;return t&&(0,m.css)(["transform:scaleX(-1);"])})),wa=m.default.img.attrs({loading:"lazy"}).withConfig({componentId:"pmp-module__sc-r8x6nq-2"})(["inline-size:100%;position:absolute;left:0;"," ",""],(e=>{let{top:t}=e;return t&&(0,m.css)(["filter:drop-shadow(0px 15px 30px rgba(0,0,0,0.25));top:calc(var(--paper-tear-angle) / 2 * -1);"])}),(e=>{let{bottom:t}=e;return t&&(0,m.css)(["filter:drop-shadow(0px -15px 30px rgba(0,0,0,0.25));bottom:calc(var(--paper-tear-angle) / 2 * -1);"])})),ya=m.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-3"})(["--rotation:-3deg;transform:rotate(var(--rotation));position:absolute;height:calc(100% + (var(--paper-tear-angle) * 2.5));width:calc(100vw + 200px);top:calc(var(--paper-tear-angle) * -1.25);left:-100px;@media ","{height:calc(100% + (var(--paper-tear-angle) * 2));top:calc(var(--paper-tear-angle) * -1);}",""],(0,l.t)("mediumUp"),(e=>{let{reveal:t}=e;return t&&(0,m.css)(["animation:"," calc(var(--paper-tear-duration) * 1s) ease-in forwards;"],ga)})),ja=m.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-4"})(["position:absolute;width:100%;left:0;top:5%;height:90%;"]),_a=m.default.div.withConfig({componentId:"pmp-module__sc-r8x6nq-5"})(["width:100%;height:100%;",""],(e=>{let{reveal:t}=e;return t&&(0,m.css)(["animation:"," calc(var(--paper-tear-duration) * 1s) ease-in forwards;"],fa)})),ka=m.default.svg.withConfig({componentId:"pmp-module__sc-r8x6nq-6"})(["filter:drop-shadow(5px 0px 2px rgba(0,0,0,0.2));display:block;left:0;position:absolute;top:0;width:60px;height:100%;",""],(e=>{let{reveal:t}=e;return t&&(0,m.css)(["animation:"," calc(var(--paper-tear-duration) * 1s) ease-in forwards;"],xa)})),za="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-s-v1-2x",Ca="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-m-2x",Ia="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-l-2x",Na="https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/tears/ripped-edge-xl-2x";function Ua(e){let{children:t,background:a,reverse:i,variant:n,color:r}=e;const{mediumUp:o,largeUp:l,xlargeUp:d}=(0,k.u)(),{0:p,1:c}=(0,h.useState)(),[m,g]=(0,u.YD)(),f=(0,y.J)();return(0,h.useEffect)((()=>{switch(!0){case d:c(Na);break;case l:c(Ia);break;case o:c(Ca);break;default:c(za)}}),[o,l,d]),(0,s.jsxs)(ba,{background:a,reverse:i,ref:m,children:[(0,s.jsx)(wa,{src:p,alt:"",loading:"lazy",top:!0}),(0,s.jsx)(va,{reverse:i,hasChildren:t,children:t}),(0,s.jsx)(wa,{src:p,alt:"",loading:"lazy",bottom:!0}),!f&&(0,s.jsxs)(ya,{reveal:g,children:[(0,s.jsx)(ja,{as:pa,variant:n}),(0,s.jsx)(_a,{variant:n,reveal:g,children:(0,s.jsxs)(ka,{fill:"none",xmlns:"http://www.w3.org/2000/svg",reveal:g,viewBox:"0 0 58 489",preserveAspectRatio:"none",children:[(0,s.jsx)("path",{d:"M0 16.994S10.136 2.376 28.437.427C53.2-2.21 58 8.223 58 8.223l-.563 469.412s-10.152 9.068-27.592 11.015C12.388 490.599 0 483.778 0 483.778V16.993z",fill:r}),(0,s.jsx)("path",{d:"M0 16.994S10.136 2.376 28.437.427C53.2-2.21 58 8.223 58 8.223l-.563 469.412s-10.152 9.068-27.592 11.015C12.388 490.599 0 483.778 0 483.778V16.993z",fill:r})]})})]})]})}Ua.propTypes={children:f().oneOfType([f().node,f().arrayOf(f().node)]),background:f().string,reverse:f().bool,variant:f().string,color:f().string};const Ma=(0,m.default)(w.a).withConfig({componentId:"pmp-module__sc-11o6iqu-0"})(["--show-delay:calc(var(--paper-tear-duration) - 0.5);"]),qa=(0,m.default)(w.a).withConfig({componentId:"pmp-module__sc-11o6iqu-1"})(["--show-delay:calc(var(--paper-tear-duration) - 1);"]),Oa={width:375,height:260,maxWidth:"100%",peach:{width:172,top:40,left:-10},bowser:{width:393,top:-20,left:140}},Ta={width:565,height:245,maxWidth:"100%",peach:{width:172,top:28,left:30},bowser:{width:393,top:-45,left:180}},Pa={width:1038,height:410,maxWidth:"1038px",peach:{width:330,top:-5,left:-10},bowser:{width:684,top:-100,left:354}};function Sa(){const{mediumUp:e,largeUp:t}=(0,k.u)(),{0:a,1:i}=(0,h.useState)(Oa);return(0,h.useEffect)((()=>{switch(!0){case t:i(Pa);break;case e:i(Ta);break;default:i(Oa)}}),[e,t]),(0,s.jsxs)(z.I,{as:w.I,width:a.width,height:a.height,maxWidth:a.maxWidth,className:"center",once:!0,children:[(0,s.jsx)(Ma,{forwardedAs:z.a,as:w.a,width:a.peach.width,left:a.peach.left,top:a.peach.top,animation:"fade",children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/peach-cropped-2x",alt:"",loading:"lazy"})}),(0,s.jsx)(qa,{forwardedAs:z.a,as:w.a,width:a.bowser.width,left:a.bowser.left,top:a.bowser.top,animation:"fade",children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/bowser-cropped-2x.png",alt:"",loading:"lazy"})})]})}const Ea=(0,m.default)(z.a).withConfig({componentId:"pmp-module__sc-w6eln4-0"})(["clip-path:polygon(0 0,100% 0,100% calc(100% - 40px),0% 100%);transform:translateY(5%);opacity:0;transition:opacity 0.4s ease,transform 0.4s ease;transition-delay:",";",""],(0,w.d)("calc(var(--paper-tear-duration) - 0.8)"),(e=>{let{reveal:t}=e;return t&&(0,m.css)(["opacity:1;transform:translateY(0);"])})),Wa={width:375,height:240,maxWidth:"100%",char:{width:480,top:-60,left:-30,noMaxWidth:!0}},Ra={width:640,height:275,maxWidth:"100%",char:{width:566,top:-100,left:40,noMaxWidth:!1}},Xa={width:1230,height:420,maxWidth:"1230px",char:{width:1038,top:-230,left:0,noMaxWidth:!1}};function Da(){const{mediumUp:e,largeUp:t}=(0,k.u)(),{0:a,1:i}=(0,h.useState)(Wa),[n,r]=(0,u.YD)(.3,!0,!0);return(0,h.useEffect)((()=>{switch(!0){case t:i(Xa);break;case e:i(Ra);break;default:i(Wa)}}),[e,t]),(0,s.jsx)("div",{ref:n,children:(0,s.jsx)(z.I,{className:"center",height:a.height,maxWidth:a.maxWidth,width:a.width,children:(0,s.jsx)(Ea,{as:z.a,width:a.char.width,left:a.char.left,top:a.char.top,noMaxWidth:a.char.noMaxWidth,reveal:r,children:(0,s.jsx)("img",{src:"https://assets.nintendo.com/image/upload/f_auto,q_auto/Marketing/pmp-paper-mario-ttyd-197h3odh827n/characters/hooktail-cropped-2x",alt:"",loading:"lazy"})})})})}var Ya=e=>(0,s.jsxs)(l.P,{customTheme:L,pageProps:e,i18n:(0,d.m)({}),children:[(0,s.jsx)(o(),{children:(0,s.jsx)("link",{rel:"stylesheet",href:"https://use.typekit.net/wvf2hrc.css"})}),(0,s.jsx)(Gt,{}),(0,s.jsx)(A,{}),(0,s.jsx)(G,{}),(0,s.jsx)(de,{}),(0,s.jsx)(Ua,{background:"map",variant:"stripes-blue",color:"#0012B1"}),(0,s.jsx)(ve,{}),(0,s.jsx)(st,{}),(0,s.jsx)(ce,{}),(0,s.jsx)(Ua,{background:"dots",reverse:!0,variant:"stripes-green",color:"#41D700",children:(0,s.jsx)(Sa,{})}),(0,s.jsx)(qe,{}),(0,s.jsx)(Ua,{background:"stripes",variant:"stripes-yellow",color:"#FFF032",children:(0,s.jsx)(Da,{})}),(0,s.jsx)(Se,{}),(0,s.jsx)(st,{}),(0,s.jsx)(He,{}),(0,s.jsx)(st,{})]});a(80865),a(84004)},53770:function(e,t,a){a.d(t,{c:function(){return r}});var i=a(13980),n=a.n(i);const r={children:n().oneOfType([n().node,n().arrayOf(n().node)]),className:n().string}}}]); //# sourceMappingURL=4071.10778ce569adb8a7.js.map