PageSourceSearch

https://bogoslov.ru/_nuxt/C0q0kxK_.js

js bogoslov.ru collected 2026-09-24 19:02:54 UTC 2,947 bytes, 1 lines download raw bytes

1import{_ as T}from"./BA8p9DNP.js";import{_ as W,r as u,c,l as F,V as S,aa as $,a as n,o as t,e as m,m as H,F as y,i as L,j as V,g as b,h as A,t as f,d as D,f as O,n as U,b as j,T as G,L as X}from"./B4qULXKb.js";import{g as q}from"./B95Y-pFc.js";const J={class:"external-links"},K={key:0,class:"external-links__resources"},Q={key:0,class:"external-links__menu-button-wrap"},Y=["href"],Z={key:1,class:"external-links__socials"},ee={__name:"ExternalLinks",props:{links:{type:Array,default:()=>[]},socialLinks:{type:Array,default:()=>[]}},setup(d){const k=d,i=u(!1),P=u(!1),v=u(null),h=u(null),I=async()=>{i.value=!i.value,i.value&&(await X(),a())},R=()=>{i.value=!1},z=u(null),p=()=>{z.value=window.innerWidth},N=c(()=>z.value<1280),g=c(()=>k.links.filter(o=>o.icon==="link")),E=c(()=>N.value?g.value.length>1:g.value.length>=3),w=c(()=>E.value?k.links.filter(o=>o.icon!=="link"):k.links),l=c(()=>E.value?g.value:[]),a=()=>{var C,M;if(!v.value||!((C=h.value)!=null&&C.$el))return;const o=v.value.getBoundingClientRect(),_=(M=h.value)==null?void 0:M.$el.getBoundingClientRect(),r=window.innerHeight-_.bottom,x=_.top;P.value=o.height>r&&x>r;const s=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,B=window.innerWidth-_.left-o.width;v.value.style.transform=B<s?`translateX(-${Math.abs(B-s)}px)`:""};return F(()=>{window.addEventListener("scroll",a),window.addEventListener("resize",a),window.addEventListener("resize",p),p(),a()}),S(()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),window.removeEventListener("resize",p)}),(o,_)=>{const r=T,x=$("click-outside");return t(),n("div",J,[w.value&&w.value.length||l.value&&l.value.length?(t(),n("div",K,[(t(!0),n(y,null,L(w.value,(e,s)=>(t(),V(r,{key:s,url:e.url,target:e.target||null,size:"sm",theme:"ghost",iconPrepend:e.icon},{default:b(()=>[A(f(e.text),1)]),_:2},1032,["url","target","iconPrepend"]))),128)),l.value.length?H((t(),n("div",Q,[D(r,{ref_key:"buttonRef",ref:h,size:"sm",theme:"ghost",iconPrepend:"link",class:"external-links__menu-button",onClick:I},{default:b(()=>[A(" +"+f(l.value.length)+" "+f(O(q)(l.value.length,["ссылка","ссылки","ссылок"])),1)]),_:1},512),D(G,{mode:"out-in",name:"fade"},{default:b(()=>[i.value?(t(),n("div",{key:0,ref_key:"menuRef",ref:v,class:U(["external-links__menu",P.value?"--top":null])},[(t(!0),n(y,null,L(l.value,(e,s)=>(t(),n("div",{key:s,class:"external-links__menu-item caption-2"},[j("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",class:"external-links__menu-item-link",onClick:R},f(e.text),9,Y)]))),128))],2)):m("",!0)]),_:1})])),[[x,R]]):m("",!0)])):m("",!0),d.socialLinks&&d.socialLinks.length?(t(),n("div",Z,[(t(!0),n(y,null,L(d.socialLinks,(e,s)=>(t(),V(r,{key:s,url:e.url,size:"sm",rounded:"",theme:"icon",iconPrepend:e.icon,iconParams:{onlyIcon:!0}},null,8,["url","iconPrepend"]))),128))])):m("",!0)])}}},oe=W(ee,[["__scopeId","data-v-4c952891"]]);export{oe as _};

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.