PageSourceSearch

https://tsofit.org.il/assets/Home-BfV3HCdd.js

js tsofit.org.il collected 2026-10-02 14:22:47 UTC 45,605 bytes, 11 lines download raw bytes

1import{r as d,d3 as j,j as e,h as Y,A as M,d5 as O,aC as J,d as K,Z as ee,aa as te,a4 as se,aq as ae,t as le,R as re}from"./index-BH8Hq4fF.js";import{g as W,b as ne,a as ie}from"./marketingSections-BEV-ouxk.js";import{r as oe,A as $,m as f}from"./proxy-C5fLaq2s.js";import{M as ce}from"./ModuleDemoDashboard-DtfvLndM.js";import{S as de}from"./sparkles-DYMjDKmN.js";import{P as me}from"./personalModules-YCfJZw3V.js";import{P as xe}from"./play-BtMz3qTH.js";import{D as he,a as ue}from"./marketingResultsDefaults-CZ3aE_zu.js";import{Q as U}from"./quote-RoE5wMUA.js";import"./trending-up-CInwOTMb.js";import"./square-check-big-BrCHknOR.js";import"./image-DgoP-ctX.js";import"./circle-user-ClbNby5r.js";import"./activity-CKfqAMQL.js";import"./folder-B0NEXoPZ.js";import"./money-CmD9E_V-.js";import"./generateCategoricalChart-BdpZagc6.js";import"./isEqual-JxrnfUIG.js";import"./tiny-invariant-BaFNuDhB.js";import"./BarChart-BcX6CtaQ.js";import"./PieChart-BecCKbda.js";import"./user-pen-CzOic8sF.js";import"./headphones-U9mAMmky.js";import"./key-round-Dv0zu1qv.js";import"./life-buoy-7W458jwF.js";const pe={some:0,all:1};function ge(t,s,{root:a,margin:l,amount:o="some"}={}){const r=oe(t),n=new WeakMap,c=i=>{i.forEach(m=>{const h=n.get(m.target);if(m.isIntersecting!==!!h)if(m.isIntersecting){const p=s(m);typeof p=="function"?n.set(m.target,p):x.unobserve(m.target)}else typeof h=="function"&&(h(m),n.delete(m.target))})},x=new IntersectionObserver(c,{root:a,rootMargin:l,threshold:typeof o=="number"?o:pe[o]});return r.forEach(i=>x.observe(i)),()=>x.disconnect()}function R(t,{root:s,margin:a,amount:l,once:o=!1}={}){const[r,n]=d.useState(!1);return d.useEffect(()=>{if(!t.current||o&&r)return;const c=()=>(n(!0),o?void 0:()=>n(!1)),x={root:s&&s.current||void 0,margin:a,amount:l};return ge(t.current,c,x)},[s,t,a,o,l]),r}function fe(){var x,i;const{slides:t,loading:s}=j(),[a,l]=d.useState(0),o=d.useCallback(()=>l(m=>(m+1)%Math.max(t.length,1)),[t.length]);if(d.useEffect(()=>{if(t.length<=1)return;const m=setInterval(o,6e3);return()=>clearInterval(m)},[o,t.length]),s)return e.jsx("div",{className:"h-screen bg-slate-900 animate-pulse"});if(!t.length)return null;const r=t[a]||t[0],n=(x=r.primary_button_text)==null?void 0:x.trim(),c=(i=r.secondary_button_text)==null?void 0:i.trim();return e.jsxs("section",{className:"relative h-screen min-h-[600px] overflow-hidden bg-slate-900",children:[e.jsx("img",{src:Y,alt:"ESHUV",className:"absolute top-6 right-6 sm:right-10 z-30 h-12 sm:h-14 w-auto object-contain drop-shadow-lg"}),e.jsx($,{mode:"wait",children:e.jsxs(f.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.8},className:"absolute inset-0",children:[r.background_image&&e.jsx("img",{src:r.background_image,alt:"",className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-slate-900/45"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/85 via-slate-900/25 to-slate-900/60"})]},a)}),e.jsx("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 h-full flex items-center justify-center",children:e.jsx("div",{className:"w-full text-center",children:e.jsx($,{mode:"wait",children:e.jsxs(f.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5,delay:.2},children:[r.label&&e.jsx("span",{className:"inline-block bg-primary/25 text-white px-4 py-1.5 rounded-full text-sm font-bold mb-5 border border-white/25 backdrop-blur-sm",children:r.label}),e.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-black text-white leading-tight mb-4 drop-shadow-[0_2px_20px_rgba(0,0,0,0.5)]",children:r.title}),r.subtitle&&e.jsx("h2",{className:"text-xl sm:text-2xl lg:text-3xl text-white font-bold mb-4 drop-shadow-[0_2px_16px_rgba(0,0,0,0.5)]",children:r.subtitle}),r.description&&e.jsx("p",{className:"text-lg sm:text-xl text-white font-semibold mb-8 leading-relaxed max-w-3xl mx-auto drop-shadow-[0_2px_14px_rgba(0,0,0,0.55)]",children:r.description}),(n||c)&&e.jsxs("div",{className:"flex flex-wrap gap-4 justify-center",children:[n&&e.jsxs("button",{onClick:()=>O("contact"),className:"inline-flex items-center gap-2 bg-primary text-white px-6 py-3.5 rounded-xl font-semibold hover:bg-primary/90 transition-all shadow-xl shadow-primary/30 hover:scale-105",children:[n,e.jsx(M,{className:"w-4 h-4"})]}),c&&e.jsx("button",{onClick:()=>O("modules"),className:"inline-flex items-center gap-2 border-2 border-white/40 text-white px-6 py-3.5 rounded-xl font-semibold hover:bg-white/10 transition-all",children:c})]})]},a)})})}),t.length>1&&e.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex gap-2 z-20",children:t.map((m,h)=>e.jsx("button",{onClick:()=>l(h),className:`h-2 rounded-full transition-all ${h===a?"w-8 bg-primary":"w-2 bg-white/40"}`},h))})]})}function be(){const{galleryItems:t}=j(),s=t.filter(a=>a.gallery_type==="logo");return s.length?e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(f.p,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},className:"text-center text-sm font-medium text-slate-500 mb-8 uppercase tracking-wider",children:"קיבוצים וקהילות שבוטחים במערכת"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-8 items-center",children:s.map((a,l)=>e.jsx(f.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:l*.08},className:"flex items-center justify-center h-16 grayscale hover:grayscale-0 opacity-60 hover:opacity-100 transition-all",children:a.image?e.jsx("img",{src:a.image,alt:a.title,className:"max-h-12 max-w-full object-contain"}):e.jsx("span",{className:"text-lg font-bold text-slate-400",children:a.title})},a.id||l))})]})}):null}const we="linear-gradient(90deg, hsl(var(--primary)), #7c3aed, #06b6d4)";function je(t,s){const a=String(t||"");let l=s;if(!l){const r=a.trim().split(/\s+/);l=r[r.length-1]}const o=l?a.lastIndexOf(l):-1;return o<0?a:e.jsxs(e.Fragment,{children:[a.slice(0,o),e.jsx("span",{style:{backgroundImage:we,WebkitBackgroundClip:"text",backgroundClip:"text",color:"transparent"},children:l}),a.slice(o+l.length)]})}function v({title:t,highlight:s,dark:a=!1,className:l=""}){const o=d.useRef(null),r=R(o,{amount:.4,margin:"0px 0px -8% 0px"}),n=a?"text-white":"text-slate-900",c=x=>({initial:{opacity:0,y:24},animate:r?{opacity:1,y:0}:{opacity:0,y:24},transition:{duration:.6,delay:x,ease:"easeOut"}});return e.jsx("div",{ref:o,className:`text-center max-w-3xl mx-auto mb-7 sm:mb-8 ${l}`,children:e.jsx(f.h2,{...c(0),className:`text-3xl sm:text-4xl lg:text-5xl font-black leading-tight ${n}`,children:je(t,s)})})}const P=[{x:160,y:0},{x:-160,y:0},{x:0,y:-140},{x:0,y:140},{x:160,y:140},{x:-160,y:140}],ve={hidden:t=>({opacity:0,x:t.x,y:t.y,scale:.85}),visible:t=>({opacity:1,x:0,y:0,scale:1,transition:{delay:t.i*.12,type:"spring",stiffness:90,damping:15}})};function ye({sectionTitle:t}){const{features:s,contentBlocks:a}=j(),l=a.find(i=>i.block_type==="why_heading"),o=d.useRef(null),r=R(o,{amount:.15,once:!0}),[n,c]=d.useState(!1);if(d.useEffect(()=>{r&&c(!0)},[r]),d.useEffect(()=>{const i=setTimeout(()=>c(!0),700);return()=>clearTimeout(i)},[]),!s.length)return null;const x=t||(l==null?void 0:l.title)||"למה קהילות בוחרות ב-ESHUV";return e.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden bg-slate-50 py-20",children:[e.jsxs("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute -top-24 right-[-10%] w-[45vw] h-[45vw] rounded-full bg-primary/10 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-24 left-[-10%] w-[40vw] h-[40vw] rounded-full bg-indigo-200/40 blur-3xl"})]}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsx(v,{eyebrow:"היתרונות שלנו",title:x,subtitle:l==null?void 0:l.description}),e.jsx("div",{ref:o,className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:s.map((i,m)=>{const h=W(i.icon),p=P[m%P.length];return e.jsxs(f.div,{custom:{...p,i:m},variants:ve,initial:"hidden",animate:n?"visible":"hidden",className:"bg-white rounded-2xl p-8 shadow-lg hover:shadow-2xl transition-shadow border border-slate-100 group",children:[e.jsx("div",{className:"w-14 h-14 rounded-xl bg-primary/10 flex items-center justify-center mb-5 group-hover:bg-primary transition-colors",children:e.jsx(h,{className:"w-7 h-7 text-primary group-hover:text-white transition-colors"})}),e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-2",children:i.title}),e.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:i.description})]},i.id||m)})})]})]})}function Ne({module:t}){return e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"rounded-t-xl border-[8px] border-b-0 border-slate-800 bg-white overflow-hidden shadow-xl",style:{aspectRatio:"16 / 10"},children:t.image?e.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover"}):e.jsx(ce,{module:t})}),e.jsx("div",{className:"h-3 -mx-[6%] rounded-b-lg bg-gradient-to-b from-slate-300 to-slate-400"})]})}function ke({m:t,accent:s,categoryLabel:a}){const l=t.icon,[o,r]=d.useState(!1);return e.jsxs("article",{dir:"rtl",className:"group relative overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-sm transition-shadow duration-300 hover:shadow-2xl",children:[e.jsx("div",{className:"p-4",children:e.jsx(Ne,{module:{...t,accent:s}})}),e.jsx("button",{type:"button",onClick:()=>r(n=>!n),"aria-expanded":o,className:"absolute inset-0 z-10 w-full h-full cursor-pointer rounded-3xl focus:outline-none focus-visible:ring-4 focus-visible:ring-blue-300",children:e.jsx("span",{className:"sr-only",children:o?`סגירת הפרטים על ${t.title}`:`פרטים על ${t.title}`})}),e.jsxs("div",{className:`absolute inset-0 flex flex-col justify-center transition-transform duration-300 ease-out will-change-transform ${o?"translate-y-0":"translate-y-full"} group-hover:translate-y-0 group-focus-within:translate-y-0`,style:{background:s},"aria-hidden":!o,children:[e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.30))"}}),e.jsxs("div",{className:"relative flex flex-col gap-2 p-5 text-white",style:{textShadow:"0 1px 10px rgba(0,0,0,.25)"},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-lg bg-white/20 flex items-center justify-center flex-shrink-0",children:e.jsx(l,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-[0.6875rem] font-bold text-white/90",children:a})]}),e.jsx("h3",{className:"text-lg font-extrabold leading-tight",children:t.title}),e.jsx("p",{className:"text-sm text-white/90 leading-snug line-clamp-3",children:t.description}),t.actions.length>0&&e.jsx("ul",{className:"flex flex-col gap-1.5 mt-0.5",children:t.actions.slice(0,4).map((n,c)=>e.jsxs("li",{className:"flex items-center gap-2 text-[0.8125rem] text-white",children:[e.jsx(J,{className:"w-3.5 h-3.5 flex-shrink-0"}),e.jsx("span",{children:n})]},c))})]})]})]})}function _e({sectionTitle:t}){const{settings:s}=j(),a=d.useMemo(()=>ne(s==null?void 0:s.module_content),[s]),[l,o]=d.useState(0),r=a.length?a[Math.min(l,a.length-1)]:null;return!a.length||!r?null:e.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden bg-white py-16",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:e.jsx("div",{className:"absolute -top-32 left-[-10%] w-[42vw] h-[42vw] rounded-full blur-3xl",style:{background:`${r.accent}14`}})}),e.jsxs("div",{className:"relative z-10 w-full",children:[e.jsx("div",{className:"px-4 mb-8",children:e.jsx(v,{eyebrow:"ניהול חכם",title:t||"מערכת אחת לכל הקהילה",subtitle:"מערכת מודולרית אחת לכל תחומי הקהילה. בחרו קטגוריה, ועברו עם העכבר על מודול כדי לראות את הפרטים."})}),e.jsx("div",{className:"grid grid-cols-3 gap-2.5 px-4 pb-2 mb-8 md:flex md:flex-wrap md:justify-center",role:"tablist","aria-label":"קטגוריות מודולים",children:a.map((n,c)=>{const x=n.icon,i=c===l;return e.jsxs("button",{role:"tab","aria-selected":i,onClick:()=>o(c),className:`flex flex-col items-center justify-center gap-1.5 text-center aspect-square md:aspect-auto md:flex-row md:text-right md:gap-2.5 rounded-2xl border p-2 md:px-4 md:py-2.5 transition-all bg-white ${i?"shadow-lg":"border-slate-200 hover:shadow-sm hover:-translate-y-0.5"}`,style:i?{borderColor:`${n.accent}99`,background:`${n.accent}0d`,boxShadow:`0 10px 26px -14px ${n.accent}`}:void 0,children:[e.jsx("span",{className:"w-9 h-9 rounded-xl flex items-center justify-center flex-shrink-0",style:{background:`${n.accent}1f`,color:n.accent},children:e.jsx(x,{style:{width:20,height:20}})}),e.jsxs("span",{className:"md:text-right",children:[e.jsx("span",{className:"block text-[0.8125rem] md:text-sm font-bold text-slate-800 leading-tight",children:n.label}),e.jsxs("span",{className:"block text-[0.625rem] md:text-[0.6875rem] text-slate-400",children:[n.modules.length," מודולים"]})]})]},n.key)})}),e.jsx("div",{className:"px-4",children:e.jsx($,{mode:"wait",children:e.jsx(f.div,{initial:{opacity:0,y:8}
1,animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.25},className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5 max-w-7xl mx-auto",children:r.modules.map(n=>e.jsx(ke,{m:n,accent:r.accent,categoryLabel:r.label},n.key))},r.key)})})]})]})}const E=[{letter:"ת",color:"#18a9b5",soft:"#e8f8f8",name:"עוזר התושבים",blurb:"מזהה פרטים חסרים, מאחד משפחות ומסייע לעדכן את מאגר התושבים.",hello:"היי 👋",question:"איך אני יכול לעזור לך היום?",message:"מצאתי 18 רשומות שבהן חסרה כתובת ו־7 תושבים שעדיין לא שויכו למשפחה. אפשר לעבור עליהן יחד.",strong:"18 רשומות",actions:["הצג פרטים חסרים","מצא משפחות לא משויכות","הכן משימת עדכון"]},{letter:"ה",color:"#4d88da",soft:"#edf4ff",name:"עוזר התקשורת",blurb:"מנסח הודעות, בוחר קהלי יעד ומתאים את התוכן לכל ערוץ.",hello:"היי 👋",question:"איזו הודעה תרצו לפרסם?",message:"אפשר לנסח הודעה, להתאים אותה לאתר, לאפליקציה ול־WhatsApp ולבחור את קבוצת התושבים המתאימה.",actions:["נסח הודעה חדשה","בחר קהל יעד","התאם לכל הערוצים"]},{letter:"ט",color:"#8a67cf",soft:"#f3effc",name:"עוזר הטפסים",blurb:"בונה טפסים מקצועיים בשלבים עם שאלות, התניות ואישורים.",hello:"היי 👋",question:"איזה טופס נבנה היום?",message:"תארו לי את מטרת הטופס ואבנה עבורכם שלבים, שאלות, שדות חובה והתניות מוכנות לעריכה.",actions:["טופס הרשמה","טופס דיווח","טופס בקשה"]},{letter:"א",color:"#e18b4f",soft:"#fff3e9",name:"עוזר האירועים",blurb:"יוצר אירוע מלא, הרשמה, תזכורות ותוכן לפרסום בכמה דקות.",hello:"היי 👋",question:"בואו נקים את האירוע הבא",message:"אוכל להכין את פרטי האירוע, טופס ההרשמה, התזכורות והמלל לפרסום – הכול במהלך אחד.",actions:["צור אירוע","הכן הרשמה","נסח פרסום"]},{letter:"ת",color:"#40a36e",soft:"#ebf8f0",name:"עוזר התקציב",blurb:"מנתח ביצוע מול תכנון, מציג חריגות ומסביר מה דורש טיפול.",hello:"היי 👋",question:"איזה נתון תרצו לבדוק?",message:"זיהיתי שלושה סעיפים החורגים מהתכנון החודשי. אפשר לפתוח ניתוח קצר ולראות מה גרם לשינוי.",strong:"שלושה סעיפים",actions:["הצג חריגות","נתח ביצוע","הכן סיכום הנהלה"]},{letter:"מ",color:"#db667b",soft:"#fff0f3",name:"עוזר המשרד",blurb:"מסכם משימות, מסמכים ופניות ומציג למנהל מה מחכה לביצוע.",hello:"היי 👋",question:"מה חשוב לקדם עכשיו?",message:"ריכזתי משימות באיחור, פניות שממתינות למענה ומסמכים הדורשים אישור – לפי סדר עדיפות.",actions:["הצג משימות דחופות","סכם פניות","מצא מסמכים לאישור"]}],Se=8500;function Ie(t,s,a){if(!s||!t.includes(s))return t;const l=t.indexOf(s);return e.jsxs(e.Fragment,{children:[t.slice(0,l),e.jsx("strong",{style:{color:a},children:s}),t.slice(l+s.length)]})}function Ce({assistant:t,active:s,onSelect:a}){return e.jsxs("button",{type:"button",onClick:a,style:{"--c":t.color,"--s":t.soft},className:`group relative overflow-hidden rounded-[21px] p-4 text-right transition-all duration-300 border bg-white ${s?"border-[color:var(--c)]/50 shadow-[0_14px_35px_rgba(38,71,92,0.12)]":"border-slate-200 hover:-translate-y-1 hover:shadow-[0_12px_30px_rgba(38,71,92,0.08)]"}`,children:[e.jsx("span",{className:"absolute -left-11 -bottom-12 w-24 h-24 rounded-full transition-transform duration-300 group-hover:scale-110",style:{background:t.soft}}),e.jsxs("div",{className:"relative flex items-center justify-between gap-2",children:[e.jsx("span",{className:"w-11 h-11 rounded-[15p
1x] grid place-items-center text-xl font-black",style:{background:t.soft,color:t.color},children:t.letter}),e.jsx(M,{className:"w-5 h-5 transition-all",style:{color:s?t.color:"#a6b6c0"}})]}),e.jsx("strong",{className:"relative block mt-3.5 text-[1.0625rem] font-black text-[#17344c]",children:t.name}),e.jsx("span",{className:"relative block mt-1 text-[0.8125rem] leading-relaxed text-[#6d8292]",children:t.blurb})]})}function Ee({assistant:t}){const[s,a]=d.useState(""),[l,o]=d.useState(""),[r,n]=d.useState("hello"),c=d.useRef(0);d.useEffect(()=>{const i=++c.current;let m=[];const h=b=>new Promise(y=>{const N=setTimeout(y,b);m.push(N)}),p=async(b,y,N)=>{const w=Array.from(b);for(let S=0;S<w.length;S++){if(i!==c.current)return!1;y(w.slice(0,S+1).join("")),await h(N)}return!0};return(async()=>(a(""),o(""),n("hello"),await h(180),await p(t.hello,a,60)&&(await h(160),n("question"),await p(t.question,o,42)&&(await h(160),i===c.current&&n("answer")))))(),()=>{m.forEach(clearTimeout)}},[t]);const x=r==="answer";return e.jsxs("div",{className:"flex flex-col min-h-[500px] rounded-[30px] border-2 bg-white overflow-hidden transition-colors duration-500",style:{borderColor:`${t.color}66`,boxShadow:`0 22px 65px rgba(38,71,92,0.10), 0 0 0 4px ${t.color}14`},children:[e.jsx("div",{className:"h-1.5 w-full transition-colors duration-500",style:{background:`linear-gradient(90deg, ${t.color}, ${t.color}55)`}}),e.jsxs("div",{className:"flex items-center justify-between gap-4 px-5 sm:px-6 py-4 border-b border-slate-200",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-12 h-12 rounded-[17px] grid place-items-center text-white shadow-[0_10px_24px_rgba(24,169,181,0.22)]",style:{background:"linear-gradient(145deg, #18a9b5, #4d88da)"},children:e.jsx(de,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("strong",{className:"block text-[1.0625rem] font-black text-[#17344c]",children:t.name}),e.jsxs("span",{className:"flex items-center gap-1.5 mt-0.5 text-xs text-[#6d8292]",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 shadow-[0_0_0_4px_rgba(54,189,119,0.11)]"})," מחובר למערכת וזמין עכשיו"]})]})]}),e.jsxs("div",{className:"flex gap-1.5","aria-hidden":!0,children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-slate-200"}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-slate-200"}),e.jsx("span",{className:"w-2 h-2 rounded-full bg-slate-200"})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-4 px-5 sm:px-7 pt-8 pb-6",style:{background:"radial-gradient(circle at 80% 8%, rgba(24,169,181,0.10), transparent 34%), radial-gradient(circle at 8% 88%, rgba(77,136,218,0.08), transparent 36%)"},children:[e.jsxs("div",{className:"mt-auto pb-1",children:[e.jsxs("div",{className:"min-h-[1.3em] text-2xl sm:text-3xl lg:text-[2.375rem] font-black leading-snug tracking-tight text-[#17344c] text-right",children:[s,r==="hello"&&e.jsx("span",{className:"inline-block w-[3px] h-[1em] align-[-0.1em] mr-1 rounded bg-[#18a9b5] animate-pulse"})]}),e.jsxs("div",{className:"min-h-[1.2em] mt-1 text-xl sm:text-2xl lg:text-[1.875rem] font-bold leading-snug text-[#243e52] text-right",children:[l,r==="question"&&e.jsx("span",{className:"inline-block w-[3px] h-[1em] align-[-0.1em] mr-1 rounded bg-[#18a9b5] animate-pulse"})]})]}),e.jsx("div",{className:`self-start max-w-[88%] rounded-[18px] rounded-bl-[5px] border border-slate-200 bg-white px-4 py-3 text-[0.875rem] leading-relaxed text-[#243e52] shadow-[0_12px_35
1px_rgba(38,71,92,0.08)] transition-all duration-400 ${x?"opacity-100 translate-y-0":"opacity-0 translate-y-3"}`,children:Ie(t.message,t.strong,t.color)}),e.jsx("div",{className:`flex flex-wrap gap-2 transition-all duration-400 ${x?"opacity-100 translate-y-0":"opacity-0 translate-y-2"}`,children:t.actions.map(i=>e.jsx("span",{className:"rounded-full border border-slate-200 bg-white px-3 py-2 text-xs font-bold text-[#243e52]",children:i},i))})]}),e.jsxs("div",{className:"flex items-center gap-2.5 px-4 sm:px-5 py-3.5 border-t border-slate-200 bg-white",children:[e.jsx("span",{className:"flex-1 min-h-[46px] flex items-center px-4 rounded-2xl border border-slate-200 bg-[#f8fbfc] text-sm text-[#8ca0ad]",children:"כתבו לעוזר מה תרצו לבצע…"}),e.jsx("span",{className:"w-11 h-11 rounded-2xl grid place-items-center text-white flex-shrink-0 shadow-[0_10px_22px_rgba(24,169,181,0.20)]",style:{background:"linear-gradient(145deg, #18a9b5, #117f94)"},children:e.jsx(M,{className:"w-5 h-5"})})]})]})}function Ae({sectionTitle:t}){const[s,a]=d.useState(0),l=d.useRef(null),o=d.useCallback(()=>{clearInterval(l.current),l.current=setInterval(()=>a(n=>(n+1)%E.length),Se)},[]);d.useEffect(()=>(o(),()=>clearInterval(l.current)),[o]);const r=n=>{a(n),o()};return e.jsxs("section",{className:"relative overflow-hidden py-16 sm:py-24",dir:"rtl",style:{background:"radial-gradient(circle at 10% 12%, rgba(24,169,181,0.10), transparent 28%),radial-gradient(circle at 91% 20%, rgba(77,136,218,0.09), transparent 26%),linear-gradient(180deg, #ffffff 0%, #f7fafc 45%, #f3f8fa 100%)"},children:[e.jsx("span",{className:"pointer-events-none absolute -left-40 -bottom-44 w-[390px] h-[390px] rounded-full",style:{background:"rgba(24,169,181,0.07)"}}),e.jsx("span",{className:"pointer-events-none absolute -right-24 top-24 w-[260px] h-[260px] rounded-full border-[44px]",style:{borderColor:"rgba(77,136,218,0.055)"}}),e.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(v,{title:t||"עוזרי AI שעובדים בשביל הקהילה",highlight:t?void 0:"AI"}),e.jsxs("div",{className:"grid lg:grid-cols-[0.92fr_1.08fr] gap-6 items-stretch",children:[e.jsxs("div",{className:"order-2 lg:order-1 rounded-[30px] border border-slate-200 bg-white/90 p-5 sm:p-7 shadow-[0_22px_65px_rgba(38,71,92,0.10)]",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 mb-5",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl sm:text-2xl font-black text-[#17344c] leading-tight",children:"העוזרים החכמים שלך"}),e.jsx("p",{className:"mt-1 text-sm text-[#6d8292]",children:"בחרו עוזר וראו איך הוא משתלב בעבודה השוטפת."})]}),e.jsx("span",{className:"min-w-[46px] h-[46px] px-2 grid place-items-center rounded-2xl bg-[#e7f8f8] text-[#117f94] font-black text-lg",children:E.length})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:E.map((n,c)=>e.jsx(Ce,{assistant:n,active:c===s,onSelect:()=>r(c)},n.name))})]}),e.jsx(f.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"order-1 lg:order-2",children:e.jsx(Ee,{assistant:E[s]})})]}),e.jsxs("p",{className:"mt-7 flex items-center justify-center gap-3 text-sm text-[#6d8292]",children:[e.jsx("span",{className:"w-7 h-px bg-slate-200"})," העוזרים פועלים מתוך המודולים ומכירים את הנתונים המורשים למנהל ",e.jsx("span",{className:"w-7 h-px bg-slate-200"})]})]})]})}const G=226,B=470,X=390,Q=G/X,$e=Math.round(B/Q),L=[t=>`גם ${t} איתנו`,t=>`${t} הצטרפו 🎉`,t=>`חדש · גם ${t}`,t=>`${t} כבר בפנים`,t=>`ברוכים הבאים, ${t}`],Me=(t,s)=>L[s%L.length](t);function Re({community:t,index:s}){return e.jsxs("div",{className:"comm-card flex flex-col items-center",children:[e.jsx("div",{className:"relative rounded-[2.4rem] border-[5px] border-slate-800 bg-slate-800 shadow-2xl overflow-hidden",style:{width:G+10,height:B+10},children:e.jsx("iframe",{src:`/kibbutz-site/${t.id}`,title:t.name,loading:"lazy",scrolling:"yes",referrerPolicy:"no-referrer",className:"absolute top-0 right-0 border-0 bg-white",style:{width:X,height:$e,transform:`scale(${Q})`,transformOrigin:"top right"}})}),e.jsx("h3",{className:"text-center text-white font-extrabold text-2xl mt-4",children:t.name}),e.jsxs("span",{className:"mt-2 inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-sm font-bold text-white shadow-lg bg-gradient-to-l from-primary to-cyan-500",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-white/90"}
1),Me(t.name,s)]})]})}function Te({sectionTitle:t}){const{settings:s}=j(),a=Array.isArray(s==null?void 0:s.showcase_communities)?s.showcase_communities.filter(n=>n&&n.id):[];if(!a.length)return null;let l=[...a];for(;l.length<5;)l=[...l,...a];const o=[...l,...l],r=l.length*7;return e.jsxs("section",{className:"relative overflow-hidden bg-slate-900 py-20",children:[e.jsx("style",{children:`
2        @keyframes commScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
3        .comm-track { display: flex; width: max-content; animation: commScroll linear infinite; }
4        .comm-track:hover { animation-play-state: paused; }
5        .comm-track .comm-card { margin-inline-end: 28px; }
6        @media (prefers-reduced-motion: reduce) { .comm-track { animation: none; } }
7      `}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(v,{dark:!0,eyebrow:"קהילות במערכת",title:t||"הקהילות שכבר איתנו",subtitle:"הצצה חיה לעמודי הבית של קהילות שמנוהלות במערכת"})}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-20 z-10 bg-gradient-to-l from-slate-900 to-transparent"}),e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-20 z-10 bg-gradient-to-r from-slate-900 to-transparent"}),e.jsx("div",{dir:"ltr",className:"overflow-hidden px-4",children:e.jsx("div",{className:"comm-track py-2",style:{animationDuration:`${r}s`},children:o.map((n,c)=>e.jsx(Re,{community:n,index:c%l.length},`${n.id}-${c}`))})})]})]})}function ze({mod:t,index:s}){const a=t.icon;return e.jsxs(f.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s%7*.04,duration:.35},whileHover:{y:-4},className:`group relative rounded-2xl bg-white border border-slate-200/80 shadow-sm hover:shadow-md
8                 transition-shadow aspect-[4/3] p-3 flex flex-col items-center justify-center text-center gap-2 overflow-hidden`,children:[e.jsx("span",{className:"absolute inset-x-0 top-0 h-1",style:{backgroundColor:t.color}}),e.jsx("span",{className:"w-11 h-11 sm:w-12 sm:h-12 rounded-xl grid place-items-center flex-none transition-transform group-hover:scale-105",style:{backgroundColor:`${t.color}15`,color:t.color},children:e.jsx(a,{className:"w-5 h-5 sm:w-6 sm:h-6",strokeWidth:1.9,"aria-hidden":"true"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-slate-900 font-bold text-[0.8125rem] sm:text-sm leading-tight",children:t.title}),t.tagline&&e.jsx("p",{className:"text-slate-500 text-[0.625rem] sm:text-[0.6875rem] mt-0.5 leading-snug",children:t.tagline})]})]})}function Ve({sectionTitle:t}){return e.jsx("section",{className:"relative overflow-hidden bg-gradient-to-b from-slate-100/60 via-white to-slate-50 py-14 sm:py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsx(v,{eyebrow:"שירות לתושב",title:t||"אזור שירות אישי לתושב",highlight:t?void 0:"אישי"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-7 gap-3 sm:gap-4",children:me.map((s,a)=>e.jsx(ze,{mod:s,index:a},s.key))})]})})}function T(t){const s=String(t||"").match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/|shorts\/|v\/))([\w-]{11})/);return s?s[1]:null}const Fe=t=>{const s=T(t);return s?`https://img.youtube.com/vi/${s}/hqdefault.jpg`:null},D=t=>{const s=T(t);return s?`https://www.youtube.com/embed/${s}?rel=0&modestbranding=1&iv_load_policy=3&playsinline=1&autoplay=1`:null};function Oe({sectionTitle:t}){const[s,a]=d.useState([]),[l,o]=d.useState(null);return d.useEffect(()=>{let r=!1;return K.entities.AdminPublication.filter({kind:"video",is_active:!0,show_on_site:!0},"display_order",50).then(n=>{r||a((n||[]).filter(c=>T(c.video_url)))}).catch(()=>{r||a([])}),()=>{r=!0}},[]),s.length?e.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-b from-slate-50 via-white to-slate-100/60 py-14 sm:py-20",children:[e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsx(v,{title:t||"חשוב שתראו",highlight:"שתראו"}),e.jsx("div",{className:"flex gap-4 overflow-x-auto pb-3 snap-x snap-mandatory sm:grid sm:grid-cols-2 lg:grid-cols-3 sm:overflow-visible [scrollbar-width:thin]",children:s.map((r,n)=>{const c=Fe(r.video_url);return e.jsxs(f.button,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n%6*.06,duration:.4},onClick:()=>o(r),className:"group snap-center flex-none w-[80vw] sm:w-auto text-right",children:[e.jsxs("div",{className:"relative aspect-video rounded-2xl overflow-hidden bg-slate-900 shadow-lg ring-1 ring-black/5 group-hover:ring-2 group-hover:ring-primary/40 transition-all",children:[c?e.jsx("img",{src:c,alt:"",className:"absolute inset-0 w-full h-full object-cover group-hover:scale-[1.03] transition-transform duration-500",loading:"lazy"}):e.jsx("div",{className:"absolute inset-0"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-trans
8parent to-transparent"}),e.jsx("span",{className:"absolute inset-0 grid place-items-center",children:e.jsx("span",{className:"w-16 h-16 rounded-full bg-red-600/95 grid place-items-center shadow-xl group-hover:scale-110 transition-transform",children:e.jsx(xe,{className:"w-7 h-7 text-white translate-x-[2px]",fill:"currentColor"})})})]}),r.title&&e.jsx("h3",{className:"mt-3 text-slate-800 font-bold text-base sm:text-lg leading-snug line-clamp-2",children:r.title})]},r.id||n)})})]}),l&&e.jsxs("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-3 sm:p-6",dir:"rtl",children:[e.jsx("button",{className:"absolute inset-0 bg-slate-100/75 backdrop-blur-md",onClick:()=>o(null),"aria-label":"סגור"}),e.jsxs("div",{className:"relative w-full max-w-[min(94vw,1200px)] bg-white rounded-3xl shadow-2xl ring-1 ring-slate-200 p-3 sm:p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 px-1 pb-2.5",children:[e.jsx("h3",{className:"text-slate-800 text-sm sm:text-base font-bold truncate",children:l.title||"סרטון"}),e.jsx("button",{onClick:()=>o(null),className:"flex-none w-9 h-9 rounded-full bg-slate-100 hover:bg-slate-200 grid place-items-center text-slate-600 transition-colors","aria-label":"סגור",children:e.jsx(ee,{className:"w-5 h-5"})})]}),e.jsx("div",{className:"relative w-full aspect-video rounded-2xl overflow-hidden bg-black",children:D(l.video_url)?e.jsx("iframe",{src:D(l.video_url),title:l.title||"video",className:"absolute inset-0 w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):e.jsx("div",{className:"absolute inset-0 grid place-items-center text-white/70 text-sm",children:"לא ניתן לטעון את הסרטון"})})]})]})]}):null}function Pe({target:t,prefix:s="",suffix:a="",start:l,delay:o=0}){const r=Number(t)||0,[n,c]=d.useState(0);return d.useEffect(()=>{if(!l)return;let x;const i=setTimeout(()=>{const h=Date.now();x=setInterval(()=>{const p=Math.min((Date.now()-h)/2600,1),b=1-Math.pow(1-p,3);c(Math.round(b*r)),p>=1&&(c(r),clearInterval(x))},16)},o);return()=>{clearTimeout(i),clearInterval(x)}},[l,r,o]),e.jsxs(e.Fragment,{children:[s,n,a]})}function Le({sectionTitle:t}){const{contentBlocks:s,stats:a}=j(),l=s.filter(i=>i.block_type==="step").slice().sort((i,m)=>(i.order??0)-(m.order??0)),o=d.useRef(null),r=R(o,{once:!0,margin:"-60px"}),[n,c]=d.useState(!1);d.useEffect(()=>{const i=setTimeout(()=>c(!0),500);return()=>clearTimeout(i)},[]);const x=r||n;return!l.length&&!a.length?null:e.jsx("section",{className:"relative overflow-hidden bg-gradient-to-b from-white via-slate-50 to-slate-100/60 py-16 sm:py-24",children:e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[l.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsx(v,{eyebrow:"התהליך",title:t||"איך זה עובד",subtitle:"בחמישה שלבים פשוטים למערכת ניהול חכמה",className:"!mb-8"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"hidden lg:block absolute top-11 right-0 left-0 h-0.5 bg-slate-200"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-8",children:l.map((i,m)=>e.jsxs(f.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.1,duration:.45},className:"relative flex items-center gap-4 text-right sm:block sm:text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center rounded-full shadow-xl relative z-10 ring-4 ring-white bg-gradient-to-br from-primary to-primary/70 flex-shrink-0 w-[72px] h-[72px] sm:w-[88px] sm:h-[88px]",children:e.jsx("span",{className:"text-3xl sm:text-5xl font-black text-white tabular-nums leading-none",children:m+1})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"font-bold text-slate-900 mb-1 sm:mt-5 sm:mb-2",children:i.title}),e.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:i.description})]})]},i.id||m))})]})]}),a.length>0&&e.jsxs("div",{className:"relative rounded-[28px] overflow-hidden shadow-[0_30px_80px_-20px_rgba(2,6,23,0.6)] bg-gradient-to-br from-slate-950 via-primary/40 to-slate-900",children:[e.jsx("style",{children:`
9              @keyframes statSweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
10              @keyframes statFloat { 0%,100% { transform: translate3d(0,
100,0); } 50% { transform: translate3d(3%,4%,0); } }
11            `}),e.jsx("div",{className:"pointer-events-none absolute -top-1/3 -right-10 w-[55%] h-[140%] rounded-full blur-3xl opacity-40",style:{background:"radial-gradient(circle, rgba(56,189,248,.55), transparent 60%)",animation:"statFloat 12s ease-in-out infinite"}}),e.jsx("div",{className:"pointer-events-none absolute -bottom-1/3 -left-10 w-[45%] h-[130%] rounded-full blur-3xl opacity-30",style:{background:"radial-gradient(circle, hsl(var(--primary)/.7), transparent 60%)",animation:"statFloat 14s ease-in-out infinite reverse"}}),e.jsx("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:e.jsx("div",{className:"absolute inset-y-0 w-1/3",style:{background:"linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent)",animation:"statSweep 7s linear infinite"}})}),e.jsx("div",{className:"relative z-10 px-6 sm:px-12 py-10 sm:py-12",children:e.jsx("div",{ref:o,className:"grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",children:a.map((i,m)=>{const h=W(i.icon);return e.jsxs(f.div,{initial:{opacity:0,y:44,scale:.96},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0},transition:{delay:m*.18,duration:.5,ease:"easeOut"},whileHover:{y:-6},className:"group rounded-3xl bg-white/[0.08] border border-white/20 backdrop-blur-md px-4 py-8 sm:py-10 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.15)] transition-colors hover:bg-white/[0.14]",children:[e.jsx("span",{className:"inline-flex w-16 h-16 rounded-2xl bg-white/15 ring-1 ring-white/30 items-center justify-center mb-4 shadow-[0_8px_30px_rgba(255,255,255,0.12)] group-hover:scale-110 transition-transform",children:e.jsx(h,{className:"w-8 h-8 text-white drop-shadow"})}),e.jsx("div",{className:"text-5xl sm:text-6xl lg:text-7xl font-black text-white tabular-nums leading-none drop-shadow-[0_2px_16px_rgba(0,0,0,0.35)]",children:e.jsx(Pe,{target:i.value||0,prefix:"+",suffix:i.suffix||"",start:x,delay:m*180})}),e.jsx("h3",{className:"text-white font-extrabold text-lg mt-4",children:i.title}),i.description&&e.jsx("p",{className:"text-sm text-white/75 mt-1",children:i.description})]},i.id||m)})})})]})]})})}const De=[{text:"המערכת עזרה לנו לעשות סדר, לייעל תהליכים ולחבר בין המנהלים לחברי הקיבוץ.",name:"רונן כהן",role:"מנהל קהילה",organization:"קיבוץ גליל ים",rating:5},{text:"סוף סוף יש לנו מערכת אחת שמרכזת הכול, בלי פיזור בין כלים שונים.",name:"מירי לוי",role:"מזכירות קיבוץ",organization:"קיבוץ העמק",rating:5},{text:"המעבר היה חלק, הליווי מעולה, והתושבים אימצו את האפליקציה מהר מאוד.",name:"דוד שרון",role:"מנכ״ל",organization:"מושב שדות",rating:5}],q=[{x:90,y:0,rot:4},{x:-90,y:0,rot:-4},{x:0,y:70,rot:3},{x:0,y:-60,rot:-3},{x:80,y:55,rot:5},{x:-80,y:55,rot:-5}],_=6;function qe(t){const s=[...t||[]];for(let a=s.length-1;a>0;a-=1){const l=Math.floor(Math.random()*(a+1));[s[a],s[l]]=[s[l],s[a]]}return s}function He({m:t}){return e.jsxs("div",{className:"rounded-2xl bg-[#d9f3d0] p-3 shadow-lg h-full",children:[e.jsx("div",{className:"text-[0.6875rem] text-slate-500/80 italic mb-2 px-1",children:"↩ הועברה"}),e.jsxs("div",{className:"rounded-xl rounded-bl-sm bg-white p-3 shadow-sm",children:[e.jsx("div",{className:"text-[0.75rem] font-bold text-green-700 mb-1",children:t.name}),e.jsx("div",{className:"text-sm text-slate-800 whitespace-pre-line leading-relaxed",children:t.text}),e.jsxs("div",{className:"mt-1.5 flex items-center gap-1 text-[0.625rem] text-slate-400",children:[t.time,e.jsx("span",{className:"text-sky-500",children:"✓✓"})]})]})]})}function We({t}){var s;return e.jsxs("div",{className:"rounded-2xl bg-white p-6 border border-slate-200 shadow-lg h-full",children:[e.jsx(U,{className:"w-7 h-7 text-primary/30 mb-3"}),e.jsx("div",{className:"flex gap-1 mb-3",children:Array.from({length:t.rating||5}).map((a,l)=>e.jsx(ae,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},l))}),e.jsxs("p",{className:"text-slate-700 leading-relaxed mb-5",children:['"',t.text,'"']}),e.jsxs("div",{className:"flex items-center gap-3",children:[t.image?e.jsx("img",{src:t.image,alt:t.name,className:"w-11 h-11 rounded-full object-cover"}):e.jsx("div",{className:"w-11 h-11 rounded-full bg-primary text-white flex items-center justify-center font-bold",children:(s=t.name)==null?void 0:s.charAt(0)}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-slate-900",children:t.name}),t.role&&e.jsxs("p",{className:"text-xs text-slate-500",children:[t.role,t.organization?` · ${t.organization}`:""]})]})]})]})}function Ue({p:t}){const s=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"h-24 grid place-items-center bg-gradient-to-br from-primary to-blue-900 text-white font-extrabold tracking-wide overflow-hidden",children:t.image?e.jsx("img",{src:t.image,alt:t.pub,className:"w-full h-full object-cover"}):t.pub}),e.jsxs("div",{className:"p-5",children:[e.jsx("span",{className:"inline-block text-[0.6875rem] font-bold text-primary bg-primary/10 px-2.5 py-1 rounded-full mb-2.5",children:"כתבו עלינו"}),e.jsx("h3",{className:"text-base font-extrabold text-slate-900 leading-snug mb-1.5",children:t.title}),e.jsx("p",{className:"text-[0.8125rem] text-slate-500 mb-3",children:t.excerpt}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-primary font-bold",children:t.link?"לכתבה המלאה ←":""}),e.jsx("span",{className:"text-slate-400",children:t.date})]})]})]}),a="block rounded-2xl bg-white border border-slate-200 shadow-lg overflow-hidden h-full";return t.link?e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:a,children:s}):e.jsx("div",{className:a,children:s})}function Ge({sectionTitle:t}){var F;const{testimonials:s,settings:a}=j(),l=(a==null?void 0:a.results_content)||{},o=Array.isArray(l.messages)&&l.messages.length?l.messages:he,r=Array.isArray(l.press)&&l.press.length?l.press:ue,n=s&&s.length?s:De,c=d.useMemo(()=>[{key:"wa",label:"הודעות",icon:te,items:o,render:(g,u)=>e.jsx(He,{m:g},u)},{key:"tst",label:"המלצות",icon:U,items:n,render:(g,u)=>e.jsx(We,{t:g},u)},{key:"press",label:"כתבות",icon:se,items:r,render:(g,u)=>e.jsx(Ue,{p:g},u)}
11],[o,r,n]),[x,i]=d.useState(0),[m,h]=d.useState(0),p=c[x],b=(((F=p.items)==null?void 0:F.length)||0)>_,y=d.useMemo(()=>b?qe(p.items):p.items||[],[p.key,p.items,b]),N=Math.max(1,Math.ceil(y.length/_)),w=b?m%N:0,S=b?y.slice(w*_,w*_+_):y;d.useEffect(()=>{h(0)},[x]);const A=d.useRef(null),z=d.useRef(0),V=d.useRef(0);d.useEffect(()=>{z.current=x},[x]),d.useEffect(()=>{V.current=m},[m]);const I=d.useCallback(()=>{clearInterval(A.current),A.current=setInterval(()=>{var C;const g=z.current,u=V.current,k=Math.max(1,Math.ceil((((C=c[g].items)==null?void 0:C.length)||0)/_));u+1<k?h(u+1):(h(0),i((g+1)%c.length))},6e3)},[c]);d.useEffect(()=>(I(),()=>clearInterval(A.current)),[I]);const Z=g=>{i(g),h(0),I()};return e.jsx("section",{className:"relative overflow-hidden bg-gradient-to-b from-slate-50 via-white to-slate-100/70 py-16 sm:py-24",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsx(v,{eyebrow:"מספרים עלינו",title:t||"תוצאות והמלצות",highlight:t?void 0:"והמלצות",subtitle:"מה שמשתמשים כותבים לנו, מה שהיישובים מספרים, ומה שכותבים עלינו.",className:"!mb-8"}),e.jsx("div",{className:"grid grid-cols-3 gap-2 mb-10 max-w-md mx-auto sm:flex sm:max-w-none sm:justify-center sm:gap-3",children:c.map((g,u)=>{const k=g.icon,C=u===x;return e.jsxs("button",{onClick:()=>Z(u),className:`flex flex-col items-center justify-center gap-1 py-3 px-2 rounded-2xl text-[0.8125rem] font-bold whitespace-nowrap transition-all sm:flex-row sm:gap-2 sm:h-11 sm:py-0 sm:px-5 sm:rounded-full sm:text-sm ${C?"bg-primary text-white shadow-lg shadow-primary/30":"bg-white text-slate-600 border border-slate-200 hover:border-primary/40"}`,children:[e.jsx(k,{className:"w-4 h-4 flex-shrink-0"}),g.label]},g.key)})}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 items-stretch",children:S.map((g,u)=>{const k=q[u%q.length];return e.jsx(f.div,{initial:{opacity:0,x:k.x,y:k.y,rotate:k.rot,scale:.92},whileInView:{opacity:1,x:0,y:0,rotate:0,scale:1},viewport:{once:!0,amount:.1},transition:{delay:u%6*.08,type:"spring",stiffness:80,damping:14},whileHover:{y:-5},children:p.render(g,u)},u)})},`${p.key}-${w}`),b&&N>1&&e.jsx("div",{className:"flex items-center justify-center gap-2 mt-8",children:Array.from({length:N}).map((g,u)=>e.jsx("button",{onClick:()=>{h(u),I()},"aria-label":`עמוד ${u+1}`,"aria-current":u===w,className:`h-2 rounded-full transition-all ${u===w?"w-6 bg-primary":"w-2 bg-slate-300 hover:bg-slate-400"}`},u))})]})})}const H={hero:{anchor:"home",Component:fe},trust_logos:{Component:be},advantages:{anchor:"advantages",Component:ye},modules:{anchor:"modules",Component:_e},ai_assistants:{anchor:"ai-assistants",Component:Ae},statistics:{anchor:"solutions",Component:Le},app_gallery:{anchor:"communities",Component:Te},personal_area:{anchor:"personal",Component:Ve},testimonials:{anchor:"testimonials",Component:Ge},footer:{Component:null}};function bt(){const{settings:t,loading:s}=j(),a=le(),l=!s&&(t==null?void 0:t.display_mode)==="presentation";if(d.useEffect(()=>{l&&a("/present",{replace:!0})},[l,a]),d.useEffect(()=>{document.documentElement.classList.remove("snap-site")},[]),l)return null;const o=ie(t==null?void 0:t.site_sections);return e.jsx(e.Fragment,{children:o.map(({key:r,type:n,title:c,titleLine2:x})=>{const i=H[r]||H[n];if(!i||!i.Component)return null;const{anchor:m,Component:h}=i;return e.jsxs(re.Fragment,{children:[e.jsx("div",{className:"snap-section",id:m||void 0,children:e.jsx(h,{sectionTitle:c,sectionTitleLine2:x})}),r==="personal_area"&&e.jsx("div",{className:"snap-section",id:"system-videos",children:e.jsx(Oe,{})})]},r)})})}export{bt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.