PageSourceSearch

https://www.cubieserver.de/_next/static/chunks/4199.4a52e2bdee77047b.js

js cubieserver.de collected 2026-09-25 21:57:54 UTC 3,312 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4199],{64199:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var a=r(23798),n=r(39630),o=r(40220),l=r(84802),c=r(21462),u=r(66820),i=r(82413);function s(e){let t=0;for(let r=0;r<e.length;r++)t=(31*t+e.charCodeAt(r))%0x7fffffff;return Math.abs(t).toString(36)}function d(e){var t;let{config:r,params:d,setEvents:p,hideErrors:f,timezone:m}=e,{t:g}=(0,l.Bd)(),{data:v,error:y}=(0,i.A)(r,r.name,{refreshInterval:3e5});(0,c.useEffect)(()=>{let{showName:e=!1}=(null==r?void 0:r.params)||{},t=[];if(!y&&v&&!v.error){if(!v.data){v.error={message:"'".concat(r.name,"': ").concat(g("calendar.errorWhenLoadingData"))};return}let e=n.A.parse(v.data),a=new n.A.Component(e),o=(e,t)=>({id:e.getFirstPropertyValue("uid"),type:t,title:e.getFirstPropertyValue("summary"),rrule:e.getFirstPropertyValue("rrule"),dtstart:e.getFirstPropertyValue("dtstart")||e.getFirstPropertyValue("due")||e.getFirstPropertyValue("completed")||n.A.Time.now(),dtend:e.getFirstPropertyValue("dtend")||e.getFirstPropertyValue("due")||e.getFirstPropertyValue("completed")||n.A.Time.now(),location:e.getFirstPropertyValue("location"),status:e.getFirstPropertyValue("status"),url:e.getFirstPropertyValue("url")});0===(t=[...a.getAllSubcomponents("vevent").map(e=>o(e,"vevent")),...a.getAllSubcomponents("vtodo").map(e=>o(e,"vtodo"))]).length&&(v.error={message:"'".concat(r.name,"': ").concat(g("calendar.noEventsFound"))})}let a=o.c9.fromISO(d.start),l=o.c9.fromISO(d.end);if(y||0===t.length||!a.isValid||!l.isValid)return;let c=n.A.Time.fromJSDate(a.toJSDate()),u=n.A.Time.fromJSDate(l.toJSDate()),i=[];t.forEach(t=>{(e=>{if(!e.rrule)return e.dtstart.compare(c)>=0&&0>=e.dtend.compare(u)?[e.dtstart]:[];let t=e.rrule.iterator(e.dtstart),r=[];for(let e=t.next();e&&0>e.compare(u);e=t.next())0>e.compare(c)||r.push(e.clone());return r})(t).forEach(a=>{var n,l,c,u,d,p,f;let m=a.toJSDate(),g=m.getTime(),v=null!=(p=t.id)?p:s("".concat(null!=(n=t.title)?n:"","-").concat(null!=(l=t.type)?l:"","-").concat(null!=(c=t.status)?c:"","-").concat(null!=(u=t.url)?u:"","-").concat(null!=(d=t.location)?d:"")),y=s("".concat(v,"-").concat(g)),h=t.title;e&&(h="".concat(r.name,": ").concat(h)),i[y]={title:h,date:o.c9.fromJSDate(m),color:null!=(f=null==r?void 0:r.color)?f:"zinc",isCompleted:"vtodo"===t.type?"COMPLETED"===t.status:o.c9.fromJSDate(m)<o.c9.now(),additional:t.location,type:"ical",url:t.url}})}),p(e=>({...e,...i}))},[v,y,r,d,p,m,g]);let h=null!=y?y:null==v?void 0:v.error;return h&&!f&&(0,a.jsx)(u.A,{error:{message:"".concat(r.type,": ").concat(null!=(t=h.message)?t:h)}})}},82413:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(59650),n=r(84826);function o(e){for(var t,r,o=arguments.length,l=Array(o>1?o-1:0),c=1;c<o;c++)l[c-1]=arguments[c];let u={};l&&(null==(t=l[1])?void 0:t.refreshInterval)&&(u.refreshInterval=l[1].refreshInterval);let i=(0,n.$C)(e,...l);""===l[0]&&(i=null);let{data:s,error:d,mutate:p}=(0,a.Ay)(i,u);return{data:s,error:null!=(r=null==s?void 0:s.error)?r:d,mutate:p}}},84826:(e,t,r)=>{function a(e,t){let r=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return t&&r.append("endpoint",t),r}function n(e,t,r){let n=a(e,t);return r&&n.append("query",JSON.stringify(r)),"/api/services/proxy?".concat(n.toString())}r.d(t,{$C:()=>n,_V:()=>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.