PageSourceSearch

https://hsl.co.in/build/assets/Welcome-NuiuT7xa.js

js hsl.co.in collected 2026-10-09 22:41:16 UTC 43,968 bytes, 25 lines download raw bytes

1import{r as l,j as e,x as I,a as _}from"./app-Mnt2IEGe.js";import{G as V,A as $}from"./GuestLayout-BYnLiqFZ.js";import{X as Y}from"./x-B1Pn9Kmg.js";import{P as H}from"./ProductCard-0yXd5hdP.js";import{S as K}from"./shopping-bag-Cwpa8ssJ.js";import{C as A}from"./circle-check-big-DOBAhIbM.js";import{S as O}from"./shield-Da3uiB5y.js";import{T as F}from"./truck-CpGakV_6.js";import{S as G}from"./search-BeXkNHdv.js";import{A as X}from"./arrow-right-CdDY51lL.js";import{c as U}from"./ApplicationLogo-JvKRx6b1.js";import{S as Q}from"./star-C1jGBhfp.js";import{C as J}from"./chevron-left-1rvZdUz9.js";import{C as Z}from"./chevron-right-D8Tdk6TR.js";import{A as ee}from"./activity-XUC0bUlj.js";import{H as W}from"./heart-BNUvMs6J.js";import{T as te,B as se}from"./thermometer-BhINVmbY.js";import{U as R}from"./users-TBz3OMTK.js";import{F as ae}from"./flower-ZQoQfAY-.js";import"./message-circle-D4MbkUVn.js";import"./phone-DSAsYLtt.js";import"./chevron-down-BlAiga6f.js";import"./user-ad0RTXxq.js";import"./package-CT4joqbC.js";import"./map-pin-BuVEKMGp.js";import"./shopping-cart-DokKNEt4.js";import"./clock-Dnho5FNh.js";import"./mail-Ce-sk81h.js";import"./shield-check-BX5jY0rg.js";import"./sparkles-B-FGkB_u.js";/**
2 * @license lucide-react v0.525.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const re=[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]],q=U("pill",re);function le(){const[t,d]=l.useState(!1);l.useEffect(()=>{sessionStorage.getItem("newYearOfferDismissed")||d(!1)},[]);const o=()=>{d(!1),sessionStorage.setItem("newYearOfferDismissed","true")};return t?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:[e.jsxs("div",{className:"relative w-full max-w-2xl bg-white rounded-2xl overflow-hidden shadow-2xl animate-bounce-in",children:[e.jsx("button",{onClick:o,className:"absolute top-4 right-4 z-10 p-2 hover:bg-gray-100 rounded-full transition",children:e.jsx(Y,{size:24,className:"text-gray-600"})}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 p-6 md:p-8",children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx("img",{src:"/img/new-year1.png",alt:"New Year Offer",className:"w-full h-auto rounded-xl object-cover",onError:g=>{g.target.src="https://via.placeholder.com/400x400?text=New+Year+Offer"}})}),e.jsxs("div",{className:"flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"mb-3 flex items-baseline gap-2",children:e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-slate-900",children:"New Year Offer"})}),e.jsx("div",{className:"mb-4 inline-block",children:e.jsx("span",{className:"bg-red-100 text-red-700 px-4 py-2 rounded-full text-lg font-bold",children:"Flat 26% OFF"})}),e.jsx("p",{className:"text-slate-600 text-sm leading-relaxed mb-4",children:"Start the New Year on a healthy note with Haslab's Special New Year Celebration Offer."}),e.jsxs("div",{className:"space-y-2 mb-4",children:[e.jsx("p",{className:"text-sm font-semibold text-slate-700 mb-3",children:"Enjoy on our specially curated wellness kits:"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2 text-sm text-slate-600",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 bg-green-100 rounded-full text-green-700 text-xs font-bold",children:"✓"}),"Cold Care Kit"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm text-slate-600",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 bg-green-100 rounded-full text-green-700 text-xs font-bold",children:"✓"}),"Allergy Kit"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm text-slate-600",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 bg-green-100 rounded-full text-green-700 text-xs font-bold",children:"✓"}),"Ouch Kit"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm text-slate-600",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-5 h-5 bg-green-100 rounded-full text-green-700 text-xs font-bold",children:"✓"}),"Party Kit"," ",e.jsx("span",{className:"text-xs bg-blue-100 text-blue-700 px-2 py-1 rounded ml-1",children:"New"})]})]})]}),e.jsx("div",{className:"mb-4 p-3 bg-amber-50 border border-amber-200 rounded-lg",children:e.jsx("p",{className:"text-sm font-semibold text-amber-900",children:"⏰ Offer valid only till 10th January"})})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-4",children:[e.jsx("a",{href:"https://haslab.3ea.in/shop?category=haslab-care-kit",target:"_blank",rel:"noopener noreferrer",className:"w-full px-6 py-3 bg-gradient-to-r from-red-500 to-red-600 text-white font-bold rounded-lg text-center hover:from-red-600 hover:to-red-700 transition shadow-lg",children:"Shop Now"}),e.jsx("button",{onClick:o,className:"w-full px-6 py-2 border border-slate-300 text-slate-700 font-semibold rounded-lg hover:bg-slate-50 transition",children:"Maybe Later"})]})]})]})]}),e.jsx("style",{children:`
7        @keyframes bounce-in {
8          0% {
9            opacity: 0;
10            transform: scale(0.95);
11          }
12          100% {
13            opacity: 1;
14            transform: scale(1);
15          }
16        }
17        .animate-bounce-in {
18          animation: bounce-in 0.3s ease-out;
19        }
20      `})]}):null}const B=t=>`₹${Number(t||0).toFixed(2)}`;function ie({product:t,variant:d=null,cartInfo:o=null,isAdding:g=!1,onAdd:y,onUpdateQty:f,badge:N,badgeColor:b="bg-blue-100 text-blue-600"}){if(!t)return null;const x=d&&typeof d=="object"?d:null,S=Number(t.price??0),j=x&&x.price_override!==null?Number(x.price_override):null,v=j!==null&&!Number.isNaN(j)?j:S,c=x&&x.compare_at_price!==null?Number(x.compare_at_price):t.compare_at_price!==null&&t.compare_at_price!==void 0?Number(t.compare_at_price):null,i=c!==null&&!Number.isNaN(c)?c:null,n=typeof i=="number"&&i>v,C=t.slug?route("shop.product",t.slug):"#",T=()=>{typeof y=="function"&&y(t,x)},E=a=>{typeof f=="function"&&f(t,a,x)},h=a=>a?a.startsWith("http://")||a.startsWith("https://")||a.startsWith("/")?a:`/storage/${a}`:"/img/haslab-logo.png";return e.jsxs("div",{className:"w-full h-full bg-white rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 overflow-hidden flex flex-col relative",children:[e.jsx("div",{className:"relative bg-gradient-to-br from-gray-50 to-gray-100 flex items-center justify-center overflow-hidden h-[70%] md:h-[75%]",children:e.jsx(I,{href:C,className:"w-full h-full flex items-center justify-center",children:e.jsx("img",{src:h(t.primary_image),alt:t.name,className:"max-h-full max-w-full object-contain p-2 sm:p-3 md:p-4 hover:scale-110 transition-transform duration-300"})})}
20),e.jsxs("div",{className:"px-2 sm:px-4 md:px-5 py-1.5 sm:py-4 md:py-5 flex flex-col h-[35%] md:h-[45%] justify-between",children:[e.jsx(I,{href:C,className:"text-[11px] sm:text-base md:text-lg font-bold text-gray-900 hover:text-primary line-clamp-1 sm:line-clamp-2 mb-0.5 sm:mb-2 transition-colors leading-tight sm:leading-normal",title:t.name,children:t.name}),e.jsx("div",{className:"mb-0.5 sm:mb-3 md:mb-3",children:e.jsxs("div",{className:"flex items-baseline gap-0.5 sm:gap-2 md:gap-2",children:[e.jsx("span",{className:"text-[10px] sm:text-xl md:text-2xl font-bold text-gray-900",children:B(v)}),n&&e.jsx("span",{className:"text-[7px] sm:text-sm md:text-sm text-gray-400 line-through",children:B(i)})]})}),t.is_customizable?e.jsx(I,{href:C,className:"w-full inline-flex items-center justify-center gap-0.5 rounded-lg bg-emerald-600 hover:bg-emerald-700 px-1.5 md:px-4 py-0.5 md:py-2.5 text-[8px] md:text-sm font-semibold text-white transition-all whitespace-nowrap",children:"Customize Now"}):o?e.jsxs("div",{className:"flex items-center gap-0.5 bg-gray-100 rounded-lg p-1 md:p-2",children:[e.jsx("button",{onClick:()=>E(o.quantity-1),className:"h-6 w-6 md:h-8 md:w-8 rounded-md bg-white text-gray-600 hover:text-primary flex items-center justify-center font-bold text-xs md:text-sm",children:"−"}),e.jsx("span",{className:"flex-1 text-center font-bold text-gray-900 text-xs md:text-sm",children:o.quantity}),e.jsx("button",{onClick:()=>E(o.quantity+1),className:"h-6 w-6 md:h-8 md:w-8 rounded-md bg-white text-gray-600 hover:text-primary flex items-center justify-center font-bold text-xs md:text-sm",children:"+"})]}):e.jsxs("button",{onClick:T,disabled:g,className:`w-full inline-flex items-center justify-center gap-0.5 rounded-lg px-1.5 md:px-4 py-0.5 md:py-2.5 text-[8px] md:text-sm font-semibold text-white transition-all whitespace-nowrap ${g?"bg-primary/60 cursor-not-allowed":"bg-primary active:scale-95"}`,children:[e.jsx(K,{className:"w-2.5 h-2.5 md:w-4 md:h-4"}),g?"Adding...":"Add to Cart"]})]})]})}function ne(){const t=["/img/b1.jpeg","/img/b2.jpeg","/img/b3.jpeg","/img/b4.jpeg","/img/b5.jpeg","/img/b6.jpeg","/img/b7.jpeg","/img/b8.jpeg"],[d,o]=l.useState(0),[g,y]=l.useState(0),[f,N]=l.useState(0);l.useEffect(()=>{const c=setInterval(()=>{o(i=>(i+1)%t.length)},5e3);return()=>clearInterval(c)},[t.length]);function b(){o(c=>(c-1+t.length)%t.length)}function x(){o(c=>(c+1)%t.length)}const S=c=>{y(c.targetTouches[0].clientX)},j=c=>{N(c.targetTouches[0].clientX)},v=()=>{g-f>50&&x(),g-f<-50&&b()};return e.jsx("div",{className:"w-full h-full overflow-hidden bg-gradient-to-br from-primary-light to-primary-light relative",children:e.jsx("div",{className:"relative w-full h-full",onTouchStart:S,onTouchMove:j,onTouchEnd:v,children:t.map((c,i)=>e.jsxs("div",{className:`slide-container absolute inset-0 transition-opacity duration-700 ${i===d?"opacity-100 z-10":"opacity-0 z-0"}`,"aria-hidden":i!==d,children:[e.jsx("img",{src:c,alt:`Medical products slide ${i+1}`,className:"w-full h-full object-cover",loading:i===0?"eager":"lazy",fetchPriority:i===0?"high":void 0}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-transparent"})]},c))})})}function oe({ailments:t=[]}){const[d,o]=l.useState(0),[g,y]=l.useState(0),[f,N]=l.useState(0),[b,x]=l.useState(1);l.useEffect(()=>{const n=()=>{x(window.innerWidth>=768?5:1)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]);const S=()=>{o(n=>Math.max(0,n-1))},j=()=>{o(n=>Math.min(t.length-b,n+1))},v=n=>{y(n.targetTouches[0].clientX)},c=n=>{N(n.targetTouches[0].clientX)},i=()=>{g-f>50&&j(),g-f<-50&&S()};return e.jsxs("div",{className:"relative w-full",onTouchStart:v,onTouchMove:c,onTouchEnd:i,children:[e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"flex transition-transform duration-500",style:{transform:`translateX(-${d*(100/b)}%)`},children:t.map(n=>e.jsx("a",{href:`/diseases/${n.slug}`,className:"flex-shrink-0 px-0 cursor-pointer",style:{width:`${100/b}%`},children:e.jsxs("div",{className:"group flex flex-col items-center text-center",children:[e.jsx("div",{className:"w-44 h-44 sm:w-44 sm:h-44 md:w-44 md:h-44 rounded-md md:rounded-lg flex items-center justify-center overflow-hidden mb-2 sm:mb-3 md:mb-3 group-hover:opacity-80 transition-opacity",children:n.image?e.jsx("img",{src:n.image,alt:n.name,className:"w-full h-full object-cover rounded-md md:rounded-lg",loading:"lazy"}):e.jsx("div",{className:"flex items-center justify-center",children:n.icon})}),e.jsx("h3",{className:"text-xs sm:text-sm md:text-base font-semibold text-gray-900 group-hover:text-primary transition-colors",children:n.name})]})},n.slug))})}),t.length>1&&e.jsx("div",{className:"md:hidden mt-3",children:e.jsx("div",{className:"flex items-center gap-1 px-4",children:t.map((n,C)=>e.jsx("div",{className:`h-1 flex-1 rounded transition-all ${C===d?"bg-primary":"bg-gray-200"}`},C))})}),e.jsx("button",{type:"button",onClick:S,"aria-label":"Previous ailments",className:`hidden md:flex absolute left-2 top-1/2 -translate-y-1/2 z-20 bg-white/90 hover:bg-white shadow-lg rounded-full p-2 items-center justify-center transition ${d===0?"opacity-50 cursor-not-allowed":""}`,disabled:d===0,children:e.jsx(J,{className:"w-5 h-5 text-gray-700"})}),e.jsx("button",{type:"button",onClick:j,"aria-label":"Next ailments",className:`hidden md:flex absolute right-2 top-1/2 -translate-y-1/2 z-20 bg-white/90 hover:bg-white shadow-lg rounded-full p-2 items-center justify-center transition ${d>=Math.max(0,t.length-b)?"opacity-50 cursor-not-allowed":""}`,disabled:d>=Math.max(0,t.length-b),children:e.jsx(Z,{className:"w-5 h-5 text-gray-700"})})]})}function me({bestProducts:t=[],cartMap:d={},addingId:o=null,addToCart:g,updateQty:y,defaultVariantMap:f={},BASE_VARIANT_KEY:N="base"}){const[b,x]=l.useState(0),[S,j]=l.useState(0),[v,c]=l.useState(0),i=t||[];l.useEffect(()=>{if(i.length===0)return;const a=setInterval(()=>{x(r=>(r+1)%i.length)},5e3);return()=>clearInterval(a)},[i.length]);const n=()=>{x(a=>(a-1+i.length)%i.length)},C=()=>{x(a=>(a+1)%i.length)},T=a=>{j(a.targetTouches[0].clientX)},E=a=>{c(a.targetTouches[0].clientX)},h=()=>{S-v>50&&C(),S-v<-50&&n()};return i.length===0?e.jsxs("div",{className:"w-full h-full bg-gradient-to-br from-blue-50 to-white flex flex-col",children:[e.jsxs("div",{className:"text-center py-4 px-3 border-b border-blue-100",children:[e.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl font-bold text-gray-900 mb-1",children:"Best Selling"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-600",children:"Our most popular products"})]}),e.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Q,{className:"w-12 h-12 text-gray-300 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-500",children:"No products available"})]})})]}):e.jsxs("div",{className:"w-full h-full bg-gradient-to-br from-blue-50 to-white flex flex-col",onTouchStart:T,onTouchMove:E,onTouchEnd:h,children:[e.jsxs("div",{className:"flex-shrink-0 text-center py-6 px-3",style:{backgroundColor:"#2e3192"},children:[e.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl font-bold text-white mb-1",children:"Best Selling"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-100",children:"Our most popular products"})]}),e.jsx("div",{className:"flex-1 relative overflow-hidden",children:e.jsx("div",{className:"absolute inset-0 flex items-center justify-center px-3 sm:px-4 md:px-0",children:e.jsx("div",{className:"w-full h-full flex items-center justify-center relative",children:i.map((a,r)=>
20{var u;const p=f[a.id]||null,s=(p==null?void 0:p.id)??N,m=((u=d[a.id])==null?void 0:u[s])||null;return e.jsx("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-500 ${r===b?"opacity-100 z-10":"opacity-0 z-0"}`,children:e.jsx("div",{className:"w-full h-full flex items-center justify-center p-0",children:e.jsx(ie,{product:a,variant:p,cartInfo:m,isAdding:o===a.id,onAdd:g,onUpdateQty:y})})},a.id)})})})})]})}function de({recentlyViewed:t=[]}){const[d,o]=l.useState(0),[g,y]=l.useState(0),[f,N]=l.useState(0),[b,x]=l.useState(!1),[S,j]=l.useState(null),v=[{src:"/img/digestob1.jpeg",url:"/products/haslab-digesto-homeopathic-digestive-tonic",name:"Digesto",description:"Helps relieve indigestion, gas, and bloating for quick digestive comfort."},{src:"/img/mamirab5.jpeg",url:"/products/eye-drops-for-red-eyes-mamira",name:"Mamira",description:"Supports eye comfort by easing redness, irritation, and watery eyes."},{src:"/img/phosb4.jpeg",url:"/products/g-h-phos-tonic",name:"G.H. PHOS",description:"Aids mental and physical fatigue, helping improve focus and energy levels."},{src:"/img/Droxb2.jpeg",url:"/products/drox-20-pilovarin-haemorrhoids-varicose-veins",name:"Drox 20",description:"Helps support relief in haemorrhoids and varicose veins."},{src:"/img/wartb6.jpeg",url:"/products/warts-corn-lotion",name:"Wart & Corn Lotion",description:"Targeted care for the removal of warts and corns with regular use."},{src:"/img/Droxb3.jpeg",url:"https://haslab.3ea.in/products/drox-24-sciatec-sciatica-drops",name:"Drox 24",description:"Drox 24 helps relieve paresthesias, muscle cramps, and calf pain."}],i=[...Array.isArray(t)?t.map(r=>({src:r.primary_image||r.primary_image_url||r.primaryImage||"/img/haslab-logo.png",url:r.slug?route("shop.product",r.slug):"#",name:r.name||"",description:r.short_description||"",productId:r.id,isProduct:!0})):[],...v];l.useEffect(()=>{const r=setInterval(()=>{o(p=>(p+1)%i.length)},5e3);return()=>clearInterval(r)},[i.length]);function n(){o(r=>(r-1+i.length)%i.length)}function C(){o(r=>(r+1)%i.length)}const T=r=>{y(r.targetTouches[0].clientX),x(!1)},E=r=>{N(r.targetTouches[0].clientX),Math.abs(g-r.targetTouches[0].clientX)>10&&x(!0)},h=()=>{b&&(g-f>50&&C(),g-f<-50&&n()),x(!1)},a=r=>{b||(r.startsWith("http")?window.open(r,"_blank"):window.location.href=r)};return e.jsx("div",{className:"w-full h-full overflow-hidden bg-gradient-to-br from-primary-light to-primary-light relative",children:e.jsxs("div",{className:"relative w-full h-full",onTouchStart:T,onTouchMove:E,onTouchEnd:h,children:[i.map((r,p)=>e.jsxs("div",{className:`slide-container absolute inset-0 transition-opacity duration-700 ${p===d?"opacity-100 z-10":"opacity-0 z-0"}`,"aria-hidden":p!==d,children:[e.jsxs("div",{onClick:()=>a(r.url),onMouseEnter:()=>j(p),onMouseLeave:()=>j(null),className:"w-full h-full cursor-pointer absolute inset-0 z-30 group",role:"button",tabIndex:0,children:[e.jsx("img",{src:r.src,alt:r.name||`Hero product slide ${p+1}`,className:"w-full h-full object-cover group-hover:opacity-75 transition-opacity select-none",loading:p===0?"eager":"lazy",draggable:!1}),S===p&&(r.name||r.description)&&e.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center z-40 transition-opacity duration-300",children:e.jsxs("div",{className:"text-center px-6 py-4",children:[e.jsx("h3",{className:"text-white text-xl sm:text-2xl md:text-3xl font-bold mb-3",children:r.name}),e.jsx("p",{className:"text-gray-100 text-sm sm:text-base md:text-lg leading-relaxed max-w-sm",children:r.description})]})})]}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-transparent pointer-events-none z-20"})]},(r.productId?`p-${r.productId}`:r.src)+`-${p}`)),e.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 bottom-2 md:bottom-4 flex gap-1.5 md:gap-2 z-20",children:i.map((r,p)=>e.jsx("button",{onClick:()=>o(p),"aria-label":`Go to slide ${p+1}`,className:`transition-all duration-300 rounded-full ${p===d?"w-5 md:w-6 h-1.5 md:h-2 bg-white":"w-1.5 md:w-2 h-1.5 md:h-2 bg-white/60 hover:bg-white/80"}`},p))})]})})}function ce({products:t=[],cartMap:d={},defaultVariantMap:o={},BASE_VARIANT_KEY:g="base",addingId:y=null,addToCart:f,updateQty:N}){const[b,x]=l.useState(0),[S,j]=l.useState(0),[v,c]=l.useState(0),i=()=>{x(h=>(h-1+t.length)%t.length)},n=()=>{x(h=>(h+1)%t.length)},C=h=>{j(h.targetTouches[0].clientX)},T=h=>{c(h.targetTouches[0].clientX)},E=()=>{S-v>50&&n(),S-v<-50&&i()};return e.jsx("section",{className:"py-4 sm:py-8 md:py-12 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-3 sm:px-4 md:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-4 sm:mb-5 md:mb-6",children:[e.jsx("h2",{className:"text-base sm:text-lg md:text-xl lg:text-2xl font-bold text-gray-900 mb-1 sm:mb-2",children:"Recently Viewed Products"}),e.jsx("p",{className:"text-xs sm:text-sm md:text-base text-gray-600",children:"Products you recently viewed"})]}),e.jsxs("div",{className:"sm:hidden relative",onTouchStart:C,onTouchMove:T,onTouchEnd:E,children:[e.jsx("div",{className:"flex justify-center",children:t[b]&&(()=>{var s;const h=t[b],a=o[h.id]||null,r=(a==null?void 0:a.id)??g,p=((s=d[h.id])==null?void 0:s[r])||null;return e.jsx("div",{className:"w-full max-w-xs px-2",children:e.jsx(H,{product:h,variant:a,cartInfo:p,isAdding:y===h.id,onAdd:f,onUpdateQty:N})})})()}),e.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:t.map((h,a)=>e.jsx("button",{onClick:()=>x(a),"aria-label":`Go to product ${a+1}`,className:`transition-all duration-300 rounded-full ${a===b?"w-2.5 h-2.5 bg-primary":"w-2 h-2 bg-gray-300 hover:bg-gray-400"}`},a))})]}),e.jsx("div",{className:"hidden sm:grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-2 sm:gap-3 md:gap-4 lg:gap-5",children:t.map(h=>{var s;const a=o[h.id]||null,r=(a==null?void 0:a.id)??g,p=((s=d[h.id])==null?void 0:s[r])||null;return e.jsx(H,{product:h,variant:a,cartInfo:p,isAdding:y===h.id,onAdd:f,onUpdateQty:N},h.id)})})]})})}const We=({bestProducts:t=[],bestCategory:d=null})=>{const[o,g]=l.useState(""),[y,f]=l.useState(null),[N,b]=l.useState({}),[x,S]=l.useState(""),[j,v]=l.useState([]),c="base",i=(s=[])=>{const m={};
20return(s||[]).forEach(u=>{if(!u||!u.product_id)return;const w=u.variant_id??c;m[u.product_id]||(m[u.product_id]={}),m[u.product_id][w]={key:u.key,quantity:u.quantity}}),m},n=l.useCallback(async()=>{try{const s=await _.get("/cart/items");b(i(s.data||[]))}catch{}},[]),C=l.useMemo(()=>{const s={};return(t||[]).forEach(m=>{const u=(m.variants||[])[0]||null;s[m.id]=u}),s},[t]);l.useEffect(()=>{n()},[n]),l.useEffect(()=>{let s=!0;return(async()=>{try{if(typeof _<"u"){const m=await _.get("/recently-viewed");if(s&&Array.isArray(m.data)&&m.data.length){v(m.data.slice(0,12));return}}}catch{}try{if(typeof window<"u"){const m=localStorage.getItem("recently_viewed_products");if(m){const w=JSON.parse(m);Array.isArray(w)&&v(w.slice(0,12))}const u=w=>{if(w.key==="recently_viewed_products")try{const M=w.newValue?JSON.parse(w.newValue):[];Array.isArray(M)&&v(M.slice(0,12))}catch{}};return window.addEventListener("storage",u),()=>window.removeEventListener("storage",u)}}catch{}})(),()=>s=!1},[]);const T=async(s,m=null)=>{if(s.is_customizable){window.location=route("shop.product",s.slug);return}f(s.id);try{const u=m||C[s.id]||null,{data:w}=await _.post("/cart/add",{product_id:s.id,quantity:1,variant_id:u?u.id:null});S(`${s.name} added to cart`),setTimeout(()=>S(""),2500),await n(),typeof window<"u"&&typeof(w==null?void 0:w.cart_count)=="number"&&window.dispatchEvent(new CustomEvent("cart:updated",{detail:{count:w.cart_count}}))}catch{}finally{f(null)}},E=async(s,m,u=null)=>{var D,L;if(m<0)return;const w=u||C[s.id]||null,M=(w==null?void 0:w.id)??c,z=(D=N[s.id])==null?void 0:D[M];if(!(!z&&m<=0)){f(s.id);try{let k;z?m<=0?k=await _.delete("/cart/item",{data:{key:z.key}}):k=await _.patch("/cart/item",{key:z.key,quantity:m}):k=await _.post("/cart/add",{product_id:s.id,quantity:m,variant_id:w?w.id:null}),await n();const P=(L=k==null?void 0:k.data)==null?void 0:L.cart_count;typeof window<"u"&&typeof P=="number"&&window.dispatchEvent(new CustomEvent("cart:updated",{detail:{count:P}}))}catch{}finally{f(null)}}},h=[{icon:e.jsx(q,{className:"w-6 h-6 md:w-8 md:h-8"}),title:"Prescription Medicines",items:["Pain Management","Cardiac & Diabetes Care","Respiratory Medications"]},{icon:e.jsx(W,{className:"w-6 h-6 md:w-8 md:h-8"}),title:"Health & Wellness",items:["Vitamins & Supplements","Digestive Health Products","Eye Care Solutions"]}],a=[{name:"Digestive",slug:"digestive-problems",icon:e.jsx(ee,{className:"w-5 h-5 text-green-600"}),image:"/img/digestive-problem.png",color:"from-green-50 to-green-100",border:"border-green-200"},{name:"General",slug:"general",icon:e.jsx(W,{className:"w-5 h-5 text-red-500"}),image:"/img/general.png",color:"from-red-50 to-red-100",border:"border-red-200"},{name:"Female",slug:"female",icon:e.jsx(te,{className:"w-5 h-5 text-teal-600"}),image:"/img/female.png",color:"from-teal-50 to-teal-100",border:"border-teal-200"},{name:"Bone & Joint",slug:"joint-muscle-problem",icon:e.jsx(se,{className:"w-5 h-5 text-gray-600"}),image:"/img/bone&joint.png",color:"from-gray-50 to-gray-100",border:"border-gray-200"},{name:"Children",slug:"children",icon:e.jsx(R,{className:"w-5 h-5 text-pink-500"}),image:"/img/children-problem.png",color:"from-pink-50 to-pink-100",border:"border-pink-200"},{name:"Skin & Hair",slug:"skin-and-hair",icon:e.jsx(ae,{className:"w-5 h-5 text-primary"}),image:"/img/skin-hair.png",color:"from-primary-light to-blue-100",border:"border-blue-200"}],r=["Licensed Pharmacy","100% Genuine Products","Expert Consultation","Pan India Delivery"],p=[{icon:e.jsx(O,{className:"w-6 h-6 md:w-8 md:h-8"}),title:"Certified & Safe",desc:"All medicines are GMP approved and quality tested"},{icon:e.jsx(F,{className:"w-6 h-6 md:w-8 md:h-8"}),title:"Fast Delivery",desc:"Express delivery across India"},{icon:e.jsx($,{className:"w-6 h-6 md:w-8 md:h-8"}),title:"Licensed Pharmacists",desc:"Expert guidance from qualified healthcare professionals"},{icon:e.jsx(R,{className:"w-6 h-6 md:w-8 md:h-8"}),title:"60+ Years Trust",desc:"Serving over 50,000+ satisfied customers nationwide"}];return e.jsxs(V,{children:[e.jsx(le,{}),x&&e.jsx("div",{className:"fixed top-4 right-4 bg-green-500 text-white px-4 sm:px-6 py-2 sm:py-3 rounded-lg shadow-lg z-50 animate-fade-in",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(A,{className:"w-4 h-4 sm:w-5 sm:h-5"}),e.jsx("span",{className:"text-sm sm:text-base",children:x})]})}),e.jsx(xe,{}),e.jsx("section",{className:"bg-gray-50",children:e.jsx("div",{className:"w-full",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-0",children:[e.jsx("div",{className:"bg-white border-b lg:border-b-0 lg:border-r border-gray-200 relative",style:{height:"clamp(320px, 100vw, 510px)",overflow:"hidden"},children:e.jsx(ne,{})}),e.jsx("div",{className:"bg-white border-b lg:border-b-0 lg:border-r border-gray-200 relative",style:{height:"clamp(320px, 100vw, 510px)",overflow:"hidden"},children:e.jsx(me,{bestProducts:t,cartMap:N,addingId:y,addToCart:T,updateQty:E,defaultVariantMap:C,BASE_VARIANT_KEY:c})}),e.jsx("div",{className:"bg-white border-b lg:border-b-0 border-gray-200 relative",style:{height:"clamp(320px, 100vw, 510px)",overflow:"hidden"},children:e.jsx(de,{recentlyViewed:j})})]})})}),e.jsx("section",{className:"bg-[#2e3192] shadow-lg",children:e.jsx("div",{className:"w-full px-2 sm:px-4 lg:px-6",children:e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-1.5 sm:gap-4 py-2 sm:py-3",children:[e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 bg-white/10 backdrop-blur-sm rounded-md sm:rounded-lg p-2 sm:p-3 hover:bg-white/20 transition-all group",children:[e.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-10 sm:h-10 bg-white/20 rounded-full flex items-center justify-center group-hover:scale-110 transition-transform",children:e.jsx(O,{className:"w-3.5 h-3.5 sm:w-5 sm:h-5 text-white"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-bold text-white text-xs sm:text-sm md:text-base truncate",children:"100% Safe"}),e.jsx("div",{className:"text-[9px] sm:text-[10px] text-white/80 truncate",children:"Verified & Authentic"})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 bg-white/10 backdrop-blur-sm rounded-md sm:rounded-lg p-2 sm:p-3 hover:bg-white/20 transition-all group",children:[e.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-10 sm:h-10 bg-white/20 rounded-full flex items-center justify-center group-hover:scale-110 transition-transform",children:e.jsx(F,{className:"w-3.5 h-3.5 sm:w-5 sm:h-5 text-white"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-bold text-white text-xs sm:text-sm md:text-base truncate",children:"Contactless Delivery"}),e.jsx("div",{className:"text-[9px] sm:text-[10px] text-white/80 truncate",children:"Safe & Hygienic"})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 bg-white/10 backdrop-blur-sm rounded-md sm:rounded-lg p-2 sm:p-3 hover:bg-white/20 transition-all group",children:[e.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-10 sm:h-10 bg-white/20 rounded-full flex items-center justify-center group-hover:scale-110 transition-transform",children:e.jsx(A,{className:"w-3.5 h-3.5 sm:w-5 sm:h-5 text-white"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-bold text-white text-xs sm:text-sm md:text-base truncate",children:"Free Delivery"}),e.jsx("div",{className:"text-[9px] sm:text-[10px] text-white/80 truncate",children:"On orders above ₹1,000"})]})]})]})})}),e.jsx("section",{className:"py-8 sm:py-12 md:py-16 lg:py-20 bg-gradient-to-br from-gray-50 to-primary-light",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-6 sm:mb-8 md:mb-12",children:[e.jsx("h2",{className:"text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold text-gray-900 mb-2 sm:mb-3",children:"Find Medicines by Ailment"}),e.jsx("p",{className:"text-xs sm:text-sm md:text-base text-gray-600 max-w-2xl mx-auto mb-4 sm:mb-6 px-2",children:"Search for health conditions and discover our specialized homeopathic solutions"}),e.jsxs("div",{className:"relative max-w-2xl mx-auto",children:[e.jsx("input",{type:"text",value:o,onChange:s=>g(s.target.value),placeholder:" ",className:"peer w-full rounded-xl sm:rounded-2xl border-2 border-gray-300 px-4 sm:px-5 md:px-6 py-3 sm:py-4 text-sm sm:text-base text-gray-900 transition focus:outline-none focus:border-primary focus:ring-4 focus:ring-primary-light"}),e.jsx("label",{className:"absolute left-4 sm:left-5 md:left-6 top-3 sm:top-4 text-xs sm:text-sm md:text-base text-gray-500 transition-all duration-200 pointer-events-none peer-focus:-top-2 sm:peer-focus:-top-3 peer-focus:text-xs peer-focus:text-primary peer-placeholder-shown:top-3 sm:peer-placeholder-shown:top-4 peer-placeholder-shown:text-sm sm:peer-placeholder-shown:text-base peer-not-placeholder-shown:-top-2 sm:peer-not-placeholder-shown:-top-3 peer-not-placeholder-shown:text-xs peer-not-placeholder-shown:text-primary bg-white px-2 -mx-2 rounded",children:"Search ailments, e.g. 'digestive'"}),e.jsx("div",{className:"absolute right-3 sm:right-4 md:right-5 top-1/2 -translate-y-1/2 text-gray-400 peer-focus:text-primary transition-colors",children:e.jsx(G,{className:"w-4 h-4 sm:w-5 sm:h-5"})})]})]}),e.jsx(oe,{ailments:a.filter(s=>s.name.toLowerCase().includes(o.toLowerCase()))}),a.filter(s=>s.name.toLowerCase().includes(o.toLowerCase())).length===0&&e.jsxs("div",{className:"text-center py-8 sm:py-12",children:[e.jsx(G,{className:"w-10 h-10 sm:w-12 sm:h-12 text-gray-300 mx-auto mb-3 sm:mb-4"}),e.jsxs("p",{className:"text-sm sm:text-base text-gray-500",children:['No ailments found matching "',o,'"']})]})]})}),j.length>0&&e.jsx(ce,{products:j,cartMap:N,defaultVariantMap:C,BASE_VARIANT_KEY:c,addingId:y,addToCart:T,updateQty:E}),e.jsx("section",{className:"py-12 sm:py-16 md:py-20 lg:py-24 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 sm:gap-8 lg:gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black mb-4 sm:mb-6 leading-tight text-gray-900",children:"Haslab Goes Digital"}),e.jsx("p",{className:"text-base sm:text-lg md:text-xl text-gray-700 mb-4 sm:mb-6 leading-relaxed",children:`Haslab has launched India's first-ever homeopathy brand mobile app "Dr. Haslab" with the motto to serve patients well. Experience the happiness wrapped in the faith and warmth of homeopathic medicines. Get a 15% discount on every order!`}),e.jsxs("div",{className:"space-y-3 sm:space-y-4 mb-6 sm:mb-8",children:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[e.jsx(A,{className:"w-5 h-5 sm:w-6 sm:h-6 text-primary flex-shrink-0"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 font-medium",children:"Available on iOS & Android"})]}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[e.jsx(A,{className:"w-5 h-5 sm:w-6 sm:h-6 text-primary flex-shrink-0"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 font-medium",children:"Secure & HIPAA Compliant"})]})]}),e.jsxs("a",{href:"https://hsl.3ea.in/",className:"inline-flex items-center bg-gradient-to-r from-primary to-primary hover:shadow-lg text-white font-bold py-2.5 px-6 sm:py-3 sm:px-8 rounded-lg transition-all text-sm sm:text-base",children:["Download Now",e.jsx(X,{className:"w-4 h-4 sm:w-5 sm:h-5 ml-2"})]})]}),e.jsx("div",{children:e.jsx("img",{src:"/img/App-img-about.png",alt:"Dr Haslab Mobile App",className:"w-full rounded-lg shadow-lg object-contain",loading:"lazy"})})]})})}),e.jsx("section",{className:"py-8 sm:py-10 md:py-16 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4 md:gap-6",children:p.map((s,m)=>e.jsxs("div",{className:"text-center p-3 sm:p-4 md:p-6 bg-gradient-to-br from-primary-light to-primary-light rounded-xl hover:shadow-lg transition-all duration-300 transform hover:-translate-y-1",children:[e.jsx("div",{className:"text-primary mb-2 md:mb-3 flex justify-center",children:s.icon}),e.jsx("h3",{className:"font-bold text-gray-900 mb-1 md:mb-2 text-xs sm:text-sm md:text-base",children:s.title}),e.jsx("p",{className:"text-[10px] sm:text-xs md:text-sm text-gray-700 line-clamp-2",children:s.desc})]},m))})})}),e.jsx("section",{className:"py-8 sm:py-12 md:py-20 bg-gradient-to-br from-gray-50 via-blue-50 to-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8 md:mb-12",children:[e.jsx($,{className:"w-8 h-8 sm:w-10 sm:h-10 md:w-12 md:h-12 text-primary mx-auto mb-3 md:mb-4"}),e.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl xl:text-4xl font-bold text-gray-900 mb-2 md:mb-3",children:"Our Certifications & Awards"}),e.jsx("p",{className:"text-xs sm:text-sm md:text-base lg:text-lg text-gray-600 max-w-3xl mx-auto px-4",children:"Trusted by millions. Certified for quality, safety, and excellence in healthcare solutions."})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6 md:gap-8 items-center justify-items-center",children:[e.jsxs("div",{className:"flex flex-col items-center p-4 sm:p-6 rounded-lg bg-white shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 group w-full",children:[e.jsx("img",{src:"/img/iconic.png",alt:"Iconic Brand of the Year",className:"h-12 sm:h-14 md:h-16 object-contain mb-2 sm:mb-3 group-hover:scale-110 transition-transform",loading:"lazy"}),e.jsx("p",{className:"text-[11px] sm:text-xs md:text-sm font-semibold text-gray-900 text-center leading-tight",children:"Iconic Brand of the Year"})]}),e.jsxs("div",{className:"flex flex-col items-center p-4 sm:p-6 rounded-lg bg-white shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 group w-full",children:[e.jsx("img",{src:"/img/iso.png",alt:"ISO 9001-2015 Certified",className:"h-12 sm:h-14 md:h-16 object-contain mb-2 sm:mb-3 group-hover:scale-110 transition-transform",loading:"lazy"}),e.jsx("p",{className:"text-[11px] sm:text-xs md:text-sm font-semibold text-gray-900 text-center leading-tight",children:"ISO 9001-2015 Certified"})]}),e.jsxs("div",{className:"flex flex-col items-center p-4 sm:p-6 rounded-lg bg-white shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 group w-full",children:[e.jsx("img",{src:"/img/gmp.png",alt:"GMP Quality Certified",className:"h-12 sm:h-14 md:h-16 object-contain mb-2 sm:mb-3 group-hover:scale-110 transition-transform",loading:"lazy"}),e.jsx("p",{className:"text-[11px] sm:text-xs md:text-sm font-semibold text-gray-900 text-center leading-tight",children:"GMP Quality Certified"})]}),e.jsxs("div",{className:"flex flex-col items-center p-4 sm:p-6 rounded-lg bg-white shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 group w-full",children:[e.jsx("img",{src:"/img/zed.png",alt:"ZED Gold MSME",className:"h-12 sm:h-14 md:h-16 object-contain mb-2 sm:mb-3 group-hover:scale-110 transition-transform",loading:"lazy"}),e.jsx("p",{className:"text-[11px] sm:text-xs md:text-sm font-semibold text-gray-900 text-center leading-tight",children:"ZED Gold MSME"})]})]})]})}),e.jsx("section",{id:"shop",className:"py-8 sm:py-12 md:py-20 bg-[#2e3192] text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-4 sm:mb-5 md:mb-6",children:[e.jsx(q,{className:"w-8 h-8 sm:w-10 sm:h-10 md:w-12 md:h-12 mx-auto mb-2 md:mb-3 opacity-90"}),e.jsx("h2",{className:"text-base sm:text-lg md:text-xl lg:text-2xl xl:text-3xl font-bold mb-2 md:mb-3",children:"Order Medicines Online"}),e.jsx("p",{className:"text-[11px] sm:text-xs md:text-sm lg:text-base opacity-90 max-w-3xl mx-auto mb-3 sm:mb-4 md:mb-5 px-4",children:"Get all your medicines delivered to your doorstep. Easy ordering, secure payment, and guaranteed authenticity."})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-2 sm:gap-3 md:gap-5 mb-4 sm:mb-5 md:mb-6",children:r.map((s,m)=>e.jsxs("div",{className:"text-center",children:[e.jsx(A,{className:"w-4 h-4 sm:w-5 sm:h-5 md:w-6 md:h-6 mx-auto mb-1 opac
20ity-90"}),e.jsx("p",{className:"text-[9px] sm:text-[10px] md:text-xs lg:text-sm font-medium leading-tight",children:s})]},m))}),e.jsx("div",{className:"text-center",children:e.jsxs("a",{href:"/shop",className:"bg-white text-primary px-4 sm:px-6 py-2 sm:py-2.5 md:py-3 rounded-lg font-semibold text-[11px] sm:text-xs md:text-sm lg:text-base hover:bg-gray-100 transition-all duration-300 shadow-lg hover:shadow-xl inline-flex items-center",children:["Browse All Products",e.jsx(X,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 md:w-4 md:h-4 ml-1 sm:ml-1.5 md:ml-2"})]})})]})}),e.jsx("section",{id:"services",className:"py-8 sm:py-12 md:py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[e.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl xl:text-4xl font-bold text-gray-900 mb-2 md:mb-3",children:"Our Product Categories"}),e.jsx("p",{className:"text-xs sm:text-sm md:text-base lg:text-lg text-gray-600 max-w-3xl mx-auto px-4",children:"Comprehensive healthcare solutions for all your medical and wellness needs"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4 md:gap-6 lg:gap-8",children:h.map((s,m)=>e.jsxs("div",{className:"bg-gradient-to-br from-primary-light to-white rounded-xl p-4 sm:p-5 md:p-7 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1.5 border border-blue-100",children:[e.jsx("div",{className:"text-primary mb-2 md:mb-3",children:s.icon}),e.jsx("h3",{className:"text-sm sm:text-base md:text-lg lg:text-xl font-bold text-gray-900 mb-2 md:mb-3",children:s.title}),e.jsx("ul",{className:"space-y-1.5 md:space-y-2",children:s.items.map((u,w)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(A,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 md:w-4 md:h-4 text-green-500 mr-2 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-[11px] sm:text-xs md:text-sm text-gray-700",children:u})]},w))})]},m))})]})}),e.jsx("section",{className:"py-8 sm:py-12 md:py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-4 sm:mb-6 md:mb-8",children:[e.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl xl:text-4xl font-bold text-gray-900 mb-2 md:mb-3",children:"Special Offers & Benefits"}),e.jsx("p",{className:"text-xs sm:text-sm md:text-base lg:text-lg text-gray-600 max-w-3xl mx-auto px-4",children:"Save more on your healthcare expenses with our exclusive deals and loyalty programs"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4 md:gap-6",children:[e.jsxs("div",{className:"bg-gradient-to-br from-green-50 to-green-100 rounded-xl p-3 sm:p-4 md:p-5 lg:p-6 border border-green-200",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-1 sm:mb-1.5 text-xs sm:text-sm md:text-base",children:"First Order Discount"}),e.jsx("p",{className:"text-[10px] sm:text-xs md:text-sm text-gray-700 leading-relaxed",children:"Get flat 15% off on your first medicine order. Use code: WELCOME15. Minimum order value ₹500."})]}),e.jsxs("div",{className:"bg-gradient-to-br from-yellow-50 to-yellow-100 rounded-xl p-3 sm:p-4 md:p-5 lg:p-6 border border-yellow-200",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-1 sm:mb-1.5 text-xs sm:text-sm md:text-base",children:"Free Delivery"}),e.jsx("p",{className:"text-[10px] sm:text-xs md:text-sm text-gray-700 leading-relaxed",children:"Enjoy free home delivery on all orders above ₹999."})]})]})]})}),e.jsx("section",{className:"py-6 sm:py-8 md:py-12 bg-[#2e3192] text-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"text-center",children:[e.jsx(O,{className:"w-7 h-7 sm:w-8 sm:h-8 md:w-10 md:h-10 lg:w-12 lg:h-12 mx-auto mb-2 md:mb-3 opacity-90"}),e.jsx("h3",{className:"text-base sm:text-lg md:text-xl lg:text-2xl font-bold mb-1 md:mb-2",children:"Your Health is Our Responsibility"}),e.jsx("p",{className:"inline-block text-sm sm:text-base md:text-lg opacity-100 px-4 sm:px-6 py-2 sm:py-2.5 mb-3 md:mb-4 font-semibold bg-white/15 rounded-full border border-white/30",children:"#LiveLifeWithoutSideEffects"}),e.jsx("p",{className:"text-[10px] sm:text-xs md:text-sm lg:text-base opacity-90 max-w-2xl mx-auto px-4",children:"100% genuine medicines • Licensed pharmacists • Secure transactions"})]})})})]})};function xe(){const t=l.useRef(null),[d,o]=l.useState(0),[g,y]=l.useState(!1);l.useEffect(()=>{t.current&&o(t.current.scrollWidth);const b=()=>{t.current&&o(t.current.scrollWidth)};return window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]);const N=d?d/100:10;return e.jsxs("section",{className:"bg-[#EDEDED] shadow-md relative overflow-hidden  border-gray-200",children:[e.jsx("div",{className:"relative max-w-7xl mx-auto px-0",children:e.jsx("div",{className:"overflow-x-hidden w-full",children:d>0&&e.jsxs("div",{className:"flex items-center py-2 sm:py-3 whitespace-nowrap",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onTouchStart:()=>y(!0),onTouchEnd:()=>setTimeout(()=>y(!1),200),style:{width:`${d*2}px`,animation:`marquee-seamless ${N}s linear infinite`,animationPlayState:g?"paused":"running"},children:[e.jsxs("span",{ref:t,className:"flex items-center gap-2 sm:gap-4 mr-8 sm:mr-16",children:[e.jsx("span",{className:"text-black font-bold text-sm sm:text-lg md:text-xl tracking-tight",children:"FLAT 15% OFF"}),e.jsxs("span",{className:"text-gray-700 font-medium text-xs sm:text-sm md:text-base",children:["Use code:"," ",e.jsx("span",{className:"font-bold text-white bg-gradient-to-r from-primary to-primary px-1.5 sm:px-2 py-0.5 rounded shadow-md mx-1",children:"SAVE15"}),"• T&C applied"]}),e.jsx("span",{className:"inline-flex items-center bg-[#2e3192] text-white rounded-full px-2 sm:px-3 py-0.5 
20sm:py-1 font-semibold text-xs sm:text-sm ml-1 sm:ml-2",children:"Shop Now"})]}),e.jsxs("span",{className:"flex items-center gap-2 sm:gap-4 mr-8 sm:mr-16",children:[e.jsx("span",{className:"text-black font-bold text-sm sm:text-lg md:text-xl tracking-tight",children:"FLAT 15% OFF"}),e.jsxs("span",{className:"text-gray-700 font-medium text-xs sm:text-sm md:text-base",children:["Use code:"," ",e.jsx("span",{className:"font-bold text-white bg-gradient-to-r from-primary to-primary px-1.5 sm:px-2 py-0.5 rounded shadow-md mx-1",children:"SAVE15"}),"• T&C applied"]}),e.jsx("span",{className:"inline-flex items-center bg-[#2e3192] text-white rounded-full px-2 sm:px-3 py-0.5 sm:py-1 font-semibold text-xs sm:text-sm ml-1 sm:ml-2",children:"Shop Now"})]})]})})}),e.jsx("style",{children:`
21        @keyframes marquee-seamless {
22          0% { transform: translateX(0); }
23          100% { transform: translateX(-50%); }
24        }
25      `})]})}export{We 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.