PageSourceSearch

https://cdn.vialibri.net/static/assets/CalendarEvents-BegqOhNl.js

js vialibri.net collected 2026-10-01 11:50:32 UTC 2,658 bytes, 23 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e9f23404-01a3-4020-8f80-69a07342619d",e._sentryDebugIdIdentifier="sentry-dbid-e9f23404-01a3-4020-8f80-69a07342619d")}catch(e){}}();import"./_sentry-release-injection-file-BIxAPxRH.js";import{a as e}from"./rolldown-runtime-CynJssAt.js";import{t}from"./react-C9jbeexS.js";import{t as a}from"./useDateDisplay-Br5TAOSk.js";import{n as r,t as s}from"./lib-C2GB3B5V.js";import{n}from"./useQuery-Cob25j8P.js";import{K as i,at as o}from"./index-eSpJ4TSf.js";import{t as d}from"./PageSpinner-BnO66d7N.js";t();var l=o();r();var c=i(),m=s`
2  query GetUserCalendar($timezone: String!) {
3    calendarEventsForUser(timezone: $timezone) {
4      calendar_start_at
5      calendar_end_at
6      user_timezone
7      events {
8        id
9        title
10        type
11        start_at
12        end_at
13        start_at_local
14        end_at_local
15        timezone
16        organiser
17        short_description
18        url
19      }
20    }
21  }
22`,_=(0,l.withTranslators)((()=>{const{loading:e,data:t}=n(m,{variables:{timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}}),{formatDate:r}=a();if(e||!t?.calendarEventsForUser)return(0,c.jsx)("div",{className:"margin-top",children:(0,c.jsx)(d,{})});const s=((e,t,a)=>{const r=e=>new Intl.DateTimeFormat("default",{month:"long",year:"numeric"}).format(e),s=r(t);return e.reduce(((e,n)=>{const i=new Date(n.start_at),o=i<t?s:r(i);o in e||(e[o]=[]);const d={...n,user_start_at:a(n.start_at,"time"),user_end_at:a(n.end_at,"time")};return e[o].push(d),{...e}}),{})})(t.calendarEventsForUser.events,new Date(t.calendarEventsForUser.calendar_start_at),r);return(0,c.jsxs)("div",{className:"box",children:[(0,c.jsxs)("p",{children:["Timezone user: ",t.calendarEventsForUser.user_timezone]}),(0,c.jsxs)("p",{children:["Calendar Start Date: ",t.calendarEventsForUser.calendar_start_at]}),(0,c.jsxs)("p",{children:["Calendar End Date: ",t.calendarEventsForUser.calendar_end_at]}),(0,c.jsx)("ul",{children:Object.entries(s).map((([e,t])=>(0,c.jsxs)("li",{children:[e,(0,c.jsx)("ul",{children:t.map((e=>(0,c.jsxs)("li",{children:[e.title,": ",(0,c.jsx)("br",{}),"User date: ",e.user_start_at," - ",e.user_end_at," ",(0,c.jsx)("br",{}),"UTC: ",e.start_at," - ",e.end_at," ",(0,c.jsx)("br",{}),"Local event date: ",e.start_at_local," - ",e.end_at_local," ",(0,c.jsx)("br",{}),"Event time: ",e.timezone]},e.id)))})]},e)))})]})}));export{_ as default};
23//# sourceMappingURL=CalendarEvents-BegqOhNl.js.map

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.