1import{f as $,g as N,u as E,j as I,d as M,k as U,i as D,e as F}from"./entry_entry_Drpi5Ggf.js";import{_ as T}from"./chunk_CommonVideoComponent_Ybu687x1.js";import{s as b}from"./chunk_constants_DHVk_pGo.js";import{z as q,w as R,C as W,q as j,Q as k,E as z,S as o,Z as p,Y as m,y as a,X as Q,$ as A,_ as O,W as X,b as Y,c as l,x as Z}from"./chunk_swiper-vue_Cr0bRU3B.js";import"./chunk_functions_BFOgv6Es.js";const G=q({__name:"BarComponent",setup(H){const{$apiFetch:g}=$(),x=N(),V=E(),d=Y(!1);let t=null;const r=l(()=>x.path.startsWith("/kids")?"kids":"adult"),B=l(()=>r.value==="adult"?"kids":"adult"),C=l(()=>`/${B.value}`),S=l(()=>r.value==="adult"?"ÐеÑÑм":"ÐзÑоÑлÑм"),_=l(()=>r.value==="adult"?b.kidSplitVideo:b.adultSplitVideo),u=Z(null);let f=0;const h=async()=>{const s=++f;if(!d.value){u.value=null;return}u.value=null;const e=await g(D.settingFiles.current(_.value)).catch(()=>null);s===f&&(u.value=e)},w=s=>[s?.file,s?.additionalFile].reduce((i,n)=>(n?.contentUrl&&i.push({contentUrl:n.contentUrl,mimeType:n.mimeType,codec:n.codec?.value}),i),[]),v=l(()=>w(u.value)),c=()=>{d.value=t?.matches??!1};return R([d,_],()=>{h()}),W(()=>{t=window.matchMedia("(max-width: 1279px)"),c(),t.addEventListener?t.addEventListener("change",c):t.addListener(c)}),j(()=>{t&&(t.removeEventListener?t.removeEventListener("change",c):t.removeListener(c))}),(s,e)=>{const i=I,n=M,y=T,L=U;return k(),z("div",{class:X([{"bar--kids":a(r)==="kids"},"bar"])},[o(n,{to:`/${a(r)}/clinics`,class:"bar__link"},{default:p(()=>[o(i,{name:"bar/clinics",class:"icon-22",filled:""}),e[1]||(e[1]=m(" Ðлиники ",-1))]),_:1},8,["to"]),o(n,{to:`tel:${s.$config.public.phone}`,class:"bar__link"},{default:p(()=>[o(i,{name:"bar/call",class:"icon-22",filled:""}),e[2]||(e[2]=m(" Ðвонок ",-1))]),_:1},8,["to"]),Q("button",{onClick:e[0]||(e[0]=J=>a(V).openModal("appointment")),class:"bar__link"},[o(i,{name:"bar/appointment",class:"icon-22",filled:""}),e[3]||(e[3]=m(" ÐапиÑÑ ",-1))]),o(n,{class:"bar__link-video-wrapper",to:a(C)},{default:p(()=>[a(v).length?(k(),A(y,{key:0,muted:"",loop:"",autoplay:"",playsinline:"",preload:"none",sources:a(v),class:"bar__link-video"},null,8,["sources"])):O("",!0),o(L,{class:"bar__link-video-text",title:a(S)},null,8,["title"])]),_:1},8,["to"])],2)}}}),oe=Object.assign(F(G,[["__scopeId","data-v-b32a0b5d"]]),{__name:"BarComponent"});export{oe as default};
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.