2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
import{i as y,Z as b,r as p,c as n,a as m,w as f,b as t,t as o,F as i,d,o as a,f as l}from"./app-CBssobj-.js";import{F as v}from"./v3-DnjJww8i.js";import{C as w}from"./ClientScrollTimeline-CnUXvyjc.js";import{C as j}from"./ClientFooterDown-B1P9jP1W.js";import{A as z,a as C,b as k}from"./AdminIndexHeaderTitle-CW1E5hbW.js";import{A as L}from"./AdminIndexHeader-C9rCJkLR.js";import{C as M,a as A}from"./ClientPostSearch-B5aUVN-Q.js";import{C as B}from"./ClientPost-DIJzEVBF.js";import T from"./ClientImageSlider-CvtLuRx_.js";import{M as F}from"./MainPageNavbar-Cmz730h9.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal-BTKERLZv.js";import"./SortingByFilter-Ds4x3JAu.js";const S={name:"Show",components:{MainPageNavBar:F,ClientImageSlider:T,AdminIndexHeaderTitle:z,AdminIndexHeader:L,AdminIndexFilter:C,AdminIndexSearch:k,ClientFooterDown:j,ClientScrollTimeline:w,ClientPostFilter:M,Link:y,FsLightbox:v,Head:b,ClientPost:B,ClientPostSearch:A},data(){return{}},props:{journal:{type:Object},journals:{type:Object},years:{type:Object}},methods:{textLimit(c,s){if(c.length>s){let r;return r=c.substring(0,s),r+"..."}return c}},mounted(){}},I={class:"flex flex-col h-screen"},V={class:"flex-grow"},N={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:py-10"},P={class:"w-100"},D={class:"space-y-10 md:space-y-8"},O={class:"text-brand-primary text-center mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"},E={class:"container px-8 xl:px-5 py-3 lg:py-4 w-4/5 mx-auto"},Z={id:"horizontal-alignment-1",role:"tabpanel","aria-labelledby":"horizontal-alignment-item-1"},q={key:0},G={class:"font-bold text-xl"},J=["innerHTML"],K={key:2},Q={key:3},R={class:"flex border rounded-lg px-4 py-2 items-center justify-between"},U={class:"flex items-center"},W=["href"],X={id:"horizontal-alignment-2",class:"hidden w-full",role:"tabpanel","aria-labelledby":"horizontal-alignment-item-2"},Y={class:"flex items-center gap-x-4"},$={class:"grow"},tt={class:"font-medium text-gray-800 hover:text-gray-500 underline"},et={class:"text-xs text-gray-500 mt-2"},nt={class:"text-xs text-gray-500 mt-2"},at={class:"text-xs text-gray-500 mt-2"},st={class:"flex items-center gap-x-4"},ot={class:"grow"},it={class:"font-medium text-gray-800 hover:text-gray-500"},rt={class:"text-xs text-gray-500 mt-2"},lt={class:"text-xs text-gray-500 mt-2"},dt={class:"text-xs text-gray-500 mt-2"},ct={id:"horizontal-alignment-3",class:"hidden",role:"tabpanel","aria-labelledby":"horizontal-alignment-item-3"},mt={key:0},pt={class:"font-bold text-xl"},ht=["innerHTML"],gt={key:2},ut={key:3},xt={class:"flex border rounded-lg px-4 py-2 items-center justify-between"},_t={class:"flex items-center"},yt=["href"],bt={id:"horizontal-alignment-4",class:"hidden",role:"tabpanel","aria-labelledby":"horizontal-alignment-item-4"},ft={class:"px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},vt={class:""},wt={class:"font-bold text-xl text-center"},jt={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-3 sm:gap-6 mb-4"},zt=["href"],Ct={class:"p-4 md:p-5"},kt={class:"flex justify-between items-center gap-x-3"},Lt={class:"grow"},Mt={class:"text-sm text-gray-500"},At={class:"group-hover:text-blue-600 font-semibold text-gray-800"};function Bt(c,s,r,Tt,Ft,Ht){const u=p("Head"),x=p("MainPageNavBar"),g=p("ClientImageSlider"),_=p("ClientFooterDown");return a(),n(i,null,[m(u,null,{default:f(()=>s[0]||(s[0]=[t("title",null,"Журнал",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),m(x,{class:"border-b",sections:c.$page.props.navigation},null,8,["sections"]),t("div",I,[t("main",V,[t("div",N,[t("div",P,[t("div",null,[t("div",D,[t("h1",O,o(r.journal.data.title),1),s[7]||(s[7]=t("div",null,[t("nav",{class:"-mb-0.5 flex justify-center gap-x-6","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},[t("button",{type:"button",class:"hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none active",id:"horizontal-alignment-item-1","aria-selected":"true","data-hs-tab":"#horizontal-alignment-1","aria-controls":"horizontal-alignment-1",role:"tab"}," Основная информация журнала "),t("button",{type:"button",class:"hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",id:"horizontal-alignment-item-2","aria-selected":"false","data-hs-tab":"#horizontal-alignment-2","aria-controls":"horizontal-alignment-2",role:"tab"}," Редакция "),t("button",{type:"button",class:"hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",id:"horizontal-alignment-item-3","aria-selected":"false","data-hs-tab":"#horizontal-alignment-3","aria-controls":"horizontal-alignment-3",role:"tab"}," Информация для авторов "),t("button",{type:"button",class:"hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",id:"horizontal-alignment-item-3","aria-selected":"false","data-hs-tab":"#horizontal-alignment-4","aria-controls":"horizontal-alignment-4",role:"tab"}," Архив ")])],-1)),t("div",E,[t("div",Z,[(a(!0),n(i,null,d(r.journal.data.main_info,e=>(a(),n(i,{key:e.id},[e.type==="heading"?(a(),n("div",q,[t("h2",G,o(e.data.content),1)])):l("",!0),e.type==="paragraph"?(a(),n("div",{key:1,class:"text-[15px] text-[#374151] paragraph-container leading-8 font-light",innerHTML:e.data.content},null,8,J)):l("",!0),e.type==="image"?(a(),n("div",K,[m(g,{images:e.data.url},null,8,["images"])])):l("",!0),e.type==="files"?(a(),n("div",Q,[t("div",R,[t("div",U,[s[1]||(s[1]=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(e.data.title),1)]),t("a",{href:"/storage/"+e.data.path,download:"",type:"button",class:"w-[35px] h-[35px] flex bg-gray-100 rounded-lg justify-center items-center hover:bg-gray-200 duration-200"},s[2]||(s[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:"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,W)])])):l("",!0)],64))),128))]),t("div",X,[(a(!0),n(i,null,d(r.journal.data.chief_editor,e=>(a(),n("div",{key:e.id,class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},[t("div",Y,[t("div",$,[t("p",tt," Главный редактор: "+o(e.name),1),t("p",et," Ученая степень: "+o(e.academicTitle),1),t("p",nt," Должность: "+o(e.position),1),t("p",at," Учереждение: "+o(e.institution),1)])])]))),128)),(a(!0),n(i,null,d(r.journal.data.editors,e=>(a(),n("div",{key:e.id,class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},[t("div",st,[t("div",ot,[t("p",it,o(e.name),1),t("p",rt," Ученая степень: "+o(e.academicTitle),1),t("p",lt," Должность: "+o(e.position),1),t("p",dt," Учереждение: "+o(e.institution),1)])])]))),128))]),t("div",ct,[(a(!0),n(i,null,d(r.journal.data.for_authors,e=>(a(),n(i,{key:e.id},[e.type==="heading"?(a(),n("div",mt,[t("h2",pt,o(e.data.content),1)])):l("",!0),e.type==="paragraph"?(a(),n("div",{key:1,class:"text-[16px] text-[#374151] paragraph-container leading-8 font-light",innerHTML:e.data.content},null,8,ht)):l("",!0),e.type==="image"?(a(),n("div",gt,[m(g,{images:e.data.url},null,8,["images"])])):l("",!0),e.type==="files"?(a(),n("div",ut,[t("div",xt,[t("div",_t,[s[3]||(s[3]=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(e.data.title),1)]),t("a",{href:"/storage/"+e.data.path,download:"",type:"button",class:"w-[35px] h-[35px] flex bg-gray-100 rounded-lg justify-center items-center hover:bg-gray-200 duration-200"},s[4]||(s[4]=[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,yt)])])):l("",!0)],64))),128))]),t("div",bt,[t("div",ft,[t("div",vt,[(a(!0),n(i,null,d(r.journals,e=>(a(),n(i,null,[t("h2",wt,o(e.year_publication),1),s[6]||(s[6]=t("hr",{class:"mb-4 mt-2"},null,-1)),t("div",jt,[(a(!0),n(i,null,d(e.journalIssues,h=>(a(),n("a",{target:"_blank",class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:"/storage/"+h.path_file},[t("div",Ct,[t("div",kt,[t("div",Lt,[t("p",Mt,o(h.year_publication),1),t("h3",At,o(h.title),1)]),s[5]||(s[5]=t("div",null,[t("svg",{class:"shrink-0 size-5 text-gray-800",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:"m9 18 6-6-6-6"})])],-1))])])],8,zt))),256))])],64))),256))])])])])])])])])]),m(_)])],64)}const Qt=H(S,[["render",Bt]]);export{Qt as default};
|