PageSourceSearch

https://bluerevolution-cc.manus.space/assets/Home-Cukaw3WA.js

js bluerevolution-cc.manus.space collected 2026-10-03 05:00:31 UTC 94,549 bytes, 47 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Globe3D-BOKP6bZZ.js","assets/editor-BhGk7_S1.js","assets/leaflet-DcfcX7a_.js","assets/mapbox-BPFQ-Sfv.js","assets/mapbox-gl-DEKaLS0d.js","assets/mapbox-gl-vV3jbIp0.css","assets/index-BjIHAQhU.js","assets/trpc-DqtxhgQo.js","assets/index-DsdD9fV2.css","assets/countryTranslations--xXtAg9U.js","assets/check-DFqoFjW9.js","assets/copy-XdjMT1NJ.js"])))=>i.map(i=>d[i]);
2import{c as Ke,u as Je,b as W,t as re,a as qe,L as $,_ as Bt}from"./index-BjIHAQhU.js";import{j as e}from"./editor-BhGk7_S1.js";import{b as N,R as Rt}from"./leaflet-DcfcX7a_.js";import{L as zt,u as _t,c as $t,b as Wt}from"./useCountryData-BYzegB0o.js";import{S as Gt}from"./Statistics-CK2aGXsn.js";import{B as U}from"./button-CK76V7Lo.js";import{C as dt}from"./card-CaSmhJ1l.js";import{A as Vt}from"./AuthModal-DOX1HBlV.js";import{C as qt}from"./chevron-left-rvLUTF53.js";import{C as Ut}from"./chevron-right-DDkBVPVM.js";import{D as Pe,a as Ee,b as Le,c as De,e as Ue,d as Qt}from"./dialog-DDbhAKMR.js";import{I as $e}
vendor: 4,497 bytes, lines 2-17
2from"./input-BtSXPsMX.js";import{L as He}from"./label-DwWfObJM.js";import{U as Yt}from"./user-plus-2mc1g1Y7.js";import{E as Kt}from"./eye-DdF-53Ak.js";import{M as Mt}from"./mail-Ds9fVSLJ.js";import{T as Jt}from"./textarea-C8AkMAaz.js";import{U as Xt}from"./upload-B4mJ3u4C.js";import{u as Zt}from"./useSessionId-BP6UZxE1.js";import{t as ke}from"./countryTranslations--xXtAg9U.js";import{P as mt,L as es}from"./LoginPopup-DdTizF10.js";import{D as ts,a as ss,b as as,e as We,d as Fe,c as ue,L as ns}from"./dropdown-menu-DcmxudBO.js";import{L as xt}from"./log-in-CXlq96ds.js";import{U as ve}from"./user-DC4ZvlJI.js";import{S as os}from"./settings-BDQalZhu.js";import{U as Ie}from"./users-CXg3PGFq.js";import{M as cs}from"./message-square-QRsypMbA.js";import{X as ut}from"./x-rm1_-8OE.js";import{M as ls}from"./menu-BEzxq2RD.js";import{H as rs}from"./house-BHM6STKc.js";import{G as Te}from"./globe-rpSIUeg6.js";import{M as pt}from"./map-pin-Cg1SEPDo.js";import{S as ft}from"./sparkles-d8zLxPkz.js";import{L as is}from"./lightbulb-B1ic1q03.js";import{S as ds}from"./square-check-big-BIB5RFtL.js";import{M as Ge}from"./map-BKzTfbna.js";import{T as ms}from"./trending-up-OBB4GJfQ.js";import{R as Ve}from"./rocket-DF8sLhpc.js";import{C as gt}from"./circle-check-Bm_Q9Bqk.js";import{F as xs}from"./film-BncX-YBT.js";import{C as ht}from"./check-DFqoFjW9.js";import{C as bt}from"./copy-XdjMT1NJ.js";import{F as us}from"./file-text-P44d5PF2.js";import{M as ps}from"./message-circle-CjX-dlJo.js";import"./trpc-DqtxhgQo.js";import"./mapbox-BPFQ-Sfv.js";import"./CityAutocomplete-t8y1NAcF.js";import"./languages-CKIgFA9r.js";import"./languageTranslations-BWtqfsq5.js";import"./refresh-cw-A4TQI-r2.js";import"./index-CmmlU_cv.js";import"./index-CHxMfpQB.js";import"./index-CinKPxzG.js";/**
3 * @license lucide-react v0.453.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const fs=Ke("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
8 * @license lucide-react v0.453.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */const jt=Ke("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
13 * @license lucide-react v0.453.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const gs=Ke("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);function hs(t){return Object.prototype.toString.call(t)==="[object Object]"}function vt(t){return hs(t)||Array.isArray(t)}function bs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Xe(t,s){const a=Object.keys(t),o=Object.keys(s);if(a.length!==o.length)return!1;const i=JSON.stringify(Object.keys(t.breakpoints||{})),c=JSON.stringify(Object.keys(s.breakpoints||{}));return i!==c?!1:a.every(n=>{const d=t[n],l=s[n];return typeof d=="function"?`${d}`==`${l}`:!vt(d)||!vt(l)?d===l:Xe(d,l)})}function wt(t){return t.concat().sort((s,a)=>s.name>a.name?1:-1).map(s=>s.options)}function js(t,s){if(t.length!==s.length)return!1;const a=wt(t),o=wt(s);return a.every((i,c)=>{const n=o[c];return Xe(i,n)})}function Ze(t){return typeof t=="number"}function Qe(t){return typeof t=="string"}function Be(t){return typeof t=="boolean"}function Ht(t){return Object.prototype.toString.call(t)==="[object Object]"}function z(t){return Math.abs(t)}function et(t){return Math.sign(t)}function Ne(t,s){return z(t-s)}function vs(t,s){if(t===0||s===0||z(t)<=z(s))return 0;const a=Ne(z(t),z(s));return z(a/t)}function ws(t){return Math.round(t*100)/100}function ye(t){return Me(t).map(Number)}function ie(t){return t[Ce(t)]}function Ce(t){return Math.max(0,t.length-1)}function tt(t,s){return s===Ce(t)}function Nt(t,s=0){return Array.from(Array(t),(a,o)=>s+o)}function Me(t){return Object.keys(t)}function St(t,s){return[t,s].reduce((a,o)=>
vendor: 17,753 bytes, line 17
17(Me(o).forEach(i=>{const c=a[i],n=o[i],d=Ht(c)&&Ht(n);a[i]=d?St(c,n):n}),a),{})}function Ye(t,s){return typeof s.MouseEvent<"u"&&t instanceof s.MouseEvent}function Hs(t,s){const a={start:o,center:i,end:c};function o(){return 0}function i(l){return c(l)/2}function c(l){return s-l}function n(l,m){return Qe(t)?a[t](l):t(s,l,m)}return{measure:n}}function Se(){let t=[];function s(i,c,n,d={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(c,n,d),l=()=>i.removeEventListener(c,n,d);else{const m=i;m.addListener(n),l=()=>m.removeListener(n)}return t.push(l),o}function a(){t=t.filter(i=>i())}const o={add:s,clear:a};return o}function Ns(t,s,a,o){const i=Se(),c=1e3/60;let n=null,d=0,l=0;function m(){i.add(t,"visibilitychange",()=>{t.hidden&&p()})}function b(){j(),i.clear()}function u(h){if(!l)return;n||(n=h,a(),a());const r=h-n;for(n=h,d+=r;d>=c;)a(),d-=c;const f=d/c;o(f),l&&(l=s.requestAnimationFrame(u))}function g(){l||(l=s.requestAnimationFrame(u))}function j(){s.cancelAnimationFrame(l),n=null,d=0,l=0}function p(){n=null,d=0}return{init:m,destroy:b,start:g,stop:j,update:a,render:o}}function ys(t,s){const a=s==="rtl",o=t==="y",i=o?"y":"x",c=o?"x":"y",n=!o&&a?-1:1,d=b(),l=u();function m(p){const{height:x,width:h}=p;return o?x:h}function b(){return o?"top":a?"right":"left"}function u(){return o?"bottom":a?"left":"right"}function g(p){return p*n}return{scroll:i,cross:c,startEdge:d,endEdge:l,measureSize:m,direction:g}}function be(t=0,s=0){const a=z(t-s);function o(m){return m<t}function i(m){return m>s}function c(m){return o(m)||i(m)}function n(m){return c(m)?o(m)?t:s:m}function d(m){return a?m-a*Math.ceil((m-s)/a):m}return{length:a,max:s,min:t,constrain:n,reachedAny:c,reachedMax:i,reachedMin:o,removeOffset:d}}function Ct(t,s,a){const{constrain:o}=be(0,t),i=t+1;let c=n(s);function n(g){return a?z((i+g)%i):o(g)}function d(){return c}function l(g){return c=n(g),u}function m(g){return b().set(d()+g)}function b(){return Ct(t,d(),a)}const u={get:d,set:l,add:m,clone:b};return u}function Ms(t,s,a,o,i,c,n,d,l,m,b,u,g,j,p,x,h,r,f){const{cross:v,direction:C}=t,S=["INPUT","SELECT","TEXTAREA"],F={passive:!1},M=Se(),k=Se(),I=be(50,225).constrain(j.measure(20)),D={mouse:300,touch:400},E={mouse:500,touch:600},G=p?43:25;let J=!1,ae=0,Q=0,y=!1,oe=!1,X=!1,de=!1;function ce(w){if(!f)return;function L(T){(Be(f)||f(w,T))&&le(T)}const B=s;M.add(B,"dragstart",T=>T.preventDefault(),F).add(B,"touchmove",()=>{},F).add(B,"touchend",()=>{}).add(B,"touchstart",L).add(B,"mousedown",L).add(B,"touchcancel",_).add(B,"contextmenu",_).add(B,"click",te,!0)}function Z(){M.clear(),k.clear()}function me(){const w=de?a:s;k.add(w,"touchmove",q,F).add(w,"touchend",_).add(w,"mousemove",q,F).add(w,"mouseup",_)}function pe(w){const L=w.nodeName||"";return S.includes(L)}function ee(){return(p?E:D)[de?"mouse":"touch"]}function fe(w,L){const B=u.add(et(w)*-1),T=b.byDistance(w,!p).distance;return p||z(w)<I?T:h&&L?T*.5:b.byIndex(B.get(),0).distance}function le(w){const L=Ye(w,o);de=L,X=p&&L&&!w.buttons&&J,J=Ne(i.get(),n.get())>=2,!(L&&w.button!==0)&&(pe(w.target)||(y=!0,c.pointerDown(w),m.useFriction(0).useDuration(0),i.set(n),me(),ae=c.readPoint(w),Q=c.readPoint(w,v),g.emit("pointerDown")))}function q(w){if(!Ye(w,o)&&w.touches.length>=2)return _(w);const B=c.readPoint(w),T=c.readPoint(w,v),R=Ne(B,ae),V=Ne(T,Q);if(!oe&&!de&&(!w.cancelable||(oe=R>V,!oe)))return _(w);const xe=c.pointerMove(w);R>x&&(X=!0),m.useFriction(.3).useDuration(.75),d.start(),i.add(C(xe)),w.preventDefault()}function _(w){const B=b.byDistance(0,!1).index!==u.get(),T=c.pointerUp(w)*ee(),R=fe(C(T),B),V=vs(T,R),xe=G-10*V,se=r+V/50;oe=!1,y=!1,k.clear(),m.useDuration(xe).useFriction(se),l.distance(R,!p),de=!1,g.emit("pointerUp")}function te(w){X&&(w.stopPropagation(),w.preventDefault(),X=!1)}function Y(){return y}return{init:ce,destroy:Z,pointerDown:Y}}function Ss(t,s){let o,i;function c(u){return u.timeStamp}function n(u,g){const p=`client${(g||t.scroll)==="x"?"X":"Y"}`;return(Ye(u,s)?u:u.touches[0])[p]}function d(u){return o=u,i=u,n(u)}function l(u){const g=n(u)-n(i),j=c(u)-c(o)>170;return i=u,j&&(o=u),g}function m(u){if(!o||!i)return 0;const g=n(i)-n(o),j=c(u)-c(o),p=c(u)-c(i)>170,x=g/j;return j&&!p&&z(x)>.1?x:0}return{pointerDown:d,pointerMove:l,pointerUp:m,readPoint:n}}function Cs(){function t(a){const{offsetTop:o,offsetLeft:i,offsetWidth:c,offsetHeight:n}=a;return{top:o,right:i+c,bottom:o+n,left:i,width:c,height:n}}return{measure:t}}function As(t){function s(o){return t*(o/100)}return{measure:s}}function ks(t,s,a,o,i,c,n){const d=[t].concat(o);let l,m,b=[],u=!1;function g(h){return i.measureSize(n.measure(h))}function j(h){if(!c)return;m=g(t),b=o.map(g);function r(f){for(const v of f){if(u)return;const C=v.target===t,S=o.indexOf(v.target),F=C?m:b[S],M=g(C?t:o[S]);if(z(M-F)>=.5){h.reInit(),s.emit("resize");break}}}l=new ResizeObserver(f=>{(Be(c)||c(h,f))&&r(f)}),a.requestAnimationFrame(()=>{d.forEach(f=>l.observe(f))})}function p(){u=!0,l&&l.disconnect()}return{init:j,destroy:p}}function Fs(t,s,a,o,i,c){let n=0,d=0,l=i,m=c,b=t.get(),u=0;function g(){const F=o.get()-t.get(),M=!l;let k=0;return M?(n=0,a.set(o),t.set(o),k=F):(a.set(t),n+=F/l,n*=m,b+=n,t.add(n),k=b-u),d=et(k),u=b,S}function j(){const F=o.get()-s.get();return z(F)<.001}function p(){return l}function x(){return d}function h(){return n}function r(){return v(i)}function f(){return C(c)}function v(F){return l=F,S}function C(F){return m=F,S}const S={direction:x,duration:p,velocity:h,seek:g,settled:j,useBaseFriction:f,useBaseDuration:r,useFriction:C,useDuration:v};return S}function Is(t,s,a,o,i){const c=i.measure(10),n=i.measure(50),d=be(.1,.99);let l=!1;function m(){return!(l||!t.reachedAny(a.get())||!t.reachedAny(s.get()))}function b(j){if(!m())return;const p=t.reachedMin(s.get())?"min":"max",x=z(t[p]-s.get()),h=a.get()-s.get(),r=d.constrain(x/n);a.subtract(h*r),!j&&z(h)<c&&(a.set(t.constrain(a.get())),o.useDuration(25).useBaseFriction())}function u(j){l=!j}return{shouldConstrain:m,constrain:b,toggleActive:u}}function Ts(t,s,a,o,i){const c=be(-s+t,0),n=u(),d=b(),l=g();function m(p,x){return Ne(p,x)<=1}function b(){const p=n[0],x=ie(n),h=n.lastIndexOf(p),r=n.indexOf(x)+1;return be(h,r)}function u(){return a.map((p,x)=>{const{min:h,max:r}=c,f=c.constrain(p),v=!x,C=tt(a,x);return v?r:C||m(h,f)?h:m(r,f)?r:f}).map(p=>parseFloat(p.toFixed(3)))}function g(){if(s<=t+i)return[c.max];if(o==="keepSnaps")return n;const{min:p,max:x}=d;return n.slice(p,x)}return{snapsContained:l,scrollContainLimit:d}}function Ps(t,s,a){const o=s[0],i=a?o-t:ie(s);return{limit:be(i,o)}}function Es(t,s,a,o){const c=s.min+.1,n=s.max+.1,{reachedMin:d,reachedMax:l}=be(c,n);function m(g){return g===1?l(a.get()):g===-1?d(a.get()):!1}function b(g){if(!m(g))return;const j=t*(g*-1);o.forEach(p=>p.add(j))}return{loop:b}}function Ls(t){const{max:s,length:a}=t;function o(c){const n=c-s;return a?n/-a:0}return{get:o}}function Ds(t,s,a,o,i){const{startEdge:c,endEdge:n}=t,{groupSlides:d}=i,l=u().map(s.measure),m=g(),b=j();function u(){return d(o).map(x=>ie(x)[n]-x[0][c]).map(z)}function g(){return o.map(x=>a[c]-x[c]).map(x=>-z(x))}function j(){return d(m).map(x=>x[0]).map((x,h)=>x+l[h])}return{snaps:m,snapsAligned:b}}function Os(t,s,a,o,i,c){const{groupSlides:n}=i,{min:d,max:l}=o,m=b();function b(){const g=n(c),j=!t||s==="keepSnaps";return a.length===1?[c]:j?g:g.slice(d,l).map((p,x,h)=>{const r=!x,f=tt(h,x);if(r){const v=ie(h[0])+1;return Nt(v)}if(f){const v=Ce(c)-ie(h)[0]+1;return Nt(v,ie(h)[0])}return p})}return{slideRegistry:m}}function Bs(t,s,a,o,i){const{reachedAny:c,removeOffset:n,constrain:d}=o;function l(p){return p.concat().sort((x,h)=>z(x)-z(h))[0]}function m(p){const x=t?n(p):d(p),h=s.map((f,v)=>({diff:b(f-x,0),index:v})).sort((f,v)=>z(f.diff)-z(v.diff)),{index:r}=h[0];return{index:r,distance:x}}function b(p,x){const h=[p,p+a,p-a];if(!t)return p;if(!x)return l(h);const r=h.filter(f=>et(f)===x);return r.length?l(r):ie(h)-a}function u(p,x){const h=s[p]-i.get(),r=b(h,x);return{index:p,distance:r}}function g(p,x){const h=i.get()+p,{index:r,distance:f}=m(h),v=!t&&c(h);if(!x||v)return{index:r,distance:p};const C=s[r]-f,S=p+b(C,0);return{index:r,distance:S}}return{byDistance:g,byIndex:u,shortcut:b}}function Rs(t,s,a,o,i,c,n){function d(u){const g=u.distance,j=u.index!==s.get();c.add(g),g&&(o.duration()?t.start():(t.update(),t.render(1),t.update())),j&&(a.set(s.get()),s.set(u.index),n.emit("select"))}function l(u,g){const j=i.byDistance(u,g);d(j)}function m(u,g){const j=s.clone().set(u),p=i.byIndex(j.get(),g);d(p)}return{distance:l,index:m}}function zs(t,s,a,o,i,c,n,d){const l={passive:!0,capture:!0};let m=0;function b(j){if(!d)return;function p(x){if(new Date().getTime()-m>10)return;n.emit("slideFocusStart"),t.scrollLeft=0;const f=a.findIndex(v=>v.includes(x));Ze(f)&&(i.useDuration(0),o.index(f,0),n.emit("slideFocus"))}c.add(document,"keydown",u,!1),s.forEach((x,h)=>{c.add(x,"focus",r=>{(Be(d)||d(j,r))&&p(h)},l)})}function u(j){j.code==="Tab"&&(m=new Date().getTime())}return{init:b}}function we(t){let s=t;function a(){return s}function o(l){s=n(l)}function i(l){s+=n(l)}function c(l){s-=n(l)}function n(l){return Ze(l)?l:l.get()}return{get:a,set:o,add:i,subtract:c}}function At(t,s){const a=t.scroll==="x"?n:d,o=s.style;let i=null,c=!1;function n(g){return`translate3d(${g}px,0px,0px)`}function d(g){return`translate3d(0px,${g}px,0px)`}function l(g){if(c)return;const j=ws(t.direction(g));j!==i&&(o.transform=a(j),i=j)}function m(g){c=!g}function b(){c||(o.transform="",s.getAttribute("style")||s.removeAttribute("style"))}return{clear:b,to:l,toggleActive:m}}function _s(t,s,a,o,i,c,n,d,l){const b=ye(i),u=ye(i).reverse(),g=r().concat(f());function j(M,k){return M.reduce((I,D)=>I-i[D],k)}function p(M,k){return M.reduce((I,D)=>j(I,k)>0?I.concat([D]):I,[])}function x(M){return c.map((k,I)=>({start:k-o[I]+.5+M,end:k+s-.5+M}))}function h(M,k,I){const D=x(k);return M.map(E=>{const G=I?0:-a,J=I?a:0,ae=I?"end":"start",Q=D[E][ae];return{index:E,loopPoint:Q,slideLocation:we(-1),translate:At(t,l[E]),target:()=>d.get()>Q?G:J}})}function r(){const M=n[0],k=p(u,M);return h(k,a,!1)}function f(){const M=s-n[0]-1,k=p(b,M);return h(k,-a,!0)}function v(){return g.every(({index:M})=>{const k=b.filter(I=>I!==M);return j(k,s)<=.1})}function C(){g.forEach(M=>{const{target:k,translate:I,slideLocation:D}=M,E=k();E!==D.get()&&(I.to(E),D.set(E))})}function S(){g.forEach(M=>M.translate.clear())}return{canLoop:v,clear:S,loop:C,loopPoints:g}}function $s(t,s,a){let o,i=!1;function c(l){if(!a)return;function m(b){for(const u of b)if(u.type==="childList"){l.reInit(),s.emit("slidesChanged");break}}o=new MutationObserver(b=>{i||(Be(a)||a(l,b))&&m(b)}),o.observe(t,{childList:!0})}function n(){o&&o.disconnect(),i=!0}return{init:c,destroy:n}}function Ws(t,s,a,o){const i={};let c=null,n=null,d,l=!1;function m(){d=new IntersectionObserver(p=>{l||(p.forEach(x=>{const h=s.indexOf(x.target);i[h]=x}),c=null,n=null,a.emit("slidesInView"))},{root:t.parentElement,threshold:o}),s.forEach(p=>d.observe(p))}function b(){d&&d.disconnect(),l=!0}function u(p){return Me(i).reduce((x,h)=>{const r=parseInt(h),{isIntersecting:f}=i[r];return(p&&f||!p&&!f)&&x.push(r),x},[])}function g(p=!0){if(p&&c)return c;if(!p&&n)return n;const x=u(p);return p&&(c=x),p||(n=x),x}return{init:m,destroy:b,get:g}}function Gs(t,s,a,o,i,c){const{measureSize:n,startEdge:d,endEdge:l}=t,m=a[0]&&i,b=p(),u=x(),g=a.map(n),j=h();function p(){if(!m)return 0;const f=a[0];return z(s[d]-f[d])}function x(){if(!m)return 0;const f=c.getComputedStyle(ie(o));return parseFloat(f.getPropertyValue(`margin-${l}`))}function h(){return a.map((f,v,C)=>{const S=!v,F=tt(C,v);return S?g[v]+b:F?g[v]+u:C[v+1][d]-f[d]}).map(z)}return{slideSizes:g,slideSizesWithGaps:j,startGap:b,endGap:u}}function Vs(t,s,a,o,i,c,n,d,l){const{startEdge:m,endEdge:b,direction:u}=t,g=Ze(a);function j(r,f){return ye(r).filter(v=>v%f===0).map(v=>r.slice(v,v+f))}function p(r){return r.length?ye(r).reduce((f,v,C)=>{const S=ie(f)||0,F=S===0,M=v===Ce(r),k=i[m]-c[S][m],I=i[m]-c[v][b],D=!o&&F?u(n):0,E=!o&&M?u(d):0,G=z(I-E-(k+D));return C&&G>s+l&&f.push(v),M&&f.push(r.length),f},[]).map((f,v,C)=>{const S=Math.max(C[v-1]||0);return r.slice(S,f)}):[]}function x(r){return g?j(r,a):p(r)}return{groupSlides:x}}function qs(t,s,a,o,i,c,n){const{align:d,axis:l,direction:m,startIndex:b,loop:u,duration:g,dragFree:j,dragThreshold:p,inViewThreshold:x,slidesToScroll:h,skipSnaps:r,containScroll:f,watchResize:v,watchSlides:C,watchDrag:S,watchFocus:F}=c,M=2,k=Cs(),I=k.measure(s),D=a.map(k.measure),E=ys(l,m),G=E.measureSize(I),J=As(G),ae=Hs(d,G),Q=!u&&!!f,y=u||!!f,{slideSizes:oe,slideSizesWithGaps:X,startGap:de,endGap:ce}=Gs(E,I,D,a,y,i),Z=Vs(E,G,h,u,I,D,de,ce,M),{snaps:me,snapsAligned:pe}=Ds(E,ae,I,D,Z),ee=-ie(me)+ie(X),{snapsContained:fe,scrollContainLimit:le}=Ts(G,ee,pe,f,M),q=Q?fe:pe,{limit:_}=Ps(ee,q,u),te=Ct(Ce(q),b,u),Y=te.clone(),O=ye(a),w=({dragHandler:je,scrollBody:ze,scrollBounds:_e,options:{loop:Ae}})=>{Ae||_e.constrain(je.pointerDown()),ze.seek()},L=({scrollBody:je,translate:ze,location:_e,offsetLocation:Ae,previousLocation:Ft,scrollLooper:It,slideLooper:Tt,dragHandler:Pt,animation:Et,eventHandler:nt,scrollBounds:Lt,options:{loop:ot}},ct)=>{const lt=je.settled(),Dt=!Lt.shouldConstrain(),rt=ot?lt:lt&&Dt,it=rt&&!Pt.pointerDown();it&&Et.stop();const Ot=_e.get()*ct+Ft.get()*(1-ct);Ae.set(Ot),ot&&(It.loop(je.direction()),Tt.loop()),ze.to(Ae.get()),it&&nt.emit("settle"),rt||nt.emit("scroll")},B=Ns(o,i,()=>w(Re),je=>L(Re,je)),T=.68,R=q[te.get()],V=we(R),xe=we(R),se=we(R),ne=we(R),ge=Fs(V,se,xe,ne,g,T),H=Bs(u,q,ee,_,ne),A=Rs(B,te,Y,ge,H,ne,n),P=Ls(_),K=Se(),he=Ws(s,a,n,x),{slideRegistry:at}=Os(Q,f,q,le,Z,O),kt=zs(t,a,at,A,ge,K,n,F),Re={ownerDocument:o,ownerWindow:i,eventHandler:n,containerRect:I,slideRects:D,animation:B,axis:E,dragHandler:Ms(E,t,o,i,ne,Ss(E,i),V,B,A,ge,H,te,n,J,j,p,r,T,S),eventStore:K,percentOfView:J,index:te,indexPrevious:Y,limit:_,location:V,offsetLocation:se,previousLocation:xe,options:c,resizeHandler:ks(s,n,i,a,E,v,k),scrollBody:ge,scrollBounds:Is(_,se,ne,ge,J),scrollLooper:Es(ee,_,se,[V,se,xe,ne]),scrollProgress:P,scrollSnapList:q.map(P.get),scrollSnaps:q,scrollTarget:H,scrollTo:A,slideLooper:_s(E,G,ee,oe,X,me,q,se,a),slideFocus:kt,slidesHandler:$s(s,n,C),slidesInView:he,slideIndexes:O,slideRegistry:at,slidesToScroll:Z,target:ne,translate:At(E,s)};return Re}function Us(){let t={},s;function a(m){s=m}function o(m){return t[m]||[]}function i(m){return o(m).forEach(b=>b(s,m)),l}function c(m,b){return t[m]=o(m).concat([b]),l}function n(m,b){return t[m]=o(m).filter(u=>u!==b),l}function d(){t={}}const l={init:a,emit:i,off:n,on:c,clear:d};return l}const Qs={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Ys(t){function s(c,n){return St(c,n||{})}function a(c){const n=c.breakpoints||{},d=Me(n).filter(l=>t.matchMedia(l).matches).map(l=>n[l]).reduce((l,m)=>s(l,m),{});return s(c,d)}function o(c){return c.map(n=>Me(n.breakpoints||{})).reduce((n,d)=>n.concat(d),[]).map(t.matchMedia)}return{mergeOptions:s,optionsAtMedia:a,optionsMediaQueries:o}}function Ks(t){let s=[];function a(c,n){return s=n.filter(({options:d})=>t.optionsAtMedia(d).active!==!1),s.forEach(d=>d.init(c,t)),n.reduce((d,l)=>Object.assign(d,{[l.name]:l}),{})}function o(){s=s.filter(c=>c.destroy())}return{init:a,destroy:o}}function Oe(t,s,a){const o=t.ownerDocument,i=o.defaultView,c=Ys(i),n=Ks(c),d=Se(),l=Us(),{mergeOptions:m,optionsAtMedia:b,optionsMediaQueries:u}=c,{on:g,off:j,emit:p}=l,x=E;let h=!1,r,f=m(Qs,Oe.globalOptions),v=m(f),C=[],S,F,M;function k(){const{container:O,slides:w}=v;F=(Qe(O)?t.querySelector(O):O)||t.children[0];const B=Qe(w)?F.querySelectorAll(w):w;M=[].slice.call(B||F.children)}function I(O){const w=qs(t,F,M,o,i,O,l);if(O.loop&&!w.slideLooper.canLoop()){const L=Object.assign({},O,{loop:!1});return I(L)}return w}function D(O,w){h||(f=m(f,O),v=b(f),C=w||C,k(),r=I(v),u([f,...C.map(({options:L})=>L)]).forEach(L=>d.add(L,"change",E)),v.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(Y),r.eventHandler.init(Y),r.resizeHandler.init(Y),r.slidesHandler.init(Y),r.options.loop&&r.slideLooper.loop(),F.offsetParent&&M.length&&r.dragHandler.init(Y),S=n.init(Y,C)))}function E(O,w){const L=Z();G(),D(m({startIndex:L},O),w),l.emit("reInit")}function G(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),n.destroy(),d.clear()}function J(){h||(h=!0,d.clear(),G(),l.emit("destroy"),l.clear())}function ae(O,w,L){!v.active||h||(r.scrollBody.useBaseFriction().useDuration(w===!0?0:v.duration),r.scrollTo.index(O,L||0))}function Q(O){const w=r.index.add(1).get();ae(w,O,-1)}function y(O){const w=r.index.add(-1).get();ae(w,O,1)}function oe(){return r.index.add(1).get()!==Z()}function X(){return r.index.add(-1).get()!==Z()}function de(){return r.scrollSnapList}function ce(){return r.scrollProgress.get(r.offsetLocation.get())}function Z(){return r.index.get()}function me(){return r.indexPrevious.get()}function pe(){return r.slidesInView.get()}function ee(){return r.slidesInView.get(!1)}function fe(){return S}function le(){return r}function q(){return t}function _(){return F}function te(){return M}const Y={canScrollNext:oe,canScrollPrev:X,containerNode:_,internalEngine:le,destroy:J,off:j,on:g,emit:p,plugins:fe,previousScrollSnap:me,reInit:x,rootNode:q,scrollNext:Q,scrollPrev:y,scrollProgress:ce,scrollSnapList:de,scrollTo:ae,selectedScrollSnap:Z,slideNo
17des:te,slidesInView:pe,slidesNotInView:ee};return D(s,a),setTimeout(()=>l.emit("init"),0),Y}Oe.globalOptions=void 0;function st(t={},s=[]){const a=N.useRef(t),o=N.useRef(s),[i,c]=N.useState(),[n,d]=N.useState(),l=N.useCallback(()=>{i&&i.reInit(a.current,o.current)},[i]);return N.useEffect(()=>{Xe(a.current,t)||(a.current=t,l())},[t,l]),N.useEffect(()=>{js(o.current,s)||(o.current=s,l())},[s,l]),N.useEffect(()=>{if(bs()&&n){Oe.globalOptions=st.globalOptions;const m=Oe(n,a.current,o.current);return c(m),()=>m.destroy()}else c(void 0)},[n,c]),[d,i]}st.globalOptions=void 0;function Js({children:t}){const s=Rt.Children.toArray(t).filter(Boolean),a=s.length,[o,i]=N.useState(!1);N.useEffect(()=>{const r=()=>{const f=window.innerWidth,v=1100,C=768;let S=!1;(a===3&&f>=v||a===2&&f>=C)&&(S=!0),i(S)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[a]);const[c,n]=st({loop:!1,align:"start",skipSnaps:!1,dragFree:!1,containScroll:"trimSnaps",watchDrag:!0}),[d,l]=N.useState(0),[m,b]=N.useState(!1),[u,g]=N.useState(!1),j=N.useCallback(()=>{n&&n.scrollPrev()},[n]),p=N.useCallback(()=>{n&&n.scrollNext()},[n]),x=N.useCallback(r=>{n&&n.scrollTo(r)},[n]),h=N.useCallback(()=>{n&&(l(n.selectedScrollSnap()),b(n.canScrollPrev()),g(n.canScrollNext()))},[n]);return N.useEffect(()=>{if(n)return h(),n.on("select",h),n.on("reInit",h),()=>{n.off("select",h),n.off("reInit",h)}},[n,h]),a<=1?e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:91",className:"w-full max-w-md mx-auto",children:t}):o?e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:97",className:`w-full mx-auto flex gap-4 justify-center items-stretch ${a===2?"max-w-4xl":"max-w-6xl"}`,children:s.map((r,f)=>e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:101",className:"flex-1 min-w-0",children:r},f))}):e.jsxs("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:111",className:"relative w-full max-w-6xl mx-auto",children:[e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:113",className:"overflow-hidden w-full",ref:c,children:e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:114",className:"flex select-none",children:s.map((r,f)=>e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:116",className:"flex-[0_0_85%] md:flex-[0_0_45%] min-w-0 px-2 md:px-3",children:r},f))})}),e.jsx(U,{"data-loc":"client/src/components/HeroCTACarousel.tsx:127",variant:"outline",size:"icon",onClick:j,disabled:!m,className:"absolute -left-4 md:-left-12 top-1/2 -translate-y-1/2 hidden md:flex bg-[#001a3d]/90 border-[#002FA7]/50 text-white hover:bg-[#002FA7] hover:text-white disabled:opacity-30 disabled:cursor-not-allowed z-10",children:e.jsx(qt,{"data-loc":"client/src/components/HeroCTACarousel.tsx:134",className:"h-6 w-6"})}),e.jsx(U,{"data-loc":"client/src/components/HeroCTACarousel.tsx:136",variant:"outline",size:"icon",onClick:p,disabled:!u,className:"absolute -right-4 md:-right-12 top-1/2 -translate-y-1/2 hidden md:flex bg-[#001a3d]/90 border-[#002FA7]/50 text-white hover:bg-[#002FA7] hover:text-white disabled:opacity-30 disabled:cursor-not-allowed z-10",children:e.jsx(Ut,{"data-loc":"client/src/components/HeroCTACarousel.tsx:143",className:"h-6 w-6"})}),e.jsx("div",{"data-loc":"client/src/components/HeroCTACarousel.tsx:147",className:"flex justify-center gap-2 mt-6",children:s.map((r,f)=>e.jsx("button",{"data-loc":"client/src/components/HeroCTACarousel.tsx:149",onClick:()=>x(f),className:`h-2 rounded-full transition-all duration-300 ${f===d?"w-8 bg-[#0047FF]":"w-2 bg-white/30 hover:bg-white/50"}`,"aria-label":`Go to slide ${f+1}`},f))})]})}function Xs({open:t,onOpenChange:s}){const{t:a}=Je(),[o,i]=N.useState(""),[c,n]=N.useState(""),[d,l]=N.useState(""),[m,b]=N.useState(!1),{data:u,refetch:g}=W.ambassador.getInvitationCount.useQuery(void 0,{enabled:t}),j=W.ambassador.inviteNewAmbassador.useMutation({onSuccess:()=>{re.success(a("inviteModal.successToast")),i(""),n(""),l(""),g(),s(!1)},onError:r=>{r.message==="INVITATION_LIMIT_REACHED"?re.error(a("inviteModal.limitReachedToast")):re.error(a("inviteModal.errorToast"))}}),p=r=>{if(r.preventDefault(),!o.trim()||!c.trim()||!d.trim()){re.error(a("inviteModal.fillAllFields"));return}j.mutate({firstName:o.trim(),lastName:c.trim(),email:d.trim()})},x=u?u.limit-u.count:3,h=x>0;return e.jsxs(Pe,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:79",open:t,onOpenChange:s,children:[e.jsxs(Ee,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:80",className:"sm:max-w-[500px]",children:[e.jsxs(Le,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:81",children:[e.jsxs(De,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:82",className:"flex items-center gap-2 text-xl",children:[e.jsx(Yt,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:83",className:"h-5 w-5"}),a("inviteModal.title")]}),e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:86",className:"space-y-3 pt-2 text-sm text-muted-foreground",children:[e.jsx("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:87",children:a("inviteModal.description")}),e.jsx("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:90",className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-300 dark:border-amber-700 rounded-lg p-3",children:e.jsxs("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:91",className:"text-sm text-amber-900 dark:text-amber-100",children:[e.jsxs("strong",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:92",children:["⚠️ ",a("inviteModal.warningTitle")]}),e.jsx("br",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:92"}),a("inviteModal.warningText")]})}),e.jsx("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:96",className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-3",children:e.jsxs("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:97",className:"text-sm text-blue-900 dark:text-blue-100",children:[e.jsx("strong",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:98",children:a("inviteModal.tipTitle")})," ",a("inviteModal.tipText"),"."]})}),u&&e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:102",className:"bg-gray-50 dark:bg-gray-900/20 border border-gray-200 dark:border-gray-800 rounded-lg p-3",children:[e.jsxs("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:103",className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:["📊 ",a("inviteModal.invitationsThisWeek")," ",u.count," / ",u.limit]}),e.jsx("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:106",className:"text-xs text-gray-600 dark:text-gray-400 mt-1",children:x>0?x>1?a("inviteModal.remainingPlural").replace("{count}",x.toString()):a("inviteModal.remainingSingular"):a("inviteModal.limitReached")})]})]})]}),e.jsxs("form",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:116",onSubmit:p,className:"space-y-4 py-4",children:[e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:117",className:"space-y-2",children:[e.jsxs(He,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:118",htmlFor:"firstName",children:[a("inviteModal.firstName")," *"]}),e.jsx($e,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:119",id:"firstName",value:o,onChange:r=>i(r.target.value),placeholder:"John",disabled:!h||j.isPending,required:!0})]}),e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:129",className:"space-y-2",children:[e.jsxs(He,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:130",htmlFor:"lastName",children:[a("inviteModal.lastName")," *"]}),e.jsx($e,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:131",id:"lastName",value:c,onChange:r=>n(r.target.value),placeholder:"Doe",disabled:!h||j.isPending,required:!0})]}),e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:141",className:"space-y-2",children:[e.jsxs(He,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:142",htmlFor:"email",children:[a("inviteModal.email")," *"]}),e.jsx($e,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:143",id:"email",type:"email",value:d,onChange:r=>l(r.target.value),placeholder:"[email protected]",disabled:!h||j.isPending,required:!0})]}),e.jsxs(Ue,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:154",className:"flex-col sm:flex-row gap-3",children:[e.jsxs(U,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:155",type:"button",variant:"ghost",onClick:()=>b(!0),disabled:j.isPending,className:"gap-2 w-full sm:w-auto",children:[e.jsx(Kt,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:162",className:"h-4 w-4"}),a("inviteModal.previewEmail")]}),e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:165",className:"flex gap-2 w-full sm:w-auto",children:[e.jsx(U,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:166",type:"button",variant:"outline",onClick:()=>s(!1),disabled:j.isPending,className:"flex-1 sm:flex-none",children:a("inviteModal.cancel")}),e.jsx(U,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:175",type:"submit",disabled:!h||j.isPending,className:"gap-2 flex-1 sm:flex-none",children:j.isPending?e.jsxs(e.Fragment,{children:[e.jsx(qe,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:182",className:"h-4 w-4 animate-spin"}),a("inviteModal.sending")]}):e.jsxs(e.Fragment,{children:[e.jsx(Mt,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:187",className:"h-4 w-4"}),a("inviteModal.sendInvitation")]})})]})]})]})]}),e.jsx(Pe,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:198",open:m,onOpenChange:b,children:e.jsxs(Ee,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:199",className:"max-w-[95vw] sm:max-w-[700px] max-h-[80vh] overflow-y-auto",children:[e.jsx(Le,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:200",children:e.jsx(De,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:201",children:a("inviteModal.emailPreviewTitle")})}),e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:203",className:"space-y-4",children:[e.jsxs("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:204",className:"bg-gray-50 dark:bg-gray-900 p-4 rounded-lg space-y-2",children:[e.jsxs("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:205",className:"text-sm text-muted-foreground",children:[e.jsxs("strong",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:205",children:[a("inviteModal.emailTo"),":"]})," ",d||"[email protected]"]}),e.jsxs("p",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:206",className:"text-sm text-muted-foreground",children:[e.jsxs("strong",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:206",children:[a("inviteModal.emailSubject"),":"]})," ",a("inviteModal.emailSubjectText")]})]}),e.jsx("div",{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:208",className:"bg-white dark:bg-gray-950 border border-gray-200 dark:border-gray-800 rounded-lg p-6 space-y-4 text-sm whitespace-pre-wrap font-mono",children:a("inviteModal.emailBody").replace("{firstName}",o||"[Prénom]").replace("{inviterName}","[Votre nom]")})]}),e.jsx(Ue,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:212",children:e.jsx(U,{"data-loc":"client/src/components/InviteAmbassadorModal.tsx:213",onClick:()=>b(!1),children:a("inviteModal.close")})})]})})]})}function Zs({open:t,onOpenChange:s,onComplete:a}){const{t:o}=Je(),[i,c]=N.useState(""),[n,d]=N.useState(null),[l,m]=N.useState(null),[b,u]=N.useState(!1),{refetch:g}=W.auth.me.useQuery(),j=W.profile.updateProfile.useMutation({onSuccess:()=>{re.success(o("profile.profileUpdated")),g(),a(),s(!1)},onError:r=>{re.error(r.message||"Failed to update profile")}}),p=r=>{const f=r.target.files?.[0];if(f){d(f);const v=new FileReader;v.onloadend=()=>{m(v.result)}
17,v.readAsDataURL(f)}},x=async()=>{u(!0);let r;if(n){const f=new FormData;f.append("profilePicture",n);try{const v=await fetch("/api/profile/upload-picture",{method:"POST",body:f});v.ok&&(r=(await v.json()).url)}catch{re.error("Failed to upload photo"),u(!1);return}}j.mutate({bio:i||void 0,profilePicture:r}),u(!1)},h=()=>{a(),s(!1)};return e.jsx(Pe,{"data-loc":"client/src/components/WelcomeModal.tsx:93",open:t,onOpenChange:s,children:e.jsxs(Ee,{"data-loc":"client/src/components/WelcomeModal.tsx:94",className:"sm:max-w-[500px] max-h-[90vh] overflow-y-auto",children:[e.jsxs(Le,{"data-loc":"client/src/components/WelcomeModal.tsx:95",children:[e.jsx(De,{"data-loc":"client/src/components/WelcomeModal.tsx:96",className:"text-xl md:text-2xl font-bold text-gradient-blue",children:o("welcome.title")}),e.jsx(Qt,{"data-loc":"client/src/components/WelcomeModal.tsx:99",className:"text-sm md:text-base",children:o("welcome.description")})]}),e.jsxs("div",{"data-loc":"client/src/components/WelcomeModal.tsx:104",className:"space-y-4 py-4",children:[e.jsxs("div",{"data-loc":"client/src/components/WelcomeModal.tsx:106",className:"space-y-2",children:[e.jsxs(He,{"data-loc":"client/src/components/WelcomeModal.tsx:107",htmlFor:"photo",className:"text-sm font-medium",children:[o("profile.uploadPhoto")," ",e.jsxs("span",{"data-loc":"client/src/components/WelcomeModal.tsx:108",className:"text-muted-foreground text-xs",children:["(",o("welcome.optional"),")"]})]}),e.jsxs("div",{"data-loc":"client/src/components/WelcomeModal.tsx:110",className:"flex items-center gap-4",children:[l&&e.jsx("div",{"data-loc":"client/src/components/WelcomeModal.tsx:112",className:"w-20 h-20 rounded-full overflow-hidden border-2 border-border",children:e.jsx("img",{"data-loc":"client/src/components/WelcomeModal.tsx:113",src:l,alt:"Preview",className:"w-full h-full object-cover"})}),e.jsxs("label",{"data-loc":"client/src/components/WelcomeModal.tsx:116",htmlFor:"photo",className:"cursor-pointer",children:[e.jsxs("div",{"data-loc":"client/src/components/WelcomeModal.tsx:117",className:"flex items-center gap-2 px-4 py-2 border border-border rounded-md hover:bg-accent transition-colors",children:[e.jsx(Xt,{"data-loc":"client/src/components/WelcomeModal.tsx:118",className:"w-4 h-4"}),e.jsx("span",{"data-loc":"client/src/components/WelcomeModal.tsx:119",className:"text-sm",children:o(l?"welcome.changePhoto":"welcome.uploadPhoto")})]}),e.jsx("input",{"data-loc":"client/src/components/WelcomeModal.tsx:121",id:"photo",type:"file",accept:"image/*",className:"hidden",onChange:p})]})]})]}),e.jsxs("div",{"data-loc":"client/src/components/WelcomeModal.tsx:133",className:"space-y-2",children:[e.jsxs(He,{"data-loc":"client/src/components/WelcomeModal.tsx:134",htmlFor:"bio",className:"text-sm font-medium",children:[o("profile.bio")," ",e.jsxs("span",{"data-loc":"client/src/components/WelcomeModal.tsx:135",className:"text-muted-foreground text-xs",children:["(",o("welcome.optional"),")"]})]}),e.jsx(Jt,{"data-loc":"client/src/components/WelcomeModal.tsx:137",id:"bio",value:i,onChange:r=>c(r.target.value),placeholder:o("welcome.enterBio"),rows:3})]})]}),e.jsxs(Ue,{"data-loc":"client/src/components/WelcomeModal.tsx:148",className:"flex-col sm:flex-row gap-2",children:[e.jsx(U,{"data-loc":"client/src/components/WelcomeModal.tsx:149",variant:"outline",onClick:h,className:"w-full sm:w-auto",disabled:j.isPending||b,children:o("welcome.skip")}),e.jsx(U,{"data-loc":"client/src/components/WelcomeModal.tsx:157",onClick:x,className:"w-full sm:w-auto bg-blue-500 hover:bg-blue-600",disabled:j.isPending||b,children:j.isPending||b?o("welcome.saving"):o("welcome.save")})]})]})})}function yt(){return e.jsx("span",{"data-loc":"client/src/components/LockBadge.tsx:10",className:"inline-flex items-center justify-center w-5 h-5 rounded-full bg-[oklch(0.55_0.20_259)] border border-white/30",title:"Connexion requise",children:e.jsx(zt,{"data-loc":"client/src/components/LockBadge.tsx:14",className:"h-3 w-3 text-white"})})}const ea=N.lazy(()=>Bt(()=>import("./Globe3D-BOKP6bZZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])));function en(){const{t,language:s,setLanguage:a}=Je(),{countries:o}=_t(),[i,c]=N.useState(!1),[n,d]=N.useState("login"),[l,m]=N.useState(!1),[b,u]=N.useState(!1),[g,j]=N.useState(!1),[p,x]=N.useState(!1),[h,r]=N.useState(!1),[f,v]=N.useState("general"),C=Zt(),[S,F]=N.useState(["sure","very_probable","probable"]),[M,k]=N.useState("all"),[I,D]=N.useState(null),[E,G]=N.useState(null),[J,ae]=N.useState(!1),Q=N.useRef(null),{data:y,refetch:oe}=W.auth.me.useQuery(),{data:X}=W.auth.getOnboardingStatus.useQuery(void 0,{enabled:!!y}),{data:de}=W.forum.getUnreadCount.useQuery(void 0,{enabled:!!y,refetchInterval:3e4}),{data:ce}=W.stats.getTotalAmbassadors.useQuery(),{data:Z}=W.oneHomeSettings.get.useQuery();W.forum.markForumVisited.useMutation();const me=W.analytics.trackEvent.useMutation(),pe=W.auth.logout.useMutation({onSuccess:()=>{window.location.reload()}}),{data:ee,refetch:fe}=W.sanitySync.getSyncStatus.useQuery(void 0,{enabled:y?.role==="admin"}),le=W.sanitySync.syncEvents.useMutation({onSuccess:H=>{re.success(`Sync Sanity réussi : ${H.total} événements (${H.inserted} ajoutés, ${H.updated} mis à jour)`),fe()},onError:H=>{re.error(`Erreur sync Sanity : ${H.message}`)}}),{data:q}=W.contactLeads.byCountry.useQuery({statuses:["sure","very_probable","probable","uncertain"]}),{data:_}=W.contactLeads.count.useQuery(void 0,{enabled:!!y,refetchInterval:3e4}),{data:te}=W.welcomeTeam.getPendingRequestsCount.useQuery(void 0,{enabled:!!(y?.isWelcomeTeamMember||y?.role==="admin")}),{data:Y}=W.welcomeTeam.getMyInProgressCount.useQuery(void 0,{enabled:!!(y?.isWelcomeTeamMember||y?.role==="admin")}),{data:O}=W.ambassador.getTotalInvitationsSent.useQuery(void 0,{enabled:!!y}),{data:w}=W.messageGenerator.getUserMessageCount.useQuery(void 0,{enabled:!!y});N.useEffect(()=>{const H=new IntersectionObserver(A=>{A.forEach(P=>{P.isIntersecting&&!J&&ae(!0)})},{threshold:.3});return Q.current&&H.observe(Q.current),()=>{Q.current&&H.unobserve(Q.current)}},[J]);const L=H=>{F({sure:["sure"],very_probable:["sure","very_probable"],probable:["sure","very_probable","probable"],uncertain:["sure","very_probable","probable","uncertain"]}[H])},B=N.useMemo(()=>S.length===4?"uncertain":S.length===3?"probable":S.length===2?"very_probable":"sure",[S]),T=N.useMemo(()=>
17{if(!q)return{};const H={};for(const[A,P]of Object.entries(q)){let K=P.filter(he=>S.includes(he.status));y&&M==="me"&&(K=K.filter(he=>he.userId===y.id)),K.length>0&&(H[A]=K)}return H},[q,S,M,y]),R=N.useMemo(()=>T?Object.keys(T).filter(H=>{const A=o.find(P=>P.id===H);return A&&!A.participating}).length:0,[T,o]),V=N.useMemo(()=>({...$t(o),potentialCountries:R}),[o,R]),xe=N.useMemo(()=>Wt(o),[o]);function se(H){const A={Europe:[],Americas:[],Asia:[],Africa:[],"Middle East":[],Oceania:[],Arctic:[],Antarctica:[]};return H.forEach(P=>{A[P.continent]&&A[P.continent].push(P)}),Object.keys(A).forEach(P=>{A[P].sort((K,he)=>K.name.localeCompare(he.name))}),A}function ne(H){return s==="fr"&&{Europe:"Europe",Americas:"Amériques",Asia:"Asie",Africa:"Afrique","Middle East":"Moyen-Orient",Oceania:"Océanie",Arctic:"Arctique",Antarctica:"Antarctique"}[H]||H}const ge=()=>{console.log("[LOGOUT] handleLogout called"),pe.mutate()};return e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:479",className:"min-h-screen bg-[#0a0e27] text-white relative",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:480",className:"starfield"}),e.jsx("header",{"data-loc":"client/src/pages/Home.tsx:483",className:"fixed top-0 left-0 right-0 z-50 bg-[#0a0e27]/95 backdrop-blur-sm",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:484",className:"container mx-auto px-4 h-16 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:486",className:"flex items-center gap-2",children:[e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:487",onClick:()=>a("en"),className:`px-2 py-1 text-sm transition-colors ${s==="en"?"text-[#002FA7] font-semibold":"text-gray-400 hover:text-white"}`,children:"EN"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:497",className:"text-gray-600",children:"|"}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:498",onClick:()=>a("fr"),className:`px-2 py-1 text-sm transition-colors ${s==="fr"?"text-[#002FA7] font-semibold":"text-gray-400 hover:text-white"}`,children:"FR"})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:511",className:"absolute left-1/2 transform -translate-x-1/2",children:e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:512",href:"https://www.onehome.org",target:"_blank",rel:"noopener noreferrer",className:"transition-transform hover:scale-105",children:e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:518",src:"/onehome-logo-hd.png",alt:"OneHome",className:"h-6 md:h-10 w-auto"})})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:527",className:"flex items-center gap-2",children:[!y&&e.jsxs(U,{"data-loc":"client/src/pages/Home.tsx:530",onClick:()=>{d("login"),c(!0)},variant:"outline",size:"sm",className:"hidden md:flex items-center gap-2 bg-transparent border-white/30 text-white hover:bg-white/10 hover:border-white/50 transition-all",children:[e.jsx(xt,{"data-loc":"client/src/pages/Home.tsx:539",className:"h-4 w-4"}),s==="fr"?"Se connecter":"Sign in"]}),!y&&e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:545",onClick:()=>{d("login"),c(!0)},className:"md:hidden text-white hover:opacity-80 transition-opacity focus:outline-none",children:e.jsx(ve,{"data-loc":"client/src/pages/Home.tsx:552",className:"h-5 w-5"})}),y&&e.jsxs(ts,{"data-loc":"client/src/pages/Home.tsx:557",children:[e.jsx(ss,{"data-loc":"client/src/pages/Home.tsx:558",asChild:!0,children:e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:559",className:"text-white hover:opacity-80 transition-opacity focus:outline-none",children:y.profilePicture?e.jsx("img",{"data-loc":"client/src/pages/Home.tsx:561",src:y.profilePicture,alt:y.name||"Profile",className:"h-8 w-8 rounded-full object-cover border-2 border-white/30 hover:border-white/50 transition-all"}):e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:567",className:"h-8 w-8 rounded-full bg-[oklch(0.55_0.20_259)] flex items-center justify-center border-2 border-white/30 hover:border-white/50 transition-all",children:e.jsx(ve,{"data-loc":"client/src/pages/Home.tsx:568",className:"h-4 w-4 text-white"})})})}),e.jsxs(as,{"data-loc":"client/src/pages/Home.tsx:573",align:"end",className:"w-48",children:[e.jsx(We,{"data-loc":"client/src/pages/Home.tsx:574",className:"font-semibold",children:y.firstName||y.name?.split(" ")[0]||"Profile"}),e.jsx(Fe,{"data-loc":"client/src/pages/Home.tsx:577"}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:578",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:579",href:`/profile/${y.id}`,children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:580",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(ve,{"data-loc":"client/src/pages/Home.tsx:581",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:582",children:t("header.myAccount")}
17)]})})}),y.role==="admin"&&e.jsxs(e.Fragment,{children:[e.jsx(Fe,{"data-loc":"client/src/pages/Home.tsx:588"}),e.jsx(We,{"data-loc":"client/src/pages/Home.tsx:589",className:"text-xs text-muted-foreground",children:"Admin"}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:590",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:591",href:"/admin",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:592",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(os,{"data-loc":"client/src/pages/Home.tsx:593",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:594",children:t("header.countriesStats")})]})})}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:598",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:599",href:"/ambassadors-admin",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:600",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(Ie,{"data-loc":"client/src/pages/Home.tsx:601",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:602",children:"Ambassadors"})]})})}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:606",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:607",href:"/admin/faq",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:608",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(fs,{"data-loc":"client/src/pages/Home.tsx:609",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:610",children:"FAQ Management"})]})})}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:614",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:615",href:"/admin/cache",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:616",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(jt,{"data-loc":"client/src/pages/Home.tsx:617",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:618",children:"Cache Management"})]})})}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:622",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:623",href:"/admin/invitations",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:624",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(Mt,{"data-loc":"client/src/pages/Home.tsx:625",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:626",children:"Invitations Tracking"})]})})}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:630",asChild:!0,children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:631",href:"/admin/message-logs",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:632",className:"flex items-center gap-2 w-full cursor-pointer",children:[e.jsx(cs,{"data-loc":"client/src/pages/Home.tsx:633",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:634",children:"Message Logs"})]})})}),e.jsx(Fe,{"data-loc":"client/src/pages/Home.tsx:638"}),e.jsx(We,{"data-loc":"client/src/pages/Home.tsx:639",className:"text-xs text-muted-foreground",children:"Sanity CMS"}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:640",onSelect:H=>{H.preventDefault(),le.isPending||le.mutate()},disabled:le.isPending,className:"cursor-pointer",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:650",className:"flex items-center gap-2 w-full",children:[le.isPending?e.jsx(qe,{"data-loc":"client/src/pages/Home.tsx:652",className:"h-4 w-4 animate-spin"}):e.jsx(jt,{"data-loc":"client/src/pages/Home.tsx:654",className:"h-4 w-4 text-blue-400"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:656",className:"flex flex-col",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:657",className:"text-sm",children:le.isPending?"Sync en cours...":"Refresh Sanity"}),ee&&ee.count>0&&e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:661",className:"text-xs text-muted-foreground",children:[ee.count," événements",ee.lastSyncedAt&&e.jsxs(e.Fragment,{children:[" • ",new Date(ee.lastSyncedAt).toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"})]})]})]})]})})]}),e.jsx(Fe,{"data-loc":"client/src/pages/Home.tsx:674"}),e.jsx(ue,{"data-loc":"client/src/pages/Home.tsx:675",onSelect:ge,className:"cursor-pointer",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:676",className:"flex items-center gap-2 w-full",children:[e.jsx(ns,{"data-loc":"client/src/pages/Home.tsx:677",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:678",children:t("header.logout")})]})})]})]}),e.jsx(U,{"data-loc":"client/src/pages/Home.tsx:686",variant:"ghost",size:"icon",onClick:()=>x(!p),className:"text-white hover:bg-white/10",children:p?e.jsx(ut,{"data-loc":"client/src/pages/Home.tsx:692",className:"h-6 w-6"}):e.jsx(ls,{"data-loc":"client/src/pages/Home.tsx:692",className:"h-6 w-6"})})]})]})}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:701",className:"fixed inset-0 bg-black/50 z-40",onClick:()=>x(!1)}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:705",className:"fixed top-0 right-0 h-full w-80 bg-[#0a0e27] shadow-2xl z-50 transform transition-transform duration-300 ease-in-out border-l border-white/10",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:706",className:"flex flex-col h-full",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:707",className:"flex items-center justify-between p-6 border-b border-white/10",children:[e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:708",className:"text-xl font-semibold text-white",children:"Menu"}),e.jsx(U,{"data-loc":"client/src/pages/Home.tsx:709",variant:"ghost",size:"icon",onClick:()=>x(!1),className:"text-white hover:bg-white/10",children:e.jsx(ut,{"data-loc":"client/src/pages/Home.tsx:715",className:"h-6 w-6"})})]}),e.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:718",className:"flex-1 p-6 overflow-y-auto",children:[!y&&e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:721",className:"mb-6",children:e.jsxs(U,{"data-loc":"client/src/pages/Home.tsx:722",onClick:()=>{x(!1),d("login"),c(!0)},className:"w-full bg-[oklch(0.55_0.20_259)] hover:bg-[oklch(0.50_0.20_259)] text-white font-semibold py-3 rounded-lg transition-all flex items-center justify-center gap-2",children:[e.jsx(xt,{"data-loc":"client/src/pages/Home.tsx:730",className:"h-5 w-5"}),s==="fr"?"Se connecter":"Sign in"]})}),e.jsxs("ul",{"data-loc":"client/src/pages/Home.tsx:735",className:"space-y-1",children:[e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:737",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:738",onClick:()=>{x(!1),window.scrollTo({top:0,behavior:"smooth"})},className:"w-full text-left px-4 py-3 text-white hover:bg-white/10 rounded-lg transition-colors text-base flex items-center gap-3",children:[e.jsx(rs,{"data-loc":"client/src/pages/Home.tsx:745",className:"h-5 w-5"}),s==="fr"?"Accueil":"Home"]})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:751",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:752",href:"/explore",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:753",onClick:()=>x(!1),className:"w-full text-left px-4 py-3 text-white hover:bg-white/10 rounded-lg transition-colors text-base flex items-center gap-3",children:[e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:757",className:"h-5 w-5"}),s==="fr"?"Explorer les Projections":"Explore Projections"]})})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:764",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:765",href:"/countries-status",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:766",onClick:()=>x(!1),className:"w-full text-left px-4 py-3 text-white hover:bg-white/10 rounded-lg transition-colors text-base flex items-center gap-3",children:[e.jsx(pt,{"data-loc":"client/src/pages/Home.tsx:770",className:"h-5 w-5"}),s==="fr"?"Pays manquants":"Missing Countries"]})})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:777",className:"pt-4",children:e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:778",className:"px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider",children:s==="fr"?"Vos activités":"Your activities"})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:784",children:y?e.jsx($,{"data-loc":"client/src/pages/Home.tsx:786",href:"/dashboard",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:787",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3 justify-between",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:791",className:"flex items-center gap-3",children:[e.jsx(Ie,{"data-loc":"client/src/pages/Home.tsx:792",className:"h-4 w-4"}),s==="fr"?"Vos contacts Projection":"Your Projection contacts"]}),_&&e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:796",className:"text-gray-400 text-xs",children:["(",(_.myCount??0)+(_.inProgress??0),")"]})]})}):e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:801",onClick:()=>{v("contacts"),r(!0),C&&me.mutate({eventType:"lock_click",feature:"contacts",sessionId:C})},className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3 justify-between",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:811",className:"flex items-center gap-3",children:[e.jsx(Ie,{"data-loc":"client/src/pages/Home.tsx:812",className:"h-4 w-4"}),s==="fr"?"Vos contacts Projection":"Your Projection contacts"]}),e.jsx(yt,{"data-loc":"client/src/pages/Home.tsx:815"})]})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:821",children:y?e.jsx($,{"data-loc":"client/src/pages/Home.tsx:823",href:"/message-generator",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:824",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:[e.jsx(ft,{"data-loc":"client/src/pages/Home.tsx:828",className:"h-4 w-4"}),s==="fr"?"Générateur de Messages":"Message Generator"]})}):e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:833",onClick:()=>{v("messageGenerator"),r(!0),C&&me.mutate({eventType:"lock_click",feature:"messageGenerator",sessionId:C})},className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3 justify-between",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:843",className:"flex items-center gap-3",children:[e.jsx(ft,{"data-loc":"client/src/pages/Home.tsx:844",className:"h-4 w-4"}),s==="fr"?"Générateur de Messages":"Message Generator"]}),e.jsx(yt,{"data-loc":"client/src/pages/Home.tsx:847"})]})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:853",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:854",href:"/resources",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:855",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:[e.jsx(is,{"data-loc":"client/src/pages/Home.tsx:859",className:"h-4 w-4"}),t("header.resources")]})})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:866",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:867",href:"/faq",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:868",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:[e.jsxs("svg",{"data-loc":"client/src/pages/Home.tsx:872",className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{"data-loc":"client/src/pages/Home.tsx:873",cx:"12",cy:"12",r:"10"}),e.jsx("path",{"data-loc":"client/src/pages/Home.tsx:874",d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("line",{"data-loc":"client/src/pages/Home.tsx:875",x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),"FAQ"]})})}),y&&(y?.isEcosystemAmbassador||y?.role==="admin")&&e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:884",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:885",href:"/all-contact-ecosystem",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:886",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:[e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:890",className:"h-4 w-4"}),t("header.ecosystemContacts")]})})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:898",className:"pt-4",children:e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:899",className:"px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider",children:s==="fr"?"Ambassadeurs":"Ambassadors"})}),y&&(y?.isWelcomeTeamMember||y?.role==="admin")&&e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:906",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:907",href:"/welcome-board",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:908",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:[e.jsx(gs,{"data-loc":"client/src/pages/Home.tsx:912",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:913",className:"flex-1",children:"Welcome Board"}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:914",className:"flex items-center gap-1.5",children:[te&&te.count>0&&e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:916",className:"bg-red-500 text-white text-xs font-bold px-2 py-0.5 rounded-full min-w-[20px] text-center",children:te.count}),Y&&Y.count>0&&e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:921",className:"bg-blue-500 text-white text-xs font-bold px-2 py-0.5 rounded-full min-w-[20px] text-center",children:Y.count})]})]})})}),y&&(y?.role==="admin"||y?.isEventReviewer)&&e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:933",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:934",href:"/event-review",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:935",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:[e.jsx(ds,{"data-loc":"client/src/pages/Home.tsx:939",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:940",className:"flex-1",children:s==="fr"?"Validation Événements":"Event Review"})]})})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:949",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:950",href:"/ambassadors",children:e.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:951",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3 justify-between",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:955",className:"flex items-center gap-3",children:[e.jsx(Ge,{"data-loc":"client/src/pages/Home.tsx:956",className:"h-4 w-4"}),s==="fr"?"Carte et Annuaire":"Map and Directory"]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:959",className:"text-gray-400 text-xs",children:["(",ce?.totalAmbassadors??0,")"]})]})})}),e.jsx("li",{"data-loc":"client/src/pages/Home.tsx:964",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:965",href:"/ambassador-stats",children:e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:966",onClick:()=>x(!1),className:"w-full text-left pl-8 pr-4 py-2.5 text-white hover:bg-white/10 rounded-lg transition-colors text-sm flex items-center gap-3",children:e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:970",className:"flex items-center gap-3",children:[e.jsx(ms,{"data-loc":"client/src/pages/Home.tsx:971",className:"h-4 w-4"}),s==="fr"?"Statistiques":"Statistics"]})})})})]})]})]})})]}),e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:985",className:"relative h-screen flex items-center justify-center pt-16 md:pt-20",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:987",className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url('/earth-from-space-hd.jpg')",backgroundPosition:"center 40%"
17},children:e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:994",className:"absolute inset-0 bg-gradient-to-b from-[#0a0e27]/70 via-[#0a0e27]/50 to-[#0a0e27]"})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:998",className:"relative z-10 container mx-auto px-4 text-center",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1000",className:"mb-8 md:mb-16 -mt-20 md:-mt-20",children:[e.jsxs("h1",{"data-loc":"client/src/pages/Home.tsx:1001",className:"text-3xl md:text-5xl font-bold mb-2 md:mb-4 leading-tight",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1002",className:"block bg-gradient-to-r from-[#002FA7] via-[#0047FF] to-[#00A3FF] bg-clip-text text-transparent",children:t("home.blueRevolution")}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1003",className:"block bg-gradient-to-r from-[#0066FF] via-[#0088FF] to-[#00BBFF] bg-clip-text text-transparent",children:t("home.missionCenter")}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1004",className:"block bg-gradient-to-r from-[#00A3FF] via-[#00CCFF] to-[#00E5FF] bg-clip-text text-transparent",children:t("home.ambassadors")})]}),e.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:1006",className:"text-sm md:text-xl text-white/90 max-w-3xl mx-auto",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1007",className:"block",children:t("home.illuminating100Countries")}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1008",className:"block",children:t("home.byEarthDay2026")})]})]}),e.jsxs(Js,{"data-loc":"client/src/pages/Home.tsx:1013",children:[y?y&&!X?.onboardingCompleted?e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1050",className:"bg-[#001a3d]/80 backdrop-blur-md border border-[#002FA7]/30 rounded-2xl p-4 md:p-8 shadow-2xl flex flex-col gap-3 md:gap-4 min-h-[280px] md:min-h-[360px] w-full",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1051",className:"flex justify-center",children:e.jsx(gt,{"data-loc":"client/src/pages/Home.tsx:1052",className:"h-8 w-8 md:h-10 md:w-10 text-[#0047FF]"})}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:1054",className:"text-base md:text-lg font-bold text-white leading-tight text-center",children:t("home.completeOnboardingTitle")}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1055",className:"text-sm md:text-base text-gray-300 leading-relaxed text-center flex-1",children:`${[X?.profileCompleted,X?.guideRead,X?.ambassadorContactRequested,X?.firstContactEntered].filter(Boolean).length}/4 ${t("home.stepsCompleted")} - ${t("home.completeOnboardingDescription")}`}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1066",className:"mt-auto",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:1067",href:"/getting-started",children:e.jsxs(U,{"data-loc":"client/src/pages/Home.tsx:1068",size:"lg",className:"bg-[#002FA7] hover:bg-[#0047FF] text-white px-6 md:px-8 py-3 md:py-4 text-base md:text-lg rounded-full shadow-lg shadow-[#002FA7]/50 transition-all hover:scale-105 w-full min-h-[44px]",children:[e.jsx(Ve,{"data-loc":"client/src/pages/Home.tsx:1072",className:"mr-2 h-5 w-5"}),t("home.continueOnboarding")]})})})]}):null:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1019",className:"bg-[#001a3d]/80 backdrop-blur-md border border-[#002FA7]/30 rounded-2xl p-4 md:p-8 shadow-2xl flex flex-col gap-3 md:gap-4 min-h-[280px] md:min-h-[360px] w-full",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1020",className:"flex justify-center",children:e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:1021",className:"h-8 w-8 md:h-10 md:w-10 text-[#0047FF]"})}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:1023",className:"text-base md:text-lg font-bold text-white leading-tight text-center",children:t("home.becomeAmbassador")}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1024",className:"text-sm md:text-base text-gray-300 leading-relaxed text-center flex-1",children:ce?.totalAmbassadors?e.jsxs(e.Fragment,{children:[t("home.joinOur")," ",e.jsxs($,{"data-loc":"client/src/pages/Home.tsx:1027",href:"/ambassadors",className:"text-[#0047FF] hover:text-[#0066FF] underline transition-colors",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1027",className:"font-bold",children:ce.totalAmbassadors})," ",t("home.ambassadorsLowercase")]}),ce.totalCountries>0&&e.jsxs(e.Fragment,{children:[" ",t("home.locatedIn")," ",e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1029",className:"font-bold",children:ce.totalCountries})," ",t("home.countries")]})," ",t("home.andHelpSpread")]}):t("home.joinCommunity").replace("{count}","...")}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1037",className:"mt-auto",children:e.jsxs(U,{"data-loc":"client/src/pages/Home.tsx:1038",size:"lg",onClick:()=>u(!0),className:"bg-[#002FA7] hover:bg-[#0047FF] text-white px-6 md:px-8 py-3 md:py-4 text-base md:text-lg rounded-full shadow-lg shadow-[#002FA7]/50 transition-all hover:scale-105 w-full min-h-[44px]",children:[e.jsx(Ve,{"data-loc":"client/src/pages/Home.tsx:1043",className:"mr-2 h-5 w-5"}),t("home.howItWorksButton")]})})]}),y&&e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1084",className:"bg-[#001a3d]/80 backdrop-blur-md border border-[#002FA7]/30 rounded-2xl p-4 md:p-8 shadow-2xl grid grid-rows-[auto_auto_1fr_auto] gap-2 md:gap-4 h-[280px] md:h-[360px] w-full",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1085",className:"flex justify-center",children:e.jsx(mt,{"data-loc":"client/src/pages/Home.tsx:1086",className:"h-8 w-8 md:h-10 md:w-10 text-[#0047FF]"})}),e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:1088",className:"text-base md:text-lg font-bold text-white leading-tight text-center",children:t("home.enterProjectionContacts")}
17),e.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:1089",className:"text-sm md:text-base text-gray-300 leading-relaxed text-center",children:[t("home.enterProjectionContactsDescription"),e.jsx("br",{"data-loc":"client/src/pages/Home.tsx:1091"}),_&&(_.inProgress??0)>0?e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1093",className:"text-gray-400 text-sm",children:[t("home.youHave")," ",e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1094",className:"font-bold text-gray-300",children:_.inProgress})," ",t("home.contactsInProgress")]}):e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1097",className:"text-gray-400 text-sm",children:t("home.noContactsYet")})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1100",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:1101",href:"/dashboard",children:e.jsxs(U,{"data-loc":"client/src/pages/Home.tsx:1102",size:"lg",className:"bg-[#002FA7] hover:bg-[#0047FF] text-white px-6 md:px-8 py-3 md:py-4 text-base md:text-lg rounded-full shadow-lg shadow-[#002FA7]/50 transition-all hover:scale-105 w-full min-h-[44px]",children:[e.jsx(mt,{"data-loc":"client/src/pages/Home.tsx:1106",className:"mr-2 h-5 w-5"}),t("home.enterContactButton")]})})})]})]})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:1120",className:"relative bg-gradient-to-b from-[#0a0e27] via-[#0f1430] to-[#14182e] py-8 md:py-12 pb-4 md:pb-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1122",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1123",className:"stars-small"}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1124",className:"stars-medium"}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1125",className:"stars-large"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1128",className:"relative z-10 container mx-auto px-4 pb-0",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1130",className:"bg-white/5 backdrop-blur-md rounded-2xl p-4 md:p-6 border border-white/10 mb-6 md:mb-8",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1131",className:"grid grid-cols-3 gap-3 md:gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1133",className:"flex flex-col items-center",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1134",className:"p-2 bg-[#4A90E2]/20 rounded-xl mb-2",children:e.jsx(Te,{"data-loc":"client/src/pages/Home.tsx:1135",className:"w-5 h-5 md:w-6 md:h-6 text-[#4A90E2]"})}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1137",className:"text-[10px] md:text-xs text-white/60 mb-1 text-center",children:s==="fr"?"Pays atteints":"Countries Reached"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1140",className:"text-2xl md:text-3xl font-bold text-white",children:Z?.countries||"..."})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1146",className:"flex flex-col items-center",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1147",className:"p-2 bg-[#4A90E2]/20 rounded-xl mb-2",children:e.jsx(Ie,{"data-loc":"client/src/pages/Home.tsx:1148",className:"w-5 h-5 md:w-6 md:h-6 text-[#4A90E2]"})}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1150",className:"text-[10px] md:text-xs text-white/60 mb-1 text-center",children:s==="fr"?"Personnes touchées":"People Reached"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1153",className:"text-2xl md:text-3xl font-bold text-white",children:Z?`${Z.people}M`:"..."})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1159",className:"flex flex-col items-center",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1160",className:"p-2 bg-[#4A90E2]/20 rounded-xl mb-2",children:e.jsx(xs,{"data-loc":"client/src/pages/Home.tsx:1161",className:"w-5 h-5 md:w-6 md:h-6 text-[#4A90E2]"})}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1163",className:"text-[10px] md:text-xs text-white/60 mb-1 text-center",children:s==="fr"?"Projections":"Screenings"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1166",className:"text-2xl md:text-3xl font-bold text-white",children:Z?.events||"..."})]})]})}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1174",className:"flex justify-center",children:e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:1175",href:s==="fr"?"https://www.onehome.org/fr/blue-revolution":"https://www.onehome.org/en/blue-revolution",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(U,{"data-loc":"client/src/pages/Home.tsx:1180",size:"lg",className:"bg-[#002FA7] hover:bg-[#0047FF] text-white px-6 md:px-8 py-4 md:py-6 text-base md:text-lg rounded-full shadow-lg shadow-[#002FA7]/50 transition-all hover:scale-105",children:[e.jsx(Ge,{"data-loc":"client/src/pages/Home.tsx:1184",className:"mr-2 h-4 w-4 md:h-5 md:w-5"}),s==="fr"?"Explorer la carte":"Explore Map"]})})})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:1195",className:"relative flex flex-col bg-gradient-to-b from-[#14182e] via-[#1a1f3a] to-[#1a1f3a] pt-8 md:pt-12",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1197",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1198",className:"stars-small"}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1199",className:"stars-medium"}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1200",className:"stars-large"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1203",className:"relative z-10 container mx-auto px-4 py-6 flex flex-col overflow-visible",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1206",className:"mb-8 relative z-[10000]",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1207",className:"bg-[#001a3d]/50 backdrop-blur-sm rounded-lg p-6 border border-white/10 overflow-visible",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1208",className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:1209",className:"text-sm md:text-lg font-semibold text-white",children:t("home.progressToward")}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1210",className:"text-lg md:text-2xl font-bold text-[#0047FF]",children:[V.countriesReached+R,"/100"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1216",ref:Q,className:"relative z-10",onMouseLeave:()=>D(null),children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1221",className:"h-6 md:h-8 bg-gray-700 rounded-full overflow-hidden flex relative",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1223",className:`h-full bg-[#1e40af] transition-all duration-500 cursor-pointer hover:opacity-80 ${J?"progress-bar-animated":""}`,style:{"--target-width":`${V.countriesReached}%`},onMouseEnter:()=>D("participating")}),R>0&&e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1231",className:`h-full bg-[#60a5fa] transition-all duration-500 cursor-pointer hover:opacity-80 ${J?"progress-bar-animated progress-bar-animated-delay-1":""}`,style:{"--target-width":`${R}%`},onMouseEnter:()=>D("potential")}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1239",className:"bg-gray-600",style:{width:`${(100-V.countriesReached-R)/100*100}%`}})]}),I==="participating"&&e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1247",className:"absolute left-0 right-0 top-full pt-2 z-[100]",children:e.jsxs(dt,{"data-loc":"client/src/pages/Home.tsx:1248",className:"p-4 bg-[#0a1628] text-white shadow-2xl border-2 border-[#1e40af] max-h-96 overflow-y-auto",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1249",className:"flex justify-between items-start mb-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1250",className:"font-semibold text-base text-[#1e40af]",children:[t("home.participating")," (",V.countriesReached,")"]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:1253",onClick:()=>{const H=`${t("home.participating")} (${V.countriesReached})
18
19`+Object.entries(se(o.filter(A=>A.participating))).map(([A,P])=>P.length===0?"":`${ne(A)}:
20`+P.map(K=>`• ${ke(K.name,s)}`).join(`
21`)).filter(Boolean).join(`
22
23`);navigator.clipboard.writeText(H),G("global-bar-participating"),re.success(t("tooltip.copied")||"Copié !"),setTimeout(()=>G(null),2e3)},className:"flex-shrink-0 p-1.5 hover:bg-[#1e40af]/10 rounded transition-colors",title:t("tooltip.copy")||"Copier",children:E==="global-bar-participating"?e.jsx(ht,{"data-loc":"client/src/pages/Home.tsx:1269",className:"w-4 h-4 text-[#1e40af]"}):e.jsx(bt,{"data-loc":"client/src/pages/Home.tsx:1271",className:"w-4 h-4 text-muted-foreground hover:text-[#1e40af]"})})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1275",className:"space-y-4",children:Object.entries(se(o.filter(H=>H.participating))).map(([H,A])=>A.length===0?null:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1279",className:"space-y-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1280",className:"font-medium text-sm text-[#1e40af]",children:[ne(H),":"]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1281",className:"text-xs space-y-0.5 pl-3",children:A.map(P=>e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1283",className:"text-foreground",children:["• ",ke(P.name,s)]},P.name))})]},H))})]})}),I==="potential"&&T&&e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1298",className:"absolute left-0 right-0 top-full pt-2 z-[100]",children:e.jsxs(dt,{"data-loc":"client/src/pages/Home.tsx:1299",className:"p-4 bg-[#0a1628] text-white shadow-2xl border-2 border-[#60a5fa] max-h-96 overflow-y-auto",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1300",className:"flex justify-between items-start mb-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1301",className:"font-semibold text-base text-[#60a5fa]",children:["Potential Countries (",R,")"]}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:1304",onClick:()=>{const H=`Potential Countries (${R})
24
25`+Object.entries(se(o.filter(A=>!A.participating&&T[A.id]&&T[A.id].length>0))).map(([A,P])=>P.length===0?"":`${ne(A)}:
26`+P.map(K=>`• ${ke(K.name,s)} (${T[K.id].length})`).join(`
27`)).filter(Boolean).join(`
28
29`);navigator.clipboard.writeText(H),G("global-bar-potential"),re.success(t("tooltip.copied")||"Copié !"),setTimeout(()=>G(null),2e3)},className:"flex-shrink-0 p-1.5 hover:bg-[#60a5fa]/10 rounded transition-colors",title:t("tooltip.copy")||"Copier",children:E==="global-bar-potential"?e.jsx(ht,{"data-loc":"client/src/pages/Home.tsx:1324",className:"w-4 h-4 text-[#60a5fa]"}):e.jsx(bt,{"data-loc":"client/src/pages/Home.tsx:1326",className:"w-4 h-4 text-muted-foreground hover:text-[#60a5fa]"})})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1330",className:"space-y-3",children:Object.entries(se(o.filter(H=>!H.participating&&T[H.id]&&T[H.id].length>0))).map(([H,A])=>A.length===0?null:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1338",className:"space-y-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1339",className:"font-medium text-sm text-[#60a5fa]",children:[ne(H),":"]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1340",className:"text-xs space-y-0.5 pl-3",children:A.map(P=>e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1342",className:"text-foreground",children:["• ",ke(P.name,s)," (",T[P.id].length,")"]},P.name))})]},H))})]})})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1357",className:"flex items-center justify-start gap-3 md:gap-6 mt-4 text-xs md:text-sm",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1358",className:"flex items-center gap-1.5 md:gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1359",className:"w-2.5 h-2.5 md:w-3 md:h-3 bg-[#1e40af] rounded-full"}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1360",className:"text-gray-300 whitespace-nowrap",children:[V.countriesReached," ",t("home.participating")]})]}),R>0&&e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1363",className:"flex items-center gap-1.5 md:gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1364",className:"w-2.5 h-2.5 md:w-3 md:h-3 bg-[#60a5fa] rounded-full"}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1365",className:"text-gray-300 whitespace-nowrap",children:[R," Potential"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1368",className:"flex items-center gap-1.5 md:gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1369",className:"w-2.5 h-2.5 md:w-3 md:h-3 bg-gray-600 rounded-full"}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1370",className:"text-gray-300 whitespace-nowrap",children:[100-V.countriesReached-R," ",t("home.remainingTo100")]})]})]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1377",className:"mb-6 text-left",children:[e.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:1378",className:"text-xl md:text-2xl font-semibold mb-2 text-white",children:t("home.mapTitle")}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1379",className:"text-sm md:text-base text-gray-400 max-w-3xl",children:t("home.mapSubtitle")})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1383",className:"relative mb-4 z-[1]",children:e.jsx(N.Suspense,{"data-loc":"client/src/pages/Home.tsx:1384",fallback:e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1385",className:"h-full flex items-center justify-center",children:e.jsx(qe,{"data-loc":"client/src/pages/Home.tsx:1386",className:"w-12 h-12 animate-spin text-primary"})}),children:e.jsx(ea,{"data-loc":"client/src/pages/Home.tsx:1389",countries:o,contactLeadsByCountry:T||{},selectedStatuses:S})})}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1401",className:"mb-0 pb-0",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1402",className:"bg-[#001a3d]/50 backdrop-blur-sm rounded-lg p-3 md:p-4 border border-white/10 text-center",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:1403",className:"text-sm md:text-lg font-semibold text-white mb-3 md:mb-4",children:t("home.showPotential")}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1406",className:"max-w-md mx-auto px-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1407",className:"relative pt-1 pb-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1409",className:"relative h-2 bg-gray-700 rounded-full",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1411",className:"absolute top-0 left-0 h-full w-1/3 bg-[#2563EB] rounded-l-full"}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1412",className:"absolute top-0 left-1/3 h-full w-1/3 bg-[#3B82F6]"}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1413",className:"absolute top-0 left-2/3 h-full w-1/3 bg-[#60A5FA] rounded-r-full"}),["sure","very_probable","probable","uncertain"].map((H,A)=>{const P=B===H,K=["0%","33.33%","66.66%","100%"];return e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1420",className:`absolute top-1/2 -translate-y-1/2 roun
29ded-full bg-white border-2 border-white shadow-md transition-all duration-200 ${P?"w-4 h-4":"w-3 h-3"}`,style:{left:K[A],marginLeft:P?"-8px":"-6px"}},H)})]}),e.jsx("input",{"data-loc":"client/src/pages/Home.tsx:1432",type:"range",min:"0",max:"3",step:"1",value:["sure","very_probable","probable","uncertain"].indexOf(B),onChange:H=>{L(["sure","very_probable","probable","uncertain"][parseInt(H.target.value)])},className:"absolute -top-2 -left-2 w-[calc(100%+16px)] h-12 opacity-0 cursor-pointer",style:{margin:0}}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1445",className:"flex justify-between mt-2 text-xs md:text-sm",children:[e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1446",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1447",className:"w-3 h-3 rounded",style:{backgroundColor:"#2563EB"}}),t("home.sure")]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1450",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1451",className:"w-3 h-3 rounded",style:{backgroundColor:"#3B82F6"}}),t("home.veryProbable")]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1454",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1455",className:"w-3 h-3 rounded",style:{backgroundColor:"#60A5FA"}}),t("home.probable")]}),e.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:1458",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1459",className:"w-3 h-3 rounded",style:{backgroundColor:"#93C5FD"}}),t("home.uncertain")]})]})]}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1464",className:"text-xs text-gray-400 mt-2 text-center",children:s==="fr"?"Déplacez le curseur pour ajuster le seuil de confiance":"Move the slider to adjust the confidence threshold"})]}),y&&S.length>0&&e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1473",className:"mt-3 md:mt-6",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1474",className:"inline-flex items-center gap-2 md:gap-3 bg-[#002FA7]/20 rounded-lg p-2 md:p-3 border border-[#002FA7]/30",children:[e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1475",className:"text-xs md:text-sm font-medium text-white",children:t("home.allAmbassadors")}),e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:1476",onClick:()=>k(M==="all"?"me":"all"),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-[#0047FF] focus:ring-offset-2 ${M==="me"?"bg-[#0047FF]":"bg-gray-600"}`,children:e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1482",className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${M==="me"?"translate-x-6":"translate-x-1"}`})}),e.jsx("span",{"data-loc":"client/src/pages/Home.tsx:1488",className:"text-xs md:text-sm font-medium text-white",children:t("home.justMe")})]})})]})})]})]}),e.jsx("section",{"data-loc":"client/src/pages/Home.tsx:1498",className:"relative bg-gradient-to-b from-[#1a1f3a] via-[#14182e] to-[#0a0e27] pt-0 pb-4 mt-0",children:e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1499",className:"relative z-10 container mx-auto px-4",children:e.jsx(Gt,{"data-loc":"client/src/pages/Home.tsx:1500",globalStats:V,continentStats:xe,countries:o,contactLeadsByCountry:T&&typeof T=="object"&&!Array.isArray(T)?T:void 0,selectedStatuses:S})})}),e.jsx("footer",{"data-loc":"client/src/pages/Home.tsx:1513",className:"border-t border-white/10 bg-[#0a0e27]/95 backdrop-blur-sm py-6",children:e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1514",className:"container mx-auto px-4",children:e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1515",className:"flex flex-col md:flex-row justify-between items-center gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1516",className:"text-sm text-gray-400 text-center md:text-left",children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:1517",href:"https://www.onehome.org",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#0047FF] transition-colors",children:"OneHome.org"})," "," | ",t("home.footer.tagline")]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1527",className:"flex gap-4 text-sm",children:[e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:1528",href:"https://www.facebook.com/onehomeorg",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-[#0047FF] transition-colors","aria-label":"Facebook",children:"Facebook"}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:1537",href:"https://www.instagram.com/onehome.org",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-[#0047FF] transition-colors","aria-label":"Instagram",children:"Instagram"}),e.jsx("a",{"data-loc":"client/src/pages/Home.tsx:1546",href:"https://www.youtube.com/@OneHomeOrg",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-[#0047FF] transition-colors","aria-label":"YouTube",children:"YouTube"})]})]})})}),e.jsx(Vt,{"data-loc":"client/src/pages/Home.tsx:1561",open:i,onOpenChange:c,defaultTab:n,onSuccess:H=>{oe(),H&&m(!0),d("login")}}),e.jsx(Zs,{"data-loc":"client/src/pages/Home.tsx:1576",open:l,onOpenChange:m,onComplete:()=>{m(!1),oe(),window.location.reload()}}),e.jsx(Pe,{"data-loc":"client/src/pages/Home.tsx:1588",open:b,onOpenChange:u,children:e.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:1589",className:"max-w-2xl max-h-[90vh] overflow-y-auto bg-card/95 backdrop-blur-md border-blue-400/30",children:[e.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:1590",children:e.jsx(De,{"data-loc":"client/src/pages/Home.tsx:1591",className:"text-2xl font-bold text-gradient-blue text-center mb-4",children:t("modal.howItWorks")})}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1597",className:"flex justify-center mb-6",children:e.jsx(U,{"data-loc":"client/src/pages/Home.tsx:1598",onClick:()=>{u(!1),d("register"),c(!0)},className:"bg-blue-500 hover:bg-blue-600 text-white px-8 py-6 text-lg font-semibold",children:t("modal.startLogin")})}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1611",className:"space-y-4 mb-6",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:1612",className:"text-xl font-bold text-gradient-blue",children:t("modal.yourRole")}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1613",className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1614",className:"bg-card/80 rounded-lg border border-blue-400/30 p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1615",className:"flex items-center gap-2 mb-2",children:[e.jsx(Ve,{"data-loc":"client/src/pages/Home.tsx:1616",className:"w-5 h-5 text-blue-500"}),e.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:1617",className:"font-semibold",children:t("modal.mission1Title")})]}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1619",className:"text-sm text-muted-foreground",children:t("modal.mission1Desc")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1621",className:"bg-card/80 rounded-lg border border-blue-400/30 p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1622",className:"flex items-center gap-2 mb-2",children:[e.jsx(pt,{"data-loc":"client/src/pages/Home.tsx:1623",className:"w-5 h-5 text-blue-500"}),e.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:1624",className:"font-semibold",children:t("modal.mission2Title")})]}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1626",className:"text-sm text-muted-foreground",children:t("modal.mission2Desc")})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1632",className:"space-y-4 mb-6",children:[e.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:1633",className:"text-xl font-bold text-gradient-blue",children:t("modal.onboardingSteps")}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1634",className:"space-y-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1635",className:"flex items-start gap-3",children:[e.jsx(gt,{"data-loc":"client/src/pages/Home.tsx:1636",className:"w-5 h-5 text-blue-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1637",className:"text-sm",children:t("modal.step1")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1639",className:"flex items-start gap-3",children:[e.jsx(ve,{"data-loc":"client/src/pages/Home.tsx:1640",className:"w-5 h-5 text-blue-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1641",className:"text-sm",children:t("modal.step2")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1643",className:"flex items-start gap-3",children:[e.jsx(us,{"data-loc":"client/src/pages/Home.tsx:1644",className:"w-5 h-5 text-blue-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1645",className:"text-sm",children:t("modal.step3")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1647",className:"flex items-start gap-3",children:[e.jsx(ve,{"data-loc":"client/src/pages/Home.tsx:1648",className:"w-5 h-5 text-blue-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1649",className:"text-sm",children:t("modal.step3b")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1651",className:"flex items-start gap-3",children:[e.jsx(Ge,{"data-loc":"client/src/pages/Home.tsx:1652",className:"w-5 h-5 text-blue-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1653",className:"text-sm",children:t("modal.step4")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1655",className:"flex items-start gap-3",children:[e.jsx(ps,{"data-loc":"client/src/pages/Home.tsx:1656",className:"w-5 h-5 text-blue-500 flex-shrink-0 mt-0.5"}),e.jsx("p",{"data-loc":"client/src/pages/Home.tsx:1657",className:"text-sm",children:t("modal.step5")})]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1663",className:"text-center pt-4 border-t border-border",children:e.jsx($,{"data-loc":"client/src/pages/Home.tsx:1664",href:"/getting-started",children:e.jsx("button",{"data-loc":"client/src/pages/Home.tsx:1665",onClick:()=>u(!1),className:"text-blue-400 hover:text-blue-300 text-sm underline",children:t("modal.alreadyRegistered")})})})]})}),e.jsx(Xs,{"data-loc":"client/src/pages/Home.tsx:1677",open:g,onOpenChange:j}),e.jsx("style",{"data-loc":"client/src/pages/Home.tsx:1682",children:`
30        @keyframes progressFillDark {
31          from {
32            width: 0%;
33          }
34          to {
35            width: ${V.countriesReached/100*100}%;
36          }
37        }
38
39        @keyframes progressFillLight {
40          from {
41            width: 0%;
42          }
43          to {
44            width: ${R/100*100}%;
45          }
46        }
47      `}),e.jsx(es,{"data-loc":"client/src/pages/Home.tsx:1703",isOpen:h,onClose:()=>r(!1),feature:f})]})}
47export{en 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.