import{s as f}from"./SearchModal-72Hbiqqz.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as n,c as r,b as e,t as d,r as x,a as v,F as p,d as m,g as _,n as $,j as h,i as k,h as y,e as B,w as P,f as C,k as j}from"./app-C722ecVx.js";import{C as H}from"./ClientImageSlider-DIxDD91b.js";import{F as w}from"./v3-918lQ39M.js";import{P as L}from"./PageTabBuilder-CRT8Vrz4.js";const S={name:"HeadingBlock",methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},V={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function z(s,t,l,u,o,i){return n(),r("div",null,[e("h2",V,d(l.block.data.content),1)])}const F=g(S,[["render",z]]),T={name:"ParagraphBlock",methods:{wrapTables(s){if(s.type==="paragraph"&&s.data&&s.data.content){const t=s.data.content.replace(/]*)>([\s\S]*?)<\/table>/g,(l,u,o)=>`
${o}
`);return{...s,data:{...s.data,content:t}}}return s}},props:{block:{type:Object}}},I=["innerHTML"];function M(s,t,l,u,o,i){return n(),r("div",{class:"text-sm text-gray-600 leading-6 md:text-[16px] md:text-[#374151] md:leading-8 md:font-light paragraph-container",innerHTML:i.wrapTables(l.block).data.content},null,8,I)}const O=g(T,[["render",M]]),Z={name:"ImageBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},N=["src"];function A(s,t,l,u,o,i){const c=x("FsLightbox");return n(),r(p,null,[e("div",null,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+l.block.data.url,alt:""},null,8,N)]),v(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.url]},null,8,["toggler","sources"])],64)}const D=g(Z,[["render",A]]),E={name:"FileBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Y={class:""},q=["href"],G={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},J={class:"flex items-center"};function K(s,t,l,u,o,i){return n(!0),r(p,null,m(l.block.data.file,c=>(n(),r("div",Y,[e("a",{class:"",href:"/storage/"+c.path,download:"",type:"button"},[e("div",G,[e("div",J,[t[0]||(t[0]=e("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[e("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),e("div",null,d(c.title),1)])])],8,q)]))),256)}const Q=g(E,[["render",K]]),R={name:"PersonBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},U={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"},W={class:"flex items-center gap-x-4"},X=["src"],ee={class:"grow"},te={class:"font-medium text-gray-800 hover:text-gray-500"},se={class:"text-xs text-gray-500 mt-2"};function oe(s,t,l,u,o,i){const c=x("FsLightbox");return n(),r(p,null,[e("div",U,[e("div",W,[e("img",{onClick:t[0]||(t[0]=a=>o.toggler=!o.toggler),loading:"lazy",class:"rounded-xl w-[150px]",src:"/storage/"+l.block.data.photo,alt:"Image Description"},null,8,X),e("div",ee,[e("p",te,d(l.block.data.name),1),(n(!0),r(p,null,m(l.block.data.info,a=>(n(),r("p",se,d(a.column)+": "+d(a.content),1))),256))])])]),v(c,{class:"",toggler:o.toggler,sources:[o.domainPath+"/storage/"+l.block.data.photo]},null,8,["toggler","sources"])],64)}const le=g(R,[["render",oe]]),ne={name:"StepperBlock",components:{FsLightbox:w},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},re={class:"flex gap-x-3"},ae={class:"w-16 text-end min-w-[4rem]"},ie={class:"text-xs text-gray-500"},ce={class:"grow max-w-[70%] pt-0.5 pb-8 overflow-wrap break-words"},de={class:"flex gap-x-1.5 font-semibold text-gray-800"},ue=["innerHTML"];function ge(s,t,l,u,o,i){return n(),r("div",null,[(n(!0),r(p,null,m(l.block.data.steps,(c,a)=>(n(),r("div",re,[e("div",ae,[e("span",ie,d(l.block.data.step_name)+" "+d(a+1),1)]),t[0]||(t[0]=e("div",{class:"relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-3.5 after:w-px after:-translate-x-[0.5px] after:bg-gray-200"},[e("div",{class:"relative z-10 size-7 flex justify-center items-center"},[e("div",{class:"size-2 rounded-full bg-primaryBlue"})])],-1)),e("div",ce,[e("h3",de,d(c.title),1),e("p",{class:"mt-1 text-sm text-gray-600 step-content",innerHTML:c.content},null,8,ue)])]))),256))])}const pe=g(ne,[["render",ge]]),me={name:"VideoBlock",data(){return{toggler:!1,domainPath:null}},methods:{},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},he={class:"h-full w-full rounded-lg",controls:""},fe=["src","type"],xe={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function be(s,t,l,u,o,i){return n(),r(p,null,[e("video",he,[e("source",{src:o.domainPath+"/storage/"+l.block.data.path,type:l.block.data.mime},null,8,fe),t[0]||(t[0]=_(" Your browser does not support the video tag. "))]),e("figcaption",xe,d(l.block.data.title),1)],64)}const _e=g(me,[["render",be]]),ve={name:"TabBlock",components:{PageTabBuilder:L},data(){return{activeTab:0}},methods:{generateSlug:function(s){return f(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},we={class:""},ke={class:"-mb-0.5 flex justify-center gap-x-2","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},ye=["onClick","id","data-hs-tab","aria-controls"],$e={class:"mt-3"},Be=["id","aria-labelledby"];function Pe(s,t,l,u,o,i){const c=x("PageTabBuilder");return n(),r(p,null,[e("div",we,[e("nav",ke,[(n(!0),r(p,null,m(l.block.data.tab,(a,b)=>(n(),r("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",o.activeTab===b?"active":""]),onClick:xt=>o.activeTab=b,id:i.generateSlug(a.title)+"-item","data-hs-tab":"#"+i.generateSlug(a.title),"aria-selected":"false","aria-controls":i.generateSlug(a.title),role:"tab"},d(a.title),11,ye))),256))])]),e("div",$e,[(n(!0),r(p,null,m(l.block.data.tab,(a,b)=>(n(),r("div",{id:i.generateSlug(a.title),class:$(o.activeTab===b?"":"hidden"),role:"tabpanel","aria-labelledby":i.generateSlug(a.title)+"-item"},[v(c,{blocks:a.content},null,8,["blocks"])],10,Be))),256))])],64)}const Ce=g(ve,[["render",Pe]]),je={name:"PostListBlock",components:{axios:h,Link:k},data(){return{posts:null,loading:!0}},methods:{getPosts(){h.get(route("client.widget.post.index"),{params:{count:this.block.data.count,category:this.block.data.category}}).then(s=>{this.posts=s.data,this.loading=!1}).catch(s=>{console.error("Ошибка:",s),this.loading=!1})}},mounted(){this.getPosts()},props:{block:{type:Object}}},He={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},Le={key:0,class:"flex flex-col space-y-4"},Se={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},Ve={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ze={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},Fe=["src"],Te={class:"grow"},Ie={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"},Me={class:"flex justify-center"},Oe=["href"];function Ze(s,t,l,u,o,i){const c=x("Link");return n(),r("div",He,[o.loading?(n(),r("div",Le,t[0]||(t[0]=[y('

',3)]))):(n(),r("div",Se,[(n(!0),r(p,null,m(o.posts.data,a=>(n(),B(c,{key:a.id,class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",a.slug)},{default:P(()=>[e("div",Ve,[e("div",ze,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:a.preview?"storage/images/"+a.preview:"/img/thumbnail-1.png"},null,8,Fe)]),e("div",Te,[e("h3",Ie,d(a.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[_(" Читать далее "),e("svg",{class:"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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),128)),e("div",Me,[e("a",{href:s.route("client.post.index",{category:l.block.data.category}),class:"group inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},t[3]||(t[3]=[_(" Все новости "),e("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1)]),8,Oe)])]))])}const Ne=g(je,[["render",Ze]]),Ae={name:"PageItemBlock",components:{axios:h,Link:k},data(){return{page:null,breadcrumbs:null,loading:!0}},methods:{getPage(s){h.get(route("client.widget.page.single",s)).then(t=>{this.page=t.data.data.page,this.breadcrumbs=t.data.data.breadcrumbs,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPage(this.block.data.page)},props:{block:{type:Object}}},De={key:0,class:"flex flex-col space-y-4"},Ee={key:1,class:"w-full px-2 sm:px-3 lg:px-4mx-auto"},Ye=["href"],qe={class:"p-4 md:p-5"},Ge={class:"flex items-center gap-x-5"},Je={class:"grow"},Ke={key:0,class:"flex items-center whitespace-nowrap"},Qe={class:"inline-flex items-center"},Re={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Ue={class:"inline-flex items-center"},We={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Xe={class:"inline-flex items-center"},et={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},tt={class:"mt-1 group-hover:text-blue-600 font-semibold text-gray-700"};function st(s,t,l,u,o,i){return o.loading?(n(),r("div",De,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",Ee,[e("a",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:o.page.is_url?o.page.path:s.route("page.view",o.page.path)+"/"},[e("div",qe,[e("div",Ge,[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"mt-1 shrink-0 size-7 text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("div",Je,[o.breadcrumbs?(n(),r("ol",Ke,[e("li",Qe,[e("span",Re,d(o.breadcrumbs.mainSection),1),t[1]||(t[1]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Ue,[e("span",We,d(o.breadcrumbs.mainSection),1),t[2]||(t[2]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",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"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Xe,[e("span",et,d(o.breadcrumbs.page),1)])])):C("",!0),e("h3",tt,d(o.page.title),1)])])])],8,Ye)]))}const ot=g(Ae,[["render",st]]),lt={name:"PostListBlock",components:{axios:h,Link:k},data(){return{post:null,loading:!0}},methods:{getPost(s){h.get(route("client.widget.post.single",s),{params:{count:this.block.data.count,category:this.block.data.category}}).then(t=>{this.post=t.data,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPost(this.block.data.post)},props:{block:{type:Object}}},nt={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},rt={key:0,class:"flex flex-col space-y-4"},at={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},it={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},ct={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},dt=["src"],ut={class:"grow"},gt={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"};function pt(s,t,l,u,o,i){const c=x("Link");return n(),r("div",nt,[o.loading?(n(),r("div",rt,t[0]||(t[0]=[y('

',1)]))):(n(),r("div",at,[v(c,{class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",o.post.data.slug)},{default:P(()=>[e("div",it,[e("div",ct,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:o.post.data.preview?"storage/images/"+o.post.data.preview:"/img/thumbnail-1.png"},null,8,dt)]),e("div",ut,[e("h3",gt,d(o.post.data.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[_(" Читать далее "),e("svg",{class:"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"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:1},8,["href"])]))])}const mt=g(lt,[["render",pt]]),ht={name:"FacultyBuilder",components:{FileBlock:Q,ImageBlock:D,ClientImageSlider:H,ParagraphBlock:O,HeadingBlock:F,PersonBlock:le,StepperBlock:pe,VideoBlock:_e,TabBlock:Ce,PostListBlock:Ne,PageItemBlock:ot,PostItemBlock:mt},methods:{getComponent(s){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[s]||null}},props:{blocks:{type:Object}}};function ft(s,t,l,u,o,i){return n(!0),r(p,null,m(l.blocks,(c,a)=>(n(),B(j(i.getComponent(c.type)),{key:a,block:c},null,8,["block"]))),128)}const $t=g(ht,[["render",ft]]);export{$t as F};