PageSourceSearch

https://www.602.cz/_nuxt/BYDfINZC.js

js 602.cz collected 2026-10-09 21:32:07 UTC 5,907 bytes, 1 lines download raw bytes

1import{H}from"./CKGzwNtU.js";import{P as b}from"./CXZsgHQf.js";import{B as j}from"./bV1jf7xG.js";import{w as U,g as A}from"./Cd8oSfsN.js";import{f as m}from"./DNkrBnVF.js";import{f as M,g as P,s as S,p as V,o as s,c as l,a as i,h as c,u as d,i as r,F as D,x as C,y as $,E as g,t as f,d as L}from"./BOa1IU0H.js";import{_ as F}from"./DlAUqK2U.js";const N=U(j),K={class:"bg-white"},q={class:"max-w-screen-xl px-8 py-10 md:p-16 m-auto"},J={class:"flex justify-center flex-wrap gap-6 gap-y-8 max-w-5xl m-auto"},R=["href"],W={class:"p-6 rounded-t-3xl"},G={class:"p-6 pt-0 rounded-b-3xl"},O={key:2,class:"flex gap-3 flex-wrap"},Q={key:0,class:"h-14 w-14 overflow-hidden rounded-full flex-none"},X=["src","alt"],Y={key:1,class:"speaker__name"},Z={key:0,class:"h-14 w-16 pt-0.5"},v=M({__name:"EventCard",props:{heading:{},ctaText:{},ctaUrl:{},eventList:{default:()=>[]},bgColorTile:{}},setup(u){const k=u,_={webinar:{border:"border-blue",bg:"bg-light-blue",text:"text-blue"},akce:{border:"border-blue",bg:"bg-light-blue",text:"text-blue"},konference:{border:"border-purple",bg:"bg-light-pink",text:"text-purple"},"uvidite-nas":{border:"border-green-dark",bg:"bg-green-medium",text:"text-green-dark"}},T={border:"border-green-dark",bg:"bg-green-medium",text:"text-green-dark"},z={webinář:"webinar",akce:"akce",konference:"konference","uvidíte nás":"uvidite-nas"},p=n=>{if(n.eventType)return _[n.eventType]||T;if(n.subheading){const t=z[n.subheading.toLowerCase()];if(t)return _[t]}return T},h=n=>{const t=n.split(" - ");if(t.length===2){const a=t[1].trim().match(/(\d{1,2})\.\s*(\d{1,2})\.\s*(\d{4})/);if(a){const o=parseInt(a[3]),x=new Date(o,parseInt(a[2])-1,parseInt(a[1])),y=t[0].trim().match(/(\d{1,2})\.\s*(\d{1,2})\./);if(y)return{firstDate:new Date(o,parseInt(y[2])-1,parseInt(y[1])),lastDate:x}}}const e=n.match(/(\d{1,2})\.\s*(\d{1,2})\.\s*(\d{4})/);if(e){const a=new Date(parseInt(e[3]),parseInt(e[2])-1,parseInt(e[1]));return{firstDate:a,lastDate:a}}return{firstDate:new Date(0),lastDate:new Date(0)}},B=P(()=>{const n=new Date;return[...k.eventList].filter(t=>{if(!t.date)return!0;const{lastDate:e}=h(t.date),a=new Date(e);return a.setDate(a.getDate()+1),a.setHours(0,0,0,0),a>n}).sort((t,e)=>{const a=t.date?h(t.date).firstDate.getTime():0,o=e.date?h(e.date).firstDate.getTime():0;return a-o})}),w=()=>{$(()=>{const n=document.querySelectorAll(".event-item .event-item__title");let t=0;n.forEach(e=>{t=Math.max(t,e.offsetHeight)}),n.forEach(e=>{const a=e;a.style.height=`${t}px`})})};return S(()=>k.eventList,()=>{w()},{deep:!0}),V(()=>{setTimeout(()=>{w()},10)}),(n,t)=>(s(),l("div",K,[i("div",q,[n.heading?(s(),c(H,{key:0,heading:d(m)(n.heading),tag:"h3",size:"headline-1",class:"text-center mb-8 lg:mb-10 max-w-xl m-auto"},null,8,["heading"])):r("",!0),i("div",J,[(s(!0),l(D,null,C(B.value,(e,a)=>(s(),l("div",{key:a,class:"max-w-80 w-full"},[i("a",{href:e.eventUrl,class:g(["block h-full rounded-lg rounded-b-xl event-item transition-all border-t-8 bg-grey-lighter",p(e).border])},[i("div",W,[e.subheading?(s(),l("div",{key:0,class:g(["px-4 py-2 inline-block rounded-full mb-6",p(e).bg])},f(e.subheading),3)):r("",!0),e.date?(s(),c(b,{key:1,text:e.date,size:"subheading-3",class:"font-semibold mb-6"},null,8,["text"])):r("",!0),e.headline?(s(),c(b,{key:2,text:d(m)(e.headline),size:"heading",class:"font-bold event-item__title"},null,8,["text"])):r("",!0),e.date?(s(),c(b,{key:3,text:d(m)(e.date),size:"subheading-2",class:"font-medium"},null,8,["text"])):r("",!0)]),i("div",G,[e.duration?(s(),l("p",{key:0,class:g(["font-semibold mb-6 text-base",p(e).text])},f(d(m)(e.duration)),3)):r("",!0),e.imageList&&e.imageList.length>0?(s(),c(b,{key:1,text:"Uvidíte:",size:"paragraph",class:"mb-3"})):r("",!0),e.imageList?(s(),l("div",O,[(s(!0),l(D,null,C(e.imageList.slice(0,3),(o,x)=>(s(),l("div",{key:`image-${a}-${x}`,class:"speaker"},[o.image?(s(),l("div",Q,[i("img",{src:o.image,class:"object-cover min-w-full min-h-full",alt:d(A)(o.name)},null,8,X)])):r("",!0),o.name?(s(),l("p",Y,f(d(m)(o.name)),1)):r("",!0)]))),128)),e.imageList.length>3?(s(),l("div",Z,[i("span",{class:g(["text-lg font-semibold text-center block",p(e).text])}
1,[L(" +"+f(e.imageList.length-3)+" ",1),t[0]||(t[0]=i("br",null,null,-1)),t[1]||(t[1]=L(" další "))],2)])):r("",!0)])):r("",!0)])],10,R)]))),128))]),n.ctaUrl&&n.ctaText?(s(),c(d(N),{key:1,label:n.ctaText,tag:"a",href:n.ctaUrl,variant:"underline",size:"small",class:"m-auto table mt-7"},null,8,["label","href"])):r("",!0)])]))}}),E=u=>{u.__segment={name:"EventCard",defaultData:{heading:"Titulek",eventList:[],bgColorTile:"bg-white"}}},I=u=>{u.__form={schema:{h2:{type:"static",tag:"h3",content:"Karta události",align:"left"},heading:{name:"heading",type:"text",inputType:"text",label:"Titulek"},eventList:{addText:"+ Přidat dlaždici",type:"list",name:"webinarList",element:{type:"object",addClass:["ml-6","pb-6","bg-faint-grey"],schema:{eventUrl:{label:"Event url",type:"text",inputType:"url",rules:["nullable","url"],floating:!1},eventType:{type:"select",label:"Typ události",items:[{value:"webinar",label:"Webinář"},{value:"akce",label:"Akce"},{value:"konference",label:"Konference"},{value:"uvidite-nas",label:"Uvidíte nás"}]},subheading:{type:"text",label:"Tagy"},date:{type:"text",label:"Datum"},headline:{type:"text",label:"Headline"},duration:{type:"text",label:"Doba trvání"},imageList:{name:"list",type:"list",sort:!0,addText:"+ Přidat přednášejícího",element:{type:"object",schema:{name:{type:"text",label:"Jméno"},image:{type:"media-manager"}}}},divider:{type:"static",tag:"hr"}}}},ctaText:{name:"ctaText",type:"text",label:"CTA text"},ctaUrl:{name:"ctaUrl",type:"text",inputType:"url",rules:["nullable","url"],floating:!1,label:"CTA URL"},componentVersion:{type:"hidden",default:1}}}};typeof E=="function"&&E(v);typeof I=="function"&&I(v);const ee=F(v,[["__scopeId","data-v-bd027afa"]]),ie=U(ee);export{ie as EventCard,ie as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.