"use strict";(globalThis.webpackChunkstec=globalThis.webpackChunkstec||[]).push([[6364],{75303:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(26878);const r=(e,t="UTC")=>{if(""===e)return"";return moment.tz(e,t).toISOString()},c=({event:e})=>{try{const t=(0,a.useRef)(!1);return"function"==typeof window.stecFilterEventSchema?(t.current=window.stecFilterEventSchema(e),React.createElement("script",{type:"application/ld+json"},JSON.stringify(t.current))):(t.current={"@context":"http://schema.org","@type":"Event",name:e.title,description:e.short_description||e.description,url:"",performer:"",offers:""},t.current.startDate=r(e.meta.start_date,e.meta.timezone),t.current.endDate=r(e.meta.end_date,e.meta.timezone),e.meta.schedule.length>0&&(t.current.schedule=(e=>e.meta.schedule.length<=0?"":e.meta.schedule.map((t=>({"@type":"Schedule",name:t.title,startDate:r(t.start,e.meta.timezone),scheduleTimezone:e.meta.timezone,description:t.details}))))(e)),e.location?.type&&(t.current.location=(e=>{if(!e.location?.type)return"";switch(e.location.type){case"physical":{const t=e.location.coordinates.split(","),n=t[0],a=t[1];return{"@context":"http://schema.org","@type":"Place",name:e.location.title,address:{"@type":"PostalAddress",streetAddress:e.location.address,addressLocality:e.location.city,addressRegion:e.location.state,postalCode:e.location.postal_code,addressCountry:e.location.country},geo:{"@type":"GeoCoordinates",latitude:n,longitude:a},description:e.location.description}}case"virtual":return{"@context":"http://schema.org","@type":"VirtualLocation",name:e.location.title,url:e.location.address,description:e.location.description};default:return""}})(e),t.current.eventAttendanceMode="physical"===e.location.type?"https://schema.org/OfflineEventAttendanceMode":"https://schema.org/OnlineEventAttendanceMode"),e.meta.images.length>0&&(t.current.image=(e=>e.meta.images.length<=0?"":{"@context":"http://schema.org","@type":"ImageObject",contentUrl:e.meta.images[0].sizes.full,description:e.short_description||e.title,name:e.title})(e)),e.organizers.length>0&&(t.current.organizer=(e=>0===e.organizers.length?"":e.organizers.map((e=>{let t="";return e?.photo?.id&&(t=e.photo.sizes.full),{"@type":"Person",name:e.name,image:t,description:e.description}})))(e)),"function"==typeof window.stecEventSchemaAfter&&(t.current=window.stecEventSchemaAfter(t.current,e)),React.createElement("script",{type:"application/ld+json"},JSON.stringify(t.current)))}catch(e){return""}}},30381:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(81604),r=n(75303),c=n(21067),o=n(13328),s=n(63671),i=n(8403),l=n(26878),d=n(60799),u=n(47444);const m=({event:e})=>{const t=(0,l.useRef)(!1),n=(0,c.useCalendarScreenType)(t);return React.createElement(i.StecDiv,{ref:t,className:n},React.createElement(a.default,{event:e,active:!0,forceActive:!0,forceOpenIn:"calendar"}),React.createElement(r.default,{event:e}))},p=({atts:e,children:t})=>{const[n,a]=(0,l.useState)(!1),{setValue:r}=(0,c.useSettingsAtts)();return(0,l.useEffect)((()=>{!1===n&&(r(e),a(!0))}),[e,n,r]),!1===n?null:t};function h({atts:e}){const{item:t,ready:n,error:a}=(0,o.useEventById)({id:e.event_id,offsetDate:e.offset_date||!1,permissionType:"read_permission"});return!0!==n||!1!==a?null:React.createElement(u.RecoilRoot,null,React.createElement(d.Toaster,s.default),React.createElement(p,{atts:e},React.createElement(m,{event:t})))}function f({atts:e}){const t=e.event_data;return React.createElement(u.RecoilRoot,null,React.createElement(d.Toaster,s.default),React.createElement(p,{atts:e},React.createElement(m,{event:t})))}const g=function({atts:e}){return e.event_data?React.createElement(f,{atts:e}):React.createElement(h,{atts:e})}}}]);