PageSourceSearch

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

js bogoslov.ru collected 2026-09-24 19:02:08 UTC 6,388 bytes, 9 lines download raw bytes

1import{u as J,_ as ee}from"./Dv-NB3ra.js";import{R as oe,ae as te,u as ae,c,r as T,l as j,$ as K,x as W,Z as se,j as B,e as D,o as g,g as p,d as r,h as ne,D as re,a as Z,b as V,ab as z,_ as Q,s as le,aD as ce,S as ie,f as u,n as U,bw as ue,bx as me,a8 as de}from"./B4qULXKb.js";import{_ as pe,a as _e,b as fe,c as ge}from"./IN0BX_2R.js";import{F as ve}from"./DElG6gnj.js";import{_ as he}from"./Dxo_TA7E.js";import{_ as be}from"./Dj1_qx2r.js";import{_ as xe}from"./DOiBJFyF.js";import{_ as ye}from"./DCA_EYAd.js";import{_ as ke}from"./BA8p9DNP.js";import{_ as we}from"./C5gho-o9.js";import{u as Ae}from"./hyfsJk4y.js";import{M as Se}from"./rBBECda5.js";import{F as Pe}from"./Cp07UaIf.js";import{u as Ne}from"./Bvrg-R8i.js";import{u as Ce}from"./C80TvRj4.js";import"./CWw8izbq.js";import"./CksAhFht.js";import"./Bv5HIE0N.js";import"./ChEjPkWV.js";import"./B95Y-pFc.js";const Fe={key:0},Ge=oe({__name:"ModalPublicationSuggestChanges",setup(X){const _=te(),S=Ne(),P=ae(),v=Ce(),N=c(()=>_.check),h=T(!1);j(()=>{h.value=!0});const i=T(!1),m=K("modalForm"),f=T(1),a=W({text:"",file:[],agreement:!1}),{getAgreementsPath:b}=Ae(),n=W({user_agreement:"",copyright_agreement:"",pd_processing_verification:"",pd_processing_person:"",pd_processing_publication:""});j(async()=>{const s=await b();Object.assign(n,s)});const C=c(()=>i.value||!a.agreement||!a.text||a.file.length===0),x=c(()=>({modalName:"suggest_changes",pending:i.value,disableActions:!0,disableWrapPadding:!0,fields:[{name:"text",component:z(ve),NULLABLE:!1,placeholder:"Что предлагаете исправить?",rows:10,size:"sm",disableRounded:!0,value:a.text},{name:"file",component:z(he),accept:["jpg","png","pdf"],maxSize:1e4*1024,multiple:!1,NULLABLE:!1,extraClass:"mb-0",value:a.file},{component:z(be),name:"agreement",label:`Соглашаюсь с правилами
2                        <a href="${n.user_agreement}" target="_blank">
3                            пользовательского соглашения
4                        </a> и
5
6                        <a href="${n.copyright_agreement}" target="_blank">
7                            обработкой персональных данных
8                        </a>
9                    `,NULLABLE:!1,errorMessage:" ",extraClass:"modal-publication-suggest-changes__checkbox",value:a.agreement}]})),F=({value:s,field:o})=>{a[o]=s},y=async({action:s})=>{var o;switch(s){case"save":((o=m.value)==null?void 0:o.checkFormValid())||await L(a);break}},G=c(()=>!1),L=async s=>{var w,A,l,O,H,q;const o=new FormData,t={...s};delete t.agreement;for(const e in t)if(e==="file"){if(t[e]&&t[e].length)for(const R of t[e])o.append(e,R)}else typeof t[e]=="object"&&t[e]!==null?o.append(e,t[e].id):t[e]!==null&&t[e]&&o.append(e,t[e]);const M=window!=null&&window.location?window.location.href:"";o.append("url",M),i.value=!0;try{const e=await P.$queryApi("?type=publications&action=suggest_changes",o,{ssr:G.value});if((w=e.data)!=null&&w.success)S.show({content:"Форма отправлена!",timeout:5e3}),i.value=!1,(A=d.value)==null||A.close(),E();else if((l=e.data)!=null&&l.message&&((O=e.data)!=null&&O.field)){i.value=!1;const{field:R,message:Y}=e.data;(H=m.value)==null||H.setError(R,Y)}}catch(e){console.error(e),i.value=!1,(q=d.value)==null||q.close(),E()}},$=()=>{a.agreement=!1,a.file=[],a.text="",x.value.fields.forEach(s=>{var t;const o=s.name;(t=m.value)==null||t.setError(o,"")})},d=K("modal"),k=c(()=>v.isOpened),I=()=>{d.value&&d.value.open()},E=()=>{v.close(),f.value++,$()};return se(k,s=>{s&&I()}),j(()=>{k.value&&I()}),(s,o)=>{const t=xe,M=ye,w=ke,A=we;return h.value&&N.value?(g(),B(A,{key:0,ref_key:"modal",ref:d,class:"modal-publication-suggest-changes",position:"right",size:"sm",onClose:E},{default:p(()=>[r(Se,{title:"Запрос на изменения"},{default:p(()=>[r(M,{pending:i.value},{default:p(()=>[(g(),B(t,re({ref_key:"modalForm",ref:m,key:f.value},x.value,{onUpdate:F,onAction:y}),{label:p(({field:l})=>[r(Pe,{title:l.title,description:l.description,dynamicPlaceholder:l.dynamicPlaceholder,value:a[l.name]},null,8,["title","description","dynamicPlaceholder","value"])]),"field-append":p(({field:l})=>[l.name==="file"?(g(),Z("div",Fe,o[1]||(o[1]=[V("p",{class:"modal-publication-suggest-changes__description"}," Ваше предложение отправляется на рассмотрение редакции. Исправленный материал станет доступен читателям после проверки и одобрения правок. ",-1)]))):D("",!0)]),_:1},16))]),_:1},8,["pending"])]),footer:p(()=>[r(w,{theme:"primary",size:"lg",disabled:C.value,onClick:o[0]||(o[0]=l=>y({action:"save"}))},{default:p(()=>o[2]||(o[2]=[ne(" Отправить ")])),_:1},8,["disabled"])]),_:1})]),_:1},512)):D("",!0)}}}),Le=Q(Ge,[["__scopeId","data-v-836f35ad"]]),$e={class:"default-layout__top"},Ee={__name:"default",setup(X){const _=le(),{locale:S}=ce(),{getCurrentHostType:P,getJournalUrl:v}=ie(),N=["news-id","events-id","books-id","books-book-crits-id","books-book-reviews-id","materials-article-id","materials-video-id","materials-audio-id","materials-opinion-id","terms-id","vocs-persons-id","vocs-organizations-id","vocs-libraries-id","vocs-publishing-companies-id","vocs-dictionaries-id","vocs-laws","vocs-resources-applications"],h=c(()=>{const n=J(_);return N.includes(n)}),i=c(()=>{const n=J(_);return{"news-id":".news-detail__user-text"}[n]??null}),m=c(()=>{const n=_.path.replace("/","");return["sci"].includes(n)}),f=c(()=>_.path.includes("search")?"black":"dark"),a={type:"search"},b=c(()=>
9{if(P()==="journal")return{url:v("/",!0),prefix:"ci-jnl",logoName:S.value==="ru"?"logo/logo-jrnl":"logo/logo-jrnl-en",width:282,height:64}});return(n,C)=>{const x=ee,F=ue,y=me,G=pe,L=_e,$=fe,d=ge,k=Le;return g(),Z("div",{class:U(["default-layout",[{"--sci-layout":u(m)},{"--journal-logo":!!u(b)},u(f)]])},[u(h)?(g(),B(x,{key:0,"target-selector":u(i)},null,8,["target-selector"])):D("",!0),V("div",$e,[r(F,{class:U(u(f)),searchParams:a,logoParams:u(b)},null,8,["class","logoParams"]),r(y,{layout:u(f),searchParams:a},null,8,["layout"])]),V("div",{class:U(["default-layout__body",{"pb-32":!u(m)}])},[de(n.$slots,"default",{},void 0,!0)],2),r(G,{class:"pt-24 pt-md-32 pb-24 pb-sm-32"}),r(L),r($),r(d),r(k)],2)}}},eo=Q(Ee,[["__scopeId","data-v-fa2d1975"]]);export{eo 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.