PageSourceSearch

https://www.seruv.org/assets/_slug-BuSbWw6s.js

js seruv.org collected 2026-10-02 13:45:04 UTC 7,922 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-CY_MMzgk.js";import{t}from"./link-BiWemNqT.js";import{i as n,r}from"./index-fAR7bHGQ.js";import{n as i,r as a,t as o}from"./PostCard-Cw9zK6ze.js";import{t as s}from"./Breadcrumbs-CQoZ928C.js";var c=[`searchranktraffic.live`],l=[`platform.twitter.com`,`www.instagram.com`,`www.tiktok.com`,`connect.facebook.net`,`pagead2.googlesyndication.com`,`cdn.taboola.com`,`www.youtube.com`,`player.vimeo.com`,`platform.foremedia.net`],u=[/^\s*\(adsbygoogle\s*=\s*window\.adsbygoogle\s*\|\|\s*\[\]\)\.push\(\{\}\);?\s*$/,/^\s*window\._tfa\s*=\s*window\._tfa\s*\|\|\s*\[\];[\s\S]*'\/\/cdn\.taboola\.com\/libtrc\/[\w/]+\/tfa\.js'[\s\S]*$/],d=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),f=new RegExp(c.map(e=>e.replace(/\./g,`\\.`)).join(`|`),`i`);function p(e,t){if(f.test(e)||f.test(t))return!1;if((e.match(/\btype\s*=\s*["']?([^"'\s>]+)/i)||[])[1]?.toLowerCase()===`application/ld+json`)return!/<\/?script/i.test(t);let n=(e.match(/\bsrc\s*=\s*["']?([^"'\s>]+)/i)||[])[1];if(n)try{let e=new URL(n,`https://self.invalid/`).hostname.toLowerCase();return l.includes(e)&&!t.trim()}catch{return!1}return u.some(e=>e.test(t))}function m(e){let t=e.replace(/<script\b([^>]*)>([\s\S]*?)<\/script\s*>/gi,(e,t,n)=>p(`<script${t}>`,n)?e:``);return t=t.replace(/<script\b[^>]*>(?![\s\S]*?<\/script\s*>)/gi,``),t}function h(e){return e.replace(/<([a-zA-Z][\w:-]*)(\s[^<>]*?)?(\/?)>/g,(e,t,n,r)=>{if(!n)return e;let i=n.replace(/\s+on[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,``);return i=i.replace(/(\s+(?:href|src|action|formaction|xlink:href|data)\s*=\s*)("\s*(?:javascript|vbscript):[^"]*"|'\s*(?:javascript|vbscript):[^']*'|(?:javascript|vbscript):[^\s>]*)/gi,`$1"#"`),i===n?e:`<${t}${i}${r}>`})}var g=/display\s*:\s*none|visibility\s*:\s*hidden|font-size\s*:\s*0(?:px|pt|em|rem|%)?\s*(?:;|$|!)|opacity\s*:\s*0(?:\.0+)?\s*(?:;|$|!)|(?:left|top|right|bottom|text-indent|margin-left|margin-top)\s*:\s*-\d{3,}\s*(?:px|em|rem|pt)|(?:height|width|max-height)\s*:\s*[01](?:px)?\s*;[^"']*overflow\s*:\s*hidden|overflow\s*:\s*hidden\s*;[^"']*(?:height|width|max-height)\s*:\s*[01](?:px)?\s*(?:;|$)|clip\s*:\s*rect\(\s*0/i;function _(e,t){let n;try{n=new URL(e.replace(/&amp;/g,`&`),`https://self.invalid/`)}catch{return!1}if(n.hostname===`self.invalid`)return!1;let r=n.hostname.toLowerCase().replace(/^www\./,``);return!t.some(e=>r===e||r.endsWith(`.`+e))}function v(e,t){if(!/<a\b/i.test(e)||!g.test(e))return e;let n=[],r=[],i=/<!--[\s\S]*?-->|<(\/?)([a-zA-Z][\w:-]*)\b([^>]*)>/g,a;for(;a=i.exec(e);){if(!a[2])continue;let o=a[2].toLowerCase(),s=a[3]??``;if(!a[1]){if(d.has(o)||/\/\s*$/.test(s))continue;let e=(s.match(/\bstyle\s*=[\s\S]*$/i)||[])[0]||``;r.push({tag:o,start:a.index,hidden:g.test(e)||/\shidden(\s|=|$)/i.test(s)&&o!==`input`});continue}let c=r.length-1;for(;c>=0&&r[c]?.tag!==o;)c--;let l=r[c];if(c<0||!l||(r.length=c,!l.hidden))continue;let u=i.lastIndex;[...e.slice(l.start,u).matchAll(/<a\b[^>]*\bhref\s*=\s*["']?([^"'\s>]+)/gi)].map(e=>e[1]??``).some(e=>_(e,t))&&n.push([l.start,u])}if(!n.length)return e;n.sort((e,t)=>e[0]-t[0]||t[1]-e[1]);let o=``,s=0;for(let[t,r]of n)t<s||(o+=e.slice(s,t),s=r);return o+e.slice(s)}function y(e){if(!f.test(e))return e;let t=e.replace(/<(iframe|object|embed|a|link|img|source)\b[^>]*>/gi,e=>f.test(e)?``:e);return t=t.replace(new RegExp(f.source,`gi`),`blocked.invalid`),t}function b(e,t={}){if(!e)return``;let n=(t.ownHosts??[]).map(e=>e.toLowerCase().replace(/^www\./,``)),r=m(e);return r=h(r),r=v(r,n),r=y(r),r}var x=[`seruv.org`,`seruv.org.il`];function S(e){return b(e,{ownHosts:x})}var C=e();function w(){let e=r.useLoaderData();return e.kind===`category`?(0,C.jsx)(T,{data:e}):(0,C.jsx)(E,{data:e})}function T({data:e}){let{category:n,posts:r,total:c}=e;return(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{className:`border-b-4 border-gold bg-navy py-10`,children:(0,C.jsxs)(`div`,{className:`mx-auto max-w-[1400px] px-4 md:px-6`,children:[(0,C.jsx)(s,{items:[{label:`עמוד הבית`,to:`/`},{label:`בלוג`,to:`/blog`},{label:n.name}]}),(0,C.jsx)(`p`,{className:`font-display text-xs font-bold tracking-widest text-gold`,children:`תחום התמחות`}),(0,C.jsx)(`h1`,{className:`mt-2 font-display text-3xl font-black text-primary-foreground md:text-5xl`,children:n.name}),(0,C.jsxs)(`p`,{className:`mt-3 text-sm text-primary-foreground
1/70`,children:[c,` כתבות בתחום`]})]})}),(0,C.jsx)(`div`,{className:`mx-auto max-w-[1400px] px-4 py-10 md:px-6`,children:(0,C.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-3`,children:[r.slice(0,2).map(e=>(0,C.jsx)(`div`,{className:`md:col-span-3 lg:col-span-3`,children:(0,C.jsxs)(t,{to:`/$slug`,params:{slug:e.slug},className:`group grid gap-5 rounded-md border border-border bg-card p-4 transition-all hover:-translate-y-0.5 hover:shadow-lg sm:grid-cols-[minmax(0,1fr)_16rem]`,children:[(0,C.jsxs)(`div`,{className:`min-w-0`,children:[(0,C.jsx)(`h2`,{className:`font-display text-xl font-black leading-snug text-navy-deep decoration-gold decoration-2 underline-offset-4 group-hover:underline md:text-2xl`,children:e.title}),e.excerpt&&(0,C.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:e.excerpt}),(0,C.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[e.author??`מערכת סירוב`,` · `,a(e.published_at)]})]}),(0,C.jsx)(`div`,{className:`aspect-[16/10] overflow-hidden rounded sm:aspect-[4/3]`,children:(0,C.jsx)(o,{src:e.cover_image_url,alt:e.title})})]})},e.id)),r.slice(2).map(e=>(0,C.jsx)(i,{post:e,size:`medium`},e.id))]})})]})}function E({data:e}){let{post:r,categories:c,related:l}=e,u=n(r.questions_and_answers),d=c[0];return(0,C.jsxs)(`article`,{className:`mx-auto max-w-[1400px] px-4 py-6 md:px-6`,children:[(0,C.jsxs)(`div`,{className:`mx-auto max-w-3xl`,children:[(0,C.jsx)(s,{items:[{label:`עמוד הבית`,to:`/`},{label:`בלוג`,to:`/blog`},...d?[{label:d.name,to:`/$slug`,params:{slug:d.slug}}]:[],{label:r.title}]}),d&&(0,C.jsx)(t,{to:`/$slug`,params:{slug:d.slug},className:`inline-block bg-gold px-2.5 py-1 font-display text-[11px] font-black text-navy-deep`,children:d.name}),(0,C.jsx)(`h1`,{className:`mt-3 font-display text-3xl font-black leading-tight text-navy-deep md:text-[2.6rem]`,children:r.title}),(0,C.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center gap-x-3 gap-y-1 border-y border-border py-3 text-sm text-muted-foreground`,children:[(0,C.jsx)(`span`,{className:`font-bold text-navy`,children:r.author??`מערכת סירוב`}),r.published_at&&(0,C.jsxs)(`span`,{children:[`· `,a(r.published_at)]})]})]}),(0,C.jsx)(`div`,{className:`mx-auto mt-7 max-w-4xl overflow-hidden rounded-lg`,children:(0,C.jsx)(`div`,{className:`aspect-[16/9] w-full`,children:(0,C.jsx)(o,{src:r.cover_image_url,alt:r.title})})}),(0,C.jsx)(`div`,{className:`prose-article has-dropcap mx-auto mt-8 max-w-3xl`,dangerouslySetInnerHTML:{__html:S(r.content)}}),u.length>0&&(0,C.jsxs)(`section`,{className:`mx-auto mt-12 max-w-3xl`,dir:`rtl`,children:[(0,C.jsx)(`h2`,{className:`mb-5 border-b-4 border-gold pb-2 font-display text-xl font-black text-navy-deep`,children:`שאלות ותשובות`}),(0,C.jsx)(`div`,{className:`w-full`,children:u.map((e,t)=>(0,C.jsxs)(`details`,{className:`border-b py-3`,children:[(0,C.jsx)(`summary`,{className:`text-right font-display text-base font-bold text-navy-deep`,children:e.question}),(0,C.jsx)(`div`,{className:`text-right text-[0.95rem] leading-relaxed text-muted-foreground`,children:e.answer})]},t))})]}),l.length>0&&(0,C.jsxs)(`section`,{className:`mx-auto mt-16 max-w-5xl`,children:[(0,C.jsx)(`h2`,{className:`mb-5 border-b-4 border-gold pb-2 font-display text-xl font-black text-navy-deep`,children:`מאמרים נוספים בתחום`}),(0,C.jsx)(`div`,{className:`grid gap-5 sm:grid-cols-2 lg:grid-cols-4`,children:l.map(e=>(0,C.jsx)(i,{post:e,size:`small`},e.id))})]})]})}export{w as component};

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.