1import{aG as n,aH as e,aX as S,aS as b,aQ as D,aP as C,bv as v,aa as w,aV as E}from"./index-C9osrjqo.js";import{b as P,I as L}from"./DrugListItemComponent-BU8y9BU6.js";import{S as R}from"./SearchFilterByComponent-7lhoDhDT.js";import{R as T}from"./RightSideBarComponent-DBpVYivU.js";import{D as k,a as A}from"./DrugListItemPlaceholderComponent-CoKWL12l.js";import{P as I}from"./page-8lcS2MO2.js";import{L as B}from"./layoutTwoColumnComponent-4hYNltpu.js";import"./AutocompleteComponent-WcbKb1_M.js";import"./without-B1jtUXa4.js";import"./difference-FmuSrVAl.js";import"./debounce-CCm8z9uw.js";import"./ChevronRightIcon-CAXKBGt9.js";const G=()=>e.jsxs("div",{className:"search-drugs-page__header-container",children:[e.jsx("h1",{id:"default_page_header",children:"Learn more about the medications you take"}),e.jsx(R,{type:"drug"})]}),U=()=>{const{keyword:c,headerTitle:u,headerSubtitle:p,showLink:x,metaTags:a,isSearchDrugLoading:l,searchDrugResults:r,middleAd:t,searchDrugsRequest:d,clearSearchDrugResults:m,onClickShowAnotherBatchOfResults:g,handleAnalytics:h}=P();n.useEffect(()=>{d()},[d]),n.useEffect(()=>{m()},[m]),n.useEffect(()=>{h()},[h]);const j=()=>
1{if(!t)return;const{id:s,banner:i,ad_description:o,cta_url:f,campaign_name:_,ad_name:y,type:N}=t;return!w(t)&&e.jsx("div",{className:"mx-auto w-auto flex justify-center",children:e.jsx(E,{id:s,banner:i,description:o,cta_url:f,campaign_name:_,ad_name:y,type:N})})};return e.jsx(I,{children:e.jsxs(B,{topContent:e.jsx(G,{}),rightSidebar:e.jsx(T,{}),className:"search-drugs-page-component",children:[e.jsx(S,{title:a.title,description:a.description,ogTitle:a.title,ogDescription:a.description}),e.jsxs("div",{className:"search-drugs-page__container",children:[l?e.jsxs("div",{className:"search-results load-data",children:[e.jsxs("div",{className:"search-results__header",children:[e.jsx("span",{className:"flex text-xl w-36"}),e.jsx("span",{className:"flex text-base w-56"})]}),e.jsx(k,{isSearchPage:!0})]}):!l&&!r?.length?e.jsx("div",{className:"search-results pt-16",children:e.jsx(b,{image:L.empty_search,title:c?`No search results for "${c}"`:"No search results",subtitle:"Try another word to search or choose product filters."})}):e.jsxs("div",{className:"search-results",children:[e.jsxs("div",{className:"search-results__header",children:[e.jsx("p",{className:"text-xl font-bold",children:u}),e.jsx("p",{className:"text-gray-500",children:p})]}),D(r,(s,i)=>{const o=v(s,"generic_name");return e.jsxs(e.Fragment,{children:[e.jsx(A,{data:s,isGeneric:o,isSearchPage:!0},s.id),r&&r.length>5&&i===4&&e.jsx(j,{})]})})]}),x&&e.jsx(C,{label:"Show another batch of results",type:"outline",scrollToError:!0,onClick:g})]})]})})};export{U as default};
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.