1import{r as c,j as l,d}from"./index-BuF13C9R.js";import{b as f}from"./communityEmail-DHv9zmVf.js";function b({opts:o,width:n=340,height:i=560,frameWidth:a=620,frameHeight:e=1180,className:t=""}){const r=c.useMemo(()=>f(o||{}),[o]),s=Math.min(1,n/a);return l.jsx("div",{className:`mx-auto overflow-y-auto overflow-x-hidden rounded-2xl border border-slate-200 ${t}`,style:{width:n,height:i,background:"#eef2f7"},children:l.jsx("div",{style:{width:a*s,height:e*s},children:l.jsx("iframe",{title:"תצ××× ××§×××× ×××××",srcDoc:r,sandbox:"",style:{width:a,height:e,border:0,display:"block",transform:`scale(${s})`,transformOrigin:"top right",background:"#eef2f7"}})})})}function h(o){const[n,i]=c.useState(null);return c.useEffect(()=>{if(!o)return;let a=!1;return(async()=>{const[e,t]=await Promise.all([d.entities.Kibbutz.get(o).catch(()=>null),d.entities.KibbutzWebsiteLayout.filter({kibbutz_id:o}).catch(()=>[])]);if(a)return;const r=Array.isArray(t)&&t[0]||null;i({communityName:(e==null?void 0:e.name)||"××§××××",primaryColor:(r==null?void 0:r.primary_color)||(e==null?void 0:e.primary_color)||"#2563eb",secondaryColor:(r==null?void 0:r.secondary_color)||(e==null?void 0:e.secondary_color)||"#1e40af",logoUrl:(r==null?void 0:r.logo)||(e==null?void 0:e.logo)||"",contact:[r==null?void 0:r.email,r==null?void 0:r.phone].map(s=>(s||"").trim()).filter(Boolean).join(" · ")})})(),()=>{a=!0}},[o]),n}export{b as E,h as u};
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.