PageSourceSearch

https://mtdi.kz/assets/ArticleSectionDetail-6eaacc6c.js

js mtdi.kz collected 2026-10-02 20:51:07 UTC 9,891 bytes, 1 lines download raw bytes

1import{d as R,b0 as X,b1 as Y,f as d,r as A,w as L,H as n,K as e,I as h,J as w,Y as c,M as _,Q as k,af as I,L as x,W as B,X as p,U as H,ap as E,aq as J,B as a,C as Q}from"./vendor-vue-61d73241.js";import{g as U,r as W,d as G,c as Z}from"./contentEdit-4968fa93.js";import{u as tt}from"./useSeoMeta-0a6a33d7.js";import{f as et}from"./slugRef-b9c81db7.js";import{a as st}from"./publicationDate-e747756d.js";import{u as lt,_ as it}from"./index-e410f525.js";import{c as ot}from"./cmsAccess-ea0cd7f2.js";import{S as at}from"./ShareButtons-88f2cba3.js";import"./vendor-cjs-helpers-de833af9.js";import"./ContentApi-9f062eed.js";import"./sectionArticles-72e51557.js";import"./assets-043a9b4a.js";import"./sectionThemes-a472fb8d.js";import"./nestedItems-db66ca4e.js";import"./vendor-bootstrap-c17a3fde.js";import"./vendor-utils-3b44de43.js";import"./vendor-charts-72fa718d.js";import"./vendor-prism-dba95ea4.js";import"./vendor-element-plus-a1318771.js";const nt=R({name:"ArticleSectionDetail",components:{ShareButtons:at},setup(){const t=X(),s=Y(),C=lt(),P=d(()=>ot(C)),y=d(()=>t.meta.sectionKey),r=d(()=>U(y.value)),f=d(()=>{const l=t.params.subcategory;return typeof l=="string"?l:""}),m=d(()=>{if(f.value)return W(r.value,f.value)}),S=d(()=>{var l;return((l=m.value)==null?void 0:l.title)??r.value.title}),i=d(()=>r.value.stickerLabel),g=d(()=>r.value.stickerStyle),D=d(()=>m.value?{path:r.value.listPath,query:{topic:m.value.slug}}:r.value.listPath),K=d(()=>r.value.detailPathPrefix),M=l=>G(r.value,l),o=A(null),v=A(0),$=d(()=>{var l;return o.value?(l=o.value.images)!=null&&l.length?o.value.images:o.value.image?[o.value.image]:[]:[]}),T=d(()=>{const l=r.value.posts;return o.value?(m.value?l.filter(b=>b.subcategoryKey===m.value.key):l).filter(b=>b.id!==o.value.id).slice(0,5):m.value?l.filter(b=>b.subcategoryKey===m.value.key).slice(0,5):l.slice(0,5)}),N=l=>{var u;return((u=l.images)==null?void 0:u[0])??l.image??""},V=l=>{const u=["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"];return`${l.getDate()} ${u[l.getMonth()]} ${l.getFullYear()}`},z=l=>{const u=et(r.value.posts,l)??null;if(u&&m.value&&u.subcategoryKey!==m.value.key){o.value=null;return}o.value=u,v.value=0},j=()=>{if(!o.value)return;const l=r.value.posts.indexOf(o.value);s.push(Z({collection:"article_sections",ref:y.value,index:l>=0?l:0,postId:String(o.value.id)},t.fullPath))},q=()=>{v.value>0&&v.value--},F=()=>{v.value<$.value.length-1&&v.value++},O=l=>{v.value=l};return L([()=>t.params.id,()=>t.params.subcategory,y],([l])=>{l!=null?z(String(l)):o.value=null},{immediate:!0}),L(()=>r.value.posts,()=>{t.params.id!=null&&z(String(t.params.id))}),tt(()=>{var l,u,b;return{title:((l=o.value)==null?void 0:l.title)??t.meta.pageTitle,description:(u=o.value)==null?void 0:u.description,image:(b=o.value)==null?void 0:b.image,type:"article"}}),{sectionTitle:S,stickerLabel:i,stickerStyle:g,listPath:D,detailPrefix:K,getPostDetailPath:M,post:o,canManage:P,goEdit:j,images:$,otherPosts:T,currentImageIndex:v,previousImage:q,nextImage:F,goToImage:O,getCover:N,formatDate:V,authorLabel:st}}});const rt={class:"card"},ut={class:"card-header border-0 pt-6"},dt={class:"card-title"},ct={class:"fw-bold"},mt={class:"card-body pt-0"},gt={key:0,class:"row g-5 g-xl-8"},pt={class:"col-lg-8 col-xl-9"},bt={class:"d-flex flex-column"},ft={class:"position-relative card-rounded mb-10 overflow-hidden h-400px news-carousel-container"},vt={class:"position-absolute top-0 end-0 m-3",style:{"z-index":"10"}},yt={class:"position-relative h-100",style:{overflow:"hidden"}},ht={key:1,class:"bgi-no-repeat bgi-size-cover bgi-position-center h-100 bg-light-primary d-flex align-items-center justify-content-center"},wt=["disabled"],kt=["disabled"],xt={key:1,class:"position-absolute bottom-0 start-50 translate-middle-x mb-5 d-flex gap-2",style:{"z-index":"10"}},St=["onClick"],_t={class:"mb-5"},It={class:"d-flex align-items-center gap-3 flex-wrap"},Bt={class:"fs-2hx fw-bold text-gray-800 mb-0"},Ct={class:"d-flex align-items-center gap-5 flex-wrap mt-3"},Pt={class:"text-gray-500 fw-semibold fs-5"},Dt={class:"text-gray-500 fw-semibold fs-5"},$t={class:"d-flex align-items-center gap-5"},zt={class:"text-gray-600 fw-semibold d-flex align-items-center"},At={class:"text-gray-600 fw-semibold d-flex align-items-center"},Lt={class:"text-gray-600 fw-semibold d-flex align-items-center"},Et={class:"fs-4 fw-semibold text-gray-700 mb-10"},Kt={class:"d-flex justify-content-end"},Mt={class:"col-lg-4 col-xl-3"},Tt={class:"card card-flush other-news-card"},Nt={class:"card-body pt-0"}
1,Vt={class:"d-flex flex-column gap-5"},jt={class:"symbol symbol-80px flex-shrink-0"},qt={key:1,class:"symbol-label bg-light-primary d-flex align-items-center justify-content-center"},Ft={class:"flex-grow-1"},Ot={class:"text-gray-800 fw-bold fs-6 text-hover-primary mb-1"},Rt={class:"text-gray-500 fw-semibold fs-7"},Xt={class:"d-flex align-items-center gap-3 mt-2"},Yt={class:"text-gray-600 fw-semibold d-flex align-items-center fs-7"},Ht={class:"text-gray-600 fw-semibold d-flex align-items-center fs-7"},Jt={key:1,class:"text-center py-20"};function Qt(t,s,C,P,y,r){const f=E("router-link"),m=E("ShareButtons"),S=J("safe-html");return a(),n("div",rt,[e("div",ut,[e("div",dt,[h(f,{to:t.listPath,class:"btn btn-sm btn-icon btn-light btn-active-light-primary me-3"},{default:w(()=>[...s[3]||(s[3]=[e("i",{class:"bi bi-arrow-left fs-2"},null,-1)])]),_:1},8,["to"]),e("h3",ct,c(t.sectionTitle),1)])]),e("div",mt,[t.post?(a(),n("div",gt,[e("div",pt,[e("div",bt,[e("div",ft,[e("div",vt,[e("span",{class:"badge badge-lg fw-bold px-4 py-2",style:_(t.stickerStyle)},c(t.stickerLabel),5)]),e("div",yt,[t.images.length>0?(a(!0),n(k,{key:0},I(t.images,(i,g)=>(a(),n("div",{key:g,class:"bgi-no-repeat bgi-size-cover bgi-position-center h-100 position-absolute w-100",style:_(`background-image: url('${i}'); transform: translateX(${(g-t.currentImageIndex)*100}%); transition: transform 0.3s ease;`)},null,4))),128)):(a(),n("div",ht,[...s[4]||(s[4]=[e("i",{class:"bi bi-file-text fs-3x text-primary"},null,-1)])]))]),t.images.length>1?(a(),n(k,{key:0},[e("button",{type:"button",class:x(["btn btn-icon btn-lg btn-light-primary position-absolute top-50 start-0 translate-middle-y ms-5",{"opacity-50":t.currentImageIndex===0}]),disabled:t.currentImageIndex===0,onClick:s[0]||(s[0]=(...i)=>t.previousImage&&t.previousImage(...i)),style:{"z-index":"10"}},[...s[5]||(s[5]=[e("i",{class:"bi bi-arrow-left fs-2"},null,-1)])],10,wt),e("button",{type:"button",class:x(["btn btn-icon btn-lg btn-light-primary position-absolute top-50 end-0 translate-middle-y me-5",{"opacity-50":t.currentImageIndex>=t.images.length-1}]),disabled:t.currentImageIndex>=t.images.length-1,onClick:s[1]||(s[1]=(...i)=>t.nextImage&&t.nextImage(...i)),style:{"z-index":"10"}},[...s[6]||(s[6]=[e("i",{class:"bi bi-arrow-right fs-2"},null,-1)])],10,kt)],64)):B("",!0),t.images.length>1?(a(),n("div",xt,[(a(!0),n(k,null,I(t.images,(i,g)=>(a(),n("span",{key:g,class:x(["rounded-circle",t.currentImageIndex===g?"bg-primary":"bg-white bg-opacity-50"]),style:{width:"12px",height:"12px",cursor:"pointer"},onClick:D=>t.goToImage(g)},null,10,St))),128))])):B("",!0)]),e("div",_t,[e("div",It,[e("h1",Bt,c(t.post.title),1),t.canManage?(a(),n("button",{key:0,type:"button",class:"btn btn-sm btn-icon btn-light-primary",title:"Мақаланы өңдеу",onClick:s[2]||(s[2]=(...i)=>t.goEdit&&t.goEdit(...i))},[...s[7]||(s[7]=[e("i",{class:"bi bi-pencil"},null,-1)])])):B("",!0)]),e("div",Ct,[e("span",Pt,[s[8]||(s[8]=e("i",{class:"bi bi-calendar3 me-2"},null,-1)),p(" "+c(t.formatDate(t.post.date)),1)]),e("span",Dt,[s[9]||(s[9]=e("i",{class:"bi bi-person me-2"},null,-1)),p(" "+c(t.authorLabel(t.post.author)),1)]),e("div",$t,[e("span",zt,[s[10]||(s[10]=e("i",{class:"bi bi-eye fs-5 me-2"},null,-1)),p(" "+c(t.post.views),1)]),e("span",At,[s[11]||(s[11]=e("i",{class:"bi bi-chat-dots fs-5 me-2"},null,-1)),p(" "+c(t.post.comments),1)]),e("span",Lt,[s[12]||(s[12]=e("i",{class:"bi bi-heart fs-5 me-2"},null,-1)),p(" "+c(t.post.likes),1)])])])]),s[14]||(s[14]=e("div",{class:"separator mb-10"},null,-1)),H(e("div",Et,null,512),[[S,t.post.content]]),h(m,{title:t.post.title,slug:t.post.slug||""},null,8,["title","slug"]),s[15]||(s[15]=e("div",{class:"separator mb-10"},null,-1)),e("div",Kt,[h(f,{to:t.listPath,class:"btn btn-light btn-active-light-primary fw-bold"},{default:w(()=>[...s[13]||(s[13]=[p(" Артқа ",-1)])]),_:1},8,["to"])])])]),e("div",Mt,[e("div",Tt,[s[19]||(s[19]=e("div",{class:"card-header pt-5"},[e("div",{class:"card-title"},[e("h3",{class:"fw-bold text-gray-800"},"Басқа материалдар")])],-1)),e("div",Nt,[e("div",Vt,[(a(!0),n(k,null,I(t.otherPosts,(i,g)=>(a(),Q(f,{key:i.id,to:t.getPostDetailPath(i),class:x(["d-flex align-items-center gap-3 text-decoration-none other-news-item",{"other-news-item-last":g===t.otherPosts.length-1}])},{default:w(()=>[e("div",jt,[t.getCover(i)?(a(),n("span",{key:0,class:"symbol-label",style:_(`background-image: url('${t.getCover(i)}')`)},null,4)):(a(),n("span",qt,[...s[16]||(s[16]=[e("i",{class:"bi bi-file-text fs-2x text-primary"},null,-1)])]))]),e("div",Ft,[e("div",Ot,c(i.title),1),e("div",Rt,c(t.formatDate(i.date)),1),e("div",Xt,[e("span",Yt,[s[17]||(s[17]=e("i",{class:"bi bi-eye fs-6 me-1"},null,-1)),p(" "+c(i.views),1)]),e("span",Ht,[s[18]||(s[18]=e("i",{class:"bi bi-heart fs-6 me-1"},null,-1)),p(" "+c(i.likes),1)])])])]),_:2},1032,["to","class"]))),128))])])])])])):(a(),n("div",Jt,[s[21]||(s[21]=e("div",{class:"text-gray-400 fw-semibold fs-3 mb-5"},"Материал табылмады",-1)),h(f,{to:t.listPath,class:"btn btn-primary fw-bold"},{default:w(()=>[...s[20]||(s[20]=[p("Артқа",-1)])]),_:1},8,["to"])]))])])}const be=it(nt,[["render",Qt],["__scopeId","data-v-71b46a21"]]);export{be 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.