1import{d as N,b as _,j as G,ai as P,aq as H,o,c as n,P as W,a as t,U as l,O as h,u as p,F as I,a8 as z,M as U,T as u,R as V,aA as j,e as K,S as A,a2 as B}from"./@vue-DwLU1mub.js";import{s as O,_ as Z,H as Q,W as X,T as Y,V as ee,F as te}from"./Footer-GYO_I9qO.js";import{b as q}from"./vue-router-Bfz1J1A8.js";import{S as F}from"./SwiperSVG-Buf4hh4I.js";import{L as J}from"./LinkSVG-D5GkgHRJ.js";import{S as ae,a as se,N as oe,P as ie,b as le,A as ne,c as re}from"./swiper-CHvaIwre.js";import{T as $}from"./index-VSLJlFQV.js";import{E as y}from"./element-plus-CQJEExh9.js";import{u as de}from"./vue-i18n-CMcCRby8.js";import"./axios-BimPEqV4.js";import"./@element-plus-m0wAbjkV.js";import"./vue-tel-input-BsVA42h1.js";import"./@intlify-CQT3u4ju.js";import"./lodash-es-CiJSjksT.js";import"./@vueuse-Q_cOxmjC.js";import"./@popperjs-D9SI2xQl.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Ct2Knyoi.js";import"./async-validator-DKvM95Vc.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DF51-gJp.js";const ce={key:0,class:"loading"},_e={key:1,class:"media"},me={key:0,class:"container media__container"},ue={class:"media__block"},pe={class:"media__heading"},ve={class:"media__right"},he={class:"media__buttons"},ge={class:"swiper-button-prev media__prev"},fe={class:"swiper-button-next media__next"},we={class:"media__flex"},Ce={class:"media__image"},ke={class:"media__date text_four"},ye={class:"media__name"},$e=["src"],be=["src"],xe=` 2 <path class="path" d=" 3 M 30 15 4 L 28 17 5 M 25.61 25.61 6 A 15 15, 0, 0, 1, 15 30 7 A 15 15, 0, 1, 1, 27.99 7.5 8 L 15 15 9 " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/> 10`,Me=N({__name:"RelatedSlider",setup(E){const v=q(),s=_(!0),d=_([]),L=_(),b=new URL("/assets/news_1-BMyI4bJr.webp",import.meta.url).href,g=r=>{r.target.src=new URL(b,import.meta.url).href},x={delay:7e3,disableOnInteraction:!0},f=r=>{L.value=r},C=()=>{},R=[oe,ie,le,ne,re],M=async()=>{try{const r=await O("get","/api/v1/articles/"+v.params.slug+"/",{});d.value=r.data.related_articles,console.log(d.value),s.value=!1}catch(r){s.value=!1,y({message:r.message,type:"error"})}};return G(()=>{M()}),(r,c)=>{const k=P("RouterLink"),a=H("loading");return s.value?(o(),n("section",ce,[W(t("div",{"element-loading-svg":xe,class:"loading__svg","element-loading-svg-view-box":"-10, -10, 50, 50",style:{width:"100%"}},null,512),[[a,s.value]])])):(o(),n("section",_e,[d.value.length>0?(o(),n("div",me,[t("div",ue,[t("div",pe,[c[2]||(c[2]=t("h3",{class:"media__head"},"ÐÐ¾Ñ Ð¾Ð¶Ð¸Ðµ ÑÑаÑÑи",-1)),t("div",ve,[l(k,{class:"media__link link",to:p($).i18nRoute({name:"media"})},{default:h(()=>[c[1]||(c[1]=t("span",null,"ÐÑе ÑÑаÑÑи",-1)),l(J)]),_:1},8,["to"]),t("div",he,[t("button",ge,[l(F)]),t("button",fe,[l(F)])])])]),t("div",we,[l(p(se),{onSwiper:f,modules:R,autoplay:x,navigation:{enabled:!0,prevEl:".media__prev",nextEl:".media__next"},pagination:{clickable:!0,el:".media__pagination"},"space-between":20,"slides-per-view":"auto",breakpoints:{380:{slidesPerView:1,spaceBetween:20},381:{slidesPerView:2,spaceBetween:15},1024:{slidesPerView:4,spaceBetween:20}},onSlideChange:C,class:"media__swiper"},{default:h(()=>[(o(!0),n(I,null,z(d.value,e=>(o(),U(p(ae),{class:"media__slide",key:e.id},{default:h(()=>[(o(),U(k,{class:"media__product",to:p($).i18nRoute({name:"mediacard",params:{slug:e.slug}}),key:e.id},{default:h(()=>[t("div",Ce,[t("p",ke,u(e.created_at?r.$d(new Date(e.created_at),"shortFormat"):""),1),t("h5",ye,u(e.title),1),e.image&&e.image!=null&&e.image!="undefined"&&e.image!=""?(o(),n("img",{key:0,src:e.image+"?t="+Date.now(),onError:c[0]||(c[0]=m=>g(m))},null,40,$e)):(o(),n("img",{key:1,src:p(b),alt:"Default"},null,8,be))])]),_:2},1032,["to"]))]),_:2},1024))),128))]),_:1}),c[3]||(c[3]=t("div",{class:"swiper-pagination media__pagination"},null,-1))])])])):V("",!0)]))}}}),Se=Z(Me,[["__scopeId","data-v-d29f2329"]]),Ve={},Le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",width:"16.000000",height:"16.000000",fill:"none"};function Re(E,v){return o(),n("svg",Le,v[0]||(v[0]=[j('<rect id="Connect/share-one" width="16.000000" height="16.000000" x="0.000000" y="0.000000"></rect><path id="Vector" d="M11.6667 5.33333C12.5871 5.33333 13.3333 4.58713 13.3333 3.66667C13.3333 2.74619 12.5871 2 11.6667 2C10.7462 2 10 2.74619 10 3.66667C10 4.58713 10.7462 5.33333 11.6667 5.33333Z" fill="currentColor" fill-rule="nonzero"></path><path id="Vector (Stroke)" d="M9.5 3.66667C9.5 2.47005 10.4701 1.5 11.6667 1.5C12.8633 1.5 13.8333 2.47005 13.8333 3.66667C13.8333 4.86328 12.8633 5.83333 11.6667 5.83333C10.4701 5.83333 9.5 4.86328 9.5 3.66667ZM11.6667 2.5C11.0223 2.5 10.5 3.02234 10.5 3.66667C10.5 4.31099 11.0223 4.83333 11.6667 4.83333C12.311 4.83333 12.8333 4.31099 12.8333 3.66667C12.8333 3.02234 12.311 2.5 11.6667 2.5Z" fill="currentColor" fill-rule="evenodd"></path><path id="Vector" d="M4.33464 9.66683C5.2551 9.66683 6.0013 8.92063 6.0013 8.00016C6.0013 7.0797 5.2551 6.3335 4.33464 6.3335C3.41417 6.3335 2.66797 7.0797 2.66797 8.00016C2.66797 8.92063 3.41417 9.66683 4.33464 9.66683Z" fill="currentColor" fill-rule="nonzero"></path><path id="Vector (Stroke)" d="M2.16797 8.00016C2.16797 6.80355 3.13803 5.8335 4.33464 5.8335C5.53124 5.8335 6.5013 6.80355 6.5013 8.00016C6.5013 9.19677 5.53124 10.1668 4.33464 10.1668C3.13803 10.1668 2.16797 9.19677 2.16797 8.00016ZM4.33464 6.8335C3.69031 6.8335 3.16797 7.35584 3.16797 8.00016C3.16797 8.64449 3.69031 9.16683 4.33464 9.16683C4.97896 9.16683 5.5013 8.64449 5.5013 8.00016C5.5013 7.35584 4.97896 6.8335 4.33464 6.8335Z" fill="currentColor" fill-rule="evenodd"></path><path id="Vector (Stroke)" d="M10.4293 4.26589C10.5724 4.50206 10.497 4.80952 10.2608 4.95261L6.04041 7.50958C5.80424 7.65267 5.49678 7.57721 5.35369 7.34103C5.2106 7.10485 5.28606 6.7974 5.52223 6.65431L9.7426 4.09734C9.97878 3.95425 10.2862 4.02971 10.4293 4.26589Z" fill="currentColor" fill-rule="evenodd"></path><path id="Vector (Stroke)" d="M5.35087 8.60021C5.49135 8.36247 5.79796 8.28363 6.03569 8.42411L10.4825 11.0518C10.7202 11.1923 10.7991 11.4989 10.6586 11.7366C10.5181 11.9743 10.2115 12.0532 9.97376 11.9127L5.52696 9.28503C5.28923 9.14455 5.21038 8.83794 5.35087 8.60021Z" fill="currentColor" fill-rule="evenodd"></path><path id="Vector" d="M11.6667 10.6665C12.5871 10.6665 13.3333 11.4127 13.3333 12.3332C13.3333 13.2536 12.5871 13.9998 11.6667 13.9998C10.7462 13.9998 10 13.2536 10 12.3332C10 11.4127 10.7462 10.6665 11.6667 10.6665Z" fill="currentColor" fill-rule="nonzero"></path><path id="Vector (Stroke)" d="M11.6667 11.1665C11.0223 11.1665 10.5 11.6888 10.5 12.3332C10.5 12.9775 11.0223 13.4998 11.6667 13.4998C12.311 13.4998 12.8333 12.9775 12.8333 12.3332C12.8333 11.6888 12.311 11.1665 11.6667 11.1665ZM9.5 12.3332C9.5 11.1366 10.4701 10.1665 11.6667 10.
101665C12.8633 10.1665 13.8333 11.1366 13.8333 12.3332C13.8333 13.5298 12.8633 14.4998 11.6667 14.4998C10.4701 14.4998 9.5 13.5298 9.5 12.3332Z" fill="currentColor" fill-rule="evenodd"></path>',9)]))}const De=Z(Ve,[["render",Re]]),Te={key:0,class:"loading"},Ae={key:1,class:"media"},Be={class:"media__container container"},Ie={class:"media__block"},Ze={class:"media__top"},Ee={class:"breadcrumbs__list"},Ue={class:"breadcrumbs__item text_four"},Fe={class:"breadcrumbs__item text_four"},Ne={class:"media__head title_two"},Ge={class:"media__times"},Pe={class:"media__time"},He={class:"media__date"},We={class:"media__ago"},ze={class:"media__image"},Oe=["src"],qe={class:"media__flex"},Je={class:"media__link"},je={class:"media__desc"},Ke={key:0,class:"media__desc_title"},Qe=["innerHTML"],Xe={key:2,class:"media__desc_image"},Ye=["src","alt"],et={class:"media__social"},tt={class:"media__social_list"},at={class:"media__social_item"},st={class:"media__social_item"},ot={class:"media__social_item"},it=` 11 <path class="path" d=" 12 M 30 15 13 L 28 17 14 M 25.61 25.61 15 A 15 15, 0, 0, 1, 15 30 16 A 15 15, 0, 1, 1, 27.99 7.5 17 L 15 15 18 " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/> 19`,lt=N({__name:"MediaCard",setup(E){const v=q(),{t:s}=de(),d=_(!1),L=_(),b=_(),g=_(""),x=_(""),f=_(""),C=_([]),R=new URL("/assets/news_1-BMyI4bJr.webp",import.meta.url).href,M=a=>{a.target.src=new URL(R,import.meta.url).href},r=async a=>{var S;const e=window.location.href,m=encodeURIComponent(g.value),D=((S=C.value[0])==null?void 0:S.text)||"",i=encodeURIComponent(D.replace(/<[^>]*>/g,"").substring(0,100)),T={whatsapp:`https://wa.me/?text=${m}%0A${i}%0A${e}`,telegram:`https://t.me/share/url?url=${e}&text=${m}`,vk:`https://vk.com/share.php?url=${e}&title=${m}&comment=${i}`,copy:e};if(a==="copy")try{if(!navigator.clipboard){const w=document.createElement("textarea");w.value=e,document.body.appendChild(w),w.select(),document.execCommand("copy"),document.body.removeChild(w),y({message:"СÑÑлка ÑкопиÑована в бÑÑÐµÑ Ð¾Ð±Ð¼ÐµÐ½Ð°",type:"success"});return}await navigator.clipboard.writeText(e),y({message:"СÑÑлка ÑкопиÑована в бÑÑÐµÑ Ð¾Ð±Ð¼ÐµÐ½Ð°",type:"success"})}catch(w){console.error("ÐÑибка копиÑованиÑ:",w),y({message:"Ðе ÑдалоÑÑ ÑкопиÑоваÑÑ ÑÑÑлкÑ",type:"error"})}else window.open(T[a],"_blank")},c=a=>{var e=Math.floor((new Date().valueOf()-a)/1e3);switch(!0){case e>=31536e3:return`${s("interval.years",Math.floor(e/31536e3))} ${s("interval.ago")}`;case e>=2592e3:return`${s("interval.months",Math.floor(e/2592e3))} ${s("interval.ago")}`;case e>=86400:return`${s("interval.days",Math.floor(e/86400))} ${s("interval.ago")}`;case e>=3600:return`${s("interval.hours",Math.floor(e/3600))} ${s("interval.ago")}`;case e>=60:return`${s("interval.minutes",Math.floor(e/60))} ${s("interval.ago")}`;default:return`${s("interval.seconds",Math.floor(e/1))} ${s("interval.ago")}`}},k=async()=>{try{d.value=!0;const a=await O("get","/api/v1/articles/"+v.params.slug+"/",{});console.log(a),L.value=a.data.id,b.value=a.data.slug,g.value=a.data.title,x.value=a.data.image_in_article,f.value=a.data.created_at,C.value=a.data.content_blocks,d.value=!1}catch(a){d.value=!1,y({message:a.message,type:"error"})}};return K(()=>v.params.slug,async a=>{a&&(await k(),window.scrollTo({top:0,behavior:"smooth"}))}),G(async()=>{k()}),(a,e)=>{const m=P("RouterLink"),D=H("loading");
19return o(),n(I,null,[l(Q),d.value?(o(),n("section",Te,[W(t("div",{"element-loading-svg":it,class:"loading__svg","element-loading-svg-view-box":"-10, -10, 50, 50",style:{width:"100%"}},null,512),[[D,d.value]])])):(o(),n("section",Ae,[t("div",Be,[t("div",Ie,[t("div",Ze,[t("ul",Ee,[t("li",Ue,[l(m,{class:"breadcrumbs__link text_four",to:p($).i18nRoute({name:"home"})},{default:h(()=>[A(u(a.$t("product.main")),1)]),_:1},8,["to"])]),t("li",Fe,[l(m,{class:"breadcrumbs__link text_four",to:p($).i18nRoute({name:"media"})},{default:h(()=>[A(u(g.value),1)]),_:1},8,["to"])])]),t("h1",Ne,u(g.value),1)]),t("div",Ge,[t("div",Pe,[t("div",He,u(f.value?a.$d(new Date(f.value),"shortFormat"):""),1),t("div",We,u(c(new Date(f.value))),1)]),t("div",{class:"media__reply",onClick:e[0]||(e[0]=i=>r("copy"))},[l(De),e[6]||(e[6]=A(" ÐоделиÑÑÑÑ "))])]),t("div",ze,[t("img",{src:x.value+"?t="+Date.now(),onError:e[1]||(e[1]=i=>M(i))},null,40,Oe)]),t("div",qe,[t("div",Je,[l(m,{class:"link",to:p($).i18nRoute({name:"media"})},{default:h(()=>[e[7]||(e[7]=t("span",null,"ÐÑе ÑÑаÑÑи",-1)),l(J)]),_:1},8,["to"])]),t("div",je,[(o(!0),n(I,null,z(C.value,(i,T)=>(o(),n("div",{key:T,class:"media__desc_block"},[i.title?(o(),n("h2",Ke,u(i.title),1)):V("",!0),i.text?(o(),n("div",{key:1,class:"media__desc_text",innerHTML:i.text},null,8,Qe)):V("",!0),i.image?(o(),n("div",Xe,[t("img",{src:i.image+"?t="+Date.now(),onError:e[2]||(e[2]=S=>M(S)),alt:i.title||"Content image"},null,40,Ye)])):V("",!0)]))),128))]),t("div",et,[t("ul",tt,[t("li",at,[t("a",{href:"#",onClick:e[3]||(e[3]=B(i=>r("whatsapp"),["prevent"])),class:"media__social_link media__social_wa"},[l(X)])]),t("li",st,[t("a",{href:"#",onClick:e[4]||(e[4]=B(i=>r("telegram"),["prevent"])),class:"media__social_link media__social_tg"},[l(Y)])]),t("li",ot,[t("a",{href:"#",onClick:e[5]||(e[5]=B(i=>r("vk"),["prevent"])),class:"media__social_link media__social_vk"},[l(ee)])])])])])])])])),l(Se),l(te)],64)}}}),Lt=Z(lt,[["__scopeId","data-v-a2849ec1"]]);export{Lt 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.