1import{_ as F,d as B,u as C,r as s,e as w,o as D,h as c,k as n,q as k,x as V,B as $,t as p,s as q,l as S,a1 as T,c as N,b as P,i as l,y as A,C as E}from"./index-ACukd3-8.js";import{_ as R}from"./ContentWithAccordion-C3C29vHZ.js";import{p as z}from"./useAccordion-DY0-Epe6.js";const M={class:"main-banner search-page"},j={class:"container py-[120px]!"},G={key:0,class:"text-center my-20!"},H={key:1,class:"found-page-content"},J={class:"banner-title font-play mb-8"},K={class:"content-wrapper"},L={key:0,class:"middle-pic cursor-pointer"},O={class:"people-grid-item"},Q={class:"text-2xl! text-center"},U={class:"text-center"},W={key:2,class:"text-center my-10"},X={__name:"Found",setup(Y){const{locale:f}=B(),g=C(),u=N(),y=P(),r=s(!0),e=s(null),d=s({ru:"",kk:"",en:""}),v=s({ru:"",kk:"",en:""}),_=s({ru:[],kk:[],en:[]}),o=s({image:null,position:null,contact:null}),h=w(()=>d.value[f.value]||d.value.ru||"СÑÑаниÑа не найдена"),x=async()=>{const i=u.query.id,t=u.query.content_type;if(!i){console.error("Page ID not provided"),r.value=!1;return}try{r.value=!0;let a="/content/pages/";t==="news"?a="/content/news/":t==="service"?a="/content/services/":t==="event"?a="/content/events/":t==="person"&&(a="/content/persons/");const I=`${a}?all=true&id=${i}`,m=await g.getData(I,!1);m?.data&&(e.value=m.data[0],d.value={ru:e.value?.title?.ru||"",kk:e.value?.title?.kk||"",en:e.value?.title?.en||""},v.value={ru:e.value?.content?.ru||"",kk:e.value?.content?.kk||"",en:e.value?.content?.en||""},_.value=z(e.value?.accordion),o.value.image=e.value.image?.original,o.value.position=e.value.position,o.value.contact=e.value.contact)}catch(a){console.error("Error loading page data:",a)}finally{r.value=!1}},b=()=>{y.back()};return D(()=>{x()}),(i,t)=>(l(),c("section",M,[n("div",j,[k($,{variant:"outlined","prepend-icon":"mdi-arrow-left",class:"mb-6 outlined-btn",onClick:b},{default:V(()=>[...t[0]||(t[0]=[A(" Ðазад к поиÑÐºÑ ",-1)])]),_:1}),r.value?(l(),c("div",G,[k(E,{indeterminate:"",color:"#FFFFFF"})])):e.value?(l(),c("div",H,[n("h1",J,p(h.value),1),n("div",K,[S(u).query.content_type==="person"?(l(),c("div",L,[n("div",O,[n("div",{class:"picture",style:T({backgroundImage:`var(--people-gradient), url(${o.value.image})`})},null,4)]),n("p",Q,p(o.value.position?.[i.$i18n.locale]),1),n("p",U,p(o.value.contact),1)])):(l(),q(R,{key:1,htmlContent:v.value,accordionItems:_.value},null,8,["htmlContent","accordionItems"]))])])):(l(),c("div",W,[...t[1]||(t[1]=[n("h2",{class:"text-2xl"},"СÑÑаниÑа не найдена",-1),n("p",{class:"mt-4"},"Ð ÑожалениÑ, не ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÑодеÑжимое ÑÑÑаниÑÑ.",-1)])]))])]))}},ne=F(X,[["__scopeId","data-v-30afb3d2"]]);export{ne 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.