PageSourceSearch

https://novazbrojovka.cz/_nuxt/DzW23Fkx.js

js novazbrojovka.cz collected 2026-10-08 23:06:41 UTC 2,530 bytes, 1 lines download raw bytes

1import{_ as L}from"./CCbkwOl0.js";import{d as x,r as E,X as D,q as C}from"./DIOimQqW.js";import{a as B}from"./Dz3hKw0I.js";import{d as A,w as F,D as N,o as d,b as p,e as s,f as g,i as b,n as o,t as v,u as h,F as P,h as S,j as $,k as I}from"./DmgzGQDA.js";import{f as V}from"./C4wpoS1a.js";const z=["id","data-dark-header","data-light-header"],H={class:"container flex flex-col min-h-lvh"},M={class:"relative z-20 flex items-center pt-[6.25rem] mb-20 gap-4"},Y=s("br",null,null,-1),j={class:"my-auto pb-10"},q={class:"pb-5 border-b border-gray border-opacity-25"},R={key:0,class:"text-center pt-8 max-w-screen-md mx-auto"},X=["innerHTML"],G={class:"text-center mt-20 mb-10"},Z=A({__name:"CalendarEvents",props:{sectionTypeLight:{type:Boolean}},async setup(J){let r,m;const{locale:f}=x(),T=E(),w=new Date().getFullYear(),k=new Date,{data:u}=([r,m]=F(()=>B("section-events-calendar",()=>D.getEvents({headers:{"Accept-Language":f.value}}),{transform:({data:e})=>{var l;const i=e==null?void 0:e.find(t=>t.year===w),c=[];return(l=i==null?void 0:i.months)==null||l.forEach(t=>{var n;(n=t.events)==null||n.forEach(a=>{new Date(a.startTime)>=k&&c.push(a)})}),c.sort((t,n)=>{const a=new Date(t.startTime),y=new Date(n.startTime);return a.getTime()-y.getTime()}).slice(0,3)}})),r=await r,m(),r);return(e,i)=>{var t;const c=N("I18nT"),_=L,l=C;return d(),p("section",{id:e.$t("hash.calendarEvents"),class:o(e.sectionTypeLight?"bg-blue-gray text-blue":"bg-blue text-white"),"data-dark-header":e.sectionTypeLight||void 0,"data-light-header":!e.sectionTypeLight||void 0},[s("div",H,[s("div",M,[g(c,{tag:"h2",keypath:"calendarEvent.titleBr",class:o(["typo-h1",{"text-blue":e.sectionTypeLight}])},{newline:b(()=>[Y]),_:1},8,["class"])]),s("div",j,[s("div",q,[s("span",{class:o(["px-2 py-1 tracking-tighter uppercase text-tiny font-heading-one border rounded-full",e.sectionTypeLight?"text-blue border-blue":"text-white border-white"])},v(h(V)(new Date,"yyyy")),3)]),(t=h(u))!=null&&t.length?(d(!0),p(P,{key:1},S(h(u),(n,a)=>(d(),$(_,{key:n.id||a,event:n,class:o(["pt-7",{"border-t border-gray border-opacity-25 mt-7":a!==0}]),"type-light":e.sectionTypeLight},null,8,["event","class","type-light"]))),128)):(d(),p("div",R,[s("span",{class:"text-xl",innerHTML:e.$t("calendarEvent.noResultsForYear")},null,8,X)])),s("div",G,[g(l,{to:h(T)({name:"kalendar-akci"}),class:o(["btn",e.sectionTypeLight?"btn-outline-primary":"btn-outline-light"])},{default:b(()=>[I(v(e.$t("button.showCalendar")),1)]),_:1},8,["to","class"])])])])],10,z)}}});export{Z as _};

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.