1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8345],{52155:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new-test/[id]",function(){return i(71289)}])},35212:function(e,t,i){"use strict";var n=i(85893);i(67294);var s=i(9008),a=i.n(s),r=i(4298),l=i.n(r),c=i(25675),o=i.n(c),u=i(11163),d=i(43568);t.Z=e=>{let{title:t,description:i,canonical:s,robots:r="index, follow",ogType:c="website",ogTitle:m,ogDescription:h,ogImage:p,ogImageWidth:f,ogImageHeight:x,ogImageType:g,twitterTitle:j,twitterDescription:b,twitterImage:v,priority:w,tracking:y=!0,children:q}=e,_=(0,u.useRouter)(),N=_.asPath.split("?")[0].split("#")[0],k=N.startsWith("/")?N.slice(1):N,P=s||"https://zuri.health/".concat(k),D="https://zuri.health/assets/images/zuri-health-og-image.png";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:t||"Zuri Health | Leading Digital Healthcare & Medical Services"}),(0,n.jsx)("meta",{name:"description",content:i||"Access trusted online healthcare services, doctor consultations, and health screenings with Zuri Health."}),(0,n.jsx)("link",{rel:"canonical",href:s||P}),(0,n.jsx)("meta",{name:"robots",content:r}),(0,n.jsx)("meta",{property:"og:type",content:c}),(0,n.jsx)("meta",{property:"og:url",content:P}),(0,n.jsx)("meta",{property:"og:title",content:m||t}),(0,n.jsx)("meta",{property:"og:description",content:h||i}),(0,n.jsx)("meta",{property:"og:image",content:p||D}),f?(0,n.jsx)("meta",{property:"og:image:width",content:f}):null,x?(0,n.jsx)("meta",{property:"og:image:height",content:x}):null,g?(0,n.jsx)("meta",{property:"og:image:type",content:g}):null,(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:url",content:P}),(0,n.jsx)("meta",{name:"twitter:title",content:j||t}),(0,n.jsx)("meta",{name:"twitter:description",content:b||i}),(0,n.jsx)("meta",{name:"twitter:image",content:v||D}),"string"==typeof w&&""!==w.trim()&&(0,n.jsx)("meta",{name:"priority",content:w}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"}),q]}),y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{id:"facebook-pixel-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window,document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq.disablePushState = true;\n fbq('init', '954095996428784');\n if (!".concat(d.QR,") fbq('track', 'PageView');\n ")}}),(0,n.jsx)("noscript",{children:(0,n.jsx)(o(),{height:"1",width:"1",src:"https://www.facebook.com/tr?id=954095996428784&ev=PageView&noscript=1",alt:"facebook"})})]}):null]})}},71289:function(e,t,i){"use strict";i.r(t);var n=i(85893),s=i(67294),a=i(33321),r=i(9473),l=i(36281),c=i(55678),o=i(11163),u=i(78633),d=i(25675),m=i.n(d),h=i(53181),p=i(91279),f=i(94055),x=i(35212);t.default=()=>{let[e,t]=(0,s.useState)("Desc"),[i,d]=(0,s.useState)(!1),[g,j]=(0,s.useState)(1),[b,v]=(0,s.useState)(),[w,y]=(0,s.useState)({});(0,s.useEffect)(()=>{g<0&&j(0)},[g]);let q=(0,o.useRouter)();(0,s.useEffect)(()=>{let fetchData=async()=>{try{let e=await h.Z.get("".concat(a.T,"/test_diagnostic/test_product_profile/").concat(q.query.id));y(e.data.test_product)}catch(e){404===e.response.status&&q.push("/404"),console.error(e)}};q.isReady&&fetchData()},[q.isReady,q.query.id,q]);let _=(0,r.I0)(),handleMinus=()=>{j(g-1)},handleAdd=()=>{j(g+1)},handleClick=()=>{_((0,l.kw)({product:w,quantity:g})),c.Am.success("items added to cart"),d(!0)},handleWishListClick=e=>{e.preventDefault(),_((0,p.Mp)({item:w})),c.Am.success("items added to wishlist")};return(0,n.jsxs)("div",{className:"flex h-full w-full items-center justify-center py-12 md:bg-[#EEF0F8]",children:[(0,n.jsx)(x.Z,{title:"Buy online ".concat(w.name," || Zuri Health | Leading Digital Healthcare & Medical Services"),description:null==w?void 0:w.description,canonical:"https://zuri.health/test/".concat(q.query.id),ogTitle:"".concat(null==w?void 0:w.name," | ").concat(null==w?void 0:w.description),ogDescription:"".concat(null==w?void 0:w.description),twitterTitle:"".concat(null==w?void 0:w.name," | ").concat(null==w?void 0:w.description),priority:"High"}),(0,n.jsxs)("div",{className:"mx-auto flex h-full w-full max-w-[1440px] flex-col items-center justify-center p-2",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center md:flex-row",children:[(0,n.jsx)("div",{className:"flex max-w-[600px] flex-col items-center justify-center ",children:(0,n.jsx)(m(),{src:"/assets/labs/tk1.png",width:600,height:500,alt:"product image",className:"max-h-[480px] object-contain"})}),(0,n.jsxs)("div",{className:"mt-6 flex flex-col px-2 md:mt-0 md:px-6",children:[(0,n.jsx)("h2",{className:"text-2xl",children:function(e){let t=null==e?void 0:e.split(" ");for(let e=0;e<(null==t?void 0:t.length);e++){var i,n,s;let a=null===(i=t[e][0])||void 0===i?void 0:i.toUpperCase(),r=null===(s=t[e])||void 0===s?void 0:null===(n=s.slice(1))||void 0===n?void 0:n.toLowerCase();t[e]=a+r}return null==t?void 0:t.join(" ")}(w.name)}),(0,n.jsxs)("h2",{className:"font-bod my-4 text-xl",children:["KES ",w.price]}),(0,n.jsx)("p",{className:"mb-4 max-w-[650px]",children:w.description}),(0,n.jsxs)("div",{className:"mb-4 flex flex-row",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-md border border-black bg-transparent p-2",children:[(0,n.jsx)("button",{onClick:()=>handleMinus(),className:"px-4",children:"-"}),(0,n.jsx)("span",{children:g}),(0,n.jsx)("button",{onClick:()=>handleAdd(),className:"px-4",children:"+"})]}),(0,n.jsx)(f.default,{title:"Wish List",children:(0,n.jsx)("button",{onClick:e=>handleWishListClick(e),className:"ml-4 rounded-md border border-black bg-transparent p-4 hover:bg-red-500 hover:text-white",children:(0,n.jsx)(u.sF8,{className:""})})})]}),(0,n.jsx)("button",{onClick:()=>handleClick(),className:"w-full max-w-[500px] items-center justify-center rounded-md bg-[#5BDADD] py-4",children:(0,n.jsx)("p",{className:"text-white ",children:"Add To Cart"})})]})]}),(0,n.jsxs)("div",{className:"flex w-full flex-col px-2",children:[(0,n.jsx)("div",{className:"my-12 flex flex-row items-center justify-center",children:(0,n.jsxs)("p",{onClick:()=>t("Desc"),className:"px-4 font-bold text-black ".concat("Desc"==e?"text-red-500":null),children:[" ","Description"," "]})}),"Desc"==e?(0,n.jsx)("div",{className:"",children:(0,n.jsx)("p",{children:"Experience healthcare on your terms! Whether at home or in the office, book a lab test today, and our dedicated team will provide you with top-notch healthcare services."})}):null,"Details"==e?(0,n.jsx)("div",{className:"",children:(0,n.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ornare euismod arcu, ac laoreet metus pulvinar feugiat. Praesent in feugiat ante, a dictum nunc. Pellentesque convallis tortor quis purus f
1inibus aliquet. In hac habitasse platea dictumst. Proin vestibulum ante ac faucibus tristique. Integer quis efficitur dolor, at dignissim dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ornare euismod arcu, ac laoreet metus pulvinar feugiat. Praesent in feugia t ante, a dictum nunc. Pellentesque convallis tortor quis purus finibus aliquet. In hac habitasse platea dictumst. Proin vestibulum ante ac faucibus tristique. Integer quis efficitur dolor, at dignissim dolor."})}):null,"Review"==e?(0,n.jsx)("div",{className:"",children:(0,n.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ornare euismod arcu, ac laoreet metus pulvinar feugiat. Praesent in feugiat ante, a dictum nunc. Pellentesque convallis tortor quis purus finibus aliquet. In hac habitasse platea dictumst. Proin vestibulum ante ac faucibus tristique. Integer quis efficitur dolor, at dignissim dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ornare euismod arcu, ac laoreet metus pulvinar feugiat. Praesent in feugia t ante, a dictum nunc. Pellentesque convallis tortor quis purus finibus aliquet. In hac habitasse platea dictumst. Proin vestibulum ante ac faucibus tristique. Integer quis efficitur dolor, at dignissim dolor."})}):null]})]})]})}},9008:function(e,t,i){e.exports=i(34605)},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},60272:function(e,t,i){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}i.d(t,{Z:function(){return _extends}})},63366:function(e,t,i){"use strict";function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;i[n]=e[n]}return i}i.d(t,{Z:function(){return _objectWithoutPropertiesLoose}})}},function(e){e.O(0,[4738,6992,8664,4055,9774,2888,179],function(){return e(e.s=52155)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.