PageSourceSearch

https://klodzko24.eu/_nuxt/BlpXK4Sb.js

js klodzko24.eu collected 2026-09-25 07:57:19 UTC 2,878 bytes, 1 lines download raw bytes

1import{d as e,a as t,e as a,c as s,i as n,f as l,k as c}from"./Cm2J8wJT.js";import{u as r}from"./vNA1_wLl.js";import{ah as i,L as o,M as p,U as g,S as m,a4 as u,V as d,J as h}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const f=e({name:"StaticPage",async setup(){let e,i;const o=t(),p=c(),g=r().pathname.split("/"),m=g[g.length-1],u=([e,i]=a((()=>s("pages",(()=>$fetch(`/api/pages/${encodeURIComponent(m)}`))))),e=await e,i(),e).data.value;if(u&&200===u.status){let e=function(e){return e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;/g,"&")).replace(/&quot;/g,'"')).replace(/&#39;/g,"'")};const t=`${p.public.portalUrl}/s/${u.page.slug}`,{title:a,shorttitle:s,logo:l}=o.settings,c=`${u.page.title} - ${s||a}`,r=o&&o.metaDefaults?o.metaDefaults:{meta:[],link:[]};return n({...r,title:c,meta:[{name:"name",content:c},{property:"og:title",content:c},{property:"og:type",content:"website"},{property:"og:url",content:t},{property:"og:image",content:l},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:c},{name:"twitter:image",content:l}],link:[...r.link,{rel:"canonical",href:t}]}),u.page.content=e(u.page.content),{singlePage:u.page}}throw l({statusCode:404,message:"Strona nie została znaleziona"})},data:()=>({singlePage:null}),mounted(){var e=this.seperateScripts(this.singlePage.content);this.$refs.page_content.innerHTML=e.cleanedHtml,e.scripts.forEach((e=>{var t=document.createElement("script");e.src&&(t.src=e.src),e.innerText&&(t.innerText=e.innerText),this.$refs.page_content.appendChild(t)}))},methods:{seperateScripts(e){var t=e,a=[];let s=e.match(/<script[\s\S]*?<\/script>/g);return s&&s.forEach((t=>{e=e.replace(t,"");let s=t.match(/src=["']([^"']+)["']/),n=s?s[1]:null,l=t.replace(/<script[^>]*>/,"").replace(/<\/script>/,"").trim();a.push({src:n,innerText:l})})),{originalHtml:t,cleanedHtml:e,scripts:a}}}},"$kXu1gfOmud"),y={class:"category my-3 my-lg-4"},k={key:0,class:"container-custom"},P={class:"row"},w={class:"col-custom-mid-12 col-custom-mobile-12"},$={key:0,class:"single-page__wrapper p-5"},_={class:"single-page__title mb-5"},v={ref:"page_content",class:"single-page__content"},b={class:"list-unstyled mt-2"},S=["href"];const j=i(f,[["render",function(e,t,a,s,n,l){return h(),o("section",y,[e.singlePage?(h(),o("div",k,[p("div",P,[p("article",w,[e.singlePage?(h(),o("div",$,[p("h6",_,g(e.singlePage.title),1),p("div",v,null,512),e.singlePage.attachments&&e.singlePage.attachments.length>0?(h(),o(m,{key:0},[t[0]||(t[0]=p("h5",{class:"fw-bold mt-3"},"Załączniki:",-1)),p("ul",b,[(h(!0),o(m,null,u(e.singlePage.attachments,((e,t)=>(h(),o("li",null,[p("a",{href:e},"Załącznik "+g(t+1),9,S)])))),256))])],64)):d("",!0)])):d("",!0)]),t[1]||(t[1]=p("aside",{class:"d-custom-block col-custom-3 col-custom-mid-12 col-custom-mobile-12"},null,-1))])])):d("",!0)])}]]);export{j 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.