1import{_ as N}from"./CV6Eu2cu.js";import{_ as B}from"./Bl0zq6hI.js";import{f as C,g as $}from"./DvUcftYL.js";import{B as z,r as g,f as H,I as T,u as D,c as l,o as a,a as t,q as L,x as P,g as i,N as U,s as y,p as j,F as E,j as S,b as p,w as b,d as m,t as c,i as h,e as q,A as V}from"./Q1Iu8lPZ.js";import{u as K}from"./Bv5Lbkfj.js";const R={class:"bg-gray-900 px-8 md:px-24 py-16 sm:max-w-xl md:max-w-full lg:max-w-screen-2xl mx-auto md:rounded-lg min-h-[calc(100vh-480px)]"},F={class:"flex md:flex-row gap-4 flex-wrap flex-col justify-between items-end w-full mb-10"},I={class:"w-full md:w-80 mr-2 ml-auto lg:ml-0 md:mt-0"},Y={class:"relative z-10"},G={key:0,class:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 justify-between gap-10 gap-y-10 lg:gap-y-16"},J={class:"md:flex lg:flex-none justify-between md:flex-wrap lg:flex-col h-full items-start md:items-center lg:items-start"},O={class:"text-gray-300"},Q={class:"pt-4"},W={key:0,class:"md:text-lg flex mb-2 whitespace-pre-wrap items-center"},X={key:1,class:"md:text-lg flex items-center mb-2"},tt={key:2,class:"md:text-lg flex items-center"},et={class:"w-52 md:w-fit"},st={class:"mt-3 md:mt-0 lg:mt-3 mb-2 mx-auto md:mx-0 md:ml-auto lg:mx-auto text-center pt-3"},lt={key:1,class:"text-2xl text-center text-gray-400 font-bold mt-20"},at={class:"mt-6 w-fit ml-auto"},gt={__name:"upcoming-events",async setup(ot){var x,w;let d,f;const Z=z(),r=g(Number(Z.query.page)||1),n=g(""),{data:u,pending:it,error:rt,refresh:v}=([d,f]=H(()=>K(()=>$fetch(`https://tbe.thuprai.com/v1/event/nepathya/upcoming-events/?${n.value?"search="+n.value+"&":""}page=${r.value}`),"$UgqgHAetct")),d=await d,f(),d),M=()=>{r.value=1,v()},k=g((w=(x=u.value)==null?void 0:x.pagination)==null?void 0:w.pages);return T(r,o=>{if(v(),o==1)return V("/events/upcoming-events/");V(`/events/upcoming-events/?page=${o}`)}),D({title:"Upcoming Events"}),(o,s)=>{const _=N,A=B;return a(),l("div",R,[t("div",F,[s[5]||(s[5]=t("div",{class:"text-orange-400 text-4xl font-bold self-start"},"Upcoming Events",-1)),t("div",I,[s[4]||(s[4]=t("label",{for:"search",class:"sr-only"},"Search ",-1)),t("div",Y,[s[3]||(s[3]=t("div",{class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},[t("svg",{class:"h-5 w-5 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20"},[t("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1)),L(t("input",{onKeyup:s[0]||(s[0]=U(j(e=>M(),["prevent"]),["enter"])),"onUpdate:modelValue":s[1]||(s[1]=e=>y(n)?n.value=e:null),type:"text",name:"s",id:"s",class:"block w-full pl-10 pr-3 py-2 border border-transparent rounded-md leading-5 b text-gray-800 placeholder-gray-400 focus:outline-none focus:bg-white focus:text-gray-900 sm:text-sm transition duration-150 ease-in-out",placeholder:"Search"},null,544),[[P,i(n)]])])])]),i(u).results.length>0?(a(),l("div",G,[(a(!0),l(E,null,S(i(u).results,e=>(a(),l("div",{class:"text-white border border-gray-800 rounded-md px-8 py-5 w-full bg-gray-800/30 mx-auto lg:mx-0",key:e.id},[t("div",J,[t("div",O,[p(_,{to:`/events/${e.slug}`,class:"text-2xl font-bold text-gray-200 w-full"},{default:b(()=>[m(c(e.title),1)]),_:2},1032,["to"]),t("div",Q,[e.date_info?(a(),l("div",W,[s[6]||(s[6]=q('<div class="w-8"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" preserveAspectRatio="xMidYMid meet" class="bi bi-geo-alt-fill" viewBox="0 0 36 36"><path fill="currentColor" d="M32.25 6h-4v3a2.2 2.2 0 1 1-4.4 0V6H12.2v3a2.2 2.2 0 0 1-4.4 0V6h-4A1.78 1.78 0 0 0 2 7.81v22.38A1.78 1.78 0 0 0 3.75 32h28.5A1.78 1.78 0 0 0 34 30.19V7.81A1.78 1.78 0 0 0 32.25 6ZM10 26H8v-2h2Zm0-5H8v-2h2Zm0-5H8v-2h2Zm6 10h-2v-2h2Zm0-5h-2v-2h2Zm0-5h-2v-2h2Zm6 10h-2v-2h2Zm0-5h-2v-2h2Zm0-5h-2v-2h2Zm6 10h-2v-2h2Zm0-5h-2v-2h2Zm0-5h-2v-2h2Z" class="clr-i-solid clr-i-solid-path-1"></path><path fill="currentColor" d="M10 10a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1Z" class="clr-i-solid clr-i-solid-path-2"></path><path fill="currentColor" d="M26 10a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1Z" class="clr-i-solid clr-i-solid-path-3"></path><path fill="none" d="M0 0h36v36H0z"></path></svg></div>',1)),m(c(e.date_info||("formatDate"in o?o.formatDate:i(C))(e.start_date,e.start_time)),1)])):h("",!0),e.start_date&&e.start_time||e.start_time?(a(),l("div",X,[s[7]||(s[7]=t("div",{class:"w-8"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",fill:"currentColor",class:"bi bi-geo-alt-fill",viewBox:"0 0 16 16"},[t("title",null,"Time"),t("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"}
1)])],-1)),m(" "+c(e.time_info||("getLocalTime"in o?o.getLocalTime:i($))(e.start_date,e.start_time)),1)])):h("",!0),e.venue?(a(),l("div",tt,[s[8]||(s[8]=t("div",{class:"w-8"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-geo-alt-fill",viewBox:"0 0 18 16"},[t("title",null,"Venue"),t("path",{d:"M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})])],-1)),t("span",et,c(e.venue),1)])):h("",!0)])]),t("div",st,[p(_,{to:`/events/${e.slug}`,class:"bg-orange-400 hover:bg-orange-500 px-4 py-2 font-bold rounded-md text-black"},{default:b(()=>s[9]||(s[9]=[m("Book Now")])),_:2,__:[9]},1032,["to"])])])]))),128))])):(a(),l("div",lt,"No upcoming events are confirmed yet.")),t("div",at,[p(A,{modelValue:i(r),"onUpdate:modelValue":s[2]||(s[2]=e=>y(r)?r.value=e:null),totalPage:i(k)},null,8,["modelValue","totalPage"])])])}}};export{gt 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.