1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1429],{45417:function(e,t,A){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pharmacy",function(){return A(1678)}])},96204:function(e,t){"use strict";t.Z={src:"/_next/static/media/textline.7a03280b.svg",height:12,width:120,blurWidth:0,blurHeight:0}},79886:function(e,t){"use strict";t.Z={src:"/_next/static/media/centrum.b962dfeb.png",height:2394,width:1889,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAAclBMVEVMaXGkGzSLSUJvQ0ObHS+gHjHhua6EZjp7tXqusZnJbmWbblMYGCTztpxtQCbJmYacuM/elaDPwKWjGjO6yJWNHDNRn1W6sY2Cqla4V1lBiC7ey9OuMEH81cO7rLK0fl/Wr7G+wbbus7WQEy24JDebzc2drVQNAAAAHXRSTlMASWxillzrtrv95a8V+6W9u/ns/M20xfmZwXTpeNoXKkoAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA8SURBVHicBcEJAkAgAADBjagoNzki5/+/aAb59k8GYZGjgHnQ0wrdZYyG7fNHA/ndnjUUu4sKklJVqf0BVPsC3EJhC8IAAAAASUVORK5CYII=",blurWidth:6,blurHeight:8}},12163:function(e,t){"use strict";t.Z={src:"/_next/static/media/vitaminc.7e3e7012.png",height:500,width:540,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAS1BMVEXQ2dnWdG/TtXjq29vS187AvbnZjIlMaXHUysTfb3LZqpzg4t7BkF7BtbTYYVjYv7jgkJTAx8D339zuxHC8sKzvrq3ys6+5oZ/Uk1O/92f6AAAAEnRSTlMChc6q8qylAIH+0urO0K21/E6PtW7CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAOElEQVR4nCXG2xZAIBRF0SWxT0TJ9f+/1Kjm0wTZ6g8BSqWYQCz3M7Zs7zW1uNP3xC/sNZpzGMQPOAYBu8g+FhoAAAAASUVORK5CYII=",blurWidth:8,blurHeight:7}},1678:function(e,t,A){"use strict";A.r(t),A.d(t,{default:function(){return pharmacy}});var a=A(85893),s=A(80276),i=A(89508),r=A(9163),l=A(25675),n=A.n(l),c=A(11163),o=A(67294),d=A(48167),h=A(12823),m=A(79886),u=A(12163),x=A(96204),g=A(18836);let p=[{headerText:"Out of meds? Relax, we've got your back!",subText:"You donât have to worry about going to a pharmacy to get your medication. We deliver right to your doorstep. Just click, order, and consider it done!",buttonCTA:"Order Now",buttonLink:"/pharmacy#pharmacy-results",gradientImage:h.Z,mainImage:{src:"/_next/static/media/slideimg1.950e64ce.jpg",height:446,width:1440,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAACAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAcEAACAgIDAAAAAAAAAAAAAAABAwACERIFBhP/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//EABYRAQEBAAAAAAAAAAAAAAAAAAACQf/aAAwDAQACEQMRAD8Av9qc1PGK8mXXtaoOtiMjMREOqS//2Q==",blurWidth:8,blurHeight:2}},{headerText:(0,a.jsxs)("div",{children:["Need"," ",(0,a.jsxs)("span",{className:" relative",children:["contraceptives?"," ",(0,a.jsx)("span",{className:"",children:(0,a.jsx)(n(),{src:x.Z,alt:"line",className:"absolute left-0 top-[20px] lg:top-[35px]"})})]}),"We've got those here too!"]}),subText:"Pills, condoms, emergency contraception and more. Order your family planning essentials right here and get them delivered discreetly.",buttonCTA:"Order Contraceptives",buttonLink:"/pharmacy?category=reproductive-health",gradientImage:h.Z,mainImage:{src:"/_next/static/media/contraceptives-pharmacy.0f68fefe.webp",height:1494,width:2666,blurDataURL:"data:image/webp;base64,UklGRkAAAABXRUJQVlA4IDQAAACwAQCdASoIAAQAAkA4JYgCdAD0gbJgAP712/+ioufzHjMp+gNQGCk99WAGG+g00r48AAAA",blurWidth:8,blurHeight:4}},{headerText:(0,a.jsxs)("div",{children:["Got a"," ",(0,a.jsxs)("span",{className:" relative",children:["Prescription?"," ",(0,a.jsx)("span",{className:"",children:(0,a.jsx)(n(),{src:x.Z,alt:"line",className:"absolute left-0 top-[20px] lg:top-[35px]"})})]}),"No problem!"]}),subText:"Simply upload your prescription, and we'll take care of the rest!",buttonCTA:"Upload Now",buttonLink:"/prescription",gradientImage:h.Z,mainImage:{src:"/_next/static/media/slideimg2.d5323b20.jpg",height:446,width:1440,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAACAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAaEAACAwEBAAAAAAAAAAAAAAABEQACEgUh/8QAFQEBAQAAAAAAAAAAAAAAAAAAAQL/xAAVEQEBAAAAAAAAAAAAAAAAAAAAAf/aAAwDAQACEQMRAD8AuezWo6mxUa1YNepAqIiSa//Z",blurWidth:8,blurHeight:2}},{headerText:(0,a.jsxs)("div",{children:["No prescription?"," ",(0,a.jsxs)("span",{className:" relative",children:["No stress!",(0,a.jsx)("span",{className:"",children:(0,a.jsx)(n(),{src:x.Z,alt:"line",className:"absolute left-0 top-[20px] lg:top-[35px]"})})]})]}),subText:"Don't let the lack of a prescription hold you back. Chat with our friendly doctors and get the guidance you need.",buttonCTA:"Chat Now",buttonLink:g.GZ,gradientImage:h.Z,mainImage:{src:"/_next/static/media/slideimg3.a15524d6.jpg",height:446,width:1440,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAACAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAcEAABAwUAAAAAAAAAAAAAAAAAAQISAwQRMUH/xAAUAQEAAAAAAAAAAAAAAAAAAAAD/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAIx/9oADAMBAAIRAxEAPwCRuXKtNjcrGGuAAJYO9P/Z",blurWidth:8,blurHeight:2}},{headerText:(0,a.jsxs)("div",{children:["Medical devices that make"," ",(0,a.jsxs)("span",{className:" relative",children:["health"," ",(0,a.jsx)("span",{className:"",children:(0,a.jsx)(n(),{src:x.Z,alt:"line",className:"absolute left-0 top-[20px] lg:top-[35px]"})})]})," ","cool"]}),subText:"Discover Zuri Health's Range of State-of-the-Art Medical Devices.",buttonCTA:"Shop Now",buttonLink:"/pharmacy#pharmacy-results",gradientImage:h.Z,mainImage:{src:"/_next/static/media/slideimg4.e374f1a8.jpg",height:446,width:1440,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAACAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAcEAACAgIDAAAAAAAAAAAAAAAAAQIDBhIRIVH/xAAUAQEAAAAAAAAAAAAAAAAAAAAE/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAIx/9oADAMBAAIRAxEAPwCfmNtiUZKyXOke9n4gAGSCHp//2Q==",blurWidth:8,blurHeight:2}}];m.Z,u.Z,m.Z,m.Z;let w=[{icon:(0,a.jsx)(n(),{src:{src:"/_next/static/media/express-delivery.28de75bd.svg",height:44,width:59,blurWidth:0,blurHeight:0},className:"h-16 w-16",alt:""}),title:"Express Delivery",description:"Same day delivery within Nairobi"},{icon:(0,a.jsx)(n(),{src:{src:"/_next/static/media/diverse-payments.30f8605d.svg",height:44,width:51,blurWidth:0,blurHeight:0},className:"h-16 w-16",alt:""}),title:"Easy & Diverse payment options",description:"M-pesa, Cash, or Care Now Pay Later"},{icon:(0,a.jsx)(n(),{src:{src:"/_next/static/media/customer-support.5f1779d4.svg",height:44,width:64,blurWidth:0,blurHeight:0},className:"h-16 w-16",alt:""}),title:"Customer Support",description:"Available daily for any follow-up"},{icon:(0,a.jsx)(n(),{src:{src:"/_next/static/media/satisfaction.0b266295.svg",height:44,width:64,blurWidth:0,blurHeight:0},className:"h-16 w-16",alt:""}),title:"100% Satisfaction",description:"Quality medication to your doorstep!"}];var NewPharmacy_HeroSection=()=>{let e=(0,c.useRouter)(),{category:t}=e.query,[A,l]=(0,d.o)(p.length,1e4),[n]=(0,d.o)(w.length,5e3);return(0,o.useEffect)(()=>
1{if(!t)return;let e=p.findIndex(e=>{var A;return null===(A=e.buttonLink)||void 0===A?void 0:A.toLowerCase().includes("category=".concat(t.toLowerCase()))});-1!==e&&l(e)},[t]),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center ",children:[(0,a.jsx)("div",{className:"mx-auto w-full max-w-[1420px] px-5 pt-9 md:px-10",children:(0,a.jsx)(s.Z,{slides:p,activeIndex:A,onDotClick:l,priority:!0})}),(0,a.jsxs)("div",{className:"w-full max-w-[1420px] px-5 md:px-10",children:[(0,a.jsx)("div",{className:"hidden rounded-b-2xl border-x border-b border-zuri-teal-50 bg-gradient-to-t from-zuri-teal-100 via-zuri-teal-50 to-white md:grid md:grid-cols-2 lg:grid-cols-4",children:w.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1 p-6 ".concat(t===w.length-1?"":"border-r border-zuri-teal-50"),children:[e.icon,(0,a.jsx)("p",{className:"text-center font-epilogue text-sm font-bold",children:e.title}),(0,a.jsx)("p",{className:"text-center font-nunito text-sm",children:e.description})]},"".concat(t," - ").concat(e.title)))}),(0,a.jsx)("div",{className:"relative overflow-hidden rounded-b-2xl border-x border-b border-zuri-teal-50 bg-gradient-to-t from-zuri-teal-100 via-zuri-teal-50 to-white md:hidden",children:(0,a.jsx)(i.M,{mode:"wait",children:(0,a.jsxs)(r.E.div,{initial:{opacity:0,x:24},animate:{opacity:1,x:0},exit:{opacity:0,x:-24},transition:{duration:.4,ease:"easeOut"},className:"flex flex-col items-center gap-1 px-6 pb-4 pt-6",children:[w[n].icon,(0,a.jsx)("p",{className:"text-center font-epilogue text-sm font-bold",children:w[n].title}),(0,a.jsx)("p",{className:"text-center font-nunito text-sm",children:w[n].description})]},n)})})]})]})};A(45633);var b=A(30474),f=A(85034),v={src:"/_next/static/media/All.ff1f0ade.svg"},j=A(20817),N=A(9473),NewPharmacy_Category=()=>{let e=(0,N.I0)(),t=(0,N.v9)(j.wA),A=(0,N.v9)(j.zF),handleSetCategory=t=>{e((0,j.T_)({id:t.id,name:t.name}))};(0,o.useEffect)(()=>{Array.isArray(t)&&0!==t.length||e((0,j.W3)())},[e]);let s=[],i=[];t&&(s=(i=t).filter(e=>0!==e.totalProducts)).unshift({name:"All Drugs"});let[r,l]=(0,o.useState)(0);return(0,a.jsx)("div",{className:"wrapper",children:(0,a.jsx)("div",{className:" ",children:(0,a.jsx)("div",{className:"mt-8 overflow-hidden",children:(0,a.jsx)("div",{className:"flex gap-6",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("button",{onClick:()=>{l(e=>0===e?s.length-1:e-1)},"aria-label":"Previous categories",className:"absolute left-0 top-1/2 -translate-y-1/2 transform ",children:(0,a.jsx)(n(),{src:b.Z,alt:"",width:30,height:30})}),(0,a.jsx)("div",{className:"relative ml-8 overflow-hidden",children:(0,a.jsx)("div",{className:"flex cursor-pointer transition-transform duration-500 ease-in-out",style:{transform:"translateX(-".concat(140*r,"px)")},children:i?s.map(e=>{let t=e.name==A,s="All Drugs"==e.name?v.src:"string"==typeof e.image&&(e.image.startsWith("http")||e.image.startsWith("/"))?e.image:v.src;return(0,a.jsx)("div",{onClick:()=>{handleSetCategory({name:e.name,id:e._id})},className:"mr-5 inline-block items-center ",children:(0,a.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,a.jsx)("div",{className:"w-fit min-w-[48px] rounded-full bg-white px-3 py-1.5 shadow-md",children:(0,a.jsx)(n(),{src:s,width:50,height:50,alt:"".concat(e.name," icon"),className:"mx-auto h-6 w-6 object-contain"})}),(0,a.jsx)("p",{className:"font-heading text-sm ".concat(t?" whitespace-nowrap border-b-2 border-primary-pink text-primary-pink ":"whitespace-nowrap text-gray-600"),children:e.name})]})},e._id||e.name)}):null})}),(0,a.jsx)("button",{onClick:()=>{l(e=>e===s.length-1?0:e+1)},"aria-label":"Next categories",className:"absolute right-0 top-1/2 -translate-y-1/2 transform ",children:(0,a.jsx)(n(),{src:f.Z,alt:"",width:30,height:30})})]})})})})})},y=A(88078),O=A(49804),C=A(39751),E=A(95442),z=A(19733),D=A(57822),Q=A(52091),B={src:"/_next/static/media/presc-doctors.142bb73a.webp",height:320,width:588,blurDataURL:"data:image/webp;base64,UklGRpYAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAAAAAAKUMAAAAATUBumleDAABeqv//2JwABND9/////0UAVlA4IE4AAADQAQCdASoIAAQAAkA4JZACdAD0gwUMAAD+woVm/+JuO+8v0G/SYQg/x0N7IsSGTEaW4PDZ5ZJMe59O7CtjECwqO4yDMMOKD6XzHuFAAAA=",blurWidth:8,blurHeight:4},I={src:"/_next/static/media/presc-deco-line.47398141.svg",height:27,width:136,blurWidth:0,blurHeight:0};function NeedPrescriptionCard(){return(0,a.jsxs)("section",{"aria-labelledby":"need-a-prescription-card",className:"flex flex-col rounded-[32px] bg-zuri-pink-50 sm:hidden",children:[(0,a.jsx)("div",{className:"relative h-[210px]",children:(0,a.jsx)(n(),{src:B,className:"h-[210px] object-contain object-bottom",alt:""})}),(0,a.jsxs)("div",{className:"relative flex flex-col gap-3 rounded-b-[32px] bg-gradient-pink",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1 pb-6 pt-4",children:[(0,a.jsx)("h3",{id:"need-a-prescription-card",className:"font-epilogue text-xl font-extrabold text-white",children:"Need a prescription?"}),(0,a.jsxs)("a",{href:g.GZ,className:"inline-flex w-fit items-center justify-center gap-1 rounded-full bg-[#4BC959] px-3 py-2 text-white",children:[(0,a.jsx)(Q.xpo,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"font-nunito text-sm font-bold",children:"Chat with a doctor"})]})]}),(0,a.jsx)(n(),{src:I,alt:"",className:"absolute bottom-0 left-0"})]})]})}var S=A(36289);let Loading=()=>{let e=Array.from({length:12});return(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 md:gap-10 lg:grid-cols-3 xl:grid-cols-4",children:e.map((e,t)=>(0,a.jsx)(y.Z,{variant:"rectangular",width:"100%",height:308},t))})},EmptyState=e=>{let{word:t,categoryLabel:A}=e;return(0,a.jsxs)("div",{className:"col-span-4 flex flex-col items-center justify-center gap-3 py-20 text-center",children:[(0,a.jsx)("p",{className:"text-lg font-semibold text-gray-700",children:"No products found"}),(0,a.jsxs)("p",{className:"text-sm text-gray-500",children:["We couldn't find any products matching â",t||("All Drugs"!==A?A:"this search"),"â. Try a different search or browse all products."]})]})},ErrorState=e=>{let{message:t,onRetry:A}=e;return(0,a.jsxs)("div",{className:"col-span-4 flex flex-col items-center justify-center gap-3 py-20 text-center",children:[(0,a.jsx)("p",{className:"text-lg font-semibold text-gray-700",children:"Couldn't load products"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:t}),(0,a.jsx)("button",{onClick:A,className:"mt-2 rounded-[38px] bg-primary-pink px-6 py-2 text-white",children:"Try again"})]})};var NewPharmacy_Drugs=()=>{let e=(0,N.I0)(),{user:t}=(0,z.Z)(),[A,s]=(0,o.useState)({product:null,view:"product"}),i=(0,N.v9)(j.wY),r=(0,N.v9)(j.wP),l=(0,N.v9)(j.BI),n=(0,N.v9)(j.kh),c=(0,N.v9)(j.zF),d=(0,N.v9)(j.O0),h=(0,N.v9)(j.n3),m=(0,N.v9)(j.T1),u=(0,N.v9)(j.H4),x=(0,N.v9)(j.uQ),fetchDrugs=()=>{e((0,j.nu)({search:h||void 0,category_id:n||void 0,priceFilter:d||void 0,page:m,pageSize:u}))};(0,o.useEffect)(()=>{fetchDrugs()},[e,h,n,d,m,u]),(0,o.useEffect)(()=>{(null==t?void 0:t._id)&&e((0,D.pC)({item_type:D.Nn.pharmacy,patient_id:t._id}))},[e,null==t?void 0:t._id]);let g=(null==x?void 0:x.total)||0,p=Number.isFinite(m)&&Number.isFinite(u),w=p?Math.ceil(g/u):0;return(0,a.jsxs)("div",{id:"pharmacy-results",className:"bg-[#FAFAFA]",children:[(0,a.jsx)("div",{className:"wrapper",children:r?(0,a.jsx)(Loading,{}):l?(0,a.jsx)(ErrorState,{message:l,onRetry:fetchDrugs}):i&&0!==i.length?(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2 md:gap-10 lg:grid-cols-3 xl:grid-cols-4",children:[i.map(e=>(0,a.jsx)(C.Z,{product:e,domain:"pharmacy",href:(0,E.sg)(e),user:t,onQuickView:()=>s({product:e,view:"product"}),onUploadRx:()=>s({product:e,view:"ask-rx"})},e._id)),(0,a.jsx)(NeedPrescriptionCard,{})]}):(0,a.jsx)(EmptyState,{word:h,categoryLabel:c})}),w>1&&(0,a.jsx)("div",{className:"wrapper mt-10 flex items-center justify-center",children:(0,a.jsx)(O.Z,{count:w,page:m,onChange:(t,A)=>e((0,j.YA)(A))})}),(0,a.jsx)(S.Z,{isOpen:!!A.product,onClose:()=>s(e=>({...e,product:null})),product:A.product,initialView:A.view})]})},k=A(35212),pharmacy=()=>{let e=(0,N.I0)(),t=(0,c.useRouter)(),A=(0,N.v9)(j.wA),{category:s,search:i}=t.query;return(0,o.useEffect)(()=>
1{if(!Array.isArray(A))return;if(!s){e((0,j.T_)({}));return}let t=s.replace(/-/g," ").toLowerCase(),a=A.find(e=>{var A;return null===(A=e.name)||void 0===A?void 0:A.toLowerCase().includes(t)});a&&e((0,j.T_)({id:a._id,name:a.name}))},[s,A,e]),(0,o.useEffect)(()=>{e((0,j.FD)(i||""))},[i,e]),(0,a.jsxs)("div",{className:" overflow-hidden",children:[(0,a.jsx)(k.Z,{title:"Online Pharmacy | Order Medications with Fast Delivery",description:"Order prescription and over-the-counter medications online with Zuri Health Pharmacy. Fast delivery and expert pharmaceutical advice.",canonical:"https://zuri.health/pharmacy",ogTitle:"Online Pharmacy | Order Medications with Fast Delivery",ogDescription:"Order prescription and over-the-counter medications online with Zuri Health Pharmacy. Fast delivery and expert pharmaceutical advice.",twitterTitle:"Online Pharmacy | Order Medications with Fast Delivery",priority:"High"}),(0,a.jsx)(NewPharmacy_HeroSection,{}),(0,a.jsx)(NewPharmacy_Category,{}),(0,a.jsx)(NewPharmacy_Drugs,{})]})}}},function(e){e.O(0,[6660,594,4838,1046,8108,555,8078,9990,7210,6652,7061,1852,6289,9774,2888,179],function(){return e(e.s=45417)}),_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.