1import{j as e,g as F,H as N,s as T}from"./index-BtgGoHYl.js";import{r as g}from"./router-BXL9ASSk.js";import{f as D}from"./api-mWHPtFS7.js";import{g as Y,a as H}from"./storage-FL96OxJv.js";import{u as U}from"./useSEO-wKy2eBAZ.js";import{P as $}from"./PromotionImpressionSlot-BrH6lpfT.js";import"./vendor-BNcAc9ko.js";import"./httpClient-B4llTHmd.js";import"./index-BqDtoUCL.js";import"./usePromotionTracking-C2NYZvgt.js";import"./sessionManager-DX5mT9Th.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new o.Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="f0510f4e-990d-4d1a-a9e9-4baf995394b2",o._sentryDebugIdIdentifier="sentry-dbid-f0510f4e-990d-4d1a-a9e9-4baf995394b2")})()}catch{}const L=o=>{try{sessionStorage.setItem("cached_petitions",JSON.stringify({data:o.slice(0,100),timestamp:Date.now()}))}catch(a){console.warn("Failed to cache petitions:",a)}},G=()=>{try{const o=sessionStorage.getItem("cached_petitions");
1if(!o)return null;const{data:a,timestamp:n}=JSON.parse(o),m=300*1e3;return Date.now()-n>m?(sessionStorage.removeItem("cached_petitions"),null):a}catch{return null}},J=()=>e.jsxs("div",{style:{width:"100%",maxWidth:"400px",margin:"0 auto",background:"white",borderRadius:"0.75rem",overflow:"hidden",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",border:"1px solid #e5e7eb",animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},children:[e.jsx("div",{style:{width:"100%",height:"200px",background:"#e5e7eb",borderRadius:"0.75rem 0.75rem 0 0"}}),e.jsxs("div",{style:{padding:"1.5rem"},children:[e.jsx("div",{style:{height:"1rem",background:"#e5e7eb",borderRadius:"4px",width:"75%",marginBottom:"1rem"}}),e.jsx("div",{style:{height:"0.75rem",background:"#e5e7eb",borderRadius:"4px",width:"100%",marginBottom:"0.5rem"}}),e.jsx("div",{style:{height:"0.75rem",background:"#e5e7eb",borderRadius:"4px",width:"83%",marginBottom:"1rem"}}),e.jsx("div",{style:{height:"2rem",background:"#e5e7eb",borderRadius:"4px",width:"100%"}})]})]}),X=({count:o=8})=>e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"1.5rem",justifyContent:"center",justifyItems:"center"},children:Array.from({length:o},(a,n)=>e.jsx(J,{},n))}),K=({message:o,onRetry:a,language:n})=>e.jsxs("div",{style:{background:"#fee2e2",border:"1px solid #fecaca",borderRadius:"8px",padding:"1rem",marginBottom:"1rem",textAlign:"center"},children:[e.jsx("p",{style:{color:"#dc2626",marginBottom:"0.5rem"},children:"× ××©× ×××¢×× ×ª ×עצ×××ת"}),e.jsx("button",{onClick:a,style:{background:"#dc2626",color:"white",border:"none",padding:"0.5rem 1rem",borderRadius:"4px",cursor:"pointer"},children:n==="en"?"Try Again":"× ×¡× ×©××"})]}),q=({language:o})=>e.jsx("div",{style:{background:"#fef3c7",border:"1px solid #fde047",borderRadius:"8px",padding:"0.75rem",marginBottom:"1rem",textAlign:"center"},children:e.jsx("p",{style:{color:"#92400e",fontSize:"0.875rem"},children:"×××¦× ×ª××× ×××××ר×× - ×¢××× ××××ת ×× ××¢××××"})}),Q=({loading:o,hasMore:a,onClick:n,language:m})=>a?e.jsx("div",{style:{textAlign:"center",marginTop:"3rem"},children:e.jsx("button",{onClick:n,disabled:o,style:{background:o?"#9ca3af":"#10b981",color:"white",border:"none",padding:"0.875rem 2rem",fontSize:"1rem",fontWeight:"600",borderRadius:"8px",cursor:o?"not-allowed":"pointer",transition:"all 0.2s ease",minWidth:"200px"},children:o?"×××¢×...":"××¢× ×¢×× ×¢×¦×××ת"})}):null,V=({language:o})=>{const[a,n]=g.useState([]),[m,k]=g.useState(0),[I,h]=g.useState(!0),[f,v]=g.useState(3),b=o==="he",S={title:"×× ×× ×©×× ×××ר××",subtitle:"ס×פ×ר×× ×××ת××× ×©× ×× ×©×× ×©×¢×©× ×©×× ××",loading:"×××¢× ×××צ×ת...",viewPetition:"×¦×¤× ×עצ×××"};g.useEffect(()=>{const r=()=>{window.innerWidth<=768?v(1):v(3)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),g.useEffect(()=>{_()},[]);const _=async()=>{try{h(!0);const r=await fetch(F("testimonials?limit=15"));if(!r.ok)throw new Error("Failed to fetch testimonials");const l=await r.json();l.success&&l.data?n(l.data.slice(0,15)):n([])}catch(r){console.error("Error fetching testimonials:",r),n([])}finally{h(!1)}},y=Math.ceil(a.length/f),C=()=>{const r=m*f;return a.slice(r,r+f)},z=()=>{a.length!==0&&k(r=>(r+1)%y)},R=()=>{a.length!==0&&k(r=>(r-1+y)%y)},M=r=>{k(r)};return I?e.jsx("section",{style:{padding:"2rem 0",background:"#f8fafc"},children:e.jsx("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 1rem",textAlign:"center"},children:e.jsx("div",{style:{fontSize:"1.125rem",color:"#64748b"},children:S.loading})})}):a.length===0?null:e.jsxs("section",{style:{padding:"2rem 0 3rem 0",background:"transparent",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{maxWidth:"700px",margin:"0 auto 2rem auto",borderTop:"2px solid #d1d5db",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.08)"}}),e.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 1rem",position:"relative"},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:"2rem"},children:[e.jsx("h2",{style:{fontSize:"2rem",fontWeight:"700",color:"#1e293b",marginBottom:"0.5rem",textAlign:"center"},children:S.title}),e.jsx("p",{style:{fontSize:"1.125rem",color:"#64748b",maxWidth:"500px",margin:"0 auto"},children:S.subtitle})]}),e.jsx("div",{style:{position:"relative"},children:e.jsx("div",{style:{display:"grid",gridTemplateColumns:f===1?"1fr":"repeat(3, 1fr)",gap:"2rem",transition:"all 0.5s ease"},children:C().map(r=>e.jsxs("div",{style:{background:"transparent",borderRadius:"0",padding:"1.5rem 2rem",boxShadow:"none",border:"none",transition:"all 0.3s ease",position:"relative",overflow:"hidden",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[e.jsx("div",{style:{fontSize:"1.75rem",marginBottom:"1.5rem",filter:"drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4))"},children:r.stars}),e.jsx("blockquote",{style:{fontSize:"1rem",lineHeight:"1.6",color:"#374151",margin:"0 auto 1.5rem",fontStyle:"italic",fontWeight:"400",flex:1},children:r.content}),r.author_name&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:r.petition?"1rem":"0"},children:[r.image_url&&e.jsx("img",{src:r.image_url,alt:r.author_name,style:{width:"40px",height:"40px",borderRadius:"50%",objectFit:"cover",border:"2px s
1olid #e5e7eb"}}),e.jsxs("div",{style:{textAlign:b?"right":"left"},children:[e.jsx("div",{style:{fontWeight:"600",color:"#111827",fontSize:"0.875rem"},children:r.author_name}),r.author_title&&e.jsx("div",{style:{color:"#6b7280",fontSize:"0.75rem"},children:r.author_title})]})]}),r.petition&&e.jsxs("a",{href:`/petition/${r.petition.id}`,style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",color:"#10b981",textDecoration:"none",fontSize:"0.75rem",fontWeight:"500",padding:"0.375rem 0.75rem",borderRadius:"6px",border:"1px solid #10b981",transition:"all 0.2s ease"},onMouseOver:l=>{l.currentTarget.style.background="#10b981",l.currentTarget.style.color="white"},onMouseOut:l=>{l.currentTarget.style.background="transparent",l.currentTarget.style.color="#10b981"},children:[S.viewPetition,e.jsx("svg",{style:{width:"12px",height:"12px"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]},r.id))})}),y>1&&e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"0.75rem",marginTop:"1.5rem",flexWrap:"nowrap"},children:[e.jsx("button",{onClick:b?z:R,style:{background:"white",border:"1px solid #e5e7eb",borderRadius:"50%",width:"2rem",height:"2rem",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"0.875rem",color:"#374151",flexShrink:0,boxShadow:"0 1px 4px rgba(0,0,0,0.1)",transition:"background 0.2s ease"},onMouseOver:r=>{r.currentTarget.style.background="#f3f4f6"},onMouseOut:r=>{r.currentTarget.style.background="white"},children:"â"}),[...Array(y)].map((r,l)=>e.jsx("span",{onClick:()=>M(l),style:{display:"inline-block",width:"10px",height:"10px",minWidth:"10px",minHeight:"10px",maxWidth:"10px",maxHeight:"10px",borderRadius:"50%",background:l===m?"#10b981":"#d1d5db",cursor:"pointer",transition:"all 0.2s ease",transform:l===m?"scale(1.2)":"scale(1)",flexShrink:0,flexGrow:0,alignSelf:"center"}},l)),e.jsx("button",{onClick:b?R:z,style:{background:"white",border:"1px solid #e5e7eb",borderRadius:"50%",width:"2rem",height:"2rem",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",fontSize:"0.875rem",color:"#374151",flexShrink:0,boxShadow:"0 1px 4px rgba(0,0,0,0.1)",transition:"background 0.2s ease"},onMouseOver:r=>{r.currentTarget.style.background="#f3f4f6"},onMouseOut:r=>{r.currentTarget.style.background="white"},children:"â"})]})]}),e.jsx("style",{children:` 2 @media (max-width: 768px) { 3 div[style*="grid-template-columns"] { 4 grid-template-columns: 1fr !important; 5 gap: 1rem !important; 6 } 7 } 8 `})]})},me=({language:o,onNavigate:a})=>{const[n,m]=g.useState({petitions:[],loading:!0,error:null,page:1,hasMore:!0,stale:!1,selectedCategory:null,filteredPetitions:[],showingFilteredResults:!1}),[k,I]=g.useState(!1),[h,f]=g.useState({loaded:!1,loading:!1}),v=g.useRef(null),b=20,S=400,_=async(t=1,i=!1)=>{v.current&&v.current.abort(),v.current=new AbortController,i||m(d=>({...d,loading:!0,error:null}));try{const d=Y(),s=await D();if(s&&s.length>0){console.log("â Using API data:",s.length,"petitions");const c=H(),w=[...s,...d].map(j=>{const B=c[j.petition_id]||0,P=j.current_signatures_count||0,O=j.boost_signatures||0;return{...j,current_signatures_count:P+B,boost_signatures:O,total_display_signatures:P+O+B}}).slice(0,50),W=i?(t-1)*b:0,A=i?t*b:b,E=w.slice(W,A);m(j=>{const P=(i?[...j.petitions,...E]:E).slice(-S);return L(P),{...j,petitions:P,loading:!1,page:t,hasMore:w.length>t*b,stale:!1,error:null}}),I(!0)}else throw new Error("No data received")}catch(d){console.error("â Load error:",d);const s=G();s&&s.length>0?(console.log("ð¦ Using cached data:",s.length,"petitions"),m(c=>({...c,petitions:s,loading:!1,stale:!0,error:"Using cached data"}))):(m(c=>({...c,loading:!1,error:"Failed to load petitions"})),I(!1))}};g.useEffect(()=>{(async()=>{await _(1,!1)})()},[]),g.useEffect(()=>{const t=()=>{sessionStorage.setItem("homepage_scroll",JSON.stringify({scrollY:window.scrollY,timestamp:Date.now()}))},i=()=>{let d=!1;try{if(window.performance&&typeof window.performance.getEntriesByType=="function"){const s=window.performance.getEntriesByType("navigation");s&&s.length>0&&(d=s[0]?.type==="reload")}}catch{console.log("Performance Navigation API not supported, skipping reload check")}if(d){const s=sessionStorage.getItem("homepage_scroll");
8if(s)try{const{scrollY:c,timestamp:p}=JSON.parse(s);Date.now()-p<3e5&&setTimeout(()=>window.scrollTo(0,c),100)}catch(c){console.warn("Failed to restore scroll:",c)}}};return window.addEventListener("beforeunload",t),i(),()=>window.removeEventListener("beforeunload",t)},[]);const y=t=>{const i=document.createElement("div");return i.innerHTML=t,i.textContent||i.innerText||""},C=(t,i=5)=>{console.log("ð getPreviewText input:",{story:t,type:typeof t,length:t?.length});let d=t;(!d||d==="undefined"||d==="null")&&(console.log("â ï¸ No story from API, using fallback content"),d=o==="he"?"×××× ×¢×¦××× ×ש××× ×©×××¨×ª× ××¢×רר ש×× ×× ××××× ×××ר×. ×עצ××× × ××¦×¨× ××× ××××× ×ª×©××ת ×× ×× ××©× ××עס××§ ×××ª× × ×××××ס ת×××× ×¦×××ר×ת. ×× ×ת××× ×ש××× ××קר×ת ×××ª× × ×××ר×.":"This is an important petition aimed at creating positive change in our society. The petition was created to bring attention to an issue that concerns us and to rally public support. Every signature matters and brings us closer to our goal.");const s=String(d);if(s.trim()==="")return console.log("â Empty story after trim"),o==="he"?"××× ×ª××× ××××":"No content available";const p=y(s).trim();if(!p)return console.log("â No valid content after processing"),o==="he"?"××× ×ª××× ××××":"No content available";const x=p.split(/\s+/).filter(A=>A.length>0),W=i*8;return x.length<=W?p:x.slice(0,W).join(" ")+"..."},z=t=>t.toLocaleString(o==="he"?"he-IL":"en-US"),R=()=>{n.loading||!n.hasMore||_(n.page+1,!0)},M=async()=>{if(!(h.loaded||h.loading)){f({loaded:!1,loading:!0});try{const t=await D("organic");if(t&&t.length>0){const i=H(),d=t.map(s=>{const c=i[s.petition_id]||0,p=s.current_signatures_count||0,x=s.boost_signatures||0;return{...s,current_signatures_count:p+c,boost_signatures:x,total_display_signatures:p+x+c}});m(s=>{const c=new Set(s.petitions.map(w=>w.petition_id)),p=d.filter(w=>!c.has(w.petition_id)),x=[...s.petitions,...p];return L(x),{...s,petitions:x}})}f({loaded:!0,loading:!1})}catch(t){console.error("â Organic load error:",t),f({loaded:!1,loading:!1})}}},r=o==="he",l={signedBy:"× ×ת×× ×¢× ×××",people:"×× ×©××",viewMore:"ר×× ×¢××",ctaHeadline:"ש×× ×× ×ת××× ××§×× ×××.",ctaSubheader:"×× ×¤×©××, ×××ר, ××××× ×××××¢ ××××¤× ×× ×©××.",startPetition:"פת××ת עצ×××"},u=U({title:"עצ××× - ×תר ×עצ×××ת ×× ×¤××¥ ×××תק×× ××שר××",description:"××××××× ×©×× ×× - ×ת××××× ×עצ×××. ×¦×¨× ×¢×¦×××ת ×××× × ×¢×ש××. 31 ×××××× ×ת×××ת ××ר ×שפ××¢×ת.",url:"/",type:"website"});return e.jsxs(e.Fragment,{children:[e.jsxs(N,{children:[e.jsx("title",{children:u.title}),e.jsx("meta",{name:"description",content:u.description}),e.jsx("meta",{property:"og:title",content:u.title}),e.jsx("meta",{property:"og:description",content:u.description}),e.jsx("meta",{property:"og:type",content:u.type}),e.jsx("meta",{property:"og:url",content:u.url}),e.jsx("meta",{property:"og:site_name",content:T.siteName}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:u.title}),e.jsx("meta",{name:"twitter:description",content:u.description}),e.jsx("meta",{name:"robots",content:"index, follow"}),e.jsx("meta",{name:"keywords",content:"עצ×××, עצ×××ת, ×ת×××, ×ת×××ת, פ××צ××, ש×× ×× ××רת×"}),e.jsx("link",{rel:"canonical",href:u.url}),e.jsx("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),e.jsx("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),e.jsx("link",{rel:"manifest",href:"/site.webmanifest"}),e.jsx("meta",{name:"theme-color",content:"#005eb6"})]}),e.jsxs("main",{style:{minHeight:"calc(100vh - 70px)"},children:[e.jsx("style",{children:` 9 .petition-card-home { 10 transition: all 0.3s ease; 11 cursor: pointer; 12 width: 100%; 13 max-width: 400px; 14 margin: 0 auto; 15 } 16 .petition-card-home:hover { 17 transform: translateY(-4px); 18 box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important; 19 } 20 21 /* ð± Mobile-first responsive design */ 22 @media (max-width: 768px) { 23 .petition-card-home { 24 max-width: 100%; 25 } 26 .petitions-grid { 27 grid-template-columns: 1fr !important; 28 gap: 1rem !important; 29 } 30 31 /* Hero section mobile optimizations */ 32 .hero-section { 33 padding: 3rem 0 2rem 0 !important; /* Reduced from 6rem to 3rem top, 2rem bottom */ 34 } 35 36 .hero-title { 37 fontSize: 2.5rem !important; /* Slightly smaller on mobile */ 38 margin-bottom: 1rem !important; 39 } 40 41 .hero-description { 42 margin-bottom: 2rem !important; /* Reduced from 3rem to 2rem */ 43 } 44 45 .hero-button-container { 46 margin-bottom: 1rem !important; /* Add space before tagline */ 47 } 48 49 .hero-button { 50 width: 90% !important; /* Mobile full-width button */ 51 max-width: 268px !important; /* 20% smaller: 336*0.8=268 */ 52 padding: 1.15rem 1.44rem !important; /* 20% smaller: 1.44*0.8=1.15, 1.8*0.8=1.44 */ 53 fontSize: 1.44rem !important; /* 20% larger: 1.2*1.2=1.44 */ 54 } 55 56 /* Topics section mobile spacing */ 57 .topics-section { 58 padding: 1.05rem 0 !important; /* 30% less: 1.5*0.7=1.05 */ 59 } 60 61 /* Petitions section mobile spacing */ 62 .petitions-section { 63 padding: 1rem 0 !important; /* 50% less: 2*0.5=1 */ 64 } 65 } 66 67 @media (max-width: 480px) { 68 .petition-card-home { 69 margin: 0; 70 } 71 72 .hero-title { 73 fontSize: 2rem !important; 74 } 75 } 76 `}),e.jsxs("section",{className:"hero-section relative",style:{background:"linear-gradient(180deg, white 0%, rgb(235,244,252) 50%, white 100%)",padding:"5rem 0 7rem 0",textAlign:"center",position:"relative"},children:[e.jsxs("div",{style:{maxWidth:"1152px",margin:"0 auto",padding:"0 1.5rem"},children:[e.jsx("h1",{className:"hero-title",style:{fontSize:"clamp(32px, 6vw, 64px)",fontWeight:"700",lineHeight:"1.15",color:"#1e293b",marginBottom:"1rem",maxWidth:"896px",margin:"0 auto 1rem",whiteSpace:"pre-line"},children:T.heroTitle}),e.jsx("p",{className:"hero-description",style:{fontSize:"clamp(24px, 3.5vw, 30px)",fontWeight:"bold",lineHeight:"1.3",color:"#374151",maxWidth:"700px",margin:"0 auto 2rem"},children:T.heroSubtitle}),e.jsx("div",{style:{marginTop:"2rem",display:"flex",justifyContent:"center"},children:e.jsx("button",{className:"hero-button",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"1rem",background:"#005eb6",padding:"1rem 2rem",fontSize:"clamp(16px, 2.5vw, 18px)",fontWeight:"700",color:"white",border:"none",cursor:"pointer",boxShadow:"0 8px 24px rgba(0,94,182,0.35)",transition:"all 0.2s ease",outline:"none"},onClick:()=>{a("create"),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100)},onMouseOver:t=>{t.currentTarget.style.background="rgb(0,78,150)",t.currentTarget.style.boxShadow="0 12px 28px rgba(0,94,182,0.45)"},onMouseOut:t=>{t.currentTarget.style.background="#005eb6",t.currentTarget.style.boxShadow="0 8px 24px rgba(0,94,182,0.35)"},onMouseDown:t=>{t.currentTarget.style.transform="translateY(1px)"},onMouseUp:t=>{t.currentTarget.style.transform="translateY(0)"},onFocus:t=>{t.currentTarget.style.outline="4px solid rgba(0,94,182,0.3)",t.currentTarget.style.outlineOffset="2px"},onBlur:t=>{t.currentTarget.style.outline="none"},children:T.ctaButtonText})}),e.jsxs("p",{style:{fontSize:"0.95rem",color:"#6b7280",fontWeight:"400",textAlign:"center",opacity:1,marginTop:"1.5rem",direction:r?"rtl":"ltr",fontFamily:r?'system-ui, -apple-system, "Segoe UI", Arial, sans-serif':"inherit"},children:["×ש×ר×ת ×××× × ",e.jsx("span",{style:{color:"#005eb6",fontSize:"1.2em",margin:"0 0.5rem"},children:"â¢"})," ×××©×¤×¢× ×××ת×ת"]})]}),e.jsx("div",{style:{position:"absolute",bottom:"0",left:"0",right:"0",height:"4px",background:"linear-gradient(90deg, transparent 0%, #005eb6 50%, transparent 100%)",pointerEvents:"none",display:"block"}})]}),e.jsx("section",{className:"petitions-section",style:{padding:"2rem 0"},"data-section":"petitions",children:e.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"0 1rem"},children:[e.jsx("h2",{style:{fontSize:"2.5rem",fontWeight:"700",color:"#1e293b",textAlign:"center",marginBottom:"1rem"},children:n.showingFilteredResults?"ת×צ××ת ×ס×× × ×ת":T.hotPetitionsTitle}),e.jsxs("div",{style:{textAlign:"center",marginBottom:"2rem"},children:[" ",e.jsx("p",{style:{fontSize:"1.25rem",color:"#64748b",marginBottom:n.showingFilteredResults?"1rem":"0"},children:n.showingFilteredResults?`${n.filteredPetitions.length} עצ×××ת × ×צ××`:"×צ××¨×¤× ×××פ×× ×©××ר ת××××× ×××××§×× ×××"})]}),n.loading&&n.petitions.length===0?e.jsx(X,{count:8}):n.error&&n.petitions.length===0?e.jsx(K,{message:n.error,onRetry:()=>_(1,!1),language:o}):e.jsxs(e.Fragment,{children:[n.stale&&e.jsx(q,{language:o}),e.jsx("div",{className:"petitions-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"1.5rem",justifyContent:"center",justifyItems:"center",maxWidth:"100%",width:"100%"},children:(n.showingFilteredResults?n.filteredPetitions:n.petitions).length===0?e.jsx("div",{style:{gridColumn:"1 / -1",textAlign:"center",padding:"3rem 2rem",color:"#9ca3af"},children:k===!1?e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"2rem",marginBottom:"1rem"},children:"ð¡"}),e.jsx("p",{style:{fontSize:"1.1rem"},children:"×××¢× ×¢×¦×××ת ××שרת..."})]}):n.showingFilteredResults?e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"3rem",marginBottom:"1rem"},children:"ð"}),e.jsx("h3",{style:{fontSize:"1.5rem",marginBottom:"1rem",color:"#1f2937"},children:"×× × ×צ×× ×¢×¦×××ת"}),e.jsx("p",{style:{marginBottom:"2rem"},children:"×× × ×צ×× ×¢×¦×××ת ××§×××ר×× ××."})]}):null}):(n.showingFilteredResults?n.filteredPetitions:n.petitions).map(t=>e.jsx($,{petitionId:t.petition_id,channel:"homepage",children:e.jsxs("a",{href:`/sign/${t.slug}`,className:"petition-card-home",style:{display:"block",background:"white",borderRadius:"0.75rem",overflow:"hidden",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",border:"1px solid #e5e7eb",cursor:"pointer",transition:"all 0.2s ease",width:"100%",maxWidth:"400px",margin:"0 auto",textDecoration:"none",color:"inherit"},onClick:i=>{i.ctrlKey||i.metaKey||i.button===1||(i.preventDefault(),window.location.href=`/sign/${t.slug}`)},onMouseOver:i=>{i.currentTarget.style.transform="translateY(-2px)",i.currentTarget.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)"},onMouseOut:i=>{i.currentTarget.style.transform="translateY(0)",i.currentTarget.style.boxShadow="0 4px 6px -1px rgba(0, 0, 0, 0.1)"},children:[(t.main_image_url||t.s3_image_url)&&!String(t.effective_image_url||"").includes("default-petition")?e.jsx("div",{style:{width:"100%",height:"200px",background:`url("${t.effective_image_url||t.s3_image_url||t.main_image_url}")`,backgroundSize:"cover",backgroundPosition:"center",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}}):e.jsx("div",{style:{width:"100%",height:"200px",background:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("img",{src:"/images/logo.png",alt:"עצ×××",style:{width:"90%",maxWidth:"180px",objectFit:"contain"}})}),e.jsxs("div",{style:{padding:"1.5rem"},children:[e.jsx("h3",{style:{fontSize:"1.25rem",fontWeight:"700",color:"#111827",marginBottom:"1rem",textAlign:r?"right":"left",lineHeight:"1.4",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t.title}),e.jsxs("div",{style:{fontSize:"0.875rem",color:"#374151",lineHeight:"1.6",marginBottom:"0.5rem",textAlign:r?"right":"left"},children:[e.jsx("div",{style:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",marginBottom:"0.5rem"},children:C(t.story,3)}),e.jsxs("a",{href:`/sign/${t.slug}`,style:{color:"#005eb6",fontSize:"0.8rem",fontWeight:"500",textDecoration:"none",cursor:"pointer",transition:"color 0.2s ease"},onMouseOver:i=>i.currentTarget.style.color="#005eb6",onMouseOut:i=>i.currentTarget.style.color="#005eb6",onClick:i=>{i.stopPropagation()},children:[l.viewMore,"..."]})]}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"0.5rem",borderTop:"1px solid #e5e7eb",marginBottom:"0.25rem"},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",color:"#6b7280",flexDirection:r?"row-reverse":"row"},children:[e.jsx("img",{src:"/images/signpetition_black.png",alt:"Sign",style:{width:"16px",height:"16px",display:"inline-block",verticalAlign:"middle"}}),e.jsxs("span",{children:[l.signedBy," ",e.jsx("strong",{style:{color:"#005eb6"},children:z((t.current_signatures_count||0)+(t.boost_signatures||0))})," ",l.people]})]})}),e.jsx("button",{style:{width:"100%",background:"white",color:"#005eb6",border:"2px s
76olid #005eb6",padding:"0.75rem 1rem",fontSize:"0.875rem",fontWeight:"600",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",marginTop:"auto",flexShrink:0},onMouseOver:i=>{i.currentTarget.style.background="#005eb6",i.currentTarget.style.color="white"},onMouseOut:i=>{i.currentTarget.style.background="white",i.currentTarget.style.color="#005eb6"},children:T.signButtonText})]})]})},t.petition_id))})]}),!n.showingFilteredResults&&e.jsx(Q,{loading:n.loading,hasMore:n.hasMore,onClick:R,language:o}),!n.showingFilteredResults&&!h.loaded&&n.petitions.length>0&&e.jsx("div",{style:{textAlign:"center",marginTop:"1.5rem"},children:e.jsx("button",{onClick:M,disabled:h.loading,style:{padding:"0.875rem 2.5rem",fontSize:"1.05rem",fontWeight:600,color:"#ffffff",background:h.loading?"#94a3b8":"#005eb6",border:"none",borderRadius:"0.75rem",cursor:h.loading?"default":"pointer",transition:"background 0.2s"},children:h.loading?"×××¢×â¦":"××¢× ×¢×× ×¢×¦×××ת"})}),e.jsx(V,{language:o}),n.petitions.length>0&&e.jsxs("div",{style:{textAlign:"center",marginTop:"4rem",padding:"3rem 2rem",background:"linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%)",borderRadius:"1rem",border:"1px solid #e2e8f0"},children:[e.jsx("h2",{style:{fontSize:"2.25rem",fontWeight:"700",color:"#1e293b",marginBottom:"1rem",lineHeight:1.2,direction:r?"rtl":"ltr"},children:l.ctaHeadline}),e.jsx("p",{style:{fontSize:"1.125rem",color:"#64748b",marginBottom:"2.5rem",maxWidth:"600px",margin:"0 auto 2.5rem",lineHeight:1.6,direction:r?"rtl":"ltr"},children:l.ctaSubheader}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx("button",{onClick:()=>{a("create"),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100)},style:{background:"linear-gradient(135deg, #005eb6 0%, #005eb6 100%)",color:"white",border:"none",padding:"1.2rem 3rem",fontSize:"1.25rem",fontWeight:"700",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",minWidth:"250px",boxShadow:"0 4px 14px rgba(0,94,182, 0.25)"},onMouseOver:t=>{t.currentTarget.style.transform="translateY(-2px)",t.currentTarget.style.boxShadow="0 8px 25px rgba(0,94,182, 0.35)"},onMouseOut:t=>{t.currentTarget.style.transform="translateY(0)",t.currentTarget.style.boxShadow="0 4px 14px rgba(0,94,182, 0.25)"},children:l.startPetition})})]})]})})]})]})};export{me as default}; 77//# sourceMappingURL=HomePage-DwsIEbeO.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.