1import{Ht as _,Pt as X,Yt as q,at as m,ct as n,en as B,ft as x,ht as z,jt as N,kt as o,ln as e,lt as s,nt as L,ot as l,pn as p,pt as d,st as k}from"./tiptap.DLKU8C5B.js";import{c as C}from"./vendor.nOZoUbXC.js";import{t as O}from"./sentry.CkfQQhZw.js";import{C as Q,S as Z,St as U}from"./enum.D0ZEvZZE.js";import{t as ee}from"./BuildingLibraryIcon.DAeRfQ_D.js";import{t as te}from"./ProfileFilterBar.TpVY017N.js";import{t as oe}from"./CalendarIcon.B7HWZE9E.js";import{t as le}from"./PhotoIcon.Lv97WkQF.js";import{o as re}from"./methodsAuth.d1RsgpRI.js";import{X as ae,n as se}from"./useMyProfile.KhumMPL7.js";import{W as ie}from"./entry.v2-722-0.js";import{t as ne}from"./LoadingSkeleton.CDawRfdU.js";import{t as de}from"./StarIcon.DDtcZ9bD.js";import{t as fe}from"./StarIcon.BMGmeR25.js";import{t as ue}from"./PictureCropper.CQk4TnzT.js";import{t as me}from"./ProfileList.AKiiPwua.js";import{t as R}from"./EventBox.B7WpaYFE.js";import{t as pe}from"./useEventEditor.C76Qvw5M.js";import{t as ce}from"./useTripEditor.Cirp2h8o.js";import{t as ve}from"./DatePicker.C2eapDmt.js";import{t as xe}from"./TripList.-xc4V56z.js";import{t as ge}from"./useChapter.DDZF9Lao.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};u.SENTRY_RELEASE={id:"61fde56f08b5451b2e5d17e0bd2c31263d84c2c6"};var i=new u.Error().stack;i&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[i]="d8c0c02e-f3ea-4378-9aed-822a47304b9d",u._sentryDebugIdIdentifier="sentry-dbid-d8c0c02e-f3ea-4378-9aed-822a47304b9d")}catch{}})();var ye={class:"w-full"},be={class:"flex flex-row flex-wrap items-center"},he={key:0,type:"button",class:"relative inline-flex items-center justify-center flex-none px-4 py-2 mb-3 mr-3 text-xs font-semibold leading-4 text-white md:text-sm bg-slate-800 rounded-xl hover:bg-dc-orange-500"},we={key:2,class:"flex flex-col w-full mt-6 gap-y-4"},_e={role:"list",class:"flex flex-col gap-y-6"},ke={class:"flex flex-col w-full mt-6 gap-y-4"},Ce={key:0,role:"list",class:"flex flex-col gap-y-4"},Ee={key:1,class:"text-slate-400"},Se={class:"flex flex-col w-full mt-6 space-y-4"},Ie={class:"text-base font-semibold text-slate-900 dark:text-slate-100"},Te={class:"flex flex-col mb-6"},De={key:0,class:"text-sm text-slate-600 dark:text-slate-400"},Pe={key:3,class:"flex flex-col w-full mt-6 space-y-4"},Fe={class:"text-base font-semibold text-slate-900 dark:text-slate-100"},Me={key:0,class:"ml-2 text-sm font-normal text-slate-500"},Ve=z({__name:"ChapterHomeTab",setup(u){const i=ge(),{city:f,dateFilter:v,filteredCurProfiles:c,filteredTrips:E,showMore:g,hasMoreProfiles:$,hasMoreTrips:j,events:y}=C(i),S=m(()=>(y.value||[]).filter(r=>U(r.eventType))),I=m(()=>(y.value||[]).filter(r=>!U(r.eventType))),T=B(""),A=se(),{isAdmin:D}=C(A),b=ie(),{loaded:G}=C(b),h=m(()=>f.value?.location?.placeID||""),w=m(()=>b.isFollowingCity(h.value)),K=async()=>{if(!h.value)return;const r=!w.value;r&&ae("follow_city"),await b.toggleCityFollow(f.value),r&&re(h.value)},P=ce();function Y(){const r=i?.city;P.createTrip(),r?.location&&(P.form.location=r.location)}const J=pe();async function W(){if(!f.value?.location?.placeID){const r="Chapter not available.";alert(r),O(r);return}await J.openModal(Z.NewEvent,f.value.location,Q.Junto,null)}const F=B(),M=m(()=>F.value?.filter),V=m(()=>M.value?.isActive.value??!1),H=m(()=>c.value?M.value?.filterProfiles(c.value)??c.value:[]);return(r,t)=>(o(),s("div",ye,[l("div",be,[l("button",{type:"button",class:"inline-flex items-center justify-center flex-none px-4 py-2 mb-3 mr-3 text-xs font-semibold leading-4 text-white md:text-sm bg-dc-orange-600 rounded-xl hover:bg-dc-orange-500",onClick:K},[(o(),k(X(w.value?e(fe):e(de)),{class:"w-4 h-4 mr-2 md:w-5 md:h-5"})),d(ne,{loading:!e(G),class:"w-24 h-4"},{default:_(()=>[x(p(w.value?"Unfollow Chapter":"Follow Chapter"),1)]),_:1},8,["loading"])]),l("button",{type:"button",class:"inline-flex items-center justify-center flex-none px-4 py-2 mb-3 mr-3 text-xs font-semibold leading-4 text-white md:text-sm bg-dc-orange-600 rounded-xl hover:bg-dc-orange-500",onClick:Y},[d(e(oe),{class:"w-4 h-4 mr-2 md:w-5 md:h-5"}),t[5]||(t[5]=x(" Plan Trip ",-1))]),l("button",{type:"button",class:"inline-flex items-center justify-center flex-none px-4 py-2 mb-3 mr-3 text-xs font-semibold leading-4 text-white md:text-sm bg-slate-800 rounded-xl hover:bg-dc-orange-500",onClick:W},[d(e(ee),{class:"w-4 h-4 mr-2 text-white md:w-5 md:h-5"}),t[6]||(t[6]=x(" Create DC Meetup ",-1))]),e(D)?(o(),s("button",he,[d(e(le),{class:"w-4 h-4 mr-2 md:w-5 md:h-5"}),x(" "+p(e(i).savingImage?"Uploading...":"Upload Header Image")+" ",1),d(ue,{modelValue:T.value,"onUpdate:modelValue":t[0]||(t[0]=a=>T.value=a),title:"Chapter Header Image",class:"absolute top-0 left-0 w-full h-full opacity-0",rect:!0,ratio:0,max:2048,onCropped:e(i).uploadHeaderImage},null,8,["modelValue","onCropped"])])):n("",!0),e(D)&&e(f)?.headerImageFull?(o(),s("button",{key:1,type:"button",class:"mb-3 mr-3 text-xs text-link",onClick:t[1]||(t[1]=(...a)=>e(i).removeHeaderImage&&e(i).removeHeaderImage(...a))}," remove header image ")):n("",!0),S.value.length?(o(),s("div",we,[t[7]||(t[7]=l("div",{class:"text-base font-semibold text-slate-900 dark:text-slate-100"}," Upcoming Global Events: ",-1)),l("div",_e,[(o(!0),s(L,null,N(S.value,a=>(o(),k(R,{key:a.eventID,role:"list-item",event:a},null,8,["event"]))),128))])])):n("",!0),l("div",ke,[t[8]||(t[8]=l("div",{class:"text-base font-semibold text-slate-900 dark:text-slate-100"}," Upcoming Local Meetups: ",-1)),I.value.length?(o(),s("div",Ce,[(o(!0),s(L,null,N(I.value,a=>(o(),k(R,{key:a.eventID,role:"list-item",event:a,"no-description":"","no-featured":""},null,8,["event"]))),128))])):e(y)!==null?(o(),s("div",Ee," No upcoming meetups. ")):n("",!0)]),l("div",Se,[l("div",Ie," Coming soon to "+p(e(f)?.location?.city)+": ",1),l("div",Te,[t[9]||(t[9]=l("label",{for:"date",class:"mb-1 text-xs font-normal text-left text-slate-500"}
1," Check who is around on a specific date ",-1)),d(ve,{modelValue:e(v),"onUpdate:modelValue":t[2]||(t[2]=a=>q(v)?v.value=a:null)},null,8,["modelValue"])]),!e(E)?.length&&e(v)?(o(),s("div",De," No planned trips for "+p(e(v))+". ",1)):n("",!0),d(xe,{trips:e(E),"show-profile":"","show-plane":"","show-city":"","show-flag":""},{last:_(()=>[!e(g)&&e(j)?(o(),s("li",{key:0,class:"flex flex-row items-center px-12 py-3 transition-colors cursor-pointer group hover:bg-dc-mint-400",onClick:t[3]||(t[3]=a=>g.value=!0)},[...t[10]||(t[10]=[l("span",{class:"text-xs font-medium transition-colors text-slate-400 group-hover:text-dc-mint-900"}," Show more ⦠",-1)])])):n("",!0)]),_:1},8,["trips"])]),e(c)?.length?(o(),s("div",Pe,[l("div",Fe,[x(" Currently in "+p(e(f)?.location?.city)+": ",1),V.value?(o(),s("span",Me," Showing "+p(H.value.length)+" of "+p(e(c).length),1)):n("",!0)]),d(te,{ref_key:"filterBarRef",ref:F,profiles:e(c)},null,8,["profiles"]),d(me,{profiles:H.value,"show-location":"","show-headline":"","show-ambassador":"","show-city-only":"","show-outline":"",autoload:""},{last:_(()=>[!e(g)&&!V.value&&e($)?(o(),s("li",{key:0,class:"flex flex-row items-center px-12 py-3 transition-colors cursor-pointer group hover:bg-dc-mint-400",onClick:t[4]||(t[4]=a=>g.value=!0)},[...t[11]||(t[11]=[l("span",{class:"text-xs font-medium transition-colors text-slate-400 group-hover:text-dc-mint-900"}," Show more ⦠",-1)])])):n("",!0)]),_:1},8,["profiles"])])):n("",!0)])]))}}),ot=Ve;export{ot as default}; 2 3//# sourceMappingURL=ChapterHomeTab.Bks8BJbj.js.map
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.