3 lines
8.6 KiB
JavaScript
3 lines
8.6 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HeadingBlock-B6vgs5RT.js","assets/SearchModal-BTKERLZv.js","assets/app-CBssobj-.js","assets/app-DChzJ_Ea.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/SearchModal-DGTpDLJ5.css","assets/ParagraphBlock-BweYyzkY.js","assets/ParagraphBlock-DFLxgZzs.css","assets/ClientImageSlider-CvtLuRx_.js","assets/v3-DnjJww8i.js","assets/ImageBlock-DYPERL6F.js","assets/ImageBlock-CjbQ7Xd1.css","assets/FileBlock-Blx3yiDN.js","assets/PersonBlock-BPXTqyzY.js","assets/PersonBlock-Y1OFixhA.css","assets/StepperBlock-CW2_9ZUx.js","assets/StepperBlock-DNUyIEMk.css","assets/VideoBlock-C-U8CRac.js","assets/TabBlock-07Ed0A6n.js","assets/PageTabBuilder-Db8g88-o.js","assets/PostListBlock-CLMN_FUG.js","assets/PostItemBlock-DjUyQeQX.js","assets/PageItemBlock-DxSH7bRS.js","assets/FormBlock-BFIDbHeW.js","assets/FormBlock-BGQ6HgNS.css"])))=>i.map(i=>d[i]);
|
||
import{q as b,o as l,c,d as f,e as k,k as y,F as v,_ as i,i as w,b as t,g as x,l as p,t as m,f as g,n as L,a as T,w as E,T as C}from"./app-CBssobj-.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{s as P}from"./SearchModal-BTKERLZv.js";const B={name:"PageBuilder",methods:{getComponent(s){return b({heading:()=>i(()=>import("./HeadingBlock-B6vgs5RT.js"),__vite__mapDeps([0,1,2,3,4,5])),paragraph:()=>i(()=>import("./ParagraphBlock-BweYyzkY.js"),__vite__mapDeps([6,1,2,3,4,5,7])),images:()=>i(()=>import("./ClientImageSlider-CvtLuRx_.js"),__vite__mapDeps([8,9,2,3,4])),image:()=>i(()=>import("./ImageBlock-DYPERL6F.js"),__vite__mapDeps([10,1,2,3,4,5,9,11])),files:()=>i(()=>import("./FileBlock-Blx3yiDN.js"),__vite__mapDeps([12,1,2,3,4,5,9,11])),person:()=>i(()=>import("./PersonBlock-BPXTqyzY.js"),__vite__mapDeps([13,1,2,3,4,5,9,14])),stepper:()=>i(()=>import("./StepperBlock-CW2_9ZUx.js"),__vite__mapDeps([15,1,2,3,4,5,9,16])),video:()=>i(()=>import("./VideoBlock-C-U8CRac.js"),__vite__mapDeps([17,1,2,3,4,5,9])),tabs:()=>i(()=>import("./TabBlock-07Ed0A6n.js"),__vite__mapDeps([18,1,2,3,4,5,19,0,6,7,8,9,10,11,12,13,14,15,16,17,20])),postsList:()=>i(()=>import("./PostListBlock-CLMN_FUG.js"),__vite__mapDeps([20,1,2,3,4,5,11])),postItem:()=>i(()=>import("./PostItemBlock-DjUyQeQX.js"),__vite__mapDeps([21,1,2,3,4,5,11])),pageItem:()=>i(()=>import("./PageItemBlock-DxSH7bRS.js"),__vite__mapDeps([22,1,2,3,4,5])),customForm:()=>i(()=>import("./FormBlock-BFIDbHeW.js"),__vite__mapDeps([23,1,2,3,4,5,9,24]))}[s]||null)}},props:{blocks:{type:Array,required:!0}}};function S(s,e,r,u,a,o){return l(!0),c(v,null,f(r.blocks,(n,d)=>(l(),k(y(o.getComponent(n.type)),{key:d,block:n},null,8,["block"]))),128)}const re=h(B,[["render",S]]),V={name:"PageBreadcrumbs",components:{Link:w},data(){return{}},methods:{textLimit(s,e){if(s.length>e){let r;return r=s.substring(0,e),r+"..."}return s}},props:{breadcrumbs:{type:Object},pageTitle:{type:String}}},A={class:"flex justify-between pb-4 items-center"},R={class:"flex w-full sm:items-center gap-x-5 sm:gap-x-3"},D={class:"grow"},I={class:"grid sm:flex sm:justify-between sm:items-center gap-2"},O={key:0,class:"flex items-center whitespace-normal min-w-0 flex-wrap gap-y-2","aria-label":"Breadcrumb"},N={class:"text-sm"},M={class:"text-sm"},$={class:"text-sm"},j={key:1,class:"flex items-center whitespace-nowrap min-w-0 flex-wrap","aria-label":"Breadcrumb"},q={class:"text-sm"};function F(s,e,r,u,a,o){return l(),c("div",A,[t("div",R,[t("div",D,[t("div",I,[r.breadcrumbs?(l(),c("ol",O,[e[6]||(e[6]=t("li",{class:"text-sm"},[t("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue"},[x(" Главная "),t("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})])])],-1)),t("li",N,[t("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue",onClick:e[0]||(e[0]=p(()=>{},["prevent"]))},[x(m(o.textLimit(this.breadcrumbs.mainSection,25))+" ",1),e[4]||(e[4]=t("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1))])]),t("li",M,[t("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue",onClick:e[1]||(e[1]=p(()=>{},["prevent"]))},[x(m(o.textLimit(this.breadcrumbs.subSection,25))+" ",1),e[5]||(e[5]=t("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1))])]),t("li",$,[t("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue",onClick:e[2]||(e[2]=p(()=>{},["prevent"]))},m(o.textLimit(this.breadcrumbs.page,25)),1)])])):g("",!0),r.breadcrumbs?g("",!0):(l(),c("ol",j,[e[7]||(e[7]=t("li",{class:"text-sm"},[t("span",{class:"flex items-center text-gray-500 hover:text-blue-600",href:"/"},[x(" Главная "),t("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})])])],-1)),t("li",q,[t("span",{class:"flex items-center text-gray-500 hover:text-blue-600",onClick:e[3]||(e[3]=p(()=>{},["prevent"]))},m(o.textLimit(r.pageTitle,30)),1)])]))])])])])}const se=h(V,[["render",F]]),z={name:"PageTitle",components:{Link:w},data(){return{}},methods:{textLimit(s,e){if(s.length>e){let r;return r=s.substring(0,e),r+"..."}return s}},props:{header:{type:String}}},H={class:"space-y-3"},Y={class:"text-2xl mb-10 font-bold md:text-3xl"};function G(s,e,r,u,a,o){return l(),c("div",H,[t("h1",Y,m(r.header),1)])}const oe=h(z,[["render",G]]),J={name:"PageNavigateLinks",components:{Link:w},data(){return{currentNavSection:null,scrollTop:!1}},methods:{textLimit(s,e){if(s.length>e){let r;return r=s.substring(0,e),r+"..."}return s},generateSlug(s){return P(s,{lower:!0,strict:!0,locale:"ru"})},onScroll(s){const e=window.scrollY;this.scrollTop=e>100;const r=document.querySelectorAll("h2"),u=document.querySelector("#visor");let a=null;const o=u.getBoundingClientRect();if(o.top>window.scrollY){this.currentNavSection=null,a=null;return}for(let n=0;n<r.length;n++){const d=r[n],_=d.getBoundingClientRect();if(_.top>=0&&_.bottom<=window.innerHeight&&_.bottom>=o.top&&_.top<=o.bottom){d!==a&&(this.currentNavSection=d.id,a=d);break}}},scrollToTop(){window.scrollTo(0,0)}},mounted(){window.addEventListener("scroll",this.onScroll)},unmounted(){window.removeEventListener("scroll",this.onScroll)},props:{headerNavs:{type:Array}}},K={class:"order-last hidden w-56 shrink-0 lg:block"},Q={key:0,class:"sticky top-[100px] h-[calc(100vh-121px)]"},U={class:"styled-scrollbar max-h-[70vh] space-y-1.5 overflow-y-auto py-2 text-sm"},W=["href"];function X(s,e,r,u,a,o){return l(),c(v,null,[e[3]||(e[3]=t("div",{class:"w-full h-[67px] fixed",id:"visor"},null,-1)),t("nav",K,[r.headerNavs.length>0?(l(),c("div",Q,[e[2]||(e[2]=t("div",{class:"text-gray-1000 mb-2 text-md font-medium"},"На этой странице",-1)),t("ul",U,[(l(!0),c(v,null,f(r.headerNavs,n=>(l(),c("li",{class:"anchor-li",key:n.id},[t("a",{class:L([{"translate-x-2 text-primaryBlue":a.currentNavSection===o.generateSlug(n.text),"bg-transperant text-gray-600 hover:text-gray-900":a.currentNavSection!==o.generateSlug(n.text)},"duration-150 block py-1 px-2 leading-[1.6] rounded-md"]),href:"#"+o.generateSlug(n.text)},m(n.text),11,W)]))),128)),T(C,{name:"fade"},{default:E(()=>[a.scrollTop?(l(),c("li",{key:0,class:"anchor-li flex items-center py-2 border-t",onClick:e[0]||(e[0]=p((...n)=>o.scrollToTop&&o.scrollToTop(...n),["prevent"]))},e[1]||(e[1]=[t("button",{class:"bg-transperant text-gray-600 cursor-pointer hover:text-gray-900 duration-300 block px-2 leading-[1.6] rounded-md"},"К началу",-1),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-[17px] text-gray-600"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 11.25l-3-3m0 0l-3 3m3-3v7.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))):g("",!0)]),_:1})])])):g("",!0)])],64)}const ne=h(J,[["render",X]]);export{ne as P,oe as a,se as b,re as c};
|