PageSourceSearch

https://www.frootbat.com/ecs-assets/production/4d6795cd0e375648f13…/8560.8560.fc1bfdc4e1aa26c18f2d.js

js frootbat.com collected 2026-10-04 17:43:24 UTC 3,301 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8560],{8560:(e,o,t)=>{t.r(o),t.d(o,{default:()=>q});var l,s,a,i=t(37399),c=t(27378),n=t(8432),r=t(41672),u=t.n(r),d=t(13844),m=t(46216),v=t(58342),p=t(98662),w=t(88286),y=t(94411),Z=t(48575),h=t(91320),g=t(48699),N=t(79807),f=t(75935),k=t(86844),C=t(97202),S=t(65675),b=t.n(S);const q=u()(b())((()=>{const[e,o]=(0,c.useState)([]),[t,r]=(0,c.useState)(0),[u,S]=(0,c.useState)(1),[b,q]=(0,c.useState)(""),[I,L]=(0,c.useState)(""),[A,T]=(0,c.useState)(!0),[$,z]=(0,c.useState)(!1),[E,P]=(0,c.useState)(!0),x=(0,C.z)(10),{searchAddress:D,countryCode:H,countries:J}=(0,d.useSelector)((({search:e,settings:o})=>({searchAddress:e.location.address,countryCode:o.country,countries:o.countries})));(0,c.useEffect)((()=>{(async()=>{P(!0),z(!1);try{const e=await(0,N.Z)({query:b,page:u});o(1===u?[...e.collections]:o=>[...o,...e.collections]),r(e.totalCollections),T(e.lastPage),P(!1)}catch(e){P(!1),z(!0)}})()}),[I,u]);(0,c.useEffect)((()=>{S(1);const e=setTimeout((()=>{L(b)}),500);return()=>clearTimeout(e)}),[b]);const Q=(0,k.Tc)({link:"collections",country:H,countries:J});return(0,i.Z)(m.Z,{},void 0,(0,i.Z)("div",{className:"collections-view-layout"},void 0,(0,i.Z)(n.ql,{link:Q,meta:[{name:"title",content:"Collection"}]}),l||(l=(0,i.Z)(p.Z,{home:"Home",item:"Collections",homeLink:"/",itemLink:"/collections",className:"collections-view-layout"})),(0,i.Z)(v.Z,{title:"Collections",description:"Shop our curated whiskey collection page,\n  featuring some of the rarest limited-edition offerings from the biggest names in collectible whiskey.\n   Whether your liquor collection centers around fine and rare bourbon, rye, single malt scotch,\n   Japanese whisky, tequila, or cognac, our dedicated liquor collection section has something for every connoisseur.",className:"collections-view-layout"}),(0,i.Z)("div",{className:"collections-view-layout--search-wrapper"},void 0,(0,i.Z)(g.Z,{className:"collections-view-layout--search-wrapper",handleInputChange:e=>{e.preventDefault(),q(e.target.value)},value:b,handleClearQuery:()=>{q(""),L(""),S(1)},loading:E})),$&&(s||(s=(0,i.Z)("div",{className:"collections-view-layout--error"},void 0,(0,i.Z)("div",{},void 0,"Something went wrong. Please try again")))),(0,i.Z)(h.Z,{className:"collections-view-layout",toNumber:e.length,totalItems:t,itemName:"Collections"}),(0,i.Z)("div",{className:"collections-view-layout--collections-wrapper"},void 0,t>0&&e.map((e=>(0,i.Z)(w.Z,{className:"collections-view-layout--collections-wrapper",title:e.name,description:e.description,image:e.bannerImage&&e.bannerImage.large,imageAlt:e.name,collectionUrl:`/collections/${e.id}/${(0,k.Ls)(e.name)}/${(0,k.Ls)(D)}`},e.id))),!E&&t<1&&(a||(a=(0,i.Z)("div",{className:"collections-view-layout--collections-wrapper--no-results"},void 0,(0,i.Z)("div",{},void 0,(0,i.Z)("img",{loading:"lazy",src:f,alt:"No results found"})),(0,i.Z)("div",{className:"collections-view-layout--no-results-text"},void 0,"No results found.")))),E&&x.map((e=>(0,i.Z)(y.Z,{className:"collections-view-layout--collections-wrapper"},e.id)))),!E&&!A&&t>0&&(0,i.Z)("div",{className:"collections-view-layout--load-more-wrapper"},void 0,(0,i.Z)(Z.Z,{className:"collections-view-layout--load-more-wrapper",onClick:()=>S((e=>e+1)),disabled:A}))))}))}}]);

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.