PageSourceSearch

https://mtdi.kz/assets/AhmettanuPostDetail-c608abfb.js

js mtdi.kz collected 2026-10-02 20:50:41 UTC 5,506 bytes, 1 lines download raw bytes

1import{d as E,b0 as A,b1 as $,f as g,r as w,H as i,K as s,I as v,J as h,Y as l,W as c,U as x,Q as S,af as M,ap as y,aq as D,B as a,X as C,C as P}from"./vendor-vue-61d73241.js";import{g as I}from"./assets-043a9b4a.js";import{A as N,g as V}from"./AhmettanuPostEditModal-18319782.js";import{u as q}from"./useSeoMeta-0a6a33d7.js";import{u as F,_ as R}from"./index-e410f525.js";import{c as z}from"./cmsAccess-ea0cd7f2.js";import{S as H}from"./ShareButtons-88f2cba3.js";import"./vendor-cjs-helpers-de833af9.js";import"./vendor-sweetalert2-cfa1285a.js";import"./apiError-93eefb89.js";import"./useImageEditor-b5b755e3.js";import"./RichTextEditor-5f803c6f.js";import"./vendor-editor-f1421049.js";import"./ContentApi-9f062eed.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 J=E({name:"AhmettanuPostDetail",components:{AhmettanuPostEditModal:N,ShareButtons:H},setup(){const t=A(),e=$(),_=F(),p=g(()=>String(t.params.slug)),r=g(()=>V(p.value,String(t.params.item))),B=g(()=>{var n;return(((n=r.value)==null?void 0:n.item.content)||"").replace(/<[^>]*>/g,"").trim().length>0}),d=g(()=>{const o=r.value;return o?o.section.items.map((n,m)=>({item:n,ref:n.slug||String(m)})).filter((n,m)=>m!==o.index).slice(0,5):[]});q(()=>{var o,n,m;return{title:(o=r.value)==null?void 0:o.item.title,description:(n=r.value)==null?void 0:n.item.description,image:(m=r.value)==null?void 0:m.item.image,type:"article"}});const b=g(()=>z(_)),f=w(null);return{resolved:r,sectionSlug:p,hasContent:B,otherItems:d,getAssetPath:I,canManage:b,editModal:f,openEdit:()=>{var n;const o=r.value;o&&((n=f.value)==null||n.open(p.value,o.index,o.item))},onSaved:o=>{o&&o!==String(t.params.item)&&e.replace(`/ahmettanu/${p.value}/${o}`)}}}});const K={class:"container-xxl py-8 ahmettanu-section"},L={key:0,class:"card"},Q={class:"card-header border-0 pt-6"},T={class:"card-title flex-column align-items-start"},U={class:"d-flex align-items-center gap-3"},W={class:"fw-bold m-0 fs-2"},X={key:0,class:"badge badge-light-primary"},Y={class:"text-muted mt-2 mb-0"},j={class:"card-body pt-4"},G=["src","alt"],O={key:1,class:"ahmettanu-post-content fs-5 text-gray-800"},Z={key:2,class:"fs-5 text-gray-800"},tt={key:3,class:"text-center text-muted py-10"},et={class:"d-flex flex-column gap-3"},st={class:"flex-grow-1"},ot={class:"d-flex align-items-center flex-wrap gap-2"},at={class:"fw-bold text-gray-900 fs-6"},it={key:0,class:"badge badge-light-primary"},nt={key:0,class:"text-gray-600 mb-0 mt-1 fs-7"},ut={key:1,class:"card"},rt={class:"card-body text-center py-15"};function lt(t,e,_,p,r,B){const d=y("router-link"),b=y("ShareButtons"),f=y("AhmettanuPostEditModal"),k=D("safe-html");return a(),i("div",K,[t.resolved?(a(),i("div",L,[s("div",Q,[s("div",T,[s("div",U,[v(d,{to:`/ahmettanu/${t.sectionSlug}`,class:"btn btn-sm btn-icon btn-light btn-active-light-primary","aria-label":`«${t.resolved.section.title}» бөліміне оралу`},{default:h(()=>[...e[1]||(e[1]=[s("i",{class:"bi bi-arrow-left fs-3"},null,-1)])]),_:1},8,["to","aria-label"]),s("h1",W,l(t.resolved.item.title),1),t.resolved.item.year?(a(),i("span",X,l(t.resolved.item.year),1)):c("",!0),t.canManage?(a(),i("button",{key:1,type:"button",class:"btn btn-sm btn-icon btn-light-primary",title:"Постты өңдеу",onClick:e[0]||(e[0]=(...u)=>t.openEdit&&t.openEdit(...u))},[...e[2]||(e[2]=[s("i",{class:"bi bi-pencil"},null,-1)])])):c("",!0)]),s("p",Y,[v(d,{to:`/ahmettanu/${t.sectionSlug}`,class:"text-muted text-hover-primary"},{default:h(()=>[C(l(t.resolved.section.title),1)]),_:1},8,["to"])])])]),s("div",j,[t.resolved.item.image?(a(),i("img",{key:0,src:t.getAssetPath(t.resolved.item.image),alt:t.resolved.item.title,class:"ahmettanu-post-cover mb-6",loading:"lazy"},null,8,G)):c("",!0),t.hasContent?x((a(),i("div",O,null,512)),[[k,t.resolved.item.content]]):t.resolved.item.description?(a(),i("p",Z,l(t.resolved.item.description),1)):(a(),i("div",tt," Материал толықтырылуда. ")),v(b,{title:t.resolved.item.title,slug:t.resolved.item.slug||""},null,8,["title","slug"]),t.otherItems.length?(a(),i(S,{key:4},[e[5]||(e[5]=s("div",{class:"separator my-8"},null,-1)),e[6]||(e[6]=s("h3",{class:"fw-bold fs-4 mb-4"},"Бөлімнің басқа материалдары",-1)),s("div",et,[(a(!0),i(S,null,M(t.otherItems,u=>(a(),P(d,{key:u.ref,to:`/ahmettanu/${t.sectionSlug}/${u.ref}`,class:"ahmettanu-item d-flex align-items-start gap-4 text-decoration-none"},{default:h(()=>[e[3]||(e[3]=s("div",{class:"ahmettanu-item__icon"},[s("i",{class:"bi bi-file-earmark-text"}
1)],-1)),s("div",st,[s("div",ot,[s("span",at,l(u.item.title),1),u.item.year?(a(),i("span",it,l(u.item.year),1)):c("",!0)]),u.item.description?(a(),i("p",nt,l(u.item.description),1)):c("",!0)]),e[4]||(e[4]=s("i",{class:"bi bi-chevron-right text-gray-400 align-self-center"},null,-1))]),_:2},1032,["to"]))),128))])],64)):c("",!0)])])):(a(),i("div",ut,[s("div",rt,[e[8]||(e[8]=s("i",{class:"bi bi-question-circle fs-3x text-gray-400 mb-4 d-block"},null,-1)),e[9]||(e[9]=s("h3",{class:"fw-bold mb-3"},"Материал табылмады",-1)),v(d,{to:`/ahmettanu/${t.sectionSlug}`,class:"btn btn-primary"},{default:h(()=>[...e[7]||(e[7]=[C(" Бөлімге оралу ",-1)])]),_:1},8,["to"])])])),v(f,{ref:"editModal",onSaved:t.onSaved},null,8,["onSaved"])])}const xt=R(J,[["render",lt],["__scopeId","data-v-6de20c02"]]);export{xt 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.