PageSourceSearch

https://startolj-ra.hu/chunk-YOOSB7QK.js

js startolj-ra.hu collected 2026-10-07 19:24:01 UTC 5,707 bytes, 1 lines download raw bytes

1import{c as D,h as A}from"./chunk-MGQPL3GC.js";import{D as O,N as f,R as b,U as E,V as $,a as c,b as m,d as w,e as I,f as u,q as h,r as v,w as l}from"./chunk-2HZSMJDR.js";var P=w((Y,S)=>{"use strict";var V={code:({data:r})=>`<pre><code>${r.code}</code></pre>`,embed:({data:r})=>{let t=r.service;return t==="vimeo"?`<iframe src="${r.embed}" height="${r.height}" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>`:t==="youtube"?`<iframe width="${r.width}" height="${r.height}" src="${r.embed}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`:(console.error("[editorjs-html]: Only Youtube & Vimeo embeds are available by default. Write your own embed parser for other options."),"")},header:({data:r})=>`<h${r.level}>${r.text}</h${r.level}>`,image:({data:r})=>{let t=r.caption?r.caption:"Image";return`<img src="${r?.file?.url||r?.url}" alt="${t}" />`},list:({data:r})=>{let t=r.style==="unordered"?"ul":"ol",e=(i,o)=>{let a=i.map(n=>{if(!n.content&&!n.items)return`<li>${n}</li>`;let s="";return n.items?.length&&(s=e(n.items,o)),n.content?`<li>${n.content}${s}</li>`:void 0});return`<${o}>${a.join("")}</${o}>`};return e(r.items,t)},paragraph:({data:r})=>{let t=r.alignment||r.align;return t?`<p style="text-align:${t}"> ${r.text} </p>`:`<p>${r.text}</p>`},quote:({data:r})=>`<blockquote>${r.text}</blockquote> - ${r.caption}`,delimiter:({data:r})=>"<br/>"};S.exports=(r={},t={strict:!1})=>{let e=c(c({},V),r);return{parse:i=>(({blocks:o},a,n)=>o.reduce((s,g)=>{if(g.type in a)return s+a[g.type](g);let y=`[editorjs-html]: Parser function for ${g.type} does not exist`;if(n.strict)throw new Error(y);return console.error(y),s},""))(i,e,t),parseBlock:i=>((o,a,n)=>{if(o.type in a)return a[o.type](o);let s=`[editorjs-html]: Parser function for ${o.type} does not exist`;if(n.strict)throw new Error(s);console.error(s)})(i,e,t)}}});var p=class p{constructor(t){this.httpClient=t}debugEnabled=!0;enableDebug(){this.debugEnabled=!0}logHttpError(t,e,i="GET"){if(!this.debugEnabled){t.status!==404&&console.error(`[${t.name}] ${i}: ${e}: #${t.status??t.message} - ${t.statusText}`);return}console.error(`${i}: ${e}: `,t)}get(t,e){return this.httpClient.get(t,{params:e,responseType:"json"}).pipe(O(i=>(this.logHttpError(i,t,"GET"),v(()=>i))))}};u(p,"\u0275fac",function(e){return new(e||p)(E(D))}),u(p,"\u0275prov",b({token:p,factory:p.\u0275fac,providedIn:"root"}));var T=p;var H=I(P());function R(r){let t="";switch(r.data.style){case"unordered":return r.data.items.forEach(e=>{t+=`<li>${e.content}</li>`}),`<ul id='${r.id}'>${t}</ul>`;case"ordered":return r.data.items.forEach(e=>{t+=`<li>${e.content}</li>`}),`<ol id='${r.id}'>${t}</ol>`;case"checklist":return r.data.items.forEach(e=>{t+=`<li><input type="checkbox" />${e.content}</li>`}),`<ul class="checklist-block" id='${r.id}'>${t}</ul>`;default:return r.data.items.forEach(e=>{t+=`<li>${e.content}</li>`}),`<ul id='${r.id}'>${t}</ul>`}}function j(r){let t="";return r.data.content.forEach((e,i)=>{let o="";e.forEach(a=>o+=r.data.withHeadings&&i===0?`<th>${a}</th>`:`<td>${a}</td>`),t+=`<tr>${o}</tr>`}),`<table id='${r.id}'>${t}</table>`}function B(r){return`<div id='${r.id}' class="info-block">${r.data.text}</div>`}function M(r){return`<div id='${r.id}' class="dap-block">${r.data.text}</div>`}function z(r){return`<blockquote id='${r.id}' class="quote-block"><p>${r.data.text}</p><footer>${r.data.caption}</footer></blockquote>`}var k=(0,H.default)({table:j,infoBlock:B,dapBlock:M,list:R,quote:z}),d=class d{ytIdExtractorRegex=/youtube\.com\/embed\/([a-zA-Z0-9_-]+)/;sanitizer=$(A);apiService=$(T);getAllArticles(){return this.apiService.get("articles",{placement:"microsite"}).pipe(l(t=>(t.forEach(e=>e.sanitizedContent=this.convertEditorJsStringToHTML(e.content)),t)))}getPagedArticles(t){return this.apiService.get("articles",{page:t,placement:"microsite"}).pipe(l(e=>(e.forEach(i=>i.sanitizedContent=this.convertEditorJsStringToHTML(i.content)),e)))}getArticleById(t){return this.apiService.get(`articles/${t}`).pipe(f(e=>{let i=e[0];return h(m(c({},i),{sanitizedContent:this.convertEditorJsStringToHTML(i.content)}))}
1))}getArticleBySlug(t){return this.apiService.get(`article/${t}`).pipe(f(e=>h(m(c({},e),{sanitizedContent:this.convertEditorJsStringToHTML(e.content)}))))}getAllVideos(){return this.apiService.get("videos",{placement:"microsite"}).pipe(l(t=>(t.forEach(e=>e.ytId=this.extractYTIdFromURL(e.url)),t)))}getPagedVideos(t){return this.apiService.get("videos",{page:t,placement:"microsite"}).pipe(l(e=>(e.forEach(i=>i.ytId=this.extractYTIdFromURL(i.url)),e)))}getVideoById(t){return this.apiService.get(`videos/${t}`).pipe(l(e=>m(c({},e),{sanitizedUrl:this.convertEditorJsStringToHTML(e.url),ytId:this.extractYTIdFromURL(e.url)})))}getVideoBySlug(t){return this.apiService.get(`video/${t}`).pipe(l(e=>m(c({},e),{sanitizedUrl:this.convertEditorJsStringToHTML(e.url),ytId:this.extractYTIdFromURL(e.url)})))}getPages(){return this.apiService.get("pages").pipe(l(t=>(t.forEach(e=>e.sanitizedContent=this.convertEditorJsStringToHTML(e.content)),t)))}getPrivacyPolicyURL(){return this.apiService.get("applications/application/settings").pipe(f(t=>h(t.micrositePrivacyUrl)))}extractYTIdFromURL(t){let e=t.match(this.ytIdExtractorRegex);return e?e[1]:""}convertEditorJsStringToHTML(t){let e=t;try{e=k.parse(JSON.parse(t)),e=e.replace(/&nbsp;/g," ")}catch(i){this.doNothing(i)}return this.sanitizer.bypassSecurityTrustHtml(e)}doNothing(t){}};u(d,"\u0275fac",function(e){return new(e||d)}),u(d,"\u0275prov",b({token:d,factory:d.\u0275fac,providedIn:"root"}));var x=d;export{x as a};

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.