2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
import{i as w,Z as b,r as l,c as i,a as c,w as m,b as t,g as h,t as o,h as u,F as x,d as g,o as r,f as n}from"./app-CBssobj-.js";import{F as k}from"./v3-DnjJww8i.js";import{C as z}from"./ClientScrollTimeline-CnUXvyjc.js";import{C}from"./ClientFooterDown-B1P9jP1W.js";import{a as j,C as M}from"./ClientPostSearch-B5aUVN-Q.js";import{C as B}from"./ClientPost-DIJzEVBF.js";import{A as S}from"./AdminIndexHeader-C9rCJkLR.js";import{M as E}from"./MainPageNavbar-Cmz730h9.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";import"./SortingByFilter-Ds4x3JAu.js";const H={name:"Show",components:{MainPageNavBar:E,ClientPostSearch:j,AdminIndexHeader:S,ClientPost:B,ClientPostFilter:M,ClientFooterDown:C,ClientScrollTimeline:z,Link:w,FsLightbox:k,Head:b},data(){return{}},props:{additionalEducation:{type:Object}},methods:{getFormOfStudy(d){return Array.from(new Set(d.map(a=>a.form_edu)))},getYearOfStudy(d){return Array.from(new Set(d.map(a=>a.period_data)))}}},L={class:"flex flex-col h-screen"},F={class:"flex-grow"},N={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},O={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},V={class:"space-y-5 md:space-y-4"},P={class:"space-y-5 md:space-y-4"},D={class:"container px-8 mx-auto xl:px-5 max-w-screen-lg py-5 lg:py-8"},T={class:"space-y-3 flex flex-col items-center justify-center"},Y={class:"text-2xl text-center font-bold md:text-4xl"},I={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},q={class:"grid sm:grid-cols-2 lg:grid-cols-3 items-start gap-12"},Z={class:"text-center"},G={class:"mt-3"},J={class:"mt-1 text-gray-600"},K={class:"text-center"},Q={class:"mt-3"},R={class:"mt-1 text-gray-600"},U={class:"text-center"},W={class:"mt-3"},X={class:"mt-1 text-gray-600"},$={class:"text-center"},tt={class:"mt-3"},et={class:"mt-1 text-gray-600"},st={class:"text-center"},ot={class:"mt-3"},at={class:"mt-1 text-gray-600"},it={class:"text-center"},rt={class:"mt-3"},nt={class:"mt-1 text-gray-600"},dt={class:"py-4 px-5"},lt={key:0,class:"mb-4"},ct={class:"font-bold text-xl"},xt={key:1},ht=["src"],mt=["innerHTML"],ut={key:3},gt={class:"flex border rounded-lg px-4 py-2 items-center justify-between"},pt={class:"flex items-center"},ft=["href"],vt={key:4},yt={key:0,class:"w-full mx-auto"},_t=["href"],wt={class:"absolute top-0 inset-x-0 z-10"},bt={class:"p-4 flex flex-col h-full sm:p-6"},kt={class:"flex items-center"},zt={class:"ms-2.5 sm:ms-4"},Ct={class:"font-semibold text-white"},jt={class:"text-xs text-white/[.8]"},Mt={class:"absolute bottom-0 inset-x-0 z-10"},Bt={class:"flex flex-col h-full p-4 sm:p-6"},St={class:"text-lg sm:text-3xl font-semibold text-white group-hover:text-white/[.8]"},Et={class:"mt-2 text-white/[.8]"},At={key:1,class:"flex flex-col rounded-xl p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},Ht={class:"flex items-center gap-x-4"},Lt=["src"],Ft={class:"grow"},Nt={class:"text-xs text-gray-500 mt-2"},Ot={class:"text-xs text-gray-500 mt-2"},Vt=["href"];function Pt(d,e,a,Dt,Tt,Yt){const p=l("Head"),f=l("MainPageNavBar"),v=l("Link"),y=l("ClientFooterDown");return r(),i(x,null,[c(p,null,{default:m(()=>e[0]||(e[0]=[t("title",null,"Образовательная программа",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),c(f,{class:"border-b",sections:d.$page.props.navigation},null,8,["sections"]),t("div",L,[t("main",F,[t("div",N,[t("div",O,[t("div",null,[t("div",V,[t("div",P,[t("div",null,[t("div",D,[e[17]||(e[17]=t("a",{onclick:"history.back()",class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500",href:"#"},[t("svg",{class:"flex-shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"m15 18-6-6 6-6"})]),h(" Назад ")],-1)),t("div",T,[t("h1",Y,o(a.additionalEducation.data.title),1)]),t("div",I,[t("div",q,[t("div",Z,[e[2]||(e[2]=u('<div class="flex justify-center items-center size-12 bg-gray-50 border border-gray-200 rounded-full mx-auto"><svg class="flex-shrink-0 size-5 text-gray-600" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="10" height="14" x="3" y="8" rx="2"></rect><path d="M5 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2h-2.4"></path><path d="M8 18h.01"></path></svg></div>',1)),t("div",G,[e[1]||(e[1]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Направление подготовки",-1)),t("p",J,o(a.additionalEducation.data.directionAdditionalEducation.title)+" "+o(a.additionalEducation.data.category),1)])]),t("div",K,[e[4]||(e[4]=u('<div class="flex justify-center items-center size-12 bg-gray-50 border border-gray-200 rounded-full mx-auto"><svg class="flex-shrink-0 size-5 text-gray-600" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 7h-9"></path><path d="M14 17H5"></path><circle cx="17" cy="17" r="3"></circle><circle cx="7" cy="7" r="3"></circle></svg></div>',1)),t("div",Q,[e[3]||(e[3]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Срок обучения",-1)),t("p",R,o(a.additionalEducation.data.learning_time)+" часов",1)])]),t("div",U,[e[6]||(e[6]=t("div",{class:"flex justify-center items-center size-12 bg-gray-50 border border-gray-200 rounded-full mx-auto"},[t("svg",{class:"flex-shrink-0 size-5 text-gray-600",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),t("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})])],-1)),t("div",W,[e[5]||(e[5]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Присваиваемая квалификация",-1)),t("p",X,o(a.additionalEducation.data.qualification),1)])]),t("div",$,[e[8]||(e[8]=t("div",{class:"flex justify-center items-center size-12 bg-gray-50 border border-gray-200 rounded-full mx-auto"},[t("svg",{class:"flex-shrink-0 size-5 text-gray-600",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),t("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})])],-1)),t("div",tt,[e[7]||(e[7]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Форма обучения",-1)),t("p",et,o(a.additionalEducation.data.form_education),1)])]),t("div",st,[e[10]||(e[10]=t("div",{class:"flex justify-center items-center size-12 bg-gray-50 border border-gray-200 rounded-full mx-auto"},[t("svg",{class:"flex-shrink-0 size-5 text-gray-600",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),t("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})])],-1)),t("div",ot,[e[9]||(e[9]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Цена обучения",-1)),t("p",at,o(a.additionalEducation.data.price)+" ₽",1)])]),t("div",it,[e[12]||(e[12]=t("div",{class:"flex justify-center items-center size-12 bg-gray-50 border border-gray-200 rounded-full mx-auto"},[t("svg",{class:"flex-shrink-0 size-5 text-gray-600",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),t("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})])],-1)),t("div",rt,[e[11]||(e[11]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Целевая аудитория",-1)),t("p",nt,o(a.additionalEducation.data.target_group),1)])])])]),e[18]||(e[18]=t("div",{class:"space-y-3 flex flex-col mb-[50px] items-center justify-center"},[t("button",{type:"button",class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"}," Оставить заявку на консультацию ")],-1)),e[19]||(e[19]=t("div",null,null,-1)),t("div",null,[e[16]||(e[16]=t("h2",{class:"text-xl font-bold md:text-2xl"},"О программе",-1)),t("div",dt,[(r(!0),i(x,null,g(this.additionalEducation.data.content,s=>(r(),i(x,{key:s.id},[s.type==="heading"?(r(),i("div",lt,[t("h2",ct,o(s.data.content),1)])):n("",!0),s.type==="image"?(r(),i("div",xt,[(r(!0),i(x,null,g(s.data.url,_=>(r(),i("img",{loading:"lazy",class:"mx-auto object-cover rounded-sm hover:opacity-95 hover:duration-200 transition",src:"/storage/"+_,alt:""},null,8,ht))),256))])):n("",!0),s.type==="paragraph"?(r(),i("div",{key:2,class:"text-[16px] text-[#374151] leading-8 font-light paragraph-container",innerHTML:s.data.content},null,8,mt)):n("",!0),s.type==="attaches"?(r(),i("div",ut,[t("div",gt,[t("div",pt,[e[13]||(e[13]=t("div",{class:"w-[35px] h-[35px] bg-black flex justify-center items-center rounded-xl mr-2"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13",stroke:"white"})])],-1)),t("div",null,o(s.data.title),1)]),t("a",{href:s.data.file.url,download:"",type:"button",class:"w-[35px] h-[35px] flex bg-gray-100 rounded-lg justify-center items-center hover:bg-gray-200 duration-200"},e[14]||(e[14]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"})],-1)]),8,ft)])])):n("",!0),s.type==="linkTool"?(r(),i("div",vt,[s.data.meta.type==="post"?(r(),i("div",yt,[t("a",{class:"group relative block rounded-xl dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600",href:s.data.link},[e[15]||(e[15]=t("div",{class:"flex-shrink-0 relative w-full rounded-xl overflow-hidden w-full h-[350px] before:absolute before:inset-x-0 before:w-full before:h-full before:bg-gradient-to-t before:from-gray-900/[.7] before:z-[1]"},null,-1)),t("div",wt,[t("div",bt,[t("div",kt,[t("div",zt,[t("h4",Ct,o(s.data.meta.data.authors[0].name),1),t("p",jt,o(s.data.meta.data.created_post),1)])])])]),t("div",Mt,[t("div",Bt,[t("h3",St,o(s.data.meta.data.title),1),t("p",Et,o(d.textLimit(s.data.meta.description,200)),1)])])],8,_t)])):n("",!0),s.data.meta.type==="student"?(r(),i("div",At,[t("div",Ht,[t("img",{loading:"lazy",class:"rounded-xl w-[150px]",src:s.data.meta.data.photo,alt:"Image Description"},null,8,Lt),t("div",Ft,[c(v,{href:s.data.link,class:"font-medium text-gray-800 hover:text-gray-500 underline"},{default:m(()=>[h(o(s.data.meta.title),1)]),_:2},1032,["href"]),t("p",Nt,o(s.data.meta.data.position),1),t("p",Ot,[h(o(s.data.meta.data.contactEmail)+" / ",1),t("a",{href:s.data.meta.data.vk_link},"Вконтакте",8,Vt)])])])])):n("",!0)])):n("",!0)],64))),128))])])])])])])])])])]),c(y)])],64)}const $t=A(H,[["render",Pt]]);export{$t as default};
|