PageSourceSearch

https://enu.kz/_nuxt/B1v1siaS.js

js enu.kz collected 2026-10-01 10:29:20 UTC 3,553 bytes, 1 lines download raw bytes

1import{_ as K,b as U,q as B,c as S,p as w,r as o,d as j,v as F,x as M,u as q,D as G,aa as J,y as N,o as m,h as d,i as a,t as c,m as v,f as u,I as H,F as z,j as O,E as Q,n as W,k as x,l as I,C as X,G as Y}from"./DgkDjtrN.js";import{f as Z}from"./g_0hD7TH.js";import{N as ee}from"./CUDJdONR.js";import{s as te}from"./DnN6oj2o.js";import{f as R}from"./jc6m43xI.js";import{l as se}from"./BUYSX6p4.js";import"./CVDKv17K.js";const ae={class:"title"},le={class:"flex sm:block sm:justify-content-end mb-4"},oe={class:"flex justify-content-end sm:mb-4 mb-2"},ne={class:"news_wrapper"},ie={class:"img_news"},re=["alt","src"],ue=["title"],ce={class:"news_date"},me={key:0,class:"no_data"},de={key:1,class:"loading"},pe={__name:"NewsPlugin",props:["tags","title"],setup(h){const T=U();B(),S(()=>T.params.slug);const{$host:C}=w();o(null),o([]);const n=o([]);o(0);const{t:_,locale:E}=j(),p=o(!1),A=new ee,L=F();M();const y=q().public.smartEnuApi,k=h;let $=null;const l=o({page:1,rows:6,lang:E,searchText:null,filter:{},categoryId:null,slug:C,tags:k.tags?k.tags:null}),b=o(!1),f=o(0);w().$emitter.$on("updateNews",t=>{l.value=t,i()}),w().$emitter.$on("updateNewsCategory",t=>{l.value=t,i()});const i=async t=>{p.value=!0;const{data:s,error:g}=await G(async()=>await A.getNews(l.value),"$lkjxJvemUD");s.value&&(n.value=s.value,Array.isArray(n.value.items)&&n.value.items.length!==0&&n.value.items.map(r=>{r.main_image_file?r.imageUrl=y+R+r.main_image_file.thumb:r.imageUrl=y+R+r.image1})),p.value=!1,g.value&&console.log(g.value)};i(),J(()=>l.value.searchText,()=>{clearTimeout($),$=setTimeout(()=>{i()},400)});const P=()=>{b.value=!0},V=t=>{l.value.page=t.page+1,l.value.rows=t.rows,f.value=t.first,i()};return(t,s)=>{const g=N("InputText"),r=N("Button"),D=Y;return m(),d(z,null,[a("div",ae,c(h.title.block["title_"+t.$i18n.locale]),1),a("div",le,[a("div",oe,[v(g,{placeholder:u(_)("search"),modelValue:l.value.searchText,"onUpdate:modelValue":s[0]||(s[0]=e=>l.value.searchText=e),onKeyup:H(i,["enter"])},null,8,["placeholder","modelValue"]),v(r,{class:"filter_btn ml-2",label:u(_)("search"),icon:"pi pi-search",iconPos:"right",onClick:i},null,8,["label"])])]),a("div",ne,[(m(!0),d(z,null,O(n.value.items,e=>(m(),d("div",{class:"news_card",key:e},[v(D,{class:"news",to:u(L)({name:"news-id",params:{id:e.id}})},{default:Q(()=>[a("div",ie,[a("img",{alt:t.$i18n.locale==="kz"?e.titleKz:t.$i18n.locale==="ru"?e.titleRu:e.titleEn,onLoad:P,src:b.value?e.imageUrl:u(se)},null,40,re)]),s[2]||(s[2]=a("div",{class:"glow-wrap"},[a("i",{class:"glow"})],-1)),a("div",{class:"tag",style:W({background:"#"+e.categories[0].bgColor,color:"#"+e.categories[0].textColor})},c(t.$i18n.locale==="kz"?e.categories[0].nameKz:t.$i18n.locale==="ru"?e.categories[0].nameRu:e.categories[0].nameEn),5),a("div",{class:"news_title",title:t.$i18n.locale==="kz"?e.titleKz:t.$i18n.locale==="ru"?e.titleRu:e.titleEn},c(t.$i18n.locale==="kz"?e.titleKz:t.$i18n.locale==="ru"?e.titleRu:e.titleEn),9,ue)]),_:2},1032,["to"]),a("div",ce,[x(c(u(Z)(e.publish_date))+" ",1),s[3]||(s[3]=a("i",{class:"pi pi-eye"},null,-1)),x(" "+c(e.view_count),1)])]))),128))]),!p.value&&n.value.length===0?(m(),d("div",me,c(u(_)("noData")),1)):I("",!0),p.value?(m(),d("div",de,s[4]||(s[4]=[a("img",{src:X,alt:"Loading..."},null,-1)]))):I("",!0),v(u(te),{class:"search_paginator mt-4",first:f.value,"onUpdate:first":s[1]||(s[1]=e=>f.value=e),rows:l.value.rows,totalRecords:n.value.total,onPage:V,pageLinkSize:"3"},null,8,["first","rows","totalRecords"])],64)}}},ke=K(pe,[["__scopeId","data-v-96504ed2"]]);export{ke 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.