PageSourceSearch

https://brickfilms.com/assets/CreateCalendarEvent-C9Lm_t-B.js

js brickfilms.com collected 2026-09-24 09:24:59 UTC 4,615 bytes, 42 lines download raw bytes

1import{t as e}from"./jsx-runtime-Bbmj7Sro.js";import{t}from"./withTranslation-B3sbfl5p.js";import{d as n}from"./chunk-BV7QT456-CmTLkSzp.js";import{rr as r}from"./pro-solid-svg-icons-fwFcmN_U.js";import{t as i}from"./Loader-DkObBfvq.js";import{dt as a,ft as o,ot as s,t as c}from"./index-_WGeRyKy.js";import{t as l}from"./Card-Btw4zJWl.js";import{t as u}from"./useLayoutUpdate-hY0ArPJ-.js";import{t as d}from"./CalendarEventForm-DHEEF1Q2.js";var f=`mutation CreateCalendarEventMutation($input: CreateCalendarEventInput!) {
2  createCalendarEvent(input: $input) {
3    calendarEvent {
4      id
5      type
6      contest {
7        id
8      }
9      website {
10        id
11      }
12      startDate
13      endDate
14      contents {
15        title
16        description
17        announcementLink
18        feedbackLink
19        language
20      }
21    }
22  }
23}`,p={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`mutation`,name:{kind:`Name`,value:`CreateCalendarEventMutation`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`input`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`CreateCalendarEventInput`}}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`createCalendarEvent`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`input`},value:{kind:`Variable`,name:{kind:`Name`,value:`input`}}}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`calendarEvent`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`type`}},{kind:`Field`,name:{kind:`Name`,value:`contest`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}}]}},{kind:`Field`,name:{kind:`Name`,value:`website`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}}]}},{kind:`Field`,name:{kind:`Name`,value:`startDate`}},{kind:`Field`,name:{kind:`Name`,value:`endDate`}},{kind:`Field`,name:{kind:`Name`,value:`contents`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`title`}},{kind:`Field`,name:{kind:`Name`,value:`description`}},{kind:`Field`,name:{kind:`Name`,value:`announcementLink`}},{kind:`Field`,name:{kind:`Name`,value:`feedbackLink`}},{kind:`Field`,name:{kind:`Name`,value:`language`}}]}}]}}]}}]}}],loc:{start:0,end:424}};p.loc.source={name:`GraphQL request`,locationOffset:{line:1,column:1}},p.loc.source.body=f;var m=`query GetCalendarInformationsQuery {
24  websites {
25    edges {
26      node {
27        id
28        name
29      }
30    }
31  }
32  contests {
33    edges {
34      node {
35        id
36        title
37      }
38    }
39  }
40}
41`,h={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`Name`,value:`GetCalendarInformationsQuery`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`websites`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`edges`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`node`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`name`}}]}}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`contests`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`edges`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`node`},selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`}},{kind:`Field`,name:{kind:`Name`,value:`title`}}]}}]}}]}}]}}],loc:{start:0,end:238}};h.loc.source={name:`GraphQL request`,locationOffset:{line:1,column:1}},h.loc.source.body=m;var g=e(),_=({t:e})=>{u({title:e(`Create a calendar event`),history:[{title:e(`Calendar`),action:`/calendar/`},{title:e(`Create`)}]});let{loading:t,error:f,data:m}=a(h),[_,{loading:v}]=o(p),y=n();return t?(0,g.jsx)(i,{}):f?(0,g.jsx)(s,{icon:r,message:e(`An error occurred while loading the calendar informations.`)}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l,{children:[(0,g.jsx)(c,{h:`1`,children:e(`New calendar event`)}),(0,g.jsx)(d,{contests:m.contests.edges.map(e=>({value:e.node.id,label:e.node.title}
41)),communities:m.websites.edges.map(e=>({value:e.node.id,label:e.node.name})),onSubmit:async e=>{await _({variables:{input:e}}),y(`/calendar/`)},loading:v,buttonLabel:e(`Create an event`)})]})})},v=t()(_);export{_ as CalendarEventView,v as default};
42//# sourceMappingURL=CreateCalendarEvent-C9Lm_t-B.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.