1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1226],{11073:(e,t,i)=>{i.d(t,{e:()=>l});function l(e){return String(e||"").replace(/^\s*buy\s+/i,"").replace(/\s+online\s*$/i,"").trim()||String(e||"")}},11226:(e,t,i)=>{i.d(t,{A:()=>j,ProductArt:()=>y});var l=i(95155),s=i(12115),r=i(98500),a=i.n(r),c=i(95697),n=i(59619),o=i(49804),f=i(31355),x=i(73321),h=i(90805),d=i(88009),u=i(11073);let g={bestseller:"left-3 bg-[#d6ebe7] text-[#131921]",new:"left-3 bg-[#7fc6c4] text-[#024a47]",sale:"right-3 bg-[#ba1a1a] text-white"};function p(e){let{rating:t,reviews:i}=e;return(0,l.jsxs)("div",{className:"mb-2 flex items-center gap-1",children:[(0,l.jsx)("div",{className:"flex",children:Array.from({length:5},(e,i)=>{let s=i+1;return t>=s?(0,l.jsx)(c.A,{className:"h-4 w-4 fill-[#fbbc05] text-[#fbbc05]"},s):t>=s-.5?(0,l.jsx)(n.A,{className:"h-4 w-4 fill-[#fbbc05] text-[#fbbc05]"},s):(0,l.jsx)(c.A,{className:"h-4 w-4 fill-[#e0e3e6] text-[#e0e3e6]"},s)})}),(0,l.jsxs)("span",{className:"text-xs text-[#5e6773]",children:["(",String(i).replace(/\s*reviews?/i,"").trim(),")"]})]})}function b(e){let{product:t,layout:i="default",className:s=""}=e,r=(0,x.useRouter)(),{add:a}=(0,h._)();return(0,l.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),a(t,1),r.push("/checkout")},className:`flex items-center justify-center gap-1.5 whitespace-nowrap py-3 text-[11px] font-bold uppercase tracking-wider bg-[#0f172a] text-white hover:bg-[#1e293b] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500 ${"split"===i?"flex-1 max-sm:hidden":"rounded-md "+s}`,children:[(0,l.jsx)(o.A,{className:"h-4 w-4 fill-[#fbbc05] text-[#fbbc05]"}),"Buy Now"]})}function j(e){let{product:t,layout:i="default"}=e,{slug:r,name:c,price:n,oldPrice:o,rating:x,reviews:h,badge:j,variant:m,accent:w,image:v}=t,[N,k]=(0,s.useState)(v?{url:v,alt:(0,u.e)(c)}:null),[A,C]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{try{let e=localStorage.getItem("netrxplus_admin_data_v6");if(!e)return;let t=JSON.parse(e),i=t?.products?.find(e=>e.slug===r),l=i?.image||i?.gallery?.[0]?.url;l&&k({url:l,alt:(0,u.e)(c)})}catch{}},[r,c]),(0,s.useEffect)(()=>{C(!1)},[N?.url]),(0,l.jsxs)("div",{className:"group flex h-full flex-col overflow-hidden rounded-lg border border-slate-200/60 bg-white shadow-[0_4px_20px_rgba(14,31,75,0.05)] transition-all duration-300 hover:shadow-[0_8px_30px_rgba(14,31,75,0.12)]",children:[(0,l.jsx)("div",{className:"relative aspect-square overflow-hidden bg-white border-b border-slate-200",children:(0,l.jsxs)(a(),{href:`/product/${r}`,"aria-label":(0,u.e)(c),title:(0,u.e)(c),className:"absolute inset-0 block",children:[j&&"sale"===j.tone&&(0,l.jsx)("span",{className:`absolute top-3 z-10 rounded-full px-3 py-1 text-xs font-medium ${g[j.tone]}`,children:j.label}),(0,l.jsx)("div",{className:"h-full w-full transition-transform duration-500 group-hover:scale-105",children:N&&!A?(0,l.jsx)("img",{src:N.url,alt:N.alt,title:N.alt,"data-description":N.alt,loading:"lazy",decoding:"async",width:600,height:600,onError:()=>C(!0),className:"h-full w-full object-contain p-4"}):(0,l.jsx)(y,{variant:m,accent:w,seed:r})})]})}),(0,l.jsxs)("div",{className:"flex flex-grow flex-col p-4 sm:p-6 pb-4",children:[(0,l.jsx)(p,{rating:x,reviews:h}),(0,l.jsx)(a(),{href:`/product/${r}`,title:(0,u.e)(c),children:(0,l.jsx)("h3",{className:"mb-2 truncate text-sm font-semibold text-[#232f3e] transition-colors hover:text-[#0a7271] sm:text-[15px]",children:(0,u.e)(c)})}),(0,l.jsxs)("div",{className:"mt-auto flex items-end justify-between gap-2",children:[(0,l.jsx)("div",{children:o?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(d.default,{usd:o,className:"text-xs text-[#5e6773] line-through"}),(0,l.jsx)(d.default,{usd:n,className:"text-base font-semibold text-[#ba1a1a] sm:text-lg"})]}):(0,l.jsx)(d.default,{usd:n,className:"text-base font-semibold text-[#232f3e] sm:text-lg"})}),"default"===i&&(0,l.jsx)(f.default,{product:{slug:r,name:c,price:n},variant:"icon"})]})]}),"split"===i&&(0,l.jsxs)("div",{className:"mt-auto flex w-full",children:[(0,l.jsx)(f.default,{product:{slug:r,name:c,price:n},variant:"split"}),(0,l.jsx)(b,{product:{slug:r,name:c,price:n},layout:"split"})]})]})}let m=["#037575","#0c8281","#024f4e","#0e8a89","#0a6b6a","#125e5d","#ffb447"];function y(e){let{variant:t,accent:i,bg:s=!0,seed:r}=e,a=String(t||"").toLowerCase(),c=function(e){let t=0;for(let i=0;i<e.length;i++)t=31*t+e.charCodeAt(i)>>>0;return m[t%m.length]}(r||i||a),n=["pill","pills","capsule","capsules","tablet","tablets"].includes(a)?"pills":["sachet","sachets","powder","granules"].includes(a)?"sachet":["pack","strip","blister"].includes(a)?"blister":["tube","cream","gel","ointment"].includes(a)?"tube":["drops","drop","liquid","syrup","solution","serum"].includes(a)?"dropper":["spray","inhaler","nasal"].includes(a)?"spray":"patch"===a?"patch":"bottle";return(0,l.jsxs)("svg",{viewBox:"0 0 200 200",preserveAspectRatio:s?"xMidYMid slice":"xMidYMid meet",className:"h-full w-full",role:"img","aria-hidden":"true",children:[s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("rect",{width:"200",height:"200",fill:"#eef3f8"}
1),(0,l.jsx)("circle",{cx:"100",cy:"96",r:"74",fill:c,opacity:"0.08"})]}),"bottle"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",{x:"84",y:"46",width:"32",height:"18",rx:"4",fill:c}),(0,l.jsx)("rect",{x:"88",y:"60",width:"24",height:"8",fill:c,opacity:"0.7"}),(0,l.jsx)("rect",{x:"70",y:"66",width:"60",height:"92",rx:"12",fill:"#ffffff"}),(0,l.jsx)("rect",{x:"70",y:"98",width:"60",height:"40",fill:c,opacity:"0.14"}),(0,l.jsx)("rect",{x:"82",y:"108",width:"36",height:"6",rx:"3",fill:c,opacity:"0.5"}),(0,l.jsx)("rect",{x:"86",y:"120",width:"28",height:"5",rx:"2.5",fill:c,opacity:"0.3"}),(0,l.jsxs)("g",{transform:"translate(100 84)",children:[(0,l.jsx)("rect",{x:"-4",y:"-9",width:"8",height:"18",rx:"2",fill:c}),(0,l.jsx)("rect",{x:"-9",y:"-4",width:"18",height:"8",rx:"2",fill:c})]})]}),"pills"===n&&(0,l.jsxs)("g",{children:[(0,l.jsxs)("g",{transform:"rotate(-32 100 92)",children:[(0,l.jsx)("rect",{x:"58",y:"76",width:"84",height:"34",rx:"17",fill:"#ffffff"}),(0,l.jsx)("path",{d:"M75 76h-0a17 17 0 00-17 17 17 17 0 0017 17h25V76z",fill:c}),(0,l.jsx)("rect",{x:"58",y:"76",width:"84",height:"34",rx:"17",fill:"none",stroke:c,strokeWidth:"2",opacity:"0.5"}),(0,l.jsx)("ellipse",{cx:"120",cy:"88",rx:"10",ry:"5",fill:"#ffffff",opacity:"0.6"})]}),(0,l.jsx)("circle",{cx:"72",cy:"140",r:"15",fill:"#ffffff",stroke:c,strokeWidth:"2",opacity:"0.95"}),(0,l.jsx)("path",{d:"M72 128v24",stroke:c,strokeWidth:"2",opacity:"0.6"}),(0,l.jsx)("circle",{cx:"112",cy:"146",r:"12",fill:c,opacity:"0.85"}),(0,l.jsx)("path",{d:"M112 137v18M103 146h18",stroke:"#ffffff",strokeWidth:"2",opacity:"0.9"})]}),"sachet"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("path",{d:"M66 60 h68 l-4 6 4 6 -4 6 4 6 -4 6 v58 a6 6 0 01-6 6 H72 a6 6 0 01-6-6 z",fill:"#ffffff"}),(0,l.jsx)("path",{d:"M66 60 h68 l-4 6 4 6 -4 6 4 6 -4 6 v58 a6 6 0 01-6 6 H72 a6 6 0 01-6-6 z",fill:c,opacity:"0.12"}),(0,l.jsx)("rect",{x:"66",y:"96",width:"68",height:"34",fill:c,opacity:"0.2"}),(0,l.jsx)("rect",{x:"78",y:"106",width:"44",height:"6",rx:"3",fill:c,opacity:"0.55"}),(0,l.jsx)("rect",{x:"82",y:"118",width:"36",height:"5",rx:"2.5",fill:c,opacity:"0.35"}),(0,l.jsx)("path",{d:"M66 60 h68",stroke:c,strokeWidth:"3",opacity:"0.7"})]}),"tube"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",{x:"88",y:"44",width:"24",height:"16",rx:"3",fill:c}),(0,l.jsx)("path",{d:"M74 64h52v82a8 8 0 01-8 8H82a8 8 0 01-8-8z",fill:"#ffffff"}),(0,l.jsx)("path",{d:"M74 64h52v8H74z",fill:c,opacity:"0.7"}),(0,l.jsx)("rect",{x:"84",y:"92",width:"32",height:"44",rx:"6",fill:c,opacity:"0.14"}),(0,l.jsx)("rect",{x:"92",y:"102",width:"16",height:"6",rx:"3",fill:c,opacity:"0.55"}),(0,l.jsx)("path",{d:"M90 158l20 0",stroke:c,strokeWidth:"6",strokeLinecap:"round"})]}),"dropper"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",{x:"86",y:"42",width:"28",height:"12",rx:"3",fill:c}),(0,l.jsx)("rect",{x:"94",y:"30",width:"12",height:"16",rx:"3",fill:c,opacity:"0.7"}),(0,l.jsx)("path",{d:"M76 66h48a6 6 0 016 6v72a10 10 0 01-10 10H80a10 10 0 01-10-10V72a6 6 0 016-6z",fill:"#ffffff"}),(0,l.jsx)("rect",{x:"70",y:"104",width:"60",height:"46",fill:c,opacity:"0.16"}),(0,l.jsx)("rect",{x:"82",y:"116",width:"36",height:"6",rx:"3",fill:c,opacity:"0.5"}),(0,l.jsx)("rect",{x:"86",y:"128",width:"28",height:"5",rx:"2.5",fill:c,opacity:"0.3"})]}),"spray"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",{x:"90",y:"34",width:"30",height:"14",rx:"3",fill:c}),(0,l.jsx)("rect",{x:"82",y:"40",width:"14",height:"8",rx:"2",fill:c,opacity:"0.8"}),(0,l.jsx)("rect",{x:"94",y:"48",width:"18",height:"14",fill:c,opacity:"0.5"}),(0,l.jsx)("path",{d:"M80 62h40a8 8 0 018 8v76a10 10 0 01-10 10H82a10 10 0 01-10-10V70a8 8 0 018-8z",fill:"#ffffff"}),(0,l.jsx)("rect",{x:"72",y:"104",width:"56",height:"42",fill:c,opacity:"0.16"}),(0,l.jsx)("rect",{x:"84",y:"116",width:"32",height:"6",rx:"3",fill:c,opacity:"0.5"})]}),"blister"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",{x:"50",y:"64",width:"100",height:"74",rx:"10",fill:"#ffffff"}),(0,l.jsx)("rect",{x:"50",y:"64",width:"100",height:"74",rx:"10",fill:c,opacity:"0.08"}),[0,1,2,3].map(e=>[0,1].map(t=>
1(0,l.jsx)("circle",{cx:68+22*e,cy:86+30*t,r:"9",fill:c,opacity:"0.85"},`${e}-${t}`)))]}),"patch"===n&&(0,l.jsxs)("g",{children:[(0,l.jsx)("rect",{x:"60",y:"58",width:"80",height:"92",rx:"8",fill:"#ffffff"}),(0,l.jsx)("rect",{x:"60",y:"58",width:"80",height:"26",rx:"8",fill:c}),(0,l.jsxs)("g",{transform:"translate(100 110)",children:[(0,l.jsx)("rect",{x:"-5",y:"-14",width:"10",height:"28",rx:"2",fill:c,opacity:"0.6"}),(0,l.jsx)("rect",{x:"-14",y:"-5",width:"28",height:"10",rx:"2",fill:c,opacity:"0.6"})]}),(0,l.jsx)("rect",{x:"74",y:"132",width:"52",height:"6",rx:"3",fill:c,opacity:"0.25"})]})]})}},31355:(e,t,i)=>{i.d(t,{default:()=>o});var l=i(95155),s=i(12115),r=i(64577),a=i(96550),c=i(2125),n=i(90805);function o(e){let{product:t,variant:i="labeled",qty:o=1}=e,{add:f}=(0,n._)(),[x,h]=(0,s.useState)(!1);function d(e){e.preventDefault(),e.stopPropagation(),f(t,o),h(!0),setTimeout(()=>h(!1),1400)}return"block"===i?(0,l.jsxs)("button",{onClick:d,"aria-label":`Add ${t.name} to cart`,className:`group/btn flex w-full items-center justify-center gap-2 rounded-lg py-4 font-extrabold uppercase tracking-wide shadow-sm transition-all active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ${x?"bg-green-600 text-white focus-visible:ring-green-600":"bg-[#12a5a2] text-[#232f3e] hover:brightness-105 focus-visible:ring-[#12a5a2]"}`,children:[x?(0,l.jsx)(r.A,{className:"h-5 w-5"}):(0,l.jsx)(a.A,{className:"h-5 w-5 transition-transform group-hover/btn:rotate-12"}),x?"Added":"Add to Cart"]}):"mini"===i?(0,l.jsx)("button",{onClick:d,"aria-label":`Add ${t.name} to cart`,className:`flex h-8 w-8 items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0c8281] focus-visible:ring-offset-1 ${x?"bg-green-600 text-white":"bg-[#e5e8eb] text-[#232f3e] hover:bg-[#0c8281] hover:text-white"}`,children:x?(0,l.jsx)(r.A,{className:"h-4 w-4"}):(0,l.jsx)(c.A,{className:"h-5 w-5"})}):"split"===i?(0,l.jsxs)("button",{onClick:d,"aria-label":`Add ${t.name} to cart`,className:`flex-1 flex items-center justify-center gap-1.5 whitespace-nowrap py-3 text-[11px] font-bold uppercase tracking-wider transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500 ${x?"bg-green-600 text-white":"themed-accent-bg bg-[#00e5ff] text-[#0f172a] hover:bg-[#00c9e0]"}`,children:[x?(0,l.jsx)(r.A,{className:"h-4 w-4"}):(0,l.jsx)(a.A,{className:"h-4 w-4"}),x?"Added":"Add to Cart"]}):"icon"===i||"cyan"===i?(0,l.jsx)("button",{onClick:d,"aria-label":`Add ${t.name} to cart`,className:`flex items-center justify-center rounded-lg p-3 shadow-sm transition-all active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ${"cyan"===i?"h-10 w-10 bg-[#0c8281] text-white hover:bg-[#002535] focus-visible:ring-[#0c8281]":"bg-[#d6ebe7] text-[#131921] hover:bg-[#a8dadc] focus-visible:ring-[#0c8281]"} ${x?"!bg-green-600 !text-white":""}`,children:x?(0,l.jsx)(r.A,{className:"h-5 w-5"}):(0,l.jsx)(a.A,{className:"h-5 w-5"})}):(0,l.jsxs)("button",{onClick:d,"aria-label":`Add ${t.name} to cart`,className:`group/btn flex items-center justify-center rounded-lg px-4 py-3 transition-all active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0c8281] focus-visible:ring-offset-2 ${x?"bg-green-600 text-white":"bg-[#d6ebe7] text-[#131921] hover:bg-[#a8dadc]"}`,children:[x?(0,l.jsx)(r.A,{className:"h-5 w-5"}):(0,l.jsx)(a.A,{className:"h-5 w-5 transition-transform group-hover/btn:rotate-12"}),(0,l.jsx)("span",{className:"ml-2 hidden text-sm font-semibold sm:inline",children:x?"Added":"Add"})]})}},88009:(e,t,i)=>{i.d(t,{default:()=>r});var l=i(95155),s=i(90066);function r(e){let{usd:t,className:i}=e,{format:r}=(0,s.H)();return(0,l.jsx)("span",{className:i,children:r(t)})}},90066:(e,t,i)=>{i.d(t,{CurrencyProvider:()=>n,H:()=>o,y:()=>r});var l=i(95155),s=i(12115);let r={USD:{code:"USD",symbol:"$",label:"USD â US Dollar",rate:1,country:"United States"}},a="netrxplus_currency",c=(0,s.createContext)(null);function n(e){let{children:t}
1=e,[i,n]=(0,s.useState)("USD");(0,s.useEffect)(()=>{try{localStorage.setItem(a,"USD")}catch{}},[]);let o=(0,s.useCallback)(e=>{n(e);try{localStorage.setItem(a,e)}catch{}},[]),f=r[i],x=(0,s.useCallback)(e=>e*r[i].rate,[i]),h=(0,s.useCallback)(e=>{let t=e*r[i].rate;return`${r[i].symbol}${t.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`},[i]);return(0,l.jsx)(c.Provider,{value:{code:i,info:f,setCode:o,convert:x,format:h},children:t})}function o(){let e=(0,s.useContext)(c);return e||{code:"USD",info:r.USD,setCode:()=>{},convert:e=>e,format:e=>`$${e.toFixed(2)}`}}},90805:(e,t,i)=>{i.d(t,{CartProvider:()=>n,K:()=>r,_:()=>o});var l=i(95155),s=i(12115);let r=e=>`${e.slug}__${e.variation??""}`,a=(0,s.createContext)(null),c="netrxplus_cart";function n(e){let{children:t}=e,[i,n]=(0,s.useState)([]),[o,f]=(0,s.useState)(!1);(0,s.useEffect)(()=>{try{let e=localStorage.getItem(c);e&&n(JSON.parse(e))}catch{}f(!0)},[]),(0,s.useEffect)(()=>{if(o)try{localStorage.setItem(c,JSON.stringify(i))}catch{}},[i,o]);let x=(0,s.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=r(e);n(l=>l.find(e=>r(e)===i)?l.map(e=>r(e)===i?{...e,qty:e.qty+t}:e):[...l,{...e,qty:t}]),window.dispatchEvent(new CustomEvent("netrxplus:cart-added",{detail:{name:e.name}}))},[]),h=(0,s.useCallback)(e=>{n(t=>t.filter(t=>r(t)!==e))},[]),d=(0,s.useCallback)((e,t)=>{n(i=>t<=0?i.filter(t=>r(t)!==e):i.map(i=>r(i)===e?{...i,qty:t}:i))},[]),u=(0,s.useCallback)(()=>n([]),[]),g=i.reduce((e,t)=>e+t.qty,0),p=i.reduce((e,t)=>e+t.price*t.qty,0);return(0,l.jsx)(a.Provider,{value:{items:i,count:g,subtotal:p,add:x,remove:h,setQty:d,clear:u},children:t})}function o(){let e=(0,s.useContext)(a);if(!e)throw Error("useCart must be used within CartProvider");return e}}}]);
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.