1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[100],{8074:function(e,i,n){"use strict";n.d(i,{t:function(){return Pagination}});var t=n(9521),a=t.ZP.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1rlh74s-0"})(["display:flex;height:100%;gap:8px;"]),r=(0,t.iv)(["display:flex;width:32px;height:32px;justify-content:center;align-items:center;color:#888888;font-weight:500;font-size:16px;"]),o=(0,t.iv)(["&:link{color:#888888;}&:visited{color:#888888}&:hover{color:#888888;background-color:var(--divider-color);cursor:pointer;}&:active{color:#888888}"]),c=t.ZP.a.withConfig({displayName:"styles__PaginationNumberLink",componentId:"sc-1rlh74s-1"})([""," "," border:solid 1px var(--divider-color);background-color:",";pointer-events:",";"],r,o,function(e){return e.$currentPage&&"var(--divider-color)"},function(e){return e.$currentPage&&"none"}),l=t.ZP.div.withConfig({displayName:"styles__PaginationPlaceholder",componentId:"sc-1rlh74s-2"})(["",""],r),d=t.ZP.a.withConfig({displayName:"styles__PaginationEndLink",componentId:"sc-1rlh74s-3"})([""," ",""],r,o),s=n(6687),p=n(7294),range=function(e,i){return Array.from({length:i-e+1},function(i,n){return n+e})},usePagination=function(e){var i=e.totalCount,n=e.pageSize,t=e.siblingCount,a=e.currentPage;return(0,p.useMemo)(function(){var e=Math.ceil(i/n);if(2*t+5>=e)return range(1,e);var r=Math.max(a-t,1),o=Math.min(a+t,e),c=r>2,l=o<e-2;if(!c&&l){var d=range(1,3+2*t);return[].concat((0,s.Z)(d),["...",e])}if(c&&!l){var p=range(e-(3+2*t)+1,e);return[1,"..."].concat((0,s.Z)(p))}if(c&&l){var g=range(r,o);return[1,"..."].concat((0,s.Z)(g),["...",e])}},[i,n,t,a])},g=n(5893),Pagination=function(e){var i=e.totalCount,n=e.siblingCount,t=e.currentPage,r=e.pageSize,o=e.baseUrl,s=usePagination({currentPage:t,totalCount:i,siblingCount:n,pageSize:r}),p=s[s.length-1],u=t-1;return(0,g.jsxs)(a,{children:[1===t?(0,g.jsx)(l,{}):(0,g.jsx)(d,{href:1===u?"".concat(o):"".concat(o,"?page=").concat(u),children:"<"}),s.map(function(e,i){return"..."===e?(0,g.jsx)(l,{children:"â¦"},"dots-".concat(i)):(0,g.jsx)(c,{href:1===e?"".concat(o):"".concat(o,"?page=").concat(e),$currentPage:t===e,children:e},e)}),t===p?(0,g.jsx)(l,{}):(0,g.jsx)(d,{href:"".concat(o,"?page=").concat(t+1),children:">"})]})}},5169:function(e,i,n){"use strict";n.r(i),n.d(i,{__N_SSG:function(){return f},default:function(){return _slug_}});var t=n(8074),a=n(9521),r=a.ZP.a.withConfig({displayName:"styles__Wrapper",componentId:"sc-1u66ad1-0"})(["height:fit-content;overflow:hidden;background-color:#29292d;color:var(--article-body-color);cursor:pointer;border:solid 0.5px var(--divider-color);"]),o=a.ZP.div.withConfig({displayName:"styles__RedPill",componentId:"sc-1u66ad1-1"})(["display:flex;background-color:red;padding:0px 0.5rem;white-space:nowrap;font-weight:700;color:var(--primary-font-color);font-size:0.65rem;line-height:19px;min-height:19px;width:fit-content;margin-top:auto;&.hide{display:none;}"]),c=a.ZP.div.withConfig({displayName:"styles__DetailsWrapper",componentId:"sc-1u66ad1-2"})(["display:flex;flex-direction:column;padding:10px 10px;height:150px;gap:8px;"]),l=a.ZP.h2.withConfig({displayName:"styles__Title",componentId:"sc-1u66ad1-3"})(["font-size:16px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;"]),d=a.ZP.div.withConfig({displayName:"styles__ReleaseDate",componentId:"sc-1u66ad1-4"})(["font-size:0.75rem;"]),s=a.ZP.div.withConfig({displayName:"styles__Price",componentId:"sc-1u66ad1-5"})(["display:flex;&.sale{text-decoration:line-through;color:red;}"]),p=a.ZP.div.withConfig({displayName:"styles__PriceWrapper",componentId:"sc-1u66ad1-6"})(["display:flex;gap:10px;"]),g=a.ZP.div.withConfig({displayName:"styles__SalePrice",componentId:"sc-1u66ad1-7"})(["font-weight:500;&.hide{display:none;}"]),u=a.ZP.div.withConfig({displayName:"styles__ImageWrapper",componentId:"sc-1u66ad1-8"})(["position:relative;max-width:100%;display:block;aspect-ratio:16 / 9;width:100%;background-color:var(--ad-zone-bg-color);"]),h=n(5893),SwitchGameWidget_GameWidget=function(e){var i=e.imageUrl,n=e.title,t=e.releaseDate,a=e.regPrice,m=e.salePrice,f=e.redPill,x=(e.index,e.productUrl);return(0,h.jsxs)(r,{href:x,target:"_blank",alt:"Nintendo eShop - ".concat(n),children:[(0,h.jsx)(u,{children:(0,h.jsx)("img",{src:i,alt:n,style:{aspectRatio:16/9,width:"100%"}})}),(0,h.jsxs)(c,{children:[(0,h.jsx)(l,{title:n,children:n}),t&&(0,h.jsx)(d,{children:t}),(0,h.jsx)(o,{className:f?"":"hide",children:f}),(0,h.jsxs)(p,{children:[m&&(0,h.jsx)(g,{children:"$".concat(m)}),(0,h.jsx)(s,{className:m?"sale":"",children:"$".concat(a)})]})]})]})},m=n(4759),f=!0,_slug_=function(e){var i=e.deals,n=e.gamesPerPage,a=e.totalGames,r=e.currentPage,o=e.pageTitle;return(0,h.jsx)(m.Z,{children:(0,h.jsxs)(x,{children:[(0,h.jsx)(_,{children:o}),(0,h.jsx)(y,{children:i.map(function(e,i){return(0,h.jsx)(SwitchGameWidget_GameWidget,{imageUrl:e.imageUrl,title:e.title,releaseDate:e.releaseDate,regPrice:e.regPrice,salePrice:e.salePrice,redPill:e.discountPriceEnd?"Sale Ends: ".concat(e.discountPriceEnd):void 0,index:i,productUrl:e.productUrl},i)})}),(0,h.jsx)(P,{children:(0,h.jsx)(t.t,{currentPage:r,totalCount:a,siblingCount:1,pageSize:n,baseUrl:"https://nintendosupply.com/deals"})})]})})},x=a.ZP.div.withConfig({displayName:"slug__Wrapper",componentId:"sc-1u8s4y2-0"})(["display:flex;flex-direction:column;column-gap:16px;width:100%;margin:0 auto;@media only screen and (min-width:768px){grid-template-columns:repeat(8,1fr);min-height:calc(100vh - 210px);}@media only screen and (min-width:1025px){grid-template-columns:repeat(12,1fr);max-width:1440px;padding:0 5px;}"]),y=a.ZP.div.withConfig({displayName:"slug__GameWrapper",componentId:"sc-1u8s4y2-1"})(["display:grid;grid-column:1/5;padding:20px;grid-template-columns:repeat(2,1fr);gap:16px;@media only screen and (min-width:768px){grid-column:1/9;grid-template-columns:repeat(4,1fr);gap:32px;}@media only screen and (min-width:1024px){grid-column:1/13;}"]),_=a.ZP.h1.withConfig({displayName:"slug__H1",componentId:"sc-1u8s4y2-2"})(["padding:0 20px;font-weight:500;color:var(--primary-font-color);font-size:24px;grid-column:1/5;@media only screen and (min-width:768px){font-size:32px;}"]),P=a.ZP.div.withConfig({displayName:"slug__PaginationWrapper",componentId:"sc-1u8s4y2-3"})(["display:flex;justify-content:center;width:100%;padding:16px;"])},1959:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/deals/[[...slug]]",function(){return n(5169)}])}},function(e){e.O(0,[675,759,774,888,179],function(){return e(e.s=1959)}),_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.