import{a as tr}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-MKUYH54D.js";import{a as le}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-WIKIGLPH.js";import{a as qe}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-EJKC3NW5.js";import{a as Ve,b as de,c as Je,d as or,e as ir}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-BK7C7KYI.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-NFMFBOHW.js";import{a as pr,b as lr}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-H5MPOYX3.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-Q5GVO6UD.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-FTHFUGGS.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-UOD5K2IM.js";import{a as Se,b as Ae,c as se}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-JEBYRYDS.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-IYNW5SVS.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-RFF3A4HI.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-KHNZ52NN.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-YTXF4UNH.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-2PQ2Y6FX.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-7DMA6GQ7.js";import{a as nr}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-RGUQRHNU.js";import{b as Xe}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-EPRMM45R.js";import{a as Zt}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-RIVAOXY5.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-AE33CVPW.js";import{$ as M,E as ht,F as Gt,L as Ke,Q as Qe,R as Ut,S as er,T as rr,V as ar,W as sr,X as dr,Z as Vt,b as Re,c as pe,d as Pe,g as O,i as je,k as Be,r as We,s as Ye,t as Ge,u as et,w as Ze,x as Wt,y as Ue}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-2B5EUUAU.js";import{a as Yt,w as $e}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-3KGGTW7J.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-HOBUY6XE.js";import{p as jt,q as Bt,r as Fe}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-MFGE734P.js";import{a as Oe}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-V4XJKBJF.js";import{a as Me,b as De,d as He}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-SF6IDT36.js";import{a as tt}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-5N2KHTKW.js";import{a as G}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-L4K4MO6T.js";import{a as Ie,g as mt,k as ze}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-ZJV2VDKH.js";import{a as _}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-NARGTUJF.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-VHOYLC2X.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-VMM2I4YT.js";import"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-GZBJF4IY.js";import{a as J,b as Ht,h as Le,j as Te,o as ot,p as ae,q as ie,s as ne,t as R,u as Ne,v as gt,x as Ft,z as Ee}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-GGLN43CD.js";import{a as f}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-3J4WCF6S.js";import{a as A}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-PWZZZ4OU.js";import{q as _e}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-I6QYLSXV.js";import{d as s}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-M7YV7QAJ.js";var ve=s(A());var cr="https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_assets/ReactToastify-FGY3O5QC.css";var $t=s(A());var Z=s(f());function mr({open:t,onClose:r,title:e,shop:o}){return(0,Z.jsx)(Bt,{appear:!0,show:t,as:$t.Fragment,children:(0,Z.jsxs)(jt,{as:"div",className:"relative z-[10000]",onClose:r,children:[(0,Z.jsx)(Bt.Child,{as:$t.Fragment,enter:"ease-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,Z.jsx)("div",{"aria-hidden":"true",className:"fixed inset-0 z-40 bg-black bg-opacity-20"})}),(0,Z.jsx)(Bt.Child,{as:$t.Fragment,enter:"ease-in-out duration-500",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"ease-in-out duration-500",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,Z.jsxs)(jt.Panel,{className:_("rounded-l-none fixed bottom-0 left-0 right-0 top-0 z-[100] flex h-full w-full flex-col overflow-y-scroll bg-white sm:overflow-y-auto md:bottom-auto md:left-auto md:w-[627px]","md:rounded-l-xl"),children:[(0,Z.jsx)(so,{onClose:r}),(0,Z.jsx)("div",{className:"flex-grow overflow-y-auto px-3 lg:px-6",children:(0,Z.jsx)("iframe",{id:"any_id",name:"any_name",src:`https://medicalsurgical.com.au/assistant/?${o}`,frameBorder:"0",seamless:!0,style:{width:"100%",height:"100%",maxHeight:"none"},title:"Chat"})})]})})]})})}mr.Title=jt.Title;var xr=mr;function so({onClose:t}){return(0,Z.jsx)("header",{className:_("sticky top-0 z-[1] flex items-center justify-between bg-white"),children:(0,Z.jsxs)("div",{className:"mb-2 flex w-full items-center justify-between border-b-2 border-[#DBDCDC] px-4 py-8 lg:px-8",children:[(0,Z.jsxs)("div",{className:"flex flex-grow items-center gap-3 text-xl font-bold leading-none text-black",children:[(0,Z.jsx)(O,{src:M.logoWithoutText,width:38,className:"w-9"})," Chat with Medshop Assistant"]}),(0,Z.jsx)("button",{type:"button",onClick:t,children:(0,Z.jsx)(Fe,{})})]})})}function at(){for(var t=arguments.length,r=new Array(t),e=0;e=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(e[o]=t[o])}return e}function xo(t,r){if(t==null)return{};var e={},o=Object.keys(t),a,i;for(i=0;i=0)&&(e[a]=t[a]);return e}var go=j.default.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"});function ho(t){var r=t.classNames;return j.default.createElement("svg",{className:at("ais-SearchBox-submitIcon",r.submitIcon),width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},go)}var fo=j.default.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"});function wo(t){var r=t.classNames;return j.default.createElement("svg",{className:at("ais-SearchBox-resetIcon",r.resetIcon),viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},fo)}var uo=j.default.createElement("g",{fill:"none",fillRule:"evenodd"},j.default.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},j.default.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),j.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},j.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))));function bo(t){var r=t.classNames;return j.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444",className:at("ais-SearchBox-loadingIcon",r.loadingIcon),"aria-hidden":"true"},uo)}function gr(t){var r=t.formRef,e=t.inputRef,o=t.isSearchStalled,a=t.onChange,i=t.onReset,d=t.onSubmit,n=t.placeholder,l=t.value,w=t.autoFocus,u=t.resetIconComponent,x=u===void 0?wo:u,h=t.submitIconComponent,g=h===void 0?ho:h,C=t.loadingIconComponent,k=C===void 0?bo:C,T=t.classNames,N=T===void 0?{}:T,I=t.translations,S=mo(t,co);function H(W){W.preventDefault(),W.stopPropagation(),d&&d(W),e.current&&e.current.blur()}function X(W){W.preventDefault(),W.stopPropagation(),i(W),e.current&&e.current.focus()}return j.default.createElement("div",ce({},S,{className:at("ais-SearchBox",N.root,S.className)}),j.default.createElement("form",{ref:r,action:"",className:at("ais-SearchBox-form",N.form),noValidate:!0,onSubmit:H,onReset:X},j.default.createElement("input",{ref:e,className:at("ais-SearchBox-input",N.input),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:n,spellCheck:!1,maxLength:512,type:"search",value:l,onChange:a,autoFocus:w}),j.default.createElement("button",{className:at("ais-SearchBox-submit",N.submit),type:"submit",title:I.submitButtonTitle},j.default.createElement(g,{classNames:N})),j.default.createElement("button",{className:at("ais-SearchBox-reset",N.reset),type:"reset",title:I.resetButtonTitle,hidden:l.length===0||o},j.default.createElement(x,{classNames:N})),j.default.createElement("span",{className:at("ais-SearchBox-loadingIndicator",N.loadingIndicator),hidden:!o},j.default.createElement(k,{classNames:N}))))}var kt=s(A(),1);function Mt(t){return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mt(t)}var yo=["queryHook","searchAsYouType","translations"];function me(){return me=Object.assign?Object.assign.bind():function(t){for(var r=1;rt.length)&&(r=t.length);for(var e=0,o=new Array(r);e=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(e[o]=t[o])}return e}function So(t,r){if(t==null)return{};var e={},o=Object.keys(t),a,i;for(i=0;i=0)&&(e[a]=t[a]);return e}function wr(t){var r=t.queryHook,e=t.searchAsYouType,o=e===void 0?!0:e,a=t.translations,i=zo(t,yo),d=ht({queryHook:r},{$$widgetType:"ais.searchBox"}),n=d.query,l=d.refine,w=d.isSearchStalled,u=(0,kt.useState)(n),x=Lo(u,2),h=x[0],g=x[1],C=(0,kt.useRef)(null);function k(H){g(H),o&&l(H)}function T(){k(""),o||l("")}function N(H){k(H.currentTarget.value)}function I(H){o||l(h),i.onSubmit&&i.onSubmit(H)}n!==h&&document.activeElement!==C.current&&g(n);var S={inputRef:C,isSearchStalled:w,onChange:N,onReset:T,onSubmit:I,value:h,translations:vo({submitButtonTitle:"Submit the search query",resetButtonTitle:"Clear the search query"},a)};return kt.default.createElement(gr,me({},i,S))}var Br=s(A());var Hr=s(A());var Rt=s(A());var it=s(f()),xe=({awards:t})=>{let r=[{img:M.visaPayment},{img:M.masterCardPayment},{img:M.amExPayment},{img:M.applePay},{img:M.eftPos},{img:M.googlePay},{img:M.shopPay},{img:M.unionPay}];return!t||!Array.isArray(t)?null:(0,it.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-5",children:[(0,it.jsx)("div",{className:"mt-6 flex h-[120px] items-center justify-start gap-6 rounded-md py-4",children:t?.map((e,o)=>(0,it.jsx)("div",{className:"flex h-full w-auto items-center justify-center",children:(0,it.jsx)("a",{className:"h-full",href:e.awards_item_url?.[0]?.url,target:e.awards_item_url?.[0]?.newWindow?"_blank":"_self",rel:"noopener noreferrer",children:(0,it.jsx)(mt,{src:e.awards_item_image.url,alt:e.awards_item_title,className:"h-full max-w-[120px] object-contain"})})},o))}),(0,it.jsx)("div",{className:"flex gap-1",children:r.map((e,o)=>(0,it.jsx)("div",{className:"relative h-5 w-8 overflow-hidden rounded-[4px] border border-GREY_FIVE",children:(0,it.jsx)(O,{src:e.img,width:32,height:20,className:_("absolute left-[50%] top-[50%] flex max-h-[32px] -translate-x-[50%] -translate-y-[50%] items-start")})},o))})]})};var nt=s(f());function qt(){return(0,nt.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nt.jsxs)("g",{clipPath:"url(#clip0_1843_2155)",children:[(0,nt.jsx)("path",{d:"M13.1674 11.0211L10.4504 9.81407C10.1681 9.68782 9.85191 9.65859 9.55124 9.73096C9.25058 9.80332 8.98233 9.9732 8.78838 10.2141L8.00538 11.1931C6.72168 10.3693 5.62893 9.28067 4.80038 8.00007L5.77938 7.21707C6.02003 7.02318 6.18977 6.75511 6.26212 6.45466C6.33448 6.15421 6.30539 5.83826 6.17938 5.55607L4.97938 2.83207C4.84476 2.52875 4.60677 2.28311 4.30786 2.13897C4.00895 1.99482 3.66855 1.96155 3.34738 2.04507L1.04738 2.64507C0.714076 2.73182 0.424442 2.93838 0.233866 3.22526C0.0432902 3.51214 -0.034852 3.8592 0.0143827 4.20007C0.442982 7.17478 1.82344 9.93069 3.94914 12.0553C6.07484 14.1799 8.83145 15.559 11.8064 15.9861C12.1473 16.0343 12.4941 15.9553 12.7804 15.764C13.0667 15.5726 13.2725 15.2825 13.3584 14.9491L13.9584 12.6491C14.0418 12.328 14.008 11.9876 13.863 11.6892C13.718 11.3908 13.4714 11.1539 13.1674 11.0211Z",fill:"#AAA9AA"}),(0,nt.jsx)("path",{d:"M10 8C10 8.26522 10.1054 8.51957 10.2929 8.70711C10.4804 8.89464 10.7348 9 11 9C11.2652 9 11.5196 8.89464 11.7071 8.70711C11.8946 8.51957 12 8.26522 12 8C12 6.93913 11.5786 5.92172 10.8284 5.17157C10.0783 4.42143 9.06087 4 8 4C7.73478 4 7.48043 4.10536 7.29289 4.29289C7.10536 4.48043 7 4.73478 7 5C7 5.26522 7.10536 5.51957 7.29289 5.70711C7.48043 5.89464 7.73478 6 8 6C8.53043 6 9.03914 6.21071 9.41421 6.58579C9.78929 6.96086 10 7.46957 10 8Z",fill:"#AAA9AA"}),(0,nt.jsx)("path",{d:"M8 0C7.73478 0 7.48043 0.105357 7.29289 0.292893C7.10536 0.48043 7 0.734784 7 1C7 1.26522 7.10536 1.51957 7.29289 1.70711C7.48043 1.89464 7.73478 2 8 2C9.59081 2.00159 11.116 2.63424 12.2409 3.75911C13.3658 4.88399 13.9984 6.40919 14 8C14 8.26522 14.1054 8.51957 14.2929 8.70711C14.4804 8.89464 14.7348 9 15 9C15.2652 9 15.5196 8.89464 15.7071 8.70711C15.8946 8.51957 16 8.26522 16 8C15.9976 5.879 15.154 3.84555 13.6542 2.34578C12.1544 0.846002 10.121 0.00238211 8 0Z",fill:"#AAA9AA"})]}),(0,nt.jsx)("defs",{children:(0,nt.jsx)("clipPath",{id:"clip0_1843_2155",children:(0,nt.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})}var b=s(f());function ge(){let[t]=R(),[r,e]=(0,Rt.useState)(!1),{type:o}=et();(0,Rt.useEffect)(()=>{e(!0)},[]);let a=t.data?.layout,{footer:i}=a||{},[d,n]=(0,Rt.useState)(null),l=x=>{if(d===x){n(null);return}n(x)},w=!!i?.links?.length&&i?.links?.map((x,h)=>(0,b.jsxs)("div",{className:"flex flex-col",children:[(0,b.jsxs)("h3",{onClick:()=>l(h),className:"mb-0 flex items-center justify-between border-b border-[#C2D1D9] pb-[5px] pt-5 font-bold leading-[31px] text-[#010101] lg:mb-4 lg:border-none lg:pb-0 lg:pt-0",children:[x?.title,(0,b.jsx)(O,{alt:">",src:M.arrowDownFooter,width:24,height:24,className:`block w-6 lg:hidden ${d===h?"rotate-[-180deg]":""}`})]}),d===h&&(0,b.jsx)("div",{className:"flex flex-col gap-y-2 py-3.5 lg:flex lg:hidden lg:py-0",children:!!x?.menuLinks?.length&&x?.menuLinks?.map(g=>{if(g._type==="linkInternal")return(0,b.jsx)(G,{to:g.slug,className:"text-sm font-medium leading-[24px] text-[#010101]",children:g.title},g._key);if(g._type==="linkExternal")return(0,b.jsx)("a",{href:g.url,className:"text-sm font-medium leading-[24px] text-[#010101]",target:g.newWindow?"_blank":"_self",rel:"noreferrer",children:g.title},g._key+g.title);if(g._type==="externalLinkWithImage")return(0,b.jsx)("a",{href:g.link.url,className:"flex items-center gap-2 text-sm font-medium text-[#010101]",target:g.link.newWindow?"_blank":"_self",rel:"noreferrer",children:g.link.title},g.link._key+g.link.url)})}),(0,b.jsx)("div",{className:"hidden flex-col gap-y-2 py-3.5 lg:flex lg:py-0",children:!!x?.menuLinks?.length&&x?.menuLinks?.map(g=>{if(g._type==="linkInternal")return(0,b.jsx)(G,{to:g.slug,className:"text-sm font-medium leading-[24px] text-[#010101]",children:g.title},g._key);if(g._type==="linkExternal")return(0,b.jsx)("a",{href:g.url,className:"text-sm font-medium leading-[24px] text-[#010101]",target:g.newWindow?"_blank":"_self",rel:"noreferrer",children:g.title},g._key+g.title);if(g._type==="externalLinkWithImage")return(0,b.jsx)("a",{href:g.link.url,className:"flex items-center gap-2 text-sm font-medium leading-[24px] text-[#010101]",target:g.link.newWindow?"_blank":"_self",rel:"noreferrer",children:g.link.title},g.link._key+g.link.url)})})]},x._key)),u=!!i?.address?.length&&i?.address?.map((x,h)=>(0,b.jsx)("p",{className:"w-max font-inter leading-[24px]",children:x},h+x));return o?(0,b.jsx)(b.Fragment,{}):(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("footer",{className:"relative flex flex-col justify-center lg:static",children:[(0,b.jsxs)("div",{className:"footer-content-top-container content-wrapper footer-content-container items-start gap-[140px] pb-0 pt-22 md:pb-10 lg:border-b lg:border-[#DBDCDC]",children:[(0,b.jsxs)("div",{className:"hidden max-w-[300px] lg:block",children:[(0,b.jsx)("h3",{className:"mb-4 font-bold leading-[31px] text-[#010101]",children:"Company Info"}),(0,b.jsx)("div",{className:"mb-8 w-[250px] text-sm font-medium leading-[24px] text-[#282828]",children:u}),(0,b.jsx)("p",{className:"mb-4 font-bold leading-[31px] text-[#010101]",children:"Sales enquiries"}),(0,b.jsx)("p",{className:"mb-6 text-sm font-medium leading-[24px] text-[#282828]",children:(0,b.jsx)("a",{className:"font-inter",href:`mailto:${i?.email}`,title:`mailto:${i?.email}`,children:i?.email})}),(0,b.jsxs)("a",{href:i?.call||"https://calendly.com/d/44d-cdp-tr3",target:"_blank",className:"mb-2 flex h-[50px] w-[295px] cursor-pointer items-center justify-center gap-2 rounded-[12px] border-2 border-[#DBDCDC] p-3 font-[600] leading-[24px] text-[#010101]",rel:"noreferrer",children:[(0,b.jsx)(qt,{}),"(03) 9131 8731"]}),(0,b.jsx)(xe,{awards:i?.awards})]}),(0,b.jsxs)("div",{className:"block lg:hidden",children:[(0,b.jsx)("h3",{className:"mb-4 font-bold leading-[31px] text-[#010101]",children:"Company Info"}),(0,b.jsx)("div",{className:"mb-8 text-sm font-medium leading-[24px] text-[#282828] md:mb-3",children:u}),(0,b.jsx)("p",{className:"mb-4 font-inter font-bold leading-[31px] text-[#010101]",children:"Sales enquiries"}),(0,b.jsx)("p",{className:"mb-6 font-inter text-sm font-medium text-[#282828]",children:(0,b.jsx)("a",{className:"font-inter",href:`mailto:${i?.email}`,title:`mailto:${i?.email}`,children:i?.email})}),(0,b.jsxs)("a",{href:i?.call||"https://calendly.com/d/44d-cdp-tr3",target:"_blank",className:"mb-2 mt-6 flex h-[50px] cursor-pointer items-center justify-center gap-2 rounded-[12px] border-2 border-[#DBDCDC] p-3 font-[600] leading-[24px] text-[#010101]",rel:"noreferrer","aria-label":"(03) 9131 8731",children:[(0,b.jsx)(qt,{}),"(03) 9131 8731"]}),i?.awards&&(0,b.jsx)(xe,{awards:i?.awards})]}),(0,b.jsx)("div",{className:"relative block w-full flex-auto justify-between gap-x-8 lg:static lg:flex",children:w})]}),(0,b.jsxs)("div",{className:"footer-content-bottom-container content-wrapper flex flex-auto justify-between gap-x-8 py-9 lg:relative",children:[(0,b.jsx)("div",{className:"mb-4 flex justify-center gap-x-6 lg:mb-0 lg:justify-start",children:!!i?.networks?.length&&i?.networks?.map((x,h)=>(0,b.jsx)("div",{className:"",children:(0,b.jsx)(G,{to:x.link.url,target:x.link.newWindow?"_blank":"_self",children:(0,b.jsx)(mt,{src:x.icon.url,width:16,height:16,alt:x.link.title})})},x._key+x.link.url+h))}),(0,b.jsx)(G,{to:"/",children:(0,b.jsx)(O,{src:M.logo,width:164,height:24,objectFit:"contain",className:"absolute top-10 lg:left-[calc(50%-82px)] lg:top-8",alt:"logo"})}),r&&(0,b.jsx)("span",{className:"pb-20 text-xs font-[400] leading-[24px] text-[#AAA9AA] smm:pb-0 md:pr-[180px] lg:font-inter lg:text-[#010101] 3xl:pr-0",children:i?.copyright})]})]})})}var Ct=s(f());function he({error:t}){let r="Something\u2019s wrong here.",e="We found an error while loading this page.";return t&&(e+=` ${t.message}`,console.error(t)),(0,Ct.jsxs)("div",{className:"pt-34",children:[(0,Ct.jsx)("h1",{className:"mx-auto px-12 text-center text-4xl sm:max-w-2xl",children:r}),(0,Ct.jsx)("p",{className:"my-8 text-center",children:e}),t?.stack&&(0,Ct.jsx)("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto",maxWidth:"100%",margin:"0 2rem"},dangerouslySetInnerHTML:{__html:Ao(t.stack)}})]})}function Ao(t){return t?.replace(/^\s*at\s?.*?[(\s]((\/|\w\:).+)\)\n/gim,(r,e)=>r.replace(e,`${e}`))}var ur=s(A());var ft=s(f()),_t=()=>{let t=(0,ur.useRef)(null),{isOn:r,toggleIsOn:e}=Ye(),[o]=R();return o.data?.layout?.gstIsActive?(0,ft.jsxs)("label",{className:"checkbox-reset relative inline-flex min-h-[48px] min-w-[163px] max-w-[200px] cursor-pointer select-none items-center rounded-[12px] border border-[#DBDCDC] py-[9px] pl-[4px] pr-[16px] sm:flex-1",ref:i=>{i&&(!t.current||t.current.getBoundingClientRect().width(0,E.jsx)(ot,{to:"/pages/medshop-reviews",className:"mx-auto flex max-w-[300px] flex-col items-center justify-center rounded-[12px] bg-[#EDF2FF] px-[10px] py-0 sm:flex-1",children:(0,E.jsxs)("svg",{width:"107",height:"48",viewBox:"0 0 107 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{d:"M11.0071 10.9545V25.5H7.93182V13.8736H7.84659L4.51562 15.9616V13.2344L8.11648 10.9545H11.0071ZM20.1923 10.9545V25.5H17.117V13.8736H17.0317L13.7008 15.9616V13.2344L17.3016 10.9545H20.1923ZM25.8192 22.3608L25.8263 18.7315H26.2666L29.7609 14.5909H33.2339L28.5393 20.0739H27.822L25.8192 22.3608ZM23.0777 25.5V10.9545H26.1033V25.5H23.0777ZM29.8959 25.5L26.6857 20.7486L28.7027 18.6108L33.4399 25.5H29.8959ZM38.0654 24.7116V14.6548H40.608V24.7116H38.0654ZM34.3083 20.9545V18.4119H44.3651V20.9545H34.3083Z",fill:"#0042E4"}),(0,E.jsx)("path",{d:"M0.660511 36.5V31.0455H1.90696V31.9545H1.96378C2.06321 31.6397 2.23366 31.397 2.47514 31.2266C2.71899 31.0537 2.99716 30.9673 3.30966 30.9673C3.38068 30.9673 3.45999 30.9709 3.54759 30.978C3.63755 30.9827 3.71212 30.991 3.77131 31.0028V32.1854C3.71686 32.1664 3.63045 32.1499 3.51207 32.1357C3.39607 32.1191 3.28362 32.1108 3.17472 32.1108C2.94034 32.1108 2.72964 32.1617 2.54261 32.2635C2.35795 32.3629 2.21236 32.5014 2.10582 32.679C1.99929 32.8565 1.94602 33.0613 1.94602 33.2933V36.5H0.660511ZM6.51552 36.6065C5.96864 36.6065 5.49634 36.4929 5.09862 36.2656C4.70326 36.036 4.39904 35.7116 4.18597 35.2926C3.9729 34.8712 3.86637 34.3752 3.86637 33.8047C3.86637 33.2436 3.9729 32.7512 4.18597 32.3274C4.40141 31.9013 4.70207 31.5698 5.08796 31.3331C5.47385 31.094 5.92721 30.9744 6.44805 30.9744C6.78422 30.9744 7.10146 31.0289 7.39975 31.1378C7.70041 31.2443 7.96557 31.41 8.19521 31.6349C8.42721 31.8598 8.60951 32.1463 8.74208 32.4943C8.87466 32.84 8.94095 33.2519 8.94095 33.7301V34.1243H4.47006V33.2578H7.7087C7.70633 33.0116 7.65307 32.7926 7.5489 32.6009C7.44473 32.4067 7.29914 32.254 7.11211 32.1428C6.92745 32.0315 6.71201 31.9759 6.4658 31.9759C6.20302 31.9759 5.97219 32.0398 5.77333 32.1676C5.57447 32.2931 5.4194 32.4588 5.30813 32.6648C5.19923 32.8684 5.1436 33.0921 5.14123 33.3359V34.0923C5.14123 34.4096 5.19923 34.6818 5.31523 34.9091C5.43124 35.134 5.59341 35.3068 5.80174 35.4276C6.01007 35.5459 6.25392 35.6051 6.53327 35.6051C6.7203 35.6051 6.88957 35.5791 7.04109 35.527C7.1926 35.4725 7.32399 35.3932 7.43526 35.2891C7.54653 35.1849 7.63058 35.0559 7.68739 34.902L8.88768 35.0369C8.81192 35.3542 8.66751 35.6312 8.45444 35.8679C8.24374 36.1023 7.97385 36.2846 7.64478 36.4148C7.31571 36.5426 6.93929 36.6065 6.51552 36.6065ZM14.4444 31.0455L12.5019 36.5H11.0815L9.13899 31.0455H10.5097L11.7633 35.0973H11.8201L13.0772 31.0455H14.4444ZM15.0339 36.5V31.0455H16.3195V36.5H15.0339ZM15.6803 30.2713C15.4767 30.2713 15.3015 30.2038 15.1547 30.0689C15.0079 29.9316 14.9345 29.767 14.9345 29.5753C14.9345 29.3812 15.0079 29.2166 15.1547 29.0817C15.3015 28.9444 15.4767 28.8757 15.6803 28.8757C15.8862 28.8757 16.0614 28.9444 16.2058 29.0817C16.3526 29.2166 16.426 29.3812 16.426 29.5753C16.426 29.767 16.3526 29.9316 16.2058 30.0689C16.0614 30.2038 15.8862 30.2713 15.6803 30.2713ZM19.7561 36.6065C19.2093 36.6065 18.737 36.4929 18.3392 36.2656C17.9439 36.036 17.6397 35.7116 17.4266 35.2926C17.2135 34.8712 17.107 34.3752 17.107 33.8047C17.107 33.2436 17.2135 32.7512 17.4266 32.3274C17.642 31.9013 17.9427 31.5698 18.3286 31.3331C18.7145 31.094 19.1678 30.9744 19.6887 30.9744C20.0248 30.9744 20.3421 31.0289 20.6404 31.1378C20.941 31.2443 21.2062 31.41 21.4358 31.6349C21.6678 31.8598 21.8501 32.1463 21.9827 32.4943C22.1153 32.84 22.1816 33.2519 22.1816 33.7301V34.1243H17.7107V33.2578H20.9493C20.947 33.0116 20.8937 32.7926 20.7895 32.6009C20.6854 32.4067 20.5398 32.254 20.3527 32.1428C20.1681 32.0315 19.9526 31.9759 19.7064 31.9759C19.4436 31.9759 19.2128 32.0398 19.014 32.1676C18.8151 32.2931 18.66 32.4588 18.5488 32.6648C18.4399 32.8684 18.3842 33.0921 18.3819 33.3359V34.0923C18.3819 34.4096 18.4399 34.6818 18.5559 34.9091C18.6719 35.134 18.834 35.3068 19.0424 35.4276C19.2507 35.5459 19.4945 35.6051 19.7739 35.6051C19.9609 35.6051 20.1302 35.5791 20.2817 35.527C20.4332 35.4725 20.5646 35.3932 20.6759 35.2891C20.7872 35.1849 20.8712 35.0559 20.928 34.902L22.1283 35.0369C22.0525 35.3542 21.9081 35.6312 21.6951 35.8679C21.4844 36.1023 21.2145 36.2846 20.8854 36.4148C20.5563 36.5426 20.1799 36.6065 19.7561 36.6065ZM24.0655 36.5L22.5243 31.0455H23.8347L24.7935 34.8807H24.8432L25.8233 31.0455H27.1195L28.0996 34.8594H28.1529L29.0975 31.0455H30.4114L28.8667 36.5H27.5279L26.5051 32.8139H26.4306L25.4078 36.5H24.0655ZM35.32 32.4872L34.1482 32.6151C34.115 32.4967 34.057 32.3854 33.9741 32.2812C33.8937 32.1771 33.7848 32.093 33.6474 32.0291C33.5101 31.9652 33.342 31.9332 33.1432 31.9332C32.8757 31.9332 32.6508 31.9912 32.4685 32.1072C32.2885 32.2232 32.1998 32.3736 32.2021 32.5582C32.1998 32.7169 32.2578 32.8459 32.3761 32.9453C32.4969 33.0447 32.6957 33.1264 32.9727 33.1903L33.9031 33.3892C34.4192 33.5005 34.8027 33.6768 35.0537 33.9183C35.307 34.1598 35.4348 34.4759 35.4372 34.8665C35.4348 35.2098 35.3342 35.5128 35.1354 35.7756C34.9389 36.036 34.6654 36.2396 34.3151 36.3864C33.9647 36.5331 33.5622 36.6065 33.1077 36.6065C32.4401 36.6065 31.9027 36.4669 31.4955 36.1875C31.0883 35.9058 30.8456 35.514 30.7675 35.0121L32.021 34.8913C32.0778 35.1375 32.1986 35.3234 32.3832 35.4489C32.5679 35.5743 32.8082 35.6371 33.1041 35.6371C33.4095 35.6371 33.6545 35.5743 33.8392 35.4489C34.0262 35.3234 34.1197 35.1683 34.1197 34.9837C34.1197 34.8274 34.0594 34.6984 33.9386 34.5966C33.8203 34.4948 33.6356 34.4167 33.3847 34.3622L32.4543 34.1669C31.9311 34.058 31.544 33.8745 31.293 33.6165C31.0421 33.3561 30.9178 33.027 30.9202 32.6293C30.9178 32.2931 31.0089 32.0019 31.1936 31.7557C31.3806 31.5071 31.6399 31.3153 31.9713 31.1804C32.3051 31.0431 32.6898 30.9744 33.1254 30.9744C33.7646 30.9744 34.2677 31.1106 34.6347 31.3828C35.004 31.6551 35.2324 32.0232 35.32 32.4872ZM40.757 36.6065C40.2243 36.6065 39.7626 36.4893 39.372 36.255C38.9814 36.0206 38.6784 35.6927 38.4629 35.2713C38.2499 34.8499 38.1433 34.3575 38.1433 33.794C38.1433 33.2306 38.2499 32.737 38.4629 32.3132C38.6784 31.8894 38.9814 31.5604 39.372 31.326C39.7626 31.0916 40.2243 30.9744 40.757 30.9744C41.2896 30.9744 41.7513 31.0916 42.1419 31.326C42.5325 31.5604 42.8344 31.8894 43.0474 32.3132C43.2629 32.737 43.3706 33.2306 43.3706 33.794C43.3706 34.3575 43.2629 34.8499 43.0474 35.2713C42.8344 35.6927 42.5325 36.0206 42.1419 36.255C41.7513 36.4893 41.2896 36.6065 40.757 36.6065ZM40.7641 35.5767C41.0529 35.5767 41.2944 35.4974 41.4885 35.3388C41.6826 35.1778 41.827 34.9624 41.9217 34.6925C42.0188 34.4226 42.0673 34.1219 42.0673 33.7905C42.0673 33.4567 42.0188 33.1548 41.9217 32.8849C41.827 32.6127 41.6826 32.3961 41.4885 32.2351C41.2944 32.0741 41.0529 31.9936 40.7641 31.9936C40.4681 31.9936 40.2219 32.0741 40.0254 32.2351C39.8313 32.3961 39.6857 32.6127 39.5886 32.8849C39.4939 33.1548 39.4466 33.4567 39.4466 33.7905C39.4466 34.1219 39.4939 34.4226 39.5886 34.6925C39.6857 34.9624 39.8313 35.1778 40.0254 35.3388C40.2219 35.4974 40.4681 35.5767 40.7641 35.5767ZM45.4472 33.304V36.5H44.1617V31.0455H45.3904V31.9723H45.4543C45.5798 31.6669 45.7798 31.4242 46.0544 31.2443C46.3314 31.0644 46.6735 30.9744 47.0807 30.9744C47.4571 30.9744 47.785 31.0549 48.0644 31.2159C48.3461 31.3769 48.5639 31.6101 48.7178 31.9155C48.874 32.2209 48.951 32.5914 48.9486 33.027V36.5H47.6631V33.2259C47.6631 32.8613 47.5684 32.576 47.379 32.37C47.192 32.1641 46.9328 32.0611 46.6013 32.0611C46.3764 32.0611 46.1764 32.1108 46.0012 32.2102C45.8283 32.3073 45.6922 32.4482 45.5928 32.6328C45.4957 32.8175 45.4472 33.0412 45.4472 33.304Z",fill:"#0042E4"}),(0,E.jsx)("g",{clipPath:"url(#clip0_7854_13947)",children:(0,E.jsx)("path",{d:"M61.4082 16.7423L59.2956 16.4349L58.3525 14.521C58.3077 14.4439 58.2435 14.3799 58.1662 14.3355C58.0889 14.291 58.0013 14.2676 57.9121 14.2676C57.8229 14.2676 57.7353 14.291 57.658 14.3355C57.5807 14.3799 57.5165 14.4439 57.4717 14.521L56.5286 16.4354L54.416 16.7423C54.3255 16.7553 54.2405 16.7933 54.1705 16.8521C54.1006 16.9109 54.0485 16.9882 54.0202 17.0751C53.9919 17.1619 53.9884 17.255 54.0103 17.3438C54.0322 17.4325 54.0785 17.5134 54.1439 17.5772L55.6722 19.0673L55.3115 21.1716C55.2961 21.2616 55.3062 21.3541 55.3406 21.4387C55.375 21.5233 55.4324 21.5965 55.5063 21.6502C55.5802 21.7039 55.6676 21.7358 55.7586 21.7424C55.8497 21.7489 55.9408 21.7299 56.0216 21.6874L57.9121 20.6935L59.8016 21.6864C59.8824 21.7289 59.9735 21.748 60.0646 21.7414C60.1556 21.7348 60.243 21.7029 60.3169 21.6492C60.3908 21.5956 60.4482 21.5223 60.4826 21.4377C60.517 21.3531 60.5271 21.2606 60.5116 21.1706L60.151 19.0663L61.6803 17.5772C61.7456 17.5134 61.7917 17.4327 61.8136 17.3441C61.8354 17.2555 61.832 17.1625 61.8038 17.0758C61.7756 16.989 61.7237 16.9118 61.654 16.853C61.5842 16.7941 61.4994 16.756 61.4092 16.7428L61.4082 16.7423Z",fill:"#FE522A"})}),(0,E.jsx)("g",{clipPath:"url(#clip1_7854_13947)",children:(0,E.jsx)("path",{d:"M72.2422 16.7423L70.1295 16.4349L69.1865 14.521C69.1417 14.4439 69.0774 14.3799 69.0001 14.3355C68.9229 14.291 68.8352 14.2676 68.7461 14.2676C68.6569 14.2676 68.5693 14.291 68.492 14.3355C68.4147 14.3799 68.3504 14.4439 68.3056 14.521L67.3626 16.4354L65.25 16.7423C65.1595 16.7553 65.0745 16.7933 65.0045 16.8521C64.9346 16.9109 64.8825 16.9882 64.8542 17.0751C64.8258 17.1619 64.8224 17.255 64.8443 17.3438C64.8662 17.4325 64.9124 17.5134 64.9779 17.5772L66.5062 19.0673L66.1455 21.1716C66.1301 21.2616 66.1402 21.3541 66.1746 21.4387C66.209 21.5233 66.2664 21.5965 66.3403 21.6502C66.4141 21.7039 66.5016 21.7358 66.5926 21.7424C66.6837 21.7489 66.7748 21.7299 66.8556 21.6874L68.7461 20.6935L70.6356 21.6864C70.7164 21.7289 70.8075 21.748 70.8985 21.7414C70.9896 21.7348 71.077 21.7029 71.1509 21.6492C71.2248 21.5956 71.2822 21.5223 71.3166 21.4377C71.351 21.3531 71.3611 21.2606 71.3456 21.1706L70.985 19.0663L72.5143 17.5772C72.5795 17.5134 72.6257 17.4327 72.6475 17.3441C72.6694 17.2555 72.666 17.1625 72.6378 17.0758C72.6096 16.989 72.5577 16.9118 72.488 16.853C72.4182 16.7941 72.3334 16.756 72.2431 16.7428L72.2422 16.7423Z",fill:"#FE522A"})}),(0,E.jsx)("g",{clipPath:"url(#clip2_7854_13947)",children:(0,E.jsx)("path",{d:"M83.0722 16.7423L80.9596 16.4349L80.0166 14.521C79.9718 14.4439 79.9075 14.3799 79.8302 14.3355C79.7529 14.291 79.6653 14.2676 79.5762 14.2676C79.487 14.2676 79.3994 14.291 79.3221 14.3355C79.2448 14.3799 79.1805 14.4439 79.1357 14.521L78.1927 16.4354L76.0801 16.7423C75.9896 16.7553 75.9046 16.7933 75.8346 16.8521C75.7647 16.9109 75.7126 16.9882 75.6842 17.0751C75.6559 17.1619 75.6525 17.255 75.6744 17.3438C75.6962 17.4325 75.7425 17.5134 75.808 17.5772L77.3363 19.0673L76.9756 21.1716C76.9602 21.2616 76.9703 21.3541 77.0047 21.4387C77.0391 21.5233 77.0965 21.5965 77.1703 21.6502C77.2442 21.7039 77.3316 21.7358 77.4227 21.7424C77.5138 21.7489 77.6049 21.7299 77.6857 21.6874L79.5762 20.6935L81.4656 21.6864C81.5464 21.7289 81.6375 21.748 81.7286 21.7414C81.8197 21.7348 81.9071 21.7029 81.981 21.6492C82.0549 21.5956 82.1122 21.5223 82.1467 21.4377C82.1811 21.3531 82.1911 21.2606 82.1757 21.1706L81.815 19.0663L83.3443 17.5772C83.4096 17.5134 83.4558 17.4327 83.4776 17.3441C83.4995 17.2555 83.4961 17.1625 83.4679 17.0758C83.4397 16.989 83.3878 16.9118 83.318 16.853C83.2483 16.7941 83.1635 16.756 83.0732 16.7428L83.0722 16.7423Z",fill:"#FE522A"})}),(0,E.jsx)("g",{clipPath:"url(#clip3_7854_13947)",children:(0,E.jsx)("path",{d:"M93.9062 16.7423L91.7936 16.4349L90.8506 14.521C90.8058 14.4439 90.7415 14.3799 90.6642 14.3355C90.5869 14.291 90.4993 14.2676 90.4101 14.2676C90.321 14.2676 90.2334 14.291 90.1561 14.3355C90.0788 14.3799 90.0145 14.4439 89.9697 14.521L89.0267 16.4354L86.914 16.7423C86.8236 16.7553 86.7385 16.7933 86.6686 16.8521C86.5986 16.9109 86.5465 16.9882 86.5182 17.0751C86.4899 17.1619 86.4865 17.255 86.5084 17.3438C86.5302 17.4325 86.5765 17.5134 86.6419 17.5772L88.1703 19.0673L87.8096 21.1716C87.7942 21.2616 87.8042 21.3541 87.8387 21.4387C87.8731 21.5233 87.9305 21.5965 88.0043 21.6502C88.0782 21.7039 88.1656 21.7358 88.2567 21.7424C88.3478 21.7489 88.4389 21.7299 88.5197 21.6874L90.4101 20.6935L92.2996 21.6864C92.3804 21.7289 92.4715 21.748 92.5626 21.7414C92.6537 21.7348 92.7411 21.7029 92.815 21.6492C92.8888 21.5956 92.9462 21.5223 92.9806 21.4377C93.015 21.3531 93.0251 21.2606 93.0097 21.1706L92.649 19.0663L94.1783 17.5772C94.2436 17.5134 94.2898 17.4327 94.3116 17.3441C94.3334 17.2555 94.3301 17.1625 94.3019 17.0758C94.2737 16.989 94.2218 16.9118 94.152 16.853C94.0823 16.7941 93.9975 16.756 93.9072 16.7428L93.9062 16.7423Z",fill:"#FE522A"})}),(0,E.jsx)("g",{clipPath:"url(#clip4_7854_13947)",children:(0,E.jsx)("path",{d:"M104.732 16.7423L102.62 16.4349L101.677 14.521C101.632 14.4439 101.568 14.3799 101.49 14.3355C101.413 14.291 101.325 14.2676 101.236 14.2676C101.147 14.2676 101.06 14.291 100.982 14.3355C100.905 14.3799 100.841 14.4439 100.796 14.521L99.8528 16.4354L97.7402 16.7423C97.6497 16.7553 97.5647 16.7933 97.4948 16.8521C97.4248 16.9109 97.3727 16.9882 97.3444 17.0751C97.3161 17.1619 97.3127 17.255 97.3345 17.3438C97.3564 17.4325 97.4027 17.5134 97.4681 17.5772L98.9964 19.0673L98.6358 21.1716C98.6203 21.2616 98.6304 21.3541 98.6648 21.4387C98.6992 21.5233 98.7566 21.5965 98.8305 21.6502C98.9044 21.7039 98.9918 21.7358 99.0829 21.7424C99.1739 21.7489 99.265 21.7299 99.3459 21.6874L101.236 20.6935L103.126 21.6864C103.207 21.7289 103.298 21.748 103.389 21.7414C103.48 21.7348 103.567 21.7029 103.641 21.6492C103.715 21.5956 103.772 21.5223 103.807 21.4377C103.841 21.3531 103.851 21.2606 103.836 21.1706L103.475 19.0663L105.004 17.5772C105.07 17.5134 105.116 17.4327 105.138 17.3441C105.16 17.2555 105.156 17.1625 105.128 17.0758C105.1 16.989 105.048 16.9118 104.978 16.853C104.908 16.7941 104.824 16.756 104.733 16.7428L104.732 16.7423Z",fill:"#FE522A"})}),(0,E.jsx)("g",{clipPath:"url(#clip5_7854_13947)",children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.134 28.1996L59.0673 33.5301L61.0931 28.1996H63.9687L59.0514 40.5434H56.2072L57.6617 36.7185L54.166 28.1996H57.134ZM87.5068 28.0106C90.1033 28.0106 91.9968 30.0255 91.9968 32.7834C91.9968 35.5413 90.1033 37.5567 87.5068 37.5567C86.5485 37.5567 85.7418 37.3029 85.126 36.8137L85.0861 36.7814L85.0519 36.7532V40.5406H82.2809V28.1996H84.7311V29.1222L84.7451 29.1062C85.3488 28.4177 86.262 28.0368 87.3905 28.012L87.45 28.011L87.5068 28.0106ZM69.0159 28.0106C71.8751 28.0106 73.9017 29.9861 73.9017 32.7834C73.9017 35.5689 71.8685 37.5567 69.0159 37.5567C66.1473 37.5567 64.1108 35.5717 64.1108 32.7834C64.1108 29.9833 66.1403 28.0106 69.0159 28.0106ZM78.5183 26.1687V28.1996H80.7978V30.593H78.5183V33.8969C78.5183 34.636 78.8771 35.0427 79.531 35.0675L79.5629 35.068L79.5952 35.0685C80.0385 35.0685 80.3743 34.9522 80.6749 34.6632L80.7031 34.6356L80.7776 34.5591H80.7983V37.1993L80.7134 37.2401C80.257 37.4582 79.9761 37.5567 79.1984 37.5567C77.0015 37.5567 75.7952 36.3606 75.7483 34.1271L75.7473 34.0591V33.9911L75.7469 30.593H74.7441V28.1996H75.8224V26.1687H78.5183ZM98.0519 28.0106C100.911 28.0106 102.938 29.9861 102.938 32.7834C102.938 35.5689 100.905 37.5567 98.0519 37.5567C95.1833 37.5567 93.1468 35.5717 93.1468 32.7834C93.1468 29.9833 95.1768 28.0106 98.0519 28.0106ZM105.197 34.5197C106.035 34.5197 106.715 35.1998 106.715 36.038C106.715 36.8766 106.035 37.5567 105.197 37.5567C104.358 37.5567 103.678 36.8766 103.678 36.038C103.678 35.1993 104.358 34.5197 105.197 34.5197ZM87.0917 30.4988C85.8431 30.4988 84.9951 31.4227 84.9951 32.7834C84.9951 34.1445 85.8431 35.0685 87.0917 35.0685C88.3562 35.0685 89.207 34.1473 89.207 32.7834C89.207 31.4199 88.3562 30.4988 87.0917 30.4988ZM69.0154 30.4988C67.7631 30.4988 66.9006 31.4274 66.9006 32.7834C66.9006 34.1398 67.7631 35.0685 69.0159 35.0685C70.2522 35.0685 71.1124 34.137 71.1124 32.7834C71.1124 31.4302 70.2518 30.4988 69.0154 30.4988ZM98.0519 30.4988C96.7996 30.4988 95.9366 31.4274 95.9366 32.7834C95.9366 34.1398 96.7996 35.0685 98.0519 35.0685C99.2882 35.0685 100.148 34.137 100.148 32.7834C100.148 31.4302 99.2882 30.4988 98.0519 30.4988Z",fill:"#0042E4"})}),(0,E.jsxs)("defs",{children:[(0,E.jsx)("clipPath",{id:"clip0_7854_13947",children:(0,E.jsx)("rect",{width:"7.83",height:"7.83",fill:"white",transform:"translate(54 14.0806)"})}),(0,E.jsx)("clipPath",{id:"clip1_7854_13947",children:(0,E.jsx)("rect",{width:"7.83",height:"7.83",fill:"white",transform:"translate(64.8301 14.0806)"})}),(0,E.jsx)("clipPath",{id:"clip2_7854_13947",children:(0,E.jsx)("rect",{width:"7.83",height:"7.83",fill:"white",transform:"translate(75.6602 14.0806)"})}),(0,E.jsx)("clipPath",{id:"clip3_7854_13947",children:(0,E.jsx)("rect",{width:"7.83",height:"7.83",fill:"white",transform:"translate(86.4902 14.0806)"})}),(0,E.jsx)("clipPath",{id:"clip4_7854_13947",children:(0,E.jsx)("rect",{width:"7.83",height:"7.83",fill:"white",transform:"translate(97.3203 14.0806)"})}),(0,E.jsx)("clipPath",{id:"clip5_7854_13947",children:(0,E.jsx)("rect",{width:"53",height:"15.0088",fill:"white",transform:"translate(54 25.9106)"})})]})]})});var pt=s(f()),br=({content:t})=>{let[r]=R(),e=r.data?.layout?.gstIsActive,{shopifyShop:o}=r.data.envs,a=o.includes("australia"),i=o.includes("medshopdev");return(0,pt.jsxs)("div",{className:"flex items-center gap-3 pb-2 lg:pb-0",children:[e&&(a||i)&&(0,pt.jsxs)("div",{className:"flex items-center flex-nowrap gap-4 hidden lg:flex",children:[(0,pt.jsx)(Xt,{}),(0,pt.jsx)(_t,{})]}),t?.Image&&!a&&!i&&(0,pt.jsx)(O,{src:t.Image.url,width:22,height:20,className:"header-info-img hidden h-12 w-12 rounded-lg border-2 border-GREY_THREE p-3 lg:block ",alt:"deliveryInfo"}),(t?.title||t?.description)&&!a&&!i&&(0,pt.jsxs)("div",{className:"!lg:justify-around ml-auto flex min-w-max flex-row !justify-center gap-1 lg:flex-col",children:[t?.title&&!a&&!i&&(0,pt.jsx)(tt.P2,{className:"font-[600] leading-[140%]",children:t.title}),t?.description&&!a&&!i&&(0,pt.jsx)(tt.P2,{className:"font-normal leading-[140%] text-GREY_ONE",children:t.description})]})]})};var z=s(A());var Lt=s(A());var q=s(f()),yr=({content:t,activeMenu:r,setActiveMenu:e})=>{let o=J(),a=(0,Lt.useRef)(null),[i,d]=(0,Lt.useState)(!1),n=(x,h)=>{(window.location.href===h||o.pathname===h)&&(x.preventDefault(),x.stopPropagation()),a.current=i,e(!1)},l=x=>()=>{d(x)},w=()=>{a.current=null,d(!1)},u=()=>{w(),e(!1)};return(0,Lt.useEffect)(()=>{let x;return x=setTimeout(()=>{i&&a.current!==i&&(e(i),a.current=null)},r&&typeof r=="boolean"?300:70),()=>{clearTimeout(x)}},[i,r]),(0,q.jsx)("ul",{className:_("flex w-full gap-1",t?.length<7?"justify-start gap-4 lg:gap-8":"justify-between"),children:t?.map(x=>{let{key:h,title:g,slug:C}=Kt(x),k=r===h,T=!!x.categories?.length;return(0,q.jsx)("li",{children:T?(0,q.jsx)(Mo,{slug:C,active:k,keyId:h,handleFocus:l,onMouseLeave:w,setHovered:d,handleClick:n,children:(0,q.jsxs)(q.Fragment,{children:[g,(0,q.jsx)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,q.jsx)("path",{d:"M7.23712 0L4 3.56558L0.762881 0L0 0.840288L3.61856 4.82601C3.71973 4.93742 3.85694 5 4 5C4.14306 5 4.28027 4.93742 4.38144 4.82601L8 0.840288L7.23712 0Z",fill:k?"#FE7555":"#000"})})]})}):(0,q.jsx)(G,{to:C,className:"leading-tight flex min-w-fit items-center gap-2 px-1 py-1.5 font-inter text-sm font-[600] text-black first:-ml-1 hover:text-ORANGE_TWO lg:text-xxs xl:text-sm",onClick:I=>n(I,C),onFocus:u,onMouseEnter:u,onMouseOver:u,onMouseLeave:u,onBlur:u,children:g})},h)})})},Mo=({slug:t,active:r,keyId:e,handleFocus:o,onMouseLeave:a,setHovered:i,handleClick:d,children:n})=>{let l={className:_({"!text-ORANGE_TWO":r},"leading-tight flex min-w-fit items-center gap-2 px-1 py-1.5 font-inter text-sm font-[600] text-black first:-ml-1 lg:text-xxs xl:text-sm"),onFocus:o(e),onMouseEnter:o(e),onMouseOver:o(e),onMouseLeave:a,onBlur:()=>i(!1),onClick:w=>d(w,t)};return t?(0,q.jsx)(G,{to:t,...l,children:n}):(0,q.jsx)("span",{...l,children:n})};var p=s(f()),Lr=s(A()),vr=({headerData:t,openMenu:r,setOpenMenu:e,headerRef:o})=>{let a=t?.headerData?.reduce((n,l)=>{let w=!l?.subcategories?.length,u=!!n[n.length-1]?.length;if(w){if(u)return n[n.length-1]?.push(l),n;if(!u)return n.push([l]),n}return n.push(l),n},[]),i=n=>{let l=o.current;l&&n.relatedTarget instanceof Node&&!l.contains(n.relatedTarget)&&e(!1)},d=t?.headerData?.filter(n=>!!n.inHeader);return(0,z.useEffect)(()=>{let n=document.querySelector("html");n&&(r&&(n.style.overflow="hidden"),r||(n.style.overflow=null))},[r]),(0,p.jsx)("div",{className:"menu-click-class min-h-[53px] w-full flex-wrap items-center rounded-[12px] border border-[#DBDCDC] px-[21px] py-[12px] lg:flex",children:(0,p.jsxs)("nav",{className:"flex flex-grow flex-nowrap items-center gap-2 whitespace-nowrap lg:gap-[3px] xl:gap-2",children:[d&&(0,p.jsx)(yr,{content:d,activeMenu:r,setActiveMenu:e,headerRef:o}),(0,p.jsx)("div",{className:_("transform-origin-center absolute bottom-1 left-[50%] my-0 flex w-screen translate-x-[-50%] translate-y-[100%] justify-center rounded-b-lg bg-white p-[30px] pt-[14px]",{"sr-only":!r,mainMenuIsOpened:r}),tabIndex:r?0:-1,ref:o,onMouseLeave:i,children:(0,p.jsx)("div",{className:"w-full max-w-[1280px]",children:!!a?.[0]?.length&&(0,p.jsx)(Oo,{menu:a[0],openMenu:r,globalBestsellers:t?.bestsellers||[],children:(0,p.jsx)(Do,{})})})})]})})},Ro=` .menu-wrapper { display: flex; border-radius: 12px; border: 1px solid #DBDCDC; height: 62vh; overflow-x: hidden; overflow-y: hidden; } .menu-wrapper li { cursor: pointer; display: flex; justify-content: space-between; border-radius: 8px; } .menu-wrapper li.focused, .subcategory-link:hover, .subcategory-link:focus-within, .promoted-link:hover, .promoted-link:focus-within { background-color: #E7E7E7; } .menu-wrapper li.has-submenu.focused > .categories-menu, .menu-wrapper li.has-submenu.focused > .submenu { display: flex; position: absolute; top: 0; left: 100%; background-color: white; width: fit-content; height: 100%; padding: 0; margin: 0; overflow: auto; clip: auto; white-space: nowrap; } .menu { overflow: visible; position: relative; max-width: 50%; } .submenu:after, .menu:after, .categories-menu:after { content: ' '; position: absolute; top: 0; right: 0; width: 1px; height: 100%; transform: translateX(-1px); background: #DBDCDC; z-index: -1; } .menu, .categories-menu, .submenu{ z-index: 1; } .menu-column { list-style: none; flex: 1; max-height: 100%; overflow: auto; padding: 12px; } .menu-title { font-weight: bold; color: #e63946; margin-bottom: 10px; } .menu-column > li { cursor: pointer; display: flex; justify-content: space-between; } .menu-column > li > a, .categories-menu li > a, .submenu li > a { text-decoration: none; flex-grow: 1; } .has-submenu > .categories-menu, .has-submenu > .submenu { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; flex-direction: column; max-height: 100%; overflow-y: auto; padding: 0; margin: 0; } .menu-item-link { color: var(--Black, #000); font-family: Inter; font-size: 16px; font-style: normal; font-weight: 600; line-height: 20px; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 12px; white-space: pre-line; } .category-title { color: var(--Black, #000); font-family: Inter; font-size: 24px; font-style: normal; font-weight: 700; line-height: 24px; text-transform: capitalize; padding: 21px 24px 12px; } .link-arrow { } .menu-wrapper ::-webkit-scrollbar { width: 3px !important; } .menu-wrapper ::-webkit-scrollbar-track { border-radius: 10px; background: rgb(6,26,46); background: linear-gradient(90deg, rgba(6,26,46,0) 0%, rgba(219,220,220,1) 50%, rgba(224,239,255,0) 100%); } .menu-wrapper ::-webkit-scrollbar-thumb { background-color: #000 !important; border-radius: 10px; border:1px solid #000 ; width: 3px } .menu-wrapper ::-webkit-scrollbar-button { display: none; } .collapsed-list { width: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .menu-item-link-title { position: relative; } .tag { color: #FE522A; font-family: Inter; font-size: 10px; font-style: italic; font-weight: 600; line-height: 12px; position: relative; top: -10px; } .promoted-link { color: var(--Black, #000); font-family: Inter; font-size: 16px; font-style: normal; font-weight: 600; line-height: 20px; display: flex; align-items: center; gap: 12px; padding: 12px; white-space: pre-line; border-radius: 8px; } `,wt=(0,z.createContext)({}),Po=typeof window<"u"?z.useLayoutEffect:z.useEffect,Oo=({children:t,menu:r,openMenu:e,globalBestsellers:o})=>{let a=(0,z.useRef)(null),i=(0,z.useRef)(null),[d,n]=(0,z.useState)(null),[l,w]=(0,z.useState)(null),u=typeof window<"u"?window.innerWidth<1250:!1,[x,h]=(0,z.useState)(0),g=typeof e=="string";Po(()=>{typeof e=="boolean"||!e?n(null):typeof e=="string"&&n({id:e}),w(null),T(0)},[e]);let C=(I,S)=>H=>{d?.el&&d.el.blur(),n({id:I,isHasSubMenu:S,el:H.currentTarget}),S||T(0),w(null)},k=(I,S)=>H=>{d?.el&&d.el.blur();let X=H.currentTarget;w({id:I,isHasSubMenu:S,el:X})},T=I=>{let S=I+i.current.offsetWidth;h(S)},N=I=>{i.current};return(0,p.jsx)(wt.Provider,{value:{menuRef:i,menuWrapperRef:a,makePromotedOffset:T,onChangeActiveCategories:k,onChangeActiveMenu:C,promotedOffset:x,setPromotedOffset:h,activeCategories:l,setActiveCategories:w,activeMenu:d,setActiveMenu:n,menu:r,globalBestsellers:o,changeHeightMeinMenu:N,openMenu:e,isHeaderSubMenu:g,isTablet:u},children:t})},Do=()=>{let{menu:t,menuRef:r,activeMenu:e,onChangeActiveMenu:o,openMenu:a,isHeaderSubMenu:i,isTablet:d,menuWrapperRef:n}=(0,z.useContext)(wt);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:Ro}}),(0,p.jsx)("div",{className:"menu-wrapper",ref:n,children:(0,p.jsxs)("div",{className:"menu",ref:r,style:{minWidth:i?"auto":d?"300px":"402px"},children:[(0,p.jsx)("ul",{className:_("menu-column flex flex-col gap-1",{"collapsed-list":i}),children:!!t?.length&&t.map(w=>{let{key:u,title:x,slug:h}=Kt(w),g=!!w.categories?.length,C=e?.id===u,k=w.customColor?w.customColor.hex:"#000",T=w.sectionTitle?.tag;return(0,p.jsxs)("li",{className:_({"has-submenu":g},{focused:C}),children:[(0,p.jsx)(Ho,{slug:h,onChangeActiveMenu:o,keyId:u,isHasSubMenu:g,openMenu:a,linkColor:k,children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("span",{className:"menu-item-link-title flex gap-2",children:[w.vector&&(0,p.jsx)("img",{src:w.vector,alt:"icon",width:20}),(0,p.jsx)("span",{children:x}),T&&(0,p.jsx)("span",{className:"tag",children:T})]}),g&&(0,p.jsx)("span",{className:"link-arrow",children:(0,p.jsx)(le,{fill:k})})]})}),g&&(0,p.jsx)(Fo,{categories:w.categories,title:x,titleLink:h,active:C,isDoubleColumns:w.isDoubleColumns})]},u)})}),(0,p.jsx)(Bo,{additionalWidth:r.current?.clientWidth||0})]})})]})},Ho=({slug:t,onChangeActiveMenu:r,keyId:e,isHasSubMenu:o,openMenu:a,linkColor:i,children:d})=>t?(0,p.jsx)(G,{className:_("menu-item-link"),to:t,onMouseEnter:r(e,o),onFocus:r(e,o),tabIndex:a?"0":"-1",style:{color:i},children:d}):(0,p.jsx)("span",{className:_("menu-item-link"),onMouseEnter:r(e,o),onFocus:r(e,o),tabIndex:a?"0":"-1",style:{color:i,width:"100%"},children:d}),Fo=({categories:t,title:r,titleLink:e,active:o,isDoubleColumns:a})=>{let{activeMenu:i,onChangeActiveMenu:d,openMenu:n,makePromotedOffset:l,activeCategories:w,onChangeActiveCategories:u,isHeaderSubMenu:x,isTablet:h}=(0,z.useContext)(wt),g=typeof n=="string"&&a,C=o?h?"300px":x?"402px":"338px":"auto";return g&&(C=h?"600px":"740px"),(0,p.jsxs)("div",{className:"categories-menu !cursor-default",style:{overflow:"visible",height:"100%",width:C},ref:k=>{!w?.isHasSubMenu&&o&&k&&l(k.offsetWidth)},children:[(0,p.jsx)("span",{className:"category-title whitespace-pre-line break-words",children:(0,p.jsx)(G,{to:e,tabIndex:n?"0":"-1",children:r})}),(0,p.jsx)("ul",{className:_({"grid grid-cols-2 gap-x-24":g}),style:{overflowY:"auto",padding:"0 12px 0"},children:t.map(k=>{if(!k.subcategoryTitle)return null;let T=k.subcategoryTitle.title||k.subcategoryTitle.mainTitle,N=k.subcategoryTitle.slug||k.subcategoryTitle.link,I=!!k.subcategories,S=N+r||k.subcategoryTitle._type,H=w?.id===S,X=k.subcategoryTitle?.tag;return(0,p.jsxs)("li",{className:_({"has-submenu":I},{focused:H}),children:[(0,p.jsxs)(G,{className:"menu-item-link",to:N,onMouseEnter:u(S,I),onFocus:u(S,I),tabIndex:n?"0":"-1",children:[(0,p.jsxs)("span",{className:"menu-item-link-title",children:[(0,p.jsx)("span",{children:T}),X&&(0,p.jsx)("span",{className:"tag",children:X})]}),I&&!a&&(0,p.jsx)("span",{className:"link-arrow",children:(0,p.jsx)(le,{})})]}),I&&!a&&(0,p.jsx)(jo,{subcategories:k.subcategories,title:T,titleLink:N,active:H})]},S)})})]})},jo=({subcategories:t,title:r,titleLink:e,active:o})=>{let{openMenu:a,activeMenu:i,makePromotedOffset:d}=(0,z.useContext)(wt);return(0,p.jsxs)("div",{className:"submenu",style:{overflow:"visible",height:"100%",width:"100%",maxWidth:"600px",cursor:"auto",whiteSpace:"normal"},ref:n=>{o&&n&&d(n.offsetLeft+n.offsetWidth)},children:[(0,p.jsx)("span",{className:"category-title",children:(0,p.jsx)(G,{to:e,tabIndex:a?"0":"-1",children:r})}),(0,p.jsx)("ul",{style:{overflowY:"auto",padding:"0 12px 0"},children:t.map(n=>{let l=(n.slug||n.link)+r||n._type;return(0,p.jsx)(kr,{subCategory:n,openMenu:a},l)})})]})},kr=({subCategory:t,openMenu:r})=>{let e=t.title||t.mainTitle,o=t.slug||t.link,a=t.tag;return(0,p.jsx)("li",{className:"subcategory-link",children:(0,p.jsx)(G,{className:_("menu-item-link"),to:o,tabIndex:r?"0":"-1",children:(0,p.jsx)("span",{className:"menu-item-link-title",children:(0,p.jsxs)("span",{className:"relative",children:[e,a&&(0,p.jsx)("span",{className:"tag",children:a})]})})})})},Bo=(0,z.memo)(({additionalWidth:t})=>{let{menu:r,openMenu:e,promotedOffset:o,activeMenu:a,makePromotedOffset:i,globalBestsellers:d,activeCategories:n,isTablet:l,menuWrapperRef:w}=(0,z.useContext)(wt),u=r.reduce((h,g)=>{if(!g.bestsellers?.length&&!g.promotedColors?.length&&!g.promotedCollection?.length)return h;let{key:C}=Kt(g),k=C===a?.id;return h.push({key:C,selected:k,menuItem:g,bestsellers:g.bestsellers||[],promotedColors:g.promotedColors||[],promotedCollection:g.promotedCollection||[]}),h},[]),x=(!a||u.every(({selected:h})=>!h))&&!n?.isHasSubMenu;return(0,p.jsxs)(p.Fragment,{children:[u.map(h=>(0,Lr.createElement)(Wo,{...h,key:h.key,menuWrapperRef:w,isTablet:l,activeCategories:n,additionalWidth:t})),!!d?.length&&(0,p.jsx)(Cr,{selected:x,children:(0,p.jsx)(Qt,{title:"Bestsellers",menuWrapperRef:w,classes:{"w-[267px] min-w-[267px]":x&&!l,"w-44 min-w-[176px]":x&&l},children:(0,p.jsx)(_r,{bestsellers:d,selected:x})})})]})}),Wo=({selected:t,bestsellers:r,promotedColors:e,promotedCollection:o,menuWrapperRef:a,isTablet:i,activeCategories:d,additionalWidth:n})=>{let l=t&&!d?.isHasSubMenu,w=(0,z.useRef)(null),u=(0,z.useRef)(null),{isHeaderSubMenu:x,activeMenu:h}=(0,z.useContext)(wt),g=i?300:x?402:338,C=(a.current?.clientWidth||0)-(t&&h.isHasSubMenu?n:0)-(g||0)-(w.current?.clientWidth||0)-(u.current?.clientWidth||0)-(n?0:1);return(0,p.jsxs)(Cr,{selected:l,children:[!!e.length&&(0,p.jsx)(Qt,{ref:w,title:"Colors",classes:{"max-w-56 min-w-[267px]":l&&!i,"max-w-44":l&&i,"border-r border-GREY_FOUR":!!r.length&&!o.length},menuWrapperRef:a,children:(0,p.jsx)(Yo,{promotedColors:e,selected:l,isTablet:i})}),!!o.length&&(0,p.jsx)(Qt,{ref:u,title:"Collection",classes:{"min-w-max":l,"border-r border-GREY_FOUR":!!r.length,"":!0},menuWrapperRef:a,children:(0,p.jsx)(Go,{promotedCollection:o,selected:l,isTablet:i})}),!!r.length&&(0,p.jsx)(Qt,{listClassNames:"flex flex-wrap",title:"Bestsellers",maxWidth:C,classes:{"submenu w-full w-max":l},menuWrapperRef:a,children:(0,p.jsx)(_r,{bestsellers:r,selected:l})})]})},Cr=({children:t,selected:r})=>{let{promotedOffset:e,changeHeightMeinMenu:o}=(0,z.useContext)(wt);return(0,p.jsx)("div",{className:_("absolute top-0 flex min-h-full",{"sr-only":!r||!e}),style:{left:`${e}px`},ref:a=>o(a?.offsetHeight),children:t})},Qt=(0,z.forwardRef)(({title:t,children:r,classes:e,menuWrapperRef:o,listClassNames:a,maxWidth:i},d)=>{let n=(0,z.useRef)();return i<267?null:(0,p.jsxs)("div",{className:_(e),ref:d,children:[(0,p.jsx)("span",{className:"category-title block whitespace-pre-line break-words border-r border-GREY_FOUR",ref:n,children:t}),(0,p.jsx)("ul",{className:a,style:{overflowY:"auto",padding:"0 12px 0",width:i,maxHeight:`${o.current?.clientHeight-n.current?.clientHeight||0}px`},children:r})]})}),_r=({bestsellers:t,selected:r})=>(0,p.jsx)(p.Fragment,{children:t.map(e=>{let o=e.product,a=e._type;if(a==="reference"&&!e?.product?.isDeleted)return(0,p.jsx)("li",{children:(0,p.jsxs)(G,{className:"word-wrap flex flex-grow-0 flex-col gap-3 p-3",to:o.slug||"/",tabIndex:r?"0":"-1",children:[(0,p.jsx)("div",{className:"relative flex w-full max-w-[213px] flex-col gap-4",children:(0,p.jsx)(mt,{src:o?.image??"https://cdn.shopify.com/s/files/1/0012/8440/7394/files/placegolder.svg?v=1701691776",alt:o.title,sizes:"250px",srcSetOptions:{intervals:2,startingWidth:200,incrementSize:200,placeholderWidth:200},className:"flex h-[178px] w-[213px] min-w-full rounded-lg border-2 border-GREY_FOUR bg-white object-contain hover:cursor-pointer md:max-h-[174px]"})}),(0,p.jsx)("span",{className:"text-base font-semibold leading-5 w-[213px] whitespace-pre-line break-words font-inter text-black",children:o.title})]})},o.slug+o.title);if(a==="internalLinkWithImage")return(0,p.jsx)("li",{children:(0,p.jsxs)(G,{className:"word-wrap flex flex-col gap-3 p-3",to:e.link?.slug||"/",tabIndex:r?"0":"-1",children:[(0,p.jsx)("div",{className:"relative flex w-full max-w-[213px] flex-col gap-4",children:(0,p.jsx)(mt,{src:e?.image.url??"https://cdn.shopify.com/s/files/1/0012/8440/7394/files/placegolder.svg?v=1701691776",alt:e.link.title,srcSetOptions:{intervals:2,startingWidth:200,incrementSize:200,placeholderWidth:200},sizes:"250px",className:"flex h-[178px] w-[213px] min-w-full rounded-lg border-2 border-GREY_FOUR bg-white object-contain hover:cursor-pointer md:max-h-[174px]"})}),(0,p.jsx)("span",{className:"text-base font-semibold leading-5 whitespace-pre-line break-words font-inter text-black",children:e.link.title})]})},e.link?.slug+e.link?.title);if(a==="externalLinkWithImage")return(0,p.jsxs)("a",{href:e.link.url,className:"flex flex-col items-center gap-3 p-3 text-sm font-medium leading-[24px] text-[#010101]",target:e.link.newWindow?"_blank":"_self",rel:"noreferrer",children:[(0,p.jsx)("div",{className:"relative flex w-full max-w-[213px] flex-col gap-4",children:(0,p.jsx)(mt,{src:e?.image.url??"https://cdn.shopify.com/s/files/1/0012/8440/7394/files/placegolder.svg?v=1701691776",alt:e.link.title,sizes:"250px",srcSetOptions:{intervals:1,startingWidth:200,incrementSize:200,placeholderWidth:200},className:"flex h-[178px] w-[213px] min-w-full rounded-lg border-2 border-GREY_FOUR bg-white object-contain hover:cursor-pointer md:max-h-[174px]"})}),(0,p.jsx)("span",{className:"text-base font-semibold leading-5 whitespace-pre-line break-words font-inter text-black",children:e.link.title})]},e.link._key+e.link.url)})}),Yo=({promotedColors:t,selected:r})=>(0,p.jsx)("div",{className:"flex flex-col",children:t.map(e=>(0,p.jsx)("li",{children:(0,p.jsxs)(G,{className:"word-wrap promoted-link flex min-w-full items-center gap-4",to:e.link||"/",tabIndex:r?"0":"-1",children:[!!e.color&&!e.colorImage?.url&&(0,p.jsx)("span",{className:"block h-5 w-5 min-w-[20px] rounded-full outline outline-1 outline-[#e7e7e7]",style:{backgroundColor:e.color}}),!!e.colorImage?.url&&!e.color&&(0,p.jsx)(mt,{src:e.colorImage.url,width:20,height:20,className:"flex h-5 w-5 flex-shrink-0 flex-grow-0 rounded-full outline outline-1 outline-[#e7e7e7]"}),(0,p.jsx)("span",{className:"text-base font-semibold leading-5 whitespace-pre-line break-words font-inter text-black",children:e.title})]})},e.link+e.title))}),Go=({promotedCollection:t,selected:r})=>(0,p.jsx)(p.Fragment,{children:t.map(e=>{let o=e.slug||e.link;return(0,p.jsx)(kr,{subCategory:e,openMenu:r},o)})}),Kt=t=>{let r=t.sectionTitle?.slug||t.sectionTitle.link,e=t.sectionTitle?.title||t.sectionTitle?.mainTitle,o=r+e;return{slug:r,title:e,key:o}};var m=s(f());function fe({headerData:t,overlayRef:r}){let e=J(),[o]=R(),a=(0,B.useRef)(null),{shopifyShop:i}=o.data.envs,{type:d,changeType:n}=et(),[l,w]=(0,B.useState)(!1),[u,x]=(0,B.useState)(!0),[h,g]=(0,B.useState)(0),{company:C}=lr(),k=(0,B.useRef)(null),[T,N]=(0,B.useState)(null),[I,S]=(0,B.useState)([]),H=(0,B.useRef)(null),X=o.data?.layout?.gstIsActive,W=i.includes("australia"),xt=i.includes("medshopdev"),zt=W||xt?"gap-4":"gap-10 xl:gap-[70px]",[$,y]=(0,B.useState)(!1),Y=o.data?.layout,F=Y?.advertisements,rt=Y?.addvertisement,K=Y?.promoBaner,St=Y?.info,ct=d==null,ea=d==="main",Ot=(0,B.useRef)(null),oe=d==="search"||d==="search filters"||d==="main",{quote:Dt}=Wt(),At=L=>{y(L),r?.current&&(r.current.style.display=L?"block":"none")},ke=()=>{let L=new Event("click");document.dispatchEvent(L),n(null)},po=()=>{if(d==="search filters"){n("search");return}if(d===null){n("main");return}n(null)};return(0,B.useEffect)(()=>{let Q=Be(()=>{if(window.innerWidth>960){w(U=>U?window.scrollY>100:window.scrollY>125);return}w(U=>U?window.scrollY>80:window.scrollY>150)},200);return window.addEventListener("scroll",Q),()=>{window.removeEventListener("scroll",Q)}},[]),(0,B.useEffect)(()=>{Ot?.current?.offsetHeight&&g(Ot?.current?.offsetHeight)},[Ot?.current?.offsetHeight]),(0,B.useEffect)(()=>{l?(u&&$&&At(!1),x(!1)):x(!0)},[l]),(0,B.useEffect)(()=>{if(k.current&&F?.length>0){let L=k.current.offsetWidth;N(L),S([...F])}},[F]),(0,B.useEffect)(()=>{if(!T)return;let L=0,Q=.5,U,Ce=()=>{L-=Q,Math.abs(L)>=T&&(L+=T),k.current&&(k.current.style.transform=`translateX(${L}px)`),U=requestAnimationFrame(Ce)};return U=requestAnimationFrame(Ce),()=>cancelAnimationFrame(U)},[T]),(0,B.useEffect)(()=>{At(!1)},[e]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(qe,{to:"/collections/"}),(0,m.jsx)("header",{className:_("header-transition sticky top-0 bg-white lg:mb-0",l&&ct?"border-b border-GREY_FOUR":""),role:"banner",style:{zIndex:9999,top:l&&ct?`-${h}px`:"0"},children:(0,m.jsxs)("div",{className:"relative contents",children:[(0,m.jsxs)("div",{ref:Ot,className:"flex w-screen flex-col",children:[(0,m.jsx)(Nr,{children:(0,m.jsx)(Tr,{})}),(0,m.jsxs)("div",{className:"z-[21] my-auto flex h-auto w-full justify-center bg-[#FFE3CF] py-[11px]",children:[rt&&!W&&(0,m.jsx)("div",{className:"content-wrapper px-4 text-center text-[12px] leading-[140%] text-[#FE522A] md:text-[14px]",children:rt}),F&&(W||xt)&&(0,m.jsx)("div",{className:"flex hidden justify-center gap-8 px-4 text-center text-[12px] text-[#FE522A] md:text-[14px] lg:flex",children:F.map((L,Q)=>{let U=(0,m.jsx)("img",{src:L.image.url,alt:L.title,width:L.image.width,height:L.image.height,className:"object-contain"});return L.link?(0,m.jsxs)("a",{className:"flex items-center gap-2",href:L.link,children:[U,(0,m.jsx)("span",{className:"min-w-max",children:L.title})]},L._key):(0,m.jsxs)("div",{className:"flex items-center gap-2",children:[U,(0,m.jsx)("span",{children:L.title})]},L._key||Q)})}),F?.length>0&&(W||xt)&&(0,m.jsx)("div",{className:"relative flex w-full overflow-hidden whitespace-nowrap lg:hidden",children:(0,m.jsxs)("div",{className:"inline-flex text-[12px] text-[#FE522A] will-change-[transform]",ref:k,children:[(0,m.jsx)("div",{className:"marquee-segment flex",children:F.map((L,Q)=>{let U=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("img",{src:L.image.url,alt:L.title}),(0,m.jsx)("span",{children:L.title})]});return L.link?(0,m.jsx)("a",{href:L.link,className:"mx-4 flex items-center gap-2",children:U},`original-${Q}`):(0,m.jsx)("div",{className:"mx-4 flex items-center gap-2",children:U},`original-${Q}`)})}),I.length>0&&(0,m.jsx)("div",{className:"marquee-segment flex",children:I.map((L,Q)=>{let U=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("img",{src:L.image.url,alt:L.title}),(0,m.jsx)("span",{children:L.title})]});return L.link?(0,m.jsx)("a",{href:L.link,className:"mx-4 flex items-center gap-2",children:U},`duplicate-${Q}`):(0,m.jsx)("div",{className:"mx-4 flex items-center gap-2",children:U},`duplicate-${Q}`)})})]})})]})]}),(0,m.jsxs)("div",{className:"content-wrapper !md:items-center !relative z-30 flex-col !items-stretch bg-white lg:flex-row lg:gap-4",children:[(0,m.jsx)("div",{className:_("flex w-full shrink pb-0 lg:w-[65%] lg:pb-0 xl:w-[70%]"),children:(0,m.jsxs)("div",{className:_("flex flex-auto flex-col items-center lg:flex-row lg:py-0 "),children:[(0,m.jsx)("div",{className:"flex",onClick:ke,children:(0,m.jsx)(ot,{to:"/",children:(0,m.jsxs)("div",{className:"hidden flex-col items-center gap-1 lg:flex",children:[(0,m.jsx)(O,{src:M.logo,loading:"eager",alt:"logo",width:164,height:24,className:"h-6 !w-auto p-0.5",objectFit:"contain"}),(0,m.jsx)("span",{className:"w-max text-xs font-bold uppercase leading-[120%] text-neutral-400",children:"Serving you since 2005"})]})})}),(0,m.jsxs)(Oe.Primary,{className:_("font-semibold group mr-[12px] hidden w-fit min-w-max max-w-fit items-center gap-[8px] rounded-[12px] px-[16px] py-[14px] text-left text-[14px] leading-[20px] lg:ml-[16px] lg:flex",{"bg-[#FFE3CF] !text-ORANGE_TWO hover:!text-white group-hover:text-white":$&&typeof $=="boolean","xl:ml-[68px]":Dt.length===0&&!C,"xl:ml-[48px]":!(Dt.length>0&&C)&&(Dt.length>0||C)}),onClick:()=>{At(typeof $=="boolean"?!$:!0),document.dispatchEvent(new Event("click"))},children:[$&&typeof $=="boolean"?(0,m.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("g",{clipPath:"url(#clip0_7955_5775)",children:(0,m.jsx)("path",{d:"M14.9437 4.05637C14.6187 3.73137 14.1312 3.73137 13.8062 4.05637L9.5 8.36262L5.19375 4.05637C4.86875 3.73137 4.38125 3.73137 4.05625 4.05637C3.73125 4.38137 3.73125 4.86887 4.05625 5.19387L8.3625 9.50012L4.05625 13.8064C3.73125 14.1314 3.73125 14.6189 4.05625 14.9439C4.21875 15.1064 4.38125 15.1876 4.625 15.1876C4.86875 15.1876 5.03125 15.1064 5.19375 14.9439L9.5 10.6376L13.8062 14.9439C13.9687 15.1064 14.2125 15.1876 14.375 15.1876C14.5375 15.1876 14.7812 15.1064 14.9437 14.9439C15.2687 14.6189 15.2687 14.1314 14.9437 13.8064L10.6375 9.50012L14.9437 5.19387C15.2687 4.86887 15.2687 4.38137 14.9437 4.05637Z",fill:"#FE7555",className:"group-hover:fill-current"})}),(0,m.jsx)("defs",{children:(0,m.jsx)("clipPath",{id:"clip0_7955_5775",children:(0,m.jsx)("rect",{width:"13",height:"13",fill:"white",transform:"translate(3 3)"})})})]}):(0,m.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5.33333C2 4.16656 2 3.58317 2.22707 3.13752C2.42681 2.74552 2.74552 2.42681 3.13752 2.22707C3.58317 2 4.16656 2 5.33333 2L6.17829 2C7.34507 2 7.92846 2 8.37411 2.22707C8.76611 2.42681 9.08482 2.74552 9.28456 3.13752C9.51163 3.58317 9.51163 4.16656 9.51163 5.33334L9.51163 6.1783C9.51163 7.34507 9.51163 7.92846 9.28456 8.37411C9.08482 8.76611 8.76611 9.08482 8.37411 9.28456C7.92846 9.51163 7.34507 9.51163 6.17829 9.51163L5.33333 9.51163C4.16656 9.51163 3.58317 9.51163 3.13752 9.28456C2.74551 9.08482 2.4268 8.76611 2.22707 8.37411C2 7.92846 2 7.34507 2 6.17829L2 5.33333ZM2 14.8217C2 13.6549 2 13.0715 2.22707 12.6259C2.4268 12.2339 2.74551 11.9152 3.13752 11.7154C3.58317 11.4884 4.16656 11.4884 5.33333 11.4884L6.17829 11.4884C7.34507 11.4884 7.92846 11.4884 8.37411 11.7154C8.76611 11.9152 9.08482 12.2339 9.28456 12.6259C9.51163 13.0715 9.51163 13.6549 9.51163 14.8217L9.51163 15.6667C9.51163 16.8334 9.51163 17.4168 9.28456 17.8625C9.08482 18.2545 8.76611 18.5732 8.37411 18.7729C7.92846 19 7.34507 19 6.17829 19L5.33333 19C4.16655 19 3.58317 19 3.13752 18.7729C2.74551 18.5732 2.4268 18.2545 2.22707 17.8625C2 17.4168 2 16.8334 2 15.6667L2 14.8217ZM19 14.8217C19 13.6549 19 13.0715 18.7729 12.6259C18.5732 12.2339 18.2545 11.9152 17.8625 11.7154C17.4168 11.4884 16.8334 11.4884 15.6667 11.4884L14.8217 11.4884C13.6549 11.4884 13.0715 11.4884 12.6259 11.7154C12.2339 11.9152 11.9152 12.2339 11.7154 12.6259C11.4884 13.0715 11.4884 13.6549 11.4884 14.8217L11.4884 15.6667C11.4884 16.8334 11.4884 17.4168 11.7154 17.8625C11.9152 18.2545 12.2339 18.5732 12.6259 18.7729C13.0715 19 13.6549 19 14.8217 19L15.6667 19C16.8334 19 17.4168 19 17.8625 18.7729C18.2545 18.5732 18.5732 18.2545 18.7729 17.8625C19 17.4168 19 16.8334 19 15.6667L19 14.8217Z",fill:"white"}),(0,m.jsx)("path",{d:"M11.5927 2.40727L11.357 2.64298C10.532 3.46801 10.1195 3.88053 9.96491 4.35621C9.82896 4.77464 9.82896 5.22536 9.96491 5.64379C10.1195 6.11947 10.532 6.53199 11.357 7.35702L11.5927 7.59272C12.4178 8.41776 12.8303 8.83028 13.306 8.98484C13.7244 9.12079 14.1751 9.12079 14.5935 8.98484C15.0692 8.83028 15.4817 8.41776 16.3068 7.59272L16.5425 7.35702C17.3675 6.53199 17.78 6.11947 17.9346 5.64378C18.0705 5.22536 18.0705 4.77464 17.9346 4.35621C17.78 3.88053 17.3675 3.46801 16.5425 2.64298L16.3068 2.40727C15.4817 1.58224 15.0692 1.16972 14.5935 1.01516C14.1751 0.879209 13.7244 0.879209 13.306 1.01516C12.8303 1.16972 12.4178 1.58224 11.5927 2.40727Z",fill:"white"})]}),"Shop All"]}),(0,m.jsxs)("div",{className:_("mt-2 flex w-full justify-between py-[7px] pb-3 lg:hidden lg:py-0"),children:[(0,m.jsx)("button",{onClick:po,className:_(Dt.length>0||C?"mr-0 flex flex-shrink-0 items-center":"mr-11"),children:ct?(0,m.jsx)(O,{className:"!w-[24px]",src:M.menuMobile,loading:"eager",width:24,height:24,alt:"menu"}):(0,m.jsx)(O,{src:M.close,loading:"eager",width:18,height:18,alt:"close",className:"ml-1 !w-[18px]"})}),(0,m.jsx)("div",{className:"contents",onClick:ke,children:(0,m.jsx)(ot,{to:"/",className:"flex items-center",children:(0,m.jsxs)("div",{className:"flex aspect-[164/36] flex-col items-center justify-between gap-1 px-1.5 smm:px-0",children:[(0,m.jsx)(O,{src:M.logo,loading:"eager",width:164,height:24,alt:"logo",objectFit:"contain"}),(0,m.jsx)("span",{className:"text-[8px] font-bold uppercase text-neutral-400 sm:text-[10px] smm:text-xs",children:"Serving you since 2005"})]})})}),(0,m.jsx)("div",{className:"contents lg:hidden",children:(0,m.jsx)(de,{})})]}),(ct||oe)&&(0,m.jsx)(sr,{isScrolled:l,showMenu:u,ref:H,className:ct&&!l||oe?"min-h-[64px] lg:min-h-0":"",handleShowMenu:L=>At(L),openMenu:!!$,children:(0,m.jsx)("div",{className:_("z-25",ct&&!l||oe?"flex w-full flex-col bg-white lg:static lg:contents":"invisible h-0 w-full lg:visible lg:static lg:h-12"),children:(0,m.jsx)(Er,{})})})]})}),(0,m.jsxs)("div",{className:_(`my-3 hidden items-center justify-between ${zt} lg:flex lg:justify-center`,ct?"":"my-0"),children:[ct&&(0,m.jsx)(br,{content:St}),(0,m.jsx)("div",{className:"hidden lg:contents",children:(0,m.jsx)(de,{})})]})]}),(0,m.jsx)("div",{ref:a,className:_("absolute z-20 flex w-full translate-y-[100%] justify-center bg-white"," duration-[200ms] ease-in-out",u?"bottom-[1px]":" bottom-[96px]"),style:{transitionProperty:"bottom"},children:(0,m.jsxs)("div",{className:"content-wrapper header-main-menu !static flex flex-nowrap",children:[(0,m.jsx)("div",{className:"mb-6 mt-3 hidden w-full flex-wrap lg:flex",children:t&&(0,m.jsx)(vr,{headerData:t,openMenu:$,setOpenMenu:At,headerRef:a})}),X&&!W&&!xt&&(0,m.jsx)("div",{className:"relative mb-8 mt-3 hidden pl-2 lg:block",children:(0,m.jsx)(_t,{})})]})})]})}),(0,m.jsx)("div",{className:"invisible w-screen lg:h-22"}),ct&&K?.isActive&&!!K?.items?.length&&(0,m.jsx)(Xe,{promoBaner:K})]})}var Jt=s(A());var Tt=s(f());function Ir(){let t=J(),r=Ft();return(0,Tt.jsxs)(r.Form,{action:"/api/preview",method:"post",className:_("sticky bottom-0 z-40 flex items-center justify-center gap-4 px-4 py-2","bg-offBlack text-white","md:px-8"),children:[(0,Tt.jsx)("input",{type:"hidden",name:"slug",value:t.pathname}),(0,Tt.jsx)("small",{className:"italic opacity-80",children:"While preview mode is enabled, any changes made in the Studio will be streamed to your browser."}),(0,Tt.jsx)("button",{disabled:r.state==="submitting",className:_("flex h-[2.5rem] shrink-0 items-center justify-center rounded-full border border-white border-opacity-20 bg-offBlack p-4 text-sm font-bold duration-200 ease-out","hover:bg-black","disabled:bg-opacity-100 disabled:opacity-20"),children:"Exit Preview Mode"})]})}var zr=s(A());var lt=s(f()),Sr=()=>{let{openDrawer:t,closeDrawer:r,isOpen:e}=nr(),{type:o}=et(),{quoteSettings:a}=Wt(),i=a?.shop;return(0,zr.useEffect)(()=>{let d=n=>{n.data==="comprendo_chat_ended"&&r()};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)},[]),!a||!a.show_chatbot?null:(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(xr,{onClose:r,open:e,title:"Chat",shop:i}),(0,lt.jsx)("div",{className:"\u0440-0 sticky bottom-8 z-[1000] h-0",children:o===null&&(0,lt.jsx)("div",{className:"relative flex translate-y-[-100%] justify-end gap-6 pr-6",children:(0,lt.jsxs)("button",{onClick:t,className:"absolute flex h-[43px] w-[138px] translate-y-[-100%] cursor-pointer items-center justify-center gap-2 rounded-[32px] border-2 border-transparent bg-ORANGE_ONE p-3 font-[600] text-white",children:[(0,lt.jsx)(O,{src:M.chat2,alt:"chat",width:28,height:28}),"Live Chat"]})})})]})};var st=s(A());var c=s(f()),Ar=({bestsellers:t,selected:r})=>t?.length?(0,c.jsx)("ul",{className:"mt-5",children:t.map((e,o)=>{let a=e.product,i=e._type;if(i==="reference")return(0,c.jsx)("li",{className:"mb-8",children:(0,c.jsxs)(ot,{className:"word-wrap flex w-full flex-col gap-3 rounded-lg",to:a.slug||"/",tabIndex:r?0:-1,children:[(0,c.jsx)("div",{className:"relative flex w-full flex-col gap-4",children:(0,c.jsx)(O,{src:a.image||"",alt:a.title,sizes:"250px",className:"flex w-[300px] min-w-full rounded-lg border-2 border-GREY_FOUR bg-white object-contain hover:cursor-pointer md:max-h-[174px]"})}),(0,c.jsx)("span",{className:"text-base font-semibold leading-5 text-black",children:a.title})]})},a.id||`${a.slug}-${a.title}-${o}`);if(i==="internalLinkWithImage")return(0,c.jsx)("li",{children:(0,c.jsxs)(ot,{className:"word-wrap flex flex-col gap-3 py-3",to:e.link?.slug||"/",tabIndex:r?"0":"-1",children:[(0,c.jsx)("div",{className:"relative flex w-full flex-col gap-4",children:(0,c.jsx)(O,{src:e?.image.url??"https://cdn.shopify.com/s/files/1/0012/8440/7394/files/placegolder.svg?v=1701691776",alt:e.link.title,sizes:"250px",className:"flex w-[300px] min-w-full rounded-lg border-2 border-GREY_FOUR bg-white object-contain hover:cursor-pointer md:max-h-[174px]"})}),(0,c.jsx)("span",{className:"text-base font-semibold leading-5 whitespace-pre-line break-words font-inter text-black",children:e.link.title})]})},e.link?.slug+e.link?.title);if(i==="externalLinkWithImage")return(0,c.jsxs)("a",{href:e.link.url,className:"flex flex-col items-center gap-3 py-3 text-sm font-medium leading-[24px] text-[#010101]",target:e.link.newWindow?"_blank":"_self",rel:"noreferrer",children:[(0,c.jsx)("div",{className:"relative flex w-full flex-col gap-4",children:(0,c.jsx)(O,{src:e?.image.url??"https://cdn.shopify.com/s/files/1/0012/8440/7394/files/placegolder.svg?v=1701691776",alt:e.link.title,sizes:"250px",className:"flex w-[300px] min-w-full rounded-lg border-2 border-GREY_FOUR bg-white object-contain hover:cursor-pointer md:max-h-[174px]"})}),(0,c.jsx)("span",{className:"text-base font-semibold leading-5 w-full text-left text-md text-black",children:e.link.title})]},e.link._key+e.link.url)})}):null,Zo=({promotedColors:t,selected:r})=>!Array.isArray(t)||t.length===0?null:(0,c.jsxs)("div",{className:"flex-grow-0 basis-2/5",children:[(0,c.jsx)(tt.P1,{className:"leading-7 mb-6 mt-3 font-inter text-xl font-bold capitalize text-BLACK",children:"Colors"}),(0,c.jsx)("ul",{className:"flex flex-col flex-nowrap gap-6",children:t.map(e=>(0,c.jsx)("li",{children:(0,c.jsxs)(ot,{className:"flex items-center gap-3 rounded-lg",to:e.link||"/",tabIndex:r?0:-1,children:[!!e.color&&!e.colorImage?.url&&(0,c.jsx)("span",{className:"block h-5 w-5 min-w-[20px] rounded-full outline outline-1 outline-[#e7e7e7]",style:{backgroundColor:e.color}}),!!e.colorImage?.url&&!e.color&&(0,c.jsx)(O,{src:e.colorImage?.url,width:20,height:20,className:"flex h-5 w-5 flex-shrink-0 flex-grow-0 rounded-full outline outline-1 outline-[#e7e7e7]"}),(0,c.jsx)("span",{className:"text-base font-semibold leading-5 text-BLACK",children:e.title})]})},`${e.link}-${e.title}`))})]}),Uo=({promotedCollections:t,selected:r})=>!Array.isArray(t)||t.length===0?null:(0,c.jsxs)("div",{className:"flex-grow-0 basis-3/5",children:[(0,c.jsx)(tt.P1,{className:"leading-7 mb-6 mt-3 font-inter text-xl font-bold capitalize text-BLACK",children:"Collections"}),(0,c.jsx)("ul",{className:"flex flex-col flex-nowrap gap-6",children:t.map((e,o)=>(0,c.jsx)("li",{children:(0,c.jsx)(ot,{className:"flex items-center gap-3 rounded-lg",to:e.link||"/",tabIndex:r?0:-1,children:(0,c.jsx)("span",{className:"text-base font-semibold leading-5 text-BLACK",children:e.title})})},`${e.link}-${e.title}-${o}`))})]}),Mr=()=>{let t=gt("root"),{type:r,changeType:e}=et(),[o]=R(),i=o.data?.layout?.info,d=[];t?.headerData&&Array.isArray(t.headerData.headerData)&&(d=t.headerData.headerData);let n=d,[l,w]=(0,st.useState)([]),[u,x]=(0,st.useState)(n),[h,g]=(0,st.useState)("Shop all"),[C,k]=(0,st.useState)([]),[T,N]=(0,st.useState)(null),I=Ht();if((0,st.useEffect)(()=>{n.length>0&&!T&&(N(n[0]),g(n[0].sectionTitle.mainTitle))},[n]),(0,st.useEffect)(()=>{l.length===0&&N(null)},[l]),(0,st.useEffect)(()=>{r==="main"&&(w([]),x(n),g("Shop all"),k([]),N(n[0]||null))},[r,n]),!d||d.length===0)return null;let S=Array.isArray(t.headerData.bestsellers)?t.headerData.bestsellers:[],H=y=>{let Y=[],F="",rt=[],K=null;y.categories&&Array.isArray(y.categories)?(Y=y.categories,F=y.sectionTitle?.mainTitle||"",rt=y.bestsellers||[],K=y):y.subcategories&&Array.isArray(y.subcategories)&&(Y=y.subcategories,F=y.subcategoryTitle?.mainTitle||"",rt=y.bestsellers||[],K=y),Y.length>0?(w(St=>[...St,{menu:u,title:h,bestsellers:C,section:T}]),x(Y),g(F),k(rt),N(K)):y.slug?(I(y.slug),e(null)):y.sectionTitle?.slug?window.location.href=y.sectionTitle.slug:y.subcategoryTitle?.slug?window.location.href=y.subcategoryTitle.slug:y.link&&(window.location.href=y.link)},X=()=>{w(y=>{let Y=[...y],F=Y.pop();return F?(x(F.menu),g(F.title),k(F.bestsellers),N(F.section),Y):(x(n),g("Shop all"),k([]),N(n[0]||null),[])})},xt=(l.length===0&&S.length>0||l.length>0&&C.length===0&&S.length>0)&&l.length<2;if(r!=="main")return null;let zt=l.length>1?l[l.length-1].title:"Shop All",$=()=>{let y=T?.sectionTitle?.slug||T?.subcategoryTitle?.slug||"";h!=="Shop all"&&y&&(I(y),e(null))};return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"mx-4 flex flex-nowrap items-center gap-4",children:[(0,c.jsx)("div",{className:"contents",onClick:()=>e(null),children:(0,c.jsx)(Xt,{})}),(0,c.jsx)(_t,{})]}),(0,c.jsxs)("div",{className:"w-100 mx-4 mb-4 mt-4 flex flex-col gap-5 rounded-[12px] border border-GREY_THREE p-[20px_16px]",children:[l.length>0&&(0,c.jsxs)("div",{onClick:X,className:"flex items-center",children:[(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5897 6.41034C13.9793 6.02077 14.6109 6.02077 15.0005 6.41034C15.3897 6.79961 15.3901 7.43064 15.0012 7.82034L11.1251 11.705L15.0012 15.5896C15.3901 15.9793 15.3897 16.6103 15.0005 16.9996C14.6109 17.3891 13.9793 17.3891 13.5897 16.9996L8.29508 11.705L13.5897 6.41034Z",fill:"black"}),(0,c.jsx)("mask",{id:"mask0_7955_9192",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"8",y:"6",width:"8",height:"12",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5897 6.41034C13.9793 6.02077 14.6109 6.02077 15.0005 6.41034C15.3897 6.79961 15.3901 7.43064 15.0012 7.82034L11.1251 11.705L15.0012 15.5896C15.3901 15.9793 15.3897 16.6103 15.0005 16.9996C14.6109 17.3891 13.9793 17.3891 13.5897 16.9996L8.29508 11.705L13.5897 6.41034Z",fill:"white"})}),(0,c.jsx)("g",{mask:"url(#mask0_7955_9192)",children:(0,c.jsx)("rect",{x:"24",width:"24",height:"24",transform:"rotate(90 24 0)",fill:"black"})})]}),(0,c.jsx)(tt.P1,{className:"ml-2",children:zt})]}),(0,c.jsx)("div",{onClick:$,className:"flex items-start justify-start",children:(0,c.jsx)(tt.P1,{className:"leading-7 font-inter text-xl font-bold capitalize text-BLACK",children:h})}),Array.isArray(u)&&u.length>0?(0,c.jsx)("div",{className:"flex flex-col gap-6",children:u.map((y,Y)=>{let F=Array.isArray(y.categories)||Array.isArray(y.subcategories),rt=y.customColor?y.customColor.hex:"#000",K=y.sectionTitle?.title||y.sectionTitle?.mainTitle||y.subcategoryTitle?.title||y.subcategoryTitle?.mainTitle||y.mainTitle||y.title||"Untitled",St=y.sectionTitle?.slug||y.subcategoryTitle?.slug||`menu-item-${Y}`;return(0,c.jsx)("div",{children:(0,c.jsxs)("button",{className:"text-base leading-5 flex h-[20px] w-full items-center justify-between border-GREY_THREE",onClick:()=>H(y),children:[(0,c.jsxs)("span",{className:"flex items-center gap-2",children:[y.vector&&(0,c.jsx)("img",{src:y.vector,alt:"icon",width:20}),(0,c.jsx)("p",{className:"text-left font-bold",style:{color:rt},children:K})]}),F&&(0,c.jsx)("div",{className:"flex items-center",children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4103 17.5897C10.0207 17.9792 9.38911 17.9792 8.99954 17.5897C8.61026 17.2004 8.60992 16.5694 8.99877 16.1797L12.8749 12.295L8.99877 8.41043C8.60992 8.02073 8.61026 7.3897 8.99954 7.00043C9.38911 6.61086 10.0207 6.61086 10.4103 7.00043L15.7049 12.295L10.4103 17.5897Z",fill:"black"}),(0,c.jsx)("mask",{id:"mask0_7955_8975",maskType:"luminance",maskUnits:"userSpaceOnUse",x:"8",y:"6",width:"8",height:"12",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4103 17.5897C10.0207 17.9792 9.38911 17.9792 8.99954 17.5897C8.61026 17.2004 8.60992 16.5694 8.99877 16.1797L12.8749 12.295L8.99877 8.41043C8.60992 8.02073 8.61026 7.3897 8.99954 7.00043C9.38911 6.61086 10.0207 6.61086 10.4103 7.00043L15.7049 12.295L10.4103 17.5897Z",fill:"white"})}),(0,c.jsx)("g",{mask:"url(#mask0_7955_8975)",children:(0,c.jsx)("rect",{y:"24",width:"24",height:"24",transform:"rotate(-90 0 24)",fill:"black"})})]})})]})},`${St}-${Y}`)})}):(0,c.jsx)("p",{children:"Menu error"}),T&&(Array.isArray(T.promotedColors)||Array.isArray(T.promotedCollection))&&(0,c.jsxs)("div",{className:"flex gap-6",children:[Array.isArray(T.promotedColors)&&(0,c.jsx)(Zo,{promotedColors:T.promotedColors,selected:!0}),Array.isArray(T.promotedCollection)&&(0,c.jsx)(Uo,{promotedCollections:T.promotedCollection,selected:!0})]})]}),l.length===0&&(0,c.jsxs)("div",{className:"mx-4 mb-2 flex items-center justify-center gap-2.5 rounded-lg border border-GREY_THREE px-3.5 py-2 lg:hidden",children:[(0,c.jsxs)("svg",{width:"28",height:"29",viewBox:"0 0 28 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M10.5 1.66663H0V3.99996H10.5V1.66663Z",fill:"black"}),(0,c.jsx)("path",{d:"M10.5007 6.33325H2.33398V8.66659H10.5007V6.33325Z",fill:"black"}),(0,c.jsx)("path",{d:"M10.4993 11H4.66602V13.3333H10.4993V11Z",fill:"black"}),(0,c.jsx)("path",{d:"M10.5 15.6666H7V18H10.5V15.6666Z",fill:"black"}),(0,c.jsx)("path",{d:"M27.3555 13.4558L23.1683 11.3628L22.1323 7.21759C22.0028 6.69725 21.5362 6.33325 21.0007 6.33325H19.1048H12.834C12.834 6.33325 12.834 20.8594 12.834 21.4999C12.834 22.1404 12.8935 22.6666 12.8935 22.6666C13.1875 25.2846 15.389 27.3333 18.084 27.3333C20.779 27.3333 22.9805 25.2846 23.2745 22.6666H26.834C27.478 22.6666 28.0007 22.1439 28.0007 21.4999V14.4999C28.0007 14.0578 27.751 13.6541 27.3555 13.4558ZM18.084 24.9999C16.4763 24.9999 15.1673 23.6921 15.1673 22.0833C15.1673 20.4744 16.4763 19.1666 18.084 19.1666C19.6917 19.1666 21.0007 20.4744 21.0007 22.0833C21.0007 23.6921 19.6917 24.9999 18.084 24.9999ZM15.1673 12.1666V8.66659H20.2353L21.0007 12.1666H15.1673Z",fill:"black"})]}),(0,c.jsxs)("div",{className:" flex flex-col gap-1",children:[(0,c.jsx)(tt.P2,{className:"!text-[12px] font-[600]",children:i.title}),(0,c.jsx)(tt.P2,{className:"!text-[12px] font-[400] text-GREY_TWO",children:i.description})]})]}),(0,c.jsx)("div",{children:Array.isArray(C)&&C.length>0&&l.length<2?(0,c.jsxs)("div",{className:"mb-6 ml-4 mr-4 mt-6",children:[(0,c.jsx)("h2",{className:"text-xl font-bold text-BLACK",children:"Bestsellers"}),(0,c.jsx)(Ar,{bestsellers:C,selected:!0})]}):xt&&(0,c.jsxs)("div",{className:"mb-6 ml-4 mr-4 mt-6",children:[(0,c.jsx)("h2",{className:"text-xl font-bold text-BLACK",children:"Bestsellers"}),(0,c.jsx)(Ar,{bestsellers:S,selected:!0})]})})]})};var Nt=s(f()),we=({children:t})=>{let{type:r}=et();return r==="main"||r==="search"||r==="search filters"?(0,Nt.jsx)(Nt.Fragment,{}):(0,Nt.jsx)(Nt.Fragment,{children:t})};var P=s(f()),ue=(0,Jt.memo)(({backgroundColor:t,children:r,headerData:e})=>{let o=Boolean(Se()),a=(0,Jt.useRef)();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"absolute left-0 top-0",children:(0,P.jsx)("a",{href:"#mainContent",className:"sr-only p-4 focus:not-sr-only focus:block",children:"Skip to content"})}),(0,P.jsx)(We,{children:(0,P.jsx)(pr,{children:(0,P.jsx)(Ze,{children:(0,P.jsx)(Pe,{children:(0,P.jsxs)(Ge,{children:[(0,P.jsxs)("div",{className:"flex max-w-full flex-col",style:{background:t},children:[(0,P.jsx)(fe,{headerData:e,overlayRef:a}),(0,P.jsx)(Mr,{}),(0,P.jsx)(we,{children:(0,P.jsxs)("main",{className:"relative flex w-full grow flex-col",style:{flex:"1 1 auto"},id:"mainContent",role:"main",children:[(0,P.jsx)("div",{className:"absolute inset-0 z-[1001] hidden bg-black bg-opacity-50",ref:a}),r]})})]}),(0,P.jsx)(we,{children:(0,P.jsx)(ge,{})}),(0,P.jsx)(Sr,{})]})})})})}),o?(0,P.jsx)(Ir,{}):(0,P.jsx)(P.Fragment,{})]})});var Rr=s(A());var te=s(f()),Tr=()=>{let t=Gt(),r=ht();return t.error?(0,te.jsx)("div",{className:"flex w-screen bg-black py-2",children:(0,te.jsx)("div",{className:"content-wrapper px-4 text-center text-[12px] leading-[140%] text-[#FE522A] md:text-[14px]",children:"Unfortunately, at the moment we are experiencing temporary issues with search service and product filtering. We are already solving this problem"})}):null},Nr=({children:t})=>{let[r]=R(),e=r.data?.envs,o=(0,Rr.useCallback)(Yt(e?.algoliaProjId,e?.algoliaSearchKey,{requester:Zt()}),[]);return(0,te.jsx)($e,{searchClient:o,indexName:e?.algoliaIndex,children:t})};var ut=s(f()),Pr=()=>{let[t]=R(),{algoliaIndex:r}=t.data.envs,{type:e}=et(),o=e==="search filters",a=t?.data?.layout?.algolia;return(0,ut.jsxs)("div",{className:_("flex w-full flex-col"),children:[(0,ut.jsxs)("div",{className:"mb-7 flex w-full flex-col justify-between gap-3",children:[!o&&(0,ut.jsx)(Ke,{fullWidth:!0,prefix:r}),(0,ut.jsx)(Je,{indexName:r,algoliaItems:a,showVariantsQuantity:!1,showSorting:!1})]}),!o&&(0,ut.jsx)(Qe,{})]})};var Et=s(f());function Or(){return(0,Et.jsx)("div",{className:"max-w-screen flex min-h-screen flex-col items-center",children:(0,Et.jsxs)("main",{className:"leading-6 relative inline-flex grow items-center gap-2 px-4 py-2 text-sm font-[600]",role:"main",children:[(0,Et.jsx)(je,{width:"27",height:"27"}),(0,Et.jsx)("span",{children:"Loading preview..."})]})})}var dt=s(A());var It=s(f()),Dr=()=>{let{query:t,refine:r}=ht(),[e,o]=(0,dt.useState)([]),a=(0,dt.useRef)(null),[i,d]=(0,dt.useState)(!1),n=gt("root").envs,l=(0,dt.useCallback)(Yt(n.algoliaProjId,n.algoliaSearchKey,{requester:Zt()}).initIndex("products_query_suggestions"),[]),w=x=>{r(x),d(!1)},u=()=>{d(!1)};return(0,dt.useEffect)(()=>{let x=setTimeout(async()=>{if(t&&!e.some(h=>h.query===t)){let h=await l.search(t,{responseFields:["hits"],hitsPerPage:6});o(h.hits),h.hits.length&&d(!0)}},400);return()=>clearTimeout(x)},[t]),(0,dt.useEffect)(()=>{(e.length<2||!t)&&d(!1)},[e,t]),i?(0,It.jsx)(De,{excludedRef:a,onOutsideClick:u,children:(0,It.jsxs)("div",{ref:a,className:"relative flex flex-col gap-1 rounded-b-lg border-2 border-GREY_TWO bg-white pb-2",children:[(0,It.jsx)("style",{children:` .algolia-input input { border-radius: 12px 12px 0 0 !important; border-bottom: white; border-color: var(--GREY_TWO) !important; } input:focus { outline: none !important; } `}),e.length>1&&e.map(x=>(0,It.jsx)("button",{className:"relative -top-[3px] inline bg-white py-1 pl-10 text-start first:pt-0 last:rounded-b-lg",onClick:()=>w(x.query),dangerouslySetInnerHTML:{__html:x._highlightResult.query.value}},x.objectID))]})}):null};var V=s(f()),Fr=()=>{let{query:t,clear:r}=ht(),{pathname:e,...o}=J(),a=gt("root").envs.shopifyShop,{specialFilters:i,queryHook:d,showMobileSearchMenu:n}=Vt();return(0,Hr.useEffect)(()=>{t&&r()},[e]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ve,{clickAnalytics:!0,filters:i?`tags: ${i.tags.map(l=>`"${l}"`)} AND NOT tags: ${i.notTags.map(l=>`"${l}"`)}`:"NOT tags: 'OPTIONS_HIDDEN_PRODUCT'"}),(0,V.jsxs)("div",{className:_("relative mb-4 flex w-full flex-grow lg:mb-0 lg:w-auto lg:max-w-[617px]"),style:{height:"auto"},children:[(0,V.jsx)(wr,{loadingIconComponent:()=>(0,V.jsx)(V.Fragment,{}),resetIconComponent:()=>(0,V.jsx)(V.Fragment,{}),submitIconComponent:Ut,className:_("algolia-input","!rounded-b-[0px]"),placeholder:a.includes("australia")?"Search over 23600 products":"Search",queryHook:d}),(0,V.jsx)("div",{className:"absolute top-12 z-[9999] w-full",children:(0,V.jsx)(Dr,{})}),t&&(0,V.jsx)(O,{src:M.close,width:24,className:"absolute right-4 top-[50%] h-6 w-6 -translate-y-[50%] bg-white p-1",onClick:r})]}),n&&(0,V.jsx)(Pr,{})]})};var bt=s(A());var D=s(f()),jr=()=>{let{queryHook:t,showMobileSearchMenu:r,type:e,changeType:o}=Vt(),a=dr(),{filters:i,clearFilters:d,changeCursor:n,changeSortKey:l}=a,w=a.changeQuery,u=e==="search filters",[x,h]=(0,bt.useState)(""),{pathname:g}=J(),C=Object.values(i).flat().length,[k,T]=(0,bt.useState)({}),N=JSON.stringify(k)!==JSON.stringify(i),I=Ue(),S=I?.data?.searchResults?.results?.search,H=S?.pageInfo,X=I?.data.facets?.search?.productFilters,W=S?Ie(S):[],[xt]=R(),zt=xt.data.envs.algoliaIndex;(0,bt.useEffect)(()=>{x&&h("")},[g]),(0,bt.useEffect)(()=>(w(x),n(null),l("RELEVANCE"),()=>w("")),[x]),(0,bt.useEffect)(()=>{e==="search filters"&&T(i)},[e]);let $=()=>{d(),n(null)},y=()=>{o("search")};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(er,{method:"GET",className:"relative mb-5 flex w-full flex-grow lg:mb-0 lg:w-auto lg:max-w-[617px]",children:({fetchResults:Y,inputRef:F})=>(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(He.TextInput,{onChange:rt=>{let{value:K}=rt.target;h(K),t(K,Y)},className:"algolia-input h-12 rounded-lg pl-10 placeholder:!text-[14px] placeholder:!font-[600] placeholder:!leading-[140%]",name:"q",placeholder:"Search...",ref:F,type:"search",value:x}),(0,D.jsx)("button",{className:"absolute left-4 top-[50%]",type:"submit",children:(0,D.jsx)(Ut,{})})]})}),r&&(0,D.jsxs)("div",{className:"relative flex h-[calc(100vh-148px)] w-full flex-grow flex-col overflow-auto",children:[(0,D.jsxs)("div",{className:"flex w-full flex-col",children:[!u&&(0,D.jsx)(or,{context:a,quantity:C,removeFilters:$,changeType:()=>o("search filters")}),(0,D.jsx)("div",{className:_(u?"contents":"invisible h-0"),children:(0,D.jsx)(ar,{context:a,facets:X})}),I?.state!=="idle"?"":(0,D.jsxs)(D.Fragment,{children:[!u&&!!W.length&&(0,D.jsx)(rr,{context:a,products:W,pageInfo:H}),!u&&!W.length&&(0,D.jsx)("div",{className:"flex w-full flex-grow items-center justify-center",children:(0,D.jsx)(tt.P2,{children:"Looks like there is no results..."})})]})]}),u&&(0,D.jsx)(ir,{prefix:zt,clearRefinements:()=>{$(),o("search")},canRefine:!C&&N||!!C,haveNewRefinements:N||!C&&N,handleApplyChanges:y})]})]})};var yt=s(f()),Er=(0,Br.memo)(()=>{let{error:t}=Gt();return(0,yt.jsxs)(yt.Fragment,{children:[t&&(0,yt.jsx)(jr,{}),!t&&(0,yt.jsx)(Fr,{})]})});var vt=s(f()),Vo=[{href:"https://www.medshop.com.nz",hreflang:"en-nz"},{href:"https://www.medshop.com.ph",hreflang:"en-ph"},{href:"https://www.medshop.com.sg",hreflang:"en-sg"},{href:"https://www.medshop.com.au",hreflang:"en-au"},{href:"https://www.medshop.com.au",hreflang:"x-default"},{href:"https://www.medshop.com.my",hreflang:"en-my"}],Wr=()=>{let[t]=R(),r=t.data.url,o=new URL(r).pathname;return o.includes("/collections/")||o.includes("/products/")?(0,vt.jsx)(vt.Fragment,{}):(0,vt.jsx)(vt.Fragment,{children:Vo.map((a,i)=>(0,vt.jsx)("link",{rel:"alternate",href:`${a.href}${o}`,hrefLang:a.hreflang},i))})};var ee=s(A());var Yr=(0,ee.createContext)(void 0),Wn=Yr.Provider,be=()=>(0,ee.useContext)(Yr);var Gr="https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_assets/root-J4KLMXIZ.css";var Zr="https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_assets/tailwind-6UTWQYVP.css";var Ur=[{href:"https://www.medshop.nz",hreflang:"en-NZ",verificationKey:"97I0Z7ZSOtMTUP2gVIxq0eTxfpVFJKXlRrDWuiIdDlY"},{href:"https://www.medshop.com.ph",hreflang:"en-PH",verificationKey:"vs2ukFYPuN5BQClOsgQJNBvuKyDCvTgdCKBI-Hnc860"},{href:"https://www.medshop.com.sg",hreflang:"en-SG",verificationKey:"2ygdTfQU0FfFXJj2BcWhYY9kDD5pqDN7dvcmSQWz_DI"},{href:"https://www.medshop.com.au",hreflang:"en-AU",verificationKey:"216Yqmh85vTwj_ogl7QlR1mcVEDuYqj096Bvcv124Fc"},{href:"https://www.medshop.com.my",hreflang:"en-MY",verificationKey:"cvKUBGt6hv59Xhs-enHWQgIyBDjL7AG5yMn_VTyyF_E"}];var Vr=["https://cdn.shopify.com","https://fonts.googleapis.com","https://www.googletagmanager.com","https://www.google-analytics.com","https://connect.facebook.net","https://www.facebook.com/"];var $r=s(A()),qr=({environment:t,bingID:r})=>((0,$r.useEffect)(()=>{if(t!=="development"&&r){let e=document.createElement("script");return e.innerHTML=` (function (w, d, t, r, u) { var f, n, i; (w[u] = w[u] || []), (f = function () { var o = { ti: ${r} }; (o.q = w[u]), (w[u] = new UET(o)), w[u].push('pageLoad'); }), (n = d.createElement(t)), (n.src = r), (n.async = 1), (n.onload = n.onreadystatechange = function () { var s = this.readyState; (s && s !== 'loaded' && s !== 'complete') || (f(), (n.onload = n.onreadystatechange = null)); }), (i = d.getElementsByTagName(t)[0]), i.parentNode.insertBefore(n, i); })(window, document, 'script', '//bat.bing.com/bat.js', 'uetq');`,document.head.appendChild(e),()=>{document.head.removeChild(e)}}},[]),null);var Xr=s(A()),ye=s(f()),Kr=({environment:t,facebookID:r})=>((0,Xr.useEffect)(()=>{if(t!=="development"&&r){let e=document.createElement("script");return e.innerHTML=`!(function (f, b, e, v, n, t, s) { if (f.fbq) return; n = f.fbq = function () { n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments); }; if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0; t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s); })( window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js', ); fbq('init', ${r}); fbq('track', 'PageView');`,document.head.appendChild(e),()=>{document.head.removeChild(e)}}},[]),(0,ye.jsx)("noscript",{children:(0,ye.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:`https://www.facebook.com/tr?id=${r}&ev=PageView&noscript=1`})}));var Qr=s(A()),Pt=s(f());function Jr(t){let{environment:r,gtmTrackingId:e,googleAnalyticsId:o}=t;return(0,Qr.useEffect)(()=>{if(r!=="development"&&e?.length){let a=document.createElement("script");return a.innerHTML=` (function(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '${e}');`,document.head.appendChild(a),()=>{document.head.removeChild(a)}}},[]),r==="development"||!e?null:(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '${o}');`}})})}var to=s(A()),ro=s(f()),eo=()=>{let{url:t}=gt("root"),r=R(),e=J(),o=Ht(),a=r[r.length-1]?.data,i=a?.canonicalLinkParams?Object.fromEntries(a?.canonicalLinkParams):{},d=new URLSearchParams(i),n=new URL(t),l=`${n.protocol}//${n.host}${n.pathname}${d.size>=1?"?"+d.toString():""}`;return l.endsWith("/")&&(l=l.substring(0,l.length-1)),(0,to.useEffect)(()=>{e.pathname!=="/"&&e.pathname.endsWith("/")&&d.size===0&&o(e.pathname.substring(0,e.pathname.length-1))},[e.pathname]),(0,ro.jsx)("link",{rel:"canonical",href:l})};var re=s(f()),ao=s(A());function oo(){let t=R().flatMap(r=>{let e=r?.handle?.dynamicLinks;return typeof e!="function"?[]:e({data:r?.data})});return(0,re.jsx)(re.Fragment,{children:t.map(r=>(0,ao.createElement)("link",{...r,key:r.integrity||JSON.stringify(r)}))})}var v=s(f()),io=[cr,"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"],Xo=({data:t})=>({title:t?.layout?.seo?.title||"",description:t?.layout?.seo?.description}),Ko=({data:t})=>t.dynamicLinks,Qo={seo:Xo,dynamicLinks:Ko},Jo=()=>{let t=Vr.map(r=>({rel:"preconnect",href:r,crossOrigin:"anonymous"}));return[{rel:"stylesheet",href:Zr},{rel:"stylesheet",href:Gr},{rel:"icon",type:"image/webp",href:M.favicon},...t]};function no(){let{url:t,preview:r,layout:e,algolia:o,envs:a,headerData:i,...d}=Ne(),n=d.selectedLocale??se,l=!0,w=be(),u=new URL(t),x=`${u.protocol}//${u.host}`,h=Ur.find(({href:k})=>k.includes(x));Re(l,n),pe(io);let C=!["/not-found","/account/login","/pages/brands","/pages/contact-us","/pages/credit-account","/pages/embroidery-services","/pages/littmann-stethoscope-and-dermlite-dermatoscope-free-laser-engraving","/pages/subscription-service-terms","/pages/terms-and-conditions","/products/","/account/quick-order"].some(k=>u.pathname.includes(k));return(0,v.jsxs)("html",{lang:n.language,children:[(0,v.jsxs)("head",{children:[(0,v.jsx)("meta",{charSet:"UTF-8"}),(0,v.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0 minimum-scale=1, maximum-scale=1.25, user-scalable=yes"}),(0,v.jsx)("meta",{httpEquiv:"Cache-Control",content:"max-age=3600, must-revalidate"}),C&&(0,v.jsx)(ze,{}),(0,v.jsx)(ie,{}),(0,v.jsx)(ae,{}),(0,v.jsx)(oo,{}),(0,v.jsx)(eo,{}),(0,v.jsx)(Wr,{}),(0,v.jsx)(qr,{environment:a.nodeEnv,bingID:a.bingAnalyticsId}),(0,v.jsx)(Kr,{environment:a.nodeEnv,facebookID:a.facebookPixelId}),(0,v.jsx)(Jr,{environment:a.nodeEnv,gtmTrackingId:a.googleTagManagerId,googleAnalyticsId:a.googleAnalyticsId}),h&&h?.verificationKey&&(0,v.jsx)("meta",{name:"google-site-verification",content:h?.verificationKey}),d.storeDomain.includes("australia")&&(0,v.jsx)("meta",{name:"google-site-verification",content:"w65XZftqoVCLzWpjdRpOi9kquYqo8u2GWcxQ0YgRGVg"})]}),(0,v.jsxs)("body",{className:"overflow-x-hidden",children:[(0,v.jsx)("noscript",{children:(0,v.jsx)("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${a.googleTagManagerId}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}),(0,v.jsx)(Me,{}),(0,v.jsx)(Ae,{...r,fallback:(0,v.jsx)(Or,{}),children:(0,v.jsx)(ue,{headerData:i,children:(0,v.jsx)(Te,{})},`${n.language}-${n.country}`)}),(0,v.jsx)(Ee,{nonce:w}),(0,v.jsx)(ne,{nonce:w}),(0,v.jsx)("div",{id:"portal-root"})]})]})}function ta({error:t}){let[r]=R(),e=be(),o=Le(),a=_e(o),i=Ft(),{selectedLocale:d,layout:n,notFoundCollection:l}=r.data?r.data:{selectedLocale:se,layout:null,notFoundCollection:{}},{notFoundPage:w}=n||{},u=r.data?.headerData;pe(io),(0,ve.useEffect)(()=>{let h=document.createElement("link");h.rel="icon",h.type="image/webp",h.href=M.favicon,document.head?.appendChild(h)},[]),(0,ve.useEffect)(()=>{i.submit({status:o?.status||500,location:window.location.host+window.location.pathname},{method:"POST",action:"/"})},[]);let x="Error";return a&&(x="Not found"),(0,v.jsxs)("html",{lang:d.language,children:[(0,v.jsxs)("head",{children:[(0,v.jsx)("meta",{charSet:"utf-8"}),(0,v.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),(0,v.jsx)("title",{children:x}),(0,v.jsx)(ie,{}),(0,v.jsx)(ae,{})]}),(0,v.jsxs)("body",{children:[(0,v.jsx)(ue,{backgroundColor:w?.colorTheme?.background,headerData:u,children:a?(0,v.jsx)(v.Fragment,{children:o.status===404?(0,v.jsx)(tr,{notFoundPage:w,notFoundCollection:l}):(0,v.jsx)(he,{error:{message:`${o.status} ${o.data}`}})}):(0,v.jsx)(he,{error:t instanceof Error?t:void 0})},`${d.language}-${d.country}`),(0,v.jsx)(ne,{nonce:e})]})]})}export{ta as ErrorBoundary,no as default,Qo as handle,Jo as links};