PageSourceSearch

https://www.radius-as-a-service.com/_nuxt/Cq7L3Bb2.js

js radius-as-a-service.com collected 2026-10-03 20:06:06 UTC 5,551 bytes, 1 lines download raw bytes

1import{q as k,d as U,C as R,I as T,h as z,j as B,D as M,r as E}from"./D4hsnz5z.js";import{q as $}from"./BtAtU_7z.js";import{T as K}from"./B80ejqBN.js";function P(t){const s={ä:"ae",ö:"oe",ü:"ue",Ä:"Ae",Ö:"Oe",Ü:"Ue",ß:"ss"};return t.replace(/[äöüÄÖÜß]/g,a=>s[a])}function Q(t){const s={...t};return Object.keys(t).forEach(a=>{const i=P(a);i!==a&&(s[i]=t[a])}),s}function N(t,s){if(!t)return null;const a=[...new Set((Array.isArray(s)?s:[s]).flat(1/0).filter(Boolean))],i={};for(const u of a){if(t[u]){i[u]=t[u];continue}const d=P(u),h=Object.keys(t).find(m=>P(m)===d);h&&(i[u]=t[h])}return i}function J(t){var m;const s=t==null?null:[...new Set((Array.isArray(t)?t:[t]).flat(1/0).filter(Boolean))].sort(),a=s?`authors_data:${s.join("|")}`:"authors_data",{data:i,pending:u,error:d,refresh:h}=k(a,async()=>$("authors_data").first(),{transform:l=>{if(!(l!=null&&l.meta))return l;const b=s?N(l.meta,s):Q(l.meta);return{...l,meta:b}}});return{authors:((m=i.value)==null?void 0:m.meta)||null,pending:u,error:d,refresh:h}}const V={tagName:"markdown-files",setup(){const{$getLocale:t}=R();return{currentLocale:t()}},computed:{structuredList(){var h,m,l,b;const t=[];if(!this.list)return;const s=(h=this.query)==null?void 0:h.limitEvents,a=(m=this.query)==null?void 0:m.reversed,i=((l=this.query)==null?void 0:l.sort[0])||this.sort,u=this.currentLocale||"de";let d=0;for(const f of this.list){const{seo:p,path:g,date:_,moment:L,_dir:O,hideInRecent:S,webcast:D,meta:w,...j}=f;if(this.isRecent&&(S||O==="events"&&D!==!0))continue;if(O==="events"&&s!==void 0){if(d>=s)continue;d++}const C=Object.keys({...j,...w}).filter(e=>!this.hideData.includes(e)).reduce((e,n)=>(e[n]=(w==null?void 0:w[n])||j[n],e),{}),q=this.cleanDate(this.isDate(L)?L:_||this.extractDate(g)),y={url:g,date:q,moment:q,excerpt:w.customExcerpt||(p==null?void 0:p.description)||j.description||((b=w.content)==null?void 0:b.intro),...C};typeof y.lang!="string"&&(y.lang=u),y.url=this.addPathPrefix(g,y.lang,this.strategy),!(this.hideItems&&this.hideItems(y))&&t.push(y)}if(i){const[f,p]=Object.entries(i)[0];t.sort((g,_)=>g[f]<_[f]?p===-1?1:-1:g[f]>_[f]?p===-1?-1:1:0)}if(this.limit){const f=s?this.limit+s:this.limit;return a?t.slice(-f):t.slice(0,f)}return t}},methods:{addPathPrefix(t,s,a){return a==="prefix"?`/${s}${t}`:t},extractDate(t){return t?this.getDate(t):null},getDate(t){const s=/\d{4}-\d{2}-\d{2}/,a=t.match(s);return a?a[0]:null},isDate(t){return t?this.getDate(t)!==null:null},cleanDate(t){return typeof t=="string"&&t.includes("T")?t.split("T")[0]:t}},props:{list:Array,hideData:{type:Array,default:()=>[]},sort:Object,limit:Number,query:Object,isRecent:Boolean,hideItems:{type:Function,default:null},strategy:{type:String}}};function W(t,s,a,i,u,d){return T(t.$slots,"default",{files:d.structuredList})}const X=Object.assign(U(V,[["render",W]]),{__name:"MarkdownFiles"}),Y={__name:"SharedContentList",props:{query:{type:Object,required:!0},dataList:{type:Array,default:()=>[]}},async setup(t){var C,q,y;let s,a;const i=t,{$getLocale:u}=R(),d=((q=(C=z()).$getI18nConfig)==null?void 0:q.call(C).strategy)??"prefix",h=E(()=>({...i.query,where:{...i.query.where}})),m=((y=i.query)==null?void 0:y.key)||K.getDataKey("content",i.dataList.length>0?{list:i.dataList.map(e=>e.path??e.id)}:i.query,u()),l=e=>{const n=new Map;return e.filter(o=>{var c;const r=(c=o.path)==null?void 0:c.replace(/-(en|es)(\.md)?$/,"");return r?n.has(r)?!1:(n.set(r,!0),!0):!0})},b=e=>{if(!Array.isArray(e.sort)||e.sort.length===0)return null;const[n,o]=Object.entries(e.sort[0])[0];return{field:n,direction:o===1?"ASC":"DESC"}},f=(e,{missingSortField:n=!1}={})=>{let r=$(e);const c=h.value,v=b(c);return c.where&&Object.keys(c.where).length>0&&Object.entries(c.where).forEach(([I,A])=>{typeof A=="object"?Object.entries(A).forEach(([x,F])=>{r=r.where(I,x,F)}):r=r.where(I,"=",A)}),n?r=r.where(v.field,"IS NULL").order("stem",v.direction):(v&&c.limit&&(r=r.where(v.field,"IS NOT NULL")),Array.isArray(c.sort)&&c.sort.forEach(I=>{Object.entries(I).forEach(([A,x])=>{r=r.order(A,x===1?"ASC":"DESC")})})),c.limit&&(r=r.limit(c.limit)),r},p=new Set(["id","path","stem","meta","description","moment","hideInRecent","webcast","layout","title","author","cta","tags"]),g=new Set(["keywords","contactInContent","seoTitle","socialimg","titleClass","scripts","asideNav","maxContent","quotes","footer","textImageTeaser","published"]),_=e=>{const n={};for(const[o,r]of Object.entries(e))p.has(o)&&(o==="meta"&&r&&typeof r=="object"?n.meta=Object.fromEntries(Object.entries(r).filter(([c])=>!g.has(c)&&!c.startsWith("quote"))):n[o]=r);return n},L=async e=>{const n=h.value,o=(await f(e).all()).map(_);if(!b(n)||!n.limit)return o;const r=(await f(e,{missingSortField:!0}).all()).map(_);return[...o,...r]},O=async()=>{var r;const e="content_"+u(),n=await L(e);if(!((r=i.query.additionalCollections)!=null&&r.length))return n;const o=await Promise.all(i.query.additionalCollections.map(c=>L(c)));return l([...n,...o.flat()])},S=async e=>{const n=e.flatMap(r=>r!=null&&r.author?[].concat(r.author):[]);if(n.length===0)return null;const o=await $("authors_data").first();return o!=null&&o.meta?N(o.meta,n):null},{data:D}=([s,a]=B(async()=>k(m,async()=>{const e=i.dataList.length>0?i.dataList:await O();return{list:e,authors:await S(e)}},"$ZdoodKhO_D")),s=await s,a(),s),w=E(()=>{var e;return((e=D.value)==null?void 0:e.list)||null}),j=E(()=>{var e;return((e=D.value)==null?void 0:e.authors)||null});return(e,n)=>T(e.$slots,"default",{list:w.value,authors:j.value,strategy:M(d)})}};export{X as _,Y as a,J 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.