1import{Ai as n,Bi as b,Gn as B,Jt as C,Rt as L,Vi as W,Wr as D,Wt as E,Yi as x,ca as T,ct as q,kt as A,la as v,li as _,na as a,oa as F,oi as d,pi as f,qn as G,qt as I,si as r,st as J,ti as R,ui as o,zt as H}from"./BbDbPIex.js";import{E as N,P as Y,c as U,p as K}from"./DoD5QREl.js";import{t as Q}from"./CUHhdP1W.js";import{a as X,m as Z}from"./C8ktreoL.js";import{o as $}from"./Bmyg0wAP.js";B();D();var ee={class:"page"},te={key:0,class:"error error-message"},ae={key:1,class:"wait",style:{height:"80dvh"}},se={key:2,class:"art"},ie={key:0,class:"pretitle"},re=["innerHTML"],ne={class:"main"},oe={key:0},le={key:0},de=["innerHTML"],_e={key:3},ue={__name:"[id]",async setup(ce){let l,u;const c=G(),p=d(()=>c.params.id);L();const O=C(),w=x(null),j=x(null),P=I();H;let h=c.fullPath.split("/")[1];async function S(e){const t=[];return Object.getOwnPropertyNames(e.yoast_head_json).forEach(i=>{(i.startsWith("article")||i.startsWith("og")&&e.yoast_head_json[i])&&t.push({hid:i,property:i.replace("_",":"),content:i=="og_image"?"https://www.emess.co.il"+w.value:e.yoast_head_json[i].replace("-scaled","")}),i.startsWith("author")&&e.yoast_head_json[i]&&t.push({hid:i,name:i,content:e.yoast_head_json[i]})}),t.push({hid:"description",name:"description",content:z(e)}),{title:e.yoast_head_json.og_title,script:[{type:"application/ld+json",children:JSON.stringify(e.yoast_head_json.schema)}],meta:t,link:[{rel:"canonical",href:O+"/"+h+"/"+p.value}]}}const{data:s,pending:k,error:g}=([l,u]=b(async()=>Z(c.params.id,async()=>{try{var e=await ifetch.get(`/wp-json/wp/v2/${h==="radio"?"posts":h}/${c.params.id}`);e.yoast_head_json.og_image=e.yoast_head_json.og_image?.[0].url;const t=e.yoast_head_json.og_image?"/uploads/"+e.yoast_head_json.og_image.split(/(wp-content|uploads)\//).pop():null;return w.value=t?A(t,800,450):null,j.value=t||null,e.head=await S(e),e}catch(t){return console.error(t),{error:t.message||t.result||t.toString()}}},"$wgb1GrmYSf")),l=await l,u(),l);Y(s.value.head);function z(e){return N((e||s.value).excerpt.rendered).replace(/<[^>]*>/g,"")}d(()=>{if(s.value.acf.video_data?.video_scr||s.value.acf.iframe_html)return!1;const e=s.value.content.rendered,t=e.indexOf("<video"),i=e.indexOf("<iframe");return!(t>0&&t<300||i>0&&i<300)}),d(()=>{var e=s.value.extra_data?.featured_image_data;
1return e?{caption:e.image_caption||e.image_title,desc:e.image_desc}:{caption:"",desc:""}}),d(()=>new Date(s.value.date)),d(()=>new Date(s.value.modified));const M=d(()=>N(s.value.title.rendered)),m=([l,u]=b(()=>X()),l=await l,u(),l);return d(()=>{if(m.pending.value)return;const e=m.data.value?.main.byterm;if(!e)return[];const t=Object.getOwnPropertyNames(e).reduce((i,y)=>i.concat(e[y].posts||[]),[]);return E([...m.data.value.main.main_post_top,...m.data.value.main.hp_first_grid,...t])}),(e,t)=>{const i=J,y=K,V=$;return n(),o(R,null,[t[4]||(t[4]=r("br",null,null,-1)),r("div",ee,[a(g)||a(s).error?(n(),o("div",te,[r("div",null,"×××¨×¢× ×©××××, "+v(a(g)||a(s).error),1),r("div",null,[f(i,{to:"/"},{default:W(()=>[...t[0]||(t[0]=[r("button",null,"×××¨× ×××£ ×××ת",-1)])]),_:1})])])):_("",!0),a(k)?(n(),o("div",ae)):_("",!0),!a(k)&&!a(g)&&!a(s).error?(n(),o("div",se,[f(Q,{class:F(["progress",{empty:a(H)=="empty"}])},null,8,["class"]),a(s)?.acf?.pre_title?(n(),o("div",ie,v(a(s).acf.pre_title),1)):_("",!0),r("h1",{innerHTML:a(s)?.title.rendered},null,8,re),r("div",ne,[r("div",null,[(n(),o("div",{class:"article-content-inside",key:a(p)},[a(s).acf?.video_data?.video_scr?(n(),o("figure",oe,[f(y,{item:{type:1,date:a(s).date,id:a(p),title:a(s).acf.video_data.video_title,url:a(s).acf.video_data.video_scr,poster:null},ads:!0},null,8,["item"]),a(s).acf.video_data?.video_caption||a(s).acf.video_scr_credit_name?(n(),o("figcaption",le,v(a(s).acf.video_scr_title)+" / "+v(a(s).acf.video_scr_credit_name),1)):_("",!0)])):_("",!0),a(s).acf.iframe_html?(n(),o("div",{key:1,innerHTML:a(s).acf.iframe_html},null,8,de)):_("",!0),f(V,{date:a(s).date,title:a(M),id:Number(a(p)),image:a(j),style:T({"font-size":a(P)+"rem"}),content:a(s).content.rendered},null,8,["date","title","id","image","style","content"]),t[1]||(t[1]=r("div",{id:"progress-marker-end"},null,-1))])),t[2]||(t[2]=r("br",null,null,-1)),t[3]||(t[3]=r("br",null,null,-1))])])])):(n(),o("div",_e," ××ת×... "))])],64)}}},ge=q(ue,[["__scopeId","data-v-24c54b09"]]);export{ge 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.