PageSourceSearch

https://medis.com.ua/_next/static/chunks/6468-2b344d82ad0866de.js?dpl=dpl_3EpWrmZV8N8m51wPJtWo5diCnBdB

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6468],{81957:function(e,t,l){l.d(t,{WrapperTableOfContents:function(){return u}});var a=l(57437),n=l(2265),r=l(72694),s=l(52530),i=l(22549),o=l(68331),c=l(16446);let d=e=>e.flatMap(e=>[e.id,...d(e.children)]),m=e=>{let{headings_structure:t}=e,[l,s]=(0,n.useState)(""),m=(0,r.ac)("(max-width: 768px)"),u=(0,n.useMemo)(()=>d(t),[t]),{activeId:x}=(0,o.e)({ids:u}),h=(0,n.useRef)(null);return(0,n.useEffect)(()=>{m?s(""):s("table-of-contents")},[m]),(0,n.useEffect)(()=>{if(!x)return;let e=h.current;if(!e)return;let t=e.querySelector('[data-toc-id="'.concat(CSS.escape(x),'"]'));t&&t.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})},[x]),(0,a.jsx)("nav",{"aria-label":"Зміст статті",className:"flex w-full flex-col",children:(0,a.jsx)(i.Accordion,{defaultValue:l,className:"sticky top-36 w-full duration-500",type:"single",collapsible:!0,children:(0,a.jsxs)(i.AccordionItem,{className:"w-full overflow-hidden rounded-xl border duration-500",value:"table-of-contents",children:[(0,a.jsx)(i.AccordionTrigger,{classNameWrapper:"w-full",className:"w-full p-4 [&[data-state=open]]:mb-0 [&[data-state=open]]:pb-4",children:(0,a.jsx)("span",{className:"text-lg font-semibold leading-[1.723]",children:"У цій статті"})}),(0,a.jsx)(i.AccordionContent,{ref:h,className:"hidden !max-h-[500px] overflow-y-scroll border-t bg-blog-table-contents md:block",children:(0,a.jsx)(c.v,{activeId:x,headings_structure:t})}),(0,a.jsx)(i.AccordionContent,{className:"block overflow-y-scroll border-t bg-blog-table-contents md:hidden",children:(0,a.jsx)(c.v,{activeId:x,headings_structure:t})})]})},l)})},u=e=>{let{headings:t}=e,{setIsInView:l}=(0,s.T)(),[i,o]=(0,r.S1)();return(0,n.useEffect)(()=>
1{l(o)},[o]),t.length?(0,a.jsx)("div",{ref:i,className:"flex grow px-4 pt-4 md:min-w-[312px] md:px-0 md:pt-14",children:(0,a.jsx)(m,{headings_structure:t})}):null}},49831:function(e,t,l){l.r(t),l.d(t,{ShareArticle:function(){return o}});var a=l(57437),n=l(14438),r=l(8093),s=l(23340),i=l(94457);let o=e=>{let{titleArticle:t,className:l}=e,o=async()=>{if(!navigator){n.toast.error("Браузер не підтримує функцію поширення");return}try{navigator.share?await navigator.share({title:document.title,url:window.location.href,text:"Перегляньте статтю ".concat(t)}):(await navigator.clipboard.writeText(window.location.href),n.toast.success("Посилання скопійовано в буфер обміну!"))}catch(e){n.toast.error("Виникла помилка під час поширення"),console.error("Error sharing:",e)}};return(0,a.jsxs)(r.Button,{onClick:o,className:(0,i.cn)("h-9",l),variant:"outline",children:[(0,a.jsx)("span",{className:"block text-base font-semibold text-primary",children:"Поділитися"}),(0,a.jsx)(s.J,{name:"share",className:"text-[20px] text-primary"})]})}},16446:function(e,t,l){l.d(t,{v:function(){return o}});var a=l(57437),n=l(27648);l(2265);var r=l(72694),s=l(94457);let i=e=>(0,a.jsx)(n.default,{...e,scroll:!1,className:(0,s.cn)(e.className)}),o=e=>{let{onClick:t,headings_structure:l,activeId:n}=e,o=e=>{let t=[];return e.forEach(e=>{t.push(e),e.children.length>=1&&t.push(...o(e.children))}),t},c=(0,r.Sf)(e=>{let t=document.getElementById(e);if(!t)return;let l=t.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:l,behavior:"smooth"})},200);return null==l?void 0:l.map(e=>(0,a.jsxs)("div",{className:"flex w-full flex-col",children:[(0,a.jsx)(i,{"data-toc-id":e.id,onClick:l=>{null==t||t(l),c(e.id)},href:"#".concat(e.id),className:(0,s.cn)("px-4 pb-3 leading-[1.286] pt-5 font-semibold transition-all duration-200",String(n)===String(e.id)&&"text-primary"),children:(0,a.jsx)("p",{className:"text-sm ",children:e.text})}),e.children.length?(0,a.jsx)("div",{className:"flex flex-col pl-8 pr-4",children:o(e.children).map(e=>(0,a.jsx)(i,{"data-toc-id":e.id,onClick:l=>{null==t||t(l),c(e.id)},href:"#".concat(e.id),className:(0,s.cn)("border-l px-8 py-2 font-medium transition-all duration-200",String(n)===String(e.id)&&"text-primary border-l-primary font-bold rounded-tr-xl rounded-br-xl bg-primary/15"),children:(0,a.jsx)("p",{className:"text-sm",children:e.text})},e.id))}):null]},e.id))}},27027:function(e,t,l){l.d(t,{DrawerTableOfContents:function(){return h}});var a=l(57437),n=l(2265),r=l(8093),s=l(23340),i=l(75465),o=l(94457),c=l(31406),d=l(68331),m=l(52530),u=l(16446);let x=e=>e.flatMap(e=>[e.id,...e.children.map(e=>e.id)]),h=e=>{var t;let{heading_structure:l,classNameTrigger:h}=e,{cartAnalyses:p}=(0,c.x)(),{isInView:g}=(0,m.T)(),[f,v]=(0,n.useState)(!1),b=(0,n.useMemo)(()=>x(l),[l]),{activeId:N,activeText:w}=(0,d.e)({ids:b});return(0,a.jsxs)(i.Drawer,{open:f,onOpenChange:v,children:[(0,a.jsx)(i.Qz,{asChild:!0,children:g?null:(0,a.jsxs)(r.Button,{className:(0,o.cn)("h-10 left-1/2 z-50 -translate-x-1/2 bg-surface rounded-b-none md:hidden flex rounded-t-xl max-w-[320px] min-w-[320px] fixed bottom-0 border px-6 gap-4",p.length>0?"bottom-[6.9rem]":"bottom-[4.75rem]",h),children:[(0,a.jsx)("span",{className:"line-clamp-1 block w-full text-start text-sm font-medium text-black",children:w.length?w:null===(t=l[0])||void 0===t?void 0:t.text}),(0,a.jsx)(s.J,{name:"unfold_more",className:"min-w-[16px] text-[16px]"})]})}),(0,a.jsxs)(i.DrawerContent,{classNameOverlay:"md:hidden block",className:"z-[100] flex max-h-[90dvh] flex-col justify-start bg-white md:hidden",children:[(0,a.jsx)("div",{className:"sticky top-0 grid h-2.5 w-full place-items-center",children:(0,a.jsx)("div",{className:"h-1 w-16 rounded-full bg-border-muted"})}),(0,a.jsxs)("div",{className:"sticky top-0 flex items-center justify-between border-b bg-white p-4",children:[(0,a.jsx)("p",{className:"text-lg font-medium",children:"У цій статті"}),(0,a.jsx)(r.Button,{onClick:()=>v(!1),className:"grid size-12 place-items-center !bg-transparent p-0",children:(0,a.jsx)(s.J,{name:"close",className:"text-[20px] text-text-muted"})})]}),(0,a.jsx)("div",{className:"flex flex-col items-center overflow-y-scroll",children:(0,a.jsx)(u.v,{onClick:()=>{v(!1)},activeId:N,headings_structure:l})})]})]})}},68331:function(e,t,l){l.d(t,{e:function(){return n}});var a=l(2265);function n(e){var t;let{ids:l}=e,[n,r]=(0,a.useState)(null!==(t=l[0])&&void 0!==t?t:""),[s,i]=(0,a.useState)(""),o=(0,a.useRef)([]),c=(0,a.useRef)(null),d=()=>{var e,t;let l=o.current;if(!l.length)return;let a=null;for(let e of l){let{top:t}=e.getBoundingClientRect(),l=Math.abs(t-120);t<=160&&(!a||l<a.dist||l===a.dist&&t<a.top)&&(a={el:e,dist:l,top:t})}if(!a){let e=Number.POSITIVE_INFINITY,t=null;for(let a of l){let{top:l}=a.getBoundingClientRect();l<e&&(e=l,t=a)}t&&(a={el:t,dist:Math.abs(e-120),top:e})}if(!a)return;let n=a.el.id;if(!n)return;r(e=>{if(!e)return n;if(e===n)return e;let t=l.find(t=>
1t.id===e);return t&&12>Math.abs(t.getBoundingClientRect().top-a.el.getBoundingClientRect().top)?e:n});let s=null!==(t=null===(e=a.el.textContent)||void 0===e?void 0:e.trim())&&void 0!==t?t:"";s&&i(s)},m=()=>{null==c.current&&(c.current=window.requestAnimationFrame(()=>{c.current=null,d()}))};return(0,a.useEffect)(()=>{let e=decodeURIComponent(window.location.hash.replace("#",""));e&&r(e);let t=()=>{let e=decodeURIComponent(window.location.hash.replace("#",""));e&&r(e)};window.addEventListener("hashchange",t),o.current=l.map(e=>document.getElementById(String(e))).filter(Boolean);let a=null;return o.current.length&&(a=new IntersectionObserver(()=>{m()},{root:null,rootMargin:"-".concat(120,"px 0px -70% 0px"),threshold:[0,1]}),o.current.forEach(e=>a.observe(e))),m(),window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m),()=>{null==a||a.disconnect(),window.removeEventListener("hashchange",t),window.removeEventListener("scroll",m),window.removeEventListener("resize",m),null!=c.current&&cancelAnimationFrame(c.current)}},[l,c]),{activeId:n,activeText:s}}},52530:function(e,t,l){l.d(t,{T:function(){return r}});var a=l(3011),n=l(89134);let r=(0,a.U)()((0,n.tJ)(e=>({isInView:!1,setIsInView:t=>e({isInView:t})}),{name:"view-table-of-contents"}))},7587:function(e,t,l){l.r(t),l.d(t,{WrapperBlogSearch:function(){return z}});var a=l(57437),n=l(60349),r=l(27648),s=l(99376),i=l(2265),o=l(72694),c=l(8093),d=l(94457),m=l(45002);let u=e=>{var t;let[l,n]=(0,i.useState)(null!==(t=e.value)&&void 0!==t?t:"");return(0,i.useEffect)(()=>{var t,l;n(null!==(l=null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.toString())&&void 0!==l?l:"")},[e.value]),(0,a.jsx)(m.I,{...e,value:l,onChange:t=>{var l;n(t.target.value),null===(l=e.onChange)||void 0===l||l.call(e,t)},withClearButton:!0,handleClear:()=>{var t;n(""),null===(t=e.handleClear)||void 0===t||t.call(e)},classNameWrapperInput:(0,d.cn)("w-full",e.classNameWrapperInput),classNameWrapper:(0,d.cn)("w-full",e.classNameWrapper),endIconClassName:"text-text-icon_muted",startIconColor:"text-text-icon_muted",className:(0,d.cn)(e.className,"border w-full bg-white hover:bg-blog-hover-search-bar duration-200 transition-colors text-sm font-semibold"),placeholder:"Пошук",startIcon:"search",endIcon:"close"})},x=i.forwardRef((e,t)=>{var l;let{...n}=e;return(0,a.jsx)(m.I,{...n,ref:t,onChange:e=>{var t;null===(t=n.onChange)||void 0===t||t.call(n,e)},handleClear:()=>{var e;null===(e=n.handleClear)||void 0===e||e.call(n)},endIconClassName:(0,d.cn)("rounded-full border [&>svg]:!size-4 size-8",n.endIconClassName),classNameWrapperInput:(0,d.cn)("w-full",n.classNameWrapperInput),classNameWrapper:(0,d.cn)("w-full",n.classNameWrapper),startIcon:null!==(l=n.startIcon)&&void 0!==l?l:"search-bar",startIconClassName:"[&>svg]:size-5",endIcon:"close-bar",withClearButton:!0,className:(0,d.cn)("rounded-none w-full !text-base min-h-14 duration-200 transition-colors hover:bg-blog-search-bar !font-normal border-0 border-b",n.className)})});x.displayName="OpenSearchBar";var h=l(63336),p=l(25138);let g=e=>{var t,l,n;let{href:s,article:i,className:o}=e;return(0,a.jsxs)(r.default,{href:s,className:(0,d.cn)("md:px-5 pl-4 pr-2 py-1.5 gap-6 flex grow bg-white hover:bg-surface-ghost transition-colors duration-200 cursor-pointer items-center justify-between",o),children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"line-clamp-1",children:null!==(l=null==i?void 0:i.title)&&void 0!==l?l:"[Назва статті]"}),(0,a.jsx)("p",{className:"line-clamp-1 text-sm font-normal leading-[1.251] text-text-muted",children:(null==i?void 0:null===(t=i.tags)||void 0===t?void 0:t.length)?i.tags.map((e,t,l)=>"#".concat(e).concat(l.length-1===t?"":", ")):"#невідомастяття"})]}),(0,a.jsx)("div",{className:"h-[56px] min-w-[56px] max-w-[56px] overflow-hidden whitespace-nowrap rounded",children:(0,a.jsx)(p.Z,{className:"h-14 whitespace-nowrap object-cover",alt:(null==i?void 0:i.image)?"Фото ".concat(null!==(n=null==i?void 0:i.title)&&void 0!==n?n:"невідомої"," статті"):"Фото невідомої статті",width:160,height:160,fileSrc:"string"!=typeof(null==i?void 0:i.image)?null==i?void 0:i.image:null,src:(null==i?void 0:i.image)&&"string"==typeof(null==i?void 0:i.image)?i.image:h.default})})]})};var f=l(94158),v=l(70070),b=l(23340);let N=e=>{let{title:t,image:l,onClick:n,color:r,href:s,isActive:i,asLinkChild:o,content:c=(0,a.jsx)(b.J,{name:"hashtag",className:"text-[16px] text-text-icon_muted"}),className:m}=e,u=r?(0,f._$)(r):null;return(0,a.jsxs)(v.zx,{href:s,asLinkChild:!i&&o,onClick:n,className:(0,d.cn)("flex max-h-none h-auto grow max-w-none hover:bg-surface-ghost bg-white duration-0 rounded-none px-5 py-1 items-center gap-4",i&&"!bg-surface-ghost cursor-default",m),children:[(0,a.jsx)("div",{style:u?{"--cat-rgb":u}:void 0,className:(0,d.cn)("overflow-hidden grid place-items-center rounded-full",u?"!bg-[rgb(var(--cat-rgb)/0.05)]":"bg-surface-ghost",l?"max-w-[28px] max-h-[28px] min-w-[28px] min-h-[28px]":"max-w-[32px] max-h-[32px] min-w-[32px] min-h-[32px] p-2"),children:l?(0,a.jsx)(p.Z,{width:28,height:28,alt:"Фото ".concat(t),fileSrc:"string"!=typeof l?l:void 0,src:"string"==typeof l?l:h.default}):(0,a.jsx)("p",{className:"text-text-icon_muted",children:c})}),(0,a.jsx)("p",{className:"line-clamp-1 text-left text-base font-normal text-black",children:t})]})};var w=l(74291),j=l(54916),y=l(99246),C=l(75327),I=l(33741),k=l(2672),_=l(1878);let S=e=>{let{onClear:t}=e;return(0,a.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,a.jsx)("div",{className:"surface-tertiary rounded p-2",children:(0,a.jsx)(b.J,{name:"search_off",className:"size-8 text-primary"})}),(0,a.jsxs)("div",{className:"flex max-w-[272px] flex-col gap-4",children:[(0,a.jsx)("p",{className:"paragraph-l-medium text-center leading-[23px] text-text",children:"Нічого не знайдено"}),(0,a.jsx)("p",{className:"paragraph-s-regular text-center leading-[18px] text-text-muted",children:"Спробуйте інший запит або перегляньте інші статті"})]}),(0,a.jsx)(c.Button,{type:"button",variant:"secondary",className:"mt-2 h-10 w-fit max-w-none",onClick:t,children:"Очистити пошук"})]})};var B=l(3011),E=l(89134);let F=(0,B.U)()((0,E.tJ)((e,t)=>({isEmpty:{"blog-authors":!1,"blog-categories":!1,"blog-tags":!1},setIsEmpty:l=>e({isEmpty:{...t().isEmpty,...l}}),filter_q:"",setFilterQ:t=>e({filter_q:t})}),{name:"search-blog"})),T=e=>{let{filter_q:t,load:l,title:n}=e,r=(0,s.usePathname)(),d=e=>r.includes(e),{setIsEmpty:m}=F(),[u,x]=(0,o.S1)({threshold:.1}),{data:h,hasNextPage:p,fetchNextPage:g,isFetching:f,isFetchingNextPage:v}=(0,I.XI)({params:{load:l,filter_q:t},staleTime:3e5,keys:["infinity-search",l,n],enabled:!!t});return(0,i.useEffect)(()=>{t&&x&&p&&!v&&g()},[t,x,p,v,g]),(0,i.useEffect)(()=>{!t||v||f||(null==h?void 0:h.length)?m({[l]:!1}):m({[l]:!0})},[v,t,f,h]),(null==h?void 0:h.length)&&t?(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"border-b px-5 pb-4 pt-8 text-base font-semibold leading-[1.125] tracking-tighter md:border-b-0 md:p-4 md:pb-2",children:n}),(0,a.jsxs)("div",{className:"flex flex-col py-4 md:py-0",children:[null==h?void 0:h.map(e=>{var t;return(0,a.jsx)(N,{color:(0,_.U2)(e,C.H.BlogCategories)?e.color:void 0,isActive:d(e.slug),title:"name"in e?e.name:"",href:l===C.H.BlogAuthors?j.Z6.authorBlog(e.slug):j.Z6.blogHomeDetails(e.slug),image:l===C.H.BlogAuthors?null!==(t=e.main_image)&&void 0!==t?t:"":void 0,content:(0,_.U2)(e,C.H.BlogCategories)?e.icon:void 0,asLinkChild:!d(e.slug)},e.slug)}),(v||f)&&(0,a.jsx)(c.Spinner,{classNameWrapper:"mx-auto"}),(0,a.jsx)("div",{className:"h-px",ref:u})]})]}):null},z=e=>{var t,l,m,h,p,f;let{isDesktop:v,initialDataBlog:B}=e,E=(0,i.useRef)(null),z=(0,s.usePathname)(),{filter_q:W,isEmpty:H,setFilterQ:P}=F(),{open:A,setOpen:R}=(0,k.F)(),[D,J]=(0,o.S1)({threshold:.1}),O=(0,y.Z)(W.trim(),500),[Z,L]=(0,o.S1)({threshold:.1}),M=(0,s.useRouter)(),U=(0,I.XI)({params:{load:C.H.BlogCategories},keys:["categories-search-bar"],enabled:A}),q=(0,I.XI)({params:{load:C.H.Blog,...O?{filter_q:O}:{}},staleTime:3e5,initialData:O?void 0:B,keys:["articles-search-bar"],enabled:A&&!!O});(0,i.useEffect)(()=>{J&&U.hasNextPage&&U.fetchNextPage()},[J,U.hasNextPage,U.isFetchingNextPage]),(0,i.useEffect)(()=>{O&&L&&q.hasNextPage&&!q.isFetching&&q.fetchNextPage()},[O,L,q.hasNextPage,q.isFetching]),(0,i.useEffect)(()=>
1{if(A){var e;null===(e=E.current)||void 0===e||e.focus()}},[A,E.current]);let V=!!O&&!q.isFetching&&(null===(t=q.data)||void 0===t?void 0:t.length)>5,X=[{load:C.H.BlogCategories,title:"Категорії"},{load:C.H.BlogAuthors,title:"Автори"},{load:C.H.BlogTags,title:"Теги"}],Q=Object.values(H).every(e=>e),Y=q.isPending||U.isPending,$=()=>{var e;P(""),null===(e=E.current)||void 0===e||e.focus()};return(0,a.jsxs)(a.Fragment,{children:[v?(0,a.jsx)("div",{className:"hidden p-6 px-0 pb-5 md:block lg:px-6",children:(0,a.jsx)(u,{handleClear:()=>{M.replace(j.Z6.blog),P("")},onFocus:()=>{R(!0)}})}):null,(0,a.jsx)(w.Dialog,{open:A,onOpenChange:R,children:(0,a.jsxs)(w.DialogContent,{classNameOverlay:"md:block hidden",className:(0,d.cn)("data-[state=open]:!animate-none data-[state=closed]:!animate-none","data-[state=open]:md:!animate-in data-[state=closed]:md:!animate-out","flex flex-col h-dvh w-full max-w-none !rounded-none md:max-h-[640px] md:max-w-[800px] grow md:!rounded-2xl bg-surface p-0 md:p-4 pb-0","shadow-[0_4px_8px_rgba(0,0,0,0.04),_0_8px_16px_rgba(0,0,0,0.04)]"),children:[(0,a.jsxs)(n.f,{children:[(0,a.jsx)(w.DialogTitle,{children:"Модалка для пошуку в блозі"}),(0,a.jsx)(w.DialogDescription,{children:"Модалка для пошуку в блозі"})]}),(0,a.jsx)(x,{startIcon:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,d.cn)("absolute left-0 flex md:hidden items-center"),children:(0,a.jsx)(c.Button,{variant:"ghost",className:"px-5 hover:bg-transparent",onClick:()=>R(!1),children:(0,a.jsx)(b.J,{name:"arrow_back",size:20,className:"size-6 text-text-icon_muted transition-all duration-200"})})}),(0,a.jsx)("div",{className:(0,d.cn)("pointer-events-none md:flex absolute left-4 hidden items-center"),children:(0,a.jsx)(b.J,{name:"search-bar",size:24,className:"text- size-6 transition-all duration-200 group-hover:scale-110"})})]}),ref:E,value:W,placeholder:"Назва статті або імʼя автора",handleClear:$,onChange:e=>{var t;return P(null!==(t=e.currentTarget.value)&&void 0!==t?t:"")},className:(0,d.cn)("md:rounded-xl md:bg-blog-search-bar md:hover:bg-blog-hover-search-bar md:focus:bg-blog-hover-search-bar",W?"border-border border-x border-y":"md:border-transparent md:border-0"),startIconColor:"md:text-black text-text-muted",endIconClassName:"md:bg-white"}),(0,a.jsxs)("div",{className:"relative flex grow flex-col gap-4 overflow-y-scroll md:flex-row md:py-4 md:pl-2 md:pr-6",children:[(0,a.jsxs)("div",{className:"relative flex grow flex-col md:min-w-[440px] md:max-w-[440px]",children:[Y&&(0,a.jsx)(c.Spinner,{classNameWrapper:"py-10 w-full justify-center items-center flex"}),Q&&!(null===(l=q.data)||void 0===l?void 0:l.length)&&(0,a.jsx)("div",{className:"flex h-full grow items-center justify-center ",children:(0,a.jsx)(S,{onClear:$})}),!!(null===(m=q.data)||void 0===m?void 0:m.length)&&(0,a.jsxs)(a.Fragment,{children:[V&&O?(0,a.jsxs)(r.default,{onClick:()=>R(!1),className:"sticky top-0 flex cursor-pointer items-center justify-start gap-3 border-b bg-surface px-5 py-6 hover:bg-blog-search-bar md:static md:border-b-0 md:px-4",href:"".concat(j.Z6.blog,"?filter_q=").concat(O),children:[(0,a.jsx)(b.J,{name:"search-bar",className:"text-[16px] text-text-muted"}),(0,a.jsx)("p",{className:(0,d.cn)("text-base font-normal leading-[1.125] tracking-tighter"),children:"Всі статті для “".concat(O,"”")})]}):(0,a.jsx)("div",{className:(0,d.cn)("md:p-4 md:pb-2 md:pr-5 px-5 pb-4 pt-8 md:border-b-0 border-b"),children:(0,a.jsx)("p",{className:(0,d.cn)("text-base font-bold leading-[1.125] tracking-tighter"),children:"Статті"})}),(0,a.jsxs)("div",{className:"flex flex-col py-4 md:py-0",children:[null===(h=q.data)||void 0===h?void 0:h.map(e=>{var t;return(0,_.g0)(e,C.H.Blog)?(0,a.jsx)(g,{className:"min-h-[68px] py-0.5 pl-5 pr-6 md:pl-4 md:pr-2",article:{image:e.main_image,title:e.title,tags:null===(t=e.blog_tags)||void 0===t?void 0:t.map(e=>e.name)},href:j.Z6.blogHomeDetails(e.slug)},e.slug):null}),(q.isFetchingNextPage||q.isFetching)&&(0,a.jsx)(c.Spinner,{classNameWrapper:"mx-auto"}),(0,a.jsx)("div",{className:"h-1",ref:Z})]})]}),X.map(e=>(0,a.jsx)(T,{load:e.load,title:e.title,filter_q:O},e.load))]}),(0,a.jsxs)("div",{className:"hidden h-fit min-w-[280px] max-w-[280px] flex-col rounded-xl bg-blog-search-bar pb-4 pt-2 md:flex",children:[(0,a.jsx)("div",{className:"pb-2 pl-6 pr-5 pt-4",children:(0,a.jsx)("p",{className:"text-base font-bold leading-[1.125] tracking-tighter",children:!A||(null===(p=U.data)||void 0===p?void 0:p.length)||U.isFetching?"Всі категорії":"Категорій не знайдено"})}),(0,a.jsxs)("div",{className:"flex flex-col px-2",children:[null===(f=U.data)||void 0===f?void 0:f.map(e=>(0,_.U2)(e,C.H.BlogCategories)?(0,a.jsx)(N,{asLinkChild:!0,color:e.color,
1isActive:z.includes(e.slug),href:j.Z6.blogHomeDetails(e.slug),className:"rounded-2xl bg-surface-ghost px-4 py-2 hover:bg-blog-hover-search-bar [&>div]:size-10 [&>div]:bg-blog-search-item-emoji",title:e.name,content:e.icon},e.id):null),U.isFetchingNextPage&&(0,a.jsx)(c.Spinner,{classNameWrapper:"mx-auto"}),(0,a.jsx)("div",{className:"h-0",ref:D})]})]})]})]})})]})}},99246:function(e,t,l){var a=l(2265);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,[l,n]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let l=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(l)}},[e,t]),l}}}]);

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.