1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1644],{51644:(e,s,r)=>{r.r(s),r.d(s,{SearchMobile:()=>k});var l=r(36671),a=r(22651),c=r(8897),n=r(46014),d=r(51575),i=r(50805),o=r(14575),t=r(52182),x=r(14132),m=r(78554),u=r(8666),h=r(36120),f=r(93169),b=r(62463),j=r(34740),p=r(85035),g=r(21734),N=r(54276),v=r(90059);let k=()=>{let{query:e,isResultsVisible:s,handleToggle:r,isOpen:a}=(0,m.$)();return(0,N.H)(a),(0,l.jsxs)("div",{id:x.g,className:(0,v.cn)("no-scrollbar fixed inset-0 z-50 size-full max-w-[1200px] flex-col overflow-y-auto border bg-background-primary shadow-2xl md:hidden",{flex:a,hidden:!a}),children:[(0,l.jsxs)("div",{className:"sticky top-0 z-[1] flex items-center gap-4 bg-background-primary p-4",children:[(0,l.jsx)(n.D,{autoFocus:!0,location:"mobile"}),(0,l.jsx)(y,{onClose:()=>r(!1)})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-y-6 p-4 pt-0 lg:hidden",children:[(0,l.jsxs)("div",{className:(0,v.cn)({"order-1":!!e,"order-2":!e}),children:[(0,l.jsx)(c.C,{}),(0,l.jsx)(C,{})]}),s&&(0,l.jsx)("div",{className:"order-2",children:(0,l.jsx)(i.L,{})}),(0,l.jsx)("div",{className:(0,v.cn)("-mx-4 overflow-hidden",{"order-3":!!e,"order-1":!e}),children:(0,l.jsx)(w,{})}),(0,l.jsx)("div",{className:(0,v.cn)({"order-4":!!e,"order-3":!e}),children:(0,l.jsx)(d.E,{location:"mobile"})})]})]})},y=e=>{let{onClose:s}=e,{t:r}=(0,a.Bd)("search");return(0,l.jsx)("button",{className:"flex items-center justify-center rounded-full underline-offset-4 hover:underline",onClick:()=>{requestAnimationFrame(()=>{s()})},children:r("searchMobile.closeButton")})},w=()=>{let{t:e}=(0,a.Bd)("search");return(0,l.jsxs)(o.u,{className:"px-4",children:[(0,l.jsx)(t.i,{children:e("searchMobile.trendingSearches")}),(0,l.jsx)("div",{className:"-mx-4",children:(0,l.jsx)(u.A,{className:"no-scrollbar overflow-x-auto px-4"})})]})},C=()=>{let{t:e}=(0,a.Bd)("search"),{chat:{handleSendMessage:s}}=(0,b.vd)(),{handleToggle:r}=(0,j.Zt)(),{query:c}=(0,m.$)(),n=(0,g.A)();return p.r?null:(0,l.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-2 rounded-full bg-background-secondary p-4",children:[(0,l.jsx)(f.f,{className:"ml-2 text-start text-sm font-medium",children:e("searchMobile.needHelp")}),(0,l.jsx)("div",{className:(0,v.cn)("animate-shimmer cursor-pointer rounded-full border border-border-tertiary bg-chat-gradient p-0.5"),style:{backgroundSize:"200% auto"},children:(0,l.jsxs)("div",{className:(0,v.cn)("flex size-full items-center justify-center gap-2 rounded-full bg-background-primary px-4 py-2 text-sm"),onClick:()=>{s(c),r()},children:[(0,l.jsx)(h.In,{icon:"SparklesColored",className:"size-4"}),(0,l.jsx)("span",{className:"whitespace-nowrap",children:e(n?"searchMobile.askHealf":"searchMobile.askHelix")})]})})]})}}}]); 2//# sourceMappingURL=1644.38fca5074c93620e.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.