PageSourceSearch

https://atzuma.co.il/assets/PetitionPage-C-FyYEk3.js

js atzuma.co.il collected 2026-10-02 07:46:42 UTC 126,483 bytes, 198 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PhoneField-b7s7ciLY.js","assets/index-C_Fqshtm.js","assets/vendor-BNcAc9ko.js","assets/router-BXL9ASSk.js","assets/index-Zkx-icJE.css"])))=>i.map(i=>d[i]);
2import{j as t,_ as lo,s as dt,g as ge,Q as Et,u as co,a as mo,F as uo,H as fo}from"./index-C_Fqshtm.js";import{r as h,e as go,u as po,a as ho}from"./router-BXL9ASSk.js";import{g as bo,s as xo}from"./api-Drf1Dne2.js";import{f as Dt,g as yo,a as wo}from"./storage-FL96OxJv.js";import{F as _o,a as vo,b as So,c as ko}from"./index-B_lJ3JWi.js";import{M as jo,u as Co}from"./useAttributionTracking-qNPF2wXf.js";import{X as Ae,u as zo,s as To,d as Io}from"./useGA4Tracking-1W8IkJWK.js";import{u as Ro}from"./useSEO-wKy2eBAZ.js";import{R as mr}from"./RelatedPetitions-CkfjWPTZ.js";import{u as Po}from"./usePromotionTracking-DXgI13EY.js";import{g as Ao}from"./vendor-BNcAc9ko.js";/* empty css                         */import"./httpClient-D4HtC_NG.js";import"./index-BqDtoUCL.js";import"./iconBase-D9JQPfpv.js";import"./sessionManager-DX5mT9Th.js";import"./PromotionImpressionSlot-Clw6-WHN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="f19ebacc-59b1-4723-9289-e9c5088bd4f5",e._sentryDebugIdIdentifier="sentry-dbid-f19ebacc-59b1-4723-9289-e9c5088bd4f5")})()}catch{}const $o=h.lazy(()=>lo(()=>import("./PhoneField-b7s7ciLY.js"),__vite__mapDeps([0,1,2,3,4])));function ur({showPhoneField:e,...i}){return e?t.jsx(h.Suspense,{fallback:null,children:t.jsx($o,{...i})}):null}const zt=[{id:1,full_name:"Test User",name:"Test User",email:"[email protected]",role:"user",status:"active"},{id:2,full_name:"Teachers United",name:"Teachers United",email:"[email protected]",role:"user",status:"active"},{id:3,full_name:"Animal Welfare Society",name:"Animal Welfare Society",email:"[email protected]",role:"user",status:"active"}],Tt=[{category_id:1,id:1,name:"Environment",name_he:"סביבה",slug:"environment",name_i18n:{en:"Environment",he:"סביבה"}},{category_id:2,id:2,name:"Education",name_he:"חינוך",slug:"education",name_i18n:{en:"Education",he:"חינוך"}},{category_id:3,id:3,name:"Animal Rights",name_he:"זכויות בעלי חיים",slug:"animal-rights",name_i18n:{en:"Animal Rights",he:"זכויות בעלי חיים"}}],Eo=[{petition_id:1,title:"Save Our Local Park",title_i18n:{en:"Save Our Local Park",he:"הציל את הפארק המקומי שלנו"},creator_user_id:1,category_id:1,current_signatures_count:1,target_signatures:1e3,views_count:1200,main_image_url:"https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=400&h=250&fit=crop",main_video_url:null,story:"Our beautiful local park is under threat of development. We need to act now to preserve this green space for future generations.",story_i18n:{en:"Our beautiful local park is under threat of development.",he:"הפארק המקומי היפה שלנו נמצא בסכנת פיתוח."},decision_makers:[{name:"City Council",title:"Council",organization:"City Government",email:"[email protected]"}],status:"active",slug:"save-local-park",language_code:"en",published_at:"2024-01-15T10:00:00Z",created_at:"2024-01-15T10:00:00Z",updated_at:"2024-01-20T15:30:00Z",creator:zt[0],category:Tt[0]},{petition_id:2,title:"Fund Public Education",title_i18n:{en:"Fund Public Education",he:"מימון החינוך הציבורי"},creator_user_id:2,category_id:2,current_signatures_count:89234,target_signatures:1e5,views_count:45e3,main_image_url:"https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=400&h=250&fit=crop",main_video_url:null,story:"Public education needs more funding to ensure quality education for all students.",story_i18n:{en:"Public education needs more funding.",he:"החינוך הציבורי זקוק למימון נוסף."},decision_makers:[{name:"Department of Education",title:"Secretary",organization:"Education Dept",email:"[email protected]"}],status:"active",slug:"fund-public-education",language_code:"en",published_at:"2024-01-10T09:00:00Z",created_at:"2024-01-10T09:00:00Z",updated_at:"2024-01-18T12:15:00Z",creator:zt[1],category:Tt[1]},{petition_id:3,title:"Animal Rights Protection",title_i18n:{en:"Animal Rights Protection",he:"הגנה על זכויות בעלי חיים"},creator_user_id:3,category_id:3,current_signatures_count:67890,target_signatures:75e3,views_count:32e3,main_image_url:"https://images.unsplash.com/photo-1425082661705-1834bfd09dca?w=400&h=250&fit=crop",main_video_url:null,story:"Stronger laws are needed to protect animals from abuse and neglect.",story_i18n:{en:"Stronger laws are needed to protect animals.",he:"יש צורך בחוקים חזקים יותר להגנה על בעלי חיים."},decision_makers:[{name:"Animal Welfare Department",title:"Director",organization:"Agriculture Dept",email:"[email protected]"}],status:"active",slug:"animal-rights-protection",language_code:"en",published_at:"2024-01-08T14:30:00Z",created_at:"2024-01-08T14:30:00Z",updated_at:"2024-01-19T16:45:00Z",creator:zt[2],category:Tt[2]}];function Do(e,i,s){const n=e||0;if(!i){const l=s||null;if(!l||n<50)return{showProgressBar:!1,currentCount:n,goal:null,percent:null,message:n===0?"היו הראשונים לחתום על העצומה":`${n.toLocaleStr
2ing("he-IL")} אנשים כבר חתמו`};const g=Math.min(100,Math.round(n/l*100));return{showProgressBar:!0,currentCount:n,goal:l,percent:g,message:g>=85?`כמעט הגענו ליעד: ${l.toLocaleString("he-IL")} חתימות`:g>=60?`מתקדמים במהירות ל-${l.toLocaleString("he-IL")} חתימות`:`${n.toLocaleString("he-IL")} כבר חתמו`}}const d=s||null;if(!d||n<50)return{showProgressBar:!1,currentCount:n,goal:null,percent:null,message:n===0?"היו הראשונים לחתום על העצומה":`${n.toLocaleString("he-IL")} אנשים כבר חתמו`};const p=Math.min(100,Math.round(n/d*100));return{showProgressBar:!0,currentCount:n,goal:d,percent:p,message:p>=85?`כמעט הגענו ליעד: ${d.toLocaleString("he-IL")} חתימות`:p>=60?`מתקדמים במהירות ל-${d.toLocaleString("he-IL")} חתימות`:`${n.toLocaleString("he-IL")} כבר חתמו`}}const Fo=[{id:"facebook",label:"Facebook",labelHe:"פייסבוק",bg:"#1877F2",Icon:_o},{id:"whatsapp",label:"WhatsApp",labelHe:"וואטסאפ",bg:"#25D366",Icon:vo},{id:"email",label:"Email",labelHe:"אימייל",bg:"#6B7280",Icon:jo},{id:"messenger",label:"Messenger",labelHe:"מסנג'ר",bg:"#006AFF",Icon:So},{id:"twitter",label:"X",labelHe:"X",bg:"#000000",Icon:ko}];function fr({petition:e,signerEmail:i,signatureId:s,isHe:n=!1,createShortLink:d,recordShare:p,signerFirstName:l="",onShared:g}){const[f,S]=h.useState(!1),[T,z]=h.useState(null),F=(()=>
2{if(i)return i;try{const I=document.cookie.split("saved_signer_info=")[1]?.split(";")[0];return JSON.parse(I||"{}")?.email||""}catch{return""}})(),N=(I,k)=>{const P=encodeURIComponent(k),u=encodeURIComponent(e.title);switch(I){case"facebook":{const w="104160152956646",m=encodeURIComponent(`${window.location.origin}/share/callback`);if(/Android|iPhone|iPad|iPod|Mobile|Tablet/i.test(navigator.userAgent))return`fb://share/?link=${P}`;const r=encodeURIComponent(JSON.stringify({object:{"og:url":k}}));return`https://www.facebook.com/v25.0/dialog/share_open_graph?app_id=${w}&action_type=og.shares&action_properties=${r}&redirect_uri=${m}`}case"whatsapp":{const w=n?`רק חתמתי על העצומה הזו ורציתי לשתף איתך. תוכל/י להוסיף את השם שלך גם?
3
4${k}`:`I just signed this petition and wanted to share it with you. Can you add your name too?
5
6${k}`;return`https://wa.me/?text=${encodeURIComponent(w)}`}case"email":{const w=n?`היי,
7
8חתמתי באתר עצומה על העצומה הזו וחשבתי שאולי תרצה/י לתמוך בה גם:
9
10"${e.title}"
11
12הם עדיין אוספים תמיכה, וכל חתימה נוספת מגבירה את הלחץ על מקבלי ההחלטות לפעול.
13
14בבקשה תסתכל/י עליה ותוסיף/י את השם שלך אם את/ה מסכים/ה:
15
16${k}
17
18תודה!
19
20${l}`:`Hey,
21
22I just signed this petition on AZTUMA and thought you might want to support it too:
23
24"${e.title}"
25
26They're still gathering support, and every additional signature increases the pressure on decision-makers to act.
27
28Please take a quick look and add your name if you agree:
29
30${k}
31
32Thanks!
33
34${l}`;return`mailto:?subject=${u}&body=${encodeURIComponent(w)}`}case"messenger":return`fb-messenger://share/?link=${P}`;case"twitter":{const w=n?`${e.title} - חתמ/י על העצומה! ${k} via @atzuma_il`:`${e.title} - Sign the Petition! ${k} via @atzuma_il`;return`https://x.com/intent/tweet?text=${encodeURIComponent(w)}`}}},B=(I,k)=>!F&&!s?Promise.resolve():fetch(ge("ux/share"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:F||null,platform:I,petition_id:e.petition_id,ref_token:k,source:"petition_page"}),keepalive:!0}).then(()=>{}).catch(()=>{}),W=async I=>{z(I);let k=`${dt.siteUrl}/sign/${e.slug}`,P="";try{k=await d(e.petition_id,I,e.title,s??null),P=k.split("/").pop()??""}catch{}finally{z(null)}const u=p(I,e.petition_id,k),w=P?B(I,P):Promise.resolve();f||(S(!0),g?.());const m=N(I,k);if(I==="messenger")if(/Android|iPhone|iPad|iPod|Mobile|Tablet/i.test(navigator.userAgent))await u,await w,window.location.href=m;else{const r="104160152956646",E=encodeURIComponent(`${window.location.origin}/share/callback`),R=`https://www.facebook.com/dialog/send?app_id=${r}&link=${encodeURIComponent(k)}&redirect_uri=${E}`,M=window.open(R,"fb-send","width=600,height=700,toolbar=0,menubar=0,location=0");M&&M.focus()}else if(I==="email")/Android|iPhone|iPad|iPod|Mobile|Tablet/i.test(navigator.userAgent)?window.location.href=m:window.open(m,"_blank","noopener,noreferrer");else if(I==="facebook")if(/Android|iPhone|iPad|iPod|Mobile|Tablet/i.test(navigator.userAgent)){const r="104160152956646",E=window.location.href,R=`https://www.facebook.com/dialog/share?app_id=${r}&href=${encodeURIComponent(k)}&redirect_uri=${encodeURIComponent(E)}`,M=setTimeout(()=>{window.location.href=R},3e3),H=()=>{clearTimeout(M),document.removeEventListener("visibilitychange",H)};document.addEventListener("visibilitychange",H),window.location.href=m}else{const r=window.open(m,"fb-share","width=600,height=700,toolbar=0,menubar=0,location=0");r&&r.focus()}else/Android|iPhone|iPad|iPod|Mobile|Tablet/i.test(navigator.userAgent)?window.location.href=m:window.open(m,"_blank","noopener,noreferrer")},L=({id:I,label:k,labelHe:P,bg:u,Icon:w})=>t.jsxs("button",{className:"flex flex-col items-center gap-1.5 bg-transparent border-none cursor-pointer py-1 px-0.5 active:scale-95 transition-transform disabled:opacity-60",onClick:()=>W(I),disabled:T!==null,"aria-label":`Share on ${k}`,children:[t.jsx("span",{className:"w-10 h-10 md:w-12 md:h-12 rounded-full flex items-center justify-center text-white shrink-0 text-[18px] md:text-[20px]",style:{background:u},children:T===I?t.jsx("span",{className:"w-4 h-4 border-2 border-white/40 border-t-white rounded-full animate-spin block"}):t.jsx(w,{})}),t.jsx("span",{className:"text-xs font-semibold text-gray-700 text-center leading-tight",children:n?P:k})]},I);return t.jsx("div",{className:"flex justify-around items-center w-full max-w-sm mx-auto md:max-w-md",children:Fo.map(L)})}const Ar=(e,i)=>{if(e==null)return i;if(Array.isArray(e)){const s=e.filter(n=>n!=null);return s.length>0?s[s.length-1]:i}return e},We=(e,i=1)=>{const s=Ar(e,i),n=typeof s=="number"?s:parseFloat(String(s));return!isNaN(n)&&n>0?n:i},gr=(e,i="")=>{const s=Ar(e,i);return String(s||i)},Lo=e=>{const[i,s]=h.useState(null),[n,d]=h.useState(null),[p,l]=h.useState(!0),[g,f]=h.useState(null),[S,T]=h.useState("");h.useEffect(()=>{const w=localStorage.getItem("user-session-tracking");if(w)T(w);else{const m=`sess_${Date.now()}_${Math.random().toString(36).substr(2,12)}`;localStorage.setItem("user-session-tracking",m),T(m)}},[]),h.useEffect(()=>{const m=new URLSearchParams(window.location.search).get("utm_variant");m?(console.log("🎯 UTM Variant detected:",m),s(m),z(m)):(console.log("📍 No UTM variant in URL, using default styling"),l(!1))},[]);const z=async w=>{try{l(!0),f(null),console.log("📡 Loading variant config for:",w);const m=await fetch(ge(`utm-variants/${w}`));if(m.ok){const C=await m.json();C.success&&C.data?(console.log("✅ Raw variant config loaded:",C.data),console.log("🔍 Style config structure:",JSON.stringify(C.data.style_config,null,2)),d(C.data.style_config),e&&F("page_view",{variant_name:C.data.variant_name,loaded_at:new Date().toISOString()})):(console.log("⚠️ Variant not active or not found:",C.message),f(C.message))}else console.log("❌ Failed to load variant:",m.status),f(`Failed to load variant: ${m.status}`)}catch(m){console.error("❌ Error loading variant config:",m),f(m instanceof Error?m.message:"Unknown error")}finally{l(!1)}},F=h.useCallback(async(w,m={})=>
34{if(!i||!e){console.log("🚫 Skipping variant event - missing variant code or petition ID");return}try{const C={variant_code:i,petition_id:e,session_id:S,event_type:w,event_metadata:{...m,url:window.location.href,timestamp:new Date().toISOString(),user_agent:navigator.userAgent},time_on_page:Math.floor((Date.now()-(performance.timing?.navigationStart||Date.now()))/1e3),was_mobile:window.innerWidth<=768,device_info:{screen_width:window.screen.width,screen_height:window.screen.height,viewport_width:window.innerWidth,viewport_height:window.innerHeight},user_segment:window.innerWidth<=768?"mobile":window.innerWidth<=1024?"tablet":"desktop"};console.log("📊 Recording variant event:",w,C);const r=await fetch(ge("utm-variants/analytics"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(C)});if(r.ok){const E=await r.json();console.log("✅ Variant event recorded:",E)}else console.log("⚠️ Failed to record variant event:",r.status)}catch(C){console.error("❌ Error recording variant event:",C)}},[i,e,S]),N=h.useCallback(w=>{if(!n?.colors)return w;const m={...w},C=gr(n.colors.sign_button,"");return C&&(m.background=C,m.backgroundImage="none",m.backgroundColor=C,m.outline="none",m.boxShadow=`0 4px 15px ${C}40`),m},[n]),B=h.useCallback(w=>{if(!n?.typography)return w;const m={...w},C=We(n.typography.title_scale,1);if(C!==1){const M=String(m.fontSize||"2.5rem").match(/([0-9.]+)/);if(M){const le=parseFloat(M[1])*C;m.fontSize=`${le}rem`}}const r=gr(n.typography.title_weight_override,"");r&&(m.fontWeight=r);const E=We(n.typography.line_height_scale,1);if(E!==1){const R=typeof m.lineHeight=="number"?m.lineHeight:parseFloat(String(m.lineHeight||"1.2"));if(!isNaN(R)){const M=R*E;m.lineHeight=M}}return m},[n]),W=h.useCallback(w=>{if(!n?.typography)return w;const m={...w},C=We(n.typography.body_scale,1);if(C!==1){const R=String(m.fontSize||"1.25rem").match(/([0-9.]+)/);if(R){const H=parseFloat(R[1])*C;m.fontSize=`${H}rem`}}const r=We(n.typography.line_height_scale,1);if(r!==1){const E=typeof m.lineHeight=="number"?m.lineHeight:parseFloat(String(m.lineHeight||"1.7"));if(!isNaN(E)){const R=E*r;m.lineHeight=R}}return m},[n]),L=h.useCallback((w,m)=>n?.content?.sign_button_text?n.content.sign_button_text[m]||w[m]||w.en:w[m]||w.en,[n]),I=h.useCallback((w,m,C)=>n?.content?.progress_text?(n.content.progress_text[m]||w[m]||w.en).replace("{count}",C.toString()):w[m]?.replace("{count}",C.toString())||w.en.replace("{count}",C.toString()),[n]),k=h.useCallback(()=>n?.features?.show_urgency||!1,[n]),P=h.useCallback(()=>We(n?.features?.social_proof_boost,0),[n]),u=h.useCallback((w,m)=>{if(!n?.content)return null;const C=n.content[w];if(!C||typeof C!="object")return null;const r=C[m],E=C.en;return r||E||null},[n]);return{variantCode:i,variantConfig:n,isLoading:p,error:g,recordVariantEvent:F,getButtonStyle:N,getTitleStyle:B,getBodyStyle:W,getSignButtonText:L,getProgressText:I,shouldShowUrgency:k,getSocialProofBoost:P,getVariantText:u}};function pr({total:e,isLoading:i=!1,className:s=""}){return i?t.jsx("div",{style:{display:"inline-block",width:"80px",height:"20px",backgroundColor:"#e5e7eb",borderRadius:"4px",animation:"pulse 1.5s ease-in-out infinite"},"aria-label":"Loading signatures count",className:s}):t.jsx("span",{className:s,"aria-label":"Total signatures",children:Dt(e??0)})}function $r(e){var i,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(i=0;i<d;i++)e[i]&&(s=$r(e[i]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Wo(){for(var e,i,s=0,n="",d=arguments.length;s<d;s++)(e=arguments[s])&&(i=$r(e))&&(n&&(n+=" "),n+=i);return n}const No=(e,i)=>{const s=new Array(e.length+i.length);for(let n=0;n<e.length;n++)s[n]=e[n];for(let n=0;n<i.length;n++)s[e.length+n]=i[n];return s},Oo=(e,i)=>({classGroupId:e,validator:i}),Er=(e=new Map,i=null,s)=>({nextPart:e,validators:i,classGroupId:s}),mt="-",hr=[],Bo="arbitrary..",Mo=e=>{const i=Ho(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Uo(l);const g=l.split(mt),f=g[0]===""&&g.length>1?1:0;return Dr(g,f,i)},getConflictingClassGroupIds:(l,g)=>{if(g){const f=n[l],S=s[l];return f?S?No(S,f):f:S||hr}return s[l]||hr}}},Dr=(e,i,s)=>{if(e.length-i===0)return s.classGroupId;const d=e[i],p=s.nextPart.get(d);if(p){const S=Dr(e,i+1,p);if(S)return S}const l=s.validators;if(l===null)return;const g=i===0?e.join(mt):e.slice(i).join(mt),f=l.length;for(let S=0;S<f;S++){const T=l[S];if(T.validator(g))return T.classGroupId}},Uo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=e.slice(1,-1),s=i.indexOf(":"),n=i.slice(0,s);return n?Bo+n:void 0})(),Ho=e=>{const{theme:i,classGroups:s}=e;return qo(s,i)},qo=(e,i)=>{const s=Er();for(const n in e){const d=e[n];Lt(d,s,n,i)}return s},Lt=(e,i,s,n)=>{const d=e.length;for(let p=0;p<d;p++){const l=e[p];Go(l,i,s,n)}},Go=(e,i,s,n)=>{if(typeof e=="string"){Vo(e,i,s);return}if(typeof e=="function"){Yo(e,i,s,n);return}Xo(e,i,s,n)},Vo=(e,i,s)=>{const n=e===""?i:Fr(i,e);n.classGroupId=s},Yo=(e,i,s,n)=>{if(Jo(e)){Lt(e(n),i,s,n);return}
vendor: 4,454 bytes, line 34
34i.validators===null&&(i.validators=[]),i.validators.push(Oo(s,e))},Xo=(e,i,s,n)=>{const d=Object.entries(e),p=d.length;for(let l=0;l<p;l++){const[g,f]=d[l];Lt(f,Fr(i,g),s,n)}},Fr=(e,i)=>{let s=e;const n=i.split(mt),d=n.length;for(let p=0;p<d;p++){const l=n[p];let g=s.nextPart.get(l);g||(g=Er(),s.nextPart.set(l,g)),s=g}return s},Jo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Qo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),n=Object.create(null);const d=(p,l)=>{s[p]=l,i++,i>e&&(i=0,n=s,s=Object.create(null))};return{get(p){let l=s[p];if(l!==void 0)return l;if((l=n[p])!==void 0)return d(p,l),l},set(p,l){p in s?s[p]=l:d(p,l)}}},Ft="!",br=":",Zo=[],xr=(e,i,s,n,d)=>({modifiers:e,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:n,isExternal:d}),Ko=e=>{const{prefix:i,experimentalParseClassName:s}=e;let n=d=>{const p=[];let l=0,g=0,f=0,S;const T=d.length;for(let W=0;W<T;W++){const L=d[W];if(l===0&&g===0){if(L===br){p.push(d.slice(f,W)),f=W+1;continue}if(L==="/"){S=W;continue}}L==="["?l++:L==="]"?l--:L==="("?g++:L===")"&&g--}const z=p.length===0?d:d.slice(f);let F=z,N=!1;z.endsWith(Ft)?(F=z.slice(0,-1),N=!0):z.startsWith(Ft)&&(F=z.slice(1),N=!0);const B=S&&S>f?S-f:void 0;return xr(p,N,F,B)};if(i){const d=i+br,p=n;n=l=>l.startsWith(d)?p(l.slice(d.length)):xr(Zo,!1,l,void 0,!0)}if(s){const d=n;n=p=>s({className:p,parseClassName:d})}return n},en=e=>{const i=new Map;return e.orderSensitiveModifiers.forEach((s,n)=>{i.set(s,1e6+n)}),s=>{const n=[];let d=[];for(let p=0;p<s.length;p++){const l=s[p],g=l[0]==="[",f=i.has(l);g||f?(d.length>0&&(d.sort(),n.push(...d),d=[]),n.push(l)):d.push(l)}return d.length>0&&(d.sort(),n.push(...d)),n}},tn=e=>({cache:Qo(e.cacheSize),parseClassName:Ko(e),sortModifiers:en(e),postfixLookupClassGroupIds:rn(e),...Mo(e)}),rn=e=>{const i=Object.create(null),s=e.postfixLookupClassGroups;if(s)for(let n=0;n<s.length;n++)i[s[n]]=!0;return i},on=/\s+/,nn=(e,i)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:d,sortModifiers:p,postfixLookupClassGroupIds:l}=i,g=[],f=e.trim().split(on);let S="";for(let T=f.length-1;T>=0;T-=1){const z=f[T],{isExternal:F,modifiers:N,hasImportantModifier:B,baseClassName:W,maybePostfixModifierPosition:L}=s(z);if(F){S=z+(S.length>0?" "+S:S);continue}let I=!!L,k;if(I){const C=W.substring(0,L);k=n(C);const r=k&&l[k]?n(W):void 0;r&&r!==k&&(k=r,I=!1)}else k=n(W);if(!k){if(!I){S=z+(S.length>0?" "+S:S);continue}if(k=n(W),!k){S=z+(S.length>0?" "+S:S);continue}I=!1}const P=N.length===0?"":N.length===1?N[0]:p(N).join(":"),u=B?P+Ft:P,w=u+k;if(g.indexOf(w)>-1)continue;g.push(w);const m=d(k,I);for(let C=0;C<m.length;++C){const r=m[C];g.push(u+r)}S=z+(S.length>0?" "+S:S)}return S},sn=(...e)=>{let i=0,s,n,d="";for(;i<e.length;)(s=e[i++])&&(n=Lr(s))&&(d&&(d+=" "),d+=n);return d},Lr=e=>{if(typeof e=="string")return e;let i,s="";for(let n=0;n<e.length;n++)e[n]&&(i=Lr(e[n]))&&(s&&(s+=" "),s+=i);return s},an=(e,...i)=>{let s,n,d,p;const l=f=>{const S=i.reduce((T,z)=>z(T),e());return s=tn(S),n=s.cache.get,d=s.cache.set,p=g,g(f)},g=f=>{const S=n(f);if(S)return S;const T=nn(f,s);return d(f,T),T};return p=l,(...f)=>p(sn(...f))},ln=[],X=e=>{const i=s=>s[e]||ln;return i.isThemeGetter=!0,i},Wr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,un=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>cn.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),me=e=>!!e&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&$(e.slice(0,-1)),fe=e=>dn.test(e),Or=()=>!0,pn=e=>mn.test(e)&&!un.test(e),Wt=()=>!1,hn=e=>fn.test(e),bn=e=>gn.test(e),xn=e=>!y(e)&&!_(e),yn=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),wn=e=>ye(e,Ur,Wt),y=e=>Wr.test(e),Se=e=>ye(e,Hr,pn),yr=e=>ye(e,Tn,$),_n=e=>ye(e,Gr,Or),vn=e=>ye(e,qr,Wt),wr=e=>ye(e,Br,Wt),Sn=e=>ye(e,Mr,bn),Ze=e=>ye(e,Vr,hn),_=e=>Nr.test(e),Ne=e=>ke(e,Hr),kn=e=>ke(e,qr),_r=e=>ke(e,Br),jn=e=>ke(e,Ur),Cn=e=>ke(e,Mr),Ke=e=>ke(e,Vr,!0),zn=e=>ke(e,Gr,!0),ye=(e,i,s)=>{const n=Wr.exec(e);
vendor: 8,973 bytes, line 34
34return n?n[1]?i(n[1]):s(n[2]):!1},ke=(e,i,s=!1)=>{const n=Nr.exec(e);return n?n[1]?i(n[1]):s:!1},Br=e=>e==="position"||e==="percentage",Mr=e=>e==="image"||e==="url",Ur=e=>e==="length"||e==="size"||e==="bg-size",Hr=e=>e==="length",Tn=e=>e==="number",qr=e=>e==="family-name",Gr=e=>e==="number"||e==="weight",Vr=e=>e==="shadow",In=()=>{const e=X("color"),i=X("font"),s=X("text"),n=X("font-weight"),d=X("tracking"),p=X("leading"),l=X("breakpoint"),g=X("container"),f=X("spacing"),S=X("radius"),T=X("shadow"),z=X("inset-shadow"),F=X("text-shadow"),N=X("drop-shadow"),B=X("blur"),W=X("perspective"),L=X("aspect"),I=X("ease"),k=X("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],u=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...u(),_,y],m=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],r=()=>[_,y,f],E=()=>[xe,"full","auto",...r()],R=()=>[me,"none","subgrid",_,y],M=()=>["auto",{span:["full",me,_,y]},me,_,y],H=()=>[me,"auto",_,y],le=()=>["auto","min","max","fr",_,y],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...r()],D=()=>[xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...r()],ue=()=>[xe,"screen","full","dvw","lvw","svw","min","max","fit",...r()],je=()=>[xe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...r()],j=()=>[e,_,y],$e=()=>[...u(),_r,wr,{position:[_,y]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",jn,wn,{size:[_,y]}],te=()=>[It,Ne,Se],U=()=>["","none","full",S,_,y],O=()=>["",$,Ne,Se],we=()=>["solid","dashed","dotted","double"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>[$,It,_r,wr],Me=()=>["","none",B,_,y],_e=()=>["none",$,_,y],Ee=()=>["none",$,_,y],De=()=>[$,_,y],Ce=()=>[xe,"full",...r()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fe],breakpoint:[fe],color:[Or],container:[fe],"drop-shadow":[fe],ease:["in","out","in-out"],font:[xn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fe],shadow:[fe],spacing:["px",$],text:[fe],"text-shadow":[fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xe,y,_,L]}],container:["container"],"container-type":[{"@container":["","normal","size",_,y]}],"container-named":[yn],columns:[{columns:[$,y,_,g]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:m()}],"overflow-x":[{"overflow-x":m()}],"overflow-y":[{"overflow-y":m()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[me,"auto",_,y]}],basis:[{basis:[xe,"full","auto",g,...r()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,xe,"auto","initial","none",y]}],grow:[{grow:["",$,_,y]}],shrink:[{shrink:["",$,_,y]}],order:[{order:[me,"first","last","none",_,y]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:r()}],"gap-x":[{"gap-x":r()}],"gap-y":[{"gap-y":r()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:r()}],px:[{px:r()}],py:[{py:r()}],ps:[{ps:r()}],pe:[{pe:r()}],pbs:[{pbs:r()}],pbe:[{pbe:r()}],pt:[{pt:r()}],pr:[{pr:r()}],pb:[{pb:r()}],pl:[{pl:r()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mbs:[{mbs:J()}],mbe:[{mbe:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":r()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":r()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",...je()]}],"min-block-size":[{"min-block":["auto",...je()]}],"max-block-size":[{"max-block":["none",...je()]}],w:[{w:[g,"screen",...D()]}],"min-w":[{"min-w":[g,"screen","none",...D()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[l]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",s,Ne,Se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,zn,_n]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",It,y]}],"font-family":[{font:[kn,vn,i]}],"font-features":[{"font-features":[y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,_,y]}],"line-clamp":[{"line-clamp":[$,"none",_,yr]}],leading:[{leading:[p,...r()]}],"list-image":[{"list-image":["none",_,y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",_,Se]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[$,"auto",_,y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:r()}],"tab-size":[{tab:[me,_,y]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$e()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},me,_,y],radial:["",_,y],conic:[me,_,y]},Cn,Sn]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:te()}
vendor: 7,301 bytes, line 34
34],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-bs":[{"border-bs":O()}],"border-w-be":[{"border-be":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,_,y]}],"outline-w":[{outline:["",$,Ne,Se]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",T,Ke,Ze]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",z,Ke,Ze]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[$,Se]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",F,Ke,Ze]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[$,_,y]}],"mix-blend":[{"mix-blend":[...Be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":q()}],"mask-image-linear-to-pos":[{"mask-linear-to":q()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":q()}],"mask-image-t-to-pos":[{"mask-t-to":q()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":q()}],"mask-image-r-to-pos":[{"mask-r-to":q()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":q()}],"mask-image-b-to-pos":[{"mask-b-to":q()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":q()}],"mask-image-l-to-pos":[{"mask-l-to":q()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":q()}],"mask-image-x-to-pos":[{"mask-x-to":q()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":q()}],"mask-image-y-to-pos":[{"mask-y-to":q()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[_,y]}],"mask-image-radial-from-pos":[{"mask-radial-from":q()}],"mask-image-radial-to-pos":[{"mask-radial-to":q()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":u()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":q()}],"mask-image-conic-to-pos":[{"mask-conic-to":q()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$e()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,y]}],filter:[{filter:["","none",_,y]}],blur:[{blur:Me()}],brightness:[{brightness:[$,_,y]}],contrast:[{contrast:[$,_,y]}],"drop-shadow":[{"drop-shadow":["","none",N,Ke,Ze]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",$,_,y]}],"hue-rotate":[{"hue-rotate":[$,_,y]}],invert:[{invert:["",$,_,y]}],saturate:[{saturate:[$,_,y]}],sepia:[{sepia:["",$,_,y]}],"backdrop-filter":[{"backdrop-filter":["","none",_,y]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[$,_,y]}],"backdrop-contrast":[{"backdrop-contrast":[$,_,y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,_,y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,_,y]}],"backdrop-invert":[{"backdrop-invert":["",$,_,y]}],"backdrop-opacity":[{"backdrop-opacity":[$,_,y]}],"backdrop-saturate":[{"backdrop-saturate":[$,_,y]}],"backdrop-sepia":[{"backdrop-sepia":["",$,_,y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":r()}],"border-spacing-x":[{"border-spacing-x":r()}],"border-spacing-y":[{"border-spacing-y":r()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",_,y]}],ease:[{ease:["linear","initial",I,_,y]}],delay:[{delay:[$,_,y]}],animate:[{animate:["none",k,_,y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[W,_,y]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[_,y,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],zoom:[{zoom:[me,_,y]}],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}
34],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":r()}],"scroll-mx":[{"scroll-mx":r()}],"scroll-my":[{"scroll-my":r()}],"scroll-ms":[{"scroll-ms":r()}],"scroll-me":[{"scroll-me":r()}],"scroll-mbs":[{"scroll-mbs":r()}],"scroll-mbe":[{"scroll-mbe":r()}],"scroll-mt":[{"scroll-mt":r()}],"scroll-mr":[{"scroll-mr":r()}],"scroll-mb":[{"scroll-mb":r()}],"scroll-ml":[{"scroll-ml":r()}],"scroll-p":[{"scroll-p":r()}],"scroll-px":[{"scroll-px":r()}],"scroll-py":[{"scroll-py":r()}],"scroll-ps":[{"scroll-ps":r()}],"scroll-pe":[{"scroll-pe":r()}],"scroll-pbs":[{"scroll-pbs":r()}],"scroll-pbe":[{"scroll-pbe":r()}],"scroll-pt":[{"scroll-pt":r()}],"scroll-pr":[{"scroll-pr":r()}],"scroll-pb":[{"scroll-pb":r()}],"scroll-pl":[{"scroll-pl":r()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,y]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[$,Ne,Se,yr]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Rn=an(In);function et(...e){return Rn(Wo(e))}const Pn="block mb-2 font-semibold text-gray-700 text-[0.875rem]",Rt="w-full p-3 rounded-lg text-[0.875rem] box-border border-2",Pt="placeholder:text-[#666] placeholder:opacity-100",At="text-[0.8rem] text-red-500 mt-1 font-medium";function $t(e){return e?"border-red-500":"border-gray-200"}function vr({nameSplit:e,labelsInside:i,language:s,isPrefilledUser:n,nameInputRef:d,fullName:p,nameError:l,onFullNameChange:g,firstName:f,lastName:S,firstNameError:T,lastNameError:z,onFirstNameChange:F,onLastNameChange:N}){const B=s==="he"?"rtl":"ltr",W=et(Pn,i&&"hidden"),L=s==="en"?"Full Name":"שם מלא",I=s==="en"?"First Name":"שם פרטי",k=s==="en"?"Last Name":"שם משפחה";return e?t.jsxs("div",{className:"flex flex-col gap-6 md:gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:W,style:{direction:B},children:I}),t.jsx("input",{ref:d,type:"text",className:et(Rt,$t(T),"bg-white cursor-text",Pt),style:{direction:B},value:f,onChange:P=>F(P.target.value),placeholder:i?I:"",autoComplete:"new-password","data-lpignore":"true","data-form-type":"other","data-1p-ignore":"true",name:"sf_first_name"}),T&&t.jsx("div",{className:At,style:{direction:B},children:T})]}),t.jsxs("div",{children:[t.jsx("label",{className:W,style:{direction:B},children:k}),t.jsx("input",{type:"text",className:et(Rt,$t(z),"bg-white cursor-text",Pt),style:{direction:B},value:S,onChange:P=>N(P.target.value),placeholder:i?k:"",autoComplete:"new-password","data-lpignore":"true","data-form-type":"other","data-1p-ignore":"true",name:"sf_last_name"}),z&&t.jsx("div",{className:At,style:{direction:B},children:z})]})]}):t.jsxs("div",{children:[t.jsx("label",{className:W,style:{direction:B},children:L}),t.jsx("input",{ref:d,type:"text",className:et(Rt,$t(l),n?"bg-gray-100 cursor-not-allowed":"bg-white cursor-text",Pt),style:{direction:B},value:p,onChange:n?void 0:P=>g(P.target.value),readOnly:n,placeholder:i?L:"",autoComplete:"new-password","data-lpignore":"true","data-form-type":"other","data-1p-ignore":"true",name:"sf_full_name"}),l&&t.jsx("div",{className:At,style:{direction:B},children:l})]})}const tt={setSignatureData:e=>{sessionStorage.setItem("recent_signature",JSON.stringify({...e,timestamp:new Date().toISOString()}))},setHeroContext:e=>{sessionStorage.setItem("hero_promotion_context",JSON.stringify({...e,timestamp:new Date().toISOString()}))},clearAll:()=>{sessionStorage.removeItem("recent_signature"),sessionStorage.removeItem("hero_promotion_context")}}
34,rt=({slot:e,format:i="auto",width:s,height:n,className:d})=>(h.useEffect(()=>{},[]),null);function Sr(){const e=new URLSearchParams(window.location.search).get("utm_source"),i=(()=>{try{const s=localStorage.getItem("session_attribution");return s?JSON.parse(s).utm_source:null}catch{return null}})();return(e||i)==="newsletter"?"newsletter":Et.hasQuickSignData()?"returning":"new"}const An="/api/v1/ab/config",$n=3600*1e3,ut=new Map,En={phone_field_enabled:!1,consent_version:"",consent_text:"",has_phone_record:!1,form_fields_variant:null,phone_field_visibility:"hide",name_split:!1,labels_inside:!1};function Dn(e){for(const[i,s]of ut.entries())ut.set(i,{...s,data:{...s.data,...e}})}async function Fn(e){const i=e?`phone_field:${e}`:"phone_field",s=Date.now(),n=ut.get(i);if(n&&s<n.expiry)return n.data;const d=new URLSearchParams({context:"phone_field"});e&&d.set("petition_id",String(e));const p=`${An}?${d}`;try{const l=await fetch(p,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(1e4)});if(!l.ok)throw new Error(`AB config fetch failed: ${l.status}`);const g=await l.json();return ut.set(i,{data:g,expiry:s+$n}),g}catch{return En}}var ot={exports:{}},nt={exports:{}},kr;function ft(){return kr||(kr=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=s;function s(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=i.default,e.exports.default=i.default}(nt,nt.exports)),nt.exports}var it={exports:{}},jr;function Ln(){return jr||(jr=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;function s(d){return Object.prototype.toString.call(d)==="[object RegExp]"}function n(d,p){for(var l=0;l<p.length;l++){var g=p[l];if(d===g||s(g)&&g.test(d))return!0}return!1}e.exports=i.default,e.exports.default=i.default}(it,it.exports)),it.exports}var st={exports:{}},Cr;function Wn(){return Cr||(Cr=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=p;var s=n(ft());function n(l){return l&&l.__esModule?l:{default:l}}function d(l){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},d(l)}function p(l,g){(0,s.default)(l);var f,S;d(g)==="object"?(f=g.min||0,S=g.max):(f=arguments[1],S=arguments[2]);var T=encodeURI(l).split(/%..|./).length-1;return T>=f&&(typeof S>"u"||T<=S)}e.exports=i.default,e.exports.default=i.default}(st,st.exports)),st.exports}var at={exports:{}},lt={exports:{}},zr;function Yr(){return zr||(zr=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=s;function s(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;for(var p in d)typeof n[p]>"u"&&(n[p]=d[p]);return n}e.exports=i.default,e.exports.default=i.default}(lt,lt.exports)),lt.exports}var Tr;function Nn(){return Tr||(Tr=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=l;var s=d(ft()),n=d(Yr());function d(g){return g&&g.__esModule?g:{default:g}}var p={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function l(g,f){(0,s.default)(g),f=(0,n.default)(f,p),f.allow_trailing_dot&&g[g.length-1]==="."&&(g=g.substring(0,g.length-1)),f.allow_wildcard===!0&&g.indexOf("*.")===0&&(g=g.substring(2));var S=g.split("."),T=S[S.length-1];return f.require_tld&&(S.length<2||!f.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(T)||/\s/.test(T))||!f.allow_numeric_tld&&/^\d+$/.test(T)?!1:S.every(function(z){return!(z.length>63&&!f.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(z)||/[\uff01-\uff5e]/.test(z)||/^-|-$/.test(z)||!f.allow_underscores&&/_/.test(z))})}e.exports=i.default,e.exports.default=i.default}(at,at.exports)),at.exports}var ct={exports:{}},Ir;function On(){return Ir||(Ir=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=T;var s=n(ft());function n(z){return z&&z.__esModule?z:{default:z}}function d(z){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},d(z)}var p="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",l="(".concat(p,"[.]){3}").concat(p),g=new RegExp("^".concat(l,"$")),f="(?:[0-9a-fA-F]{1,4})",S=new RegExp("^("+"(?:".concat(f,":){7}
34(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(l,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(l,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(l,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(l,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(l,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(l,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(l,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function T(z){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,s.default)(z);var N=(d(F)==="object"?F.version:arguments[1])||"";return N?N.toString()==="4"?g.test(z):N.toString()==="6"?S.test(z):!1:T(z,{version:4})||T(z,{version:6})}e.exports=i.default,e.exports.default=i.default}(ct,ct.exports)),ct.exports}var Rr;function Bn(){return Rr||(Rr=1,function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=k;var s=f(ft()),n=f(Ln()),d=f(Wn()),p=f(Nn()),l=f(On()),g=f(Yr());function f(P){return P&&P.__esModule?P:{default:P}}var S={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blackl
34isted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},T=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,z=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,F=/^[a-z\d]+$/,N=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,B=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,W=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,L=254;function I(P){var u=P.replace(/^"(.+)"$/,"$1");if(!u.trim())return!1;var w=/[\.";<>]/.test(u);if(w){if(u===P)return!1;var m=u.split('"').length===u.split('\\"').length;if(!m)return!1}return!0}function k(P,u){if((0,s.default)(P),u=(0,g.default)(u,S),u.require_display_name||u.allow_display_name){var w=P.match(T);if(w){var m=w[1];if(P=P.replace(m,"").replace(/(^<|>$)/g,""),m.endsWith(" ")&&(m=m.slice(0,-1)),!I(m))return!1}else if(u.require_display_name)return!1}if(!u.ignore_max_length&&P.length>L)return!1;var C=P.split("@"),r=C.pop(),E=r.toLowerCase();if(u.host_blacklist.length>0&&(0,n.default)(E,u.host_blacklist)||u.host_whitelist.length>0&&!(0,n.default)(E,u.host_whitelist))return!1;var R=C.join("@");if(u.domain_specific_validation&&(E==="gmail.com"||E==="googlemail.com")){R=R.toLowerCase();var M=R.split("+")[0];if(!(0,d.default)(M.replace(/\./g,""),{min:6,max:30}))return!1;for(var H=M.split("."),le=0;le<H.length;le++)if(!F.test(H[le]))return!1}if(u.ignore_max_length===!1&&(!(0,d.default)(R,{max:64})||!(0,d.default)(r,{max:254})))return!1;if(!(0,p.default)(r,{require_tld:u.require_tld,ignore_max_length:u.ignore_max_length,allow_underscores:u.allow_underscores})){if(!u.allow_ip_domain)return!1;if(!(0,l.default)(r)){if(!r.startsWith("[")||!r.endsWith("]"))return!1;var se=r.slice(1,-1);if(se.length===0||!(0,l.default)(se))return!1}}if(u.blacklisted_chars&&R.search(new RegExp("[".concat(u.blacklisted_chars,"]+"),"g"))!==-1)return!1;if(R[0]==='"'&&R[R.length-1]==='"')return R=R.slice(1,R.length-1),u.allow_utf8_local_part?W.test(R):N.test(R);for(var oe=u.allow_utf8_local_part?B:z,J=R.split("."),D=0;D<J.length;D++)if(!oe.test(J[D]))return!1;return!0}e.exports=i.default,e.exports.default=i.default}(ot,ot.exports)),ot.exports}var Mn=Bn();const Un=Ao(Mn),Oe=({variant:e="black",size:i=22})=>{const s=e==="white"?"/images/signpetition_white.png":"/images/signpetition_black.png";return t.jsx("img",{src:s,alt:"Sign",style:{width:`${i}px`,height:`${i}px`,display:"inline-block",verticalAlign:"middle",marginRight:"4px"}})};function Hn(e){const i=e.trim();if(!i)return{first:"",last:""};const s=i.indexOf(" ");return s===-1?{first:i,last:""}:{first:i.slice(0,s),last:i.slice(s+1).trim()}}const qn=e=>{const i=new Date(e);if(isNaN(i.getTime()))return"";const s=n=>String(n).padStart(2,"0");return`${s(i.getDate())}.${s(i.getMonth()+1)}.${i.getFullYear()}`},Pr=({closedAt:e,onHome:i,large:s})=>{const n=e?qn(e):"";return t.jsxs("div",{dir:"rtl",style:{width:"100%",background:"#f3f4f6",border:"1px solid #e5e7eb",borderRadius:s?"12px":"10px",padding:s?"1.25rem":"1rem",marginBottom:s?"1rem":"0.75rem",textAlign:"center",boxSizing:"border-box"},children:[t.jsx("div",{style:{fontWeight:700,fontSize:s?"1.25rem":"1.1rem",color:"#374151"},children:"🔒 העצומה נסגרה לחתימות"}),n&&t.jsxs("div",{style:{fontSize:"0.9rem",color:"#6b7280",marginTop:"0.35rem"},children:["נסגרה ב־",n]}),t.jsx("button",{type:"button",onClick:i,style:{marginTop:"0.85rem",width:"100%",background:"white",color:"#374151",border:"1px solid #d1d5db",borderRadius:"10px",padding:s?"0.9rem":"0.75rem",fontSize:s?"1.1rem":"1rem",fontWeight:600,cursor:"pointer"},children:"לעמוד הבית"})]})},fi=({language:e,petitionSlug:i,onNavigate:s})=>{const[n]=go(),d=n.get("XR"),p=()=>new URLSearchParams(window.location.search).toString();h.useEffect(()=>{if(d){const o=Ae.getXRTemplate();(!o||o.uniqueNumber!==d)&&Ae.saveXRTemplate(d,0)}},[d]);const[l,g]=h.useState(null),[f,S]=h.useState(""),[T,z]=h.useState(0),[F,N]=h.useState(null),[B,W]=h.useState(null),[L,I]=h.useState(null),[k,P]=h.useState("story"),[u,w]=h.useState({name:"",first_name:"",last_name:"",email:"",country:"",keep_updated:!0,display_name:!0}),[m,C]=h.useState(!1),[r,E]=h.useState(null),R=r?.status==="closed",[M,H]=h.useState(null),[le,se]=h.useState(!1),[oe,J]=h.useState(null),[D,ue]=h.useState(null),[je,j]=h.useState(!1),[$e,pe]=h.useState(null),ce=h.useRef(null),te=h.useRef(null),U=r,O=U?.total_signatures??(U?.current_signatures_count??0)+(U?.boost_signatures??0),we=!U;Po(U?.petition_id,"petition_page");const[Be,q]=h.useState(!1),[Me,_e]=h.useState(!1),[Ee,De]=h.useState(!0),[Ce,Fe]=h.useState(!1),[gt,Ue]=h.useState(!0),[Z,He]=h.useState([]),[Nt,Ot]=h.useState(!1),[K,Xr]=h.useState(window.innerWidth),[Jr,pt]=h.useState([]),[Gn,Bt]=
34h.useState(!1),[ae,Mt]=h.useState({has_signed:!1,source:"none",can_sign:!0}),[ne,Ut]=h.useState(!0),[he,ze]=h.useState(!1),Q=po(),qe=ho(),{showError:ht}=co(),Ge=mo({petition:r}),Qr=zo({petition:r});h.useEffect(()=>{const o=new URLSearchParams(window.location.search);console.log("=== FACEBOOK TRACKING DEBUG ==="),console.log("Full URL:",window.location.href),console.log("All params:",Object.fromEntries(o)),localStorage.setItem("facebook_utm_debug",JSON.stringify({url:window.location.href,params:Object.fromEntries(o),timestamp:new Date().toISOString()}))},[]),h.useEffect(()=>{r&&Ge.trackViewContent()},[r]),h.useEffect(()=>{if(!r)return;const o=new Set,c=uo.getInstance(),a=()=>{const b=document.querySelector('.petition-story, .petition-content, .story-section, [class*="story"], [class*="content"]'),x=document.querySelector('.share-buttons, .social-share, [class*="share"]');if(b&&!o.has("petition_text")){const A=b.getBoundingClientRect().bottom,Y=window.innerHeight;A<Y*.1&&(c.trackPetitionContentComplete(r,"petition_text"),o.add("petition_text"))}if(x&&!o.has("sharing_buttons")){const A=x.getBoundingClientRect().top,Y=window.innerHeight;A<Y*.8&&(c.trackPetitionContentComplete(r,"sharing_buttons"),o.add("sharing_buttons"))}};return window.addEventListener("scroll",a,{passive:!0}),setTimeout(a,1e3),()=>window.removeEventListener("scroll",a)},[r]);const Ht=(()=>{if(!r)return null;const c=r.story.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().split(" ").slice(0,25).join(" "),b=(O>0?`Join ${Dt(O)} supporters who signed '${r.title}'. `:`Sign the petition: '${r.title}'. `)+c,x=b.length>155?b.substring(0,152)+"...":b;return{title:r.title,description:x,imageUrl:r.effective_image_url||r.s3_image_url||r.main_image_url||"/images/default-petition-800x400.jpg",preloadImage:(r.effective_image_url||r.s3_image_url||r.main_image_url||"/images/default-petition-800x400.jpg").replace("animal-hero-petition-images.s3.us-east-2.amazonaws.com","d3k2zc16bxon5l.cloudfront.net"),url:`/petition/${r.slug}`,type:"article"}})(),V=Ht?Ro(Ht):null;h.useEffect(()=>{const o=new URLSearchParams(window.location.search);if(o.has("utm_source")||o.has("fbclid")||o.has("utm_id")){const c={utm_source:o.get("utm_source")||(o.get("utm_id")?"FB":null),utm_campaign:o.get("utm_campaign")||o.get("utm_id"),utm_medium:o.get("utm_medium"),utm_content:o.get("utm_content"),utm_term:o.get("utm_term"),fbclid:o.get("fbclid"),gclid:o.get("gclid"),ad_set_id:o.get("as"),captured_at:new Date().toISOString(),entry_petition_id:r?.petition_id,entry_url:window.location.href};localStorage.setItem("session_attribution",JSON.stringify(c)),console.log("💾 Saved session attribution for payments:",c)}},[]),h.useEffect(()=>{const o=localStorage.getItem("auth_token"),c=localStorage.getItem("user_data");if(o&&o.length>10&&c)try{const a=JSON.parse(c);a&&a.id&&(a.full_name||a.name)&&a.email?(w(b=>({...b,name:a.full_name||a.name||"",email:a.email||"",country:b.country,display_name:b.display_name,keep_updated:b.keep_updated})),ze(!0)):(localStorage.removeItem("user_data"),ze(!1))}catch{localStorage.removeItem("user_data"),ze(!1)}else{!o&&c&&localStorage.removeItem("user_data");try{const a=Et.getQuickSignData();a&&w(b=>({...b,name:a.signer_name,email:a.signer_email,country:b.country,display_name:b.display_name,keep_updated:b.keep_updated})),ze(!1)}catch{ze(!1)}}},[]);const{variantCode:Ve,recordVariantEvent:Zr,getButtonStyle:Te,getTitleStyle:Kr,getBodyStyle:bt,getSignButtonText:qt,getVariantText:Gt}=Lo(r?.petition_id),{recordSignature:eo,recordShare:Vt,createShortLink:Yt,getAttributionForAPI:to,isReady:Xt}=Co(),Jt=()=>{try{const o=document.cookie.split("saved_signer_info=")[1]?.split(";")[0],c=JSON.parse(o||"{}");return c?.signer_email||c?.email||""}catch{return""}},[Qt,xt]=h.useState({}),Ye=h.useRef(null),yt=h.useRef(null),Zt=h.useRef(!1),Xe=o=>{o==="updates"&&Z.length===0||(P(o),K<=768&&setTimeout(()=>{const c=document.querySelector(".tab-container");c&&(c.scrollLeft=0)},50))},Kt=o=>{const c=new Date(o),b=new Date().getTime()-c.getTime(),x=Math.floor(b/(1e3*60*60*24));if(x===0)return"היום";if(x===1)return"אתמול";if(x<7)return`לפני ${x} ימים`;if(x<30){const v=Math.floor(x/7);return`לפני ${v} שבוע${v>1?"ות":""}`}return c.toLocaleDateString(e==="he"?"he-IL":"en-US",{year:"numeric",month:"long",day:"numeric"})},er=async o=>{if(K>=769){Bt(!0);try{const a=ge(`petitions/${o}/signatures?limit=20&order=desc`),b=await fetch(a);if(b.ok){const x=await b.json();let v=[];x.data&&Array.isArray(x.data)?v=x.data:x.success&&x.signatures&&Array.isArray(x.signatures)?v=x.signatures:Array.isArray(x)&&(v=x);const A=v.map((Y,ve)=>({signature_id:Y.signature_id||Y.id||ve,signer_name:Y.signer_name||Y.name||"Unknown",comment:Y.comment||"",is_anonymous:!!Y.is_anonymous,created_at:Y.created_at||new Date().toISOString()}));pt(A)}else{const x=await b.text();pt([])}}catch{pt([])}finally{Bt(!1)}}},ro=async(o,c)=>{try{const b=await fetch(ge(`petitions/${o}/signatures/total`));if(b.ok){const x=await b.json();
34if(x.success){const v=x.real_signatures||0,A=x.boost_signatures||0;return x.total_signatures||v+A}}else{const x=await fetch(ge(`petitions/${c??o}`));if(x.ok){const v=await x.json(),A=v.total_signatures||v.current_signatures_count||0,Y=v.boost_signatures||0;return A}}}catch{}return r?.current_signatures_count||0},wt=async o=>{const c=o||r;if(c){Ot(!0);try{const a=await fetch(ge(`petitions/${c.slug}/updates`));if(a.ok){const b=await a.json();b.success&&b.updates?He(b.updates):He([])}else He([])}catch{He([])}finally{Ot(!1)}}},oo=()=>{try{const o=localStorage.getItem("attribution_utm_debug");if(o){const c=JSON.parse(o),a=c.attribution||{},b=c.params||{};return{utm_source:a.utm_source||b.utm_source||"direct",utm_medium:a.utm_medium||b.utm_medium||null,utm_campaign:a.utm_campaign||b.utm_campaign||null,utm_content:a.utm_content||b.utm_content||null,utm_term:a.utm_term||b.utm_term||null,ad_id:a.ad_id||a.as||b.as||null,fbclid:a.fbclid||b.fbclid||null,source_type:a.source_type||(b.utm_medium==="paid"?"advertisement":"direct"),source_platform:a.source_platform||b.utm_source||null,referrer_url:a.referrer_url||document.referrer||null,session_id:a.session_id||`fallback_${Date.now()}`,first_visit_at:a.first_visit_at||new Date().toISOString()}}}catch(o){console.error("Error reading attribution data:",o)}return{utm_source:"direct",utm_medium:null,utm_campaign:null,utm_content:null,utm_term:null,ad_id:null,fbclid:null,source_type:"direct",source_platform:null,referrer_url:document.referrer||null,session_id:`fallback_${Date.now()}`,first_visit_at:new Date().toISOString()}},tr=()=>{try{const o=localStorage.getItem("attribution_utm_debug");if(o){const x=JSON.parse(o),v=x.attribution||{},A=x.params||{};return{utm_source:v.utm_source||A.utm_source,utm_medium:v.utm_medium||A.utm_medium,utm_campaign:v.utm_campaign||A.utm_campaign,utm_content:v.utm_content||A.utm_content,utm_term:v.utm_term||A.utm_term,as:v.as||A.as,fbclid:v.fbclid||A.fbclid,source_type:v.source_type,source_platform:v.source_platform,referrer_url:v.referrer_url,session_id:v.session_id,timestamp:new Date().toISOString()}}const c=new URLSearchParams(window.location.search),a={};let b=!1;if(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","as","fbclid"].forEach(x=>{const v=c.get(x);v&&(a[x]=v,b=!0)}),b)return a.timestamp=new Date().toISOString(),a}catch(o){console.error("Error getting UTM data from localStorage:",o)}return null},_t=o=>{if(!o||!o.includes("@"))return H(null),se(!1),!1;const c=o.toLowerCase().trim(),[a,b]=c.split("@");if(!b||!a)return H(null),se(!1),!1;const x=To(c);if(x){const v=Io(x);J(x),se(!1);const A=e==="he"?`התכוונת ל-${v}?`:`Did you mean ${v}?`;return H(A),!1}return H(null),J(null),se(!1),!1},rr=()=>{if(oe){w(o=>({...o,email:oe})),H(null),J(null),se(!0);return}M&&!le&&M.includes("@")&&(w(o=>({...o,email:M})),H(null))},vt=async o=>{o.preventDefault(),pe(null),N(null),W(null),I(null);let c=!1,a=null;if(l?.name_split){const ee=u.first_name.trim().length<1,re=u.last_name.trim().length<1;ee&&(N("נא להזין שם פרטי"),c=!0,a||(a=ce)),re&&(W("נא להזין שם משפחה"),c=!0,a||(a=ce))}else{const ee=u.name.trim().split(/\s+/);u.name.trim().length<1?(pe("נא להזין שם"),c=!0,a||(a=ce)):(ee.length<2||ee.some(re=>re.length===0))&&(pe(e==="he"?"אנא הזן שם מלא (שם פרטי ושם משפחה)":"Please enter your full name (first and last name)"),c=!0,a||(a=ce))}const b=u.email.trim();if(b.length<1?(I("נא להזין כתובת אימייל"),c=!0,a||(a=te)):/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b)||(I("נא להזין כתובת אימייל תקינה"),c=!0,a||(a=te)),c){a?.current?.scrollIntoView({behavior:"smooth",block:"center"});return}const x=u.email.trim().toLowerCase(),[v]=x.split("@");if(v&&!/^[a-z0-9._+-]+$/.test(v)){console.log("Blocked by Whitelist Regex!"),H(e==="he"?"כתובת המייל מכילה תווים לא חוקיים (כמו * או $).":"Email contains invalid characters (like * or $)."),te.current?.scrollIntoView({behavior:"smooth",block:"center"});return}if((ee=>{let re=0;const G=ee.split("@")[0];return/(.)\1{3,}/.test(G)&&(re+=3),/pretend|fake|dummy|test\d{3}/i.test(G)&&(re+=3),/abc|xyz|123456|qwerty/i.test(G)&&(re+=1),G.length>30&&(re+=1),re})(x)>=3&&!je){ue("נא לוודא שכתובת האימייל נכונה כדי לקבל אישור חתימה"),te.current?.scrollIntoView({behavior:"smooth",block:"center"});return}if(je&&j(!1),!Un(x)){console.log("Blocked by Validator.js!"),H(e==="he"?"כתובת מייל לא תקינה":"Invalid email address"),te.current?.scrollIntoView({behavior:"smooth",block:"center"});return}if(v&&(["emailaddress","email:","yourname","example"].some(ee=>v.includes(ee))||v==="email")){H(e==="he"?"נראה שהעתקת בטעות טקסט לדוגמה. אנא הזן כתובת אמיתית.":"It looks like you pasted placeholder text."),te.current?.scrollIntoView({behavior:"smooth",block:"center"});return}if(_t(u.email)){setTimeout(()=>{vt(o)},1200);return}C(!0);const kt=l?.name_split??!1,Re=kt?[u.first_name.trim(),u.last_name.trim()].filter(
34Boolean).join(" "):u.name;try{const ee=Xt?to():oo(),re={name:Re,first_name:kt&&u.first_name.trim()||null,last_name:kt&&u.last_name.trim()||null,email:u.email,country:u.country,keep_updated:u.keep_updated,anonymous:!u.display_name,source_url:(()=>{try{const de=sessionStorage.getItem("utm_session_data")||localStorage.getItem("utm_tracking_data");if(de){const Pe=JSON.parse(de);if(Pe.source_url&&Pe.entry_page===window.location.pathname)return Pe.source_url}}catch{}return window.location.href})(),phone_ab_variant:l?.form_fields_variant??null,...f.trim()?{phone_number:f.trim(),phone_consent_given:!0}:{},...ee},G=await xo(r.petition_id,re);T===10&&(g(de=>({...de,has_phone_record:!0})),Dn({has_phone_record:!0}));const jt=localStorage.getItem("auth_token"),Le=localStorage.getItem("user_data"),ao=!!(jt&&Le),cr={signature_id:G.signature_id||`sig_${Date.now()}`,user_id:ao?JSON.parse(Le).id:null,signer_name:Re,signer_email:u.email,signer_country:u.country||"US",country:u.country,name:Re,email:u.email};if(!jt||!Le)try{const de={email:u.email,full_name:Re,country:u.country||""};localStorage.setItem("user_data",JSON.stringify(de)),Et.saveQuickSignData(Re,u.email)}catch(de){console.error("❌ Failed to save user_data:",de)}if(Ge.trackCompleteRegistration(cr),Qr.trackCompleteRegistration(cr),Xt&&eo(r.petition_id,{anonymous:!u.display_name,has_comment:!1,success:!0}),Ve&&Zr("signature_success",{form_data:{anonymous:!u.display_name,has_comment:!1,country:u.country},attribution_data:ee,variant_context:{variant_code:Ve,petition_id:r?.petition_id,signature_count_at_time:O}}),r){tt.setSignatureData({petition_id:r.petition_id,petition_slug:r.slug,signed_at:new Date().toISOString(),from_signature:!0,signer_name:Re||"",signer_email:u.email||"",signature_id:G.signature?.signature_id||null});const de=Ae.getXRTemplate(),Pe=d||de?.uniqueNumber;let Ct=Number(r.is_approved)===1&&Number(r.is_payment_enabled)===1?`/sign/${r.slug}/hero`:`/share/${r.slug}`;const dr=p();dr?Ct+=`?${dr}`:Pe&&(Ct+=`?XR=${Pe}`),window.location.replace(Ct);return}De(!1),Fe(!1),w({name:"",first_name:"",last_name:"",email:"",country:"",keep_updated:!0,display_name:!0})}catch(ee){const re=ee;if(re?.status===403&&re?.data?.code==="PETITION_CLOSED"){E(G=>G&&{...G,status:"closed"}),Fe(!1),ht("העצומה נסגרה לחתימות");return}if(ee instanceof Error){const G=ee.message;if((G.includes("already been taken")||G.includes("unique")||G.includes("You have already signed")||G.includes("signer_email"))&&r){const Le=Number(r.is_approved)===1&&Number(r.is_payment_enabled)===1?`/sign/${r.slug}/hero`:`/share/${r.slug}`;window.location.replace(Le);return}else G.includes("signer_name")||G.includes("name")?(pe("נא לבדוק את השם שהוזן"),ce.current?.scrollIntoView({behavior:"smooth",block:"center"})):G.includes("422")?(I("נא לבדוק את הפרטים שהוזנו"),te.current?.scrollIntoView({behavior:"smooth",block:"center"})):G.includes("409")||G.includes("suspicious")?(I("נראה שכבר חתמת על עצומה זו ממכשיר זה"),te.current?.scrollIntoView({behavior:"smooth",block:"center"})):ht("משהו השתבש. אנא נסו שוב.")}else ht("שגיאת חיבור לשרת.")}finally{C(!1)}},or=h.useCallback(o=>{w(c=>({...c,name:o})),pe(null)},[]),nr=h.useCallback(o=>{w(c=>({...c,first_name:o})),N(null)},[]),ir=h.useCallback(o=>{w(c=>({...c,last_name:o})),W(null)},[]);h.useEffect(()=>{if(!l?.name_split||!u.name.trim()||u.first_name||u.last_name)return;const{first:o,last:c}=Hn(u.name);w(a=>({...a,first_name:o,last_name:c}))},[l?.name_split,u.name,u.first_name,u.last_name]);const ie=K<=768,Je=r?.ads_disabled===!0,no=Sr(),sr=l?.phone_field_enabled&&!l?.has_phone_record&&(l?.phone_field_visibility==="show_all"||l?.phone_field_visibility==="show_targeted"&&no!=="new"),Ie=l?.labels_inside??!1,Qe="כתובת אימייל",St=()=>{fetch(ge("tracking/sign-form-open"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({petition_id:r.petition_id,visitor_type:Sr(),phone_ab_variant:l?.form_fields_variant??null,device_type:ie?"mobile":"desktop"})}).catch(()=>{})};if(h.useEffect(()=>{r?.petition_id&&Fn(r.petition_id).then(g).catch(()=>{})},[r?.petition_id]),h.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[i]),h.useEffect(()=>{const o=()=>{Xr(window.innerWidth)};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),h.useEffect(()=>{(async()=>{Ue(!0);try{const x=await fetch(ge(`sign/${i}`));if(x.ok){const v=await x.json();if(E(v),v.slug_redirect&&v.canonical_slug&&window.history.replaceState(null,"",`/sign/${v.canonical_slug}`),!v.total_signatures){const A=(v.current_signatures_count||0)+(v.boost_signatures||0)}Ue(!1),er(v.petition_id).catch(A=>{console.error("Failed to load recent signatures:",A)}),wt(v).catch(A=>
34{console.error("Failed to load petition updates:",A)});return}}catch{}const b=yo().find(x=>x.slug===i)||Eo.find(x=>x.slug===i);if(b){const x=wo(),v={...b,current_signatures_count:b.current_signatures_count+(x[b.petition_id]||0)};E(v),b.total_signatures||v.current_signatures_count+(b.boost_signatures||0),await wt(v),Ue(!1)}else Ue(!1)})()},[i]),h.useEffect(()=>{r&&r.petition_id&&(ro(r.petition_id,r.slug),er(r.petition_id))},[r,K]),h.useEffect(()=>{window.location.hash==="#updates"&&P("updates")},[]),h.useEffect(()=>{k==="updates"&&r&&wt()},[k,r]),h.useEffect(()=>{const o=()=>{const c=window.scrollY,a=K<=768;q(a?c>400:!1)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[K]),h.useEffect(()=>{(async()=>{if(r?.petition_id){Ut(!0);try{const c=await bo(r.petition_id);Mt(c),c.has_signed}catch{Mt({has_signed:!1,source:"none",can_sign:!0})}finally{Ut(!1)}}})()},[r?.petition_id]),h.useEffect(()=>{const o=()=>{if(window.innerWidth<=768||!Ye.current||!yt.current){xt({});return}const a=Ye.current.getBoundingClientRect();yt.current.getBoundingClientRect();const b=20,x=document.querySelector("footer")||document.querySelector("[data-footer]")||document.querySelector(".footer"),v=document.querySelector("[data-related-petitions]");let A=!0;if(x){const Y=x.getBoundingClientRect(),lr=window.innerHeight*.67;Y.top<=lr&&(A=!1)}if(v){const Y=v.getBoundingClientRect(),ve=window.innerHeight;Y.top<=ve*.8&&(A=!1)}if(a.top<=b&&A){const Y=K>=1024?320:260,ve=Ye.current.getBoundingClientRect().left;xt({position:"fixed",top:`${b}px`,left:`${ve}px`,width:`${Y}px`,zIndex:10})}else xt({position:"static"})};return window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o,{passive:!0}),o(),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[K,r]),h.useEffect(()=>{if(window.innerWidth<=768){const c=()=>{const a=document.querySelector("[data-related-petitions]");if(a){const b=a.getBoundingClientRect(),x=window.innerHeight;b.top<=x*.8?_e(!0):_e(!1)}};return window.addEventListener("scroll",c,{passive:!0}),c(),()=>{window.removeEventListener("scroll",c)}}},[K,r]),h.useEffect(()=>{!r||!l||Zt.current||ie||(Zt.current=!0,St())},[r?.petition_id,l]),gt||r&&!l)return t.jsx("div",{style:{minHeight:"calc(100vh - 70px)",background:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:t.jsxs("div",{style:{textAlign:"center",maxWidth:"400px"},children:[t.jsx("div",{style:{width:"4rem",height:"4rem",border:"4px solid #f1f5f9",borderTop:"4px solid #10b981",borderRadius:"50%",margin:"0 auto 2rem auto",animation:"spin 1s linear infinite"}}),t.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"600",color:"#1e293b",marginBottom:"0.5rem"},children:"טוען עצומה..."}),t.jsx("p",{style:{fontSize:"1rem",color:"#64748b"},children:"אנא המתן רגע"}),t.jsx("style",{children:`
35              @keyframes spin {
36                0% { transform: rotate(0deg); }
37                100% { transform: rotate(360deg); }
38              }
39              .tab-container::-webkit-scrollbar {
40                display: none;
41              }
42              .tab-container {
43                scrollbar-width: none;
44                -ms-overflow-style: none;
45              }
46            `})]})});if(ne&&r)return t.jsx("div",{style:{minHeight:"calc(100vh - 70px)",background:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:t.jsxs("div",{style:{textAlign:"center",maxWidth:"400px"},children:[t.jsx("div",{style:{width:"3rem",height:"3rem",border:"3px solid #f1f5f9",borderTop:"3px solid #f59e0b",borderRadius:"50%",margin:"0 auto 1.5rem auto",animation:"spin 1s linear infinite"}}),t.jsx("h2",{style:{fontSize:"1.25rem",fontWeight:"600",color:"#1e293b",marginBottom:"0.5rem"},children:"בודק סטטוס חתימה..."}),t.jsx("p",{style:{fontSize:"0.875rem",color:"#64748b"},children:"אנא המתן רגע"})]})});if(!r)return t.jsx("div",{style:{textAlign:"center",padding:"4rem 2rem",minHeight:"calc(100vh - 70px)",background:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center"},children:t.jsxs("div",{style:{maxWidth:"500px"},children:[t.jsx("div",{style:{fontSize:"4rem",marginBottom:"2rem"},children:"😞"}),t.jsx("h2",{style:{fontSize:"2rem",fontWeight:"700",color:"#1e293b",marginBottom:"1rem"},children:"עצומה לא נמצאה"}),t.jsx("p",{style:{fontSize:"1.125rem",color:"#64748b",marginBottom:"2rem",lineHeight:1.6},children:"העצומה שאתם מחפשים לא קיימת או הוסרה."}),t.jsx("button",{onClick:()=>s("home"),style:{background:"linear-gradient(135deg, #10b981 0%, #059669 100%)",color:"white",border:"none",padding:"1rem 2rem",fontSize:"1.125rem",fontWeight:"600",borderRadius:"12px",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 4px 15px rgba(16, 185, 129, 0.3)"},onMouseOver:o=>o.currentTarget.style.transform="translateY(-2px)",onMouseOut:o=>o.currentTarget.style.transform="translateY(0)",children:"🏠 חזרה לדף הבית"})]})});Math.min((O||0)/(U?.target_signatures||1)*100,100);const io=Number(U?.is_payment_enabled)===1,be=Do(O||0,io,U?.target_signatures||0),so=K>=769,ar=!!(r?.effective_image_url||r?.main_image_url||r?.s3_image_url);return t.jsxs(t.Fragment,{children:[V&&t.jsxs(fo,{children:[t.jsx("title",{children:V.title}),t.jsx("meta",{name:"description",content:V.description}),t.jsx("meta",{property:"og:title",content:V.title}),t.jsx("meta",{property:"og:description",content:V.description}),t.jsx("meta",{property:"og:type",content:V.type}),t.jsx("meta",{property:"og:url",content:V.url}),V.imageUrl&&t.jsx("meta",{property:"og:image",content:V.imageUrl.startsWith("http")?V.imageUrl:`https://atzuma.co.il${V.imageUrl}`}),t.jsx("meta",{property:"og:site_name",content:"עצומה"}),t.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),t.jsx("meta",{name:"twitter:title",content:V.title}),t.jsx("meta",{name:"twitter:description",content:V.description}),V.imageUrl&&t.jsx("meta",{name:"twitter:image",content:V.imageUrl.startsWith("http")?V.imageUrl:`https://atzuma.co.il${V.imageUrl}`}),V.preloadImage&&t.jsx("link",{rel:"preload",as:"image",href:V.preloadImage,fetchPriority:"high"}),t.jsx("meta",{name:"robots",content:"index, follow"}),t.jsx("link",{rel:"canonical",href:V.url}),t.jsx("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),t.jsx("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),t.jsx("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),t.jsx("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),t.jsx("link",{rel:"manifest",href:"/site.webmanifest"}),t.jsx("meta",{name:"theme-color",content:"#10B981"})]}),t.jsxs("div",{style:{background:"#ffffff",minHeight:"calc(100vh - 70px)",width:"100%",maxWidth:"100%",paddingTop:K<=768?"0.5rem":"2rem"},children:[t.jsxs("div",{style:{width:"100%",maxWidth:"1280px",margin:"0 auto",padding:"0 16px",background:"#ffffff"},children:[so&&t.jsxs("div",{ref:Ye,style:{display:"flex",alignItems:"flex-start",gap:K>=1024?"2rem":"1rem",padding:"0",maxWidth:"100%",margin:"0 auto",position:"relative"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("h1",{style:Kr({fontSize:"2.5rem",fontWeight:"700",margin:"0 0 1.5rem 0",color:"#1e293b",lineHeight:1.2,wordWrap:"break-word",textAlign:e==="he"?"right":"left",direction:e==="he"?"rtl":"ltr"}),children:r.title}),ar&&t.jsx("div",{style:{marginBottom:"2rem"},children:t.jsx("img",{src:(r.effective_image_url||r.s3_image_url||r.main_image_url||"/images/default-petition-800x400.jpg").replace("animal-hero-petition-images.s3.us-east-2.amazonaws.com","d3k2zc16bxon5l.cloudfront.net"),alt:r.title,loading:"eager",fetchPriority:"high",style:{width:"100%",height:K>=1024?"400px":"260px",objectFit:"cover",borderRadius:"12px",display:"block"}})}),r.status==="victory"&&t.jsx("div",{style:{width:"100%",height:"60px",background:"linear-gradient(135deg, #1a3fa0 0%, #2456c8 100%)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",marginTop:"8px",marginBottom:"1rem"},children:t.jsx("span",{style:{color:"white",fontSize:"1.5rem",fontWeight:"700"},children:"הצלחה"})}),t.jsx("div",{style:{width:"100%",maxWidth:"100%"},children:t.jsxs("div",{style:{marginBottom:"1rem"},children:[Z.length>0&&t.jsxs("div",{className:"tab-container",style:{display:"flex",borderBottom:"2px s
46olid #f1f5f9",overflowX:"auto",marginBottom:"1.5rem",WebkitOverflowScrolling:"touch",justifyContent:"flex-start",alignItems:"center",width:"100%"},children:[t.jsx("button",{style:{padding:"1.25rem 0rem",background:"transparent",color:k==="story"?"#10b981":"#64748b",border:"none",fontWeight:k==="story"?"700":"500",cursor:"pointer",borderBottom:k==="story"?"3px solid #10b981":"none",whiteSpace:"nowrap",fontSize:"1rem",transition:"all 0.2s ease",marginLeft:"2rem"},onClick:()=>Xe("story"),children:"תוכן העצומה"}),t.jsxs("button",{style:{padding:"1.25rem 0rem",background:"transparent",color:k==="updates"?"#10b981":"#64748b",border:"none",fontWeight:k==="updates"?"700":"500",cursor:"pointer",borderBottom:k==="updates"?"3px solid #10b981":"none",whiteSpace:"nowrap",fontSize:"1rem",transition:"all 0.2s ease",marginLeft:"2rem"},onClick:()=>Xe("updates"),children:["עדכונים"," (",Z.length,")"]})]}),t.jsxs("div",{style:{width:"100%",boxSizing:"border-box"},children:[(Z.length===0||k==="story")&&t.jsxs("div",{style:{direction:e==="he"?"rtl":"ltr",width:"100%"},children:[t.jsx("div",{style:bt({fontSize:"1.3rem",lineHeight:1.6,color:"#374151",marginBottom:"2rem"}),className:"petition-content",dir:e==="he"?"rtl":"ltr",dangerouslySetInnerHTML:{__html:r.story}}),t.jsx("style",{children:`
47                              .petition-content h1 {
48                                font-size: 2rem;
49                                font-weight: 700;
50                                color: #111827;
51                                margin: 1.5rem 0 1rem 0;
52                              }
53                              .petition-content h2 {
54                                font-size: 1.75rem;
55                                font-weight: 600;
56                                color: #1f2937;
57                                margin: 1.25rem 0 0.75rem 0;
58                              }
59                              .petition-content h3 {
60                                font-size: 1.5rem;
61                                font-weight: 600;
62                                color: #374151;
63                                margin: 1rem 0 0.5rem 0;
64                              }
65                              .petition-content h4 {
66                                font-size: 1.25rem;
67                                font-weight: 600;
68                                color: #4b5563;
69                                margin: 1rem 0 0.5rem 0;
70                              }
71                              .petition-content h5 {
72                                font-size: 1.125rem;
73                                font-weight: 600;
74                                color: #6b7280;
75                                margin: 0.75rem 0 0.5rem 0;
76                              }
77                              .petition-content strong {
78                                font-weight: 700;
79                                color: #111827;
80                              }
81                              .petition-content img {
82                                max-width: 100%;
83                                height: auto;
84                                border-radius: 8px;
85                                margin: 1rem 0;
86                                display: block;
87                                visibility: visible;
88                                opacity: 1;
89                                background: white;
90                                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
91                              }
92                              .petition-content a {
93                                color: #2563eb;
94                                text-decoration: underline;
95                                font-weight: 500;
96                                cursor: pointer;
97                                transition: all 0.2s ease;
98                              }
99
100                              .petition-content a:hover {
101                                color: #1d4ed8;
102                                text-decoration: underline;
103                                background-color: rgba(37, 99, 235, 0.1);
104                                border-radius: 2px;
105                                padding: 1px 2px;
106                              }
107
108                              .petition-content a:visited {
109                                color: #7c3aed;
110                              }
111
112                              .petition-content a:active {
113                                color: #1e40af;
114                              }
115                            `}),t.jsxs("div",{style:{textAlign:e==="he"?"right":"left",marginBottom:"1.5rem",paddingBottom:"1.5rem",borderBottom:"1px solid #e5e7eb"},children:[t.jsxs("p",{style:{fontSize:"0.8rem",color:"#9ca3af",direction:e==="he"?"rtl":"ltr",marginBottom:"0.75rem"},children:["עצומה נוצרה ב-",r.created_at?new Date(r.created_at).toLocaleDateString(e==="he"?"he-IL":"en-US",{year:"numeric",month:"long",day:"numeric"}):"תאריך לא ידוע"]}),t.jsx("button",{onClick:()=>Q(`/report?petition_id=${r.petition_id}`),style:{background:"none",border:"none",color:"#64748b",fontSize:"0.75rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",padding:"0.25rem 0",textDecoration:"none",direction:e==="he"?"rtl":"ltr"},onMouseOver:o=>{o.currentTarget.style.color="#dc2626",o.currentTarget.style.textDecoration="underline"},onMouseOut:o=>{o.currentTarget.style.color="#64748b",o.currentTarget.style.textDecoration="none"},children:t.jsx("span",{children:"דווח על הפרת מדיניות"})})]}),t.jsx("div",{style:{marginBottom:"2rem",display:"flex",justifyContent:"center",width:"100%"},children:t.jsx(fr,{petition:{petition_id:r.petition_id,slug:r.slug,title:r.title},signerEmail:Jt(),signatureId:null,isHe:e==="he",createShortLink:Yt,recordShare:(o,c,a)=>{Vt(o,c,a),Ge.trackPetitionShare(o)}})}),r.decision_makers&&Array.isArray(r.decision_makers)&&r.decision_makers.length>0&&r.decision_makers.some(o=>o&&o.name&&typeof o.name=="string"&&o.name.trim()!==""&&o.name.trim().toLowerCase()!=="unknown")&&t.jsxs("div",{style:{background:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:"12px",padding:"2rem",marginTop:"2rem",width:"100%",boxSizing:"border-box"},children:[t.jsxs("div",{style:{fontSize:"1.125rem",fontWeight:"700",color:"#1e293b",marginBottom:"1.5rem",textAlign:e==="he"?"right":"left"},children:[" מקבל ההחלטה",r.decision_makers.filter(o=>o&&o.name&&typeof o.name=="string"&&o.name.trim()!==""&&o.name.trim().toLowerCase()!=="unknown").length>1&&"s"]}),r.decision_makers.filter(o=>o&&o.name&&typeof o.name=="string"&&o.name.trim()!==""&&o.name.trim().toLowerCase()!=="unknown").map((o,c)=>t.jsxs("div",{style:{marginBottom:c<r.decision_makers.filter(a=>a&&a.name&&typeof a.name=="string"&&a.name.trim()!==""&&a.name.trim().toLowerCase()!=="unknown").length-1?"1.5rem":"0",padding:"1.5rem",background:"white",borderRadius:"8px",border:"1px solid #e2e8f0",width:"100%",boxSizing:"border-box"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",flexDirection:e==="he"?"row-reverse":"row",marginBottom:"1rem",flexWrap:"wrap"},children:[t.jsx("div",{style:{width:"50px",height:"50px",background:"linear-gradient(135deg, #10b981 0%, #059669 100%)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:"700",fontSize:"1.25rem",flexShrink:0},children:o.name.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:"1.125rem",fontWeight:"700",color:"#1e293b",textAlign:e==="he"?"right":"left",wordWrap:"break-word",marginBottom:"0.25rem"},children:o.name}),o.title&&t.jsx("div",{style:{fontSize:"1rem",color:"#64748b",textAlign:e==="he"?"right":"left",wordWrap:"break-word"},children:o.title})]})]}),o.organization&&t.jsxs("div",{style:{fontSize:"1rem",color:"#64748b",marginBottom:"1rem",textAlign:e==="he"?"right":"left",wordWrap:"break-word"},children:["🏢 ",o.organization]}),o.email&&t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flexDirection:e==="he"?"row-reverse":"row",flexWrap:"wrap"},children:[t.jsx("span",{style:{fontSize:"1.125rem"},children:"📧"}),t.jsx("a",{href:`mailto:${o.email}`,style:{color:"#10b981",textDecoration:"none",fontSize:"1rem",fontWeight:"500",wordBreak:"break-all"},onMouseOver:a=>a.currentTarget.style.textDecoration="underline",onMouseOut:a=>a.currentTarget.style.textDecoration="none",children:o.email})]})]},c)),t.jsx("div",{style:{marginTop:"1.5rem",padding:"1.5rem",background:"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)",borderRadius:"8px",border:"1px solid #10b981",width:"100%",boxSizing:"border-box"},children:t.jsx("div",{style:{fontSize:"1rem",color:"#065f46",textAlign:e==="he"?"right":"left",lineHeight:1.6,fontWeight:"600",wordWrap:"break-word"},children:"עצומה זו תימסר למקבל/י ההחלטה לעיל כאשר יאספו מספיק חתימות."})})]}),(Jr.filter(o=>o.comment&&o.comment.trim()&&o.comment.trim().length>0),null)]}),k==="updates"&&t.jsx("div",{style:{direction:e==="he"?"rtl":"ltr",width:"100%"},children:Nt?t.jsxs("div",{style:{textAlign:"center",padding:"3rem 2rem",color:"#64748b"},children:[t.jsx("div",{style:{width:"3rem",height:"3rem",border:"3px solid #f1f5f9",borderTop:"3px solid #10b981",borderRadius:"50%",margin:"0 auto 2rem auto",animation:"spin 1s linear infinite"}}),t.jsx("h3",{style:{fontSize:"1.25rem",fontWeight:"600",color:"#374151"},children:"טוען עדכונים..."})]}):Z.length>0?t.jsx("div",{children:Z.map((o,c)=>t.jsxs("div",{style:{marginBottom:c<Z.length-1?"2.5rem":"0",padding:"0 0 2.5rem 0",borderBottom:c<Z.length-1?"1px solid #e5e7eb":"none"},children:[t.jsxs("div",{style:{marginBottom:"1.25rem"},children:[t.jsx("h4",{style:{marginBottom:"1rem",color:"#1e293b",fontSize:"1.5rem",fontWeight:"700",wordWrap:"break-word"},children:o.title}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",fontSize:"0.875rem",color:"#64748b",flexWrap:"wrap"},children:[t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[t.jsx("span",{children:"📅"}),t.jsx("span",{children:Kt(o.created_at)})]}),o.emailed_to_signers&&t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[t.jsx("span",{children:"📧"}),t.jsx("span",{children:"נשלח לתומכים באימייל"})]})]})]}),o.image_url&&t.jsx("div",{style:{marginBottom:"1.25rem"},children:t.jsx("img",{src:o.image_url,alt:"Update",style:{width:"100%",maxHeight:"400px",objectFit:"cover",borderRadius:"8px"}})}),t.jsx("div",{style:{color:"#374151",lineHeight:1.7,fontSize:"1.125rem",wordWrap:"break-word",marginBottom:o.video_url?"1.25rem":"0"},dangerouslySetInnerHTML:{__html:o.content}}),o.video_url&&t.jsx("div",{style:{padding:"1.5rem",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",color:"#10b981",fontWeight:"600",flexWrap:"wrap"},children:[t.jsx("span",{style:{fontSize:"1.5rem"},children:"🎥"}),t.jsx("a",{href:o.video_url,target:"_blank",rel:"noopener noreferrer",style:{color:"#10b981",textDecoration:"none",fontWeight:"600",fontSize:"1.125rem",wordBreak:"break-all"},onMouseOver:a=>a.currentTarget.style.textDecoration="underline",onMouseOut:a=>a.currentTarget.style.textDecoration="none",children:"צפה בסרטון"})]})})]},o.update_id||c))}):t.jsxs("div",{style:{textAlign:"center",padding:"3rem 2rem",color:"#64748b"},children:[t.jsx("div",{style:{fontSize:"4rem",marginBottom:"2rem"},children:"📋"}),t.jsx("h3",{style:{fontSize:"1.5rem",fontWeight:"700",color:"#374151",marginBottom:"1rem"},children:"אין עדכונים עדיין"}),t.jsx("p",{style:{color:"#64748b",fontSize:"1.125rem",lineHeight:1.6,wordWrap:"break-word"},children:"יוצר העצומה עדיין לא פרסם עדכונים. חזרו מאוחר יותר!"})]})})]})]})})]}),t.jsxs("div",{ref:yt,style:{width:K>=1024?"320px":"260px",flexShrink:0,...Qt},children:[t.jsxs("div",{style:{padding:"1.25rem",border:"1px solid #e5e7eb",borderRadius:"12px",background:"white",display:"flex",flexDirection:"column",boxSizing:"border-box",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.07)"},children:[t.jsxs("div",{style:{textAlign:"center",marginBottom:"1rem"},children:[t.jsx("div",{style:{fontSize:"2.5rem",fontWeight:"700",color:"#059669",marginBottom:"0.25rem"},children:t.jsx(pr,{total:O,isLoading:we})}),t.jsx("div",{style:{color:"#64748b",marginBottom:"0.25rem",fontSize:"0.9rem"},children:"חותמים"})]}),be.showProgressBar&&t.jsxs("div",{style:{marginBottom:"1rem"},children:[t.jsx("div",{style:{height:"12px",borderRadius:"6px",background:"#e5e7eb",overflow:"hidden",marginBottom:"0.5rem"},children:t.jsx("div",{style:{height:"100%",width:`${be.percent}%`,background:"linear-gradient(90deg, #10b981 0%, #3b82f6 100%)",borderRadius:"6px",transition:"width 0.3s ease"}})}),t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"1rem",fontWeight:"600",color:"#374151"}
115,children:[t.jsxs("span",{children:[be.currentCount.toLocaleString("he-IL")," תומכים"]}),t.jsxs("span",{children:["יעד: ",be.goal?.toLocaleString("he-IL")]})]})]}),!ae.has_signed&&!ie&&r.status!=="victory"&&!R?t.jsxs("form",{onSubmit:vt,style:{display:"flex",flexDirection:"column",gap:"1rem",marginBottom:"1rem"},children:[t.jsx(vr,{nameSplit:l?.name_split??!1,labelsInside:l?.labels_inside??!1,language:e,isPrefilledUser:he,nameInputRef:ce,fullName:u.name,nameError:$e,onFullNameChange:or,firstName:u.first_name,lastName:u.last_name,firstNameError:F,lastNameError:B,onFirstNameChange:nr,onLastNameChange:ir}),t.jsxs("div",{children:[t.jsx("label",{className:`mb-2 font-semibold text-gray-700 text-[0.875rem] ${Ie?"hidden":"block"}`,style:{direction:e==="he"?"rtl":"ltr"},children:Qe}),t.jsx("input",{ref:te,type:"email",autoComplete:"new-password","data-lpignore":"true","data-form-type":"other","data-1p-ignore":"true",name:"sf_email",placeholder:Ie?Qe:"",className:`w-full p-3 rounded-lg text-[0.875rem] box-border border-2 ${L?"border-red-500":"border-gray-200"} placeholder:text-[#666] placeholder:opacity-100 ${he?"bg-gray-100 cursor-not-allowed":"bg-white cursor-text"}`,style:{direction:e==="he"?"rtl":"ltr"},value:u.email,onChange:he?void 0:o=>{w({...u,email:o.target.value}),L&&I(null),D&&(ue(null),j(!1))},onBlur:()=>_t(u.email),readOnly:he}),L&&t.jsx("div",{className:"text-[0.8rem] text-red-500 mt-1 font-medium",style:{direction:e==="he"?"rtl":"ltr"},children:L}),M&&!D&&t.jsxs("div",{style:{fontSize:"0.75rem",color:"#000000",marginTop:"0.25rem",fontWeight:"500",direction:e==="he"?"rtl":"ltr"},children:[M,oe&&t.jsx("button",{type:"button",onClick:rr,style:{marginInlineStart:"0.4rem",background:"none",border:"none",padding:0,color:"#005eb6",fontWeight:700,fontSize:"inherit",cursor:"pointer",textDecoration:"underline"},children:e==="he"?"כן, תקנו":"Yes, fix it"})]}),D&&t.jsxs("div",{style:{background:"#fef3c7",border:"1px solid #fde68a",borderRadius:"6px",padding:"0.75rem",marginTop:"0.5rem",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[t.jsxs("div",{style:{fontSize:"0.8rem",color:"#92400e",fontWeight:"500",direction:e==="he"?"rtl":"ltr"},children:["⚠️ ",D]}),t.jsx("button",{type:"button",onClick:()=>{j(!0),ue(null),setTimeout(()=>{const o=document.querySelector("form");if(o){const c=new Event("submit",{cancelable:!0,bubbles:!0});o.dispatchEvent(c)}},100)},style:{background:"transparent",border:"1px solid #10b981",color:"#10b981",padding:"0.4rem 0.8rem",borderRadius:"4px",fontSize:"0.75rem",fontWeight:"600",cursor:"pointer",alignSelf:"flex-start"},children:e==="he"?"✓ כן, הכתובת נכונה":"✓ Yes, this is correct"})]})]}),t.jsx(ur,{showPhoneField:!!sr,labelsInside:Ie,consentText:l?.consent_text,phoneNumber:f,phoneDigitCount:T,setPhoneNumber:S,setPhoneDigitCount:z}),dt.showDisplayNameOption,t.jsx("button",{type:"submit",style:Te({width:"100%",background:D?"#9ca3af":"linear-gradient(135deg, #10b981 0%, #059669 100%)",color:"white",border:"none",padding:"0.875rem",borderRadius:"8px",fontSize:"1rem",fontWeight:"600",cursor:D?"not-allowed":"pointer",opacity:m||ne||D?.7:1,transition:"all 0.2s ease"}),disabled:m||ne||!ae.can_sign||!!D,onMouseOver:o=>!m&&!ne&&!D&&(o.currentTarget.style.transform="translateY(-1px)"),onMouseOut:o=>o.currentTarget.style.transform="translateY(0)",children:ne?"בודק...":m?"חותם...":D?"אנא אשר את האימייל תחילה":t.jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx(Oe,{variant:"white",size:18}),qt({en:"חתימה על העצומה",he:"חתימה על העצומה"},e)]})}),t.jsxs("div",{style:{fontSize:"0.65rem",color:"#9ca3af",lineHeight:1.3,marginTop:"0.75rem",textAlign:"center"},children:["בחתימה על עצומה זו אני מסכים ל",t.jsx("a",{href:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",style:{color:"#2563eb",textDecoration:"underline"},children:"תנאי השימוש"})," ול",t.jsx("a",{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",style:{color:"#2563eb",textDecoration:"underline"},children:"מדיניות הפרטיות"}),", ומאשר כי כחלק מהשירות יישלחו אליי מעת לעת הודעות דיוור/קמפיינים הקשורים לעצומה ולנושאים דומים. הינך יכול לבטל את הרישום בכל עת, בעת קבלת הדיוור או באמצעות ",t.jsx("a",{href:"/contact",style:{color:"#2563eb",textDecoration:"underline"},children:"יצירת קשר"}),"."]})]}):R?t.jsx(Pr,{closedAt:r.closed_at,onHome:()=>Q("/")}):t.jsx("button",{style:Te({width:"100%",background:"linear-gradient(135deg, #dc2626 0%, #b91c1c 100%)",color:"white",border:"none",padding:"1rem",borderRadius:"10px",fontSize:"1rem",fontWeight:"700",cursor:"pointer",transition:"transform 0.2s",boxShadow:"0 4px 15px rgba(220, 38, 38, 0.3)",marginBottom:"0.75rem"}),onClick:async()=>
115{if(r.status==="victory"){Q(`/share/${r.slug}`);return}try{const o=await fetch(`/api/v1/petitions/${r.petition_id}/should-show-hero`,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}});if(o.ok){const c=await o.json();if(c.success&&c.data)if(tt.setHeroContext({petition_id:r.petition_id,petition_slug:r.slug,source:"take_next_step",timestamp:new Date().toISOString(),api_decision:c.data.reason}),c.data.should_show_hero&&Number(r.is_approved)===1&&Number(r.is_payment_enabled)===1){const a=Ae.getXRTemplate(),b=d||a?.uniqueNumber;let x=`/sign/${r.slug}/hero`;const v=p();v?x+=`?${v}`:b&&(x+=`?XR=${b}`);const A=tr();A&&(sessionStorage.setItem("hero_utm_params",JSON.stringify(A)),sessionStorage.setItem("utm_tracking",JSON.stringify(A)),console.log("💾 Saved UTM data for Hero:",A)),Q(x)}else Q(`/share/${r.slug}`);else Q(`/share/${r.slug}`)}else Q(`/share/${r.slug}`)}catch{Q(`/share/${r.slug}`)}},onMouseOver:o=>o.currentTarget.style.transform="translateY(-2px)",onMouseOut:o=>o.currentTarget.style.transform="translateY(0)",children:r.status==="victory"?"שתפו את העצומה":" עזרו לעצומה להגיע ליעד"}),dt.showSignaturesList]}),!Je&&!ie&&t.jsx(rt,{slot:"7072159139"},`${qe.pathname}-7072159139-sidebar`)]}),Qt.position==="fixed"&&t.jsx("div",{style:{width:K>=1024?"320px":"260px",flexShrink:0,marginLeft:"1rem"}})]}),!Je&&!ie&&t.jsx(rt,{slot:"7072159139"},`${qe.pathname}-7072159139-related`),!gt&&r&&r.category&&!ie&&t.jsx(mr,{currentPetitionId:r.petition_id,language:e,onPetitionClick:o=>s(`/petition/${o}`)}),ie&&t.jsxs(t.Fragment,{children:[ar&&t.jsx("div",{style:{position:"relative",width:"100%",maxWidth:"100%"},children:t.jsx("img",{src:(r.effective_image_url||r.s3_image_url||r.main_image_url||"/images/default-petition-800x400.jpg").replace("animal-hero-petition-images.s3.us-east-2.amazonaws.com","d3k2zc16bxon5l.cloudfront.net"),alt:r.title,loading:"eager",fetchPriority:"high",width:444,height:250,style:{width:"100%",height:"250px",objectFit:"cover"}})}),r.status==="victory"&&t.jsx("div",{style:{width:"100%",height:"60px",background:"linear-gradient(135deg, #1a3fa0 0%, #2456c8 100%)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",marginTop:"8px",marginBottom:"1rem"},children:t.jsx("span",{style:{color:"white",fontSize:"1.5rem",fontWeight:"700"},children:"הצלחה"})}),t.jsx("h1",{style:{fontSize:"1.75rem",fontWeight:700,margin:"1rem 0 0.5rem 0",color:"#1e293b",lineHeight:1.2,wordWrap:"break-word",textAlign:e==="he"?"right":"left",direction:e==="he"?"rtl":"ltr"},children:r.title}),t.jsxs("div",{style:{padding:"0.5rem 0",width:"100%",maxWidth:"100%"},children:[be.showProgressBar&&t.jsxs("div",{style:{width:"100%",marginBottom:"1rem"},children:[t.jsx("div",{style:{height:"12px",borderRadius:"6px",background:"#e5e7eb",overflow:"hidden",marginBottom:"0.5rem"},children:t.jsx("div",{style:{height:"100%",width:`${be.percent}%`,background:"linear-gradient(90deg, #10b981 0%, #3b82f6 100%)",borderRadius:"6px",transition:"width 0.3s ease"}})}),t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"1rem",fontWeight:"600",color:"#374151"},children:[t.jsxs("span",{children:[be.currentCount.toLocaleString("he-IL")," תומכים"]}),t.jsxs("span",{children:["יעד: ",be.goal?.toLocaleString("he-IL")]})]})]}),R?t.jsx(Pr,{closedAt:r.closed_at,onHome:()=>Q("/"),large:!0}):ae.has_signed||r.status==="victory"?t.jsx(t.Fragment,{children:t.jsx("button",{className:"mobile-sign-button",style:Te({width:"100%",background:"linear-gradient(135deg, #dc2626 0%, #b91c1c 100%)",color:"white",border:"none",padding:"1.25rem",borderRadius:"12px",fontSize:"1.4rem",fontWeight:"700",cursor:"pointer",transition:"all 0.2s ease",boxShadow:"0 4px 15px rgba(220, 38, 38, 0.3)",marginBottom:"1rem"}),onClick:async()=>{if(r.status==="victory"){Q(`/share/${r.slug}`);return}try{const o=await fetch(`/api/v1/petitions/${r.petition_id}/should-show-hero`,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}});if(o.ok){const c=await o.json();if(c.success&&c.data)if(tt.setHeroContext({petition_id:r.petition_id,petition_slug:r.slug,source:"take_next_step_mobile",timestamp:new Date().toISOString(),api_decision:c.data.reason}),c.data.should_show_hero&&Number(r.is_approved)===1&&Number(r.is_payment_enabled)===1){const a=Ae.getXRTemplate(),b=d||a?.uniqueNumber;let x=`/sign/${r.slug}/hero`;const v=p();v?x+=`?${v}`:b&&(x+=`?XR=${b}`);const A=tr();A&&(sessionStorage.setItem("hero_utm_params",JSON.stringify(A)),sessionStorage.setItem("utm_tracking",JSON.stringify(A)),console.log("💾 Saved UTM data for Hero:",A)),Q(x)}else Q(`/share/${r.slug}`);else Q(`/share/${r.slug}`)}else Q(`/share/${r.slug}`)}catch{Q(`/share/${r.slug}`)}},onMouseOver:o=>o.currentTarget.style.transform="translateY(-2px)",onMouseOut:o=>o.currentTarget.style.transform="translateY(0)",children:r.status==="victory"?"שתפו את העצומה":" עזרו לעצומה להגיע ליעד"})}):t.jsx("button",{className:"mobile-sign-button",style:{...Te({width:"100%",background:"linear-gradient(135deg, #10b981 0%, #059669 100%)",color:"white",border:"none",padding:"1.25rem",borderRadius:"12px",fontWeight:"700",cursor:"pointer",transition:"all 0.2s ease",opacity:m||ne?.7:1,boxShadow:"0 4px 20px rgba(16, 185, 129, 0.3)"})},onClick:()=>{ie&&(St(),Fe(!0))},disabled:m||ne||!ae.can_sign,onMouseOver:o=>!m&&!ne&&(o.currentTarget.style.transform="translateY(-2px)"),onMouseOut:o=>o.currentTarget.style.transform="translateY(0)",children:ne?"בודק...":m?"מעבד...":t.jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx(Oe,{variant:"white",size:22}),"חתימה על העצומה"]})})]}),!Je&&ie&&t.jsx(rt,{slot:"2255904580"},`${qe.pathname}-2255904580-content`),t.jsxs("div",{style:{marginBottom:"1rem",marginTop:"1.5rem"},children:[Z.length>0&&t.jsxs("div",{className:"tab-container",style:{display:"flex",borderBottom:"2px s
115olid #f1f5f9",overflowX:"auto",marginBottom:"1.5rem",WebkitOverflowScrolling:"touch",justifyContent:"flex-start",alignItems:"center",paddingRight:"2rem",width:"100%"},children:[t.jsx("button",{style:{padding:"1rem 0rem",background:"transparent",color:k==="story"?"#10b981":"#64748b",border:"none",fontWeight:k==="story"?"700":"500",cursor:"pointer",borderBottom:k==="story"?"3px solid #10b981":"none",whiteSpace:"nowrap",fontSize:"1rem",transition:"all 0.2s ease",minWidth:"fit-content",flexShrink:0,marginLeft:"1.5rem"},onClick:()=>Xe("story"),children:"תוכן העצומה"}),t.jsxs("button",{style:{padding:"1rem 0rem",background:"transparent",color:k==="updates"?"#10b981":"#64748b",border:"none",fontWeight:k==="updates"?"700":"500",cursor:"pointer",borderBottom:k==="updates"?"3px solid #10b981":"none",whiteSpace:"nowrap",fontSize:"1rem",transition:"all 0.2s ease",minWidth:"fit-content",flexShrink:0,marginLeft:"1.5rem"},onClick:()=>Xe("updates"),children:["עדכונים"," (",Z.length,")"]})]}),t.jsxs("div",{style:{width:"100%",boxSizing:"border-box"},children:[(Z.length===0||k==="story")&&t.jsxs("div",{style:{direction:e==="he"?"rtl":"ltr",width:"100%"},children:[t.jsx("div",{style:bt({fontSize:"1.3rem",lineHeight:1.6,color:"#374151",marginBottom:"2rem"}),className:"petition-content",dir:e==="he"?"rtl":"ltr",dangerouslySetInnerHTML:{__html:r.story}}),t.jsx("style",{children:`
116                              .petition-content h1 {
117                                font-size: 2rem;
118                                font-weight: 700;
119                                color: #111827;
120                                margin: 1.5rem 0 1rem 0;
121                              }
122                              .petition-content h2 {
123                                font-size: 1.75rem;
124                                font-weight: 600;
125                                color: #1f2937;
126                                margin: 1.25rem 0 0.75rem 0;
127                              }
128                              .petition-content h3 {
129                                font-size: 1.5rem;
130                                font-weight: 600;
131                                color: #374151;
132                                margin: 1rem 0 0.5rem 0;
133                              }
134                              .petition-content h4 {
135                                font-size: 1.25rem;
136                                font-weight: 600;
137                                color: #4b5563;
138                                margin: 1rem 0 0.5rem 0;
139                              }
140                              .petition-content h5 {
141                                font-size: 1.125rem;
142                                font-weight: 600;
143                                color: #6b7280;
144                                margin: 0.75rem 0 0.5rem 0;
145                              }
146                              .petition-content strong {
147                                font-weight: 700;
148                                color: #111827;
149                              }
150                              .petition-content img {
151                                max-width: 100%;
152                                height: auto;
153                                border-radius: 8px;
154                                margin: 1rem 0;
155                                display: block;
156                                visibility: visible;
157                                opacity: 1;
158                                background: white;
159                                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
160                              }
161                              .petition-content a {
162                                color: #2563eb;
163                                text-decoration: underline;
164                                font-weight: 500;
165                                cursor: pointer;
166                                transition: all 0.2s ease;
167                              }
168
169                              .petition-content a:hover {
170                                color: #1d4ed8;
171                                text-decoration: underline;
172                                background-color: rgba(37, 99, 235, 0.1);
173                                border-radius: 2px;
174                                padding: 1px 2px;
175                              }
176
177                              .petition-content a:visited {
178                                color: #7c3aed;
179                              }
180
181                              .petition-content a:active {
182                                color: #1e40af;
183                              }
184                            `}),t.jsx("div",{style:{marginBottom:"2rem",display:"flex",justifyContent:"center",width:"100%"},children:t.jsx(fr,{petition:{petition_id:r.petition_id,slug:r.slug,title:r.title},signerEmail:Jt(),signatureId:null,isHe:e==="he",createShortLink:Yt,recordShare:(o,c,a)=>{Vt(o,c,a),Ge.trackPetitionShare(o)}})}),t.jsxs("div",{style:{textAlign:e==="he"?"right":"left",marginBottom:"1.5rem",paddingBottom:"1.5rem",borderBottom:"1px solid #e5e7eb"},children:[t.jsxs("p",{style:{fontSize:"0.8rem",color:"#9ca3af",direction:e==="he"?"rtl":"ltr",marginBottom:"0.75rem"},children:["עצומה נוצרה ב-",r.created_at?new Date(r.created_at).toLocaleDateString(e==="he"?"he-IL":"en-US",{year:"numeric",month:"long",day:"numeric"}):"תאריך לא ידוע"]}),t.jsx("button",{onClick:()=>Q(`/report?petition_id=${r.petition_id}`),style:{background:"none",border:"none",color:"#64748b",fontSize:"0.75rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",padding:"0.25rem 0",textDecoration:"none",direction:e==="he"?"rtl":"ltr"},onMouseOver:o=>{o.currentTarget.style.color="#dc2626",o.currentTarget.style.textDecoration="underline"},onMouseOut:o=>{o.currentTarget.style.color="#64748b",o.currentTarget.style.textDecoration="none"},children:t.jsx("span",{children:"דווח על הפרת מדיניות"})})]}),r.decision_makers&&Array.isArray(r.decision_makers)&&r.decision_makers.length>0&&r.decision_makers.some(o=>o&&o.name&&typeof o.name=="string"&&o.name.trim()!==""&&o.name.trim().toLowerCase()!=="unknown")&&t.jsxs("div",{style:{background:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:"12px",padding:"1.5rem",marginTop:"2rem",width:"100%",boxSizing:"border-box"},children:[t.jsxs("div",{style:{fontSize:"1rem",fontWeight:"700",color:"#1e293b",marginBottom:"1rem",textAlign:e==="he"?"right":"left"},children:[" מקבל ההחלטה",r.decision_makers.filter(o=>o&&o.name&&typeof o.name=="string"&&o.name.trim()!==""&&o.name.trim().toLowerCase()!=="unknown").length>1&&"s"]}),r.decision_makers.filter(o=>o&&o.name&&typeof o.name=="string"&&o.name.trim()!==""&&o.name.trim().toLowerCase()!=="unknown").map((o,c)=>t.jsxs("div",{style:{marginBottom:c<r.decision_makers.filter(a=>a&&a.name&&typeof a.name=="string"&&a.name.trim()!==""&&a.name.trim().toLowerCase()!=="unknown").length-1?"1rem":"0",padding:"1rem",background:"white",borderRadius:"8px",border:"1px solid #e2e8f0",width:"100%",boxSizing:"border-box"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",flexDirection:e==="he"?"row-reverse":"row",marginBottom:"0.75rem",flexWrap:"wrap"},children:[t.jsx("div",{style:{width:"40px",height:"40px",background:"linear-gradient(135deg, #10b981 0%, #059669 100%)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:"700",fontSize:"1rem",flexShrink:0},children:o.name.charAt(0).toUpperCase()}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:"1rem",fontWeight:"700",color:"#1e293b",textAlign:e==="he"?"right":"left",wordWrap:"break-word",marginBottom:"0.25rem"},children:o.name}),o.title&&t.jsx("div",{style:{fontSize:"0.875rem",color:"#64748b",textAlign:e==="he"?"right":"left",wordWrap:"break-word"},children:o.title})]})]}),o.organization&&t.jsxs("div",{style:{fontSize:"0.875rem",color:"#64748b",marginBottom:"0.75rem",textAlign:e==="he"?"right":"left",wordWrap:"break-word"},children:["🏢 ",o.organization]}),o.email&&t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flexDirection:e==="he"?"row-reverse":"row",flexWrap:"wrap"},children:[t.jsx("span",{style:{fontSize:"1rem"},children:"📧"}),t.jsx("a",{href:`mailto:${o.email}`,style:{color:"#10b981",textDecoration:"none",fontSize:"0.875rem",fontWeight:"500",wordBreak:"break-all"},onMouseOver:a=>a.currentTarget.style.textDecoration="underline",onMouseOut:a=>a.currentTarget.style.textDecoration="none",children:o.email})]})]},c))]})]}),k==="updates"&&t.jsx("div",{style:{direction:e==="he"?"rtl":"ltr",width:"100%"},children:Nt?t.jsxs("div",{style:{textAlign:"center",padding:"3rem 2rem",color:"#64748b"},children:[t.jsx("div",{style:{width:"3rem",height:"3rem",border:"3px solid #f1f5f9",borderTop:"3px solid #10b981",borderRadius:"50%",margin:"0 auto 2rem auto",animation:"spin 1s linear infinite"}}),t.jsx("h3",{style:{fontSize:"1.125rem",fontWeight:"600",color:"#374151"},children:"טוען עדכונים..."})]}):Z.length>0?t.jsx("div",{children:Z.map((o,c)=>t.jsxs("div",{style:{marginBottom:c<Z.length-1?"2rem":"0",padding:"0 0 2rem 0",borderBottom:c<Z.length-1?"1px solid #e5e7eb":"none"},children:[t.jsxs("div",{style:{marginBottom:"1rem"},children:[t.jsx("h4",{style:{marginBottom:"0.75rem",color:"#1e293b",fontSize:"1.25rem",fontWeight:"700",wordWrap:"break-word"},children:o.title}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",fontSize:"0.8rem",color:"#64748b",flexWrap:"wrap"},children:[t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[t.jsx("span",{children:"📅"}),t.jsx("span",{children:Kt(o.created_at)})]}),o.emailed_to_signers&&t.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[t.jsx("span",{children:"📧"}),t.jsx("span",{children:"נשלח לתומכים באימייל"})]})]})]}),o.image_url&&t.jsx("div",{style:{marginBottom:"1rem"},children:t.jsx("img",{src:o.image_url,alt:"Update",style:{width:"100%",maxHeight:"300px",objectFit:"cover",borderRadius:"8px"}})}),t.jsx("div",{style:bt({color:"#374151",lineHeight:1.7,fontSize:"1rem",wordWrap:"break-word",marginBottom:o.video_url?"1rem":"0"}),dangerouslySetInnerHTML:{__html:o.content}}),o.video_url&&t.jsx("div",{style:{padding:"1rem",background:"#f8fafc",borderRadius:"8px",border:"1px solid #e2e8f0"},children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",color:"#10b981",fontWeight:"600",flexWrap:"wrap"},children:[t.jsx("span",{style:{fontSize:"1.25rem"},children:"🎥"}),t.jsx("a",{href:o.video_url,target:"_blank",rel:"noopener noreferrer",style:{color:"#10b981",textDecoration:"none",fontWeight:"600",fontSize:"1rem",wordBreak:"break-all"},onMouseOver:a=>a.currentTarget.style.textDecoration="underline",onMouseOut:a=>a.currentTarget.style.textDecoration="none",children:"צפה בסרטון"})]})})]},o.update_id||c))}):t.jsxs("div",{style:{textAlign:"center",padding:"3rem 1rem",color:"#64748b"},children:[t.jsx("div",{style:{fontSize:"3rem",marginBottom:"1.5rem"},children:"📋"}),t.jsx("h3",{style:{fontSize:"1.25rem",fontWeight:"700",color:"#374151",marginBottom:"0.75rem"},children:"אין עדכונים עדיין"}),t.jsx("p",{style:{color:"#64748b",fontSize:"1rem",lineHeight:1.6,wordWrap:"break-word"},children:"יוצר העצומה עדיין לא פרסם עדכונים. חזרו מאוחר יותר!"})]})})]})]}),!Je&&ie&&t.jsx(rt,{slot:"2255904580"},`${qe.pathname}-2255904580-related`),!gt&&r&&r.category&&t.jsx(mr,{currentPetitionId:r.petition_id,language:e,onPetitionClick:o=>s(`/petition/${o}`)}
184)]})]}),Be&&ie&&!Me&&t.jsx("div",{style:{position:"fixed",bottom:0,left:0,right:0,background:"white",padding:"0.75rem 1rem 1rem 1rem",boxShadow:"0 -4px 15px rgba(0, 0, 0, 0.1)",borderTop:"1px solid #e5e7eb",zIndex:50,width:"100%",boxSizing:"border-box"},children:t.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0 1rem"},children:[!ae.has_signed&&O>=100&&t.jsx("div",{style:{textAlign:"center",marginBottom:Ve?"0.4rem":"0.65rem",direction:e==="he"?"rtl":"ltr",width:"100%"},children:t.jsx("div",{style:{fontSize:"0.9rem",color:"#4B5563",fontWeight:"500",lineHeight:1.1},children:(()=>{const o=Ve&&Gt?Gt("progress_text",e):null;if(o){const c=o.replace("{count}",`<span style="font-weight: bold">${Dt(O)}</span>`);return t.jsx("span",{dangerouslySetInnerHTML:{__html:c}})}else return t.jsxs(t.Fragment,{children:["הצטרפו ל-",t.jsx("span",{style:{fontWeight:"bold"},children:t.jsx(pr,{total:O,isLoading:we})})," תומכים"]})})()})}),t.jsx("button",{className:"mobile-sticky-button",style:Te(R?{background:"#6b7280",color:"white",border:"none",padding:"1rem 2rem",borderRadius:"12px",fontSize:"1.3rem",fontWeight:"700",cursor:"pointer",opacity:1,width:"100%",transition:"all 0.2s ease",boxShadow:"none"}:ae.has_signed||r.status==="victory"?{background:"linear-gradient(135deg, #dc2626 0%, #b91c1c 100%)",color:"white",border:"none",padding:"1rem 2rem",borderRadius:"12px",fontSize:"1.46rem",fontWeight:"700",cursor:"pointer",opacity:1,width:"100%",transition:"all 0.2s ease",boxShadow:"0 4px 15px rgba(220, 38, 38, 0.3)"}:{background:"linear-gradient(135deg, #10b981 0%, #059669 100%)",color:"white",border:"none",padding:"1rem 2rem",borderRadius:"12px",fontSize:"1.46rem",fontWeight:"700",cursor:"pointer",opacity:m||ne?.7:1,width:"100%",transition:"all 0.2s ease",boxShadow:"0 4px 15px rgba(16, 185, 129, 0.3)"}),onClick:async()=>{if(R){Q("/");return}if(r.status==="victory"){window.location.href=`/share/${r.slug}`;return}if(ae.has_signed)try{const o=await fetch(`/api/v1/petitions/${r.petition_id}/should-show-hero`,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}});if(o.ok){const c=await o.json();if(c.success&&c.data)if(tt.setHeroContext({petition_id:r.petition_id,petition_slug:r.slug,source:"take_next_step_mobile_sticky",timestamp:new Date().toISOString(),api_decision:c.data.reason}),c.data.should_show_hero&&Number(r.is_approved)===1&&Number(r.is_payment_enabled)===1){const a=Ae.getXRTemplate(),b=d||a?.uniqueNumber;let x=`/sign/${r.slug}/hero`;const v=p();v?x+=`?${v}`:b&&(x+=`?XR=${b}`);try{window.location.replace(x)}catch{window.location.href=x}}else{const a=p(),b=`/share/${r.slug}${a?"?"+a:""}`;try{window.location.replace(b)}catch{window.location.href=b}}else{const a=p(),b=`/share/${r.slug}${a?"?"+a:""}`;try{window.location.replace(b)}catch{window.location.href=b}}}else{const c=p(),a=`/share/${r.slug}${c?"?"+c:""}`;try{window.location.replace(a)}catch{window.location.href=a}}}catch{const c=p(),a=`/share/${r.slug}${c?"?"+c:""}`;try{window.location.replace(a)}catch{window.location.href=a}}else ie&&(St(),Fe(!0))},disabled:!R&&!(ae.has_signed||r.status==="victory")&&(m||ne||!ae.can_sign),onMouseOver:o=>{R||!m&&!ne&&(o.currentTarget.style.transform="translateY(-2px)",o.currentTarget.style.boxShadow=ae.has_signed?"0 6px 20px rgba(220, 38, 38, 0.4)":"0 6px 20px rgba(16, 185, 129, 0.4)")},onMouseOut:o=>{R||(o.currentTarget.style.transform="translateY(0)",o.currentTarget.style.boxShadow=ae.has_signed?"0 4px 15px rgba(220, 38, 38, 0.3)":"0 4px 15px rgba(16, 185, 129, 0.3)")},children:R?"🔒 העצומה נסגרה לחתימות":ae.has_signed||r.status==="victory"?r.status==="victory"?"שתפו את העצומה":" עזרו לעצומה להגיע ליעד":ne?"בודק...":m?"חותם...":t.jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx(Oe,{variant:"white",size:22}),"חתימה על העצומה"]})})]})}),Ce&&ie&&!R&&t.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,padding:"1rem",backdropFilter:"blur(8px)"},onClick:()=>Fe(!1),children:t.jsxs("div",{style:{background:"white",borderRadius:"16px",padding:"1.5rem",width:"100%",maxWidth:"500px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",maxHeight:"90vh",overflowY:"auto",boxSizing:"border-box"},onClick:o=>o.stopPropagation(),children:[t.jsxs("div",{style:{marginBottom:"2rem"},children:[t.jsx("h2",{style:{fontSize:"1.95rem",fontWeight:"700",color:"#1e293b",marginBottom:"0.5rem",direction:e==="he"?"rtl":"ltr"},children:t.jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx(Oe,{variant:"white",size:22}),"חתימה על העצומה"]})}),t.jsx("p",{style:{color:"#64748b",direction:e==="he"?"rtl":"ltr"},children:"הוסף את קולך למטרה חשובה זו"})]}),t.jsxs("form",{onSubmit:vt,children:[t.jsx("div",{style:{marginBottom:"1.5rem"},children:t.jsx(vr,{nameSplit:l?.name_split??!1,labelsInside:l?.labels_inside??!1,language:e,isPrefilledUser:he,nameInputRef:ce,fullName:u.name,nameError:$e,onFullNameChange:or,firstName:u.first_name,lastName:u.last_name,firstNameError:F,lastNameError:B,onFirstNameChange:nr,onLastNameChange:ir})}),t.jsxs("div",{style:{marginBottom:"1.5rem"},children:[t.jsx("label",{className:`mb-2 font-semibold text-gray-700 text-[0.875rem] ${Ie?"hidden":"block"}`,style:{direction:e==="he"?"rtl":"ltr"},children:Qe}),t.jsx("input",{ref:te,type:"email",autoComplete:"new-password","data-lpignore":"true","data-form-type":"other","data-1p-ignore":"true",name:"sf_email",placeholder:Ie?Qe:"",className:`w-full p-3 rounded-lg text-[0.875rem] box-border border-2 ${L?"border-red-500":"border-gray-200"} placeholder:text-[#666] placeholder:opacity-100 ${he?"bg-gray-100 cursor-not-allowed":"bg-white cursor-text"}`,style:{direction:e==="he"?"rtl":"ltr"},value:u.email,onChange:he?void 0:o=>{w({...u,email:o.target.value}),L&&I(null),D&&(ue(null),j(!1))},onBlur:()=>_t(u.email),readOnly:he}),L&&t.jsx("div",{className:"text-[0.8rem] text-red-500 mt-1 font-medium",style:{direction:e==="he"?"rtl":"ltr"},children:L}),M&&!D&&t.jsxs("div",{style:{fontSize:"0.8rem",color:"#000000",marginTop:"0.25rem",fontWeight:"500",direction:e==="he"?"rtl":"ltr"},children:[M,oe&&t.jsx("button",{type:"button",onClick:rr,style:{marginInlineStart:"0.4rem",background:"none",border:"none",padding:0,color:"#005eb6",fontWeight:700,fontSize:"inherit",curs
184or:"pointer",textDecoration:"underline"},children:e==="he"?"כן, תקנו":"Yes, fix it"})]}),D&&t.jsxs("div",{style:{background:"#fef3c7",border:"1px solid #fde68a",borderRadius:"8px",padding:"0.875rem",marginTop:"0.75rem",display:"flex",flexDirection:"column",gap:"0.625rem"},children:[t.jsxs("div",{style:{fontSize:"0.9rem",color:"#92400e",fontWeight:"500",direction:e==="he"?"rtl":"ltr",display:"flex",alignItems:"center",gap:"0.5rem"},children:[t.jsx("span",{children:"⚠️"}),t.jsx("span",{children:D})]}),t.jsx("button",{type:"button",onClick:()=>{j(!0),ue(null),setTimeout(()=>{const o=document.querySelector("form");if(o){const c=new Event("submit",{cancelable:!0,bubbles:!0});o.dispatchEvent(c)}},100)},style:{background:"white",border:"2px solid #10b981",color:"#10b981",padding:"0.625rem 1rem",borderRadius:"6px",fontSize:"0.875rem",fontWeight:"600",cursor:"pointer",alignSelf:"flex-start"},children:e==="he"?"✓ כן, הכתובת נכונה":"✓ Yes, this is correct"})]})]}),t.jsx(ur,{showPhoneField:!!sr,wrapperStyle:{marginBottom:"1rem"},labelsInside:Ie,consentText:l?.consent_text,phoneNumber:f,phoneDigitCount:T,setPhoneNumber:S,setPhoneDigitCount:z}),dt.showDisplayNameOption,t.jsx("button",{type:"submit",style:Te({padding:"0.875rem 1.5rem",background:D?"#9ca3af":"linear-gradient(135deg, #10b981 0%, #059669 100%)",color:"white",border:"none",borderRadius:"8px",fontSize:"1.95rem",fontWeight:"700",cursor:D?"not-allowed":"pointer",opacity:m||D?.7:1,width:"100%",transition:"all 0.2s ease"}),disabled:m||!!D,children:m?"חותם...":D?"אנא אשר את האימייל תחילה":t.jsxs("span",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx(Oe,{variant:"white",size:20}),qt({en:"חתימה על העצומה",he:"חתימה על העצומה"},e)]})}),t.jsxs("div",{style:{fontSize:"0.65rem",color:"#9ca3af",lineHeight:1.3,marginTop:"1rem",textAlign:"center"},children:["בחתימה על עצומה זו אני מסכים ל",t.jsx("a",{href:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",style:{color:"#2563eb",textDecoration:"underline"},children:"תנאי השימוש"})," ול",t.jsx("a",{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",style:{color:"#2563eb",textDecoration:"underline"},children:"מדיניות הפרטיות"}),", ומאשר כי כחלק מהשירות יישלחו אליי מעת לעת הודעות דיוור/קמפיינים הקשורים לעצומה ולנושאים דומים. הינך יכול לבטל את הרישום בכל עת, בעת קבלת הדיוור או באמצעות ",t.jsx("a",{href:"/contact",style:{color:"#2563eb",textDecoration:"underline"},children:"יצירת קשר"}),"."]})]})]})})]}),t.jsx("style",{children:`
185      .mobile-sign-button {
186        font-size: 1.3rem !important;
187      }
188      .mobile-sticky-button {
189        font-size: 1.3rem !important;
190      }
191      .mobile-modal-button {
192        font-size: 1.3rem !important;
193      }
194      .mobile-modal-title {
195        font-size: 1.95rem !important;
196      }
197    `})]})};export{fi as default};
198//# sourceMappingURL=PetitionPage-C-FyYEk3.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.