Files
ntspi-app/public/build/assets/AdditionalEducationProgramItemBreadcrumbs-uUUJAWAE.js
T
2024-10-28 12:57:16 +05:00

3 lines
10 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HeadingBlock-DZAeIVzd.js","assets/SearchModal-YI3bdWA9.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/app-lT3z3TR3.js","assets/app-CUj9x2C4.css","assets/SearchModal-XsSd7Wc_.css","assets/ParagraphBlock-_EhfXk9v.js","assets/ParagraphBlock-DFLxgZzs.css","assets/ClientImageSlider-CGZZYYI8.js","assets/v3-B5UP5GZw.js","assets/ImageBlock-cPU_Sbw4.js","assets/FormBlock-CjbQ7Xd1.css","assets/FileBlock-BU1S9yFx.js","assets/PersonBlock-MXpsfzV_.js","assets/PersonBlock-BcupJ_c5.css","assets/StepperBlock-DhPHG4yx.js","assets/StepperBlock-DNUyIEMk.css","assets/VideoBlock-BcEyk91j.js","assets/TabBlock-D5WxkhbC.js","assets/PageTabBuilder-CXLfoCo_.js","assets/PostListBlock-Vo9iG3Sb.js","assets/PostItemBlock-CHcUpQ-i.js","assets/PageItemBlock-D7WemCTX.js","assets/FormBlock-C_74keKQ.js","assets/FormBuilder-C25m8kmA.js","assets/FormBuilder-BDwIWzAo.css"])))=>i.map(i=>d[i]);
import{i as f,r as x,o as l,e as w,w as u,b as i,j as h,t as m,c as g,f as y,d as B,g as L,F as E,_ as n,a as d,p as k,l as p}from"./app-lT3z3TR3.js";import{B as S}from"./SearchModal-YI3bdWA9.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";const N={name:"ProgramBackButton",components:{Link:f},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let o;return o=t.substring(0,e),o+"..."}return t}},props:{title:{type:String},link:{type:String}}};function I(t,e,o,r,v,s){const a=x("Link");return l(),w(a,{href:t.route(this.link),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500"},{default:u(()=>[e[0]||(e[0]=i("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"},[i("path",{d:"m15 18-6-6 6-6"})],-1)),h(" "+m(o.title),1)]),_:1},8,["href"])}const ee=_(N,[["render",I]]),C={name:"ProgramTitle",components:{Link:f},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let o;return o=t.substring(0,e),o+"..."}return t}},props:{header:{type:String}}},M={class:"text-brand-primary text-2xl mb-3 mt-2 md:text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"};function T(t,e,o,r,v,s){return l(),g("h1",M,m(o.header),1)}const te=_(C,[["render",T]]),P={name:"ProgramBuilder",components:{},methods:{getComponent(t){return y({heading:()=>n(()=>import("./HeadingBlock-DZAeIVzd.js"),__vite__mapDeps([0,1,2,3,4,5])),paragraph:()=>n(()=>import("./ParagraphBlock-_EhfXk9v.js"),__vite__mapDeps([6,1,2,3,4,5,7])),images:()=>n(()=>import("./ClientImageSlider-CGZZYYI8.js"),__vite__mapDeps([8,9,3,4,2])),image:()=>n(()=>import("./ImageBlock-cPU_Sbw4.js"),__vite__mapDeps([10,1,2,3,4,5,9,11])),files:()=>n(()=>import("./FileBlock-BU1S9yFx.js"),__vite__mapDeps([12,1,2,3,4,5,9,11])),person:()=>n(()=>import("./PersonBlock-MXpsfzV_.js"),__vite__mapDeps([13,1,2,3,4,5,9,14])),stepper:()=>n(()=>import("./StepperBlock-DhPHG4yx.js"),__vite__mapDeps([15,1,2,3,4,5,9,16])),video:()=>n(()=>import("./VideoBlock-BcEyk91j.js"),__vite__mapDeps([17,1,2,3,4,5,9])),tabs:()=>n(()=>import("./TabBlock-D5WxkhbC.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:()=>n(()=>import("./PostListBlock-Vo9iG3Sb.js"),__vite__mapDeps([20,1,2,3,4,5,11])),postItem:()=>n(()=>import("./PostItemBlock-CHcUpQ-i.js"),__vite__mapDeps([21,1,2,3,4,5,11])),pageItem:()=>n(()=>import("./PageItemBlock-D7WemCTX.js"),__vite__mapDeps([22,1,2,3,4,5])),customForm:()=>n(()=>import("./FormBlock-C_74keKQ.js"),__vite__mapDeps([23,1,2,3,4,5,9,24,25,11]))}[t]||null)}},props:{blocks:{type:Object}}};function D(t,e,o,r,v,s){return l(!0),g(E,null,B(o.blocks,(a,c)=>(l(),w(L(s.getComponent(a.type)),{key:c,block:a},null,8,["block"]))),128)}const oe=_(P,[["render",D]]),A={name:"AdditionalEducationProgramItemBreadcrumbs",components:{BaseIcon:S,Link:f},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let o;return o=t.substring(0,e),o+"..."}return t},isMobileDevice(){return window.innerWidth<1024},handleSectionClick(t){this.isMobileDevice()?this.toggleMobileNavSection(t):this.toggleDesktopNavSection(t)},handleSubSectionClick(t,e){this.isMobileDevice()?this.toggleMobileNavSubSection(t,e):this.toggleDesktopNavSubSection(t,e)},highlightNavItem(t){t.classList.add("animate-pulse"),setTimeout(()=>{t.classList.remove("animate-pulse")},4e3)},openMobileNavMenu(){document.getElementById("open-mobile-btn").click()},toggleMobileNavSubSection(t,e){this.openMobileNavMenu();const o=document.getElementById("open-mobile-nav"),r=o.querySelector("#nav-section-accordion-"+t.data.slug),v=o.querySelector("#nav-section-accordion-btn-"+t.data.slug);r.classList.contains("active")||v.click();const s=o.querySelector("#nav-sub-section-accordion-"+e.data.slug),a=o.querySelector("#nav-sub-section-accordion-btn-"+e.data.slug);s.classList.contains("active")&&a.click(),this.highlightNavItem(s)},toggleMobileNavSection(t){const e=document.getElementById("open-mobile-nav"),o=e.querySelector("#nav-section-accordion-"+t.data.slug),r=e.querySelector("#nav-section-accordion-btn-"+t.data.slug);o.classList.contains("active")&&r.click(),this.openMobileNavMenu(),this.highlightNavItem(o)},toggleDesktopNavSubSection(t,e){const o=document.getElementById("desktop-nav"),r=o.querySelector("#nav-sub-section-title-"+e.data.slug);o.querySelector("#nav-section-btn-"+t.data.slug).click(),this.highlightNavItem(r)},toggleDesktopNavSection(t){const e=document.getElementById("desktop-nav");e.querySelector("#nav-section-menu-"+t.data.slug),e.querySelector("#nav-section-btn-"+t.data.slug).click()}},props:{breadcrumbs:{type:Object},additionalEducationTitle:{type:String}}},V={class:"flex justify-between items-center"},O={class:"flex w-full sm:items-center gap-x-5 sm:gap-x-3"},R={class:"grow"},$={class:"grid sm:flex sm:justify-between sm:items-center gap-2"},q={key:0,class:"flex items-center whitespace-normal min-w-0 flex-wrap gap-y-2","aria-label":"Breadcrumb"},j={class:"text-sm"},z={key:0,class:"text-sm"},F={key:1,class:"text-sm"},W={class:"text-sm"},G={class:"text-sm"},H={key:1,class:"flex items-center whitespace-nowrap min-w-0 flex-wrap","aria-label":"Breadcrumb"},J={class:"text-sm"},K={class:"text-sm"},Q={class:"text-sm"};function U(t,e,o,r,v,s){const a=x("BaseIcon"),c=x("Link");return l(),g("div",V,[i("div",O,[i("div",R,[i("div",$,[o.breadcrumbs?(l(),g("ol",q,[i("li",j,[d(c,{href:t.route("index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[d(a,{class:"size-5",name:"home"})]),_:1},8,["href"])]),o.breadcrumbs.mainSection?(l(),g("li",z,[i("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue cursor-pointer",onClick:e[0]||(e[0]=k(b=>s.handleSectionClick(this.breadcrumbs.mainSection),["prevent"]))},[e[2]||(e[2]=i("svg",{class:"flex-shrink-0 mx-2 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"},[i("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)),h(" "+m(s.textLimit(this.breadcrumbs.mainSection.data.title,25)),1)])])):p("",!0),o.breadcrumbs.subSection?(l(),g("li",F,[i("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue cursor-pointer",onClick:e[1]||(e[1]=k(b=>s.handleSubSectionClick(this.breadcrumbs.mainSection,this.breadcrumbs.subSection),["prevent"]))},[e[3]||(e[3]=i("svg",{class:"flex-shrink-0 mx-2 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"},[i("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)),h(" "+m(s.textLimit(this.breadcrumbs.subSection.data.title,25)),1)])])):p("",!0),i("li",W,[d(c,{href:t.route("client.additionalEducation.index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[e[4]||(e[4]=i("svg",{class:"flex-shrink-0 mx-2 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"},[i("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)),h(" "+m(s.textLimit("Дополнительное образование",30)),1)]),_:1},8,["href"])]),i("li",G,[d(c,{href:this.$inertia.page.props.ziggy.location,class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[e[5]||(e[5]=i("svg",{class:"flex-shrink-0 mx-2 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"},[i("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)),h(" "+m(o.additionalEducationTitle),1)]),_:1},8,["href"])])])):p("",!0),o.breadcrumbs?p("",!0):(l(),g("ol",H,[i("li",J,[d(c,{href:t.route("index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[d(a,{class:"size-5",name:"home"})]),_:1},8,["href"])]),i("li",K,[d(c,{href:t.route("client.additionalEducation.index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[e[6]||(e[6]=i("svg",{class:"flex-shrink-0 mx-2 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"},[i("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)),h(" "+m(s.textLimit("Дополнительное образование",30)),1)]),_:1},8,["href"])]),i("li",Q,[d(c,{href:this.$inertia.page.props.ziggy.location,class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[e[7]||(e[7]=i("svg",{class:"flex-shrink-0 mx-2 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"},[i("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)),h(" "+m(o.additionalEducationTitle),1)]),_:1},8,["href"])])]))])])])])}const ie=_(A,[["render",U]]);export{ie as A,oe as P,te as a,ee as b};