1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{80214:(e,l,s)=>{s.r(l),s.d(l,{default:()=>x});var a=s(95155),t=s(65229),i=s(7013),r=s(26986),c=s(18955),n=s(52591),o=s(12261),d=s(30863),m=s(1643);let x=e=>{let{results:l,onClose:s}=e,x=(0,c.c)(),u=(0,m.rd)(),h=async e=>{u.push(e),s()};return(0,a.jsxs)("div",{className:"relative isolate z-[10000]",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/50 top-17 sm:top-21 md:top-22 z-10",onClick:s}),(0,a.jsxs)("div",{role:"dialog","aria-modal":!0,"aria-label":"Search Results Modal",className:"fixed min-w-[320px] sm:min-w-[511px] top-18 sm:top-24 min-h-[calc(100vh-87vh)] max-h-[87vh] inset-0 z-[90] bg-white max-w-[37vw] mx-auto rounded-xl p-4",children:[(0,a.jsx)(n.T,{onPress:s,"aria-label":"Close modal",className:"absolute top-2 right-4",isIconOnly:!0,size:"sm",radius:"full",children:(0,a.jsx)(t.A,{className:"size-4"})}),(0,a.jsx)("ul",{className:"max-h-full",children:l&&l.length>0?(0,a.jsx)(d.Y1,{height:731,itemCount:(null==l?void 0:l.length)||0,itemSize:93,width:"100%",className:"scrollbar mt-5",children:e=>{var s,t,r,c,n,d,m,x,u;let{index:g,style:p}=e,v=(null==(s=l[g])?void 0:s.type)==="store"?"/store/".concat(null==(t=l[g])?void 0:t.slug):(null==(r=l[g])?void 0:r.type)==="blog"?"/".concat(null==(c=l[g])?void 0:c.id):"/coupon-category/".concat(null==(n=l[g])?void 0:n.slug);return(0,a.jsx)("li",{style:p,className:"!min-h-[93px] h-full",dir:"auto",children:(0,a.jsxs)("div",{onClick:()=>h(v),className:"flex items-center p-4 border-b border-b-gray-200 hover:bg-gray-100 transition-all group cursor-pointer","aria-labelledby":"result-title-".concat(l[g].id),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,a.jsx)(o.Q,{src:null==(d=l[g])?void 0:d.image,alt:null==(m=l[g])?void 0:m.image_alt,name:null==(x=l[g])?void 0:x.title,showFallback:!0,size:"md",className:"bg-white"}),(0,a.jsx)("h2",{className:"text-base font-bold text-gray-800",id:"result-title-".concat(l[g].id),children:null==(u=l[g])?void 0:u.store_name})]}),(0,a.jsx)(i.A,{className:"text-gray-500 group-hover:rotate-[45deg] transition-all"})]})},g+1)}}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center p-4",children:[(0,a.jsx)(r.A,{className:"mb-2 size-15 md:size-20 text-red-500/70"}),(0,a.jsx)("p",{className:"text-center text-gray-600",children:x("noResults")}),(0,a.jsx)("p",{className:"text-center text-gray-500",children:x("refineSearch")})]})})]})]})}}}]);
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.