PageSourceSearch

https://en.japantravel.com/build/assets/UpcomingEvents-Bw33xRGu.js

js japantravel.com collected 2026-10-02 02:52:57 UTC 2,882 bytes, 1 lines download raw bytes

1import{j as P,u as V,k as l,l as i,p as t,q as D,v as j,A as m,F as A,z as E,y as d,x as b,S as I,s as w,U as M,E as _,f as n,r as u}from"./vendor-vue-Ct0XopGZ.js";import"./vendor-swiper-CmTBkzXo.js";import{A as h}from"./WhereToEat-CX5wYhNf.js";import"./vendor-icons-C07lCRXW.js";import"./vendor-BH4KNWII.js";import"./links-vPZ7jWbZ.js";import"./PostCardSkeleton.vue_vue_type_script_setup_true_lang-CbWfc6El.js";import"./useBookmarks-CUb2PSG4.js";import"./Button-BRs3Jcn_.js";const F={class:"mt-[60px]"},U={class:"mb-6 flex w-full flex-row items-center justify-between p-0"},q={class:"m-0 flex items-center text-[30px] font-semibold leading-[1] text-[#404040]"},H={key:0,id:"upcoming-events"},L={class:"flex flex-col gap-4"},O={key:1},G={class:"flex w-full items-end justify-end"},J={class:"mt-3 flex gap-[10px]"},K=["disabled"],Q=["disabled"],le=P({__name:"UpcomingEvents",props:{block:{}},setup(k){const p=k,g=n(()=>{var e;return((e=p.block.config)==null?void 0:e.title)||""}),y=n(()=>{var e;return((e=p.block.content)==null?void 0:e.items)||[]}),s=u([]),a=u(null),c=u(0),C=e=>{a.value=e},N=e=>{c.value=e.activeIndex},S=()=>{a.value&&a.value.slidePrev()},B=()=>{a.value&&a.value.slideNext()},v=n(()=>c.value===0),f=n(()=>a.value?c.value===Math.ceil(s.value.length/2)-1:!0),x={slidesPerView:1,spaceBetween:20},z=()=>{s.value=y.value};return V(()=>{z()}),(e,o)=>(l(),i("div",F,[t("div",U,[t("h2",q,D(g.value),1)]),s.value.length>0?(l(),i("div",H,[j(b(M),{modules:[],"slides-per-view":x.slidesPerView,"space-between":x.spaceBetween,onSwiper:C,onSlideChange:N},{default:m(()=>[(l(!0),i(A,null,E(Math.ceil(s.value.length/2),(R,r)=>(l(),d(b(I),{key:r},{default:m(()=>[t("div",L,[s.value[r*2]?(l(),d(h,{key:0,class:"border-t border-[#e9e9e9]","article-card":s.value[r*2],template:"prefecture-city"},null,8,["article-card"])):w("",!0),s.value[r*2+1]?(l(),d(h,{key:1,class:"border-t border-[#e9e9e9]","article-card":s.value[r*2+1],template:"prefecture-city"},null,8,["article-card"])):w("",!0)])]),_:2},1024))),128))]),_:1},8,["slides-per-view","space-between"])])):(l(),i("div",O,[...o[0]||(o[0]=[t("p",null,"No events found",-1)])])),t("div",G,[t("span",J,[t("button",{disabled:v.value,class:_(["size-[45px] rounded-full border text-[20px] font-black leading-[20px] transition-colors",v.value?"cursor-not-allowed text-[#e0e0e0]":"text-black hover:text-[#333]"]),style:{filter:"drop-shadow(0px 4px 14px rgba(0, 0, 0, 0.05))"},onClick:S},[...o[1]||(o[1]=[t("i",{class:"far fa-arrow-left"},null,-1)])],10,K),t("button",{disabled:f.value,class:_(["size-[45px] rounded-full border text-[20px] font-black leading-[20px] transition-colors",f.value?"cursor-not-allowed text-[#e0e0e0]":"text-black hover:text-[#333]"]),style:{filter:"drop-shadow(0px 4px 14px rgba(0, 0, 0, 0.05))"},onClick:B},[...o[2]||(o[2]=[t("i",{class:"far fa-arrow-right"},null,-1)])],10,Q)])])]))}});export{le 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.