PageSourceSearch

https://medis.com.ua/_next/static/chunks/1763.ba50b780ffcc87af.js

js medis.com.ua collected 2026-10-02 21:21:20 UTC 6,851 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1763],{81763:function(e,l,t){t.r(l),t.d(l,{default:function(){return N}});var s=t(57437),a=t(2265),d=t(72694),n=t(8093),i=t(75465),r=t(90641),c=t(94457),o=t(38456),x=t(20091),m=t(41988),u=t(40679),f=t(35287),h=t(23340),p=t(60314),v=t(94158),b=t(28145),j=function(e){var l,t,d,i,r,o;let{order:x}=e,[j,N]=(0,a.useState)(!1),{mutateAsync:g}=(0,p.w)(),w=async()=>{var e,l,t,s,a;N(!0);let d=await g({orderId:null!==(s=null==x?void 0:x.id)&&void 0!==s?s:0,patientId:null!==(a=null==x?void 0:null===(e=x.patient)||void 0===e?void 0:e.id)&&void 0!==a?a:0}),n="".concat(null==x?void 0:null===(l=x.patient)||void 0===l?void 0:l.first_name," ").concat(null==x?void 0:null===(t=x.patient)||void 0===t?void 0:t.last_name),i=(0,m.WU)((null==x?void 0:x.result_date)||new Date,"dd.MM.yyyy",{locale:u.uk});(0,v.Hp)(d,"Результати-аналізів-".concat(n,"-").concat(i,".pdf")),N(!1)};return(0,s.jsxs)("li",{className:(0,c.cn)("flex items-center w-full justify-between px-4 md:px-8 md:mb-0 mb-3 md:py-4 md:border-b border-border last:border-0"),children:[(0,s.jsx)("div",{className:"hidden w-full max-w-[560px] flex-col items-center justify-center gap-2 md:flex",children:(0,s.jsx)("p",{className:"w-full max-w-[560px] text-start text-base leading-snug",children:null==x?void 0:null===(l=x.products)||void 0===l?void 0:l.map(e=>"".concat(e.name,";"))})}),(0,s.jsx)("div",{className:"hidden w-full max-w-[220px] justify-start truncate md:flex",children:(0,s.jsx)(n.Status,{variant:(0,f.A_)(null!==(d=null==x?void 0:x.status)&&void 0!==d?d:""),text:(0,f.xv)(null!==(i=null==x?void 0:x.status)&&void 0!==i?i:""),className:"max-[1024px]:hidden h-fit max-w-[440px] whitespace-nowrap"})}),(0,s.jsxs)("div",{className:"hidden items-center gap-2 md:flex",children:[(0,s.jsx)(n.Button,{disabled:j,onClick:w,className:"flex size-12 items-center justify-center p-0",type:"button",children:(0,s.jsx)(h.J,{name:"download",className:"text-text-muted"})}),(0,s.jsx)(b.z0,{doctorResultData:x,order_id:null==x?void 0:x.id})]}),(0,s.jsxs)("div",{className:(0,c.cn)("flex md:hidden w-full mb-3 last:mb-0 flex-col justify-start border border-border rounded-xl bg-surface font-montserrat gap-6 p-4"),children:[(0,s.jsx)("p",{className:"text-base font-normal",children:null==x?void 0:null===(t=x.products)||void 0===t?void 0:t.map(e=>"".concat(e.name,";"))}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 border-t border-border pt-4 text-text-muted",children:[(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(n.Status,{variant:(0,f.A_)(null!==(r=null==x?void 0:x.status)&&void 0!==r?r:""),text:(0,f.xv)(null!==(o=null==x?void 0:x.status)&&void 0!==o?o:""),className:"min-w-fit"})}),(0,s.jsx)(b.z0,{doctorResultData:x,order_id:null==x?void 0:x.id,trigger:(0,s.jsxs)(n.Button,{variant:"secondary",className:"flex",children:[(0,s.jsx)("span",{className:"inline-block",children:"Результати"}),(0,s.jsx)(h.J,{name:"open_in_new",className:"size-5 text-primary"})]})})]})]})]})},N=function(e){var l,t;let{setIsOpen:m,isOpen:u,patientInfo:f}=e,h=(0,x.t)(e=>e.role),{data:p,hasNextPage:v,fetchNextPage:b,isLoading:N}=(0,o.Y)(h,"one",null==f?void 0:f.id),{ref:g}=(0,d.S1)({threshold:.1,onChange:e=>{e&&v&&b()}}),w=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.pages.flatMap(e=>e.orders.flatMap(e=>e)))&&void 0!==e?e:[]},[p]);return(0,s.jsx)(i.Drawer,{open:u,modal:!0,direction:"bottom",onClose:()=>m(!1),children:(0,s.jsxs)(i.DrawerContent,{className:"z-[101] mt-0 h-[90dvh] justify-between border border-border bg-white md:h-dvh md:rounded-none",children:[(0,s.jsxs)(i.DrawerHeader,{className:"flex items-center justify-between border-b border-border px-4 py-6 md:items-start md:px-8 md:pb-6 md:pt-8",children:[(0,s.jsxs)(i.DrawerTitle,{className:"flex flex-col items-center gap-1 lg:gap-3",children:[(0,s.jsxs)("div",{className:"hidden md:block",children:[(0,s.jsx)("div",{className:"lg:h1 text-2xl",children:"".concat(null==f?void 0:f.last_name," ").concat(null==f?void 0:f.first_name," ").concat(null==f?void 0:f.father_name)}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0 text-text-muted lg:flex-row lg:items-center lg:gap-2",children:[(0,s.jsxs)("p",{className:"text-sm font-normal lg:text-base",children:["Всього результатів: ",null!==(l=w.length)&&void 0!==l?l:0]}),(0,s.jsx)("div",{className:"hidden text-border lg:block",children:"•"}),(0,s.jsxs)("p",{className:"text-sm font-normal lg:text-base",children:["Дата народження: ",null==f?void 0:f.birthday]})]})]}),(0,s.jsx)("p",{className:"flex items-center justify-center text-[18px] font-medium leading-[23.4px] text-text md:hidden",children:"Пацієнт"})]}),(0,s.jsx)(i.DrawerDescription,{"aria-describedby":"event"}),(0,s.jsx)(i.uh,{asChild:!0,children:(0,s.jsx)(n.IconButton,{iconName:"
1close",variant:"ghost",onClick:()=>{m(!1)}})})]}),(0,s.jsxs)(r.ScrollArea,{className:"h-full",children:[(0,s.jsx)("div",{className:"flex items-center justify-center bg-stone-50 px-6 py-8 md:hidden",children:(0,s.jsxs)("div",{className:"flex w-full flex-col rounded-xl bg-white",children:[(0,s.jsxs)("div",{className:(0,c.cn)("flex flex-col gap-2 p-4"),children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-text-muted",children:"Пацієнт"}),(0,s.jsx)("p",{className:"h-[18px] text-base font-medium leading-none text-black",children:"".concat(null==f?void 0:f.last_name," ").concat(null==f?void 0:f.first_name," ").concat(null==f?void 0:f.father_name)})]}),(0,s.jsxs)("div",{className:(0,c.cn)("flex border border-border-muted border-x-0 flex-col gap-2 p-4"),children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-text-muted",children:"Дата народження:"}),(0,s.jsx)("p",{className:"h-[18px] text-base font-medium leading-none text-black",children:null==f?void 0:f.birthday})]}),(0,s.jsxs)("div",{className:(0,c.cn)("flex flex-col gap-2 p-4"),children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-text-muted",children:"Всього результатів"}),(0,s.jsx)("p",{className:"h-[18px] text-base font-medium leading-none text-black",children:null!==(t=w.length)&&void 0!==t?t:0})]})]})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("div",{className:"flex items-center justify-between border-b px-4 py-6 md:px-8 md:py-4",children:(0,s.jsx)("h1",{className:"hidden text-xl font-bold leading-snug md:block",children:"Аналізи"})}),(0,s.jsx)(r.ScrollArea,{className:"h-[355px] items-center p-4 md:h-auto md:p-6",children:(0,s.jsxs)("ul",{className:"w-full",children:[N&&(0,s.jsx)("li",{className:"flex w-full items-center justify-center",children:(0,s.jsx)(n.Spinner,{})}),w.map(e=>(0,s.jsx)(j,{order:e},null==e?void 0:e.id)),(0,s.jsx)("li",{className:"h-1 w-full",ref:g})]})})]})]})]})})}}}]);

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.