PageSourceSearch

https://www.tnwfirearms.com/_next/static/chunks/app/%5BcountryCode…/%5Bhandle%5D/page-c538546c6d4a1326.js

js tnwfirearms.com collected 2026-09-26 15:11:07 UTC 4,697 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9695,6786],{4351:function(e,s,t){Promise.resolve().then(t.bind(t,15414)),Promise.resolve().then(t.bind(t,50624)),Promise.resolve().then(t.bind(t,65134)),Promise.resolve().then(t.bind(t,56291)),Promise.resolve().then(t.bind(t,82535)),Promise.resolve().then(t.bind(t,15193)),Promise.resolve().then(t.bind(t,21671)),Promise.resolve().then(t.bind(t,26130)),Promise.resolve().then(t.bind(t,92998)),Promise.resolve().then(t.bind(t,1582)),Promise.resolve().then(t.bind(t,24680)),Promise.resolve().then(t.bind(t,1711)),Promise.resolve().then(t.bind(t,8681)),Promise.resolve().then(t.bind(t,41095)),Promise.resolve().then(t.bind(t,6754)),Promise.resolve().then(t.bind(t,9531)),Promise.resolve().then(t.bind(t,42367)),Promise.resolve().then(t.bind(t,33310)),Promise.resolve().then(t.bind(t,91194)),Promise.resolve().then(t.bind(t,66218)),Promise.resolve().then(t.bind(t,40652)),Promise.resolve().then(t.bind(t,76889)),Promise.resolve().then(t.bind(t,7707)),Promise.resolve().then(t.bind(t,72180)),Promise.resolve().then(t.bind(t,56895)),Promise.resolve().then(t.bind(t,22057)),Promise.resolve().then(t.bind(t,22459)),Promise.resolve().then(t.bind(t,10966)),Promise.resolve().then(t.t.bind(t,65878,23)),Promise.resolve().then(t.bind(t,35671)),Promise.resolve().then(t.bind(t,81919)),Promise.resolve().then(t.bind(t,92324))},35671:function(e,s,t){"use strict";t.r(s);var r=t(57437),l=t(27648),i=t(99376);t(2265),s.default=e=>{let{children:s,href:t,...a}=e,{countryCode:n}=(0,i.useParams)();return(0,r.jsx)(l.default,{href:"/".concat(n).concat(t),...a,children:s})}},81919:function(e,s,t){"use strict";t.d(s,{Pagination:function(){return a}});var r=t(57437),l=t(27577),i=t(99376);function a(e){let{page:s,totalPages:t,"data-testid":a}=e,n=(0,i.useRouter)(),o=(0,i.usePathname)(),u=(0,i.useSearchParams)(),d=(e,s)=>Array.from({length:s-e+1},(s,t)=>e+t),m=e=>{let s=new URLSearchParams(u);s.set("page",e.toString()),n.push("".concat(o,"?").concat(s.toString()))},h=(e,s,t)=>(0,r.jsx)("button",{className:(0,l.L)("txt-xlarge-plus text-ui-fg-muted",{"text-ui-fg-base hover:text-ui-fg-subtle":t}),disabled:t,onClick:()=>m(e),children:s},e),c=e=>(0,r.jsx)("span",{className:"txt-xlarge-plus text-ui-fg-muted items-center cursor-default",children:"..."},e);return(0,r.jsx)("div",{className:"flex justify-center w-full mt-12",children:(0,r.jsx)("div",{className:"flex gap-3 items-end","data-testid":a,children:(()=>{let e=[];return t<=7?e.push(...d(1,t).map(e=>h(e,e,e===s))):s<=4?(e.push(...d(1,5).map(e=>h(e,e,e===s))),e.push(c("ellipsis1")),e.push(h(t,t,t===s))):s>=t-3?(e.push(h(1,1,1===s)),e.push(c("ellipsis2")),e.push(...d(t-4,t).map(e=>h(e,e,e===s)))):(e.push(h(1,1,1===s)),e.push(c("ellipsis3")),e.push(...d(s-1,s+1).map(e=>h(e,e,e===s))),e.push(c("ellipsis4")),e.push(h(t,t,t===s))),e})()})})}},92324:function(e,s,t){"use strict";t.d(s,{default:function(){return v}});var r=t(57437),l=t(99376),i=t(2265),a=t(31237),n=t(60449),o=t(33310),u=t(27577),d=t(41095),m=e=>{let{title:s,items:t,value:l,handleChange:i,"data-testid":m}=e;return(0,r.jsxs)("div",{className:"flex gap-x-3 flex-col gap-y-3",children:[(0,r.jsx)(n.x,{className:"txt-compact-small-plus text-ui-fg-muted",children:s}),(0,r.jsx)(o.RadioGroup,{"data-testid":m,children:null==t?void 0:t.map(e=>(0,r.jsxs)("div",{className:(0,u.L)("flex gap-x-2 items-center",{"ml-[-1.75rem]":e.value===l}),children:[e.value===l&&(0,r.jsx)(a.Z,{}),(0,r.jsx)(o.RadioGroup.Item,{checked:e.value===l,onClick:s=>i(s,e.value),className:"hidden peer",id:e.value,value:e.value}),(0,r.jsx)(d.Label,{htmlFor:e.value,className:(0,u.L)("!txt-compact-small !transform-none text-ui-fg-subtle hover:cursor-pointer",{"text-ui-fg-base":e.value===l}),"data-testid":"radio-label","data-active":e.value===l,children:e.label})]},e.value))})]})};let h=[{value:"created_at",label:"Latest Arrivals"},{value:"price_asc",label:"Price: Low -> High"},{value:"price_desc",label:"Price: High -> Low"}];var c=e=>{let{"data-testid":s,sortBy:t,setQueryParams:l}=e;return(0,r.jsx)(m,{title:"Sort by",items:h,value:t,handleChange:e=>{l("sortBy",e.target.value)},"data-testid":s})},v=e=>{let{sortBy:s,"data-testid":t}=e,a=(0,l.useRouter)(),n=(0,l.usePathname)(),o=(0,l.useSearchParams)(),u=(0,i.useCallback)((e,s)=>{let t=new URLSearchParams(o);return t.set(e,s),t.toString()},[o]);return(0,r.jsx)("div",{className:"flex small:flex-col gap-12 py-4 mb-8 small:px-0 pl-6 small:min-w-[250px] small:ml-[1.675rem]",children:(0,r.jsx)(c,{sortBy:s,setQueryParams:(e,s)=>{let t=u(e,s);a.push("".concat(n,"?").concat(t))},"data-testid":t})})}}},function(e){e.O(0,[7577,2972,2563,7860,7616,2971,2117,1744],function(){return e(e.s=4351)}),_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.