1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[667],{21929:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/telemed/viewdocs",function(){return s(37418)}])},30474:function(e,t){"use strict";t.Z={src:"/_next/static/media/arrowleft.93d2df01.svg",height:36,width:36,blurWidth:0,blurHeight:0}},85034:function(e,t){"use strict";t.Z={src:"/_next/static/media/arrowright.17714dad.svg",height:36,width:37,blurWidth:0,blurHeight:0}},83321:function(e,t,s){"use strict";var l=s(85893),r=s(53181),i=s(33321),a=s(67294),n=s(55678);t.Z=()=>{let[e,t]=(0,a.useState)(""),[s,d]=(0,a.useState)(!1),c=(0,a.useId)(),o="".concat(c,"-email"),handleSubscribe=async s=>{if(s.preventDefault(),""===e.trim()){n.Am.warn("Email cannot be empty");return}d(!0);try{await r.Z.post("".concat(i.T,"/news_letter/subscribe"),{email:e}),n.Am.success("Thank you for joining our email list"),t("")}catch(e){var l,a;n.Am.error((null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.message)||(null==e?void 0:e.message)||"Could not subscribe you right now. Please try again.")}finally{d(!1)}};return(0,l.jsx)("section",{"aria-labelledby":c,className:"flex items-center justify-center bg-zuri-pink-50 px-4 py-12 md:py-20",children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,l.jsxs)("header",{children:[(0,l.jsx)("h2",{id:c,className:"text-center font-heading text-xl font-bold md:text-2xl",children:"Join Our Community"}),(0,l.jsx)("p",{className:"text-center font-nunito text-sm font-semibold text-zuri-grey-600 md:text-base",children:"Join our community to stay up to date on healthy living."})]}),(0,l.jsxs)("form",{onSubmit:handleSubscribe,className:"mx-auto flex w-full max-w-md flex-col items-center justify-center gap-3 md:flex-row",children:[(0,l.jsx)("label",{htmlFor:o,className:"sr-only",children:"Email address"}),(0,l.jsx)("input",{id:o,type:"email",required:!0,value:e,placeholder:"Enter your email",onChange:e=>t(e.target.value),className:"w-full rounded-xl px-3 py-3 font-nunito text-sm"}),(0,l.jsx)("button",{type:"submit",disabled:s,className:"w-fit rounded-xl bg-zuri-pink-500 px-4 py-3 font-nunito text-sm font-bold text-white transition-colors hover:bg-opacity-90 disabled:cursor-not-allowed disabled:opacity-60",children:s?"Subscribingâ¦":"Subscribe"})]})]})})}},35445:function(e,t,s){"use strict";s(85893),s(41664),s(25675),s(96204),s(67294)},37418:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return w},default:function(){return viewdocs}});var l=s(85893),r=s(35548);s(32627);var i=s(25675),a=s.n(i);s(30474),s(85034);var n=s(41664),d=s.n(n),c=s(67294),o=s(71054),x=s(11163),m=s(18836),u=s(36281),h=s(57304),p=s(9473),f=s(88078),j=s(79603),v=s(68269);let Loading=()=>{let e=Array.from({length:8});return(0,l.jsx)(l.Fragment,{children:e.map((e,t)=>(0,l.jsx)("div",{className:"grid gap-10 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-4",children:(0,l.jsx)(f.Z,{className:"",variant:"rectangular",width:700,height:120})},t))})};var NewTelemed_DoctorsList=()=>{var e,t;let s=(0,p.I0)();(0,p.v9)(u.Ru),(0,p.v9)(u.I2),(0,p.v9)(u.gj);let r=(0,p.v9)(h.H$),i=(0,p.v9)(h.YP),[n,f]=(0,c.useState)(1),[b,g]=(0,c.useState)(0),[w,N]=(0,c.useState)("");(0,c.useEffect)(()=>{s((0,h.mh)())},[s]),(0,c.useEffect)(()=>{s((0,h.ul)({page:n,search:w.trim()?w:""}))},[s,n,w]),(0,x.useRouter)(),i&&[...i];let y=new Intl.NumberFormat("en-US",{style:"currency",currency:"KES"}),_=0;if(r){let e=null==r?void 0:null===(t=r.metadata)||void 0===t?void 0:t.total;_=Math.ceil(e/10)}else _=1;let CardB=e=>{var t,s,r,i;let{item:n}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"cursor-pointer justify-between rounded-[8px] bg-white p-5 shadow-lg md:flex lg:w-[960px]",children:[(0,l.jsxs)("div",{className:"block md:hidden",children:[(0,l.jsx)("div",{className:"flex w-full justify-between md:hidden",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("h1",{className:"text-[16px] font-semibold",children:[n.first_name," ",n.last_name]}),(0,l.jsx)("p",{className:"text-[11px] font-light text-[#757575]",children:(0,l.jsx)("p",{className:"text-[14px] text-[#404040]",children:(null===(s=n.professional_history.specializations)||void 0===s?void 0:null===(t=s[0])||void 0===t?void 0:t.specialization_name)||""})})]})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full items-center md:hidden ",children:[(0,l.jsx)("div",{className:"flex h-[120px] w-[120px] items-center justify-center",children:(0,l.jsx)(a(),{className:"h-[80px] w-[80px] rounded-full",src:n.profile_image,width:80,height:80,alt:"Doctor"})}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center ",children:[(0,l.jsxs)("div",{className:"flex ",children:[(0,l.jsx)(o.J1i,{size:17}),(0,l.jsx)("p",{className:"text-[12px] font-thin",children:"Telemedicine"})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)("div",{className:"mt-2 flex h-[24px] w-[89px] items-center justify-center rounded-[24px] bg-primary-teal text-[10px] text-white",children:n.services_offered.telemed.availability?(0,l.jsx)("p",{className:"font-[400px]",children:"Available"}):(0,l.jsx)("p",{children:"Not Available"})})})]})]}),(0,l.jsxs)("div",{className:"just flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[" ",(0,l.jsx)("p",{className:" ",children:y.format(n.services_offered.telemed.fee)})]}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"border-1 mt-5 h-[48px] w-[116px] cursor-pointer rounded-[100px] border border-[#5BDADD] text-[#5BDADD] ",children:"Book Now"})})]})]}),(0,l.jsx)("div",{className:" hidden md:block",children:(0,l.jsxs)("div",{className:"flex items-center justify-center space-x-5",children:[(0,l.jsx)("div",{className:"h-[120px] w-[120px]",children:(0,l.jsx)(a(),{className:"h-[120px] w-[120px] rounded-full",src:n.profile_image,width:120,height:120,alt:"Doctor"})}),(0,l.jsxs)("div",{className:"w-[280px]",children:[(0,l.jsxs)("h1",{className:"text-[18px] font-semibold",children:[n.first_name," ",n.last_name]}),(0,l.jsx)("p",{className:"text-[14px] text-[#404040]",children:(null===(i=n.professional_history.specializations)||void 0===i?void 0:null===(r=i[0])||void 0===r?void 0:r.specialization_name)||""}),(0,l.jsx)("div",{className:"flex space-x-2 ",children:(0,l.jsx)("div",{})}),(0,l.jsx)("div",{className:"mt-2 flex h-[24px] w-[89px] items-center justify-center rounded-[24px] bg-primary-teal text-[10px] text-white",children:n.services_offered.telemed.availability?(0,l.jsx)("p",{className:"font-[400px]",children:"Available"}):(0,l.jsx)("p",{children:"Not Available"})})]})]})}),(0,l.jsxs)("div",{className:" hidden text-center text-[18px] md:block md:w-[147
1px] ",children:[(0,l.jsx)("p",{className:" ",children:y.format(n.services_offered.telemed.fee)}),(0,l.jsx)("button",{className:"border-1 mt-5 h-[48px] w-[116px] cursor-pointer rounded-[100px] border border-[#5BDADD] text-[#5BDADD] ",children:"Book Now"})]})]},n._id)})};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"wrapper flex flex-col gap-6 xs:flex-col lg:flex-row",children:[(0,l.jsxs)("div",{className:" space-y-3 lg:w-[960px]",children:[(0,l.jsxs)("div",{className:"relative mt-4 h-[44px] w-full",children:[(0,l.jsx)("input",{type:"search",className:"h-full w-full rounded-[30px] border border-transparent bg-gray-100 py-4 pl-5 pr-12 text-sm placeholder:text-[#707070] focus:border-primary-teal focus:outline-none",placeholder:"Search a doctor by name or specialization",value:w,onChange:e=>{N(e.target.value),s((0,h.ul)({page:1,search:e.target.value}))},onKeyDown:e=>{"Enter"===e.key&&s((0,h.ul)({page:1,search:w}))}}),(0,l.jsx)("button",{className:"absolute right-1 top-1/2 flex h-[38px] w-[124px] -translate-y-1/2 cursor-pointer items-center justify-center rounded-[38px] bg-[#2AC8CA] font-semibold text-white transition-colors hover:bg-[#28B1B3]",onClick:()=>{s((0,h.ul)({page:1,search:w}))},children:"Search"})]}),(null===(e=r.doctors)||void 0===e?void 0:e.length)>0?r.doctors.map(e=>(0,l.jsx)(CardB,{item:e},e._id)):w.trim()?(0,l.jsx)("div",{className:"flex w-full flex-col items-center py-12 md:w-[460px] md:justify-center lg:w-[660px]",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg border p-4 shadow-lg",children:[(0,l.jsx)("h2",{className:"mb-2 text-center text-2xl font-semibold text-primary-teal",children:"No doctors found"}),(0,l.jsxs)("p",{className:"text-center text-lg text-gray-500",children:["We couldn't find any doctors matching your search.",(0,l.jsx)("br",{}),"Try a different name or specialty."]})]})}):(0,l.jsx)(Loading,{}),(0,l.jsxs)("div",{className:"wrapper mt-5 flex flex-wrap items-center justify-between gap-4",children:[_>1&&(0,l.jsx)(v.Z,{spacing:2,children:(0,l.jsx)(j.Z,{count:_,page:n,shape:"rounded",onChange:(e,t)=>
1{f(t)}})}),""!==w.trim()&&(0,l.jsx)("button",{onClick:()=>{N(""),s((0,h.FD)("")),f(1)},className:"border-1 h-[40px] w-auto rounded-[50px] border border-primary-teal px-6 text-primary-teal transition-colors hover:bg-gray-50",children:"View all"})]})]}),(0,l.jsx)("div",{className:"flex h-[350px] w-full rounded-[16px] bg-[#2AC8CA] lg:h-[524px]",children:(0,l.jsxs)("div",{className:"mx-3 mt-7",children:[(0,l.jsx)("h1",{className:"text-[36px] text-white",children:"Consult Now on WhatsApp!"}),(0,l.jsx)("p",{className:"text-[16px] text-white",children:"Get better understanding of your symptoms and receive affordable doctor consultations via WhatsApp chat."}),(0,l.jsx)(d(),{href:m.GZ,className:"mt-2 flex h-[48px] w-[170px] items-center justify-center rounded-[38px] bg-white",children:"Get Started now"})]})})]})})},b=s(93826),g=s(83321);s(35445),s(17035);var w=!0,viewdocs=()=>(0,l.jsxs)("div",{className:" overflow-hidden",children:[(0,l.jsx)(r.Z,{}),(0,l.jsx)(NewTelemed_DoctorsList,{}),(0,l.jsx)(b.Z,{}),(0,l.jsx)(g.Z,{})]})}},function(e){e.O(0,[8127,1046,8108,8078,9990,7210,783,5099,9774,2888,179],function(){return e(e.s=21929)}),_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.