PageSourceSearch

https://doctor.kz/_nuxt/BUk4tL_B.js

js doctor.kz collected 2026-10-05 10:29:51 UTC 13,404 bytes, 1 lines download raw bytes

1import{n as e}from"./Byr4mF-i.js";import{o as t}from"./0tcPgztD.js";import{Ct as n,D as r,E as i,Ht as a,Kt as o,On as s,Yt as c,Zn as l,_ as u,b as d,bt as f,ct as p,er as m,g as h,mt as g,o as _,qt as v,tr as y,v as b,vn as x,xn as S}from"./CJOrt7RF.js";import{J as C,V as w}from"./DoljSknZ.js";import{h as ee,i as te,m as T}from"./BvnyFXrb.js";import{t as ne}from"./DcJahiWU.js";import{t as re}from"./DP4oonF6.js";import{t as ie}from"./C-cmyk7Z.js";import{t as ae}from"./C485Jffx.js";import{t as E}from"./BfafpFqt.js";import{t as D}from"./DwN4MXzP.js";import{t as O}from"./Cw5IiD7m.js";import{t as oe}from"./85DwuKpF.js";import{n as k,t as A}from"./cCHjCMs8.js";import{t as se}from"./YfoqTp2k.js";import{o as j}from"./ChowZwW5.js";import{t as M}from"./Dz3Ik9hl2.js";import{t as ce}from"./CNs_Ozdc2.js";import{t as le}from"./BT2O6aLX2.js";import{t as ue}from"./DLnAoyrC2.js";import{t as de}from"./DagSGbJP2.js";import{t as N}from"./Dkkraemm2.js";import{n as fe,t as pe}from"./DB6_kANq2.js";import{r as me,t as P}from"./C9sUDyXV.js";import{a as he,n as ge,o as _e,r as ve,s as ye,t as be}from"./TRqU0AhO.js";import{t as F}from"./Cq_5Kw6C.js";import{n as xe,r as Se,t as Ce}from"./BBl8DtON.js";function we(e){let t=me(),n=h(()=>{let e=t=>t.map(t=>(t.services?.length&&(t.children=t.services,e(t.services)),t.id=t.EQUIPMENT_CODE,t.label=t.NAME,t));return e(t.equipmentsFilters)}),r=h(()=>{let n=t=>t.reduce((t,r)=>(e.value.equipments?.includes(r.id)&&t.push(r),r.services?.length&&t.push(...n(r.services)),t),[]);return n(t.equipmentsFilters)});return{equipments:n,selectedExistsEquipments:r,selectedEquipmentsLabel:h(()=>r.value?.length?r.value.length>1?`Выбрано ${r.value.length}`:r.value[0].NAME:`Нужные услуги`)}}var Te={class:`companies-filter__wrap`},I={class:`companies-filter__select`},L={class:`companies-filter__more-dropdown`},Ee=[`id`,`onUpdate:modelValue`,`onChange`],R=[`for`],De={__name:`ClinicsFilter`,props:{filter:{type:Function,required:!0},specializations:{type:Array,default:()=>[]}},setup(t){let o=t,{t:p}=e(),m=T(),b=[{key:`gov_order`,label:p(`companies:clinics:gobmp`)},{key:`online_entry`,label:p(`button:online-booking`)},{key:`issues`,label:p(`button:ask`)},{key:`hours24`,label:p(`button:round-the-clock`)}],S=x(E()),{equipments:ee,selectedExistsEquipments:te,selectedEquipmentsLabel:ne}=we(S),re=h(()=>m.query.q||m.query.specialization||m.query.equipments||m.query.more),ae=h(()=>b.filter(e=>S.value[e.key]));a([()=>m.query,()=>m.params],()=>{Object.keys(m.query).length>0&&(m.query.q&&(S.value.q=m.query.q),m.query.specialization&&(S.value.specialization=m.query.specialization),m.query.equipments&&(S.value.equipments=[],S.value.equipments=m.query.equipments.split(`,`),S.value.equipments=S.value.equipments.map(e=>Number.parseInt(e))),S.value.gov_order=m.query.more?.includes(`gov_order`),S.value.online_entry=m.query.more?.includes(`online_entry`),S.value.issues=m.query.more?.includes(`issues`),S.value.hours24=m.query.more?.includes(`24hours`))},{immediate:!0});function E(){return{q:``,specialization:null,equipments:null,gov_order:!1,online_entry:!1,issues:!1,hours24:!1}}function oe(e){j(`equipments`,e)}let se=k(e=>{j(`q`,e)},500);function j(e,t){S.value[e]=t,M()}function M(){o.filter?.(S.value)}function ce(){S.value=E(),M()}return(e,a)=>{let o=O,p=ie,m=n(`tooltip`);return g(),d(`form`,{class:`companies-filter`,onSubmit:a[3]||=C(()=>{},[`prevent`])},[u(`div`,Te,[r(s(A),{modelValue:s(S).q,"onUpdate:modelValue":a[0]||=e=>s(S).q=e,class:`companies-filter__search`,placeholder:e.$t(`companies:filters:search`),name:`q`,onInput:s(se)},{"icon-suffix":v(()=>[r(o,{name:`search`,width:18,height:18})]),_:1},8,[`modelValue`,`placeholder`,`onInput`]),u(`div`,I,[u(`div`,{class:`companies-filter__selector`,onClick:a[1]||=t=>e.$modal.show(`equipments-modal`)},[u(`span`,null,y(s(ne)),1),a[4]||=u(`img`,{class:`icon`,src:`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.291%2010.7074C16.9214%2010.0776%2016.4754%209%2015.5842%209H8.41268C7.52199%209%207.07572%2010.0767%207.70525%2010.7068L11.2878%2014.2926C11.6782%2014.6833%2012.3113%2014.6836%2012.702
1%2014.2932L16.291%2010.7074Z'%20fill='%238F92A1'%20fill-opacity='0.4'/%3e%3c/svg%3e`,width:`24`,height:`24`},null,-1)]),r(p,null,{default:v(()=>[r(P,{id:`equipments-modal`,title:e.$t(`companies:filters:services`),options:s(ee),"selected-options":s(te),onSelect:oe},null,8,[`title`,`options`,`selected-options`])]),_:1})]),r(s(F),{class:`companies-filter__select`,options:t.specializations,"default-label":e.$t(`companies:filters:specialisation`),"initial-value":s(S).specialization,"label-prop-name":`CATEGORY_NAME`,"value-prop-name":`CATEGORY_CODE`,"image-prop-name":`CATEGORY_IMAGE`,onChange:a[2]||=e=>j(`specialization`,e.CATEGORY_CODE)},null,8,[`options`,`default-label`,`initial-value`]),r(s(D),{class:l([`companies-filter__more`,{"is-active":s(ae).length}]),"hide-click-content":!1,"hide-on-scroll":``},{"button-content":v(()=>[i(y(e.$t(`common:more`)),1)]),content:v(()=>[u(`ul`,L,[(g(),d(_,null,f(b,e=>u(`li`,{key:e.key},[c(u(`input`,{id:e.key,"onUpdate:modelValue":t=>s(S)[e.key]=t,type:`checkbox`,onChange:t=>j(e.key,s(S)[e.key])},null,40,Ee),[[w,s(S)[e.key]]]),u(`label`,{class:`companies-filter__more-label`,for:e.key},y(e.label),9,R)])),64))])]),_:1},8,[`class`]),c((g(),d(`button`,{class:l([`companies-filter__reset`,{"is-disabled":!s(re)}]),type:`button`,onClick:ce},[...a[5]||=[u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`},[u(`path`,{d:`M5.41 2h13.17c1.1 0 2 .91 2 2.02v2.22c0 .81-.5 1.82-1 2.32l-4.29 3.84c-.6.51-1 1.52-1 2.32v4.34c0 .61-.4 1.41-.9 1.72L12 21.7c-1.3.81-3.09-.1-3.09-1.72v-5.35c0-.71-.4-1.62-.8-2.12L4.32 8.47c-.5-.51-.9-1.41-.9-2.02V4.13c0-1.22.9-2.13 1.99-2.13Z`,opacity:`.4`}),u(`path`,{fill:`#F63F45`,"fill-rule":`evenodd`,d:`M18 20a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z`,"clip-rule":`evenodd`}),u(`path`,{fill:`#fff`,"fill-rule":`evenodd`,d:`M16.624 11.777a.6.6 0 0 0-.849.849l1.376 1.376-1.376 1.375a.6.6 0 1 0 .849.849L18 14.85l1.375 1.376a.6.6 0 0 0 .849-.849l-1.376-1.375 1.376-1.376a.6.6 0 1 0-.849-.849L18 13.153l-1.376-1.376Z`,"clip-rule":`evenodd`})],-1)]],2)),[[m,`Сбросить фильтр`]])])],32)}}},Oe={class:`companies-page`},ke={class:`container is-compact`},Ae={key:2,class:`companies-page__content`},je={class:`companies-page__list`},Me={key:3,class:`companies-page__map`},z={__name:`index`,async setup(n){let l,C;ce({middleware:`companies-location-redirect`});let{$http:w}=t(),T=ee(),{t:D}=e(),O=ae(),k=ne(`geoLocation`),A=me(),P=null,F=null,{page:we,skip:Te,limit:I,route:L,genPageUrl:Ee}=fe(),R=x(!0),z=x(null),B=x(null),Ne=S([]),V=S(null),H=S([]),U=S([]),W=x(!1),G=x(L.query.sort??``),{companiesMap:Pe,openAppointmentModal:Fe,openQuestionModal:Ie,openMapModal:Le}=le(U),{locationCode:K,locationAlias:Re,showByLocation:q}=ye(k),ze=h(()=>R.value||B.value?.equipments!==L.query.equipments||B.value?.specialization!==L.query.specialization||B.value?.more!==L.query.more),J=h(()=>L.query.mode===`map`&&q.value),{data:Y,error:X,status:Z}=([l,C]=o(()=>re(h(()=>L.fullPath),()=>He(),`$0K9DkbS0rn`)),l=await l,C(),l);if(X.value)throw te({status:X.value?.statusCode,statusText:X.value?.message,fatal:!0});let Q=h(()=>({title:D(`companies:header:title`,{city:z.value??``}),description:D(`companies:header:subtitle`),keywords:D(`companies:keywords`)})),Be=h(()=>j(V.value?.CONTENT)),Ve=h(()=>J.value?`map`:`list`),$=h(()=>J.value?U.value.length:H.value?.[0]?.RECCOUNT??0);a(()=>Y.value,()=>{Y.value?.specialization&&(Ne.value=Y.value.specialization),Y.value?.meta&&(V.value=Y.value.meta),H.value=Y.value?.companies??[],Y.value?.watchPreviousParams&&(B.value=Y.value.watchPreviousParams),Y.value?.locationName&&(z.value=Y.value.locationName)},{immediate:!0}),a(()=>L.query,e=>{e.mode===`map`&&q.value&&Ge()},{immediate:!0}),a(k,e=>{G.value=``;let t={...L.query};t.gov_order=L.query.more?.includes(`gov_order`),t.online_entry=L.query.more?.includes(`online_entry`),t.issues=L.query.more?.includes(`issues`),t.hours24=L.query.more?.includes(`24hours`),Je(t,!e)}),E({title:()=>V.value?.PAGE_HEADING?.replace(`{_total}`,$.value)??Q.value.title,description:()=>V.value?.META_TAG_DESCRIPTION?.replace(`{_total}`,$.value)??Q.value.description,keywords:()=>V.value?.META_TAG_KEYWORDS??Q.value.keywords}),p(()=>{R.value=!1});async function He(){P?.abort(),F?.abort(),P=new AbortController;let e=P.signal;try{let t=[...L.params.location&&L.params.location!==B.value?.location?[oe(w).getLocation(K.value)]:[Promise.resolve(null)],...A.specializationsFilters.length?[Promise.resolve(A.specializationsFilters)]:[Ce(w).getSpecializations()],...A.equipmentsFilters.length?[Promise.resolve(A.equipmentsFilters)]:[Ce(w).getEquipments()],...ze.value?[Ue(e)]:[Promise.resolve(null)],...J.value?[Promise.resolve(null)]:[We(e)]],[n,r,i,a,o]=await Promise.all(t);
1return A.specializationsFilters.length||A.updateSpecializations(r),A.equipmentsFilters.length||A.updateEquipments(i),{locationName:n?.NAME,specialization:r,meta:a,companies:o,watchPreviousParams:{location:L.params.location,specialization:L.query.specialization,equipments:L.query.equipments,more:L.query.more}}}catch(e){if(e.name===`AbortError`)return null;throw e}}function Ue(e){let t={"searched-data":`clinics`,q:L.query.q??null,location:K.value,specialization:L.query.specialization,equipments:L.query.equipments?.split(`,`),more:L.query.more?.split(`,`),skip:0,limit:1};return N(w).getMeta(t,e)}function We(e){let t={q:L.query.q,location:K.value,specialization:L.query.specialization,equipments:L.query.equipments?.split(`,`).map(e=>Number.parseInt(e)),more:L.query.more?.split(`,`),sort:L.query.sort,skip:Te.value,limit:I};return N(w).getCompanies(t,e)}async function Ge(){F&&F.abort(),F=new AbortController;let e=F.signal;W.value=!0;let t={q:L.query.q,location:K.value,specialization:L.query.specialization,equipments:L.query.equipments?.split(`,`).map(e=>Number.parseInt(e)),more:L.query.more?.split(`,`)};try{U.value=await N(w).getCompaniesMap(t,e)}catch(e){if(e.name===`AbortError`||e.cause?.name===`AbortError`)return null}finally{W.value=!1}}function Ke(e){let t={name:L.name,query:{...L.query}};e===`map`?(G.value=null,delete t.query.sort,delete t.query.page,t.query.mode=e):delete t.query.mode,T.push(t)}function qe(e){G.value=e;let t={...L.query};if(t.sort=e,t.more){let e=t.more.split(`,`);delete t.more,e.forEach(e=>{let n=e===`24hours`?`hours24`:e;t[n]=!0})}Je(t)}function Je(e={},t=!1){let n={path:!t&&Re.value?O(`/clinics/location/${Re.value}`):O(`/clinics`),query:{}};e.q?.length&&(n.query.q=e.q),e.specialization&&(n.query.specialization=e.specialization),e.equipments&&e.equipments.length>0&&(n.query.equipments=String(e.equipments)),(e.gov_order||e.online_entry||e.issues||e.hours24)&&(n.query.more=[],e.gov_order&&n.query.more.push(`gov_order`),e.online_entry&&n.query.more.push(`online_entry`),e.issues&&n.query.more.push(`issues`),e.hours24&&n.query.more.push(`24hours`),n.query.more=String(n.query.more)),G.value&&(n.query.sort=G.value),L.query.mode&&(n.query.mode=L.query.mode),window.scrollTo(0,0),T.push(n)}function Ye(e){return e.WEBSITE&&e.REDIRECT_TO_WEBSITE?e.WEBSITE:O(`/clinics/${e.COMPANY_CODE}`)}return(e,t)=>{let n=ie;return g(),d(`div`,Oe,[u(`div`,ke,[r(_e,{class:`companies-page__nav`}),c(r(De,{class:`companies-page__filters`,filter:Je,specializations:s(Ne),onReset:t[0]||=e=>qe(null)},null,8,[`specializations`]),[[s(be)]]),r(he,{class:`companies-page__results`,loading:s(Z)===`pending`,offset:150,"target-selector":`.companies-page__content`},{default:v(()=>[i(y(e.$t(`companies:header:count`)+s($)),1)]),_:1}
1,8,[`loading`]),s(Z)===`pending`&&s(ze)?(g(),b(ve,{key:0,class:`companies-page__header`})):(g(),b(ge,{key:1,class:`mb-4 companies-page__header`,"hide-sort":!1,"plain-html":s(Be),title:s(Q)?.title,subtitle:s(Q)?.description,count:e.$t(`companies:header:count`)+s($),"selected-view":s(Ve),"hide-change-mode":!s(q),onSetSort:qe,onSetMode:Ke},null,8,[`plain-html`,`title`,`subtitle`,`count`,`selected-view`,`hide-change-mode`])),s(J)?(g(),d(`div`,Me,[s(W)?(g(),b(se,{key:0,"with-text":``})):(g(),b(n,{key:1},{default:v(()=>[r(xe,{points:s(Pe),"section-path":`/clinics`},null,8,[`points`])]),_:1}))])):(g(),d(`div`,Ae,[u(`div`,je,[s(Z)===`pending`?(g(),d(_,{key:0},f(10,e=>r(Se,{key:e})),64)):(g(),d(_,{key:1},[s(H).length?(g(),d(_,{key:0},[(g(!0),d(_,null,f(s(H),e=>(g(),b(ue,{key:e.COMPANY_CODE,company:e,"specialisations-prop":`categories_string`,"company-link":Ye(e),"company-link-target":e.WEBSITE&&e.REDIRECT_TO_WEBSITE?`_blank`:`_self`,style:m({viewTransitionName:`company-${e.COMPANY_CODE}`}),onOpenAppointment:t=>s(Fe)(e.COMPANY_CODE),onAskQuestion:t=>s(Ie)(e.COMPANY_CODE),onAddressClick:s(Le)},null,8,[`company`,`company-link`,`company-link-target`,`style`,`onOpenAppointment`,`onAskQuestion`,`onAddressClick`]))),128)),r(s(pe),{sticky:``,current:s(we),"per-page":s(I),total:s($),"gen-link":s(Ee),"show-input-tooltip":``,scrollup:``,"scrollup-selector":`.companies-page__content`},null,8,[`current`,`per-page`,`total`,`gen-link`])],64)):(g(),b(M,{key:1,class:`text-center`,"small-padding":``},{default:v(()=>[...t[1]||=[i(` Нет компаний по выбранному фильтру `,-1)]]),_:1}))],64))])]))]),r(n,null,{default:v(()=>[r(de)]),_:1})])}}};export{z 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.