1import{_ as B}from"./D4_nKQmw.js";import{aL as D,aG as E,aT as L,b3 as M,aI as V,bf as q,aM as A,aK as F,aJ as R}from"#entry";import{_ as $}from"./BVHvXtHd.js";import{u as P}from"./BUewlgTu.js";import{r as z,y,o as G,d as r,z as o,f as t,s as w,t as a,ac as e,q as m,F as H,C as J,j as K,e as c,i as x,p as O}from"./7e6OSnGa.js";import"./2jtHBPgc.js";import"./JBzGjL_9.js";import"./CBQMRp4-.js";import"./CC1t0_Ol.js";import"./DWNokUDV.js";import"./r0eDD3D2.js";import"./BG0R4EiI.js";import"./2EYLOaWx.js";import"./CwT8zHA9.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"5a5f4f282d5b76b153474ed3a90c2a4effbf411e"}}catch{}})();try{(function(){var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new n.Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="f190c50b-f51b-4bfd-9308-461d022c5fbe",n._sentryDebugIdIdentifier="sentry-dbid-f190c50b-f51b-4bfd-9308-461d022c5fbe")})()}catch{}const U={class:"space-y-8"},W={class:"bg-white border border-slate-200 rounded-lg shadow-sm"},Y={class:"px-6 py-8"},Q={class:"flex items-center justify-between"},X={class:"text-2xl font-semibold text-slate-900 mb-2"},Z={class:"flex items-center gap-6 text-sm text-slate-600"},tt={class:"flex items-center gap-2"},et={key:0},st={class:"text-right"},at={class:"text-2xl font-semibold text-slate-900"},ot={class:"text-sm text-slate-600 mb-1"},it={class:"px-6 py-3 border-t border-slate-100"},nt={key:0,class:"w-full flex justify-center mt-16"},lt={key:1,class:"text-center py-16"},ct={class:"w-16 h-16 bg-slate-100 rounded-full flex items-center justify-center mx-auto mb-4"},rt={class:"text-lg font-medium text-slate-900 mb-2"},dt={class:"text-sm text-slate-600 mb-6"},mt={key:2,class:"grid gap-6 lg:grid-cols-2 mb-8"},ut={class:"bg-white rounded-lg shadow-sm border border-slate-200 overflow-hidden"},_t={class:"bg-gradient-to-r from-sky-50 to-indigo-50 px-6 py-5 border-b border-slate-200"},ft={class:"flex items-center gap-3"},pt={class:"w-10 h-10 bg-sky-700 rounded-lg flex items-center justify-center"},ht={class:"text-xl font-semibold text-slate-900"},xt={class:"text-sm text-slate-600"},bt={class:"p-6 space-y-6"},gt={class:"grid md:grid-cols-2 gap-6"},vt={class:"space-y-4"},yt={class:"flex items-start gap-3"},wt={class:"w-8 h-8 bg-emerald-100 rounded-lg flex items-center justify-center flex-shrink-0 mt-1"},Ct={class:"text-sm font-semibold text-slate-900 mb-1"},kt={class:"text-xs text-slate-600"},Nt={class:"flex items-start gap-3"},jt={class:"w-8 h-8 bg-sky-100 rounded-lg flex items-center justify-center flex-shrink-0 mt-1"},St={class:"text-sm font-semibold text-slate-900 mb-1"},It={class:"text-xs text-slate-600"},Tt={class:"space-y-4"},Bt={class:"flex items-start gap-3"},Dt={class:"w-8 h-8 bg-purple-100 rounded-lg flex items-center justify-center flex-shrink-0 mt-1"},Et={class:"text-sm font-semibold text-slate-900 mb-1"},Lt={class:"text-xs text-slate-600"},Mt={class:"flex items-start gap-3"},Vt={class:"w-8 h-8 bg-orange-100 rounded-lg flex items-center justify-center flex-shrink-0 mt-1"},qt={class:"text-sm font-semibold text-slate-900 mb-1"},At={class:"text-xs text-slate-600"},Ft={key:3,class:"w-full flex justify-end mb-8"},Zt={__name:"national-committees",setup(n){const{t:s,locale:C}=D(),u=E();L();const b=M(),k=P(),{userData:_}=V(),{items:N}=q(b),d=z(!0),f=y(()=>(N.value||[]).map(l=>({id:l.id,title:l.title,thumbnail:l.thumbnail,committeeSlug:l.slug,memberSlug:null,type:"committee",countries:l.countries}))),j=y(()=>{const l=f.value||[],g=l.length,p=l.filter(i=>i.status==="active"||!i.status).length;return{total:g,active:p}}),S=async()=>{try{d.value=!0,await b.fetch({locale:C.value,sort:"title:asc",populate:["banner","countries","thumbnail"],filters:[{field:"users_data.documentId",operator:"$eq",value:_.value.documentId}]})}finally{d.value=!1}};return G(()=>{S()}),k.set([{name:s("pages.auth.private.nationalCommittees.title")||"My National Committees",path:"auth-private-national-committees"}]),A({title:s("pages.auth.private.nationalCommittees.title")||"My National Committees"}),(l,g)=>{const p=B,i=K("font-awesome"),I=F,h=R,T=$;return c(),r("div",U,[o(p),t("div",W,[t("div",Y,[t("div",Q,[t("div",null,[t("h1",X,a(e(s)("pages.auth.private.nationalCommittees.title")),1),t("div",Z,[o(I,null,{default:m(()=>[t("div",tt,[o(i,{icon:["fas","user"],class:"text-slate-500"}),e(_)?.user_code?(c(),r("span",et,a(e(_).user_code),1)):w("",!0)])]),_:1})])]),t("div",st,[t("div",at,a(e(j).total),1),t("div",ot,a(e(s)("pages.auth.private.nationalCommittees.stats.total")),1)])])]),t("div",it,[o(h,{to:e(u)({name:"national-committees",query:{favourites:"true"}}),class:"inline-flex items-center gap-2 text-sm text-slate-500 hover:text-sky-600 transition-colors"},{default:m(()=>[o(i,{icon:["fas","star"],class:"text-xs"}),x(" "+a(e(s)("favourites.viewFavourites")),1)]),_:1},8,["to"])])]),e(d)?(c(),r("div",nt,[o(i,{class:"fa-fw text-sky-700 animate-spin text-5xl",icon:["fas","spinner-third"]})])):e(f).length===0?(c(),r("div",lt,[t("div",ct,[o(i,{icon:["fas","globe"],class:"text-slate-400 text-2xl"})]),t("h3",rt,a(e(s)("pages.auth.private.nationalCommittees.empty.title")),1),t("p",dt,a(e(s)("pages.auth.private.nationalCommittees.empty.description")),1),o(h,{to:e(u)({name:"national-committees"}),class:"custom-button"},{default:m(()=>[x(a(e(s)("pages.auth.private.nationalCommittees.actions.exploreCommittees")),1)]),_:1},8,["to"])])):(c(),r("div",mt,[(c(!0),r(H,null,J(e(f),v=>(c(),O(T,{key:v.id,committee:v},null,8,["committee"]))),128))])),t("div",ut,[t("div",_t,[t("div",ft,[t("div",pt,[o(i,{icon:["fas","info-circle"],class:"text-white text-lg"})]),t("div",null,[t("h2",ht,a(e(s)("pages.auth.private.nationalCommittees.info.title")),1),t("p",xt,a(e(s)("pages.auth.private.nationalCommittees.info.subtitle")),1)])])]),t("div",bt,[t("div",gt,[t("div",vt,[t("div",yt,[t("div",wt,[o(i,{icon:["fas","handshake"],class:"text-emerald-700 text-sm"})]),t("div",null,[t("h3",Ct,a(e(s)("pages.auth.private.nationalCommittees.benef
1its.networking.title")),1),t("p",kt,a(e(s)("pages.auth.private.nationalCommittees.benefits.networking.description")),1)])]),t("div",Nt,[t("div",jt,[o(i,{icon:["fas","book-open"],class:"text-sky-700 text-sm"})]),t("div",null,[t("h3",St,a(e(s)("pages.auth.private.nationalCommittees.benefits.knowledge.title")),1),t("p",It,a(e(s)("pages.auth.private.nationalCommittees.benefits.knowledge.description")),1)])])]),t("div",Tt,[t("div",Bt,[t("div",Dt,[o(i,{icon:["fas","calendar-alt"],class:"text-purple-700 text-sm"})]),t("div",null,[t("h3",Et,a(e(s)("pages.auth.private.nationalCommittees.benefits.events.title")),1),t("p",Lt,a(e(s)("pages.auth.private.nationalCommittees.benefits.events.description")),1)])]),t("div",Mt,[t("div",Vt,[o(i,{icon:["fas","medal"],class:"text-orange-700 text-sm"})]),t("div",null,[t("h3",qt,a(e(s)("pages.auth.private.nationalCommittees.benefits.recognition.title")),1),t("p",At,a(e(s)("pages.auth.private.nationalCommittees.benefits.recognition.description")),1)])])])])])]),e(d)?w("",!0):(c(),r("div",Ft,[o(h,{to:e(u)({name:"national-committees"}),class:"custom-button"},{default:m(()=>[o(i,{icon:["fas","search"],class:"mr-2"}),x(" "+a(e(s)("pages.auth.private.nationalCommittees.actions.browseCommittees")||"Browse National Committees"),1)]),_:1},8,["to"])]))])}}};export{Zt as default}; 2//# sourceMappingURL=DF4Kt72M.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.