1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4330],{44951:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/download-whatsapp-report/[labCode]",function(){return n(55724)}])},45043:function(e,t,n){"use strict";var i=n(85893);n(67294);var a=n(93967),l=n.n(a);let s=(0,n(99036).tv)({base:"cursor-pointer whitespace-nowrap select-none outline-none hover:opacity-90 transition-all duration-300 ease-in-out disabled:opacity-90 disabled:border disabled:shadow-none disabled:!border-[#d9d9d9] disabled:!bg-disable-bg disabled:!text-disable disabled:cursor-not-allowed",variants:{color:{primary:"btn-primary",theme:"bg-theme text-white",previous:"text-black-3D3 border border-black-A2A",dark:"bg-black-8B8 text-white","yellow-light":"bg-purple-500 text-white","success-light":"bg-purple-500 text-white",danger:"bg-danger text-white"},size:{medium:"text-[15px] h-9",small:"text-sm h-7",large:"text-base h-10"},block:{true:"!w-full"},isLoading:{true:"!opacity-50 !cursor-not-allowed"}},compoundVariants:[{size:["medium","small","large"],class:""}],defaultVariants:{size:"medium",color:"primary"}});t.Z=e=>{let{children:t,size:n="medium",color:a="primary",block:r=!1,disabled:o=!1,isLoading:c=!1,className:d="",startIcon:u,endIcon:m,...p}=e;return(0,i.jsxs)("button",{disabled:o,...p,className:l()(d,"relative flex items-center shadow-btnshadow rounded-lg",s({size:n,color:a,isLoading:c,block:r})),children:[!o&&c&&(0,i.jsx)("span",{className:"pl-3",children:(0,i.jsx)("svg",{className:"animate-spin mr-2",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})}),u&&(0,i.jsx)("span",{className:"h-full pl-3 flex items-center",children:(0,i.jsx)("img",{className:"w-3 h-3",src:u,alt:"startIcon",width:16,height:16})}),(0,i.jsx)("span",{className:"py-1 px-3 text-center flex-grow",children:t}),m&&(0,i.jsx)("div",{className:"bg-theme h-full w-11 rounded-tl-[25px] rounded-r-lg flex items-center justify-center",children:(0,i.jsx)("img",{className:"w-4 h-auto",src:m,alt:"endIcon",width:16,height:16})})]})}},94867:function(e,t,n){"use strict";var i=n(85893),a=n(93967),l=n.n(a);n(67294);var s=n(68342);t.Z=e=>{let{className:t,height:n=80,width:a=80,color:r="#055FA8"}=e;return(0,i.jsx)("div",{className:l()(t,"h-40 w-full flex justify-center items-center"),children:(0,i.jsx)(s.Z,{height:n,width:a,color:r})})}},68342:function(e,t,n){"use strict";var i=n(85893);n(67294),t.Z=e=>{let{color:t="#19A7A2",width:n=80,height:a=80,radius:l=15}=e;return(0,i.jsxs)("svg",{width:n,height:a,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:t,children:[(0,i.jsxs)("circle",{cx:"15",cy:"15",r:l,children:[(0,i.jsx)("animate",{attributeName:"r",from:l,to:l,begin:"0s",dur:"0.8s",values:"".concat(l,";").concat(l/1.6,";").concat(l),calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsxs)("circle",{cx:"60",cy:"15",r:l/1.6,attributeName:"fill-opacity",from:"1",to:"0.3",children:[(0,i.jsx)("animate",{attributeName:"r",from:l/1.6,to:l/1.6,begin:"0s",dur:"0.8s",values:"".concat(l/1.6,";").concat(l,";").concat(l/1.6),calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsxs)("circle",{cx:"105",cy:"15",r:l,children:[(0,i.jsx)("animate",{attributeName:"r",from:l,to:l,begin:"0s",dur:"0.8s",values:"".concat(l,";").concat(l/1.6,";").concat(l),calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;
11",calcMode:"linear",repeatCount:"indefinite"})]})]})}},78389:function(e,t,n){"use strict";var i=n(85893),a=n(15914),l=n(2962),s=n(11163);n(67294);var r=n(2813);t.Z=e=>{var t,n,o;let{data:c,testName:d}=e,{query:u}=(0,s.useRouter)(),m=(0,r.Yi)(),p=((null==u?void 0:u.city)||(null==m?void 0:m.city_name)||"").replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase()),h=(null===(t=(0,r.iQ)(d))||void 0===t?void 0:t.replace(/\s+test$/i,""))||"",x={seo_title:"".concat(h," test Price in ").concat(p," - Book Online | Suburban Diagnostics"),seo_description:"Book ".concat(h," test in ").concat(p," with Suburban Diagnostics. Get fast & accurate reports, easy online booking, home sample collection or visit your nearest centre.")},f=(0,s.useRouter)(),v=(null==c?void 0:c.canonical_url)?null==c?void 0:c.canonical_url:"".concat(a.Z.ENV.PUBLIC_BASE_URL).concat(null==f?void 0:null===(n=f.asPath)||void 0===n?void 0:n.split("?")[0]),g=(null===(o=f.asPath)||void 0===o?void 0:o.startsWith("/test-menu/"))&&!c?x:c;return(0,i.jsx)(l.PB,{title:null==g?void 0:g.seo_title,description:null==g?void 0:g.seo_description,canonical:v,additionalMetaTags:[{name:"keywords",content:null==g?void 0:g.seo_keywords}],openGraph:{url:v,locale:"en_US",type:"website",title:(null==g?void 0:g.og_meta_title)||(null==g?void 0:g.seo_title),description:(null==g?void 0:g.og_meta_description)||(null==g?void 0:g.seo_description),article:{publishedTime:null==g?void 0:g.createdAt,modifiedTime:null==g?void 0:g.updatedAt},siteName:"Suburban Diagnostics"},twitter:{handle:"@handle",site:"@Suburban-diagnostics",cardType:"summary_large_image"}})}},27757:function(e,t,n){"use strict";var i=n(85893),a=n(93967),l=n.n(a);t.Z=e=>{let{className:t,container:n=!0,content:a}=e;return(0,i.jsx)("div",{className:l()("mt-6",t,{"container mx-auto":n}),children:(0,i.jsx)("div",{className:"bg-white shadow-booktest py-6 px-3 rounded-md tw-reset",dangerouslySetInnerHTML:{__html:a||""}})})}},55724:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return _},default:function(){return S}});var i=n(85893),a=n(94867),l=n(78389),s=n(27757),r=n(67294),o=n(45043),c=n(58386),d=n(98374),u=n(25675),m=n.n(u),p=n(7952),h=e=>{let{seconds:t=0,resendOtp:n,refetch:a,handleClick:l,isLoading:s,isSendOtp:u,isVerifyOtp:h,showOtpBox:x}=e,[f,v]=(0,r.useState)("");return(0,i.jsxs)("div",{className:"flex gap-8",children:[(0,i.jsx)("div",{className:"md:max-w-[320px] flex-1",children:(0,i.jsx)("div",{className:"rounded-md overflow-hidden shadow-md",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"bg-theme text-white font-medium px-5 py-2 relative ",children:(0,i.jsxs)("h1",{className:"text-[20px]",children:["Download"," ",(0,i.jsxs)("span",{className:"text-sm bg-sky-08C py-[2px] px-2 rounded",children:[" ","Report"]})]})}),(0,i.jsx)("div",{className:"px-5 py-6 bg_home_download_report max-w-sm mx-auto",children:(0,i.jsx)("form",{onSubmit:function(e){e.preventDefault(),l(f)},children:(0,i.jsxs)("div",{className:"grid grid-cols-1 gap-6",children:[!x&&(0,i.jsxs)("div",{children:[(0,i.jsxs)("p",{className:"lg:text-base text-sm",children:["Click the button below to generate an OTP and ",(0,i.jsx)("b",{children:"download"})," your report."]}),(0,i.jsx)("div",{className:"text-center flex justify-center py-4",children:(0,i.jsx)(o.Z,{type:"button",onClick:a,className:"rounded-lg text-white w-[180px]",endIcon:d.Z.ArrowRight,children:"SEND OTP"})})]}),x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"block w-auto",children:[(0,i.jsx)("label",{className:"font-medium block mb-2",children:"OTP"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(c.Z,{containerStyle:{justifyContent:"space-between"},inputStyle:{border:"1px solid rgba(112, 112, 112, 0.5)",height:"36px",width:"36px",borderRadius:"5px",padding:"4px"},value:f,inputType:"tel",onChange:e=>v(e),numInputs:6,renderSeparator:(0,i.jsx)("span",{}),renderInput:e=>(0,i.jsx)("input",{...e})}),(n||t>0)&&(0,i.jsx)("div",{className:"mt-3 flex justify-end",children:(0,i.jsxs)("div",{className:"text-black-676 flex gap-2",children:[(0,i.jsx)("button",{type:"button",onClick:a,className:"".concat(n?"text-blue-040 cursor-pointer text-bold":"cursor-not-allowed"),disabled:!n,children:"Resend OTP"}),!n&&(0,i.jsxs)("span",{children:["in ",t," sec"]})]})})]})]}),(0,i.jsx)("div",{className:" text-center mt-10",children:(0,i.jsx)(o.Z,{type:"submit",className:"!w-[140px] rounded-md text-white",endIcon:d.Z.ArrowRight,disabled:(null==f?void 0:f.length)!==6||s,isLoading:s,children:u?"Loading...":h?"SUBMITING...":"SUBMIT"})})]})]})})})]})})}),(0,i.jsx)("div",{className:"max-md:hidden text-center flex-1",children:(0,i.jsx)(m(),{src:p.Z.DownloadReortBanner,width:300,height:300,unoptimized:!0,alt:"",className:"mx-auto w-full h-[276px]"})})]})},x=n(40605),f=n(29021),v=n(89901),g=n(11163),b=n(44173),w=n(63411),j=n(2813),y={src:"/_next/static/media/download_white.8be9ff06.svg",height:800,width:800,blurWidth:0,blurHeight:0};let N=e=>{let{seoData:t}=e,{query:n,push:o,reload:c}=(0,g.useRouter)(),[d,u]=(0,r.useState)(0),[N,_]=(0,r.useState)(!1),[S,k]=(0,r.useState)(!1),[C,D]=(0,r.useState)(!1),[A,T]=(0,r.useState)([]),[Z,I]=(0,r.useState)(!1),{mutate:L,isLoading:O}=(0,w.Ol)(),{isLoading:P,mutate:B}=(0,w.G3)();(0,r.useEffect)(()=>{let e=setInterval(()=>{d>0&&(u(e=>e-1),1===d&&k(!0))},1e3);return()=>clearInterval(e)},[d]);let R=e=>{let t=new URL(null==e?void 0:e.printUrl),n=t.hostname,i=t.search,a="dlplonere-reports.lalpathlabs.com"===n?"".concat(x.Z.REPORT_SHOW).concat(i):e.printUrl;!function(){let e=navigator.userAgent||navigator.vendor;return/FBAN|FBAV|Instagram|Line|Twitter|MicroMessenger|GoogleApp|wv/i.test(e)}()?o(a):window.location.href=a};async function E(){await (0,v.FX)(String(null==n?void 0:n.labCode))&&await (0,v.NU)(String(null==n?void 0:n.labCode)),o("/")}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{data:t}),(0,i.jsxs)("div",{className:"container mt-2 flex justify-between gap-3 items-end text-white h-full",children:[(0,i.jsx)("div",{className:" bg-white md:px-5 px-2 rounded-xl shadow-logo md:w-52 w-40 h-20 flex items-center justify-center",children:(0,i.jsx)("img",{src:p.Z.Logo,alt:"Logo",className:""})}),C&&(0,i.jsx)("div",{children:(0,i.jsx)("button",{className:"select-none rounded-lg shadow-btnshadow px-3 py-1.5 bg-sky text-white cursor-pointer",onClick:E,children:"Logout"})})]}),(0,i.jsx)("div",{className:"container mt-6",children:N?(0,i.jsx)(a.Z,{className:"border rounded-xl shadow-lg h-full"}):C?(0,i.jsx)("div",{className:"md:border md:rounded-xl md:p-3",children:(0,i.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-6",children:null==A?void 0:A.map((e,t)=>{let n=String(null==e?void 0:e.deviceName);return(0,i.jsxs)("div",{className:"rounded-lg shadow-sm p-4 bg-white border max-md:flex-1",children:[(0,i.jsxs)("div",{className:"font-semibold text-[17px]",children:[f.C2[n]," "]}),(0,i.jsx)("p",{className:"mb-2",children:null==e?void 0:e.labNo}),(0,i.jsx)("div",{className:"flex justify-end mt-3",children:(0,i.jsxs)("button",{className:"select-none rounded-md text-white shadow-sm hover:shadow-lg py-1.5 px-4 bg-sky cursor-pointer flex items-center gap-2",onClick:()=>R(e),children:[(0,i.jsx)(m(),{src:y,width:16,height:16,className:"w-6 h-6",alt:""}),"Download Report"]})})]},"report-".concat(t))})})}):(0,i.jsx)(h,{seconds:d,resendOtp:S,refetch:()=>void L({labNo:null==n?void 0:n.labCode},{onSuccess:e=>{b.Am.success("Otp send successfully"),I(!0),k(!1),k(!1),u(60)}}),handleClick:e=>{let t={labNo:String(null==n?void 0:n.labCode),otp:(0,j.RK)(e)};B(t,{onSuccess:async e=>{await (0,v.EN)(null==t?void 0:t.labNo,{otp:null==t?void 0:t.otp,expiry:Date.now()+864e5}),D(!0),T((null==e?void 0:e.result)||(null==e?void 0:e.data)||[])}})}
1,isLoading:O||P,isSendOtp:O,isVerifyOtp:P,showOtpBox:Z})}),(null==t?void 0:t.page_content)&&(0,i.jsx)(s.Z,{content:null==t?void 0:t.page_content})]})};N.getLayout=function(e){return(0,i.jsx)(i.Fragment,{children:e})};var _=!0,S=N},58386:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(67294),a=function(e){return"object"==typeof e&&null!==e},l=function(e){var t=e.value,n=void 0===t?"":t,l=e.numInputs,s=void 0===l?4:l,r=e.onChange,o=e.onPaste,c=e.renderInput,d=e.shouldAutoFocus,u=void 0!==d&&d,m=e.inputType,p=void 0===m?"text":m,h=e.renderSeparator,x=e.placeholder,f=e.containerStyle,v=e.inputStyle,g=e.skipDefaultStyles,b=void 0!==g&&g,w=i.useState(0),j=w[0],y=w[1],N=i.useRef([]),_=function(){return n?n.toString().split(""):[]},S="number"===p||"tel"===p;i.useEffect(function(){N.current=N.current.slice(0,s)},[s]),i.useEffect(function(){var e;u&&(null===(e=N.current[0])||void 0===e||e.focus())},[u]);var k=function(){if("string"==typeof x){if(x.length===s)return x;x.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},C=function(e){return(S?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},D=function(e){var t=e.target.value;C(t)&&(L(t),I(j+1))},A=function(e){var t=e.nativeEvent,n=e.target.value;C(n)||(n.length!==s||n.split("").some(function(e){return!C(e)})||(O(n.split("")),I(s-1)),null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),L(""),I(j-1)),e.target.value="")},T=function(){y(j-1)},Z=function(e){var t=_();[e.code,e.key].includes("Backspace")?(e.preventDefault(),L(""),I(j-1)):"Delete"===e.code?(e.preventDefault(),L("")):"ArrowLeft"===e.code?(e.preventDefault(),I(j-1)):"ArrowRight"===e.code?(e.preventDefault(),I(j+1)):e.key===t[j]?(e.preventDefault(),I(j+1)):("Spacebar"===e.code||"Space"===e.code||"ArrowUp"===e.code||"ArrowDown"===e.code)&&e.preventDefault()},I=function(e){var t,n,i=Math.max(Math.min(s-1,e),0);N.current[i]&&(null===(t=N.current[i])||void 0===t||t.focus(),null===(n=N.current[i])||void 0===n||n.select(),y(i))},L=function(e){var t=_();t[j]=e[0],O(t)},O=function(e){r(e.join(""))},P=function(e){e.preventDefault();var t,n=_(),i=j,a=e.clipboardData.getData("text/plain").slice(0,s-j).split("");if(!(S&&a.some(function(e){return isNaN(Number(e))}))){for(var l=0;l<s;++l)l>=j&&a.length>0&&(n[l]=null!==(t=a.shift())&&void 0!==t?t:"",i++);I(i),O(n)}};return i.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},a(f)&&f),className:"string"==typeof f?f:void 0,onPaste:o},Array.from({length:s},function(e,t){return t}).map(function(e){var t,n,l;return i.createElement(i.Fragment,{key:e},c({value:null!==(t=_()[e])&&void 0!==t?t:"",placeholder:null!==(l=null===(n=k())||void 0===n?void 0:n[e])&&void 0!==l?l:void 0,ref:function(t){return N.current[e]=t},onChange:D,onFocus:function(t){y(e),t.target.select()},onBlur:T,onKeyDown:Z,onPaste:P,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},a(v)?v:{}),className:"string"==typeof v?v:void 0,type:p,inputMode:S?"numeric":"text",onInput:A},e),e<s-1&&("function"==typeof h?h(e):h))}))}}},function(e){e.O(0,[9036,2888,9774,179],function(){return e(e.s=44951)}),_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.