1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4005],{1682:(e,s,t)=>{"use strict";t.d(s,{l:()=>r});let a=null,l=null;function r(){let e=Date.now();return a&&e-a.at<15e3?Promise.resolve(a.data):l||(l=fetch("/api/store/",{cache:"default"}).then(e=>e.ok?e.json():null).then(e=>{let s=(e&&e.data)??null;return a={at:Date.now(),data:s},l=null,s}).catch(()=>(l=null,a?.data??null)))}},7523:(e,s,t)=>{Promise.resolve().then(t.bind(t,37542))},37542:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>I});var a=t(95155),l=t(12115),r=t(98500),i=t.n(r),n=t(16720),c=t(90467),d=t(36565),o=t(2125),x=t(65738),h=t(54757),m=t(50981),p=t(13488),f=t(41267),u=t(5736),g=t(71019),b=t(16294),j=t(38875),N=t(45124),w=t(90805),y=t(91114),v=t(11073),S=t(90348),k=t(97735),A=t(76),C=t(11226),_=t(91834),E=t(24551),$=t(16369),B=t(25494),L=t(75796);let P={phone:"+1 (206) 746-1561",email:"[email protected]",whatsapp:"+1 (206) 746-1561"};function F(e){let{className:s=""}=e,[t,r]=(0,l.useState)(P);(0,l.useEffect)(()=>{try{let e=localStorage.getItem("totalmedsonline_admin_data_v6");if(!e)return;let s=JSON.parse(e)?.settings??{};r({phone:s.supportPhone||P.phone,email:s.supportEmail||P.email,whatsapp:s.whatsapp||P.whatsapp})}catch{}},[]);let i=t.phone.replace(/[^\d+]/g,""),n=t.whatsapp.replace(/[^\d]/g,""),c="flex items-center justify-center gap-2 rounded-xl px-3 py-2.5 text-sm font-semibold transition";return(0,a.jsxs)("div",{className:`rounded-2xl border border-slate-200 bg-white p-6 shadow-sm ${s}`,children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,a.jsx)("span",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-[#0c8281]/10 text-[#0a7271]",children:(0,a.jsx)(f.A,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-bold text-[#232f3e]",children:"Professional Support"}),(0,a.jsx)("p",{className:"text-xs text-[#45464f]",children:"Clinical pharmacists on standby â reach us any way you like."})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2.5",children:[(0,a.jsxs)("a",{href:`https://wa.me/${n}`,target:"_blank",rel:"noreferrer",title:"Chat on WhatsApp",className:`${c} bg-[#25D366] text-white hover:brightness-105`,children:[(0,a.jsx)(E.A,{className:"h-4 w-4"})," WhatsApp"]}),(0,a.jsxs)("a",{href:`tel:${i}`,title:"Call us",className:`${c} bg-[#0c8281] text-white hover:brightness-105`,children:[(0,a.jsx)($.A,{className:"h-4 w-4"})," Call us"]}),(0,a.jsxs)("a",{href:`sms:${i}`,title:"Text us",className:`${c} bg-[#232f3e] text-white hover:bg-[#1b2632]`,children:[(0,a.jsx)(B.A,{className:"h-4 w-4"})," Text us"]}),(0,a.jsxs)("a",{href:`mailto:${t.email}`,title:"Email us",className:`${c} border border-slate-300 bg-white text-[#232f3e] hover:bg-slate-50`,children:[(0,a.jsx)(L.A,{className:"h-4 w-4"})," Email us"]})]})]})}var O=t(81756),q=t(90066);function I(){let{items:e,subtotal:s,setQty:t,remove:r}=(0,w._)(),{format:E}=(0,q.H)(),{products:$}=(0,k.C)(),B=new Set(e.map(e=>e.slug)),L=new Set(e.map(e=>$.find(s=>s.slug===e.slug)?.category).filter(Boolean)),P=$.filter(e=>!B.has(e.slug)).filter(e=>L.has(e.category)).slice(0,4),[I,T]=(0,l.useState)(null),J=e.some(e=>"trial-pack"===e.slug),Y=J?0:I?.discount??0,M=0===e.length||s>=800?0:5.95,R=.08*Math.max(0,s-Y),U=Math.max(0,s-Y)+M+R,Z=Math.max(0,800-s),G=Math.min(100,s/800*100);return(0,a.jsx)("div",{className:"bg-[#f3f8f5] py-10 md:py-14",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1280px] px-4 md:px-10",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsx)("h1",{className:"text-3xl font-extrabold tracking-tight text-[#232f3e] md:text-4xl",children:"Your cart"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-[#45464f]",children:"Review your items before checkout â every order is verified by a real person before it ships."})]}),0===e.length?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-2xl border border-[#e0e3e6] bg-white py-20 text-center shadow-sm",children:[(0,a.jsx)("span",{className:"mb-5 flex h-16 w-16 items-center justify-center rounded-2xl bg-[#f3f8f5] text-[#7fc6c4]",children:(0,a.jsx)(n.A,{className:"h-8 w-8"})}),(0,a.jsx)("p",{className:"text-lg font-semibold text-[#232f3e]",children:"Your cart is empty"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-[#45464f]",children:"Browse our products and add something you love."}),(0,a.jsxs)(i(),{href:"/shop/",title:"Shop products",className:"mt-6 inline-flex items-center gap-2 rounded-full bg-[#037
1575] px-6 py-3 text-sm font-extrabold text-white transition-colors hover:bg-[#024f4e]",children:["Start shopping ",(0,a.jsx)(c.A,{className:"h-4 w-4"})]})]}):(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[1fr_360px]",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-[#e0e3e6] bg-white p-4 shadow-sm",children:[Z>0?(0,a.jsxs)("p",{className:"mb-2 text-sm text-[#45464f]",children:["Add ",(0,a.jsx)("span",{className:"font-bold text-[#037575]",children:E(Z)})," more for ",(0,a.jsx)("span",{className:"font-bold text-[#232f3e]",children:"free shipping"})," \uD83D\uDE9A"]}):(0,a.jsx)("p",{className:"mb-2 text-sm font-semibold text-[#037575]",children:"\uD83C\uDF89 You've unlocked free shipping!"}),(0,a.jsx)("div",{className:"h-2 overflow-hidden rounded-full bg-[#f3f8f5]",children:(0,a.jsx)("div",{className:"h-full rounded-full bg-gradient-to-r from-[#0c8281] to-[#037575] transition-all",style:{width:`${G}%`}})})]}),(0,a.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-[#e0e3e6] bg-white shadow-sm",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-[#e0e3e6] px-4 py-3 sm:px-6",children:[(0,a.jsxs)("h2",{className:"text-sm font-bold text-[#232f3e]",children:["Cart ",(0,a.jsxs)("span",{className:"font-normal text-[#5e6773]",children:["\xb7 ",e.reduce((e,s)=>e+s.qty,0)," item",1===e.reduce((e,s)=>e+s.qty,0)?"":"s"]})]}),(0,a.jsx)("span",{className:"hidden text-xs font-semibold uppercase tracking-wide text-[#5e6773] sm:block",children:"Price"})]}),e.map(e=>{let s=(0,y.oo)(e.slug),l=(0,S.Lf)(e.slug),n=(0,w.K)(e);return(0,a.jsx)("article",{className:"border-b border-[#eef1f3] px-4 py-5 last:border-b-0 sm:px-6",children:(0,a.jsxs)("div",{className:"flex gap-4 sm:gap-5",children:[(0,a.jsx)(i(),{href:`/product/${e.slug}`,title:e.name,className:"h-24 w-24 flex-shrink-0 sm:h-32 sm:w-32",children:(0,a.jsx)(A.A,{slug:e.slug,name:e.name,image:e.image,className:"h-full w-full rounded-lg border border-slate-100"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsx)(i(),{href:`/product/${e.slug}`,title:e.name,className:"line-clamp-2 text-base font-semibold text-[#232f3e] transition hover:text-[#0a7271] sm:text-lg",children:(0,v.e)(e.name)}),(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col items-end",children:[s?.oldPrice&&(0,a.jsx)("span",{className:"text-xs text-[#5e6773] line-through",children:E(s.oldPrice*e.qty)}),(0,a.jsx)("span",{className:"text-lg font-extrabold text-[#232f3e] sm:text-xl",children:E(e.price*e.qty)})]})]}),e.variation&&(0,a.jsx)("p",{className:"mt-1 inline-flex items-center gap-1 rounded-md bg-[#f3f8f5] px-2 py-0.5 text-xs font-semibold text-[#037575]",children:e.variation}),(0,a.jsx)("p",{className:"mt-1 text-xs font-semibold text-[#037575]",children:"In Stock"}),(0,a.jsxs)("p",{className:"text-xs text-[#5e6773]",children:[s?.spec??"Standard",e.qty>1&&(0,a.jsxs)(a.Fragment,{children:[" \xb7 ",(0,a.jsxs)("span",{className:"font-medium text-[#45464f]",children:[E(e.price)," each"]})]})]}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-2.5",children:[(0,a.jsxs)("div",{className:"flex items-center rounded-lg border border-slate-300 bg-white",children:[(0,a.jsx)("button",{onClick:()=>t(n,e.qty-1),"aria-label":"Decrease quantity",className:"flex h-9 w-9 items-center justify-center text-[#232f3e] hover:bg-[#f3f8f5]",children:(0,a.jsx)(d.A,{className:"h-3.5 w-3.5"})}),(0,a.jsx)("span",{className:"w-9 text-center text-sm font-bold text-[#232f3e]",children:e.qty}),(0,a.jsx)("button",{onClick:()=>t(n,e.qty+1),"aria-label":"Increase quantity",className:"flex h-9 w-9 items-center justify-center text-[#037575] hover:bg-[#f3f8f5]",children:(0,a.jsx)(o.A,{className:"h-3.5 w-3.5"})})]}),(0,a.jsx)("span",{className:"hidden h-4 w-px bg-slate-200 sm:inline-block","aria-hidden":"true"}),(0,a.jsxs)("button",{onClick:()=>r(n),className:"inline-flex items-center gap-1.5 text-[13px] font-medium text-[#45464f] transition hover:text-[#ba1a1a] sm:text-sm",children:[(0,a.jsx)(x.A,{className:"h-4 w-4"})," Delete"]}),(0,a.jsx)("span",{className:"hidden h-4 w-px bg-slate-200 sm:inline-block","aria-hidden":"true"}),(0,a.jsxs)("button",{onClick:()=>{l||(0,S.oS)(e.slug),r(n)},className:"inline-flex items-center gap-1.5 text-[13px] font-medium text-[#45464f] transition hover:text-[#0a7271] sm:text-sm",children:[(0,a.jsx)(h.A,{className:"h-4 w-4"})," Save for later"]})]})]})]})},n)})]}),(0,a.jsx)("div",{className:"rounded-2xl border border-[#e0e3e6] bg-white p-5 shadow-sm",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,a.jsx)(D,{icon:m.A,title:"Secure checkout",sub:"256-bit encrypted"}),(0,a.jsx)(D,{icon:p.A,title:"Free delivery",sub:`Orders over ${E(800)}`}),(0,a.jsx)(D,{icon:f.A,title:"24/7 support",sub:"Talk to us anytime",subHref:"/contact"})]})}),(0,a.jsx)(_.A,{}),P.length>0&&(0,a.jsxs)("section",{className:"pt-2",children:[(0,a.jsx)("h2",{className:"mb-4 text-lg font-bold text-[#232f3e]",children:"You may also like"}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-4 sm:gap-6 lg:grid-cols-4",children:P.map(e=>(0,a.jsx)(C.A,{product:e},e.slug))})]})]}),(0,a.jsxs)("aside",{className:"h-fit space-y-4 lg:sticky lg:top-6",children:[(0,a.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-[#e0e3e6] bg-white shadow-sm",children:[(0,a.jsx)("div",{className:"border-b border-[#e0e3e6] bg-[#f3f8f5] px-6 py-4",children:(0,a.jsx)("h2",{className:"text-lg font-bold text-[#232f3e]",children:"Order summary"})}),(0,a.jsxs)("div",{className:"space-y-3 p-6 text-sm",children:[(0,a.jsxs)("div",{className:"flex justify-between text-[#45464f]",children:[(0,a.jsx)("span",{children:"Subtotal"}),(0,a.jsx)("span",{className:"font-semibold text-[#232f3e]",children:E(s)})]}),(0,a.jsxs)("div",{className:"flex justify-between text-[#45464f]",children:[(0,a.jsx)("span",{children:"Shipping"}),(0,a.jsx)("span",{className:`font-semibold ${0===M?"text-[#037575]":"text-[#232f3e]"}`,children:0===M?"FREE":E(M)})]}),(0,a.jsxs)("div",{className:"flex justify-between text-[#45464f]",children:[(0,a.jsx)("span",{children:"Estimated tax"}),(0,a.jsx)("span",{className:"font-semibold text-[#232f3e]",children:E(R)})]}),Y>0&&(0,a.jsxs)("div",{className:"flex justify-between font-semibold text-[#037575]",children:[(0,a.jsxs)("span",{children:["Discount (",I?.coupon.code,")"]}),(0,a.jsxs)("span",{children:["â",E(Y)]})]}),(0,a.jsx)("div",{className:"pt-1",children:(0,a.jsx)(O.A,{subtotal:s,onChange:T,locked:J,lockedReason:"Coupons donât apply to trial-pack orders."})}),(0,a.jsxs)("div",{className:"flex items-baseline justify-between border-t border-[#e0e3e6] pt-4",children:[(0,a.jsx)("span",{className:"text-lg font-bold text-[#232f3e]",children:"Total"}),(0,a.jsx)("span",{className:"text-2xl font-extrabold text-[#037575]",children:E(U)})]}),(0,a.jsx)("p",{className:"text-right text-[10px] uppercase tracking-wider text-[#5e6773]",children:"USD \xb7 incl. tax"}),(0,a.jsxs)(i(),{href:"/checkout",title:"Proceed to checkout",className:"mt-3 flex items-center justify-center gap-2 rounded-xl bg-[#037
1575] px-6 py-4 font-extrabold text-white transition hover:bg-[#024f4e]",children:["Proceed to checkout ",(0,a.jsx)(u.A,{className:"h-4 w-4"})]}),(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-center gap-3 rounded-lg bg-[#f3f8f5] py-3 text-[#5e6773]",children:[(0,a.jsx)(g.A,{className:"h-5 w-5"}),(0,a.jsx)(b.A,{className:"h-5 w-5"}),(0,a.jsx)(j.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"text-xs font-medium",children:"Cards, wallets & crypto"})]})]})]}),(0,a.jsxs)("div",{className:"flex gap-3 rounded-2xl border border-[#7fc6c4] bg-[#d6ebe7] p-4",children:[(0,a.jsx)(N.A,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-[#037575]"}),(0,a.jsxs)("p",{className:"text-xs leading-relaxed text-[#232f3e]",children:[(0,a.jsx)("strong",{children:"Order verification:"})," a real person calls to confirm your order within 2 hours before it ships. No uploads, no hassle."]})]}),(0,a.jsx)(F,{}),(0,a.jsx)(i(),{href:"/shop/",title:"Continue shopping",className:"block text-center text-sm font-semibold text-[#037575] hover:text-[#024f4e]",children:"â Continue shopping"})]})]}),e.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"h-20 lg:hidden","aria-hidden":"true"}),(0,a.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-40 border-t border-slate-200 bg-white/95 px-4 py-3 shadow-[0_-4px_20px_rgba(14,31,75,0.10)] backdrop-blur lg:hidden",style:{paddingBottom:"calc(0.75rem + env(safe-area-inset-bottom))"},children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"leading-tight",children:[(0,a.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-wide text-[#5e6773]",children:"Total"}),(0,a.jsx)("p",{className:"text-lg font-extrabold text-[#037575]",children:E(U)})]}),(0,a.jsxs)(i(),{href:"/checkout",title:"Proceed to checkout",className:"flex flex-1 items-center justify-center gap-2 rounded-xl bg-[#037575] py-3.5 text-sm font-extrabold text-white transition active:translate-y-px",children:["Checkout ",(0,a.jsx)(u.A,{className:"h-4 w-4"})]})]})})]})]})})}function D(e){let{icon:s,title:t,sub:l,subHref:r}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-[#d6ebe7] text-[#037575]",children:(0,a.jsx)(s,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-bold text-[#232f3e]",children:t}),r?(0,a.jsx)(i(),{href:r,title:l,className:"truncate text-xs text-[#0a7271] hover:underline",children:l}):(0,a.jsx)("p",{className:"truncate text-xs text-[#45464f]",children:l})]})]})}},90348:(e,s,t)=>{"use strict";t.d(s,{Jw:()=>h,Lf:()=>d,Qg:()=>x,Qt:()=>p,U5:()=>f,Y2:()=>c,dS:()=>u,eC:()=>m,l_:()=>r,oS:()=>o});let a="totalmedsonline_wishlist",l="totalmedsonline_compare",r=4;function i(e){try{let s=localStorage.getItem(e);if(!s)return[];let t=JSON.parse(s);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}}function n(e,s,t){try{localStorage.setItem(e,JSON.stringify(s))}catch{}try{window.dispatchEvent(new CustomEvent(t))}catch{}}function c(){return i(a)}function d(e){return c().includes(e)}function o(e){let s=c(),t=s.indexOf(e);return t>=0?s.splice(t,1):s.unshift(e),n(a,s,"totalmedsonline:wishlist-updated"),t<0}function x(e){n(a,c().filter(s=>s!==e),"totalmedsonline:wishlist-updated")}function h(){n(a,[],"totalmedsonline:wishlist-updated")}function m(){return i(l)}function p(e){let s=m(),t=s.indexOf(e);return t>=0?(s.splice(t,1),n(l,s,"totalmedsonline:compare-updated"),{added:!1,full:!1}):s.length>=r?{added:!1,full:!0}:(s.push(e),n(l,s,"totalmedsonline:compare-updated"),{added:!0,full:!1})}function f(e){n(l,m().filter(s=>s!==e),"totalmedsonline:compare-updated")}function u(){n(l,[],"totalmedsonline:compare-updated")}},91834:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(95155),l=t(95697),r=t(21246);function i(e){let{className:s=""}=e,t=(0,r.R1)("chrome","social-proof"),i=t?.eyebrow?.trim()||"4.6/5",n=t?.heading?.trim()||"1k+ Customers",c=t?.subheading?.trim()||"2012";return(0,a.jsxs)("div",{className:`flex flex-wrap items-center justify-center gap-x-3 gap-y-1.5 rounded-xl border border-slate-200 bg-white px-3 py-2.5 shadow-sm sm:flex-nowrap sm:justify-between sm:gap-2 sm:px-4 ${s}`,children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 whitespace-nowrap",children:[(0,a.jsxs)("span",{className:"text-sm font-bold leading-none","aria-label":"Google",children:[(0,a.jsx)("span",{style:{color:"#4285F4"},children:"G"}),(0,a.jsx)("span",{style:{color:"#EA4335"},children:"o"}),(0,a.jsx)("span",{style:{color:"#FBBC05"},children:"o"}),(0,a.jsx)("span",{style:{color:"#4285F4"},children:"g"}),(0,a.jsx)("span",{style:{color:"#34A853"},children:"l"}),(0,a.jsx)("span",{style:{color:"#EA4335"},children:"e"})]}),(0,a.jsx)("span",{className:"text-xs font-semibold text-[#232f3e]",children:i}),(0,a.jsxs)("span",{className:"flex",children:[[0,1,2,3].map(e=>(0,a.jsx)(l.A,{className:"h-3 w-3 fill-[#FBBC05] text-[#FBBC05]"},e)),(0,a.jsx)(l.A,{className:"h-3 w-3 fill-[#FBBC05]/50 text-[#FBBC05]"})]})]}),(0,a.jsx)("span",{className:"h-5 w-px shrink-0 bg-slate-200"}),(0,a.jsxs)("span",{className:"whitespace-nowrap text-xs text-[#45464f]",children:["Trusted by ",(0,a.jsx)("strong",{className:"text-[#232f3e]",children:n})]}),(0,a.jsx)("span",{className:"h-5 w-px shrink-0 bg-slate-200"}),(0,a.jsxs)("span",{className:"flex items-center gap-1.5 whitespace-nowrap text-xs text-[#45464f]",children:[(0,a.jsxs)("svg",{viewBox:"0 0 26 18",className:"h-3.5 w-[1.35rem] shrink-0 rounded-[2px] ring-1 ring-black/10",role:"img","aria-label":"United States",children:[(0,a.jsx)("rect",{width:"26",height:"18",fill:"#B22234"}),(0,a.jsxs)("g",{fill:"#fff",children:[(0,a.jsx)("rect",{y:"2.6",width:"26",height:"1.3"}),(0,a.jsx)("rect",{y:"5.2",width:"26",height:"1.3"}),(0,a.jsx)("rect",{y:"7.8",width:"26",height:"1.3"}),(0,a.jsx)("rect",{y:"10.4",width:"26",height:"1.3"}),(0,a.jsx)("rect",{y:"13",width:"26",height:"1.3"}),(0,a.jsx)("rect",{y:"15.6",width:"26",height:"1.3"})]}),(0,a.jsx)("rect",{width:"11",height:"9.7",fill:"#3C3B6E"}),(0,a.jsx)("g",{fill:"#fff",children:[1.8,5.4,9].map(e=>[1.8,4.4,7,9.6].map(s=>(0,a.jsx)("circle",{cx:s,cy:e,r:"0.7"},`${s}-${e}`)))})]}),"US since ",(0,a.jsx)("strong",{className:"text-[#232f3e]",children:c})]})]})}},97735:(e,s,t)=>{"use strict";t.d(s,{C:()=>x,StorefrontProvider:()=>o});var a=t(95155),l=t(12115),r=t(1682),i=t(91114);let n=(0,l.createContext)({products:i.ZE,categories:i.LZ,ready:!1});function c(e){let s=e.image||e.gallery?.[0]?.url||void 0;return{slug:String(e.slug),name:String(e.name??""),category:String(e.category??""),price:Number(e.price)||0,oldPrice:"number"==typeof e.oldPrice?e.oldPrice:void 0,rating:Number(e.rating)||5,reviews:String(e.reviews??"0"),badge:e.badge,variant:e.variant||"bottle",accent:e.accent||"#0c8281",tagline:String(e.tagline??e.shortDe
1scription??""),description:String(e.description??""),spec:String(e.spec??""),...s?{image:s}:{},...e.altImage?{altImage:e.altImage}:{},...e.gallery?{gallery:e.gallery}:{}}}function d(e){let s={};return e&&Array.isArray(e.products)&&e.products.length&&(s.products=e.products.filter(e=>e&&e.slug&&"draft"!==e.status).map(c)),e&&Array.isArray(e.cats)&&e.cats.length&&(s.categories=e.cats.map(e=>({slug:String(e.slug),label:String(e.label??e.slug),blurb:String(e.blurb??""),parent:e.parent?String(e.parent):void 0}))),e&&Array.isArray(e.shopSidebar)&&(s.shopSidebar=e.shopSidebar),e&&"object"==typeof e.blogSidebar&&(s.blogSidebar=e.blogSidebar),e&&Array.isArray(e.autoLinks)&&(s.autoLinks=e.autoLinks),e&&"object"==typeof e.liveChat&&(s.liveChat=e.liveChat),e&&Array.isArray(e.posts)?s.blogs=e.posts:e&&Array.isArray(e.blogs)&&(s.blogs=e.blogs),e&&Array.isArray(e.reviews)&&(s.reviews=e.reviews.filter(e=>e&&"approved"===e.status)),s}function o(e){let{children:s}=e,[t,c]=(0,l.useState)({products:i.ZE,categories:i.LZ,ready:!1});return(0,l.useEffect)(()=>{let e=!1,s=()=>{try{let s=localStorage.getItem("totalmedsonline_admin_data_v6");if(s){let t=d(JSON.parse(s));return e||c(e=>({...e,products:t.products??e.products,categories:t.categories??e.categories,shopSidebar:t.shopSidebar??e.shopSidebar,blogSidebar:t.blogSidebar??e.blogSidebar,autoLinks:t.autoLinks??e.autoLinks,liveChat:t.liveChat??e.liveChat,blogs:t.blogs??e.blogs,reviews:t.reviews??e.reviews,ready:!0})),!0}}catch{}return!1};(async()=>{try{let s=await (0,r.l)();if(s){let t=d(s);if(!e&&(t.products||t.categories||t.shopSidebar||t.blogSidebar||t.autoLinks||t.liveChat||t.blogs||t.reviews))return void c(e=>({...e,products:t.products??e.products,categories:t.categories??e.categories,shopSidebar:t.shopSidebar??e.shopSidebar,blogSidebar:t.blogSidebar??e.blogSidebar,autoLinks:t.autoLinks??e.autoLinks,liveChat:t.liveChat??e.liveChat,blogs:t.blogs??e.blogs,reviews:t.reviews??e.reviews,ready:!0}))}}catch{}s(),e||c(e=>({...e,ready:!0}))})();let t=()=>s();return window.addEventListener("totalmedsonline:admin-saved",t),()=>{e=!0,window.removeEventListener("totalmedsonline:admin-saved",t)}},[]),(0,a.jsx)(n.Provider,{value:t,children:s})}function x(){return(0,l.useContext)(n)}}},e=>{e.O(0,[1674,9301,1114,1226,1246,6356,9036,8441,3794,4977],()=>e(e.s=7523)),_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.