PageSourceSearch

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

js bogoslov.ru collected 2026-10-02 05:05:07 UTC 4,330 bytes, 9 lines download raw bytes

1import{_ as M}from"./C-B6SWSQ.js";import{F as q}from"./DAWXHDVU.js";import{_ as K}from"./PmEOX2dk.js";import{_ as W}from"./BjB5zQhf.js";import{_ as H}from"./BGP5owb5.js";import{_ as J}from"./GuSy-mLk.js";import{_ as Q}from"./Dz118nSF.js";import{u as X}from"./DULG5c04.js";import{v as S}from"./ChEjPkWV.js";import{M as Y}from"./skQxdrfX.js";import{R as ee,ae,u as te,c as l,r as b,l as h,$ as V,x as k,Z as oe,j as U,e as R,o as x,g as r,d as y,h as se,D as ne,a as re,b as le,ab as u,_ as me}from"./CM9RFNJZ.js";import{u as ie}from"./Psg8Af6T.js";import{u as ce}from"./DlHzFuT8.js";const de={key:0},ue=ee({__name:"ModalFeedback",setup(pe){const z=ae(),G=ie(),L=ce(),I=te(),p=l(()=>z.check),A=b(!1);h(()=>{A.value=!0});const n=b(!1),m=V("modalForm"),F=b(1),t=k({fullname:"",email:"",message:"",agreement:!1}),_=k({fullname:"",email:"",message:"",agreement:""}),{getAgreementsPath:P}=X(),f=k({user_agreement:"",copyright_agreement:"",pd_processing_verification:"",pd_processing_person:"",pd_processing_publication:""});h(async()=>{const a=await P();Object.assign(f,a)});const T=l(()=>p.value?n.value||!t.agreement||!t.message:n.value||!t.agreement||!t.email||!t.fullname||!t.message),N=l(()=>({modalName:"feedback",pending:n.value,disableActions:!0,disableWrapPadding:!0,fields:[{component:u(M),name:"fullname",placeholder:"Ваше имя",NULLABLE:!1,disableVisible:p.value,disableRounded:!0,appendIconClear:!0,minLength:2,maxLength:100,patternInput:/^[а-яА-ЯёЁa-zA-Z\s-\.]+$/,checkValidation:(a,e,o)=>S(a,e,o),value:t.fullname},{component:u(M),name:"email",placeholder:"Электронная почта",inputType:"email",NULLABLE:!1,disableVisible:p.value,disableRounded:!0,appendIconClear:!0,checkValidation:(a,e,o)=>S(a,e,o),value:t.email},{name:"message",component:u(q),NULLABLE:!1,placeholder:"Ваше сообщение",rows:6,maxLength:1e3,size:"sm",disableRounded:!0,value:t.message},{component:u(K),name:"agreement",label:`Соглашаюсь с правилами
2                        <a href="${f.user_agreement}" target="_blank">
3                            пользовательского соглашения
4                        </a> и
5
6                        <a href="${f.copyright_agreement}" target="_blank">
7                            обработкой персональных данных
8                        </a>
9                    `,NULLABLE:!1,errorMessage:" ",extraClass:"modal-personality__checkbox",value:t.agreement}]})),O=({value:a,field:e})=>{t[e]=a,_[e]=""},E=async({action:a})=>{var e;switch(a){case"save":((e=m.value)==null?void 0:e.checkFormValid())||await D(t);break}},j=l(()=>!1),D=async a=>{var o,i,c,d;const e={...a};delete e.agreement,n.value=!0;try{const s=await I.$queryApi("?type=settings&action=feedback",{data:e},{ssr:j.value});if((o=s.data)!=null&&o.success)G.show({content:"Форма отправлена!",timeout:5e3}),n.value=!1,v();else if((i=s.data)!=null&&i.message&&((c=s.data)!=null&&c.field)){n.value=!1;const{field:B,message:C}=s.data;_[B]=C,(d=m.value)==null||d.setError(B,C)}}catch(s){console.error(s),n.value=!1,v()}},Z=()=>{N.value.fields.forEach(a=>{var o;const e=a.name;e==="agreement"?t.agreement=!1:t[e]="",_[e]="",(o=m.value)==null||o.setError(e,"")})},g=V("modal"),$=l(()=>L.isOpened),w=()=>{g.value&&g.value.open()},v=()=>{L.close(),F.value++,Z()};return oe($,a=>{a&&w()}),h(()=>{$.value&&w()}),(a,e)=>{const o=W,i=H,c=J,d=Q;return A.value?(x(),U(d,{key:0,ref_key:"modal",ref:g,class:"modal-feedback",position:"right",size:"sm",onClose:v},{default:r(()=>[y(Y,{title:"Форма обратной связи"},{default:r(()=>[y(i,{pending:n.value},{default:r(()=>[(x(),U(o,ne({ref_key:"modalForm",ref:m,key:F.value},N.value,{onUpdate:O,onAction:E}),{"field-append":r(({field:s})=>[s.name==="message"?(x(),re("div",de,e[1]||(e[1]=[le("p",{class:"modal-feedback__description"}," Адрес электронной почты используется для связи и не публикуется ",-1)]))):R("",!0)]),_:1},16))]),_:1},8,["pending"])]),footer:r(()=>[y(c,{theme:"primary",size:"lg",disabled:T.value,onClick:e[0]||(e[0]=s=>E({action:"save"}))},{default:r(()=>e[2]||(e[2]=[se(" Отправить ")])),_:1},8,["disabled"])]),_:1})]),_:1},512)):R("",!0)}}}),Ee=me(ue,[["__scopeId","data-v-973e8284"]]);export{Ee 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.