PageSourceSearch

https://openide.ru/_nuxt/Bv4dvhgb.js

js openide.ru collected 2026-10-05 17:56:46 UTC 18,586 bytes, 2 lines download raw bytes

1import{p as K,f as q,c as g,o as _,a as o,b as f,u as c,w as h,d as u,r as E,k as Z,h as w,C as x,D as O,n as T,t as S,F as ee,g as te,e as U,B as D,s as L,P as V,z as oe,i as re}from"./BX6C_rtp.js";import{_ as se}from"./Brj8pPJQ.js";import{T as ie,M as ne}from"./cwf2z0ki.js";import{C as ae}from"./D99erid5.js";import{u as le,C as pe}from"./DBx3ohxn.js";import{_ as de}from"./D88N_0cq.js";import{_ as ce,C as ue,f as fe}from"./BONORnxE.js";import{p as me,I as _e}from"./DZI_9WGo.js";import{_ as j}from"./DlAUqK2U.js";import"./BcyeG3bg.js";/* empty css        */import{u as he}from"./VQ4marFh.js";import"./DpNWSi0w.js";const A=K("/images/pro/edu-card.svg"),ge=K("/images/pro/hero-education.png"),ve={class:"pro-hero-champ"},ye={class:"about__container container"},be={class:"pro-hero__box"},ke={class:"pro-hero__content"},xe={__name:"HeroEducation",setup(l){const e=le(),n=q(()=>[{name:"Для образования",url:""}]);return(a,t)=>{const p=se;return _(),g("div",ve,[o("div",ye,[f(p,{crumbs:c(n),class:"pro-bc-mobile"},null,8,["crumbs"]),o("div",be,[o("div",ke,[f(p,{crumbs:c(n),class:"pro-bc-desktop"},null,8,["crumbs"]),f(c(ie),{class:"pro-hero__title",h1:""},{default:h(()=>[...t[0]||(t[0]=[u(" OpenIDE Pro ",-1),o("br",null,null,-1),u("для образования ",-1)])]),_:1}),f(c(ne),{class:"pro-hero__text"},{default:h(()=>[...t[1]||(t[1]=[o("p",null,[o("span",{class:"bolder"},"Бесплатно для студентов и преподавателей")],-1),o("p",null," OpenIDE снижает порог входа в прикладное программирование: готовое окружение, поддержка нескольких языков, привычный интерфейс. Меньше времени на настройку — больше на код. ",-1)])]),_:1})]),t[2]||(t[2]=o("div",{class:"pro-hero__screen"},[o("img",{src:ge,alt:"Screen"})],-1))])]),f(pe,{"modal-visible":c(e).isModalVisible,onClose:c(e).closeModal},null,8,["modal-visible","onClose"])])}}},we={class:"file-dropzone"},Ce=["onKeydown"],Fe=["accept","multiple"],Ee={key:0,class:"file-dropzone__error"},Se={key:2,class:"file-dropzone__list"},Me={class:"file-dropzone__file-info"},ze={class:"file-dropzone__file-name"},De={class:"file-dropzone__file-size"},Ie=["onClick"],Ve={__name:"FileDropzone",props:{value:Array,accept:{type:String,default:".jpg, .jpeg, .png, .pdf"},filelist:Object,id:{type:String,default:"input-file"},multiple:{type:Boolean,default:!0},maxSizeMb:{type:Number,default:10},error:{type:Boolean,default:!1},errorText:{type:String,default:"Обязательное поле не заполнено"}},emits:["fileInput","uploaded","error"],setup(l,{emit:e}){const n=l,a=e,t=E(null),p=E(!1),C=E(!0),d=E([]);E([]);const v=E(""),M=["image/jpeg","image/png","application/pdf"],z=["jpg","jpeg","png","webp","gif","heic","heif","pdf"],m=["image/jpeg","image/png","image/webp","image/gif","image/heic","image/heif","application/pdf"],H=[".jpg",".jpeg",".png",".webp",".gif",".heic",".heif",".pdf","image/jpeg","image/png","image/webp","image/gif","image/heic","image/heif","application/pdf"].join(","),$=q(()=>n.maxSizeMb*1024*1024);function I(){var r;(r=t.value)==null||r.click()}function G(r){var s;return((s=r==null?void 0:r.split(".").pop())==null?void 0:s.toLowerCase())||""}function J(r){const s=G(r==null?void 0:r.name);return z.includes(s)?r.type&&!m.includes(r.type)?"недопустимый тип файла":r.size>$.value?`файл больше ${n.maxSizeMb} МБ`:null:"недопустимый формат файла"}function B(r){var b,F;v.value="";const s=Array.from(r),i=[],y=[];for(const k of s){const R=J(k);if(R){y.push(`${k==null?void 0:k.name}: ${R}`);continue}}if(n.multiple?d.value.push(...i):(P(),d.value=i.slice(0,1)),y.length){v.value=y.join(`
2`),a("error",v.value);return}console.log((b=d.value[0])==null?void 0:b.file),n.multiple?a("fileInput",d.value):a("fileInput",(F=d.value[0])==null?void 0:F.file)}function Q(r,s){var k;const i=r.target;d.value=[];const y=Array.from(r.target.files);d.value=y,C.value=M.indexOf(y[0].type)>-1;let b=[];for(var F=0;F<r.target.files.length;F++)b.push(r.target.files[F]);s&&(s=b.concat(s)),(k=i.files)!=null&&k.length&&B(i.files),i.value="",console.log("fileSelected",b),a("fileInput",b)}function W(r){var s,i;p.value=!1,(i=(s=r.dataTransfer)==null?void 0:s.files)!=null&&i.length&&B(r.dataTransfer.files)}function X(r){const s=d.value.find(i=>i.id===r);s!=null&&s.preview&&URL.revokeObjectURL(s.preview),d.value=d.value.filter(i=>i.id!==r)}function P(){for(const r of d.value)r.preview&&URL.revokeObjectURL(r.preview);d.value=[]}function Y(r){return r<1024*1024?`${Math.round(r/1024)} КБ`:`${(r/1024/1024).toFixed(1)} МБ`}return Z(()=>{P()}),(r,s)=>(_(),g("div",we,[o("div",{class:T(["file-dropzone__area",{"file-dropzone__area--active":c(p),"file-dropzone__area--error":l.error}]),role:"button",tabindex:"0",onClick:I,onKeydown:[O(x(I,["prevent"]),["enter"]),O(x(I,["prevent"]),["space"])],onDragover:s[1]||(s[1]=x(i=>p.value=!0,["prevent"])),onDragleave:s[2]||(s[2]=x(i=>p.value=!1,["prevent"])),onDrop:x(W,["prevent"])},[o("input",{ref_key:"inputRef",ref:t,class:"file-dropzone__input",type:"file",accept:c(H),multiple:l.multiple,onChange:s[0]||(s[0]=i=>Q(i,l.filelist))},null,40,Fe),s[3]||(s[3]=o("div",{class:"file-dropzone__content"},[o("div",{class:"file-dropzone__title"}," Прикрепить фото или PDF ")],-1))],42,Ce),l.error&&!c(v)?(_(),g("p",Ee,S(l.errorText),1)):w("",!0),c(v)||!c(C)?(_(),g("p",{key:1,class:T(["file-dropzone__error",{"not-accepted":!c(C)}])},S(c(v)),3)):w("",!0),c(d).length?(_(),g("ul",Se,[(_(!0),g(ee,null,te(c(d),i=>(_(),g("li",{key:i.id,class:"file-dropzone__item"},[s[5]||(s[5]=U('<span class="form__icon" data-v-334a858d><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" data-v-334a858d><g clip-path="url(#clip0_656_3100)" data-v-334a858d><path d="M8.33398 10.8332C8.69186 11.3117 9.14845 11.7075 9.67278 11.994C10.1971 12.2805 10.7769 12.4508 11.3729 12.4935C11.9688 12.5362 12.567 12.4502 13.1268 12.2414C13.6866 12.0326 14.1949 11.7058 14.6173 11.2832L17.1173 8.78322C17.8763 7.99738 18.2963 6.94487 18.2868 5.85238C18.2773 4.7599 17.8391 3.71485 17.0666 2.94231C16.294 2.16978 15.249 1.73157 14.1565 1.72208C13.064 1.71259 12.0115 2.13256 11.2257 2.89156L9.79232 4.31656" stroke="#4D409B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-334a858d></path><path d="M11.6659 9.16677C11.308 8.68833 10.8514 8.29245 10.3271 8.00599C9.80274 7.71953 9.22293 7.54918 8.62698 7.50649C8.03103 7.46381 7.43287 7.5498 6.87307 7.75862C6.31327 7.96744 5.80493 8.29421 5.38252 8.71677L2.88252 11.2168C2.12353 12.0026 1.70355 13.0551 1.71305 14.1476C1.72254 15.2401 2.16075 16.2851 2.93328 17.0577C3.70581 17.8302 4.75087 18.2684 5.84335 18.2779C6.93584 18.2874 7.98835 17.8674 8.77419 17.1084L10.1992 15.6834" stroke="#4D409B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-334a858d></path></g><defs data-v-334a858d><clipPath id="clip0_656_3100" data-v-334a858d><rect width="20" height="20" fill="white" data-v-334a858d></rect></clipPath></defs></svg></span>',1)),o("div",Me,[o("div",ze,S(i==null?void 0:i.name),1),o("div",De,S(Y(i==null?void 0:i.size)),1)]),o("button",{type:"button",class:"file-dropzone__remove",onClick:x(y=>X(i.id),["stop"])},[...s[4]||(s[4]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}
2,[o("path",{d:"M15 5L5 15",stroke:"#F24E71","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M5 5L15 15",stroke:"#F24E71","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Ie)]))),128))])):w("",!0)]))}},Te=j(Ve,[["__scopeId","data-v-334a858d"]]);var Ue={};const je={mixins:[fe],components:{CustomInput:ue,Checkbox:ce,FileDropzone:Te,AppButton:ae,InputFile:_e,VueRecaptcha:me},data(){return{email:"",firstname:"",university_name:"",pdf:"",accept_policy:!1,personal_data_consent:!1,recaptchaToken:"",success:!1,submitting:{sending:!1,done:!1},pending:!1,extMessage:"",errors:[],isFormError:!1,formErrMsg:"",isModal:{type:Boolean,default:!1}}},props:{id:String,isStudent:Boolean,formName:String},setup(){const e=oe().public.forms.apiUrl;function n(t){console.log("Загруженные файлы:",t)}function a(t){console.error(t)}return{formUrl:e,onUploaded:n,onUploadError:a}},computed:{recaptchaSitekey(){return Ue.forms.recaptcha_sitekey},routePath(){return(this._.provides[V]||this.$route).path}},methods:{closeModal(){this.$emit("closeModal")},async sendForm(l){const e=new FormData;if(l.preventDefault(),this.pending)return;const n=this.formUrl+(this.isStudent?"/pro-students":"/pro-professors");if(this.errors=[],this.firstname===""&&this.errors.push("firstname"),this.email===""&&this.errors.push("email"),this.pdf&&this.pdf.length&&!this.validateFile(this.pdf[0])&&this.errors.push("pdf"),this.university_name===""&&this.errors.push("university_name"),this.email!==""&&!this.validateEmail(this.email)&&(this.errors.push("email-incorrect"),this.errors.push("email")),this.accept_policy||this.errors.push("accept_policy"),this.isStudent&&(!this.pdf||!this.pdf.length?this.errors.push("pdf"):this.validateFile(this.pdf[0])||this.errors.push("pdf")),console.log("errors",this.errors),e.append("page",this.page?this.page:(this._.provides[V]||this.$route).path),e.append("firstname",this.firstname),e.append("university_name",this.university_name),e.append("pdf",this.pdf),e.append("email",this.email),e.append("accept_policy",this.accept_policy),e.append("personal_data_consent",this.personal_data_consent),!this.errors.length)try{this.showPreloader();const a=await $fetch(n,{method:"POST",body:{page:this.page?this.page:(this._.provides[V]||this.$route).path,firstname:this.firstname,email:this.email,university_name:this.university_name,pdf:this.pdf,pageName:this.formName,accept_policy:this.accept_policy,personal_data_consent:this.personal_data_consent}});if(a.success){const t=()=>{this.success=!0};this.hidePreloader(t.bind(this))}else a.errors!==void 0&&a.errors.length?this.errors=a.errors:this.errors.push("unknown")}catch(a){this.isFormError=!0,console.log("Error while form sending: "+a),console.error(a);const p=(a.message||String(a)).split(": ").pop();this.formErrMsg=p,this.errors.push("unknown")}finally{this.hidePreloader(),setTimeout(()=>{this.clearForm()},2e4)}},async verifyRecaptcha(){const l=new Promise((e,n)=>{this.verifyResolver=e,this.verifyRejecter=n});this.$refs.recaptcha.execute();try{return await l}catch(e){console.log(e);return}finally{this.verifyResolver=null,this.verifyRejecter=null}},onVerify(l){this.recaptchaToken=l,this.verifyResolver&&this.verifyResolver(),this.recaptchaToken=l,this.recaptchaToken.$touch()},onRecaptchaError(){this.recaptchaToken="",this.verifyRejecter&&this.verifyRejecter()},onRecaptchaExpire(){this.recaptchaToken=""},onFileInput(l){console.log("onFileInput",l),this.pdf=l},clearErrors(){this.errors=[]},async clearForm(){console.log("clearForm"),this.firtsname="",this.email="",this.university_name="",this.pdf="",this.accept_policy=!0,this.personal_data_consent=!1,this.recaptchaToken=null,this.errors=[],this.success=!1,this.extMessage=""},showPreloader(){this.submitting.sending=!0}},mounted(){}},Be=["id"],Pe={key:0,class:"success-box"},Re={key:1,class:"form-container"},Oe={class:"fields-grid"},Le={class:"form__сheckbox-wrapper"},Ae={key:0,class:"form__error"},Ne={key:1,class:"form__error"};function Ke(l,e,n,a,t,p){const C=D("AppButton"),d=D("CustomInput"),v=D("FileDropzone"),M=de,z=D("Checkbox");return _(),g("div",{class:T(["form-box",{"for-students":n.isStudent}]),id:n.id},[o("form",{class:"form",method:"post",onSubmit:e[6]||(e[6]=x((...m)=>p.sendForm&&p.sendForm(...m),["prevent"]))},[t.success?(_(),g("div",Pe,[e[8]||(e[8]=o("h3",{class:"title-h3"},"Спасибо!",-1)),e[9]||(e[9]=o("div",{class:"contacts-page__title purple"}
2,[u("Ваша заявка отправлена."),o("br"),u(" В ближайшее время мы с вами свяжемся!")],-1)),t.isModal?(_(),L(C,{key:0,class:"form__contacts__button primary",type:"button",appearance:"gradient",onClick:p.closeModal},{text:h(()=>[...e[7]||(e[7]=[u(" OK ",-1)])]),_:1},8,["onClick"])):w("",!0)])):(_(),g("div",Re,[o("div",Oe,[f(d,{class:"form__input",type:"text",multiColor:!0,modelValue:t.firstname,"onUpdate:modelValue":e[0]||(e[0]=m=>t.firstname=m),error:t.errors.includes("firstname"),onFocus:p.clearErrors,required:""},{default:h(()=>[...e[10]||(e[10]=[u(" ФИО ",-1),o("span",{class:"colored-placeholder"},"*",-1)])]),_:1},8,["modelValue","error","onFocus"]),f(d,{class:"form__input",placeholder:"",type:"email",multiColor:!0,onFocus:p.clearErrors,modelValue:t.email,"onUpdate:modelValue":e[1]||(e[1]=m=>t.email=m),error:t.errors.includes("email"),errorText:t.errors.includes("email-incorrect")?l.errorTextEmail:"Обязательное поле не заполнено",required:""},{default:h(()=>[...e[11]||(e[11]=[u(" Email ",-1),o("span",{class:"colored-placeholder"},"*",-1)])]),_:1},8,["onFocus","modelValue","error","errorText"]),f(d,{class:"form__input",placeholder:"",type:"text",multiColor:!0,onFocus:p.clearErrors,modelValue:t.university_name,"onUpdate:modelValue":e[2]||(e[2]=m=>t.university_name=m),error:t.errors.includes("university_name"),required:""},{default:h(()=>[...e[12]||(e[12]=[u(" Название ВУЗа ",-1),o("span",{class:"colored-placeholder"},"*",-1)])]),_:1},8,["onFocus","modelValue","error"]),n.isStudent?(_(),L(v,{key:0,class:"form__input","max-size-mb":10,multiple:!0,error:t.errors.includes("pdf"),onUploaded:a.onUploaded,onError:a.onUploadError,filelist:t.pdf,modelValue:t.pdf,"onUpdate:modelValue":e[3]||(e[3]=m=>t.pdf=m),onClick:p.clearErrors,onFileInput:p.onFileInput},null,8,["error","onUploaded","onError","filelist","modelValue","onClick","onFileInput"])):w("",!0)]),o("div",Le,[f(z,{class:"form__сheckbox",checked:"",modelValue:t.accept_policy,"onUpdate:modelValue":e[4]||(e[4]=m=>t.accept_policy=m),id:"accept_policy",error:t.errors.includes("accept_policy")},{default:h(()=>[e[15]||(e[15]=u("Я ознакомлен(-а) с ",-1)),f(M,{to:"/privacy-policy/"},{default:h(()=>[...e[13]||(e[13]=[u("Политикой конфиденциальности",-1)])]),_:1}),e[16]||(e[16]=u(" и даю свое ",-1)),f(M,{to:"/personal-data-consent/"},{default:h(()=>[...e[14]||(e[14]=[u("согласие на обработку персональных данных ",-1)])]),_:1})]),_:1},8,["modelValue","error"]),f(z,{class:"form__сheckbox",modelValue:t.personal_data_consent,"onUpdate:modelValue":e[5]||(e[5]=m=>t.personal_data_consent=m),id:"personal_data_consent"},{default:h(()=>[...e[17]||(e[17]=[u(" Я даю свое согласие на получение информационных и рекламных материалов ",-1)])]),_:1},8,["modelValue"])]),f(C,{class:"form__contacts__button submit primary",type:"submit",sending:t.submitting.sending,done:t.submitting.done,sendingText:"Отправка",appearance:"gradient",doneText:"Отправлено",flare:""},{text:h(()=>[u(S(n.isStudent?"Отправить документ":"Написать нам"),1)]),_:1},8,["sending","done"]),t.isFormError?(_(),g("div",Ae,"Ой, что-то пошло не так. Попробуйте повторить отправку позже или свяжитесь с нами по email: [email protected]")):w("",!0),t.isFormError?(_(),g("div",Ne,S(t.formErrMsg),1)):w("",!0)]))],32)],10,Be)}const N=j(je,[["render",Ke],["__scopeId","data-v-47e6c323"]]),qe={class:"gradient-bg"},He={class:"legal-page pro-page container"},$e={class:"form-cards"},Ge={class:"form-card students"},Je={class:"form-card professors"},Qe={__name:"education",setup(l){const n="https://openide.ru"+re().fullPath;return he({title:"OpenIDE Pro для студентов и преподавателей",meta:[{name:"description",content:"Получите бесплатную лицензию на OpenIDE Pro для студентов аккредитованных ВУЗов и преподавателей."},{property:"og:type",content:"article"},{property:"og:title",content:"OpenIDE Pro для студентов и преподавателей"},{property:"og:description",content:"Получите бесплатную лицензию Ð
2½Ð° OpenIDE Pro для студентов аккредитованных ВУЗов и преподавателей."},{property:"og:url",content:n.slice(-1)!=="/"?n+"/":n},{property:"og:image",content:"https://openide.ru/images/logo.svg"}]}),(a,t)=>(_(),g("div",qe,[t[4]||(t[4]=o("div",{class:"download-page__rainbow"},[o("span"),o("span"),o("span"),o("span")],-1)),f(c(xe)),o("div",He,[o("div",$e,[o("div",Ge,[t[1]||(t[1]=U('<div class="form-card__content" data-v-8af4a0d2><div class="form-card__icon-wrapper" data-v-8af4a0d2><img src="'+A+'" alt="form education image" data-v-8af4a0d2></div><h2 class="form-card__title" data-v-8af4a0d2> Студентам </h2><div class="form-card__subtitle" data-v-8af4a0d2> Если вы учитесь в аккредитованном вузе, OpenIDE Pro доступна вам бесплатно. Пришлите нам документ, подтверждающий факт обучения (студенческий билет или справку из университета) и мы выдадим вам академическую лицензию OpenIDE Pro. </div></div>',1)),f(c(N),{id:"pro-students",isStudent:!0},{title:h(()=>[...t[0]||(t[0]=[u(" Связаться с нами ",-1)])]),_:1})]),o("div",Je,[t[3]||(t[3]=U('<div class="form-card__content" data-v-8af4a0d2><div class="form-card__icon-wrapper" data-v-8af4a0d2><img src="'+A+'" alt="form education image" data-v-8af4a0d2></div><h2 class="form-card__title" data-v-8af4a0d2> Преподавателям <br data-v-8af4a0d2>и университетам </h2><div class="form-card__subtitle" data-v-8af4a0d2> Если хотите внедрить OpenIDE в учебный процесс или установить на компьютеры в университете — напишите нам с корпоративной почты. Разберёмся с установкой и лицензированием. </div></div>',1)),f(c(N),{id:"pro-professors",isStudent:!1},{title:h(()=>[...t[2]||(t[2]=[u(" Связаться с нами ",-1)])]),_:1})])])])]))}},pt=j(Qe,[["__scopeId","data-v-8af4a0d2"]]);export{pt 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.