1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[687,5355],{8525:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/featured/[featured_page_slug]",function(){return r(93368)}])},75355:function(e,n,r){"use strict";r.r(n);var t=r(85893),a=r(67294),o=r(45697),s=r.n(o),i=r(27292),l=r(71970);let _=e=>{let{handleSorting:n,sortValue:r,isSearchQuery:o,includedOptions:s}=e,_=(0,a.useMemo)(()=>(0,l.nh)({excludedOptions:!o&&["relevance"],includedOptions:s}),[o,s]);return(0,t.jsx)(i.lU,{id:"select-2",labelText:"SORT BY: ",onChange:n,value:r,inline:!0,children:_.map(e=>(0,t.jsx)(i.Ql,{value:e.value,text:e.name.toUpperCase()},e.value))})};_.propTypes={handleSorting:s().func.isRequired,sortValue:s().string.isRequired,isSearchQuery:s().bool,includedOptions:s().arrayOf(s().string)},n.default=(0,a.memo)(_)},93368:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSP:function(){return B}});var t=r(20567),a=r(14932),o=r(85893),s=r(67294),i=r(93967),l=r.n(i),_=r(45697),c=r.n(_),u=r(2962),d=r(11163),p=r(77827),g=r(27292),m=r(75355),y=r(4045),h=r(20135),f=r.n(h),x=r(93716),b=r.n(x);let v="sale",M="coupon",C="2-fixed",w="high",j="savings",N="popular",R=["low",w,j,N],S=e=>{let{items:n,title:r,imageDesktop:t,imageMobile:a,layoutType:i}=e,_=(0,d.useRouter)(),c=i!==C&&n.length>=4,h=R.find(e=>e===_.query.sorting),[x,S]=(0,s.useState)(h||"low"),k=_.asPath.split("?")[0];(0,s.useEffect)(()=>{let e="low"===x?void 0:x;_.query.sorting!==e&&_.replace("".concat(k).concat("low"!==x?"?sorting=".concat(x):""),null,{shallow:!0})},[x,_,_.query.sorting,k]);let[B,O]=(0,s.useState)(500);(0,s.useEffect)(()=>O((0,y._U)()),[]);let A=c?[...n].sort((e,n)=>"low"===x?e.sale_price-e.couponAmt-(n.sale_price-n.couponAmt):x===N?e.specialsavings>n.specialsavings||e.specialsavings===n.specialsavings&&e.name<n.name?-1:1:x===w?n.sale_price-n.couponAmt-(e.sale_price-e.couponAmt):x===j?i===M?n.couponAmt-e.couponAmt:n.save_percent-e.save_percent:void 0):n;return(0,o.jsxs)("section",{children:[(0,o.jsx)(u.PB,{title:"".concat(r.trim()," | WatchMaxx"),description:"".concat(r.trim()," at WatchMaxx.com. Free shipping and 30-day returns. Authenticity guaranteed!")}),(0,o.jsx)("div",{className:f().bannerContainer,children:(0,o.jsx)("div",{className:f().banner,children:(0,o.jsx)(g.t,{wrapperClass:f().img,src:t,croppedSrc:a,alt:r,host:"cloudinary",noDelay:!0})})}),c&&(0,o.jsx)("div",{className:f().sorting,children:(0,o.jsx)(m.default,{handleSorting:e=>S(e.target.value),sortValue:x,includedOptions:R})}),(0,o.jsx)("div",{className:l()(f().productsContainer,{[f().couponLayout]:[M,v].includes(i)}),children:(0,o.jsx)(p.cR,{className:l()(b().galleryItems,f().galleryItems),items:A,windowWidth:B,gallery_title:r})})]})},k=e=>(0,s.createElement)(S,(0,a._)((0,t._)({},e),{key:e.slug}));k.propTypes={items:c().arrayOf(c().object).isRequired,title:c().string.isRequired,imageDesktop:c().string.isRequired,imageMobile:c().string.isRequired,layoutType:c().oneOf([C,M,v])};var B=!0;n.default=k},20135:function(e){e.exports={bannerContainer:"bannerContainer___OcP5A",banner:"banner___1ypjx",img:"img___Ncjly",sorting:"sorting___1Ad6k",productsContainer:"productsContainer___Rdzhy",galleryItems:"galleryItems___1Cd6h",couponLayout:"couponLayout___NomhC"}},93716:function(e){e.exports={header:"header___NdzsO",breadcrumbs:"breadcrumbs___1zpmc",gallery:"gallery___Md6gT",sidebar:"sidebar___1xoC9",sidebarHeader:"sidebarHeader___MdztC",sortandFilter:"sortandFilter___1xp6c",numItemsDesktop:"numItemsDesktop___1zoSc",numItemsMobile:"numItemsMobile___SczwM",sortingDesktop:"sortingDesktop___QdzcP",sortBar:"sortBar___NcjAU",loadMoreRow:"loadMoreRow___Mcj8P",loadMoreButton:"loadMoreButton___Toj8S",loadMoreDisabled:"loadMoreDisabled___Qd30V",productsContainer:"productsContainer___McC9B",extraDescription:"extraDescription___1xd6c",readMore:"readMore___RpCdB",galleryMenuContainer:"galleryMenuContainer___VpzwQ",galleryMenu:"galleryMenu___1ye6d",promoBanner:"promoBanner___Ncz5B"}}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[9774,2888,179],function(){return n(25436),n(8525)}),_N_E=e.O()}]); 2//# sourceMappingURL=[featured_page_slug]-1070050fff5f9f78.js.map
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.