PageSourceSearch

https://tsofit.org.il/assets/Presentation-bKa8uFfM.js

js tsofit.org.il collected 2026-10-02 14:22:45 UTC 29,054 bytes, 1 lines download raw bytes

1import{r as d,j as e,d3 as C,h as G,aJ as te,aa as se,M as ne,aq as ae,aC as z,d4 as re,t as ie,u as le,aD as oe,aP as ce,Z as de}from"./index-BH8Hq4fF.js";import{g as ue,b as me,a as xe}from"./marketingSections-BEV-ouxk.js";import{H as fe,b as he,t as pe}from"./presentationTheme-ld0SYiS6.js";import{P as ge}from"./personalModules-YCfJZw3V.js";import{m as j,A as ye}from"./proxy-C5fLaq2s.js";import{Q as be}from"./quote-RoE5wMUA.js";import{M as we}from"./ModuleDemoDashboard-DtfvLndM.js";import{C as je}from"./chevron-up-Nk0mcmku.js";import{L as ve}from"./layout-list-CtsQ1wf7.js";import{M as Ne}from"./maximize-D92S8enx.js";import"./trending-up-CInwOTMb.js";import"./sparkles-DYMjDKmN.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"./user-pen-CzOic8sF.js";import"./headphones-U9mAMmky.js";import"./key-round-Dv0zu1qv.js";import"./life-buoy-7W458jwF.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";function B(t){const a=String(t??"");if(typeof Intl<"u"&&"Segmenter"in Intl)try{const u=new Intl.Segmenter("he",{granularity:"grapheme"});return Array.from(u.segment(a),s=>s.segment)}catch{}return Array.from(a)}function P(t){return new Promise(a=>{setTimeout(a,t)})}function ke(){return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function U({eyebrow:t,line1:a="",line2:u="",accent:s="#36dcff",animation:m,visitId:n=0,onComplete:o,className:l=""}){const[r,i]=d.useState(0),[c,x]=d.useState(0),[v,p]=d.useState(!1),[S,f]=d.useState(!1),[g,M]=d.useState(!1),N=d.useRef(o);N.current=o;const k=m||{},b=B(a),_=B(u);d.useEffect(()=>{let w=!1;const D=ke(),L=D||k.enabled===!1||k.type!=="rtl-typing";if(i(0),x(0),p(!1),f(!1),M(!1),L){i(b.length),x(_.length),M(!0);const R=setTimeout(()=>{var E;w||(E=N.current)==null||E.call(N)},D?120:0);return()=>{w=!0,clearTimeout(R)}}const H=k.speedMilliseconds??55,F=k.startDelayMilliseconds??250,O=k.subtitleDelayMilliseconds??180;return(async()=>{var R;if(M(!0),await P(F),!w){p(!0);for(let E=1;E<=b.length;E++){if(w)return;i(E),await P(H)}if(p(!1),_.length){if(await P(O),w)return;f(!0);for(let E=1;E<=_.length;E++){if(w)return;x(E),await P(H)}f(!1)}w||(await P(k.showCursor?500:0),w||(R=N.current)==null||R.call(N))}})(),()=>{w=!0}},[n,a,u,k.enabled,k.type,k.speedMilliseconds,k.startDelayMilliseconds,k.subtitleDelayMilliseconds,b.length,_.length]);const A=k.showCursor!==!1;return e.jsxs("header",{className:`text-center flex flex-col items-center gap-3 ${l}`,children:[t?e.jsx("span",{className:"typing-eyebrow inline-flex items-center px-4 py-1.5 rounded-full text-sm font-bold border",style:{color:s,borderColor:`${s}55`,background:`${s}14`,opacity:g?1:0,transform:g?"translateY(0)":"translateY(6px)",transition:"opacity .4s ease, transform .4s ease"},children:t}):null,a?e.jsx("h1",{className:"typing-title screen-title font-black leading-[1.1]",dir:"rtl","data-typing":v&&A?"true":"false",style:{"--section-accent":s},children:b.slice(0,r).join("")}):null,u?e.jsx("h2",{className:"typing-title screen-title-highlight font-black leading-[1.1]",dir:"rtl","data-typing":S&&A?"true":"false",style:{"--section-accent":s,backgroundImage:fe},children:_.slice(0,c).join("")}):null]})}function T({eyebrow:t,line1:a,line2:u,description:s,accent:m,animation:n,visitId:o,contentClassName:l="",children:r}){const i=!!(t||a||u),[c,x]=d.useState(!i);return d.useEffect(()=>{x(!i)},[o,i]),e.jsxs("div",{className:"screen-safe-area",children:[i&&e.jsxs("div",{className:"screen-heading",children:[e.jsx(U,{eyebrow:t,line1:a,line2:u,accent:m,animation:n,visitId:o,onComplete:()=>x(!0)}),s&&e.jsx(j.p,{className:"screen-description",style:{marginTop:"1.1rem"},initial:{opacity:0,y:8},animate:c?{opacity:1,y:0}:{opacity:0,y:8},transition:{duration:.5},children:s})]}),e.jsx("div",{className:`screen-content ${l}`,children:typeof r=="function"?r(c):r})]})}const Se={comfortable:4,compact:8,dense:12},W=t=>Se[t]||4,$=t=>({initial:{opacity:0,y:22}
1,animate:{opacity:1,y:0},transition:{delay:.12+t*.09,duration:.5,ease:"easeOut"}});function _e({target:t=0,suffix:a="",start:u,duration:s=1400}){const[m,n]=d.useState(0);return d.useEffect(()=>{if(!u){n(0);return}let o;const l=performance.now(),r=i=>{const c=Math.min(1,(i-l)/s),x=1-Math.pow(1-c,3);n(Math.round(t*x)),c<1&&(o=requestAnimationFrame(r))};return o=requestAnimationFrame(r),()=>cancelAnimationFrame(o)},[u,t,s]),e.jsxs("span",{className:"tabular-nums",children:[m.toLocaleString("he-IL"),a]})}function Me({section:t,accent:a,animation:u,visitId:s}){const{slides:m}=C(),n=m&&m.length?m:[],[o,l]=d.useState(0);d.useEffect(()=>{l(0)},[s]),d.useEffect(()=>{if(n.length<2)return;const c=setInterval(()=>l(x=>(x+1)%n.length),7e3);return()=>clearInterval(c)},[n.length,s]);const r=n[o]||{},i=`${s}:${o}`;return e.jsxs(e.Fragment,{children:[r.background_image&&e.jsxs(j.div,{className:"absolute inset-0",initial:{opacity:0,scale:1.05},animate:{opacity:1,scale:1},transition:{duration:1},children:[e.jsx("img",{src:r.background_image,alt:"",className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to left, rgba(6,17,31,0.94), rgba(6,17,31,0.72) 55%, rgba(6,17,31,0.5))"}})]},i),e.jsx(T,{eyebrow:r.label||t.eyebrow,line1:r.title||t.title||"עושים סדר בקהילה",line2:r.subtitle||t.titleLine2,description:r.description,accent:a,animation:u,visitId:i,children:c=>r.primary_button_text||r.secondary_button_text?e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4",style:{opacity:c?1:0,transition:"opacity .5s"},children:[r.primary_button_text&&e.jsx("span",{"data-no-screen-navigation":!0,className:"inline-flex items-center h-12 px-8 rounded-2xl text-white text-base font-bold shadow-lg",style:{background:`linear-gradient(90deg, ${a}, #7c3aed)`},children:r.primary_button_text}),r.secondary_button_text&&e.jsx("span",{"data-no-screen-navigation":!0,className:"inline-flex items-center h-12 px-8 rounded-2xl text-white text-base font-bold border border-white/25",children:r.secondary_button_text})]}):null})]})}function Ee({section:t,accent:a,animation:u,visitId:s}){const{galleryItems:m}=C(),n=(m||[]).filter(o=>o.gallery_type==="logo"&&o.image);return e.jsx(T,{eyebrow:t.eyebrow,line1:t.title,accent:a,animation:u,visitId:s,children:o=>e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-4 md:gap-6",children:(n.length?n:Array.from({length:6}).map((l,r)=>({id:r,image:null}))).slice(0,12).map((l,r)=>e.jsx(j.div,{...$(r),animate:o?$(r).animate:{opacity:0,y:22},className:"glass-card rounded-2xl px-6 py-4 flex items-center justify-center",style:{minWidth:130,height:84},children:l.image?e.jsx("img",{src:l.image,alt:"",className:"max-h-12 max-w-[150px] object-contain"}):e.jsx("span",{className:"text-white/40 text-sm font-bold",children:"קהילה"})},l.id??r))})})}function Ie({section:t,accent:a,animation:u,visitId:s,density:m}){const{features:n,contentBlocks:o}=C(),l=(o||[]).find(x=>x.block_type==="why_heading"),r=(n||[]).slice(0,Math.max(W(m),6)),[i,c]=d.useState(0);return d.useEffect(()=>{if(r.length<2)return;const x=setInterval(()=>c(v=>(v+1)%r.length),2600);return()=>clearInterval(x)},[r.length,s]),e.jsx(T,{eyebrow:t.eyebrow,line1:(l==null?void 0:l.title)||t.title||"למה קהילות בוחרות בנו",description:l==null?void 0:l.description,accent:a,animation:u,visitId:s,children:x=>e.jsx("div",{className:"grid gap-4 w-full",style:{gridTemplateColumns:`repeat(${Math.min(r.length,4)}, minmax(0,1fr))`},children:r.map((v,p)=>{const S=ue(v.icon),f=p===i;return e.jsxs(j.div,{...$(p),animate:x?$(p).animate:{opacity:0,y:22},className:"glass-card rounded-3xl p-5 text-right flex flex-col gap-3",style:{borderColor:f?a:void 0,boxShadow:f?`0 0 30px -6px ${a}`:void 0,background:f?`${a}1f`:void 0},children:[e.jsx("span",{className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:`${a}26`,color:a},children:e.jsx(S,{className:"w-6 h-6"})}),e.jsx("div",{className:"card-title text-lg font-extrabold",children:v.title}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"var(--text-secondary)"},children:v.description})]},v.id||p)})})})}function $e({section:t,accent:a,animation:u,visitId:s}){const{stats:m,contentBlocks:n}=C(),o=(n||[]).find(r=>r.block_type==="banner"),l=(m||[]).slice(0,4);return e.jsx(T,{eyebrow:t.eyebrow,line1:(o==null?void 0:o.title)||t.title||"המספרים מדברים",description:o==null?void 0:o.description,accent:a,animation:u,visitId:s,children:r=>e.jsx("div",{className:"grid gap-6 w-full",style:{gridTemplateColumns:`repeat(${Math.min(l.length||1,4)}, minmax(0,1fr))`},children:l.map((i,c)=>
1e.jsxs(j.div,{...$(c),animate:r?$(c).animate:{opacity:0,y:22},className:"text-center",children:[e.jsx("div",{className:"font-black",style:{color:a,fontSize:"clamp(2.5rem, 5vw, 5rem)",lineHeight:1},children:e.jsx(_e,{target:i.value||0,suffix:i.suffix||"",start:r})}),e.jsx("div",{className:"card-title text-lg font-bold mt-3",children:i.title}),i.description&&e.jsx("p",{className:"text-sm mt-1",style:{color:"var(--text-soft)"},children:i.description})]},i.id||c))})})}function Ce({section:t,accent:a,animation:u,visitId:s,density:m}){const{galleryItems:n}=C(),o=(n||[]).filter(c=>c.gallery_type==="media"&&c.image).map(c=>c.image),l=ge.slice(0,Math.max(W(m),8)),[r,i]=d.useState(0);return d.useEffect(()=>{if(o.length<2)return;const c=setInterval(()=>i(x=>(x+1)%o.length),3500);return()=>clearInterval(c)},[o.length,s]),e.jsx(T,{eyebrow:t.eyebrow,line1:t.title||"אזור אישי לתושב",accent:a,animation:u,visitId:s,children:c=>e.jsxs("div",{className:"w-full grid gap-5 items-center",style:{gridTemplateColumns:o.length?"1.4fr 1fr":"1fr"},children:[e.jsx("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(4, minmax(0,1fr))"},children:l.map((x,v)=>{const p=x.icon;return e.jsxs(j.div,{...$(v),animate:c?$(v).animate:{opacity:0,y:22},className:"glass-card rounded-2xl p-3 flex flex-col items-center gap-1.5 text-center",children:[e.jsx("span",{className:"w-11 h-11 rounded-xl flex items-center justify-center",style:{background:`${x.color}2e`,color:x.color},children:e.jsx(p,{className:"w-5 h-5"})}),e.jsx("span",{className:"card-title text-[0.8125rem] font-bold",children:x.title})]},x.key)})}),o.length>0&&e.jsx(j.div,{initial:{opacity:0,scale:.96},animate:c?{opacity:1,scale:1}:{opacity:0},transition:{delay:.3,duration:.6},className:"rounded-3xl overflow-hidden glass-card aspect-[3/4] max-h-[52vh] mx-auto",children:e.jsx("img",{src:o[r],alt:"",className:"w-full h-full object-cover"},r)})]})})}function Te({section:t,accent:a,animation:u,visitId:s}){const{testimonials:m}=C(),n=(m&&m.length?m:[]).slice(0,3);return e.jsx(T,{eyebrow:t.eyebrow,line1:t.title||"תוצאות והמלצות",accent:a,animation:u,visitId:s,children:o=>n.length?e.jsx("div",{className:"grid gap-5 w-full",style:{gridTemplateColumns:`repeat(${Math.min(n.length,3)}, minmax(0,1fr))`},children:n.map((l,r)=>{var i;return e.jsxs(j.div,{...$(r),animate:o?$(r).animate:{opacity:0,y:22},className:"glass-card rounded-3xl p-6 text-right flex flex-col gap-3",children:[e.jsx(be,{className:"w-7 h-7",style:{color:a}}),e.jsx("div",{className:"flex gap-0.5",children:Array.from({length:l.rating||5}).map((c,x)=>e.jsx(ae,{className:"w-4 h-4",style:{fill:"#fbbf24",color:"#fbbf24"}},x))}),e.jsxs("p",{className:"text-[0.9375rem] leading-relaxed",style:{color:"var(--text-primary)"},children:["“",l.text,"”"]}),e.jsxs("div",{className:"flex items-center gap-3 mt-auto pt-2",children:[l.image?e.jsx("img",{src:l.image,alt:l.name,className:"w-11 h-11 rounded-full object-cover"}):e.jsx("span",{className:"w-11 h-11 rounded-full flex items-center justify-center font-bold text-white",style:{background:a},children:(i=l.name)==null?void 0:i.charAt(0)}),e.jsxs("div",{children:[e.jsx("div",{className:"card-title font-bold",children:l.name}),l.role&&e.jsxs("div",{className:"text-xs",style:{color:"var(--text-soft)"},children:[l.role,l.organization?` · ${l.organization}`:""]})]})]})]},l.id||r)})}):e.jsx("p",{className:"screen-description",children:"אין עדיין המלצות להצגה."})})}function Ae({section:t,accent:a,animation:u,visitId:s}){const{settings:m}=C(),n=m||{},o=n.logo_light||n.logo||G,l=(n.whatsapp||"").replace(/\D/g,"");return e.jsx(T,{eyebrow:t.eyebrow,line1:t.title,accent:a,animation:u,visitId:s,children:r=>e.jsxs(j.div,{initial:{opacity:0,y:18},animate:r?{opacity:1,y:0}:{opacity:0},transition:{duration:.6},className:"flex flex-col items-center gap-8 text-center",children:[e.jsx("img",{src:o,alt:n.site_name||"ESHUV",className:"h-16 w-auto object-contain"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[n.phone&&e.jsxs("a",{href:`tel:${n.phone}`,"data-no-screen-navigation":!0,className:"glass-card rounded-2xl px-5 py-3 flex items-center gap-2 text-white",children:[e.jsx(te,{className:"w-4 h-4",style:{color:a}}),n.phone]}),l&&e.jsxs("a",{href:`https://wa.me/${l}`,target:"_blank",rel:"noopener noreferrer","data-no-screen-navigation":!0,className:"glass-card rounded-2xl px-5 py-3 flex items-center gap-2 text-white",children:[e.jsx(se,{className:"w-4 h-4",style:{color:a}}),"WhatsApp"]}),n.email&&e.jsxs("a",{href:`mailto:${n.email}`,"data-no-screen-navigation":!0,className:"glass-card rounded-2xl px-5 py-3 flex items-center gap-2 text-white",children:[e.jsx(ne,{className:"w-4 h-4",style:{color:a}}),n.email]})]}),e.jsx("p",{className:"text-sm",style:{color:"var(--text-soft)"},children:n.copyright_text||`© ${new Date().getFullYear()} ${n.site_name||"ESHUV"}. כל הזכויות שמורות.`})]})})}function De({section:t,accent:a,animation:u,visitId:s}){return e.jsx(T,{eyebrow:t.eyebrow,line1:t.title||t.label,line2:t.titleLine2,accent:a,animation:u,visitId:s,children:()=>null})}const Le=6500;function Re({section:t,accent:a,animation:u,visitId:s}){const{settings:m}=C(),n=d.useMemo(()=>me(m==null?void 0:m.module_content),[m]),o=d.useMemo(()=>{var g;const f=(g=m==null?void 0:m.presentation_settings)==null?void 0:g.core_slogans;return(f?String(f).split("|"):[t.title||"בחרו תחום ליבה","מערכת אחת לכל הקהילה","הכול במקום אחד"]).filter(
1Boolean)},[m,t.title]),[l,r]=d.useState({}),[i,c]=d.useState(null),[x,v]=d.useState(0);d.useEffect(()=>{r({}),c(null),v(0)},[s]);const p=i?n[i.catIndex]:null,S=p?p.modules[i.moduleIndex]:null;if(d.useEffect(()=>{if(!i||!p)return;if(i.moduleIndex>=p.modules.length){r(g=>({...g,[p.key]:!0})),c(null),v(g=>g+1);return}const f=setTimeout(()=>c(g=>({...g,moduleIndex:g.moduleIndex+1})),Le);return()=>clearTimeout(f)},[i,p]),d.useEffect(()=>{if(!i)return;const f=g=>{g.key==="Escape"&&(g.stopPropagation(),c(null))};return window.addEventListener("keydown",f,!0),()=>window.removeEventListener("keydown",f,!0)},[i]),!n.length)return e.jsx("div",{className:"screen-safe-area",children:e.jsx("p",{className:"screen-description",children:"אין מודולים להצגה."})});if(i&&S){const f={...S,accent:p.accent},g=(S.actions||[]).slice(0,10);return e.jsxs("div",{className:"screen-safe-area","data-no-screen-navigation":!0,style:{justifyContent:"center"},children:[e.jsxs("div",{className:"w-full flex items-center justify-center gap-3 mb-1",children:[e.jsx("span",{className:"text-sm font-bold px-3 py-1 rounded-full text-white",style:{backgroundColor:p.accent},children:p.label}),e.jsx("span",{className:"text-white/40 text-2xl font-light",children:"|"}),e.jsx(U,{line1:S.title,accent:p.accent,animation:u,visitId:`${p.key}-${i.moduleIndex}`,className:"!gap-0"})]}),e.jsxs("div",{className:"w-full grid gap-6 items-center",style:{gridTemplateColumns:"1.15fr 1fr"},children:[e.jsxs(j.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2,duration:.5},className:"mx-auto w-full max-w-xl",children:[S.image?e.jsx("div",{className:"rounded-t-xl border-[8px] border-b-0 border-slate-700 overflow-hidden shadow-2xl bg-white",style:{aspectRatio:"16 / 10"},children:e.jsx("img",{src:S.image,alt:S.title,className:"w-full h-full object-cover"})}):e.jsx("div",{className:"rounded-t-xl border-[8px] border-b-0 border-slate-700 overflow-hidden shadow-2xl bg-white",style:{aspectRatio:"16 / 10"},children:e.jsx(we,{module:f})}),e.jsx("div",{className:"h-3 -mx-[5%] rounded-b-lg bg-gradient-to-b from-slate-500 to-slate-700"})]},`media-${S.key}`),e.jsx("div",{className:"grid grid-cols-2 gap-2.5",children:g.map((M,N)=>e.jsxs(j.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.3+N*.07,duration:.4},className:"glass-card rounded-2xl p-3 flex items-center gap-2",children:[e.jsx("span",{className:"w-6 h-6 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:`${p.accent}33`,color:p.accent},children:e.jsx(z,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"card-title text-[0.8125rem] font-semibold leading-snug",children:M})]},N))})]})]})}return e.jsxs("div",{className:"screen-safe-area",children:[e.jsx("div",{className:"screen-heading",children:e.jsx(U,{eyebrow:t.eyebrow,line1:o[x%o.length],accent:a,animation:u,visitId:`slogan-${x}-${s}`})}),e.jsx("div",{className:"screen-content",children:e.jsx("div",{className:"grid gap-4 w-full",style:{gridTemplateColumns:"repeat(3, minmax(0,1fr))"},children:n.map((f,g)=>{const M=f.icon,N=l[f.key];return e.jsxs(j.button,{"data-no-screen-navigation":!0,whileHover:{y:-6,scale:1.02},whileTap:{scale:.98},onClick:()=>c({catIndex:g,moduleIndex:0}),initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1+g*.07,duration:.45},className:"relative rounded-3xl p-5 text-right glass-card overflow-hidden",style:{background:`linear-gradient(160deg, ${f.accent}26, rgba(255,255,255,0.04))`,borderColor:`${f.accent}66`,boxShadow:`0 14px 44px -16px ${f.accent}`},children:[N&&e.jsx("span",{className:"absolute top-4 left-4 w-7 h-7 rounded-full bg-emerald-400 flex items-center justify-center",children:e.jsx(z,{className:"w-4 h-4 text-white"})}),e.jsx("span",{className:"w-12 h-12 rounded-2xl flex items-center justify-center mb-3",style:{background:`${f.accent}33`,color:f.accent},children:e.jsx(M,{className:"w-6 h-6"})}),e.jsx("div",{className:"card-title text-xl font-extrabold",children:f.label}),e.jsxs("div",{className:"text-xs mt-2",style:{color:"var(--text-soft)"},children:[f.modules.length," מודולים"]})]},f.key)})})})]})}const q=236,K=480,Q=390,X=q/Q,He=Math.round(K/X);function Pe({community:t}){return e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"relative rounded-[2.6rem] border-[6px] border-slate-700 bg-slate-800 shadow-2xl overflow-hidden",style:{width:q+12,height:K+12},children:e.jsx("iframe",{src:`/kibbutz-site/${t.id}`,title:t.name,loading:"lazy",scrolling:"no",referrerPolicy:"no-referrer",className:"absolute top-0 right-0 border-0 bg-white",style:{width:Q,height:He,transform:`scale(${X})`,transformOrigin:"top right"}})}),e.jsx("h3",{className:"card-title font-bold",children:t.name})]})}function Fe({section:t,accent:a,animation:u,visitId:s}){const{settings:m}=C(),n=Array.isArray(m==null?void 0:m.showcase_communities)?m.showcase_communities.filter(i=>i&&i.id):[],[o,l]=d.useState(0);d.useEffect(()=>{l(0)},[s]),d.useEffect(()=>{if(n.length<=3)return;const i=setInterval(()=>l(c=>(c+3)%n.length),8e3);return()=>clearInterval(i)},[n.length,s]);const r=n.length?Array.from({length:Math.min(3,n.length)},(i,c)=>n[(o+c)%n.length]):[];return e.jsx(T,{eyebrow:t.eyebrow,line1:t.title||"הקהילה חיה באפליקציה",accent:a,animation:u,visitId:s,children:i=>r.length?e.jsx("div",{"data-no-screen-navigation":!0,className:"flex items-end justify-center gap-8",style:{opacity:i?1:0,transition:"opacity .6s"},children:r.map((c,x)=>e.jsx(j.div,{initial:{opacity:0,y:26}
1,animate:{opacity:1,y:0},transition:{delay:.15+x*.12,duration:.5},children:e.jsx(Pe,{community:c})},`${c.id}-${o}`))}):e.jsx("p",{className:"screen-description",children:"לא הוגדרו קהילות להצגה."})})}function Oe(t){const{section:a}=t;switch(a.type){case"hero":return e.jsx(Me,{...t});case"trust_logos":return e.jsx(Ee,{...t});case"advantages":return e.jsx(Ie,{...t});case"modules":return e.jsx(Re,{...t});case"statistics":return e.jsx($e,{...t});case"app_gallery":return e.jsx(Fe,{...t});case"personal_area":return e.jsx(Ce,{...t});case"testimonials":return e.jsx(Te,{...t});case"footer":return e.jsx(Ae,{...t});default:return e.jsx(De,{...t})}}function Ye({accent:t="#36dcff",variant:a="orbs"}){return e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":!0,children:[(a==="orbs"||a==="all")&&e.jsxs(e.Fragment,{children:[e.jsx(j.div,{className:"absolute rounded-full blur-3xl",style:{width:"42vw",height:"42vw",background:t,opacity:.12,top:"-12%",right:"-8%"},animate:{y:[0,26,0],x:[0,-18,0]},transition:{duration:16,repeat:1/0,ease:"easeInOut"}}),e.jsx(j.div,{className:"absolute rounded-full blur-3xl",style:{width:"36vw",height:"36vw",background:"#7c3aed",opacity:.1,bottom:"-14%",left:"-6%"},animate:{y:[0,-22,0],x:[0,16,0]},transition:{duration:20,repeat:1/0,ease:"easeInOut"}})]}),(a==="lines"||a==="all")&&e.jsx("div",{className:"absolute inset-0",style:{opacity:.28},children:Array.from({length:6}).map((u,s)=>e.jsx(j.div,{className:"absolute h-px w-full",style:{top:`${14+s*14}%`,background:`linear-gradient(90deg, transparent, ${t}, transparent)`},animate:{x:["-28%","28%","-28%"]},transition:{duration:12+s*2,repeat:1/0,ease:"easeInOut"}},s))}),Array.from({length:18}).map((u,s)=>e.jsx(j.span,{className:"absolute w-1 h-1 rounded-full bg-white/50",style:{to
1p:`${s*41%100}%`,left:`${s*59%100}%`},animate:{y:[0,-16,0],opacity:[.15,.6,.15]},transition:{duration:6+s%5,repeat:1/0,delay:s*.25,ease:"easeInOut"}},s))]})}const Ue='button,a,input,textarea,select,label,video,iframe,[role="button"],[data-interactive],[data-no-screen-navigation]',Ve=60;function ze(t,a){const u=a>=0?"100%":"-100%",s=a>=0?"-45%":"45%";switch(t){case"fade":return{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case"slide-down":return{initial:{opacity:0,y:a>=0?"-100%":"100%"},animate:{opacity:1,y:0},exit:{opacity:0,y:a>=0?"45%":"-45%"}};case"depth":return{initial:{opacity:0,scale:.86,y:40},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:1.08}};case"blur-reveal":return{initial:{opacity:0,filter:"blur(16px)",scale:1.04},animate:{opacity:1,filter:"blur(0px)",scale:1},exit:{opacity:0,filter:"blur(14px)"}};case"light-sweep":return{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case"slide-up":default:return{initial:{opacity:0,y:u},animate:{opacity:1,y:0},exit:{opacity:0,y:s}}}}function Be(){const t=ie(),[a]=le(),u=a.get("preview")==="1",{settings:s,loading:m}=C(),[n,o]=d.useState(0),[l,r]=d.useState(0),[i,c]=d.useState(1),[x,v]=d.useState(!1),[p,S]=d.useState(!1),f=d.useRef(!1),g=d.useRef(null),M=d.useRef(null),N=d.useRef(new Set),k=xe(s==null?void 0:s.site_sections),b=he(s==null?void 0:s.presentation_settings),_=k.length,A=k[Math.min(n,Math.max(_-1,0))];d.useEffect(()=>(document.body.classList.add("presentation-active"),()=>document.body.classList.remove("presentation-active")),[]);const w=d.useCallback((y,h)=>{f.current||y<0||y>=_||y===n||(f.current=!0,c(h),o(y),r(I=>I+1),setTimeout(()=>{f.current=!1},b.transitionMs||800))},[n,_,b.transitionMs]),D=d.useCallback(()=>{if(n>=_-1){b.endBehavior==="loop"&&w(0,1);return}w(n+1,1)},[n,_,b.endBehavior,w]),L=d.useCallback(()=>{n>0&&w(n-1,-1)},[n,w]);d.useEffect(()=>{if(b.navKeyboard===!1)return;const y=h=>{var I;h.key==="ArrowDown"||h.key==="ArrowLeft"?(h.preventDefault(),D()):h.key==="ArrowUp"||h.key==="ArrowRight"?(h.preventDefault(),L()):h.key==="Home"?(h.preventDefault(),w(0,-1)):h.key==="End"?(h.preventDefault(),w(_-1,1)):h.key==="f"||h.key==="F"?H():h.key==="Escape"&&document.fullscreenElement&&((I=document.exitFullscreen)==null||I.call(document))};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[D,L,w,_,b.navKeyboard]);const H=()=>{var y,h,I;document.fullscreenElement?(y=document.exitFullscreen)==null||y.call(document):(I=(h=document.documentElement).requestFullscreen)==null||I.call(h).catch(()=>{})},F=y=>{b.navClick!==!1&&(y.target.closest(Ue)||(y.clientY>window.innerHeight/2?D():L()))},O=y=>{var h;M.current=((h=y.changedTouches[0])==null?void 0:h.clientY)??null},R=y=>{var I;if(b.navTouch===!1||M.current==null)return;if(y.target.closest("[data-no-screen-navigation],iframe,input,textarea,select")){M.current=null;return}const h=(((I=y.changedTouches[0])==null?void 0:I.clientY)??0)-M.current;Math.abs(h)>=Ve&&(h<0?D():L()),M.current=null},E=()=>{u&&(v(!0),clearTimeout(g.current),g.current=setTimeout(()=>v(!1),2600))};if(m)return e.jsx("div",{className:"fixed inset-0 flex items-center justify-center",style:{background:"#06111f"},children:e.jsx("div",{className:"w-10 h-10 border-4 border-white/20 border-t-white rounded-full animate-spin"})});if(!_)return e.jsxs("div",{className:"fixed inset-0 marketing-presentation flex flex-col items-center justify-center gap-4 text-center px-6",style:{background:"#06111f"},children:[e.jsx("p",{className:"text-xl font-bold",style:{color:"#f8fbff"},children:"אין חלקים פעילים להצגה במצגת."}),e.jsx("button",{onClick:()=>t("/marketing"),className:"h-11 px-6 rounded-xl bg-white text-slate-900 font-bold",children:"לניהול האתר"})]});const Y=pe(A.type),J=N.current.has(A.key),Z=b.titleAnimation.replayOnReenter===!1&&J?{...b.titleAnimation,type:"none"}:b.titleAnimation;N.current.add(A.key);const ee=ze(b.transition,i),V=(s==null?void 0:s.logo_light)||(s==null?void 0:s.logo)||(s==null?void 0:s.logo_url)||G;return e.jsxs("div",{className:`marketing-presentation fixed inset-0 overflow-hidden select-none ${u&&x?"":"cursor-default"}`,dir:"rtl",style:{background:"#06111f"},onClick:F,onMouseMove:E,onTouchStart:O,onTouchEnd:R,children:[e.jsx(ye,{custom:i,children:e.jsxs(j.div,{className:"marketing-presentation-screen",variants:ee,initial:"initial",animate:"animate",exit:"exit",transition:{duration:(b.transitionMs||800)/1e3,ease:"easeInOut"},children:[e.jsx("div",{className:"absolute inset-0",style:{background:Y.bg}}),e.jsx(Ye,{accent:Y.accent,variant:A.type==="footer"?"orbs":"all"}),b.transition==="light-sweep"&&e.jsx(j.div,{className:"absolute inset-0 pointer-events-none",initial:{x:"-100%"},animate:{x:"100%"},transition:{duration:1.1},style:{background:"linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent)"}},`sweep-${n}`),e.jsx("div",{className:"relative w-full h-full",children:e.jsx(Oe,{section:A,accent:Y.accent,animation:Z,visitId:l,density:b.contentDensity})})]},n)}),b.fixedLogo&&V&&e.jsx("img",{src:V,alt:"ESHUV",className:"marketing-presentation-logo"}),u&&x&&e.jsxs("div",{className:"absolute bottom-0 inset-x-0 p-4 flex items-center justify-center gap-2 bg-gradient-to-t from-black/70 to-transparent z-[1100]","data-no-screen-navigation":!0,children:[e.jsx("button",{onClick:L,className:"w-11 h-11 rounded-full bg-white/15 hover:bg-white/25 text-white flex items-center justify-center backdrop-blur",children:e.jsx(je,{className:"w-5 h-5"})}),e.jsx("button",{onClick:D,className:"w-11 h-11 rounded-full bg-white/15 hover:bg-white/25 text-white flex items-center justify-center backdrop-blur",children:e.jsx(oe,{className:"w-5 h-5"})}),e.jsx("button",{onClick:()=>
1{N.current=new Set,w(0,-1)},className:"w-11 h-11 rounded-full bg-white/15 hover:bg-white/25 text-white flex items-center justify-center backdrop-blur",children:e.jsx(ce,{className:"w-5 h-5"})}),e.jsxs("div",{className:"relative",children:[e.jsx("button",{onClick:()=>S(y=>!y),className:"w-11 h-11 rounded-full bg-white/15 hover:bg-white/25 text-white flex items-center justify-center backdrop-blur",children:e.jsx(ve,{className:"w-5 h-5"})}),p&&e.jsx("div",{className:"absolute bottom-14 right-1/2 translate-x-1/2 w-48 max-h-72 overflow-y-auto rounded-xl bg-slate-900/95 border border-white/10 p-1.5 shadow-2xl",children:k.map((y,h)=>e.jsxs("button",{onClick:()=>{S(!1),w(h,h>n?1:-1)},className:`w-full text-right px-3 py-2 rounded-lg text-sm ${h===n?"bg-white/15 text-white font-bold":"text-slate-300 hover:bg-white/10"}`,children:[h+1,". ",y.label]},y.key))})]}),e.jsx("button",{onClick:H,className:"w-11 h-11 rounded-full bg-white/15 hover:bg-white/25 text-white flex items-center justify-center backdrop-blur",children:e.jsx(Ne,{className:"w-5 h-5"})}),e.jsxs("span",{className:"text-white/70 text-sm px-2 tabular-nums",dir:"ltr",children:[n+1," / ",_]}),e.jsx("button",{onClick:()=>t("/marketing"),className:"w-11 h-11 rounded-full bg-white/15 hover:bg-white/25 text-white flex items-center justify-center backdrop-blur",children:e.jsx(de,{className:"w-5 h-5"})})]})]})}function bt(){return e.jsx(re,{children:e.jsx(Be,{})})}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.