1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15919,e=>{e.v({card:"account-summary-module-scss-module__wSRCAW__card",card__data:"account-summary-module-scss-module__wSRCAW__card__data",card__title:"account-summary-module-scss-module__wSRCAW__card__title",cards:"account-summary-module-scss-module__wSRCAW__cards",container:"account-summary-module-scss-module__wSRCAW__container",title:"account-summary-module-scss-module__wSRCAW__title"})},16794,e=>{e.v({container:"blog-author-module-scss-module__yg4nAW__container",description:"blog-author-module-scss-module__yg4nAW__description",meta:"blog-author-module-scss-module__yg4nAW__meta",name:"blog-author-module-scss-module__yg4nAW__name"})},90242,e=>{e.v({tagline:"accordion-block-module-scss-module__36MUJW__tagline"})},24886,e=>{e.v({block:"custom-image-block-module-scss-module__m-KY-a__block",caption:"custom-image-block-module-scss-module__m-KY-a__caption",center:"custom-image-block-module-scss-module__m-KY-a__center",container:"custom-image-block-module-scss-module__m-KY-a__container",full:"custom-image-block-module-scss-module__m-KY-a__full","img-container":"custom-image-block-module-scss-module__m-KY-a__img-container",inline:"custom-image-block-module-scss-module__m-KY-a__inline",left:"custom-image-block-module-scss-module__m-KY-a__left",right:"custom-image-block-module-scss-module__m-KY-a__right","size-lg":"custom-image-block-module-scss-module__m-KY-a__size-lg","size-md":"custom-image-block-module-scss-module__m-KY-a__size-md","size-og":"custom-image-block-module-scss-module__m-KY-a__size-og","size-sm":"custom-image-block-module-scss-module__m-KY-a__size-sm","size-th":"custom-image-block-module-scss-module__m-KY-a__size-th",tooltip:"custom-image-block-module-scss-module__m-KY-a__tooltip"})},65182,e=>{e.v({card:"timeline-card-block-module-scss-module__KKhk5G__card",container:"timeline-card-block-module-scss-module__KKhk5G__container",description:"timeline-card-block-module-scss-module__KKhk5G__description",icon:"timeline-card-block-module-scss-module__KKhk5G__icon",image:"timeline-card-block-module-scss-module__KKhk5G__image",info:"timeline-card-block-module-scss-module__KKhk5G__info",left:"timeline-card-block-module-scss-module__KKhk5G__left",link:"timeline-card-block-module-scss-module__KKhk5G__link",right:"timeline-card-block-module-scss-module__KKhk5G__right",title:"timeline-card-block-module-scss-module__KKhk5G__title"})},93425,e=>{e.v({container:"carousel-block-module-scss-module__hQ7baa__container",dark:"carousel-block-module-scss-module__hQ7baa__dark","featured-image":"carousel-block-module-scss-module__hQ7baa__featured-image",gallery:"carousel-block-module-scss-module__hQ7baa__gallery",heading:"carousel-block-module-scss-module__hQ7baa__heading",light:"carousel-block-module-scss-module__hQ7baa__light","not-found":"carousel-block-module-scss-module__hQ7baa__not-found",slider:"carousel-block-module-scss-module__hQ7baa__slider",timeline:"carousel-block-module-scss-module__hQ7baa__timeline",title:"carousel-block-module-scss-module__hQ7baa__title",wrapper:"carousel-block-module-scss-module__hQ7baa__wrapper"})},57848,e=>{e.v({container:"team-block-module-scss-module__rVsyTa__container"})},78808,e=>{e.v({text:"cta-group-module-scss-module__VIs5AW__text"})},36215,e=>{e.v({container:"card-block-module-scss-module__wTdJ-W__container",wrapper:"card-block-module-scss-module__wTdJ-W__wrapper"})},8956,e=>{e.v({container:"cta-dual-image-block-module-scss-module__rHuWLa__container",cta:"cta-dual-image-block-module-scss-module__rHuWLa__cta",cta__description:"cta-dual-image-block-module-scss-module__rHuWLa__cta__description",cta__title:"cta-dual-image-block-module-scss-module__rHuWLa__cta__title",cta__wrapper:"cta-dual-image-block-module-scss-module__rHuWLa__cta__wrapper",images:"cta-dual-image-block-module-scss-module__rHuWLa__images",images__wrapper:"cta-dual-image-block-module-scss-module__rHuWLa__images__wrapper",intro:"cta-dual-image-block-module-scss-module__rHuWLa__intro",primary:"cta-dual-image-block-module-scss-module__rHuWLa__primary",right:"cta-dual-image-block-module-scss-module__rHuWLa__right",secondary:"cta-dual-image-block-module-scss-module__rHuWLa__secondary",title:"cta-dual-image-block-module-scss-module__rHuWLa__title",wrapper:"cta-dual-image-block-module-scss-module__rHuWLa__wrapper"})},37612,e=>{e.v({card:"event-milestones-block-module-scss-module__aXzcVW__card",card__title:"event-milestones-block-module-scss-module__aXzcVW__card__title",column:"event-milestones-block-module-scss-module__aXzcVW__column",task:"event-milestones-block-module-scss-module__aXzcVW__task",task__heading:"event-milestones-block-module-scss-module__aXzcVW__task__heading",tasks:"event-milestones-block-module-scss-module__aXzcVW__tasks",wrapper:"event-milestones-block-module-scss-module__aXzcVW__wrapper"})},24390,e=>{e.v({container:"event-task-cta-module-scss-module__O7f2eG__container",disabled:"event-task-cta-module-scss-module__O7f2eG__disabled","modal-wrap":"event-task-cta-module-scss-module__O7f2eG__modal-wrap",registered:"event-task-cta-module-scss-module__O7f2eG__registered",text:"event-task-cta-module-scss-module__O7f2eG__text"})},62593,e=>{e.v({card:"event-task-card-module-scss-module__9lFsqW__card",complete:"event-task-card-module-scss-module__9lFsqW__complete",deadline:"event-task-card-module-scss-module__9lFsqW__deadline",description:"event-task-card-module-scss-module__9lFsqW__description",heading:"event-task-card-module-scss-module__9lFsqW__heading",icon:"event-task-card-module-scss-module__9lFsqW__icon",link:"event-task-card-module-scss-module__9lFsqW__link",subtitle:"event-task-card-module-scss-module__9lFsqW__subtitle",title:"event-task-card-module-scss-module__9lFsqW__title"})},48691,e=>{e.v({"card-box":"event-task-group-module-scss-module__R-Zxfa__card-box",title:"event-task-group-module-scss-module__R-Zxfa__title"})},56491,e=>{e.v({container:"form-page-content-module-scss-module___DBq-a__container"})},97948,e=>{e.v({container:"form-block-module-scss-module__cfaVxa__container","container--inline":"form-block-module-scss-module__cfaVxa__container--inline",title:"form-block-module-scss-module__cfaVxa__title"})},77983,e=>{e.v({container:"html-block-module-scss-module__GS-vtG__container",content:"html-block-module-scss-module__GS-vtG__content"})},64095,e=>{e.v({author:"quote-block-module-scss-module__gJzsBG__author",avatar:"quote-block-module-scss-module__gJzsBG__avatar",caption:"quote-block-module-scss-module__gJzsBG__caption",quote:"quote-block-module-scss-module__gJzsBG__quote"})},42906,e=>{e.v({"col-12":"statistic-group-block-module-scss-module__GgfzHW__col-12","col-3":"statistic-group-block-module-scss-module__GgfzHW__col-3","col-4":"statistic-group-block-module-scss-module__GgfzHW__col-4","col-6":"statistic-group-block-module-scss-module__GgfzHW__col-6",container:"statistic-group-block-module-scss-module__GgfzHW__container",description:"statistic-group-block-module-scss-module__GgfzHW__description",label:"statistic-group-block-module-scss-module__GgfzHW__label",statistic:"statistic-group-block-module-scss-module__GgfzHW__statistic",statistics:"statistic-group-block-module-scss-module__GgfzHW__statistics",text:"statistic-group-block-module-scss-module__GgfzHW__text",title:"statistic-group-block-module-scss-module__GgfzHW__title",value:"statistic-group-block-module-scss-module__GgfzHW__value"})},69143,e=>{e.v({container:"tile-group-block-module-scss-module__AKXO7G__container",content:"tile-group-block-module-scss-module__AKXO7G__content",tiles:"tile-group-block-module-scss-module__AKXO7G__tiles",title:"tile-group-block-module-scss-module__AKXO7G__title"})},68783,e=>{e.v({blogs:"featured-posts-block-module-scss-module__lrortG__blogs",container:"featured-posts-block-module-scss-module__lrortG__container","sub-title":"featured-posts-block-module-scss-module__lrortG__sub-title",title:"featured-posts-block-module-scss-module__lrortG__title"})},48277,e=>{e.v({bkgd:"content-blocks-module-scss-module__6y1zCa__bkgd","bkgd-img":"content-blocks-module-scss-module__6y1zCa__bkgd-img",block:"content-blocks-module-scss-module__6y1zCa__block",bottom:"content-blocks-module-scss-module__6y1zCa__bottom",column:"content-blocks-module-scss-module__6y1zCa__column",container:"content-blocks-module-scss-module__6y1zCa__container",end:"content-blocks-module-scss-module__6y1zCa__end",fill:"content-blocks-module-scss-module__6y1zCa__fill",inline:"content-blocks-module-scss-module__6y1zCa__inline",middle:"content-blocks-module-scss-module__6y1zCa__middle","nested-container":"content-blocks-module-scss-module__6y1zCa__nested-container",row:"content-blocks-module-scss-module__6y1zCa__row",start:"content-blocks-module-scss-module__6y1zCa__start",top:"content-blocks-module-scss-module__6y1zCa__top",wrap:"content-blocks-module-scss-module__6y1zCa__wrap",wrapper:"content-blocks-module-scss-module__6y1zCa__wrapper"})},6062,e=>{e.v({body:"social-media-links-module-scss-module__1w8OsG__body",container:"social-media-links-module-scss-module__1w8OsG__container",description:"social-media-links-module-scss-module__1w8OsG__description",detailed:"social-media-links-module-scss-module__1w8OsG__detailed",header:"social-media-links-module-scss-module__1w8OsG__header",heading:"social-media-links-module-scss-module__1w8OsG__heading",icon:"social-media-links-module-scss-module__1w8OsG__icon","link-wrap":"social-media-links-module-scss-module__1w8OsG__link-wrap",links:"social-media-links-module-scss-module__1w8OsG__links",short:"social-media-links-module-scss-module__1w8OsG__short",title:"social-media-links-module-scss-module__1w8OsG__title",tooltip:"social-media-links-module-scss-module__1w8OsG__tooltip"})},2234,e=>{"use strict";var t=e.i(43476),s=e.i(38413);e.i(67823);var a=e.i(65768);e.i(73886);var l=e.i(17122);e.i(32593);var i=e.i(10031),o=e.i(6062);function n({theme:e="short"}){let{data:n}=(0,s.useQuery)(a.SiteByHostnameDocument),{socialMediaHeading:r,socialMediaDescription:d,socialMedia:c,showSocialMedia:u}=n?.siteByHostname?.siteSettings||{};if(!u)return null;let m="detailed"===e?"sm":"lg";return(0,t.jsxs)("div",{className:`${o.default.container} ${o.default[e]}`,children:[r&&(0,t.jsx)("h2",{className:o.default.heading,children:r}),d&&"detailed"===e&&(0,t.jsx)("p",{className:o.default.description,children:d}),(0,t.jsx)("ul",{className:o.default.links,children:c&&c.map((s,a)=>(0,t.jsx)("li",{className:o.default["link-wrap"],children:(0,t.jsx)(i.Link,{href:s.url,icon:(0,l.getIconByLink)(s.url),size:m,isNewTab:!0,children:"detailed"===e?s.handle:void 0})},a))})]})}e.s(["SocialMediaLinks",()=>n,"default",0,n])},36609,e=>{e.v({container:"blog-content-module-scss-module__2tvuHq__container","featured-img":"blog-content-module-scss-module__2tvuHq__featured-img"})},20412,e=>{e.v({container:"blog-highlight-module-scss-module__NAAnrW__container",date:"blog-highlight-module-scss-module__NAAnrW__date",excerpt:"blog-highlight-module-scss-module__NAAnrW__excerpt",image:"blog-highlight-module-scss-module__NAAnrW__image",info:"blog-highlight-module-scss-module__NAAnrW__info",subtitle:"blog-highlight-module-scss-module__NAAnrW__subtitle",title:"blog-highlight-module-scss-module__NAAnrW__title"})},75497,e=>{e.v({badge:"challenge-info-module-scss-module__-_idHa__badge",badges:"challenge-info-module-scss-module__-_idHa__badges",container:"challenge-info-module-scss-module__-_idHa__container",label:"challenge-info-module-scss-module__-_idHa__label",meta:"challenge-info-module-scss-module__-_idHa__meta",pill:"challenge-info-module-scss-module__-_idHa__pill",pills:"challenge-info-module-scss-module__-_idHa__pills",tag:"challenge-info-module-scss-module__-_idHa__tag",tags:"challenge-info-module-scss-module__-_idHa__tags"})},44239,e=>{e.v({avatar:"directory-profile-module-scss-module__e9tiuW__avatar",biography:"directory-profile-module-scss-module__e9tiuW__biography",container:"directory-profile-module-scss-module__e9tiuW__container",copy:"directory-profile-module-scss-module__e9tiuW__copy",meta:"directory-profile-module-scss-module__e9tiuW__meta",name:"directory-profile-module-scss-module__e9tiuW__name",role:"directory-profile-module-scss-module__e9tiuW__role"})},28975,e=>{e.v({container:"editor-container-module-scss-module__99x8Kq__container",content:"editor-container-module-scss-module__99x8Kq__content"})},56407,e=>{e.v({text:"editor-text-module-scss-module__jt8qKW__text"})},5392,e=>{e.v({title:"editor-title-module-scss-module__hPf86a__title"})},82438,e=>{e.v({container:"form-errors-module-scss-module__wdQ_wG__container","field-errors":"form-errors-module-scss-module__wdQ_wG__field-errors",heading:"form-errors-module-scss-module__wdQ_wG__heading"})},58171,e=>{e.v({address:"local-event-address-module-scss-module__XclMXq__address",container:"local-event-address-module-scss-module__XclMXq__container",items:"local-event-address-module-scss-module__XclMXq__items",title:"local-event-address-module-scss-module__XclMXq__title"})},96579,e=>{e.v({avatar:"local-event-leads-module-scss-module__wPs3Ga__avatar",container:"local-event-leads-module-scss-module__wPs3Ga__container",description:"local-event-leads-module-scss-module__wPs3Ga__description",location:"local-event-leads-module-scss-module__wPs3Ga__location",member:"local-event-leads-module-scss-module__wPs3Ga__member",name:"local-event-leads-module-scss-module__wPs3Ga__name"})},5662,e=>{e.v({container:"local-event-image-module-scss-module__5wU_pq__container",dark:"local-event-image-module-scss-module__5wU_pq__dark",large:"local-event-image-module-scss-module__5wU_pq__large",light:"local-event-image-module-scss-module__5wU_pq__light",medium:"local-event-image-module-scss-module__5wU_pq__medium",name:"local-event-image-module-scss-module__5wU_pq__name",square:"local-event-image-module-scss-module__5wU_pq__square",thumbnail:"local-event-image-module-scss-module__5wU_pq__thumbnail",wide:"local-event-image-module-scss-module__5wU_pq__wide"})},97429,e=>{e.v({container:"local-event-registration-module-scss-module__BvX9Xa__container",info:"local-event-registration-module-scss-module__BvX9Xa__info"})},73985,e=>{e.v({container:"local-event-schedule-module-scss-module__PcHROG__container",empty:"local-event-schedule-module-scss-module__PcHROG__empty",group__schedule:"local-event-schedule-module-scss-module__PcHROG__group__schedule",group__title:"local-event-schedule-module-scss-module__PcHROG__group__title",heading:"local-event-schedule-module-scss-module__PcHROG__heading",info:"local-event-schedule-module-scss-module__PcHROG__info",item:"local-event-schedule-module-scss-module__PcHROG__item",item__title:"local-event-schedule-module-scss-module__PcHROG__item__title",schedule:"local-event-schedule-module-scss-module__PcHROG__schedule"})},62049,e=>{e.v({container:"local-event-status-module-scss-module__-GsSEa__container"})},51383,e=>{e.v({container:"local-event-socials-module-scss-module__0CiWkG__container",link:"local-event-socials-module-scss-module__0CiWkG__link","link-wrap":"local-event-socials-module-scss-module__0CiWkG__link-wrap",links:"local-event-socials-module-scss-module__0CiWkG__links","no-link":"local-event-socials-module-scss-module__0CiWkG__no-link"})},66394,e=>{e.v({container:"request-verification-module-scss-module__kiYnNG__container"})},47348,e=>{e.v({})},77794,e=>{e.v({})},24543,e=>{e.v({"flex-actions":"login-module-scss-module__yqaPeG__flex-actions","help-links":"login-module-scss-module__yqaPeG__help-links","modal-content":"login-module-scss-module__yqaPeG__modal-content",spacing:"login-module-scss-module__yqaPeG__spacing"})},92173,e=>{e.v({container:"authorized-module-scss-module__ryEdaq__container"})},33275,e=>{e.v({btn:"offers-content-module-scss-module__zuK4Qq__btn","claim-link":"offers-content-module-scss-module__zuK4Qq__claim-link",columns:"offers-content-module-scss-module__zuK4Qq__columns",container:"offers-content-module-scss-module__zuK4Qq__container",content:"offers-content-module-scss-module__zuK4Qq__content","external-link":"offers-content-module-scss-module__zuK4Qq__external-link",footnote:"offers-content-module-scss-module__zuK4Qq__footnote","h-alternate":"offers-content-module-scss-module__zuK4Qq__h-alternate","h-
1primary":"offers-content-module-scss-module__zuK4Qq__h-primary","h-secondary":"offers-content-module-scss-module__zuK4Qq__h-secondary",icon:"offers-content-module-scss-module__zuK4Qq__icon",link:"offers-content-module-scss-module__zuK4Qq__link",offer:"offers-content-module-scss-module__zuK4Qq__offer","offer-title":"offers-content-module-scss-module__zuK4Qq__offer-title",offers:"offers-content-module-scss-module__zuK4Qq__offers","section-summary":"offers-content-module-scss-module__zuK4Qq__section-summary","section-title":"offers-content-module-scss-module__zuK4Qq__section-title",subtitle:"offers-content-module-scss-module__zuK4Qq__subtitle","summary-content--dark":"offers-content-module-scss-module__zuK4Qq__summary-content--dark","summary-content--light":"offers-content-module-scss-module__zuK4Qq__summary-content--light","t-primary":"offers-content-module-scss-module__zuK4Qq__t-primary","t-secondary":"offers-content-module-scss-module__zuK4Qq__t-secondary"})},30225,e=>{e.v({field:"project-details-module-scss-module__9SSuXW__field","field-caption":"project-details-module-scss-module__9SSuXW__field-caption","field-title":"project-details-module-scss-module__9SSuXW__field-title","field-value":"project-details-module-scss-module__9SSuXW__field-value","h-alternate":"project-details-module-scss-module__9SSuXW__h-alternate","h-primary":"project-details-module-scss-module__9SSuXW__h-primary","h-secondary":"project-details-module-scss-module__9SSuXW__h-secondary","has-caption":"project-details-module-scss-module__9SSuXW__has-caption","link-repeater":"project-details-module-scss-module__9SSuXW__link-repeater","link-wrap":"project-details-module-scss-module__9SSuXW__link-wrap",richtext:"project-details-module-scss-module__9SSuXW__richtext","t-primary":"project-details-module-scss-module__9SSuXW__t-primary","t-secondary":"project-details-module-scss-module__9SSuXW__t-secondary"})},97565,e=>{e.v({badge:"project-listing-module-scss-module__UHg9Ma__badge",badges:"project-listing-module-scss-module__UHg9Ma__badges",caption:"project-listing-module-scss-module__UHg9Ma__caption",container:"project-listing-module-scss-module__UHg9Ma__container",content:"project-listing-module-scss-module__UHg9Ma__content",excerpt:"project-listing-module-scss-module__UHg9Ma__excerpt",image:"project-listing-module-scss-module__UHg9Ma__image",label:"project-listing-module-scss-module__UHg9Ma__label",meta:"project-listing-module-scss-module__UHg9Ma__meta","meta-container":"project-listing-module-scss-module__UHg9Ma__meta-container",pill:"project-listing-module-scss-module__UHg9Ma__pill",pills:"project-listing-module-scss-module__UHg9Ma__pills",tag:"project-listing-module-scss-module__UHg9Ma__tag",tags:"project-listing-module-scss-module__UHg9Ma__tags",title:"project-listing-module-scss-module__UHg9Ma__title",wrap:"project-listing-module-scss-module__UHg9Ma__wrap"})},77667,e=>{e.v({container:"project-outline-module-scss-module__T_M9uW__container",excerpt:"project-outline-module-scss-module__T_M9uW__excerpt",item:"project-outline-module-scss-module__T_M9uW__item",outline:"project-outline-module-scss-module__T_M9uW__outline",subtitle:"project-outline-module-scss-module__T_M9uW__subtitle",title:"project-outline-module-scss-module__T_M9uW__title"})},89360,e=>{e.v({container:"resource-content-module-scss-module__TYG6hG__container",heading:"resource-content-module-scss-module__TYG6hG__heading"})},48127,e=>{e.v({"award-icon":"team-award-listing-module-scss-module__HmQQTW__award-icon","award-label":"team-award-listing-module-scss-module__HmQQTW__award-label","award-title":"team-award-listing-module-scss-module__HmQQTW__award-title",container:"team-award-listing-module-scss-module__HmQQTW__container",content:"team-award-listing-module-scss-module__HmQQTW__content",image:"team-award-listing-module-scss-module__HmQQTW__image",label:"team-award-listing-module-scss-module__HmQQTW__label",link:"team-award-listing-module-scss-module__HmQQTW__link",meta:"team-award-listing-module-scss-module__HmQQTW__meta","meta-title":"team-award-listing-module-scss-module__HmQQTW__meta-title","nominee-title":"team-award-listing-module-scss-module__HmQQTW__nominee-title",title:"team-award-listing-module-scss-module__HmQQTW__title",top:"team-award-listing-module-scss-module__HmQQTW__top",wrapper:"team-award-listing-module-scss-module__HmQQTW__wrapper"})},86658,e=>{e.v({container:"team-details-summary-module-scss-module__NLv6kW__container",content:"team-details-summary-module-scss-module__NLv6kW__content",details:"team-details-summary-module-scss-module__NLv6kW__details",heading:"team-details-summary-module-scss-module__NLv6kW__heading",pill:"team-details-summary-module-scss-module__NLv6kW__pill"})},88941,e=>{e.v({badge:"team-listing-module-scss-module__QFj_5a__badge",badges:"team-listing-module-scss-module__QFj_5a__badges",fill:"team-listing-module-scss-module__QFj_5a__fill",label:"team-listing-module-scss-module__QFj_5a__label",meta:"team-listing-module-scss-module__QFj_5a__meta",pill:"team-listing-module-scss-module__QFj_5a__pill",pills:"team-listing-module-scss-module__QFj_5a__pills",tag:"team-listing-module-scss-module__QFj_5a__tag",tags:"team-listing-module-scss-module__QFj_5a__tags"})},22200,e=>{e.v({awards:"team-status-module-scss-module__o0LkkG__awards",badges:"team-status-module-scss-module__o0LkkG__badges",container:"team-status-module-scss-module__o0LkkG__container"})},66709,e=>{e.v({container:"content-type-form-module-scss-module__QAS7WG__container","flex-actions":"content-type-form-module-scss-module__QAS7WG__flex-actions",status:"content-type-form-module-scss-module__QAS7WG__status"})},93775,e=>{e.v({container:"create-account-module-scss-module__dBfJLW__container",modal:"create-account-module-scss-module__dBfJLW__modal"})},36831,e=>{e.v({container:"reset-password-module-scss-module__jHeKvW__container"})},16959,e=>{e.v({className:"fira_code_5a2a53c7-module__6ZvH9q__className",variable:"fira_code_5a2a53c7-module__6ZvH9q__variable"})},57278,e=>{e.v({className:"fira_sans_80edd855-module__AVCkGq__className",variable:"fira_sans_80edd855-module__AVCkGq__variable"})},7773,e=>{e.v({background:"certificate-module-scss-module__Q9kd_a__background","bottom-text":"certificate-module-scss-module__Q9kd_a__bottom-text",container:"certificate-module-scss-module__Q9kd_a__container",content:"certificate-module-scss-module__Q9kd_a__content",dark:"certificate-module-scss-module__Q9kd_a__dark",dates:"certificate-module-scss-module__Q9kd_a__dates","dates-label":"certificate-module-scss-module__Q9kd_a__dates-label","dates-text":"certificate-module-scss-module__Q9kd_a__dates-text",footer:"certificate-module-scss-module__Q9kd_a__footer","footer-featured":"certificate-module-scss-module__Q9kd_a__footer-featured","footer-images":"certificate-module-scss-module__Q9kd_a__footer-images","footer-text":"certificate-module-scss-module__Q9kd_a__footer-text",logo:"certificate-module-scss-module__Q9kd_a__logo",main:"certificate-module-scss-module__Q9kd_a__main","middle-text":"certificate-module-scss-module__Q9kd_a__middle-text",name:"certificate-module-scss-module__Q9kd_a__name",presenter:"certificate-module-scss-module__Q9kd_a__presenter","presenter-name":"certificate-module-scss-module__Q9kd_a__presenter-name","presenter-signature":"certificate-module-scss-module__Q9kd_a__presenter-signature","presenter-title":"certificate-module-scss-module__Q9kd_a__presenter-title",text:"certificate-module-scss-module__Q9kd_a__text",title:"certificate-module-scss-module__Q9kd_a__title"})},10239,e=>{e.v({awards:"account-history-module-scss-module__W-n8iq__awards",badges:"account-history-module-scss-module__W-n8iq__badges",bordered:"account-history-module-scss-module__W-n8iq__bordered","certificate-export":"account-history-module-scss-module__W-n8iq__certificate-export",detail:"account-history-module-scss-module__W-n8iq__detail",half:"account-history-module-scss-module__W-n8iq__half",label:"account-history-module-scss-module__W-n8iq__label",registered:"account-history-module-scss-module__W-n8iq__registered",row:"account-history-module-scss-module__W-n8iq__row",value:"account-history-module-scss-module__W-n8iq__value"})},54445,e=>{e.v({container:"content-type-inline-form-module-scss-module__FVWItG__container","flex-actions":"content-type-inline-form-module-scss-module__FVWItG__flex-actions",status:"content-type-inline-form-module-scss-module__FVWItG__status"})},96490,e=>{e.v({alerts:"account-profile-module-scss-module__CeQvOG__alerts",container:"account-profile-module-scss-module__CeQvOG__container",default:"account-profile-module-scss-module__CeQvOG__default",error:"account-profile-module-scss-module__CeQvOG__error",section:"account-profile-module-scss-module__CeQvOG__section","section-title":"account-profile-module-scss-module__CeQvOG__section-title"})},54022,e=>{e.v({container:"account-verification-module-scss-module__86Z16a__container"})},65840,e=>{e.v({container:"request-help-module-scss-module__TXM8fq__container"})},94296,e=>{e.v({actions:"content-filter-form-module-scss-module__jY617W__actions","close-btn":"content-filter-form-module-scss-module__jY617W__close-btn",container:"content-filter-form-module-scss-module__jY617W__container",controls:"content-filter-form-module-scss-module__jY617W__controls","flyout-container":"content-filter-form-module-scss-module__jY617W__flyout-container",form:"content-filter-form-module-scss-module__jY617W__form",tag:"content-filter-form-module-scss-module__jY617W__tag","tags-list":"content-filter-form-module-scss-module__jY617W__tags-list"})},56494,e=>
1{e.v({container:"award-details-module-scss-module__7cvGTW__container",disabled:"award-details-module-scss-module__7cvGTW__disabled",results:"award-details-module-scss-module__7cvGTW__results"})},10661,e=>{e.v({block:"blog-index-module-scss-module__2lk1JG__block","block-btn":"blog-index-module-scss-module__2lk1JG__block-btn","block-content":"blog-index-module-scss-module__2lk1JG__block-content","block-header":"blog-index-module-scss-module__2lk1JG__block-header",btn:"blog-index-module-scss-module__2lk1JG__btn",caret:"blog-index-module-scss-module__2lk1JG__caret",category:"blog-index-module-scss-module__2lk1JG__category","category-input":"blog-index-module-scss-module__2lk1JG__category-input","category-label":"blog-index-module-scss-module__2lk1JG__category-label","category-list":"blog-index-module-scss-module__2lk1JG__category-list",container:"blog-index-module-scss-module__2lk1JG__container","filter-info":"blog-index-module-scss-module__2lk1JG__filter-info","filter-info-text":"blog-index-module-scss-module__2lk1JG__filter-info-text","header-text":"blog-index-module-scss-module__2lk1JG__header-text",input:"blog-index-module-scss-module__2lk1JG__input","live-search":"blog-index-module-scss-module__2lk1JG__live-search",minimized:"blog-index-module-scss-module__2lk1JG__minimized","post-heading":"blog-index-module-scss-module__2lk1JG__post-heading","search-header":"blog-index-module-scss-module__2lk1JG__search-header","search-input-container":"blog-index-module-scss-module__2lk1JG__search-input-container",submit:"blog-index-module-scss-module__2lk1JG__submit"})},7369,e=>{e.v({container:"challenge-details-module-scss-module__O7hwEG__container",content:"challenge-details-module-scss-module__O7hwEG__content"})},52975,e=>{e.v({content:"challenge-teams-module-scss-module__nQgrsq__content",results:"challenge-teams-module-scss-module__nQgrsq__results"})},30194,e=>{e.v({container:"challenge-resources-module-scss-module__X6FS6a__container",content:"challenge-resources-module-scss-module__X6FS6a__content"})},16681,e=>{e.v({container:"challenge-module-scss-module__JSY-YW__container",info:"challenge-module-scss-module__JSY-YW__info"})},30870,e=>{e.v({})},33441,e=>{e.v({container:"challenge-index-module-scss-module__v-LEXa__container",excerpt:"challenge-index-module-scss-module__v-LEXa__excerpt",results:"challenge-index-module-scss-module__v-LEXa__results"})},50455,e=>{e.v({caption:"project-details-modal-module-scss-module__jjO4qG__caption",container:"project-details-modal-module-scss-module__jjO4qG__container","content-details":"project-details-modal-module-scss-module__jjO4qG__content-details","content-title":"project-details-modal-module-scss-module__jjO4qG__content-title",label:"project-details-modal-module-scss-module__jjO4qG__label",meta:"project-details-modal-module-scss-module__jjO4qG__meta","meta-container":"project-details-modal-module-scss-module__jjO4qG__meta-container","top-actions":"project-details-modal-module-scss-module__jjO4qG__top-actions"})},2154,e=>{e.v({actions:"content-type-editor-module-scss-module__cKzEUG__actions",actions__primary:"content-type-editor-module-scss-module__cKzEUG__actions__primary",actions__secondary:"content-type-editor-module-scss-module__cKzEUG__actions__secondary",lock:"content-type-editor-module-scss-module__cKzEUG__lock",reset:"content-type-editor-module-scss-module__cKzEUG__reset"})},45656,e=>{e.v({avatar:"directory-list-module-scss-module__fMzRjq__avatar",container:"directory-list-module-scss-module__fMzRjq__container",name:"directory-list-module-scss-module__fMzRjq__name",profile:"directory-list-module-scss-module__fMzRjq__profile",role:"directory-list-module-scss-module__fMzRjq__role"})},2526,e=>{e.v({registered:"event-registration-cta-module-scss-module__CFFKAa__registered"})},20735,e=>{e.v({"award-icon":"edit-vote-awards-module-scss-module__ZqvxrG__award-icon",checkmark:"edit-vote-awards-module-scss-module__ZqvxrG__checkmark",container:"edit-vote-awards-module-scss-module__ZqvxrG__container",control:"edit-vote-awards-module-scss-module__ZqvxrG__control","control-indicator":"edit-vote-awards-module-scss-module__ZqvxrG__control-indicator","control-label":"edit-vote-awards-module-scss-module__ZqvxrG__control-label","control-title":"edit-vote-awards-module-scss-module__ZqvxrG__control-title","flex-actions":"edit-vote-awards-module-scss-module__ZqvxrG__flex-actions",input:"edit-vote-awards-module-scss-module__ZqvxrG__input",options:"edit-vote-awards-module-scss-module__ZqvxrG__options"})},47614,e=>{e.v({container:"edit-vote-notes-module-scss-module__wNDp6W__container","flex-actions":"edit-vote-notes-module-scss-module__wNDp6W__flex-actions"})},85863,e=>{e.v({container:"vote-nomination-cta-module-scss-module__wdhRsG__container","other-actions":"vote-nomination-cta-module-scss-module__wdhRsG__other-actions",reviewed:"vote-nomination-cta-module-scss-module__wdhRsG__reviewed",tooltip:"vote-nomination-cta-module-scss-module__wdhRsG__tooltip","vote-actions":"vote-nomination-cta-module-scss-module__wdhRsG__vote-actions","vote-btn":"vote-nomination-cta-module-scss-module__wdhRsG__vote-btn"})},33043,e=>{e.v({container:"judging-module-scss-module__aS2uWW__container",results:"judging-module-scss-module__aS2uWW__results"})},93492,e=>{e.v({container:"judging-index-module-scss-module__yObisW__container",results:"judging-index-module-scss-module__yObisW__results"})},16886,e=>{e.v({container:"local-event-details-module-scss-module__G5x5Xq__container",details:"local-event-details-module-scss-module__G5x5Xq__details","h-alternate":"local-event-details-module-scss-module__G5x5Xq__h-alternate","h-
1primary":"local-event-details-module-scss-module__G5x5Xq__h-primary","h-secondary":"local-event-details-module-scss-module__G5x5Xq__h-secondary",richtext:"local-event-details-module-scss-module__G5x5Xq__richtext","richtext--alert":"local-event-details-module-scss-module__G5x5Xq__richtext--alert","t-primary":"local-event-details-module-scss-module__G5x5Xq__t-primary","t-secondary":"local-event-details-module-scss-module__G5x5Xq__t-secondary"})},17714,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function l(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,s=Array(e.length);t<e.length;t++)s[t]=e[t];return s}var i=s.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},o=s.isJsons=function(e){return Array.isArray(e)&&e.every(function(e){return(void 0===e?"undefined":a(e))==="object"&&!(e instanceof Array)})},n=s.isArrays=function(e){return Array.isArray(e)&&e.every(function(e){return Array.isArray(e)})},r=s.jsonsHeaders=function(e){return Array.from(e.map(function(e){return Object.keys(e)}).reduce(function(e,t){return new Set([].concat(l(e),l(t)))},[]))},d=s.jsons2arrays=function(e,t){var s=t=t||r(e),a=t;return o(t)&&(s=t.map(function(e){return e.label}),a=t.map(function(e){return e.key})),[s].concat(l(e.map(function(e){return a.map(function(t){return c(t,e)})})))},c=s.getHeaderValue=function(e,t){var s=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(e,t,s,a){var l=e[t];if(null!=l)return l;a.splice(1)},t);return void 0===s?e in t?t[e]:"":s},u=s.elementOrEmpty=function(e){return null==e?"":e},m=s.joiner=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter(function(e){return e}).map(function(e){return e.map(function(e){return u(e)}).map(function(e){return""+s+e+s}).join(t)}).join("\n")},h=s.arrays2csv=function(e,t,s,a){return m(t?[t].concat(l(e)):e,s,a)},p=s.jsons2csv=function(e,t,s,a){return m(d(e,t),s,a)},_=s.string2csv=function(e,t,s,a){return t?t.join(s)+"\n"+e:e.replace(/"/g,'""')},f=s.toCSV=function(e,t,s,a){if(o(e))return p(e,t,s,a);if(n(e))return h(e,t,s,a);if("string"==typeof e)return _(e,t,s);throw TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};s.buildURI=function(e,t,s,a,l){var o=f(e,s,a,l),n=i()?"application/csv":"text/csv",r=new Blob([t?"\uFEFF":"",o],{type:n}),d="data:"+n+";charset=utf-8,"+(t?"\uFEFF":"")+o,c=window.URL||window.webkitURL;return void 0===c.createObjectURL?d:c.createObjectURL(r)}},87393,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.PropsNotForwarded=s.defaultProps=s.propTypes=void 0,(a=e.r(15504))&&a.__esModule;var a,l=e.r(45009);s.propTypes={data:(0,l.oneOfType)([l.string,l.array,l.func]).isRequired,headers:l.array,target:l.string,separator:l.string,filename:l.string,uFEFF:l.bool,onClick:l.func,asyncOnClick:l.bool,enclosingCharacter:l.string},s.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},s.PropsNotForwarded=["data","headers"]},36733,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a,l=function(){function e(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,s,a){return s&&e(t.prototype,s),a&&e(t,a),t}}(),i=(a=e.r(15504))&&a.__esModule?a:{default:a},o=e.r(17714),n=e.r(87393),r=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var s=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.state={},s}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),l(t,[{key:"buildURI",value:function(){return o.buildURI.apply(void 0,arguments)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.data,s=e.headers,a=e.separator,l=e.enclosingCharacter,i=e.uFEFF,o=e.target,n=e.specs,r=e.replace;this.state.page=window.open(this.buildURI(t,i,s,a,l),o,n,r)}},{key:"getWindow",value:function(){return this.state.page}},{key:"render",value:function(){return null}}]),t}(i.default.Component);r.defaultProps=Object.assign(n.defaultProps,{target:"_blank"}),r.propTypes=n.propTypes,s.default=r}
1,36391,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},i=function(){function e(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,s,a){return s&&e(t.prototype,s),a&&e(t,a),t}}(),o=(a=e.r(15504))&&a.__esModule?a:{default:a},n=e.r(17714),r=e.r(87393),d=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var s=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return s.buildURI=s.buildURI.bind(s),s}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i(t,[{key:"buildURI",value:function(){return n.buildURI.apply(void 0,arguments)}},{key:"handleLegacy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var s=this.props,a=s.data,l=s.headers,i=s.separator,o=s.filename,r=s.enclosingCharacter,d=s.uFEFF,c=t&&"function"==typeof a?a():a,u=new Blob([d?"\uFEFF":"",(0,n.toCSV)(c,l,i,r)]);return window.navigator.msSaveBlob(u,o),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,function(s){!1===s?e.preventDefault():t.handleLegacy(e,!0)})}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"==typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,s=t.data,a=t.headers,i=t.separator,n=t.filename,r=t.uFEFF,d=t.children,c=(t.onClick,t.asyncOnClick,t.enclosingCharacter),u=function(e,t){var s={};for(var a in e)!(t.indexOf(a)>=0)&&Object.prototype.hasOwnProperty.call(e,a)&&(s[a]=e[a]);return s}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),m="u"<typeof window?"":this.buildURI(s,r,a,i,c);return o.default.createElement("a",l({download:n},u,{ref:function(t){return e.link=t},target:"_self",href:m,onClick:this.handleClick()}),d)}}]),t}(o.default.Component);d.defaultProps=r.defaultProps,d.propTypes=r.propTypes,s.default=d},22528,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.CSVLink=s.CSVDownload=void 0;var a=i(e.r(36733)),l=i(e.r(36391));function i(e){return e&&e.__esModule?e:{default:e}}s.CSVDownload=a.default,s.CSVLink=l.default},80790,(e,t,s)=>{t.exports=e.r(22528)},29431,e=>{e.v({container:"select-local-event-registration-module-scss-module__EjjoIq__container",error:"select-local-event-registration-module-scss-module__EjjoIq__error","flex-actions":"select-local-event-registration-module-scss-module__EjjoIq__flex-actions","show-avatar":"select-local-event-registration-module-scss-module__EjjoIq__show-avatar",text:"select-local-event-registration-module-scss-module__EjjoIq__text"})},93078,e=>{e.v({heading:"participant-filters-module-scss-module__Den5CG__heading",options:"participant-filters-module-scss-module__Den5CG__options",select:"participant-filters-module-scss-module__Den5CG__select"})},48423,e=>{e.v({actions:"local-event-participants-module-scss-module__DdWFZG__actions","button-group":"local-event-participants-module-scss-module__DdWFZG__button-group",container:"local-event-participants-module-scss-module__DdWFZG__container",controls:"local-event-participants-module-scss-module__DdWFZG__controls",editable:"local-event-participants-module-scss-module__DdWFZG__editable",even:"local-event-participants-module-scss-module__DdWFZG__even","icon-with-text":"local-event-participants-module-scss-module__DdWFZG__icon-with-text",input:"local-event-participants-module-scss-module__DdWFZG__input",link:"local-event-participants-module-scss-module__DdWFZG__link","loading-overlay":"local-event-participants-module-scss-module__DdWFZG__loading-overlay",meta:"local-event-participants-module-scss-module__DdWFZG__meta","modal-text":"local-event-participants-module-scss-module__DdWFZG__modal-text","modal
1-wrap":"local-event-participants-module-scss-module__DdWFZG__modal-wrap",reset:"local-event-participants-module-scss-module__DdWFZG__reset","results-container":"local-event-participants-module-scss-module__DdWFZG__results-container","search-bar":"local-event-participants-module-scss-module__DdWFZG__search-bar","search-field":"local-event-participants-module-scss-module__DdWFZG__search-field","search-submit":"local-event-participants-module-scss-module__DdWFZG__search-submit",stat:"local-event-participants-module-scss-module__DdWFZG__stat",stats:"local-event-participants-module-scss-module__DdWFZG__stats",table:"local-event-participants-module-scss-module__DdWFZG__table","table-container":"local-event-participants-module-scss-module__DdWFZG__table-container","table-meta":"local-event-participants-module-scss-module__DdWFZG__table-meta",table__row:"local-event-participants-module-scss-module__DdWFZG__table__row"})},75754,e=>{e.v({container:"vote-local-event-cta-module-scss-module__v_qsUG__container","other-actions":"vote-local-event-cta-module-scss-module__v_qsUG__other-actions","vote-actions":"vote-local-event-cta-module-scss-module__v_qsUG__vote-actions"})},47724,e=>{e.v({content:"local-event-judging-module-scss-module__UOT6ha__content","local-lead-info":"local-event-judging-module-scss-module__UOT6ha__local-lead-info",results:"local-event-judging-module-scss-module__UOT6ha__results"})},19702,e=>{e.v({content:"local-event-teams-module-scss-module__nzmkOa__content",results:"local-event-teams-module-scss-module__nzmkOa__results"})},8173,e=>{e.v({container:"local-event-tabs-module-scss-module__wMkz5G__container",info:"local-event-tabs-module-scss-module__wMkz5G__info"})},15198,e=>{e.v({container:"local-event-search-and-filter-module-scss-module__P__ula__container","field-group":"local-event-search-and-filter-module-scss-module__P__ula__field-group",filter:"local-event-search-and-filter-module-scss-module__P__ula__filter",filters:"local-event-search-and-filter-module-scss-module__P__ula__filters","group-label":"local-event-search-and-filter-module-scss-module__P__ula__group-label",reset:"local-event-search-and-filter-module-scss-module__P__ula__reset",search:"local-event-search-and-filter-module-scss-module__P__ula__search","search-bar":"local-event-search-and-filter-module-scss-module__P__ula__search-bar","search-input":"local-event-search-and-filter-module-scss-module__P__ula__search-input",submit:"local-event-search-and-filter-module-scss-module__P__ula__submit"})},52476,e=>{e.v({"empty-results":"local-events-list-module-scss-module__kQzdjq__empty-results","local-event":"local-events-list-module-scss-module__kQzdjq__local-event","local-event-content":"local-events-list-module-scss-module__kQzdjq__local-event-content","local-event-image":"local-events-list-module-scss-module__kQzdjq__local-event-image","local-event-info":"local-events-list-module-scss-module__kQzdjq__local-event-info","local-event-subtitle":"local-events-list-module-scss-module__kQzdjq__local-event-subtitle","local-event-text":"local-events-list-module-scss-module__kQzdjq__local-event-text","local-event-title":"local-events-list-module-scss-module__kQzdjq__local-event-title","local-events":"local-events-list-module-scss-module__kQzdjq__local-events",pinned:"local-events-list-module-scss-module__kQzdjq__pinned",selected:"local-events-list-module-scss-module__kQzdjq__selected"})},7524,e=>{e.v({container:"local-event-index-module-scss-module__PPjioW__container",data:"local-event-index-module-scss-module__PPjioW__data",footer:"local-event-index-module-scss-module__PPjioW__footer",gradient:"local-event-index-module-scss-module__PPjioW__gradient",map:"local-event-index-module-scss-module__PPjioW__map","not-found":"local-event-index-module-scss-module__PPjioW__not-found"})},72180,e=>{e.v({container:"dashboard-message-module-scss-module__-sh8xa__container",error:"dashboard-message-module-scss-module__-sh8xa__error","flex-actions":"dashboard-message-module-scss-module__-sh8xa__flex-actions",reset:"dashboard-message-module-scss-module__-sh8xa__reset","success-reset":"dashboard-message-module-scss-module__-sh8xa__success-reset"})},43293,e=>{e.v({badge:"message-card-module-scss-module__evkzYG__badge","badge-blue":"message-card-module-scss-module__evkzYG__badge-blue","badge-red":"message-card-module-scss-module__evkzYG__badge-red",badges:"message-card-module-scss-module__evkzYG__badges","click-catch":"message-card-module-scss-module__evkzYG__click-catch",close:"message-card-module-scss-module__evkzYG__close",container:"message-card-module-scss-module__evkzYG__container",content:"message-card-module-scss-module__evkzYG__content",controls:"message-card-module-scss-module__evkzYG__controls",excerpt:"message-card-module-scss-module__evkzYG__excerpt",expanded:"message-card-module-scss-module__evkzYG__expanded",message:"message-card-module-scss-module__evkzYG__message",meta:"message-card-module-scss-module__evkzYG__meta","modal-control
1s":"message-card-module-scss-module__evkzYG__modal-controls",richtext:"message-card-module-scss-module__evkzYG__richtext",sender:"message-card-module-scss-module__evkzYG__sender",sender__avatar:"message-card-module-scss-module__evkzYG__sender__avatar",sender__name:"message-card-module-scss-module__evkzYG__sender__name",subject:"message-card-module-scss-module__evkzYG__subject"})},84103,e=>{e.v({container:"message-inbox-module-scss-module__sBQvoG__container",links:"message-inbox-module-scss-module__sBQvoG__links"})},89578,e=>{e.v({container:"message-outbox-module-scss-module__I_O6wq__container",links:"message-outbox-module-scss-module__I_O6wq__links"})},21202,e=>{e.v({container:"message-tabs-module-scss-module__2LE5ha__container"})},92392,e=>{e.v({container:"menu-item-list-module-scss-module__6pXoEq__container"})},2115,e=>{e.v({AVATAR:"menu-item-module-scss-module__jG9c2G__AVATAR",CALLOUT:"menu-item-module-scss-module__jG9c2G__CALLOUT",ITEM:"menu-item-module-scss-module__jG9c2G__ITEM",LINK:"menu-item-module-scss-module__jG9c2G__LINK",LIST:"menu-item-module-scss-module__jG9c2G__LIST",LOGIN_ITEM:"menu-item-module-scss-module__jG9c2G__LOGIN_ITEM",LOGOUT_ITEM:"menu-item-module-scss-module__jG9c2G__LOGOUT_ITEM",MENU_FORM:"menu-item-module-scss-module__jG9c2G__MENU_FORM",MENU_ITEM:"menu-item-module-scss-module__jG9c2G__MENU_ITEM",MENU_USER:"menu-item-module-scss-module__jG9c2G__MENU_USER",PROFILE_ITEM:"menu-item-module-scss-module__jG9c2G__PROFILE_ITEM",SIGNUP_ITEM:"menu-item-module-scss-module__jG9c2G__SIGNUP_ITEM","avatar-icon":"menu-item-module-scss-module__jG9c2G__avatar-icon",btn:"menu-item-module-scss-module__jG9c2G__btn","desktop-only":"menu-item-module-scss-module__jG9c2G__desktop-only","has-children":"menu-item-module-scss-module__jG9c2G__has-children",hidden:"menu-item-module-scss-module__jG9c2G__hidden",icon:"menu-item-module-scss-module__jG9c2G__icon","is-active":"menu-item-module-scss-module__jG9c2G__is-active","is-dropdown":"menu-item-module-scss-module__jG9c2G__is-dropdown","is-list":"menu-item-module-scss-module__jG9c2G__is-list",item:"menu-item-module-scss-module__jG9c2G__item",link:"menu-item-module-scss-module__jG9c2G__link","link--btn":"menu-item-module-scss-module__jG9c2G__link--btn","mobile-only":"menu-item-module-scss-module__jG9c2G__mobile-only",padded:"menu-item-module-scss-module__jG9c2G__padded",plus:"menu-item-module-scss-module__jG9c2G__plus",separator:"menu-item-module-scss-module__jG9c2G__separator","toggle-button":"menu-item-module-scss-module__jG9c2G__toggle-button"})},46174,e=>{e.v({container:"menu-dropdown-module-scss-module__nGCHmG__container",dropdown:"menu-dropdown-module-scss-module__nGCHmG__dropdown","dropdown-submenu":"menu-dropdown-module-scss-module__nGCHmG__dropdown-submenu",right:"menu-dropdown-module-scss-module__nGCHmG__right",show:"menu-dropdown-module-scss-module__nGCHmG__show"})},37844,e=>{e.v({container:"not-found-content-module-scss-module__TscHPG__container"})},60411,e=>{e.v({background:"page-hero-module-scss-module__gOzt4a__background",container:"page-hero-module-scss-module__gOzt4a__container",content:"page-hero-module-scss-module__gOzt4a__content",dark:"page-hero-module-scss-module__gOzt4a__dark",event:"page-hero-module-scss-module__gOzt4a__event",img:"page-hero-module-scss-module__gOzt4a__img",landing:"page-hero-module-scss-module__gOzt4a__landing",lg:"page-hero-module-scss-module__gOzt4a__lg",light:"page-hero-module-scss-module__gOzt4a__light",md:"page-hero-module-scss-module__gOzt4a__md",sm:"page-hero-module-scss-module__gOzt4a__sm",tabbed:"page-hero-module-scss-module__gOzt4a__tabbed",video:"page-hero-module-scss-module__gOzt4a__video",wrapper:"page-hero-module-scss-module__gOzt4a__wrapper"})},73982,e=>{e.v({btn:"resource-groups-module-scss-module__ReEEgW__btn",container:"resource-groups-module-scss-module__ReEEgW__container",group__categories:"resource-groups-module-scss-module__ReEEgW__group__categories",group__title:"resource-groups-module-scss-module__ReEEgW__group__title",guide:"resource-groups-module-scss-module__ReEEgW__guide",guide__description:"resource-groups-module-scss-module__ReEEgW__guide__description",guide__heading:"resource-groups-module-scss-module__ReEEgW__guide__heading",guide__links:"resource-groups-module-scss-module__ReEEgW__guide__links",item:"resource-groups-module-scss-module__ReEEgW__item",link:"resource-groups-module-scss-module__ReEEgW__link"})},73376,e=>{e.v({container:"resources-search-bar-module-scss-module__lgrq2a__container",link:"resources-search-bar-module-scss-module__lgrq2a__link"})},20879,e=>{e.v({"back-link":"resource-menu-module-scss-module__XqQ6Jq__back-link",btn:"resource-menu-module-scss-module__XqQ6Jq__btn",current:"resource-menu-module-scss-module__XqQ6Jq__current",link:"resource-menu-module-scss-module__XqQ6Jq__link",menu__heading:"resource-menu-module-scss-module__XqQ6Jq__menu__heading",menu__links:"resource-menu-module-scss-module__XqQ6Jq__menu__links",menu__meta:"resource-menu-module-scss-module__XqQ6Jq__menu__meta"})},98403,e=>{e.v({active:"site-nav-module-scss-module__oJCOAa__active",btn:"site-nav-module-scss-module__oJCOAa__btn",container:"site-nav-module-scss-module__oJCOAa__container",hamburger:"site-nav-module-scss-module__oJCOAa__hamburger",hidden:"site-nav-module-scss-module__oJCOAa__hidden",menu:"site-nav-module-scss-module__oJCOAa__menu"})},53980,e=>{e.v({"col-left":"site-header-module-scss-module__bmeb3G__col-left","col-right":"site-header-module-scss-module__bmeb3G__col-right",container:"site-header-module-scss-module__bmeb3G__container",header:"site-header-module-scss-module__bmeb3G__header","mobile-menu-open":"site-header-module-scss-module__bmeb3G__mobile-menu-open",transparent:"site-header-module-scss-module__bmeb3G__transparent",wrapper:"site-header-module-scss-module__bmeb3G__wrapper"})},4536,e=>{e.v({container:"site-footer-module-scss-module__uHxefq__container","footer-content":"site-footer-module-scss-module__uHxefq__footer-content",pinned:"site-footer-module-scss-module__uHxefq__pinned",row:"site-footer-module-scss-module__uHxefq__row","social-container":"site-footer-module-scss-module__uHxefq__social-container"})},16787,e=>{e.v({container:"create-team-module-scss-module__aHrAlG__container",content:"create-team-module-scss-module__aHrAlG__content"})},15502,e=>{e.v({container:"create-team-join-request-module-scss-module__sVOvWq__container","flex-actions":"create-team-join-request-module-scss-module__sVOvWq__flex-actions"})},32446,e=>{e.v({container:"team-delete-cta-module-scss-module__J5uf7q__container",content:"team-delete-cta-module-scss-module__J5uf7q__content"})},60024,e=>{e.v({container:"team-details-module-scss-module__V2D6vq__container","h-alternate":"team-details-module-scss-module__V2D6vq__h-alternate","h-
1primary":"team-details-module-scss-module__V2D6vq__h-primary","h-secondary":"team-details-module-scss-module__V2D6vq__h-secondary",richtext:"team-details-module-scss-module__V2D6vq__richtext","section-heading":"team-details-module-scss-module__V2D6vq__section-heading","t-primary":"team-details-module-scss-module__V2D6vq__t-primary","t-secondary":"team-details-module-scss-module__V2D6vq__t-secondary"})},59636,e=>{e.v({container:"team-project-module-scss-module__WgG6zq__container","h-alternate":"team-project-module-scss-module__WgG6zq__h-alternate","h-primary":"team-project-module-scss-module__WgG6zq__h-primary","h-secondary":"team-project-module-scss-module__WgG6zq__h-secondary","link-repeater":"team-project-module-scss-module__WgG6zq__link-repeater","link-wrap":"team-project-module-scss-module__WgG6zq__link-wrap",richtext:"team-project-module-scss-module__WgG6zq__richtext","section-heading":"team-project-module-scss-module__WgG6zq__section-heading",sidetext:"team-project-module-scss-module__WgG6zq__sidetext",small:"team-project-module-scss-module__WgG6zq__small","t-primary":"team-project-module-scss-module__WgG6zq__t-primary","t-secondary":"team-project-module-scss-module__WgG6zq__t-secondary"})},32149,e=>{e.v({actions:"team-member-editor-module-scss-module__b3-ZBq__actions"})},9987,e=>{e.v({avatar:"team-member-card-module-scss-module__RblpdW__avatar",badge:"team-member-card-module-scss-module__RblpdW__badge",container:"team-member-card-module-scss-module__RblpdW__container",heading:"team-member-card-module-scss-module__RblpdW__heading",meta:"team-member-card-module-scss-module__RblpdW__meta",pill:"team-member-card-module-scss-module__RblpdW__pill","sub-text":"team-member-card-module-scss-module__RblpdW__sub-text",text:"team-member-card-module-scss-module__RblpdW__text"})},10063,e=>{e.v({actions:"team-request-card-module-scss-module__JZJPQa__actions",avatar:"team-request-card-module-scss-module__JZJPQa__avatar",badge:"team-request-card-module-scss-module__JZJPQa__badge",container:"team-request-card-module-scss-module__JZJPQa__container",content:"team-request-card-module-scss-module__JZJPQa__content",heading:"team-request-card-module-scss-module__JZJPQa__heading",meta:"team-request-card-module-scss-module__JZJPQa__meta",pill:"team-request-card-module-scss-module__JZJPQa__pill","sub-text":"team-request-card-module-scss-module__JZJPQa__sub-text",text:"team-request-card-module-scss-module__JZJPQa__text"})},40589,e=>{e.v({actions:"team-members-module-scss-module__2bOuzq__actions",container:"team-members-module-scss-module__2bOuzq__container","h-alternate":"team-members-module-scss-module__2bOuzq__h-alternate","h-primary":"team-members-module-scss-module__2bOuzq__h-primary","h-secondary":"team-members-module-scss-module__2bOuzq__h-secondary",members:"team-members-module-scss-module__2bOuzq__members","modal-wrap":"team-members-module-scss-module__2bOuzq__modal-wrap",requests:"team-members-module-scss-module__2bOuzq__requests",richtext:"team-members-module-scss-module__2bOuzq__richtext","section-heading":"team-members-module-scss-module__2bOuzq__section-heading","sub-heading":"team-members-module-scss-module__2bOuzq__sub-heading","t-primary":"team-members-module-scss-module__2bOuzq__t-primary","t-secondary":"team-members-module-scss-module__2bOuzq__t-secondary",text:"team-members-module-scss-module__2bOuzq__text"})},66388,e=>{e.v({container:"team-tabs-module-scss-module__qOvPZq__container",info:"team-tabs-module-scss-module__qOvPZq__info"})},62642,e=>{e.v({container:"team-index-module-scss-module__eVHMoq__container",results:"team-index-module-scss-module__eVHMoq__results"})},78548,e=>{e.v({show:"tooltip-portal-module-scss-module__h6ix6W__show",tooltip:"tooltip-portal-module-scss-module__h6ix6W__tooltip"})},83870,e=>{e.v({container:"toast-portal-module-scss-module__Z8iSsW__container"})},34572,84723,58161,30319,92641,12301,67287,29570,38645,97374,24606,87415,94906,11273,74462,27030,68252,54900,71493,52105,48584,39499,69492,22197,34028,16733,58762,69362,13863,85302,35841,95824,53737,1236,63096,8068,47240,66858,18013,52437,79980,65728,26025,47650,26788,26139,92574,24920,92668,30247,97682,18431,81303,81670,95536,67215,94822,95698,49640,44408,e=>{"use strict";let t,s;e.s([],34572),e.s([],68252),e.s(["CreateAccount",()=>sG,"default",()=>sO],74462);var a,l,i,o,n,r,d,c,u=e.i(43476),m=e.i(15504),h=e.i(90571),p=e.i(79873),_=e.i(6195),f=e.i(69981),g=e.i(21948),v=e.i(21110),x=e.i(76320),j=e.i(1440),b=e.i(68972);function y(e,t){!1!==globalThis.__DEV__&&(0,b.useWarnRemovedOption)(t||{},"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var s=(0,x.useApolloClient)(null==t?void 0:t.client);(0,g.verifyDocumentType)(e,g.DocumentType.Mutation);var a=p.useState({called:!1,loading:!1,client:s}),l=a[0],i=a[1],o=p.useRef({result:l,mutationId:0,isMounted:!0,client:s,mutation:e,options:t});(0,j.useIsomorphicLayoutEffect)(function(){Object.assign(o.current,{client:s,options:t,mutation:e})});var n=p.useCallback(function(e){void 0===e&&(e={});var t=o.current,s=t.options,a=t.mutation,l=(0,h.__assign)((0,h.__assign)({},s),{mutation:a}),n=e.client||o.current.client;o.current.result.loading||l.ignoreResults||!o.current.isMounted||i(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var r=++o.current.mutationId,d=(0,_.mergeOptions)(l,e);return n.mutate(d).then(function(t){var s,a,l=t.data,c=t.errors,u=c&&c.length>0?new v.ApolloError({graphQLErrors:c}):void 0,m=e.onError||(null==(s=o.current.options)?void 0:s.onError);if(u&&m&&m(u,d),r===o.current.mutationId&&!d.ignoreResults){var h={called:!0,loading:!1,data:l,error:u,client:n};o.current.isMounted&&!(0,f.equal)(o.current.result,h)&&i(o.current.result=h)}var p=e.onCompleted||(null==(a=o.current.options)?void 0:a.onCompleted);return u||null==p||p(t.data,d),t},function(t){if(r===o.current.mutationId&&o.current.isMounted){var s,a={loading:!1,error:t,data:void 0,called:!0,client:n};(0,f.equal)(o.current.result,a)||i(o.current.result=a)}var l=e.onError||(null==(s=o.current.options)?void 0:s.onError);if(l)return l(t,d),{data:void 0,errors:t};throw t})},[]),r=p.useCallback(function(){if(o.current.isMounted){var e={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:e}),i(e)}},[]);return p.useEffect(function(){var e=o.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[n,(0,h.__assign)({reset:r},l)]}var w=e.i(38413),C=e.i(53145);e.i(67823);var k=e.i(65768),N=e.i(27661);e.i(73886);var T=e.i(43109);e.i(65809);var E=e.i(2263),S=e.i(9453);e.i(85830);var F=e.i(20245);e.i(32593);var R=e.i(72024),L=e.i(10031);e.s(["ContentTypeForm",()=>sM,"default",()=>s$],11273);var P=e.i(61799),A=e.i(72625),D=e.i(84643),q=e.i(34783),M=e.i(87535),$=e.i(64785),z=e.i(15608),G=e.i(15919);function O({dateJoined:e,registrationCount:t,teamCount:s,projectCount:a}){return(0,u.jsxs)("div",{className:G.default.container,children:[(0,u.jsx)("h3",{className:G.default.title,children:"Your Participation in Numbers"}
1),(0,u.jsx)("p",{children:"Here's how your participation in events has added up!"}),(0,u.jsxs)("ul",{className:G.default.cards,children:[(0,u.jsxs)("li",{className:G.default.card,children:[(0,u.jsx)("span",{className:G.default.card__title,children:"Account Created"}),(0,u.jsx)("span",{className:G.default.card__data,children:e.toLocaleDateString("en-US",{year:"numeric"})})]}),void 0!==t&&(0,u.jsxs)("li",{className:G.default.card,children:[(0,u.jsx)("span",{className:G.default.card__title,children:"Hackathons"}),(0,u.jsx)("span",{className:G.default.card__data,children:t})]}),void 0!==s&&(0,u.jsxs)("li",{className:G.default.card,children:[(0,u.jsx)("span",{className:G.default.card__title,children:"Teams"}),(0,u.jsx)("span",{className:G.default.card__data,children:s})]}),void 0!==a&&(0,u.jsxs)("li",{className:G.default.card,children:[(0,u.jsx)("span",{className:G.default.card__title,children:"Projects Submitted"}),(0,u.jsx)("span",{className:G.default.card__data,children:a})]})]})]})}var I=e.i(57688),U=e.i(72956),B=e.i(96017),W=e.i(2095),H=e.i(29399),Q=e.i(91708);e.i(16794);var V=e.i(32231),Y=e.i(3834),J=e.i(16802),K=e.i(70121),X=e.i(90242);function Z({block:e}){if(!e.value)return null;let{panels:t,title:s}=e.value;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsxs)(Y.Container,{children:[s&&(0,u.jsx)("h2",{className:X.default.tagline,children:s}),(0,u.jsx)(z.Accordion,{showExpandCollapse:!1,children:t.map((e,t)=>(0,u.jsx)(z.AccordionItem,{header:e.title,children:(0,u.jsx)(q.HtmlContainer,{html:e.richText})},`accordion-item-${t}`))})]})})}var ee=e.i(30068),et=e.i(24886);function es({block:e}){if(!e.value)return null;let{sizedImage:t,link:s,layout:a}=e.value,l=a?.position||"block",i=`size-${t?.displaySize||"og"}`,o=a?.align||"center",n=t?.rendition&&(0,u.jsx)("div",{className:`${et.default["img-container"]} ${et.default[o]} ${et.default[i]}`,children:(0,u.jsxs)(ee.Tooltip,{content:a?.captionDisplay==="hover"?t.caption:null,children:[(0,u.jsx)(I.default,{src:t.rendition.fullUrl,width:t.rendition.width||1200,height:t.rendition.height||600,alt:t.alt||"Not Image Alt Found"}),a?.captionDisplay==="show"&&(0,u.jsx)("div",{className:et.default.caption,children:t.caption})]})});return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)("div",{className:`${et.default.container} ${et.default[l]}}`,children:(0,u.jsx)(Y.Container,{size:"full"===l?"full":void 0,children:s?.url?(0,u.jsx)(L.Link,{prefetch:!1,href:s.url,isNewTab:s?.isNewTab,className:et.default.link,children:n}):n})})})}var ea=e.i(31070),el=e.i(20345),ei=e.i(9356),eo=e.i(65182);function en({block:e,position:t}){if(!e.value)return null;let{link:s,image:a,title:l,text:i}=e.value;return(0,u.jsxs)("div",{className:eo.default.container,children:[(0,u.jsxs)("div",{className:`${eo.default.card} ${eo.default[t]}`,children:[(0,u.jsxs)("div",{className:eo.default.info,children:[(0,u.jsx)("h2",{className:eo.default.title,children:l}),(0,u.jsx)("p",{className:eo.default.description,children:i}),s?.url&&(0,u.jsx)(L.Link,{prefetch:!1,className:eo.default.link,href:s.url,isNewTab:s?.isNewTab,isExternal:s?.isExternal||!1,children:s.text})]}),a&&a.rendition&&(0,u.jsx)(I.default,{className:eo.default.image,width:a.rendition.width||180,height:a.rendition.height||180,src:a.rendition.fullUrl,alt:a.alt||"Image Alt Not Found"})]}),(0,u.jsx)("div",{className:eo.default.icon,children:(0,u.jsx)(ei.Icon,{slug:"spaceapps/meteor"})})]})}var er=e.i(93425);function ed({block:e}){if(!e.value)return null;let{title:t,richTextContent:s,featuredImage:a,slides:l,autoPlay:i,showArrows:o,showBullets:n,showFraction:r,slidesPerView:d,controlPosition:c,viewStyle:m,viewTheme:h}=e.value,p=`${er.default.container} ${er.default[ea.CarouselClassDict[h]]}`;if(h===k.CarouselTheme.Gallery)return(0,u.jsx)("div",{className:p,children:(0,u.jsx)(Y.Container,{children:(0,u.jsxs)("div",{className:er.default.wrapper,children:[(a||t||s)&&(0,u.jsxs)("div",{className:er.default.heading,children:[a&&a.rendition&&(0,u.jsx)("div",{className:er.default["featured-image"],children:(0,u.jsx)(I.default,{width:a.rendition.width||120,height:a.rendition.height||120,src:a.rendition.fullUrl,alt:a.alt||"No Alt Found"})}),t&&(0,u.jsx)("h2",{className:er.default.title,children:t}),s&&(0,u.jsx)(q.HtmlContainer,{html:s})]}),(0,u.jsx)("div",{className:er.default.slider,children:(0,u.jsx)(el.Carousel,{slides:l.map(tC),autoPlay:i,breakpoints:{500:{slidesPerView:2,spaceBetween:24},768:{slidesPerView:3,spaceBetween:24},980:{slidesPerView:5,spaceBetween:24}},showArrows:o,showBullets:n,showFraction:r,slidesPerView:d||1,controlPosition:c||k.CarouselPosition.Bottom,theme:h,style:m})})]})})});if(h===k.CarouselTheme.Timeline){let e=l.filter(e=>e.type===k.CmsBlockTypes.Card).map((e,t)=>(0,u.jsx)(en,{block:e,position:t%2==0?"left":"right"},`timeline-${e.id}-${t}`));return(0,u.jsxs)("div",{className:p,children:[(0,u.jsx)(Y.Container,{children:t&&(0,u.jsx)("div",{className:er.default.heading,children:t&&(0,u.jsx)("h2",{className:er.default.title,children:t})})}),(0,u.jsx)("div",{className:er.default.slider,children:(0,u.jsx)(el.Carousel,{slides:e,showArrows:!0,showBullets:!0,show
1Fraction:!1,slidesPerView:1,direction:"vertical",theme:h,style:k.CarouselStyle.Full,controlPosition:k.CarouselPosition.Left,breakpoints:{320:{slidesPerView:1,slidesPerGroup:1,spaceBetween:46}}})})]})}return(0,u.jsxs)("div",{className:p,children:[(t||s)&&(0,u.jsx)("div",{className:er.default.heading,children:(0,u.jsxs)(Y.Container,{children:[t&&(0,u.jsx)("h2",{className:er.default.title,children:t}),s&&(0,u.jsx)(q.HtmlContainer,{html:s})]})}),(0,u.jsx)(el.Carousel,{slides:l.map(tC),autoPlay:i,showArrows:o,showBullets:n,showFraction:r,slidesPerView:d||1,controlPosition:c||k.CarouselPosition.Bottom,theme:h,style:m})]})}var ec=e.i(32103),eu=e.i(57848);function em({block:e}){if(!e.value)return null;let{link:t,title:s,award:a,awardIcon:l,image:i,localEvent:o,challenge:n}=e.value,r=`${o?`Local Event: ${o}`:""} 2 3 4 ${n?`Challenge: ${n}`:""}`;return(0,u.jsx)("div",{className:eu.default.container,children:(0,u.jsx)(ec.PreviewCard,{link:t,title:s,iconText:a,icon:l,image:i,text:r,titlePosition:"bottom",theme:"deep-blue"})})}var eh=e.i(28820),ep=e.i(80534),e_=e.i(78808);function ef({block:e}){if(!e.value)return null;let{title:t,richText:s,columns:a,align:l,ctas:i}=e.value,o=i.filter(eh.notNull).map(e=>({link:e.link,text:e.text,title:e.title,subtitle:e.subtitle,icon:e.icon,position:(e=>{switch(e){case"left":return"left";case"right":return"right";default:return"center"}})(l)}));return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsxs)(Y.Container,{children:[t&&(0,u.jsx)("h2",{className:e_.default.title,children:t}),s&&(0,u.jsx)(q.HtmlContainer,{className:`${e_.default.text} t-secondary`,html:s}),(0,u.jsx)(ep.CtaGrid,{ctas:o,columns:a})]})})}var eg=e.i(36215);function ev({block:e}){if(!e.value)return null;let{link:t,image:s,title:a,subTitle:l,text:i}=e.value;return(0,u.jsx)("div",{className:eg.default.container,children:(0,u.jsx)("div",{className:eg.default.wrapper,children:(0,u.jsx)(ec.PreviewCard,{link:t,image:s,title:a,subTitle:l,text:i})})})}var ex=e.i(8956);function ej({block:e}){if(!e.value)return null;let{position:t,primaryImage:s,secondaryImage:a,cta:l}=e.value;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)("div",{className:ex.default.container,children:(0,u.jsx)(Y.Container,{children:(0,u.jsxs)("div",{className:`${ex.default.wrapper} ${ex.default["L"===t?"left":"right"]}`,children:[(0,u.jsx)("div",{className:ex.default.images,children:(0,u.jsxs)("div",{className:ex.default.images__wrapper,children:[s.rendition&&(0,u.jsx)("div",{className:ex.default.primary,children:(0,u.jsx)(I.default,{src:s.rendition.fullUrl,width:s.rendition.width||580,height:s.rendition.height||435,alt:s.alt||"Image Alt Not Found"})}),a?.rendition&&(0,u.jsx)("div",{className:ex.default.secondary,children:(0,u.jsx)(I.default,{src:a.rendition.fullUrl,width:a.rendition.width||348,height:a.rendition.height||261,alt:a.alt||"Image Alt Not Found"})})]})}),(0,u.jsx)("div",{className:ex.default.cta,children:(0,u.jsxs)("div",{className:ex.default.cta__wrapper,children:[l.title&&(0,u.jsx)("h3",{className:ex.default.cta__title,children:l.title}),l.text&&(0,u.jsx)("p",{className:ex.default.cta__description,children:l.text}),l.link.url&&(0,u.jsx)(L.Link,{href:l.link.url,appearance:"button",isNewTab:l.link.isNewTab,isExternal:l.link.isExternal||!1,size:"sm",children:l.link.text})]})})]})})})})}var eb=e.i(36381),ey=e.i(74384),ew=e.i(37612);function eC({block:e}){if(!e.value)return null;let{title:t,richText:s,tasks:a}=e.value,l=a?.filter(e=>(0,eh.isDateUpcoming)(e.endDate)),i=a?.filter(e=>!(0,eh.isDateUpcoming)(e.endDate));return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)("div",{className:"content-blocks--light",children:(0,u.jsx)(Y.Container,{children:(0,u.jsxs)("div",{className:ew.default.wrapper,children:[(0,u.jsx)("div",{className:ew.default.column,children:s&&(0,u.jsx)(q.HtmlContainer,{className:`${ew.default.text}`,html:s})}),(0,u.jsx)("div",{className:ew.default.column,children:(0,u.jsxs)("div",{className:ew.default.card,children:[t&&(0,u.jsx)("h2",{className:ew.default.card__title,children:t}),(0,u.jsxs)("ul",{className:ew.default.tasks,children:[i&&i.length>0&&(0,u.jsxs)("li",{className:ew.default.task,children:[(0,u.jsx)("span",{className:ew.default.task__heading,children:"Completed"}),(0,u.jsx)("span",{className:ew.default.task__heading,children:"Date"})]}),i&&i.map((e,t)=>(0,u.jsxs)("li",{className:ew.default.task,children:[(0,u.jsx)("span",{className:ew.default.task__title,children:e.title}),(0,u.jsx)(eb.Datetime,{timestamp:e.endDate})]},`task-${t}`)),l&&l.length>0&&(0,u.jsx)("li",{className:ew.default.task,children:(0,u.jsx)(ey.PageBreak,{})}),l&&l.length>0&&(0,u.jsxs)("li",{className:ew.default.task,children:[(0,u.jsx)("span",{className:ew.default.task__heading,children:"Upcoming"}),(0,u.jsx)("span",{className:ew.default.task__heading,children:"Target Date"})]}),l&&l.map((e,t)=>(0,u.jsxs)("li",{className:ew.default.task,children:[(0,u.jsx)("span",{className:ew.default.task__title,children:e.title}),(0,u.jsx)(eb.Datetime,{timestamp:e.endDate})]},`task-${t}`))]})]})})]})})})})}e.s(["EventTaskCard",()=>e$,"default",()=>ez],67287),e.s(["EventTaskCta",()=>eD,"default",()=>eq],12301),e.i(84859);var ek=e.i(16511),eN=e.i(74552);e.s([],92641);var eT=e.i(19972),eE=e.i(12228);function eS({eventId:e,showConfirmation:t=!1,showToast:s=!0,onSuccess:a,onClose:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{event:r}=(0,ek.useEvent)(e),{canUserCancel:d,loading:c,registration:h,refresh:p}=(0,eN.useEventRegistration)(e),[_,{data:f,loading:g}]=y(k.DeleteEventRegistrationDocument),v=async()=>
4{if(o(void 0),d&&h)try{let{errors:e}=await _({variables:{id:h.id}});e?o((0,T.handleCatchErrors)(e[0])):(s&&n(N.ToastTypes.SUCCESS,"Registration Cancelled"),await p(),a&&a())}catch(e){o((0,T.handleCatchErrors)(e))}else o("Event registration cannot be cancelled at this time.")},x=g||c;return(0,u.jsxs)("div",{children:[x&&(0,u.jsx)(F.Loader,{}),!x&&i&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:(0,u.jsx)(q.HtmlContainer,{html:i})}),!x&&f&&t&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:"Your registration has been canceled."})}),!x&&!f&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:"Are you sure you want to cancel your registration?"}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{onClick:v,children:`Yes, Cancel Registration for the ${r?.name||"Event"}`}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{l&&l()},children:"No, Thanks"})]})]})]})}function eF({eventId:e,showConfirmation:t=!1,showToast:s=!0,onClose:a,onSuccess:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{hasRegistration:r,canUserRegister:d,loading:c,registration:h,editLevel:p,createForm:_,refresh:f}=(0,eN.useEventRegistration)(e),{data:g,loading:v}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!_,variables:{id:_}}),x=g?.contentTypeForm,j=x?.fields?(0,T.getFormFields)(x?.fields):[],b=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(j,h)}),{setError:E,formState:{isSubmitting:R,isSubmitSuccessful:L,errors:P}}=b,[A,{loading:D}]=y(k.CreateEventRegistrationDocument),q=async t=>{if(o(void 0),!d)return void E("root",{type:"401",message:"Event Registration is currently not available"});let[a,i]=(0,T.splitMetaFieldsFromFormData)(t),r={...(0,T.normalizeSubmitFields)(i,[]),event:e,termsConditions:t.termsConditions??!1,metaFormId:x?.id,metaFields:JSON.stringify(a)};if(t.avatar&&(r={...r,avatar:t.avatar[0]}),t.affiliations){let e=(Array.isArray(t.affiliations)?t.affiliations:[t.affiliations]).filter(e=>""!==e);r={...r,affiliations:e.length>0?e:void 0}}if(!r||Object.keys(r).length<=0)return void E("root",{type:"400",message:"Input not found."});let c=(0,T.validateRequiredFields)(j,t,1,"required to save");if(c.length)return void c.forEach(({name:e,error:t})=>{E(e,t)});try{let{errors:e}=await A({variables:{input:r}});e?(0,T.gqlErrorsToFormErrors)(e,t).forEach(({name:e,error:t})=>{E(e,t)}):(o(x?.saveConfirmation||"You are Registered!"),s&&n(N.ToastTypes.SUCCESS,x?.saveConfirmation||"You are Registered!"),await f(),l&&l())}catch(e){E("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},M=c||v||D||R,$=x&&!r&&d&&!L;return(0,u.jsxs)(C.FormProvider,{...b,children:[M&&(0,u.jsx)(F.Loader,{}),!M&&$&&(0,u.jsx)(s$,{contentFormId:x.id,onSave:q,editLevel:p,showControls:!0,confirmationMsg:i}),!M&&!$&&(L&&t?(0,u.jsx)("p",{children:i||"Registration Complete"}):r?(0,u.jsx)("p",{children:"You are already registered for this event"}):d?(0,u.jsx)("p",{children:"Having trouble loading your content."}):(0,u.jsx)("p",{children:"Event registration is unavailable at this time."}))]})}e.s(["CancelEventRegistration",()=>eS,"default",0,eS],84723),e.s(["CreateEventRegistration",()=>eF,"default",()=>eR],58161);let eR=eF;function eL({eventId:e,onSuccess:t,onClose:s}){let[a,l]=(0,m.useState)(),{addToast:i}=(0,S.useToasts)(),{hasRegistration:o,canUserEdit:n,loading:r,registration:d,editLevel:c,editForm:h,refresh:p}=(0,eN.useEventRegistration)(e),{data:_,loading:f}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!h,variables:{id:h}}),g=_?.contentTypeForm,v=g?.fields?(0,T.getFormFields)(g?.fields):[],x=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(v,d)}),{setError:j,formState:{isSubmitting:b,isSubmitSuccessful:E,errors:R}}=x,[L,{loading:P}]=y(k.UpdateEventRegistrationDocument),A=async e=>{if(l(void 0),!n)return void j("root",{type:"401",message:"You do not have permission to perform this action."});let s={...(0,T.normalizeSubmitFields)(e,[])};if(!s||Object.keys(s).length<=0)return void j("root",{type:"400",message:"Input not found."});let a=(0,T.validateRequiredFields)(v,e,1,"required to save");if(a.length)return void a.forEach(({name:e,error:t})=>{j(e,t)});if(e.affiliations){let t=(Array.isArray(e.affiliations)?e.affiliations:[e.affiliations]).filter(e=>""!==e);s={...s,affiliations:t.length>0?t:void 0}}if(d)try{let{data:a,errors:o}
4=await L({variables:{id:d.id,input:s}});o?(0,T.gqlErrorsToFormErrors)(o,e).forEach(({name:e,error:t})=>{j(e,t)}):(l(g?.saveConfirmation||"Your Registration has been updated!"),i(N.ToastTypes.SUCCESS,g?.saveConfirmation||"Your Registration has been updated!"),p(),t&&t())}catch(e){j("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}else j("root",{type:"500",message:"Registration not found, unable to update."})},D=r||f||P||b,q=g&&o&&n&&!E;return(0,u.jsxs)(C.FormProvider,{...x,children:[D&&(0,u.jsx)(F.Loader,{}),!D&&q&&(0,u.jsx)(s$,{contentFormId:g.id,onSave:A,editLevel:c,confirmationMsg:a,showControls:!0}),!D&&!q&&(E?(0,u.jsx)("p",{children:a||"Registration Updated"}):o?n?(0,u.jsx)("p",{children:"Having trouble loading your content."}):(0,u.jsx)("p",{children:"Registration unable to be edited at this time."}):(0,u.jsx)("p",{children:"Registration not found, unable to edit."}))]})}e.s(["EditEventRegistration",()=>eL,"default",()=>eP],30319);let eP=eL;var eA=e.i(24390);function eD({eventId:e,action:t,label:s="Learn More",disabled:a}){let{openModalHandler:l,closeModalHandler:i}=(0,E.useModal)(),{event:o}=(0,ek.useEvent)(e),{hasRegistration:n,canUserRegister:r,canUserCancel:d}=(0,eN.useEventRegistration)(e);return(0,u.jsx)("div",{className:eA.default.container,children:(0,u.jsx)(R.Button,{size:"sm",disabled:a,onClick:()=>{"create_account"===t?l({title:"Create Account",content:(0,u.jsx)(sG,{isModal:!0})}):"event_registration"===t&&d&&n?l({requirements:{authenticated:!0},title:`Cancel Registration for the ${o?.name}`,content:(0,u.jsx)(eS,{eventId:e,onSuccess:i,onClose:i})}):"event_registration"===t&&r&&n?l({requirements:{authenticated:!0},title:`Registered for the ${o?.name}`,content:(0,u.jsx)("p",{className:eA.default.text,children:"You are already registered!"})}):"event_registration"===t&&r&&!n&&l({requirements:{authenticated:!0},title:`Register for the ${o?.name}`,content:(0,u.jsx)(eF,{eventId:e,onSuccess:i,onClose:i})})},children:s})})}let eq=eD;var eM=e.i(62593);function e$({task:e,index:t,event:s}){let a,{endDate:l,title:i,description:o,url:n,popup:r,actionLabel:d,completionAction:c,completionCondition:m}=e,{data:h}=(0,w.useQuery)(k.ViewerDocument),p=h?.viewer,_=(()=>{switch(m){case"is_user":return!!p?.user?.isActive;case"has_event_registration":return!!p?.eventRegistrations?.some(e=>e.event===s.id);case"has_local_event_registration":return!!p?.localEventRegistrations?.some(e=>e.event===s.id);case"has_team":return!!p?.teams?.some(e=>e.event===s.id);case"has_submitted_project":return!!p?.teams?.some(e=>e.event===s.id&&e.projectSubmitted);default:return!1}})();return(0,u.jsxs)("div",{className:`${eM.default.card} ${_?eM.default.complete:""}`,children:[(0,u.jsxs)("div",{className:`${eM.default.heading}`,children:[(0,u.jsx)("div",{className:eM.default.icon,children:_&&(0,u.jsx)(ei.Icon,{slug:"spaceapps/check"})}),(0,u.jsxs)("div",{className:eM.default["heading-content"],children:[(0,u.jsxs)("span",{className:eM.default.subtitle,children:["Step ",(a=t+1)<10?`0${a}`:a.toString()]}),i&&(0,u.jsx)("h2",{className:eM.default.title,children:i}),l&&(0,u.jsx)("span",{className:eM.default.deadline,children:(0,u.jsx)(eb.Datetime,{timestamp:l,format:"month"})})]})]}),o&&(0,u.jsx)("div",{className:eM.default.description,children:o}),"page"===c&&n&&(0,u.jsx)("div",{className:eM.default.link,children:(0,u.jsx)(L.Link,{href:n,isNewTab:!1,appearance:"button",disabled:_,size:"sm",children:d||"Not Found"})}),"popup"===c&&r&&(0,u.jsx)("div",{className:eM.default.link,children:(0,u.jsx)(eq,{label:d||"Learn More",action:r,eventId:s.id,disabled:_})})]},`task-${t}`)}let ez=e$;var eG=e.i(48691);function eO({block:e}){if(!e.value)return null;let{title:t,event:s,tasks:a}=e.value;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsxs)(Y.Container,{children:[t&&(0,u.jsx)("h2",{className:`${eG.default.title} h-primary`,children:t}),(0,u.jsx)("div",{className:eG.default["card-box"],children:a&&a.map((e,t)=>(0,u.jsx)(ez,{task:e,index:t,event:s},t))})]})})}var eI=e.i(13206);e.s(["FormPageContent",()=>tn,"default",()=>tr],29570);var eU=e.i(89048),eB=e.i(69640),eW=e.i(2686),eH=e.i(66971),eQ=e.i(36284),eV=e.i(93975),eY=e.i(18883),eJ=e.i(63756),eK=e.i(57860),eX=e.i(10458),eZ=e.i(11484),e0=e.i(91314),e1=e.i(94120),e2=e.i(80556),e5=e.i(88814),e4=e.i(869),e3=e.i(23029),e6=e.i(75388),e8=e.i(42603),e9=e.i(13412),e7=e.i(69104),te=e.i(43633),tt=e.i(77278),ts=e.i(58479),ta=e.i(31397);let tl={[k.FieldValidations.Alpha]:{pattern:{value:/[A-Za-zŽžÃ-ÿ]/,message:"No special characters"}},[k.FieldValidations.Numeric]:{pattern:{value:/[0-9]/,message:"Numeric characters only"}},[k.FieldValidations.Clean]:{pattern:{value:/^[\p{L}\p{N}.!#$%&'*+/=?^_`{|}~@-]+$/u,message:"Accepts letters, numbers, ., -, _, and email characters"}},[k.FieldValidations.Email]:{pattern:{value:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,message:"Must be a valid email address"}},[k.FieldValidations.Url]:{pattern:{value:/(http(s?)):\/\//i,message:"Urls must begin with http:// or https://"}},[k.FieldValidations.MaxSm]:{maxLength:{value:255,message:"Maximum length is 255 characters"}},[k.FieldValidations.MaxMd]:{maxLength:{value:500,message:"Maximum length is 500 characters"}},[k.FieldValidations.MaxLg]:{maxLength:{value:1e3,message:"Maximum length is 1000 characters"}}};function ti({field:e,filters:t,regOptions:s}){let{cleanName:a,label:l,helpText:i,placeholder:o,choices:n,defaultValue:r,fieldType:d,fieldValidation:c}=e,m=`${a}-${d}`,h=n||"",p={...s};c&&(p={...p,...tl[c]});let _={[k.FieldTypes.Readonly]:(0,u.jsx)(e4.ReadOnly,{name:a,helpText:i},m),[k.FieldTypes.Single]:(0,u.jsx)(eK.Input,{name:a,label:l,type:"text",helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Text]:(0,u.jsx)(tt.TextArea,{name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Search]:(0,u.jsx)(e8.SearchField,{name:a,placeholder:o}),[k.FieldTypes.Email]:(0,u.jsx)(eK.Input,{type:"email",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Number]:(0,u.jsx)(eK.Input,{type:"number",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Url]:(0,u.jsx)(eK.Input,{type:"url",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Checkbox]:(0,u.jsx)(eQ.Checkbox,{name:a,label:l,choices:h,helpText:i,options:p},m),[k.FieldTypes.Checkboxes]:(0,u.jsx)(eV.Checkboxes,{name:a,label:l,choices:h,helpText:i,options:p},m),[k.FieldTypes.Dropdown]:(0,u.jsx)(e6.Select,{name:a,label:l,choices:h,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Multiselect]:(0,u.jsx)(e6.Select,{name:a,label:l,choices:h,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Radio]:(0,u.jsx)(e5.RadioButtons,{name:a,label:l,choices:h,helpText:i,options:p},m),[k.FieldTypes.Date]:(0,u.jsx)(eK.Input,{type:"date",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Datetime]:(0,u.jsx)(eK.Input,{type:"datetime-local",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Hidden]:(0,u.jsx)(eK.Input,{type:"hidden",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Password]:(0,u.jsx)(eK.Input,{type:"password",name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.File]:(0,u.jsx)(eY.FileInput,{name:a,label:l,placeholder:o,helpText:i,options:p},m),[k.FieldTypes.Tags]:(0,u.jsx)(eV.Checkboxes,{name:a,label:l,helpText:i,choices:h,options:p},m),[k.FieldTypes.Multitag]:(0,u.jsx)(eV.Checkboxes,{name:a,label:l,helpText:i,choices:h,options:p},m),[k.FieldTypes.Tagtoggles]:(0,u.jsx)(e7.TagToggles,{name:a,label:l,defaultValue:r,helpText:i,options:p},m),[k.FieldTypes.Singletag]:(0,u.jsx)(e9.SingleTag,{name:a,label:l,defaultValue:r,helpText:i,options:p},m),[k.FieldTypes.Rich]:(0,u.jsx)(e3.RichTextField,{name:a,label:l,helpText:i,placeholder:o,outputData:"text",moduleSet:"lexical",formatSet:"frontend_text",options:p},m),[k.FieldTypes.Richfull]:(0,u.jsx)(e3.RichTextField,{name:a,label:l,helpText:i,placeholder:o,outputData:"text",moduleSet:"lexical",formatSet:"frontend_default",options:p},m),[k.FieldTypes.Address]:(0,u.jsx)(eW.Address,{name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Map]:(0,u.jsx)(e1.MapField,{name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Repeater]:(0,u.jsx)(eZ.LinkRepeaterField,{name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Links]:(0,u.jsx)(eZ.LinkRepeaterField,{name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Userlookup]:(0,u.jsx)(ts.UserLookupField,{name:a,label:l,helpText:i,placeholder:o,options:p,filters:t},m),[k.FieldTypes.Multiuserlookup]:(0,u.jsx)(e2.MultiUserLookupField,{name:a,label:l,helpText:i,placeholder:o,options:p,filters:t},m),[k.FieldTypes.Singleuserlookup]:(0,u.jsx)(ts.UserLookupField,{name:a,label:l,helpText:i,placeholder:o,options:p,filters:t},m),[k.FieldTypes.Challengelookup]:(0,u.jsx)(eH.ChallengeLookupField,{name:a,label:l,helpText:i,placeholder:o,options:p,filters:t},m),[k.FieldTypes.Localeventlookup]:(0,u.jsx)(e0.LocalEventLookupField,{name:a,label:l,helpText:i,placeholder:o,options:p,filters:t},m),[k.FieldTypes.Teamlookup]:(0,u.jsx)(te.TeamLookupField,{name:a,label:l,helpText:i,placeholder:o,options:p,filters:t},m),[k.FieldTypes.Genericlookup]:(0,u.jsx)(eJ.GenericLookupField,{name:a,label:l,helpText:i,options:p,choices:h,filters:t},m),[k.FieldTypes.Json]:(0,u.jsx)(eX.JsonScheduleField,{name:a,label:l,helpText:i,placeholder:o,options:p},m),[k.FieldTypes.Recaptcha]:(0,u.jsx)(ta.RecaptchaField,{name:a,label:l,helpText:i},m),[k.FieldTypes.Schedule]:(0,u.jsx)(eX.JsonScheduleField,{name:a,label:l,helpText:i,placeholder:o,options:p},m)};return d&&_[d]}var to=e.i(56491);function tn({pageId:e}){let{data:t,loading:s}=(0,w.useQuery)(k.PageDocument,{skip:!e,variables:{input:e}}),{fields:a,confirmationText:l,submitText:i,resetText:o,useRecaptcha:n}=t?.page||{},r=(0,C.useForm)(),{handleSubmit:d,watch:c,reset:h,setError:p,formState:{isSubmitting:_,isSubmitSuccessful:f,errors:g}}=r,[v]=y(k.FormSubmitDocument),x=async t=>{let s=Object.entries(t).map(([e,t])=>({key:e,value:t?t.toString():""})),{errors:a}=await v({variables:{input:{id:e,data:(0,T.normalizeSubmitFields)(s,[])}}});a&&(0,T.gqlErrorsToFormErrors)(a,t).forEach(({name:e,error:t})=>{p(e,t)})},j=(e,t,s)=>{let a=c(),l=e.value.fields.filter(e=>(0,T.isFormFieldActive)(e,a));return 0===l.length?null:(0,u.jsx)($.FieldGroup,{children:l.map((e,a)=>(0,u.jsxs)(m.Fragment,{children:[(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0,shouldUnregister:!0}}),e.meta?.showConfirmation&&(0,u.jsx)(ti,{field:{...e,label:`Confirm ${e.label}`,cleanName:`confirm_${e.cleanName}`},regOptions:{required:`${e.label} is required`,shouldUnregister:!0}})]},`field-${s}-${t}-${a}`))},`field-row-${s}-${t}`)};return(0,u.jsxs)("div",{className:to.default.container,children:[f&&(0,u.jsxs)(eU.FormSuccess,{children:[(0,u.jsx)(q.HtmlContainer,{html:l||"Submit Successful"}),(0,u.jsx)("br",{}),(0,u.jsx)(R.Button,{type:"reset",icon:"spaceapps/refresh",disabled:_,onClick:()=>h(),children:"Refresh"})]}),g?.root&&g.root?.message&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:g.root.message}),(0,u.jsxs)(C.FormProvider,{...r,children:[s&&(0,u.jsx)(F.Loader,{}),!s&&!f&&(0,u.jsx)("form",{onSubmit:d(x),className:"form",children:(0,u.jsxs)(z.Accordion,{showExpandCollapse:!1,children:[a&&a.map((e,t)=>{if("FormPanelBlock"===e.__typename){let s,a,l,i,o,n;return a=(s=(0,T.getFormFields)([e])).filter(e=>e.required&&e.required>2),l=Object.keys(g),i=(0,T.getFieldNames)(a).some(e=>!c(e)),o=(0,T.getFieldNames)(s).some(e=>l.includes(e)),n=(0,u.jsxs)(u.Fragment,{children:[e.value.title,(0,u.jsx)(P.Badge,{label:o||i?"Incomplete":"Complete",exClassName:to.default.status,icon:o||i?void 0:"spaceapps/check",type:o?D.StyleTheme.IMPORTANT:i?D.StyleTheme.SECONDARY:D.StyleTheme.PRIMARY})]}),(0,u.jsx)(z.AccordionItem,{header:n,defaultOpen:!0,children:e.value.fields?.map((e,s)=>j(e,s,t))},`field-panel-${t}`)}return"FormRowBlock"===e.__typename?j(e,t):null}),n&&(0,u.jsx)(ti,{field:{cleanName:"recaptcha",fieldType:k.FieldTypes.Recaptcha}}),(0,u.jsx)(eB.FormActions,{submitText:i,resetText:o,disabled:_})]})})]})]})}let tr=tn;var td=e.i(97948);function tc({block:e}){if(!e.value)return null;let{title:t,label:s,type:a,formPage:l}=e.value;return(0,u.jsx)("div",{className:`${td.default.container} ${td.default.container}--${a}
4`,children:"modal"===a?(0,u.jsx)(eI.ModalLauncher,{text:s||"View More",modalTitle:t||"Form",children:(0,u.jsx)(tn,{pageId:l})}):(0,u.jsxs)(Y.Container,{size:"md",children:[t&&(0,u.jsx)("h2",{className:td.default.title,children:t}),(0,u.jsx)(tn,{pageId:l})]})})}var tu=e.i(77983);function tm({block:e}){return e.value?(0,u.jsx)("div",{className:`${tu.default.container} no-spacing`,children:(0,u.jsx)(Y.Container,{children:(0,u.jsx)(q.HtmlContainer,{className:tu.default.content,html:e.value.html})})}):null}function th(){return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)(Y.Container,{children:(0,u.jsx)(ey.PageBreak,{})})})}var tp=e.i(64095);function t_({block:e}){if(!e.value)return null;let{quote:t,author:s,avatar:a}=e.value;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsxs)(Y.Container,{children:[(0,u.jsx)("blockquote",{className:tp.default.quote,children:t}),(0,u.jsxs)("figcaption",{className:tp.default.caption,children:[(0,u.jsx)("div",{className:tp.default.avatar,children:a&&a.rendition?(0,u.jsx)(I.default,{className:tp.default.image,src:a.rendition.fullUrl,width:a.rendition.width||48,height:a.rendition.height||48,alt:a.alt||"Quote Avatar"}):(0,u.jsx)(ei.Icon,{slug:"spaceapps/avatar"})}),(0,u.jsx)("cite",{className:tp.default.author,children:s})]})]})})}var tf=e.i(42906);function tg({block:e}){if(!e.value)return null;let{title:t,richText:s,statistics:a}=e.value,l=t||s?"dark":"base",i=`col-${a.length&&a.length>4?3:12/a.length}`;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)("div",{className:`${tf.default.container} ${tf.default[l]}`,children:(0,u.jsxs)(Y.Container,{children:[t&&(0,u.jsx)("h2",{className:tf.default.title,children:t}),s&&(0,u.jsx)(q.HtmlContainer,{className:`${tf.default.text} t-secondary`,html:s}),(0,u.jsx)("div",{className:tf.default.statistics,children:a.map((e,t)=>{let{statistic:s,title:a,text:l}=e;return(0,u.jsxs)("div",{className:`${tf.default.statistic} ${tf.default[i]}`,children:[(0,u.jsx)("h3",{className:`${tf.default.value} h-primary`,children:s}),(0,u.jsx)("h4",{className:`${tf.default.label} t-secondary`,children:a}),l&&(0,u.jsx)("p",{className:tf.default.description,children:l})]},`${a}-${t}`)})})]})})})}var tv=e.i(15669),tx=e.i(69143);function tj({block:e}){if(!e.value)return null;let{title:t,richText:s,tiles:a}=e.value;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)("div",{className:tx.default.container,children:(0,u.jsxs)(Y.Container,{children:[t&&(0,u.jsx)("h2",{className:tx.default.title,children:t}),s&&(0,u.jsx)(q.HtmlContainer,{className:`h-secondary ${tx.default.content}`,html:s}),(0,u.jsx)("div",{className:tx.default.tiles,children:a.map((e,t)=>{let{image:s,title:a,text:l,link:i}=e;return(0,u.jsx)(tv.CtaTile,{image:s,title:a,text:l,link:i},`tile-${t}`)})})]})})})}var tb=e.i(68783);function ty({block:e}){if(!e.value)return null;let{title:t,subTitle:s,pages:a,indexLink:l,indexLinkText:i}=e.value;return(0,u.jsx)(K.ContentBlockSpacing,{children:(0,u.jsx)("div",{className:tb.default.container,children:(0,u.jsxs)(Y.Container,{children:[t&&(0,u.jsx)("h2",{className:tb.default.title,children:t}),s&&(0,u.jsx)("p",{className:tb.default["sub-title"],children:s}),(0,u.jsx)("div",{className:tb.default.blogs,children:a?.map((e,t)=>(0,u.jsx)(ec.PreviewCard,{publishedOn:e.meta.firstPublishedAt||"",title:e.title||"",image:e.featuredImage,subTitle:e.featuredImage?void 0:e.subTitle,text:e.featuredImage?e.subTitle:e.excerpt,titlePosition:"bottom",theme:"light",size:"sm",link:{url:e.meta.relativeUrl||"",text:"",isNewTab:!1},fadeText:!0},`blog-${t}`))}),l&&(0,u.jsx)(L.Link,{href:l,appearance:"button",isNewTab:!1,size:"sm",children:i||"View All"})]})})})}var tw=e.i(48277);function tC(e){let t=e.__typename,{ACCORDION:s,BLOG:a,IMAGE:l,CARD:i,CAROUSEL:o,CTADUALIMAGE:n,CTAGROUP:r,DEFAULT:d,EVENTMILESTONES:c,EVENTTASKS:m,PAGEBREAK:h,FORM:p,GROUP:_,HTML:f,TILES:g,QUOTE:v,SNIPPET:x,STATISTICS:j,TEAM:b}=V.StreamBlockTypes;return({[s]:t===s?(0,u.jsx)(Z,{block:e},e.id):void 0,[a]:t===a?(0,u.jsx)(ty,{block:e},e.id):void 0,[l]:t===l?(0,u.jsx)(es,{block:e},e.id):void 0,[i]:t===i?(0,u.jsx)(ev,{block:e},e.id):void 0,[o]:t===o?(0,u.jsx)(ed,{block:e},e.id):void 0,[r]:t===r?(0,u.jsx)(ef,{block:e},e.id):void 0,[n]:t===n?(0,u.jsx)(ej,{block:e},e.id):void 0,[c]:t===c?(0,u.jsx)(eC,{block:e},e.id):void 0,[m]:t===m?(0,u.jsx)(eO,{block:e},e.id):void 0,[h]:(0,u.jsx)(th,{}),[p]:t===p?(0,u.jsx)(tc,{block:e},e.id):void 0,[_]:t===_?(0,u.jsx)(tk,{block:e},e.id):void 0,[f]:t===f?(0,u.jsx)(tm,{block:e},e.id):void 0,[g]:t===g?(0,u.jsx)(tj,{block:e},e.id):void 0,[v]:t===v?(0,u.jsx)(t_,{block:e},e.id):void 0,[x]:t===x?(0,u.jsx)(tk,{block:e},e.id):void 0,[j]:t===j?(0,u.jsx)(tg,{block:e},e.id):void 0,[b]:t===b?(0,u.jsx)(em,{block:e},e.id):void 0})[t||d]}function tk({block:e}){if(!e.value)return null;let t="blocks"in e.value,s=t?e.value.blocks:e.value.content,a=e.value.theme??void 0,l=e.value.backgroundImage??void 0,i="column",o="start",n="middle";if(t){let t=e.value.layout;i=t?.direction||"column",o=t?.justify||"start",n=t?.align||"middle"}else i=e.value.position||"column";return(0,u.jsx)("div",{className:tw.default["nested-container"],children:(0,u.jsx)(tN,{direction:i,justify:o,align:n,theme:a,background:l,blocks:s,nested:!0})})}function tN({blocks:e,theme:t,background:s,direction:a="column",justify:l="start",align:i="middle",nested:o=!1}){let n=(0,u.jsx)("div",{className:`${tw.default.wrapper} ${tw.default[a]} ${tw.default[l]} ${tw.default[i]}`,children:e.map((e,t)=>{let s=tC(e);return(0,u.jsxs)("div",{className:`${tw.default.block} content-block-${t}`,children:[s,!s&&(0,u.jsx)("div",{className:tw.default["not-found"],children:(0,u.jsx)(Y.Container,{children:(0,u.jsx)(J.PageError,{title:"Error!",children:"Content Type Not Found!"})})})]},`block-${e.id}`)})});return(0,u.jsxs)("div",{className:`${tw.default.container} content-blocks content-blocks--${t||"default"}`,children:[s&&s.rendition&&(0,u.jsx)("div",{className:tw.default.bkgd,children:(0,u.jsx)(I.default,{className:tw.default["bkgd-img"],src:s.rendition.fullUrl,width:s.rendition.width||1600,height:s.rendition.height||704,alt:s.alt||"Default Section Backgroun
4d"})}),o?(0,u.jsx)(Y.Container,{children:n}):n]})}var tT=e.i(2234);e.i(36609);var tE=e.i(20412);function tS({featuredImage:e,date:t,title:s,subtitle:a,excerpt:l,url:i}){return(0,u.jsxs)("div",{className:tE.default.container,children:[e?.rendition&&(0,u.jsx)(L.Link,{prefetch:!1,className:tE.default.link,href:i,children:(0,u.jsx)(I.default,{className:tE.default.image,src:e.rendition.fullUrl,width:e.rendition.width||300,height:e.rendition.height||200,alt:e.alt||s})}),(0,u.jsxs)("div",{className:tE.default.info,children:[(0,u.jsx)("p",{className:tE.default.date,children:(0,u.jsx)(eb.Datetime,{timestamp:t,format:"month"})}),(0,u.jsx)(L.Link,{prefetch:!1,href:i,children:(0,u.jsx)("h2",{className:tE.default.title,children:s})}),a&&(0,u.jsx)("h3",{className:tE.default.subtitle,children:a}),(0,u.jsx)("p",{className:tE.default.excerpt,children:l}),(0,u.jsx)(L.Link,{appearance:"button",href:i,isNewTab:!1,size:"sm",children:"Keep Reading"})]})]})}var tF=e.i(75497);function tR({event:e,categories:t,skills:s}){return(0,u.jsxs)("div",{className:tF.default.container,children:[e&&(0,u.jsxs)("div",{className:tF.default.meta,children:[(0,u.jsx)("h3",{className:tF.default.label,children:"Event"}),(0,u.jsx)("span",{className:tF.default["meta-content"],children:e?.displayName||e?.name})]}),t&&t.length>0&&(0,u.jsxs)("div",{className:tF.default.meta,children:[(0,u.jsx)("h3",{className:tF.default.label,children:"Difficulty"}),(0,u.jsx)("div",{className:tF.default.tags,children:t.map((e,t)=>(0,u.jsx)("div",{className:tF.default.tag,style:e.color?{backgroundColor:e.color}:{},children:e.name},`difficulty_${e.id}_${t}`))})]}),s&&s.length>0&&(0,u.jsxs)("div",{className:tF.default.meta,children:[(0,u.jsx)("h3",{className:tF.default.label,children:"Subjects"}),(0,u.jsx)("div",{className:tF.default.tags,children:s.map((e,t)=>(0,u.jsx)("div",{className:tF.default.tag,children:e},`subject_${t}`))})]})]})}var tL=e.i(44239);function tP({profile:e,isLoading:t=!1}){if(t)return(0,u.jsx)(F.Loader,{});let{name:s,role:a,title:l,organization:i,biography:o,avatar:n}=e||{};return(0,u.jsxs)("div",{className:tL.default.container,children:[(0,u.jsxs)("div",{className:tL.default.copy,children:[(0,u.jsx)("h2",{className:tL.default.name,children:s}),(0,u.jsx)("h3",{className:tL.default.role,children:a}),(0,u.jsxs)("h4",{className:tL.default.meta,children:[l,l&&i&&", ",i]}),o&&(0,u.jsx)(q.HtmlContainer,{className:tL.default.biography,html:o})]}),(0,u.jsx)("div",{className:tL.default.avatar,children:n?.rendition?(0,u.jsx)(I.default,{src:n.rendition.fullUrl,width:134,height:134,alt:n.alt||"Directory Image"}):(0,u.jsx)(ei.Icon,{slug:"spaceapps/avatar"})})]})}var tA=e.i(28975);function tD({children:e,isReady:t}){return(0,u.jsx)("div",{className:tA.default.container,children:t?(0,u.jsx)("div",{className:tA.default.content,children:e}):(0,u.jsx)(F.Loader,{})})}var tq=e.i(56407);function tM({children:e}){return(0,u.jsx)("p",{className:tq.default.text,children:e})}var t$=e.i(5392);function tz({children:e}){return(0,u.jsx)("h3",{className:t$.default.title,children:e})}var tG=e.i(17122);function tO({title:e,text:t,link:s}){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:e||"Join the Discussion"}),t&&(0,u.jsx)("p",{children:t}),s&&(0,u.jsx)(L.Link,{href:s.url,size:"sm",iconPosition:"before",theme:"secondary",isNewTab:s.isNewTab,icon:(0,tG.getIconByLink)(s?.url),children:s.text})]})}var tI=e.i(82438);let tU=({errors:e})=>{let t=Object.keys(e);if(!e||0===t.length)return null;let{root:s,...a}=e,l=s?[s.message,...(0,T.getErrorMessages)(s)]:(0,T.getErrorMessages)(a),i=1===l.length?l.shift():`Unable to submit form due to the following error${l.length>1?"s":""}:`;return(0,u.jsxs)("div",{className:tI.default.container,children:[(0,u.jsxs)("div",{className:tI.default.heading,children:[(0,u.jsx)(ei.Icon,{slug:"spaceapps/attention"}),i]}),l.length>0&&(0,u.jsx)("ul",{className:tI.default["field-errors"],children:l.map((e,t)=>(0,u.jsx)("li",{children:e},t))})]})};var tB=e.i(58171);function tW({address:e,venueName:t}){return(0,u.jsxs)("div",{className:tB.default.container,children:[(0,u.jsx)("h2",{children:"Venue Details"}),(0,u.jsx)("ul",{className:tB.default.items,children:(0,u.jsxs)("li",{children:[t&&(0,u.jsx)("h3",{className:tB.default.title,children:t}),(0,u.jsx)("p",{className:tB.default.address,children:e})]})})]})}var tH=e.i(96579);function tQ({leads:e,title:t,text:s,contactEmail:a}){return e?(0,u.jsxs)("div",{className:tH.default.container,children:[(0,u.jsx)("h2",{className:tH.default.title,children:t||"Event Leads"}),s&&(0,u.jsx)("p",{className:tH.default.text,children:s}),e.map((e,t)=>{let{userDetails:s}=e;return(0,u.jsxs)("div",{className:tH.default.member,children:[(0,u.jsx)("div",{className:tH.default.avatar,children:s.avatar&&s.avatar.rendition?(0,u.jsx)(I.default,{className:tH.default.image,src:s.avatar.rendition.fullUrl,width:s.avatar.rendition.width||64,height:s.avatar.rendition.height||64,alt:s.avatar.alt||"Quote Avatar"}):(0,u.jsx)(ei.Icon,{slug:"spaceapps/avatar"})}),(0,u.jsxs)("div",{className:tH.default["member-details"],children:[(0,u.jsx)("h3",{className:tH.default.name,children:s.fullName}),(0,u.jsx)("p",{className:tH.default.description,children:s.username}),(0,u.jsx)("p",{className:tH.default.location,children:s.country}),a&&(0,u.jsx)(L.Link,{href:`mailto:${a}`,icon:"spaceapps/mail",iconPosition:"before",theme:"secondary",size:"xs",isNewTab:!0,children:a})]})]},`member-${t}`)})]}):null}function tV(){return(tV=Object.assign.bind()).apply(null,arguments)}let tY=function(e){return m.createElement("svg",tV({xmlns:"http://www.w3.org/2000/svg",width:563,height:232,fill:"none"},e),a||(a=m.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M136.896 56.231C104.315 36.08 61.01 40.141 32.75 68.401c-33 33-33 86.503 0 119.502s86.501 32.999 119.501 0c28.537-28.537 32.399-72.417 11.571-105.101l6.746-4.3c22.801 35.781 18.586 83.811-12.661 115.058-36.123 36.123-94.69 36.123-130.814 0-36.124-36.124-36.124-94.691 0-130.815 30.943-30.943 78.346-35.377 114.011-13.317z",className:"spaceapps-local-template_svg__primary",clipRule:"evenodd"})),l||(l=m.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M164.225.41a2.5 2.5 0 0 1 1.136 3.349l-20.829 42.199a22.5 22.5 0 0 1 10.418-2.063l14.572-20.137a2.5 2.5 0 0 1 4.051 2.931l-13.118 18.127a22.4 22.4 0 0 1 7.59 3.979L187.239 29.6a2.5 2.5 0 1 1 3.535 3.535L171.581 52.33a22.4 22.4 0 0 1 3.978 7.59l18.127-13.118a2.5 2.5 0 1 1 2.931 4.05L176.48 65.426a22.5 22.5 0 0 1-2.062 10.418l42.198-20.829a2.501 2.501 0 0 1 2.213 4.484l-55.031 27.163a2.6 2.6 0 0 1-.351.142c-8.318 3.845-18.5 2.34-25.357-4.518
4s-8.363-17.04-4.518-25.356q.057-.179.142-.352l27.163-55.031A2.5 2.5 0 0 1 164.225.41M166.374 54c-6.834-6.833-17.914-6.833-24.748 0-6.835 6.835-6.835 17.915 0 24.75 6.834 6.834 17.914 6.834 24.748 0 6.835-6.835 6.835-17.915 0-24.75",className:"spaceapps-local-template_svg__primary",clipRule:"evenodd"})),i||(i=m.createElement("path",{fill:"currentColor",d:"M255.9 140.025c0 4.095-1.575 6.405-5.46 6.405-4.41 0-5.775-2.94-5.775-7.56v-17.22H237v18.375c0 9.345 4.095 14.28 13.545 14.28 9.555 0 13.335-5.145 13.335-14.28v-12.39c0-7.56-.945-10.185-3.78-13.755-3.255-4.095-9.345-9.135-13.125-14.07-1.575-1.995-1.89-3.045-1.89-6.72V80.28c0-4.095 1.89-6.195 5.565-6.195 4.305 0 5.46 2.94 5.46 7.245v14.7h7.455V80.28c0-9.555-3.465-14.28-12.81-14.28C241.515 66 237 70.62 237 80.28v12.915c0 5.775.21 7.875 2.835 11.235 3.045 3.885 9.03 8.925 13.44 14.385 2.1 2.625 2.625 3.675 2.625 8.925zM293.55 96.975c0 5.355-2.205 7.56-6.825 7.56h-5.565V75.03h5.46c5.04 0 6.93 2.415 6.93 7.56zm-12.39 56.385v-41.055h5.565c10.08 0 14.7-4.62 14.7-15.54V82.59c0-10.92-4.725-15.645-14.805-15.645h-13.44v86.415zM334.464 153.36l-11.235-86.415h-9.345l-11.865 86.415h7.77l1.89-14.49h12.915l1.89 14.49zm-21.84-21.84c1.995-14.805 3.885-29.085 5.67-44.31 1.68 15.225 3.57 29.505 5.355 44.31zM359.382 139.605c0 4.62-1.47 6.825-5.355 6.825-3.78 0-5.67-2.31-5.67-6.825v-58.8c0-4.515 1.89-6.72 5.67-6.72 4.095 0 5.355 2.1 5.355 6.72V96.03h7.245V80.7c0-9.765-4.2-14.7-12.6-14.7-9.135 0-13.755 4.935-13.755 14.91v58.8c0 9.765 4.62 14.595 13.755 14.595 8.82 0 12.6-4.725 12.6-14.805v-17.85h-7.245zM399.344 153.36v-7.875h-15.435v-32.13h10.5v-7.98h-10.5V75.03h14.91v-8.085h-22.89v86.415zM454.783 153.36l-11.235-86.415h-9.345l-11.865 86.415h7.77l1.89-14.49h12.915l1.89 14.49zm-21.84-21.84c1.995-14.805 3.885-29.085 5.67-44.31 1.68 15.225 3.57 29.505 5.355 44.31zM483.129 96.975c0 5.355-2.205 7.56-6.825 7.56h-5.565V75.03h5.46c5.04 0 6.93 2.415 6.93 7.56zm-12.39 56.385v-41.055h5.565c10.08 0 14.7-4.62 14.7-15.54V82.59c0-10.92-4.725-15.645-14.805-15.645h-13.44v86.415zM519.592 96.975c0 5.355-2.205 7.56-6.825 7.56h-5.565V75.03h5.46c5.04 0 6.93 2.415 6.93 7.56zm-12.39 56.385v-41.055h5.565c10.08 0 14.7-4.62 14.7-15.54V82.59c0-10.92-4.725-15.645-14.805-15.645h-13.44v86.415zM554.253 140.025c0 4.095-1.575 6.405-5.46 6.405-4.41 0-5.775-2.94-5.775-7.56v-17.22h-7.665v18.375c0 9.345 4.095 14.28 13.545 14.28 9.555 0 13.335-5.145 13.335-14.28v-12.39c0-7.56-.945-10.185-3.78-13.755-3.255-4.095-9.345-9.135-13.125-14.07-1.575-1.995-1.89-3.045-1.89-6.72V80.28c0-4.095 1.89-6.195 5.565-6.195 4.305 0 5.46 2.94 5.46 7.245v14.7h7.455V80.28c0-9.555-3.465-14.28-12.81-14.28-9.24 0-13.755 4.62-13.755 14.28v12.915c0 5.775.21 7.875 2.835 11.235 3.045 3.885 9.03 8.925 13.44 14.385 2.1 2.625 2.625 3.675 2.625 8.925z",className:"spaceapps-local-template_svg__primary"})),o||(o=m.createElement("path",{fill:"#DB240B",d:"M366.887 47.72h-6.688l-6.4-17.184q.32 2.528.48 4.48.192 1.92.192 4.576v8.128h-4.672V25.544h6.528l6.56 17.216q-.704-4.384-.704-8.256v-8.96h4.704zM390.698 47.72l-1.152-4.768h-6.464l-1.12 4.768h-5.44l6.688-22.176h6.368l6.688 22.176zm-6.72-8.576h4.672l-2.336-9.792zM413.029 25q2.496 0 4.32.704a9.9 9.9 0 0 1 3.36 2.144l-2.432 2.848q-2.272-1.856-4.864-1.856-1.376 0-2.176.576-.8.544-.8 1.6 0 .735.352 1.216.353.449 1.248.864.895.416 2.688.992 3.391 1.087 4.992 2.688 1.6 1.568 1.6 4.48 0 2.08-1.056 3.68-1.056 1.568-3.04 2.464-1.985.864-4.704.864-2.72 0-4.832-.864-2.08-.864-3.584-2.304l2.656-2.912q1.28 1.088 2.624 1.632a8 8 0 0 0 2.976.544q1.632 0 2.56-.704.96-.736.96-2.016 0-.832-.352-1.376-.352-.576-1.216-1.024t-2.496-.96q-3.68-1.12-5.248-2.752-1.536-1.632-1.536-4.128 0-1.92 1.024-3.36 1.024-1.472 2.848-2.24 1.824-.8 4.128-.8M443.729 47.72l-1.152-4.768h-6.464l-1.12 4.768h-5.44l6.688-22.176h6.368l6.688 22.176zm-6.72-8.576h4.672l-2.336-9.792z",className:"spaceapps-local-template_svg__secondary"})))};function tJ(){return(tJ=Object.assign.bind()).apply(null,arguments)}let tK=function(e){return m.createElement("svg",tJ({xmlns:"http://www.w3.org/2000/svg",width:428,height:428,fill:"none"},e),n||(n=m.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M343.311 13.961a2.57 2.57 0 0 1 1.166 3.44l-26.21 53.1a27.1 27.1 0 0 1 14.131-3.125l18.037-24.925a2.568 2.568 0 0 1 4.161 3.011l-16.513 22.819a26.9 26.9 0 0 1 10.169 5.267L372.12 49.68a2.568 2.568 0 0 1 3.632 3.632L351.884 77.18a26.9 26.9 0 0 1 5.267 10.169l22.819-16.513a2.568 2.568 0 1 1 3.011 4.16l-24.925 18.038a27.1 27.1 0 0 1-3.125 14.131l53.1-26.21a2.569 2.569 0 0 1 2.274 4.606l-67.519 33.326a2.6 2.6 0 0 1-.39.155c-10.026 4.649-22.308 2.84-30.577-5.429s-10.078-20.551-5.429-30.577q.06-.198.155-.39l33.326-67.519a2.57 2.57 0 0 1 3.44-1.166m3.21 64.95c-8.58-8.58-22.49-8.58-31.07 0s-8.58 22.49 0 31.07 22.49 8.58 31.07 0 8.58-22.49 0-31.07",className:"spaceapps-local-template-sq_svg__primary",clipRule:"evenodd"})),r||(r=m.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M211.192 46.488c-64.268 0-120.09 36.191-148.183 89.322a3.424 3.424 0 1 1-6.054-3.201c29.233-55.285 87.332-92.97 154.237-92.97 38.946 0 74.918 12.773 103.944 34.357a3.424 3.424 0 1 1-4.087 5.496c-27.884-20.736-62.433-33.005-99.857-33.005m135.429 63.144a3.425 3.425 0 0 1 4.79.714 174.6 174.6 0 0 1 14.018 22.263 3.424 3.424 0 0 1-6.054 3.201 167.6 167.6 0 0 0-13.468-21.389 3.424 3.424 0 0 1 .714-4.789M45.691 257.068a3.424 3.424 0 0 1 4.223 2.369c19.804 70.44 84.515 122.076 161.278 122.076s141.474-51.636 161.278-122.076a3.424 3.424 0 1 1 6.592 1.854c-20.612 73.315-87.959 127.07-167.87 127.07s-147.258-53.755-167.87-127.07a3.424 3.424 0 0 1 2.37-4.223",className:"spaceapps-local-template-sq_svg__primary",clipRule:"evenodd"})),d||(d=m.createElement("path",{fill:"#DB240B",d:"M180.916 134.829h-6.702l-6.413-17.219q.32 2.532.481 4.489.192 1.924.193 4.585v8.145h-4.682v-22.221h6.541l6.574 17.251q-.706-4.394-.706-8.273v-8.978h4.714zM204.775 134.829l-1.155-4.778h-6.477l-1.122 4.778h-5.451l6.702-22.221h6.38l6.702 22.221zm-6.734-8.594h4.682l-2.341-9.812zM227.151 112.062q2.5 0 4.329.706a9.9 9.9 0 0 1 3.367 2.148l-2.437 2.854q-2.277-1.86-4.874-1.86-1.378 0-2.181.577-.801.546-.801 1.604 0 .737.352 1.218.353.449 1.251.866t2.693.994q3.4 1.09 5.003 2.693 1.603 1.572 1.603 4.489 0 2.085-1.058 3.688-1.059 1.57-3.046 2.469-1.989.866-4.714.866t-4.842-.866q-2.084-.866-3.591-2.309l2.661-2.918q1.283 1.09 2.63 1.636a8 8 0 0 0 2.982.545q1.635 0 2.565-.706.962-.737.962-2.02 0-.834-.353-1.379-.352-.576-1.218-1.026-.867-.449-2.501-.962-3.688-1.122-5.259-2.757-1.539-1.635-1.539-4.137 0-1.923 1.026-3.366 1.026-1.476 2.854-2.245 1.827-.802 4.136-.802M257.914 134.829l-1.155-4.778h-6.477l-1.122 4.778h-5.451l6.701-22.221h6.381l6.702 22.221zm-6.734-8.594h4.681l-2.34-9.812z",className:"spaceapps-local-template-sq_svg__secondary"})),c||(c=m.createElement("path",{fill:"currentColor",d:"M70.398 226.278c0 4.089-1.575 6.395-5.458 6.395-4.409 0-5.7
474-2.935-5.774-7.548v-17.193h-7.662v18.346c0 9.331 4.093 14.258 13.54 14.258 9.553 0 13.332-5.137 13.332-14.258v-12.371c0-7.548-.945-10.169-3.78-13.733-3.253-4.089-9.341-9.121-13.12-14.048-1.575-1.992-1.89-3.041-1.89-6.71v-12.79c0-4.089 1.89-6.186 5.564-6.186 4.303 0 5.458 2.936 5.458 7.234v14.677h7.453v-15.725c0-9.54-3.464-14.258-12.806-14.258-9.238 0-13.751 4.613-13.751 14.258v12.895c0 5.766.21 7.863 2.834 11.217 3.044 3.879 9.027 8.912 13.436 14.363 2.1 2.621 2.624 3.669 2.624 8.911zM108.037 183.295c0 5.347-2.205 7.548-6.823 7.548H95.65v-29.459h5.459c5.038 0 6.928 2.411 6.928 7.548zM95.65 239.593v-40.992h5.564c10.077 0 14.695-4.613 14.695-15.516v-14.153c0-10.903-4.723-15.62-14.8-15.62H87.673v86.281zM148.939 239.593l-11.232-86.281h-9.342l-11.862 86.281h7.768l1.889-14.468h12.911l1.89 14.468zm-21.834-21.807c1.994-14.782 3.884-29.039 5.668-44.241 1.68 15.202 3.569 29.459 5.354 44.241zM173.849 225.859c0 4.613-1.47 6.814-5.353 6.814-3.779 0-5.669-2.306-5.669-6.814V167.15c0-4.508 1.89-6.71 5.669-6.71 4.093 0 5.353 2.097 5.353 6.71v15.201h7.243v-15.306c0-9.75-4.199-14.677-12.596-14.677-9.133 0-13.751 4.927-13.751 14.887v58.709c0 9.75 4.618 14.572 13.751 14.572 8.817 0 12.596-4.718 12.596-14.782v-17.822h-7.243zM213.8 239.593v-7.863h-15.431v-32.08h10.497v-7.968h-10.497v-30.298h14.906v-8.072h-22.884v86.281zM269.222 239.593l-11.231-86.281h-9.343l-11.861 86.281h7.768l1.889-14.468h12.911l1.89 14.468zm-21.833-21.807c1.994-14.782 3.884-29.039 5.668-44.241 1.68 15.202 3.569 29.459 5.353 44.241zM297.56 183.295c0 5.347-2.205 7.548-6.823 7.548h-5.564v-29.459h5.459c5.038 0 6.928 2.411 6.928 7.548zm-12.387 56.298v-40.992h5.564c10.077 0 14.695-4.613 14.695-15.516v-14.153c0-10.903-4.723-15.62-14.8-15.62h-13.436v86.281zM334.012 183.295c0 5.347-2.204 7.548-6.823 7.548h-5.563v-29.459h5.458c5.038 0 6.928 2.411 6.928 7.548zm-12.386 56.298v-40.992h5.563c10.077 0 14.696-4.613 14.696-15.516v-14.153c0-10.903-4.724-15.62-14.801-15.62h-13.436v86.281zM368.662 226.278c0 4.089-1.574 6.395-5.458 6.395-4.409 0-5.773-2.935-5.773-7.548v-17.193h-7.663v18.346c0 9.331 4.094 14.258 13.541 14.258 9.552 0 13.331-5.137 13.331-14.258v-12.371c0-7.548-.945-10.169-3.779-13.733-3.254-4.089-9.342-9.121-13.121-14.048-1.575-1.992-1.889-3.041-1.889-6.71v-12.79c0-4.089 1.889-6.186 5.563-6.186 4.304 0 5.458 2.936 5.458 7.234v14.677h7.453v-15.725c0-9.54-3.464-14.258-12.806-14.258-9.237 0-13.751 4.613-13.751 14.258v12.895c0 5.766.21 7.863 2.834 11.217 3.044 3.879 9.027 8.912 13.436 14.363 2.099 2.621 2.624 3.669 2.624 8.911z",className:"spaceapps-local-template-sq_svg__primary"})))};var tX=e.i(5662);function tZ(e){let{name:t,alternate:s,size:a="large",type:l="wide"}=e;return(0,u.jsxs)("div",{className:`${tX.default.container} ${tX.default[a]} ${tX.default[l]} ${tX.default[s?"light":"dark"]}`,children:["wide"===l?(0,u.jsx)(tY,{}):(0,u.jsx)(tK,{}),t&&(0,u.jsx)("span",{className:tX.default.name,children:t})]})}var t0=e.i(97429);function t1({page:e,showLiveStream:t,showHackathon:s,showRegistration:a}){return(0,u.jsxs)("div",{className:t0.default.container,children:[a&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:"Registration Info"}),(0,u.jsxs)("dl",{children:[(0,u.jsx)("dt",{children:"Registration Status:"}),(0,u.jsx)("dd",{children:e.registrationEnabled?"Open":"Closed"}),(0,u.jsx)("dt",{children:"Registration Limit:"}),(0,u.jsx)("dd",{children:e.registrationLimit}),(0,u.jsx)("dt",{children:"Auto Promote Waitlist:"}),(0,u.jsx)("dd",{children:e.autoPromoteWaitlist?"Yes":"No"})]})]}),s&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:"Hackathon Info"}),(0,u.jsxs)("dl",{children:[(0,u.jsx)("dt",{children:"Timezone:"}),(0,u.jsx)("dd",{children:e.timezone||"Not Set"}),(0,u.jsx)("dt",{children:"Start Date:"}),(0,u.jsx)("dd",{children:e.startDate?(0,u.jsx)(eb.Datetime,{timestamp:e.startDate,timezone:e.timezone}):"Not Set"}),(0,u.jsx)("dt",{children:"End Date:"}),(0,u.jsx)("dd",{children:e.endDate?(0,u.jsx)(eb.Datetime,{timestamp:e.endDate,timezone:e.timezone}):"Not Set"}),(0,u.jsx)("dt",{children:"Project Submission Deadline:"}),(0,u.jsx)("dd",{children:e.submissionDeadline?(0,u.jsx)(eb.Datetime,{timestamp:e.submissionDeadline,timezone:e.timezone}):"Not Set"})]})]}),t&&(e.liveStreamUrl||e.liveStreamStartDate||e.liveStreamEndDate)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:"Livestream Details"}),(0,u.jsxs)("dl",{children:[(0,u.jsx)("dt",{children:"Livestream Url:"}),(0,u.jsx)("dd",{children:e.liveStreamUrl?(0,u.jsx)(L.Link,{href:e.liveStreamUrl,children:e.liveStreamUrl}):"Not Set"}),(0,u.jsx)("dt",{children:"Livestream Start Time:"}),(0,u.jsx)("dd",{children:e.liveStreamStartDate?(0,u.jsx)(eb.Datetime,{timestamp:e.liveStreamStartDate}):"Not Set"}),(0,u.jsx)("dt",{children:"Livestream End Time:"}),(0,u.jsx)("dd",{children:e.liveStreamEndDate?(0,u.jsx)(eb.Datetime,{timestamp:e.liveStreamEndDate}):"Not Set"})]})]})]})}var t2=e.i(73985);function t5({schedule:e}){let t=(0,eh.groupTimestampsByDate)(e,"startDate"),s=0===Object.keys(t).length;return(0,u.jsx)("div",{className:t2.default.container,children:(0,u.jsxs)("div",{className:t2.default.info,children:[(0,u.jsx)("h2",{className:t2.default.heading,children:"Schedule"}),s&&(0,u.jsx)("p",{className:t2.default.empty,children:"Add your local schedule here ..."}),!s&&t&&(0,u.jsx)("ul",{className:t2.default.schedule,children:Object.keys(t).map((e,s)=>(0,u.jsxs)("li",{className:t2.default.group,children:[(0,u.jsx)("h3",{className:t2.default.group__title,children:(0,u.jsx)(eb.Datetime,{format:"weekday",timestamp:`${e}T00:00:00`})}),(0,u.jsx)("ul",{className:t2.default.group__schedule,children:t[e]&&t[e].map((e,t)=>(0,u.jsxs)("li",{className:t2.default.item,children:[(0,u.jsx)(eb.Datetime,{format:"time",timestamp:e.startDate||""})," ",(0,u.jsx)("span",{className:t2.default.item__title,children:e.title}),e.description&&(0,u.jsx)(q.HtmlContainer,{html:e.description})]},`schedule-item-${t}`))})]},`schedule-group-${s}`))})]})})}var t4=e.i(62049);function t3({localEvent:e,registration:t,isLead:s,size:a="md"}){let{isRegistrationOpen:l,isHybrid:i,isVirtual:o}=e,n=[{text:"Your Local Event",icon:"spaceapps/star",type:D.StyleTheme.PRIMARY,visible:!!t&&(t.level?.toLowerCase()==="registered"||t.level?.toLowerCase()==="confirmed"||t.level?.toLowerCase()==="attended event"||t.level?.toLowerCase()==="waitlisted")},{text:"Waitlisted",icon:"spaceapps/warning",type:D.StyleTheme.PRIMARY,visible:!!t&&t.level?.toLowerCase()==="waitlisted"},{text:"Local Lead",icon:"spaceapps/star",type:D.StyleTheme.PRIMARY,visible:s},{text:"Virtual",icon:"spaceapps/meteor",type:D.StyleTheme.PRIMARY,visible:o||i},{text:"In-Person",icon:"spaceapps/user",type:D.StyleTheme.PRIMARY,visible:!o||i},{text:"Accepting Participants",icon:"spaceapps/check",type:D.StyleTheme.SECONDARY,visible:l},{text:"Not Accepting Participants",icon:"spaceapps/attention",type:D.StyleTheme.IMPORTANT,visible:!l}];return(0,u.jsx)("div",{className:t4.default.container,children:n.filter(e=>e.visible).map((e,t)=>(0,u.jsx)(P.Badge,{type:e.type,label:e.text,icon:e.icon,size:a},`badge-${t}`))})}var t6=e.i(51383);function t8({socialLinks:e,title:t,text:s}){let a=(e?(0,eh.getFormattedChoices)(e):[]).map(e=>(0,eh.extractTextForLink)(e)).filter(eh.notNull);return(0,u.jsxs)("div",{className:t6.default.container,children:[(0,u.jsx)("h2",{className:t6.default.title,children:t||"Social Links"}),s&&(0,u.jsx)("p",{className:t6.default.text,children:s}),0===a.length&&(0,u.jsx)("p",{children:"Add your social media links here ..."}),a.length>0&&(0,u.jsx)("ul",{className:t6.default.links,children:a.map(({url:e,text:t},s)=>{let a=e;e&&""!==e?e.includes("@")?a="mailto:"+e:/^[+]?[0-9]{0,3}\W?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/im.test(e)?a="tel:"+e:/^https?:\/\//i.test(e)||(a="https://"+e):a="";let l=(0,tG.getIconByLink)(a);return(0,u.jsx)("li",{className:t6.default["link-wrap"],children:(0,u.jsxs)(L.Link,{translate:"no",href:a,iconPosition:"before",theme:"secondary",size:"xs",disabled:!a,children:[(0,u.jsx)(ei.Icon,{slug:l}),(0,u.jsx)("span",{translate:"yes",children:t})]})},s)})})]})}e.i(53487),e.s(["Authorized",()=>sg,"default",()=>sv],94906),e.s(["LoginForm",()=>sp,"default",()=>s_],87415);var t9=e.i(18566),t7=e.i(73359),se=e.i(37812),st=e.i(49596),ss=e.i(97133);e.s(["RequestVerificationForm",()=>si,"default",()=>so],38645);var sa=e.i(17093),sl=e.i(66394);function si(e){let{isModal:t=!1}=e,{data:s,loading:a}=(0,w.useQuery)(k.SiteFormSettingsDocument),l=s?.siteByHostname.formSettings.requestVerificationForm,{closeModalHandler:i}=(0,E.useModal)(),{addToast:o}=(0,S.useToasts)(),n=(0,C.useForm)(),{formState:{isSubmitting:r,isSubmitSuccessful:d},handleSubmit:c}=n,[m,{error:h,loading:p}]=y(k.RequestVerificationDocument),_=async e=>{let{data:t,errors:s}=await m({variables:{input:e}});t&&!s&&(o(N.ToastTypes.SUCCESS,l?.confirmation||"Your request has been received. Please check your email."),i())},f="Error: ";if(h)if(h?.message)try{f+=JSON.parse(h.message).error}catch(e){f+=h.message}else f="An error occured while attempting this action, please try again or c
4ontact an administrator.";let g=a||p,v=t&&l?.modelContent||l?.pageContent;return(0,u.jsxs)("div",{className:sl.default.container,children:[t&&(0,u.jsx)(sa.ModalTitle,{title:l?.formTitle||"Request Account Verification"}),g&&(0,u.jsx)(F.Loader,{}),d&&!g&&!h&&!t&&(0,u.jsx)(eU.FormSuccess,{children:(0,u.jsx)(q.HtmlContainer,{html:l?.confirmation||"Your request has been received. Please check your email."})}),h&&(0,u.jsx)(se.FormError,{children:f}),(!d||d&&h)&&(0,u.jsxs)(C.FormProvider,{...n,children:[v&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:v})}),(0,u.jsxs)("form",{onSubmit:c(_),children:[l?.fields&&l.fields.map((e,t)=>(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0}},`field-${t}`)},`field-row-${t}`)),(0,u.jsx)(eB.FormActions,{disabled:r,submitText:"Send Email"})]})]})]})}let so=si;e.s(["ForgotUsernameForm",()=>sr,"default",()=>sd],97374);var sn=e.i(47348);function sr({isModal:e=!1}){let{openModalHandler:t,closeModalHandler:s}=(0,E.useModal)(),{addToast:a}=(0,S.useToasts)(),{data:l,loading:i}=(0,w.useQuery)(k.SiteFormSettingsDocument),o=l?.siteByHostname?.formSettings?.forgotUsernameForm,[n,r]=(0,m.useState)(),d=(0,C.useForm)(),{setError:c,formState:{errors:h,isSubmitting:p,isSubmitSuccessful:_},handleSubmit:f}=d,[g,{error:v,loading:x}]=y(k.ForgotUsernameDocument),j=async e=>{r(void 0);let{data:t,errors:l}=await g({variables:{input:(0,T.normalizeSubmitFields)(e,[])}});if(l){(0,T.gqlErrorsToFormErrors)(l,e).forEach(({name:e,error:t})=>{c(e,t)});let{message:t,extensions:s}=l[0],a="An error occurred while attempting this action, please try again or contact an administrator.";if(s?.code===t7.CustomErrorStatusTypes.USER_LOCKED)a=(0,u.jsxs)("div",{children:["For security reasons, your account has been locked. Contact"," ",(0,u.jsx)(L.Link,{href:"mailto:[email protected]",size:"sm",children:"[email protected]"})," ","for support."]});else if(s?.code===t7.CustomErrorStatusTypes.USER_INACTIVE)a=(0,u.jsxs)("div",{children:["Account is inactive. Please activate your account by clicking the link in your verification email, or"," ",(0,u.jsx)(R.Button,{size:"sm",theme:"transparent-dark",onClick:b,children:"request a new verification email."})]});else if(t)try{a=JSON.parse(t).error}catch(e){a=t}r(a)}t&&!l&&(a(N.ToastTypes.SUCCESS,o?.confirmation||"You should receive an email shortly to retrieve your username."),s())},b=()=>{t({content:(0,u.jsx)(so,{isModal:!0})})},P=i||x,A=e&&o?.modelContent||o?.pageContent;return(0,u.jsxs)("div",{className:sn.default.container,children:[e&&(0,u.jsx)(sa.ModalTitle,{title:o?.formTitle||"Forgot Username"}),P&&(0,u.jsx)(F.Loader,{}),_&&!P&&!v&&!e&&(0,u.jsx)(eU.FormSuccess,{children:(0,u.jsx)(q.HtmlContainer,{html:o?.confirmation||"You should receive an email shortly to retrieve your username."})}),n&&(0,u.jsx)(se.FormError,{children:n}),(!_||_&&v)&&(0,u.jsxs)(C.FormProvider,{...d,children:[A&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:A})}),(0,u.jsxs)("form",{onSubmit:f(j),children:[o?.fields&&o.fields.map((e,t)=>(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0}},`field-${t}`)},`field-row-${t}`)),(0,u.jsx)(ti,{field:{cleanName:"recaptcha",fieldType:k.FieldTypes.Recaptcha}},"field-recaptcha"),(0,u.jsx)(eB.FormActions,{disabled:p,submitText:o?.submitLabel||"Send Email"})]})]})]})}let sd=sr;e.s(["ForgotPasswordForm",()=>su,"default",()=>sm],24606);var sc=e.i(77794);function su({isModal:e=!1}){let{openModalHandler:t,closeModalHandler:s}=(0,E.useModal)(),{addToast:a}=(0,S.useToasts)(),{data:l,loading:i}=(0,w.useQuery)(k.SiteFormSettingsDocument),o=l?.siteByHostname.formSettings.forgotPasswordForm,[n,r]=(0,m.useState)(),d=(0,C.useForm)(),{setError:c,formState:{errors:h,isSubmitting:p,isSubmitSuccessful:_},handleSubmit:f}=d,[g,{error:v,loading:x}]=y(k.ForgotPasswordDocument),j=async e=>{r(void 0);let{data:t,errors:l}=await g({variables:{input:(0,T.normalizeSubmitFields)(e,[])}});if(l){(0,T.gqlErrorsToFormErrors)(l,e).forEach(({name:e,error:t})=>{c(e,t)});let{message:t,extensions:s}=l[0],a="An error occurred while attempting this action, please try again or c
4ontact an administrator.";if(s?.code===t7.CustomErrorStatusTypes.USER_LOCKED)a=(0,u.jsxs)("div",{children:["For security reasons, your account has been locked. Contact"," ",(0,u.jsx)(L.Link,{href:"mailto:[email protected]",size:"sm",children:"[email protected]"})," ","for support."]});else if(s?.code===t7.CustomErrorStatusTypes.USER_INACTIVE)a=(0,u.jsxs)("div",{children:["Account is inactive. Please activate your account by clicking the link in your verification email, or"," ",(0,u.jsx)(R.Button,{size:"sm",theme:"transparent-dark",onClick:b,children:"request a new verification email."})]});else if(t)try{a=JSON.parse(t).error}catch(e){a=t}r(a)}t&&!l&&(a(N.ToastTypes.SUCCESS,o?.confirmation||"You should receive an email shortly to reset your password."),s())},b=()=>{t({content:(0,u.jsx)(so,{isModal:!0})})},P=i||x,A=e&&o?.modelContent||o?.pageContent;return(0,u.jsxs)("div",{className:sc.default.container,children:[e&&(0,u.jsx)(sa.ModalTitle,{title:o?.formTitle||"Forgot Password"}),P&&(0,u.jsx)(F.Loader,{}),_&&!P&&!v&&!e&&(0,u.jsx)(eU.FormSuccess,{children:(0,u.jsx)(q.HtmlContainer,{html:o?.confirmation||"Follow the instructions in the email to reset your password"})}),n&&(0,u.jsx)(se.FormError,{children:n}),(!_||_&&v)&&(0,u.jsxs)(C.FormProvider,{...d,children:[A&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:A})}),(0,u.jsxs)("form",{onSubmit:f(j),children:[o?.fields&&o.fields.map((e,t)=>(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0}},`field-${t}`)},`field-row-${t}`)),(0,u.jsx)(ti,{field:{cleanName:"recaptcha",fieldType:k.FieldTypes.Recaptcha}},"field-recaptcha"),(0,u.jsx)(eB.FormActions,{disabled:p,submitText:o?.submitLabel||"Send Email"})]})]})]})}let sm=su;var sh=e.i(24543);function sp({isModal:e=!1,showHelpLinks:t=!0,fullRefresh:s=!0,onSuccessUrl:a}){let l=(0,t9.useRouter)(),{data:i,loading:o,refetch:n}=(0,w.useQuery)(k.SiteFormSettingsDocument),{data:r,refetch:d}=(0,w.useQuery)(k.ViewerDocument),[c,{loading:h}]=y(k.LoginUserDocument),[p,_]=(0,m.useState)(),[f,g]=(0,m.useState)(!1),v=(0,C.useForm)(),{openModalHandler:x}=(0,E.useModal)(),{handleSubmit:j,formState:{isSubmitting:b}}=v,N=r?.viewer,T=N?.user,{loginForm:S}=i?.siteByHostname?.formSettings||{},{siteFlags:P}=i?.siteByHostname.siteSettings||{};if((0,m.useEffect)(()=>{(async()=>{if(!P&&!o&&!f){g(!0);let{data:e}=await n();e?.siteByHostname?.siteSettings?.siteFlags||_("Unable to load login settings. Please try again later.")}})()},[P,o,f,n]),!P&&f&&!o)return(0,u.jsx)(se.FormError,{children:p||"Unable to load login settings. Please try again later."});if(P&&!P.enableLogin)return(0,u.jsx)(se.FormError,{children:"Login is Currently Disabled."});let A=async t=>{_(void 0);let{data:i,errors:o}=await c({variables:{input:{usernameOrEmail:t.username,password:t.password}}});if(o){let e="Login Failed. Please try again, reset your password, or create a new account.",{message:t,extensions:s}=o[0];s?.code===t7.CustomErrorStatusTypes.TOO_MANY_ATTEMPTS?e=(0,u.jsxs)("div",{children:['For security reasons, your account has been locked. Please use the "Reset Password" button below to reset your password, or contact'," ",(0,u.jsx)(L.Link,{href:"mailto:[email protected]",size:"sm",children:"[email protected]"})," ","for additional support."]}):s?.code===t7.CustomErrorStatusTypes.USER_LOCKED?e=(0,u.jsxs)("div",{children:["For security reasons, your account has been locked. Contact"," ",(0,u.jsx)(L.Link,{href:"mailto:[email protected]",size:"sm",children:"[email protected]"})," ","for support."]}):s?.code===t7.CustomErrorStatusTypes.USER_INACTIVE?e=(0,u.jsxs)("div",{children:["Account is inactive. Please activate your account by clicking the link in your verification email, or"," ",(0,u.jsx)(R.Button,{size:"sm",theme:"transparent-dark",onClick:D,children:"request a new verification email."})]}):s?.code===t7.CustomErrorStatusTypes.INVALID_LOGIN?e="Invalid credentials. Please try again, reset your password, or create a new account.":t&&(e=t),_(e)}i&&!o&&(await n(),await d(),setTimeout(()=>{let t=a??(e?"":"/");s?window.location.assign(t):l.push(t)},1e3))},D=()=>{x({content:(0,u.jsx)(so,{isModal:!0})})},M=h||b||o;return(0,u.jsxs)("div",{className:sh.default.container,children:[t&&S?.alertContent&&!T&&!N?.user&&!M&&(0,u.jsx)(ss.Alert,{children:(0,u.jsx)(q.HtmlContainer,{html:S.alertContent})}),e&&S?.modelContent&&(0,u.jsx)(q.HtmlContainer,{html:S.modelContent,className:sh.default["modal-content"]}),M&&(0,u.jsx)(F.Loader,{}),T&&(0,u.jsxs)(eU.FormSuccess,{children:[(0,u.jsxs)("h3",{children:[`Welcome, ${T.fullName}!`," "]}),(0,u.jsxs)("p",{children:["You are now logged in as ",(0,u.jsx)("strong",{children:T.username}),"."]})]}),!T&&N?.user&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h3",{children:`Hi, ${N.user.fullName}!`}),(0,u.jsxs)("p",{children:["You are already logged in as ",(0,u.jsx)("strong",{children:N.user.username}),". If this is not you, please sign out and log in again."]})]}),!N?.user&&!T&&!M&&(0,u.jsxs)(C.FormProvider,{...v,children:[p&&(0,u.jsx)(se.FormError,{children:p}),(0,u.jsxs)("form",{onSubmit:j(A),children:[S?.fields&&S.fields.map((e,t)=>(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(ti,{field:e},`field-${t}`)},`field-row-${t}`)),t&&(0,u.jsxs)("div",{className:sh.default["help-links"],children:[S?.forgotUsernameLabel&&(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{x({content:(0,u.jsx)(sd,{isModal:!0})})},children:S.forgotUsernameLabel}),S?.forgotPasswordLabel&&(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{x({content:(0,u.jsx)(sm,{isModal:!0})})},children:S.forgotPasswordLabel})]}),(0,u.jsxs)("div",{className:sh.default["flex-actions"],children:[(0,u.jsx)(eB.FormActions,{disabled:b,submitText:S?.submitLabel||"Login"}),e&&t&&(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{x({title:"Create Account",content:(0,u.jsx)(sO,{isModal:!0})})},children:S?.signUpLabel||"Create Account"})]})]})]}),!T&&!e&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:sh.default.spacing,children:(0,u.jsx)(ey.PageBreak,{})}
4),S?.pageContent&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:S.pageContent})})]})]})}let s_=sp;var sf=e.i(92173);function sg({children:e,failSilent:t=!1,theme:s="light"}){let{data:a}=(0,w.useQuery)(k.ViewerDocument),{viewer:l}=a||{},i=!!l?.user,{openModalHandler:o}=(0,E.useModal)();return!i&&t?null:i?e:(0,u.jsxs)("div",{className:sf.default.container,children:[(0,u.jsx)("h2",{children:"You must be logged in to view this content."}),(0,u.jsx)(R.Button,{theme:"primary",onClick:()=>{o({title:"Login to Space Apps",content:(0,u.jsx)(sp,{isModal:!0})})},children:"Login to Continue"})]})}let sv=sg;e.i(33275);var sx=e.i(30225);function sj({project:e,fields:t=[]}){let s=(0,T.filterEmptyFields)(t,e);return(0,u.jsx)("div",{className:sx.default.container,children:e&&e.name&&(0,u.jsxs)("div",{className:sx.default.richtext,children:[(0,u.jsx)("h2",{className:sx.default["project-title"],children:e.name}),s.length>0?s.map(({title:t,caption:s,fieldMapping:a,fieldType:l},i)=>(0,u.jsxs)("div",{className:sx.default.field,children:[(0,u.jsx)("h3",{id:a,className:`${sx.default["field-title"]} ${s?sx.default["has-caption"]:""}`,children:t}),s&&(0,u.jsx)("h4",{className:sx.default["field-caption"],children:s}),(0,u.jsx)("div",{className:sx.default["field-value"],children:((e,t)=>{if(t===k.FieldTypes.Url)return(0,u.jsx)(L.Link,{href:e,isNewTab:!0,isExternal:!0,children:e});if(t===k.FieldTypes.Links){let t=((0,eh.getFormattedChoices)(e)||[]).map(e=>(0,eh.extractTextForLink)(e)).filter(eh.notNull).map(({url:e,text:t},s)=>{if(!e||""===e)return(0,u.jsx)("li",{className:sx.default["link-wrap"],children:t},s);let a=e;return/^https?:\/\//i.test(e)||(a="https://"+a),(0,u.jsx)("li",{className:sx.default["link-wrap"],children:(0,u.jsx)(L.Link,{href:a,isNewTab:!0,isExternal:!0,children:t})},s)});return(0,u.jsx)("ul",{className:sx.default["link-repeater"],children:t})}return t===k.FieldTypes.Datetime||t===k.FieldTypes.Date?(0,u.jsx)(eb.Datetime,{timestamp:e,timezone:"UTC"}):(0,u.jsx)(q.HtmlContainer,{html:e?e.toString().replace(/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a><br/><br/>'):""})})(e[a],l)})]},`content-${a}-${i}`)):(0,u.jsx)("p",{children:"Check back later to see this project take flight."})]})})}var sb=e.i(97565),sy=e.i(81196);function sw({team:e,showLocation:t=!0,children:s}){if(!e)return null;let{title:a,featuredImage:l,locationDetails:i,challengeDetails:o,projectDetails:n}=e;return(0,u.jsxs)("div",{className:sb.default.container,children:[(0,u.jsxs)("div",{className:sb.default.wrap,children:[l&&l.rendition&&(0,u.jsx)(I.default,{className:sb.default.image,width:l.rendition.width||300,height:l.rendition.height||250,src:l.rendition.fullUrl,alt:l.alt||"Image Alt Not Found"}),(0,u.jsxs)("div",{className:sb.default.content,children:[(0,u.jsxs)("h2",{className:sb.default.title,children:[a,n?.submittedAt?(0,u.jsxs)("span",{className:sb.default.caption,"data-tooltip":(0,sy.getDateTimeString)(n.submittedAt,"datetime","UTC"),"aria-label":`Submitted: ${(0,sy.getDateTimeString)(n.submittedAt,"datetime","UTC")}`,"aria-live":"polite",tabIndex:0,children:["Submitted: ",(0,u.jsx)(eb.Datetime,{format:"datetime",timestamp:n.submittedAt})]}):(0,u.jsx)("span",{className:sb.default.caption,"aria-live":"polite",children:"Not Submitted"})]}),(0,u.jsxs)("div",{className:sb.default["meta-container"],children:[n&&(0,u.jsxs)("div",{className:sb.default.meta,children:[(0,u.jsx)("h3",{className:sb.default.label,children:"Project Title"}),(0,u.jsx)("span",{className:sb.default["meta-content"],children:n.name})]}),t&&i&&(0,u.jsxs)("div",{className:sb.default.meta,children:[(0,u.jsx)("h3",{className:sb.default.label,children:"Location"}),(0,u.jsxs)("span",{children:[i.displayName||i.shortName||i.title,","," ",i.country]})]}),o&&(0,u.jsxs)("div",{className:sb.default.meta,children:[(0,u.jsx)("h3",{className:sb.default.label,children:"Challenge"}),(0,u.jsx)("span",{children:o.title})]})]}),n?.summary&&(0,u.jsx)("div",{className:sb.default.excerpt,children:n?.summary})]})]}),s]})}var sC=e.i(77667);function sk({project:e,fields:t=[],title:s,subTitle:a,excerpt:l}){let i=(0,T.filterEmptyFields)(t,e);return(0,u.jsxs)("div",{className:sC.default.container,children:[s&&(0,u.jsxs)("h3",{className:sC.default.subtitle,children:[s,":"]}),a&&(0,u.jsx)("h2",{className:sC.default.title,children:a}),l&&(0,u.jsx)("p",{className:sC.default.excerpt,children:l}),i.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{className:sC.default.title,children:"Outline"}),(0,u.jsx)("ol",{className:sC.default.outline,children:i.map(({title:e,f
4ieldMapping:t},s)=>(0,u.jsx)("li",{className:sC.default.item,children:(0,u.jsx)(L.Link,{prefetch:!1,href:`#${t}`,size:"sm",children:e})},`outline-${t}-${s}`))})]})]})}e.i(89360);var sN=e.i(48127);function sT({team:e,award:t,label:s="Nominee"}){let{title:a,featuredImage:l,meta:i,locationDetails:o,challengeDetails:n,excerpt:r}=e,d=(0,u.jsxs)(u.Fragment,{children:[t?(0,u.jsxs)("div",{className:sN.default.top,children:[t&&t.icon?.rendition&&(0,u.jsx)("div",{className:sN.default["award-icon"],children:(0,u.jsx)(I.default,{width:t.icon.rendition.width||100,height:t.icon.rendition.height||100,src:t.icon.rendition.fullUrl,alt:t.icon.alt||"Image Alt Not Found"})}),(0,u.jsxs)("div",{className:sN.default["award-content"],children:[(0,u.jsx)("span",{className:sN.default["award-label"],children:s}),(0,u.jsx)("h2",{className:sN.default["award-title"],children:t.name})]})]}):(0,u.jsx)("div",{className:sN.default.top,children:(0,u.jsx)("h2",{className:sN.default["nominee-title"],children:s})}),(0,u.jsxs)("div",{className:sN.default.wrapper,children:[l&&l.rendition&&(0,u.jsx)(I.default,{className:sN.default.image,width:l.rendition.width||300,height:l.rendition.height||250,src:l.rendition.fullUrl,alt:l.alt||"Image Alt Not Found"}),(0,u.jsxs)("div",{className:sN.default.content,children:[a&&(0,u.jsx)("h2",{className:sN.default.title,children:a}),o&&(0,u.jsxs)("div",{className:sN.default.meta,children:[(0,u.jsx)("h3",{className:sN.default.label,children:"Local Event"}),(0,u.jsxs)("span",{children:[o.displayName||o.shortName||o.title,","," ",o.country]})]}),n&&(0,u.jsxs)("div",{className:sN.default.meta,children:[(0,u.jsx)("h3",{className:sN.default.label,children:"Challenge"}),(0,u.jsx)("span",{children:n.title})]}),r&&(0,u.jsxs)("div",{className:sN.default.meta,children:[(0,u.jsx)("h3",{className:sN.default.label,children:"About the Team"}),(0,u.jsx)("span",{children:r})]})]})]})]});return i.relativeUrl?(0,u.jsx)(L.Link,{href:i.relativeUrl,className:sN.default.link,children:(0,u.jsx)("div",{className:sN.default.container,children:d})}):(0,u.jsx)("div",{className:sN.default.container,children:d})}var sE=e.i(86658);function sS({team:e}){let t=e.desiredSkills?.map((e,t)=>(0,u.jsx)("span",{className:sE.default.pill,children:e},`team-skill-${t}`))||[],s=e.languages?.map((e,t)=>(0,u.jsx)("span",{className:sE.default.pill,children:e},`team-language-${t}`))||[];return(0,u.jsxs)("div",{className:sE.default.container,children:[(0,u.jsx)("h2",{children:"Team Information"}),(0,u.jsxs)("dl",{className:sE.default.details,children:[(0,u.jsx)("dt",{className:sE.default.heading,children:"Local Event"}),(0,u.jsxs)("dd",{className:sE.default.content,children:[e.locationDetails?.title,", ",e.locationDetails?.country]}),(0,u.jsx)("dt",{className:sE.default.heading,children:"Challenge"}),(0,u.jsx)("dd",{className:sE.default.content,children:e.challengeDetails?.title}),t.length>0&&(0,u.jsx)("dt",{className:sE.default.heading,children:"Desired Skills & Interests"}),t.length>0&&(0,u.jsx)("dd",{className:sE.default.content,children:t}),s.length>0&&(0,u.jsx)("dt",{className:sE.default.heading,children:"Languages Spoken"}),s.length>0&&(0,u.jsx)("dd",{className:sE.default.content,children:s})]})]})}var sF=e.i(96522),sR=e.i(88941);function sL({team:e,showJoinBadge:t=!1}){let{id:s,title:a,featuredImage:l,meta:i,locationDetails:o,challengeDetails:n,languages:r,desiredSkills:d,canAcceptMembers:c,nominationBadges:m,awardBadges:h}=e,p=m&&m.length>0&&m||void 0;p=h&&h.length>0&&h||p;let _=h&&h.length>0?"award":"bookmark",f=h&&h.length>0?"stroke":"fill",g=r?[...r].sort():[],v=d?[...d].sort():[];return(0,u.jsxs)(sF.Listing,{title:a,image:l,link:i.relativeUrl,children:[p&&(0,u.jsx)("div",{className:sR.default.meta,children:(0,u.jsx)("div",{className:sR.default.badges,children:p.map((e,t)=>(0,u.jsxs)("span",{translate:"no",className:`${sR.default.badge} ${sR.default[f]}`,children:[(0,u.jsx)(ei.Icon,{slug:`spaceapps/${_}`})," ",(0,u.jsx)("span",{translate:"yes",children:e})]},`badge-${s}-${t}`))})}),t&&c&&(0,u.jsx)("div",{className:sR.default.meta,children:(0,u.jsx)("div",{className:sR.default.badges,children:(0,u.jsxs)("span",{className:sR.default.badge,children:[(0,u.jsx)(ei.Icon,{slug:"spaceapps/search"})," Seeking Members"]})})}),o&&(0,u.jsxs)("div",{className:sR.default.meta,children:[(0,u.jsx)("h3",{className:sR.default.label,children:"Location"}
4),(0,u.jsxs)("span",{children:[o.displayName||o.shortName||o.title,","," ",o.country]})]}),n&&(0,u.jsxs)("div",{className:sR.default.meta,children:[(0,u.jsx)("h3",{className:sR.default.label,children:"Challenge"}),(0,u.jsx)("span",{children:n.title})]}),v&&v.length>0&&(0,u.jsxs)("div",{className:sR.default.meta,children:[(0,u.jsx)("h3",{className:sR.default.label,children:"Desired Skills & Interests"}),(0,u.jsx)("div",{className:sR.default.pills,children:v.map((e,t)=>(0,u.jsx)("span",{className:sR.default.pill,children:e},`skill-${t}`))})]}),g&&g.length>0&&(0,u.jsxs)("div",{className:sR.default.meta,children:[(0,u.jsx)("h3",{className:sR.default.label,children:"Languages Spoken"}),(0,u.jsx)("div",{className:sR.default.pills,children:g.map((e,t)=>(0,u.jsx)("span",{className:sR.default.pill,children:e},`${e}-j`))})]})]})}var sP=e.i(71352),sA=e.i(22200);function sD({page:e}){return(0,u.jsxs)("div",{className:sA.default.container,children:[(0,u.jsx)("div",{className:sA.default.awards,children:e.awardBadges&&e.awardBadges.map((e,t)=>(0,u.jsx)(sP.Award,{text:e,icon:"award"},`award-${t}`))}),(0,u.jsx)("div",{className:sA.default.badges,children:e.nominationBadges&&e.nominationBadges.map((e,t)=>(0,u.jsx)(P.Badge,{label:e,icon:"spaceapps/bookmark"},`badge-${t}`))})]})}var sq=e.i(66709);function sM({contentFormId:e,onSave:t,onSubmit:s,onPreview:a,onPublish:l,editLevel:i,editorAlerts:o,confirmationMsg:n,showControls:r,showUnsavedMsg:d,hideFormOnSubmitSuccess:c,lookupFilters:h,fieldChoicesOverrides:p,customActions:_}){let{data:f,loading:g,error:v}=(0,w.useQuery)(k.ContentTypeFormDocument,{variables:{id:e}}),x=f?.contentTypeForm,j=(e,t,s)=>{let a=y(),l=e.value.fields.filter(e=>(0,T.isFormFieldActive)(e,a)).map(e=>{let t=p?.find(t=>t.cleanName===e.cleanName);return t?{...e,choices:t.choices}:e});return 0===l.length?null:(0,u.jsx)($.FieldGroup,{children:l.map((e,a)=>(0,u.jsxs)(m.Fragment,{children:[(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0,shouldUnregister:!0},filters:h?.[e.cleanName]}),e.meta?.showConfirmation&&(0,u.jsx)(ti,{field:{...e,label:`${T.CONFIRM_LABEL} ${e.label}`,cleanName:`${e.cleanName}_${T.CONFIRM_KEYWORD}`},regOptions:{required:`${e.label} is required`,shouldUnregister:!0},filters:h?.[e.cleanName]})]},`field-${s}-${t}-${a}`))},`field-row-${s}-${t}`)},{handleSubmit:b,watch:y,trigger:E,clearErrors:S,formState:{isLoading:L,isSubmitting:G,
4isSubmitSuccessful:O,isDirty:I,errors:U}}=(0,C.useFormContext)(),B=g||L,W=c&&O;return(0,u.jsxs)("div",{className:sq.default.container,children:[(0,u.jsxs)("div",{className:sq.default.toasts,children:[O&&n&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:n})}),I&&d&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ALERT,children:"Save or Submit to keep your progress"}),o,U?.root&&U.root?.message&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:U.root.message})]}),B&&(0,u.jsx)(F.Loader,{}),!B&&!v&&!x&&(0,u.jsx)(A.ErrorResponse,{status:404}),!B&&v&&(0,u.jsx)(A.ErrorResponse,{children:JSON.stringify(v)}),!B&&x&&!W&&(0,u.jsxs)("form",{children:[(0,u.jsxs)(z.Accordion,{showExpandCollapse:!1,children:[x.fields.map((e,t)=>(0,u.jsx)(m.Fragment,{children:e.value.map((e,t)=>{let s=e.__typename;if("FormPanelBlock"===s){let s,a,l,i,o,n;return a=(s=(0,T.getFormFields)([e])).filter(e=>e.required&&e.required>2),l=Object.keys(U),i=(0,T.getFieldNames)(a).some(e=>!y(e)),o=(0,T.getFieldNames)(s).some(e=>l.includes(e)),n=(0,u.jsxs)(u.Fragment,{children:[e.value.title,(0,u.jsx)(P.Badge,{label:o||i?"Incomplete":"Complete",exClassName:sq.default.status,icon:o||i?void 0:"spaceapps/check",type:o?D.StyleTheme.IMPORTANT:i?D.StyleTheme.SECONDARY:D.StyleTheme.PRIMARY})]}),(0,u.jsx)(z.AccordionItem,{header:n,defaultOpen:!0,children:e.value.fields?.map((e,s)=>j(e,s,t))},`field-panel-${t}`)}return"FormRowBlock"===s?j(e,t):null})},`form-fields-${t}`)),x.useRecaptcha&&(0,u.jsx)(ti,{field:{cleanName:"recaptcha",fieldType:k.FieldTypes.Recaptcha,required:1}})]}),r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:sq.default["flex-actions"],children:[5===i&&l&&(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/meteor",size:"sm",disabled:G,loading:G,onClick:async()=>{S(),await E()&&b(l)()},children:x.publishLabel||"Publish"}),4===i&&s&&(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/meteor",size:"sm",disabled:G,loading:G,onClick:async()=>{S(),await E()&&b(s)()},children:x.moderationLabel||"Submit"}),a&&(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/eye",size:"sm",disabled:i<2||G,loading:G,onClick:async()=>{S(),await E()&&b(a)()},children:i>=2?x.previewLabel||"Preview":"Editing Disabled"}),t&&(0,u.jsx)(R.Button,{theme:"primary",icon:"spaceapps/edit",size:"sm",disabled:i<2||G,loading:G,onClick:async()=>{S(),await E()&&b(t)()},children:i>=2?x.saveLabel||"Save":"Editing Disabled"}),_]}),U&&(0,u.jsx)(tU,{errors:U})]})]})]})}let s$=sM;var sz=e.i(93775);function sG({isModal:e=!1}){let[t,s]=(0,m.useState)(),{addToast:a}=(0,S.useToasts)(),{data:l,loading:i}=(0,w.useQuery)(k.SiteByHostnameDocument),{data:o,loading:n}=(0,w.useQuery)(k.PageDocument,{skip:l?.siteByHostname.siteSettings?.sitePages===void 0,variables:{input:l?.siteByHostname?.siteSettings?.sitePages?.signUpPage}}),{createAccountForm:r,signInLabel:d}=o?.page||{},{data:c,loading:h}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!r,variables:{id:r}}),p=c?.contentTypeForm,_=p?.fields?(0,T.getFormFields)(p?.fields):[],{data:f,refetch:g}=(0,w.useQuery)(k.ViewerDocument),v=f?.viewer?.user,x=(0,C.useForm)({mode:"onBlur"}),{setError:j,formState:{errors:b,isSubmitting:P}}=x,[A,{data:D,loading:q}]=y(k.CreateUserDocument),{siteFlags:M}=l?.siteByHostname.siteSettings||{},$=M?.enableSignUp,{openModalHandler:z}=(0,E.useModal)();if(!M?.enableSignUp)return null;let G=()=>{z({title:"Login to Space Apps",content:(0,u.jsx)(sp,{isModal:!0})})},O=async e=>{if(s(void 0),!$)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let t={email:"",fullName:"",password:"",username:"",...(0,T.normalizeSubmitFields)(e,[])};return!t||Object.keys(t).length<=0?[null,[{name:"root",error:{type:"400",message:"Input not found."}}]]:[t,[]]},I=async e=>{let[t,l]=await O(e),i=[...l,...(0,T.validateRequiredFields)(_,e,1,"required to save")];if(i.length)return void i.forEach(({name:e,error:t})=>{j(e,t)});if(t)try{let{errors:l}=await A({variables:{input:t}});l?(0,T.gqlErrorsToFormErrors)(l,e).forEach(({name:e,error:t})=>{j(e,t)}):(a(N.ToastTypes.SUCCESS,p?.saveConfirmation||"Account created successfully."),s(p?.saveConfirmation||"Account created successfully."),await g(),G())}catch(e){j("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},U=i||h||q||n||P,B=p&&!v&&$;return(0,u.jsx)("div",{className:`${sz.default.container} ${e?sz.default.modal:""}`,children:(0,u.jsxs)(C.FormProvider,{...x,children:[U&&(0,u.jsx)(F.Loader,{}),!U&&B&&(0,u.jsx)(sM,{contentFormId:p?.id,onSave:I,editLevel:2,confirmationMsg:t,showControls:!0,showUnsavedMsg:!1,customActions:e?(0,u.jsx)(R.Button,{theme:"transparent",onClick:G,children:d||"Sign In"}):(0,u.jsx)(L.Link,{href:"/login",children:d})}),!U&&!B&&(0,u.jsxs)("div",{className:sz.default.content,children:[(0,u.jsxs)("p",{children:["You are already logged in as ",v?.username,"."]}),(0,u.jsx)(L.Link,{appearance:"button",size:"sm",href:"/profile",children:"View My Profile"})]})]})})}let sO=sG;e.s(["ResetPasswordForm",()=>sU,"default",()=>sB],27030);var sI=e.i(36831);function sU({isModal:e=!1,id:t,token:s}){let{data:a,loading:l}=(0,w.useQuery)(k.SiteFormSettingsDocument),i=a?.siteByHostname.formSettings.resetPasswordForm,{closeModalHandler:o}=(0,E.useModal)(),{addToast:n}=(0,S.useToasts)(),r=(0,C.useForm)(),{formState:{isSubmitting:d,isSubmitSuccessful:c},handleSubmit:m}=r,[h,{error:p,loading:_}]=y(k.ResetPasswordDocument),f=async e=>{let{data:a,errors:l}=await h({variables:{input:{id:t,token:s,password:e.password,confirmPassword:e.confirm_password}}});a&&!l&&(n(N.ToastTypes.SUCCESS,i?.confirmation||"Your password has successfully been reset"),o())},g="Error: ";if(p)if(p?.message)if("Token has expired"===p.message)g+="The reset token has expired, please request a new one.";else try{g+=JSON.parse(p.message).error}catch(e){g+=p.message}else g="An error occurred while attempting this action, please try again or c
4ontact an administrator.";let v=l||_,x=e&&i?.modelContent||i?.pageContent;return(0,u.jsxs)("div",{className:sI.default.container,children:[e&&(0,u.jsx)(sa.ModalTitle,{title:i?.formTitle||"Reset Password"}),v&&(0,u.jsx)(F.Loader,{}),c&&!v&&!p&&!e&&(0,u.jsx)(eU.FormSuccess,{children:(0,u.jsx)(q.HtmlContainer,{html:i?.confirmation||"Your password has successfully been reset"})}),p&&(0,u.jsx)(se.FormError,{children:g}),(!c||c&&p)&&(0,u.jsxs)(C.FormProvider,{...r,children:[x&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:x})}),(0,u.jsxs)("form",{onSubmit:m(f),children:[i?.fields&&i.fields.map((e,t)=>(0,u.jsxs)($.FieldGroup,{children:[(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0}},`field-${t}`),e.meta?.showConfirmation&&(0,u.jsx)(ti,{field:{...e,label:`Confirm ${e.label}`,cleanName:`confirm_${e.cleanName}`},regOptions:{required:`${e.label} is required`}},`field-confirm-${t}`)]},`field-row-${t}`)),(0,u.jsx)(eB.FormActions,{disabled:d,submitText:i?.submitLabel||"Change Password"})]})]})]})}let sB=sU;e.s(["AccountProfile",()=>a5,"default",()=>a4],54900);let sW="printWindow";function sH({level:e="error",messages:t,suppressErrors:s=!1}){s||("error"===e?console.error(t):"warning"===e?console.warn(t):console.debug(t))}function sQ(e,t){if(t||!e){let e=document.getElementById(sW);e&&document.body.removeChild(e)}}function sV(e){return e instanceof Error?e:Error("Unknown Error")}function sY(e,t){let{documentTitle:s,onAfterPrint:a,onPrintError:l,preserveAfterPrint:i,print:o,suppressErrors:n}=t;setTimeout(()=>{if(e.contentWindow){let t=function(){a?.(),sQ(i)};if(e.contentWindow.focus(),o)o(e).then(t).catch(e=>{l?l("print",sV(e)):sH({messages:["An error was thrown by the specified `print` function"],suppressErrors:n})});else{if(e.contentWindow.print){let t=e.contentDocument?.title??"",a=e.ownerDocument.title,l="function"==typeof s?s():s;l&&(e.ownerDocument.title=l,e.contentDocument&&(e.contentDocument.title=l)),e.contentWindow.print(),l&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=t))}else sH({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:n});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>(navigator.userAgent??navigator.vendor??("opera"in window&&window.opera)).match(e))?setTimeout(t,500):t()}}else sH({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:n})},500)}function sJ(e){let t=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),a=s.nextNode();for(;a;)t.push(a),a=s.nextNode();return t}let sK=` 5 @page { 6 /* Remove browser default header (title) and footer (url) */ 7 margin: 0; 8 } 9 @media print { 10 body { 11 /* Tell browsers to print background colors */ 12 color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */ 13 print-color-adjust: exact; /* Firefox/Safari */ 14 -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */ 15 } 16 } 17`,sX="[modern-screenshot]",sZ="u">typeof window,s0=sZ&&"Worker"in window,s1=sZ&&"atob"in window,s2=sZ&&"btoa"in window,s5=sZ?window.navigator?.userAgent:"",s4=s5.includes("Chrome"),s3=s5.includes("AppleWebKit")&&!s4,s6=s5.includes("Firefox"),s8=e=>1===e.nodeType,s9=e=>s8(e)&&void 0!==e.style&&"object"!=typeof e.className,s7=e=>8===e.nodeType,ae=e=>"SLOT"===e.tagName;function at(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(sZ&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!sZ)return e;let s=as().implementation.createHTMLDocument(),a=s.createElement("base"),l=s.createElement("a");return s.head.appendChild(a),s.body.appendChild(l),t&&(a.href=t),l.href=e,l.href}function as(e){return(e&&s8(e)?e?.ownerDocument:e)??window.document}let aa="http://www.w3.org/2000/svg",al=e=>{var t;return t="dataUrl",new Promise((s,a)=>{let l=new FileReader;l.onload=()=>s(l.result),l.onerror=()=>a(l.error),l.onabort=()=>a(Error(`Failed read blob to ${t}
17`)),l.readAsDataURL(e)})};function ai(e,t){let s=as(t).createElement("img");return s.decoding="sync",s.loading="eager",s.src=e,s}function ao(e,t){return new Promise(s=>{let{timeout:a,ownerDocument:l,onError:i,onWarn:o}=t??{},n="string"==typeof e?ai(e,as(l)):e,r=null,d=null;function c(){s(n),r&&clearTimeout(r),d?.()}if(a&&(r=setTimeout(c,a)),"VIDEO"===n.tagName){let e=n.currentSrc||n.src;if(!e)return n.poster?ao(n.poster,t).then(s):c();if(n.readyState>=2)return c();let a=t=>{o?.("Failed video load",e,t),i?.(t),c()};d=()=>{n.removeEventListener("loadeddata",c),n.removeEventListener("error",a)},n.addEventListener("loadeddata",c,{once:!0}),n.addEventListener("error",a,{once:!0})}else{let e="image"===n.tagName?n.href.baseVal:n.currentSrc||n.src;if(!e)return c();let t=async()=>{if("IMG"===n.tagName&&"decode"in n)try{await n.decode()}catch(t){o?.("Failed to decode image, trying to render anyway",n.dataset.originalSrc||e,t)}c()},s=t=>{o?.("Failed image load",n.dataset.originalSrc||e,t),c()};if("IMG"===n.tagName&&n.complete)return t();d=()=>{n.removeEventListener("load",t),n.removeEventListener("error",s)},n.addEventListener("load",t,{once:!0}),n.addEventListener("error",s,{once:!0})}})}async function an(e,t){s9(e)&&("IMG"===e.tagName||"VIDEO"===e.tagName?await ao(e,t):await Promise.all(["img","video"].flatMap(s=>Array.from(e.querySelectorAll(s)).map(e=>ao(e,t)))))}let ar=(s=0,()=>(s+=1,`u${`0000${(1679616*Math.random()|0).toString(36)}`.slice(-4)}${s}`));function ad(e){return e?.split(",").map(e=>e.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}let ac=0;async function au(e,t){return e&&"__CONTEXT__"in e?e:am(e,{...t,autoDestruct:!0})}async function am(e,t){let s,a,{scale:l=1,workerUrl:i,workerNumber:o=1}=t||{},n=!!t?.debug,r=t?.features??!0,d=e.ownerDocument??(sZ?window.document:void 0),c=e.ownerDocument?.defaultView??(sZ?window:void 0),u=new Map,m={width:0,height:0,quality:1,type:"image/png",scale:l,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:n,fetch:{requestInit:{cache:t?.fetch?.bypassingCache?"no-cache":"force-cache"},placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...t?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:o,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...t,__CONTEXT__:!0,log:(s=`${sX}[#${ac}]`,ac++,{time:e=>n&&console.time(`${s} ${e}`),timeEnd:e=>
17n&&console.timeEnd(`${s} ${e}`),warn:(...e)=>n&&((...e)=>console.warn(sX,...e))(...e)}),node:e,ownerDocument:d,ownerWindow:c,dpi:1===l?null:96*l,svgStyleElement:ah(d),svgDefsElement:d?.createElementNS(aa,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:s0&&i&&o?o:0})].map(()=>{try{let e=new Worker(i);return e.onmessage=async e=>{let{url:t,result:s}=e.data;s?u.get(t)?.resolve?.(s):u.get(t)?.reject?.(Error(`Error receiving message from worker: ${t}`))},e.onmessageerror=e=>{let{url:t}=e.data;u.get(t)?.reject?.(Error(`Error receiving message from worker: ${t}`))},e}catch(e){return m.log.warn("Failed to new Worker",e),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[((a=d?.createElement?.("canvas"))&&(a.height=a.width=1),!!a&&"toDataURL"in a&&!!a.toDataURL("image/webp").includes("image/webp")&&"image/webp"),"image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:u,drawImageCount:0,tasks:[],features:r,isEnable:e=>"restoreScrollPosition"===e?"boolean"!=typeof r&&(r[e]??!1):"boolean"==typeof r?r:r[e]??!0,shadowRoots:[]};m.log.time("wait until load"),await an(e,{timeout:m.timeout,onWarn:m.log.warn}),m.log.timeEnd("wait until load");let{width:h,height:p}=function(e,t){let{width:s,height:a}=t;if(s8(e)&&(!s||!a)){let t=e.getBoundingClientRect();s=s||t.width||Number(e.getAttribute("width"))||0,a=a||t.height||Number(e.getAttribute("height"))||0}return{width:s,height:a}}(e,m);return m.width=h,m.height=p,m}function ah(e){if(!e)return;let t=e.createElement("style"),s=t.ownerDocument.createTextNode(` 18.______background-clip--text { 19 background-clip: text; 20 -webkit-background-clip: text; 21} 22`);return t.appendChild(s),t}async function ap(e,t){let{log:s,timeout:a,drawImageCount:l,drawImageInterval:i}=t;s.time("image to canvas");let o=await ao(e,{timeout:a,onWarn:t.log.warn}),{canvas:n,context2d:r}=function(e,t){let{width:s,height:a,scale:l,backgroundColor:i,maximumCanvasSize:o}=t,n=e.createElement("canvas");n.width=Math.floor(s*l),n.height=Math.floor(a*l),n.style.width=`${s}px`,n.style.height=`${a}px`,o&&(n.width>o||n.height>o)&&(n.width>o&&n.height>o?n.width>n.height?(n.height*=o/n.width,n.width=o):(n.width*=o/n.height,n.height=o):n.width>o?(n.height*=o/n.width,n.width=o):(n.width*=o/n.height,n.height=o));let r=n.getContext("2d");return r&&i&&(r.fillStyle=i,r.fillRect(0,0,n.width,n.height)),{canvas:n,context2d:r}}(e.ownerDocument,t),d=()=>{try{r?.drawImage(o,0,0,n.width,n.height)}catch(e){t.log.warn("Failed to drawImage",e)}};if(d(),t.isEnable("fixSvgXmlDecode"))for(let e=0;e<l;e++)await new Promise(t=>{setTimeout(()=>{r?.clearRect(0,0,n.width,n.height),d(),t()},e+i)});return t.drawImageCount=0,s.timeEnd("image to canvas"),n}function a_(e,t){if(e.ownerDocument)try{let t=e.toDataURL();if("data:,"!==t)return ai(t,e.ownerDocument)}catch(e){t.log.warn("Failed to clone canvas",e)}let s=e.cloneNode(!1),a=e.getContext("2d"),l=s.getContext("2d");try{a&&l&&l.putImageData(a.getImageData(0,0,e.width,e.height),0,0)}catch(e){t.log.warn("Failed to clone canvas",e)}return s}async function af(e,t){if(e.ownerDocument&&!e.currentSrc&&e.poster)return ai(e.poster,e.ownerDocument);let s=e.cloneNode(!1);s.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(s.src=e.currentSrc);let a=s.ownerDocument;if(a){let l=!0;if(await ao(s,{onError:()=>l=!1,onWarn:t.log.warn}),!l)return e.poster?ai(e.poster,e.ownerDocument):s;s.currentTime=e.currentTime,await new Promise(e=>{s.addEventListener("seeked",e,{once:!0})});let i=a.createElement("canvas");i.width=e.offsetWidth,i.height=e.offsetHeight;try{let e=i.getContext("2d");e&&e.drawImage(s,0,0,i.width,i.height)}catch(a){if(t.log.warn("Failed to clone video",a),e.poster)return ai(e.poster,e.ownerDocument);return s}return a_(i,t)}return s}let ag=["width","height","-webkit-text-fill-color"],av=["stroke","fill"];function ax(e,t,s){let a,l,{defaultComputedStyles:i}=s,o=e.nodeName.toLowerCase(),n="object"==typeof e.className&&"svg"!==o,r=n?av.map(t=>[t,e.getAttribute(t)]).filter(([,e])=>null!==e):[],d=[n&&"svg",o,r.map((e,t)=>`${e}=${t}
22`).join(","),t].filter(Boolean).join(":");if(i.has(d))return i.get(d);let c=function(e){let t=e.sandbox;if(!t){let{ownerDocument:s}=e;try{s&&((t=s.createElement("iframe")).id=`__SANDBOX__${ar()}`,t.width="0",t.height="0",t.style.visibility="hidden",t.style.position="fixed",s.body.appendChild(t),t.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',e.sandbox=t)}catch(t){e.log.warn("Failed to getSandBox",t)}}return t}(s),u=c?.contentWindow;if(!u)return new Map;let m=u?.document;n?(l=(a=m.createElementNS(aa,"svg")).ownerDocument.createElementNS(a.namespaceURI,o),r.forEach(([e,t])=>{l.setAttributeNS(null,e,t)}),a.appendChild(l)):a=l=m.createElement(o),l.textContent=" ",m.body.appendChild(a);let h=u.getComputedStyle(l,t),p=new Map;for(let e=h.length,t=0;t<e;t++){let e=h.item(t);ag.includes(e)||p.set(e,h.getPropertyValue(e))}return m.body.removeChild(a),i.set(d,p),p}function aj(e,t,s){let a=new Map,l=[],i=new Map;if(s)for(let e of s)o(e);else for(let t=e.length,s=0;s<t;s++)o(e.item(s));for(let e=l.length,t=0;t<e;t++)i.get(l[t])?.forEach((e,t)=>a.set(t,e));function o(s){let o=e.getPropertyValue(s),n=e.getPropertyPriority(s),r=s.lastIndexOf("-"),d=r>-1?s.substring(0,r):void 0;if(d){let e=i.get(d);e||(e=new Map,i.set(d,e)),e.set(s,[o,n])}(t.get(s)!==o||n)&&(d?l.push(d):a.set(s,[o,n]))}return a}let ab=["::before","::after"],ay=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"],aw=new Set(["symbol"]);async function aC(e,t,s,a,l){if(s8(s)&&("STYLE"===s.tagName||"SCRIPT"===s.tagName)||a.filter&&!a.filter(s))return;aw.has(t.nodeName)||aw.has(s.nodeName)?a.currentParentNodeStyle=void 0:a.currentParentNodeStyle=a.currentNodeStyle;let i=await aT(s,a,!1,l);a.isEnable("restoreScrollPosition")&&function(e,t){if(!s9(e)||!s9(t))return;let{scrollTop:s,scrollLeft:a}=e;if(!s&&!a)return;let{transform:l}=t.style,i=new DOMMatrix(l),{a:o,b:n,c:r,d}=i;i.a=1,i.b=0,i.c=0,i.d=1,i.translateSelf(-a,-s),i.a=o,i.b=n,i.c=r,i.d=d,t.style.transform=i.toString()}(e,i),t.appendChild(i)}async function ak(e,t,s,a){let l=e.firstChild;s8(e)&&e.shadowRoot&&(l=e.shadowRoot?.firstChild,s.shadowRoots.push(e.shadowRoot));for(let i=l;i;i=i.nextSibling)if(!s7(i))if(s8(i)&&ae(i)&&"function"==typeof i.assignedNodes){let l=i.assignedNodes();for(let i=0;i<l.length;i++)await aC(e,t,l[i],s,a)}else await aC(e,t,i,s,a)}let aN=/^[\w-:]+$/;async function aT(e,t,s=!1,a){let{ownerDocument:l,ownerWindow:i,fontFamilies:o,onCloneEachNode:n}=t;if(l&&3===e.nodeType)return a&&/\S/.test(e.data)&&a(e.data),l.createTextNode(e.data);if(l&&i&&s8(e)&&(s9(e)||"object"==typeof e.className)){let a=await function(e,t){if("CANVAS"===e.tagName)return a_(e,t);if("IFRAME"===e.tagName){try{if(e?.contentDocument?.body)return aT(e.contentDocument.body,t)}catch(e){t.log.warn("Failed to clone iframe",e)}return e.cloneNode(!1)}if("IMG"===e.tagName){let t;return t=e.cloneNode(!1),e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager"),t}return"VIDEO"===e.tagName?af(e,t):e.cloneNode(!1)}(e,t);if(t.isEnable("removeAbnormalAttributes")){let e=a.getAttributeNames();for(let t=e.length,s=0;s<t;s++){let t=e[s];aN.test(t)||a.removeAttribute(t)}}let l=t.currentNodeStyle=function(e,t,s,a){let{ownerWindow:l,includeStyleProperties:i,currentParentNodeStyle:o}=a,n=t.style,r=l.getComputedStyle(e),d=ax(e,null,a);o?.forEach((e,t)=>{d.delete(t)});let c=aj(r,d,i);c.delete("transition-property"),c.delete("all"),c.delete("d"),c.delete("content"),s&&(c.delete("margin-top"),c.delete("margin-right"),c.delete("margin-bottom"),c.delete("margin-left"),c.delete("margin-block-start"),c.delete("margin-block-end"),c.delete("margin-inline-start"),c.delete("margin-inline-end"),c.set("box-sizing",["border-box",""])),c.get("background-clip")?.[0]==="text"&&t.classList.add("______background-clip--text"),s4&&(c.has("font-kerning")||c.set("font-kerning",["normal",""]),(c.get("overflow-x")?.[0]==="hidden"||c.get("overflow-y")?.[0]==="hidden")&&c.get("text-overflow")?.[0]==="ellipsis"&&e.scrollWidth===e.clientWidth&&c.set("text-overflow",["clip",""]));for(let e=n.length,t=0;t<e;t++)n.removeProperty(n.item(t));
22return c.forEach(([e,t],s)=>{n.setProperty(s,e,t)}),c}(e,a,s,t);s&&function(e,t){let{backgroundColor:s,width:a,height:l,style:i}=t,o=e.style;if(s&&o.setProperty("background-color",s,"important"),a&&o.setProperty("width",`${a}px`,"important"),l&&o.setProperty("height",`${l}px`,"important"),i)for(let e in i)o[e]=i[e]}(a,t);let i=!1;if(t.isEnable("copyScrollbar")){let t=[l.get("overflow-x")?.[0],l.get("overflow-y")?.[0]];i=t.includes("scroll")||(t.includes("auto")||t.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}let r=l.get("text-transform")?.[0],d=ad(l.get("font-family")?.[0]),c=d?e=>{"uppercase"===r?e=e.toUpperCase():"lowercase"===r?e=e.toLowerCase():"capitalize"===r&&(e=e[0].toUpperCase()+e.substring(1)),d.forEach(t=>{let s=o.get(t);s||o.set(t,s=new Set),e.split("").forEach(e=>s.add(e))})}:void 0;return!function(e,t,s,a,l){let{ownerWindow:i,svgStyleElement:o,svgStyles:n,currentNodeStyle:r}=a;function d(s){let o=i.getComputedStyle(e,s),d=o.getPropertyValue("content");if(!d||"none"===d)return;l?.(d),d=d.replace(/(')|(")|(counter\(.+\))/g,"");let c=[ar()],u=ax(e,s,a);r?.forEach((e,t)=>{u.delete(t)});let m=aj(o,u,a.includeStyleProperties);m.delete("content"),m.delete("-webkit-locale"),m.get("background-clip")?.[0]==="text"&&t.classList.add("______background-clip--text");let h=[`content: '${d}';`];if(m.forEach(([e,t],s)=>{h.push(`${s}: ${e}${t?" !important":""};`)}),1===h.length)return;try{t.className=[t.className,...c].join(" ")}catch(e){a.log.warn("Failed to copyPseudoClass",e);return}let p=h.join("\n "),_=n.get(p);_||(_=[],n.set(p,_)),_.push(`.${c[0]}${s}`)}o&&i&&(ab.forEach(d),s&&ay.forEach(d))}(e,a,i,t,c),("TEXTAREA"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName)&&a.setAttribute("value",e.value),"VIDEO"!==e.tagName&&await ak(e,a,t,c),await n?.(a),a}let r=e.cloneNode(!1);return await ak(e,r,t),await n?.(r),r}function aE(e,t){let{url:s,requestType:a="text",responseType:l="text",imageDom:i}=t,o=s,{timeout:n,acceptOfImage:r,requests:d,fetchFn:c,fetch:{requestInit:u,bypassingCache:m,placeholderImage:h},font:p,workers:_,fontFamilies:f}=e;"image"===a&&(s3||s6)&&e.drawImageCount++;let g=d.get(s);if(!g){m&&m instanceof RegExp&&m.test(o)&&(o+=(/\?/.test(o)?"&":"?")+new Date().getTime());let t=a.startsWith("font")&&p&&p.minify,v=new Set;t&&a.split(";")[1].split(",").forEach(e=>{f.has(e)&&f.get(e).forEach(e=>v.add(e))});let x=t&&v.size,j={url:o,timeout:n,responseType:x?"arrayBuffer":l,headers:"image"===a?{accept:r}:void 0,...u};(g={type:a,resolve:void 0,reject:void 0,response:null}).response=(async()=>{if(c&&"image"===a){let e=await c(s);if(e)return e}return!s3&&s.startsWith("http")&&_.length?new Promise((e,t)=>{_[d.size&_.length-1].postMessage({rawUrl:s,...j}),g.resolve=e,g.reject=t}):function(e){let{url:t,timeout:s,responseType:a,...l}=e,i=new AbortController,o=s?setTimeout(()=>i.abort(),s):void 0;return fetch(t,{signal:i.signal,...l}).then(e=>{if(!e.ok)throw Error("Failed fetch, not 2xx response",{cause:e});switch(a){case"arrayBuffer":return e.arrayBuffer();case"dataUrl":return e.blob().then(al);default:return e.text()}}).finally(()=>clearTimeout(o))}(j)})().catch(t=>{if(d.delete(s),"image"===a&&h)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",o),"string"==typeof h?h:h(i);throw t}),d.set(s,g)}return g.response}async function aS(e,t,s,a){var l,i;let o;if(!aF(e))return e;for(let[n,r]of(l=e,i=t,o=[],l.replace(aR,(e,t,s)=>(o.push([s,at(s,i)]),e)),o.filter(([e])=>!e.startsWith("data:"))))try{let t=await aE(s,{url:r,requestType:a?"image":"text",responseType:"dataUrl"});e=e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(n),`$1${t}$3`)}catch(e){s.log.warn("Failed to fetch css data url",n,e)}return e}function aF(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}let aR=/url\((['"]?)([^'"]+?)\1\)/g,aL=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];async function aP(e,t){let{ownerDocument:s,svgStyleElement:a,fontFamilies:l,fontCssTexts:i,tasks:o,font:n}=t;if(s&&a&&l.size)if(n&&n.cssText){let e=a$(n.cssText,t);a.appendChild(s.createTextNode(`${e} 23`))}else{let e=Array.from(s.styleSheets).filter(e=>{try{return"cssRules"in e&&!!e.cssRules.length}catch(s){return t.log.warn(`Error while reading CSS rules from ${e.href}`,s),!1}});await Promise.all(e.flatMap(e=>Array.from(e.cssRules).map(async(s,a)=>
23{if("CSSImportRule"===s.constructor.name){let l=a+1,i=s.href,o="";try{o=await aE(t,{url:i,requestType:"text",responseType:"text"})}catch(e){t.log.warn(`Error fetch remote css import from ${i}`,e)}for(let s of function(e){if(null==e)return[];let t=[],s=e.replace(aA,"");for(;;){let e=aD.exec(s);if(!e)break;t.push(e[0])}s=s.replace(aD,"");let a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=a.exec(s);if(e)l.lastIndex=a.lastIndex;else if(e=l.exec(s))a.lastIndex=l.lastIndex;else break;t.push(e[0])}return t}(o.replace(aR,(e,t,s)=>e.replace(s,at(s,i)))))try{e.insertRule(s,s.startsWith("@import")?l+=1:e.cssRules.length)}catch(e){t.log.warn("Error inserting rule from remote css import",{rule:s,error:e})}}}))),e.flatMap(e=>Array.from(e.cssRules)).filter(e=>"CSSFontFaceRule"===e.constructor.name&&aF(e.style.getPropertyValue("src"))&&ad(e.style.getPropertyValue("font-family"))?.some(e=>l.has(e))).forEach(e=>{let l=i.get(e.cssText);l?a.appendChild(s.createTextNode(`${l} 24`)):o.push(aS(e.cssText,e.parentStyleSheet?e.parentStyleSheet.href:null,t).then(l=>{l=a$(l,t),i.set(e.cssText,l),a.appendChild(s.createTextNode(`${l} 25`))}))})}}let aA=/(\/\*[\s\S]*?\*\/)/g,aD=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi,aq=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,aM=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function a$(e,t){let{font:s}=t,a=s?s?.preferredFormat:void 0;return a?e.replace(aM,e=>{for(;;){let[t,,s]=aq.exec(e)||[];if(!s)return"";if(s===a)return`src: ${t};`}}):e}async function az(e,t){let s=await au(e,t);if(s8(s.node)&&"object"==typeof s.node.className)return s.node;let{ownerDocument:a,log:l,tasks:i,svgStyleElement:o,svgDefsElement:n,svgStyles:r,font:d,progress:c,autoDestruct:u,onCloneNode:m,onEmbedNode:h,onCreateForeignObjectSvg:p}=s;l.time("clone node");let _=await aT(s.node,s,!0);if(o&&a){let e="";r.forEach((t,s)=>{e+=`${t.join(",\n")} { 26 ${s} 27} 28`}),o.appendChild(a.createTextNode(e))}l.timeEnd("clone node"),await m?.(_),!1!==d&&s8(_)&&(l.time("embed web font"),await aP(_,s),l.timeEnd("embed web font")),l.time("embed node"),function e(t,s){var a;let{tasks:l}=s;s8(t)&&(("IMG"===t.tagName||"image"===t.tagName)&&l.push(...function(e,t){if("IMG"===e.tagName){let s=e.currentSrc||e.src;if(!s.startsWith("data:"))return[aE(t,{url:s,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(t=>{t&&(e.srcset="",e.dataset.originalSrc=s,e.src=t||"")})];(s3||s6)&&t.drawImageCount++}else if("object"==typeof e.className&&!e.href.baseVal.startsWith("data:")){let s=e.href.baseVal;return[aE(t,{url:s,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(t=>{t&&(e.dataset.originalSrc=s,e.href.baseVal=t||"")})]}return[]}(t,s)),"use"===t.tagName&&l.push(...function(e,t){let{ownerDocument:s,svgDefsElement:a}=t,l=e.getAttribute("href")??e.getAttribute("xlink:href");if(!l)return[];let[i,o]=l.split("#");if(o){let l=`#${o}`,n=t.shadowRoots.reduce((e,t)=>e??t.querySelector(`svg ${l}`),s?.querySelector(`svg ${l}`));if(i&&e.setAttribute("href",l),a?.querySelector(l))return[];if(n)a?.appendChild(n.cloneNode(!0));else if(i)return[aE(t,{url:i,responseType:"text"}).then(e=>{a?.insertAdjacentHTML("beforeend",e)})]}return[]}(t,s))),s9(t)&&l.push(...(a=t.style,aL.map(e=>{let t=a.getPropertyValue(e);
28return t&&"none"!==t?((s3||s6)&&s.drawImageCount++,aS(t,null,s,!0).then(s=>{s&&t!==s&&a.setProperty(e,s,a.getPropertyPriority(e))})):null}).filter(Boolean))),t.childNodes.forEach(t=>{e(t,s)})}(_,s);let f=i.length,g=0,v=async()=>{for(;;){let e=i.pop();if(!e)break;try{await e}catch(e){s.log.warn("Failed to run task",e)}c?.(++g,f)}};c?.(g,f),await Promise.all([...Array.from({length:4})].map(v)),l.timeEnd("embed node"),await h?.(_);let x=function(e,t){let s,{width:a,height:l}=t,i=((s=as(e.ownerDocument).createElementNS(aa,"svg")).setAttributeNS(null,"width",a.toString()),s.setAttributeNS(null,"height",l.toString()),s.setAttributeNS(null,"viewBox",`0 0 ${a} ${l}`),s),o=i.ownerDocument.createElementNS(i.namespaceURI,"foreignObject");return o.setAttributeNS(null,"x","0%"),o.setAttributeNS(null,"y","0%"),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.append(e),i.appendChild(o),i}(_,s);return n&&x.insertBefore(n,x.children[0]),o&&x.insertBefore(o,x.children[0]),u&&function(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){e.log.warn("Failed to destroyContext",t)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}(s),await p?.(x),x}async function aG(e,t){var s;let a,l=await au(e,t),i=await az(l),o=(s=l.isEnable("removeControlCharacter"),a=new XMLSerializer().serializeToString(i),s&&(a=a.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(a)}`);l.autoDestruct||(l.svgStyleElement=ah(l.ownerDocument),l.svgDefsElement=l.ownerDocument?.createElementNS(aa,"defs"),l.svgStyles.clear());let n=ai(o,i.ownerDocument);return await ap(n,l)}async function aO(e,s){let a=await au(e,s),{log:l,quality:i,type:o,dpi:n}=a,r=await aG(a);l.time("canvas to data url");let d=r.toDataURL(o,i);if(["image/png","image/jpeg"].includes(o)&&n&&s1&&s2){let[e,s]=d.split(","),a=0,l=!1;if("image/png"===o){let e,t=(-1===(e=s.indexOf("AAlwSFlz"))&&(e=s.indexOf("AAAJcEhZ")),-1===e&&(e=s.indexOf("AAAACXBI")),e);t>=0?(a=4*Math.ceil((t+28)/3),l=!0):a=44}else"image/jpeg"===o&&(a=24);let i=s.substring(0,a),r=s.substring(a),c=window.atob(i),u=new Uint8Array(c.length);for(let e=0;e<u.length;e++)u[e]=c.charCodeAt(e);let m="image/png"===o?function(e,s,a=!1){let l=new Uint8Array(13);s*=39.3701,l[0]=112,l[1]=72,l[2]=89,l[3]=115,l[4]=s>>>24,l[5]=s>>>16,l[6]=s>>>8,l[7]=255&s,l[8]=l[4],l[9]=l[5],l[10]=l[6],l[11]=l[7],l[12]=1;let i=function(e){let s=-1;t||(t=function(){let e=new Int32Array(256);for(let t=0;t<256;t++){let s=t;for(let e=0;e<8;e++)s=1&s?0xedb88320^s>>>1:s>>>1;e[t]=s}return e}());for(let a=0;a<e.length;a++)s=t[(s^e[a])&255]^s>>>8;return -1^s}(l),o=new Uint8Array(4);if(o[0]=i>>>24,o[1]=i>>>16,o[2]=i>>>8,o[3]=255&i,a){let t=function(e){let t=e.length-1;for(let s=t;s>=4;s--)if(9===e[s-4]&&112===e[s-3]&&72===e[s-2]&&89===e[s-1]&&115===e[s])return s-3;return 0}(e);return e.set(l,t),e.set(o,t+13),e}{let t=new Uint8Array(4);t[0]=0,t[1]=0,t[2]=0,t[3]=9;let s=new Uint8Array(54);return s.set(e,0),s.set(t,33),s.set(l,37),s.set(o,50),s}}(u,n,l):(u[13]=1,u[14]=n>>8,u[15]=255&n,u[16]=n>>8,u[17]=255&n,u);d=e+","+window.btoa(String.fromCharCode(...m))+r}return l.timeEnd("canvas to data url"),d}async function aI(e,t){return aO(await au(e,{...t,type:"image/jpeg"}))}async function aU(e,t){return aO(await au(e,{...t,type:"image/png"}))}var aB=e.i(70355),aW=e.i(16959);let aH={className:aW.default.className,style:{fontFamily:"'Fira Code', 'Fira Code Fallback'",fontStyle:"normal"}};null!=aW.default.variable&&(aH.variable=aW.default.variable);var aQ=e.i(57278);let aV={className:aQ.default.className,style:{fontFamily:"'Fira Sans', 'Fira Sans Fallback'",fontStyle:"normal"}};null!=aQ.default.variable&&(aV.variable=aQ.default.variable),e.s([],60055),e.i(60055);var aY=e.i(7773);let aJ=({ref:e,event:t,userFullName:s})=>{let a=t?.certificateDetails,l="";t?.startDate&&t?.endDate&&(l=(0,eh.formatDateRange)(t.startDate,t.endDate));let{data:i}=(0,w.useQuery)(k.SiteByHostnameDocument,{skip:!!t?.logo}),o=t?.logo||i?.siteByHostname.siteSettings?.siteLogo,n=e=>e?`${e}?t=${new Date().getTime()}`:"";return(0,u.jsxs)("div",{className:`${aY.default.container} ${aY.default[a?.backgroundType||"dark"]} ${aV.variable}`,ref:e,children:[(0,u.jsxs)("div",{className:aY.default.main,children:[a?.background&&a?.background.rendition&&(0,u.jsx)(I.default,{src:n(a.background.rendition.fullUrl),width:a.background.rendition.width||792,height:a.background.rendition.height||546,alt:a.background.alt||"Certificate Backgroun
28d",className:aY.default.background,priority:!0,crossOrigin:"anonymous"}),(0,u.jsxs)("div",{className:aY.default.content,children:[o&&o.rendition&&(0,u.jsx)("div",{className:aY.default.logo,children:(0,u.jsx)(I.default,{src:n(o.rendition.fullUrl),width:o.rendition.width||180,height:o.rendition.height||67,alt:o.alt||"Event Logo",priority:!0,crossOrigin:"anonymous"})}),(0,u.jsxs)("div",{className:aY.default["middle-text"],children:[a?.title&&(0,u.jsx)("div",{className:aY.default.title,children:a.title}),a?.preText&&(0,u.jsx)("span",{className:aY.default.text,children:a.preText}),s&&(0,u.jsx)("span",{className:aY.default.name,children:s}),a?.postText&&(0,u.jsx)("span",{className:aY.default.text,children:a.postText})]}),(0,u.jsxs)("div",{className:aY.default["bottom-text"],children:[(0,u.jsxs)("div",{className:aY.default.presenter,children:[a?.presenterSignature&&a?.presenterSignature.rendition&&(0,u.jsx)(I.default,{src:n(a.presenterSignature.rendition.fullUrl),width:a.presenterSignature.rendition.width||100,height:a.presenterSignature.rendition.height||56,alt:a.presenterSignature.alt||"Presenter Signature",className:aY.default["presenter-signature"],priority:!0,crossOrigin:"anonymous"}),a?.presenterName&&(0,u.jsx)("span",{className:aY.default["presenter-name"],children:a.presenterName}),a?.presenterTitle&&(0,u.jsx)("span",{className:aY.default["presenter-title"],children:a.presenterTitle})]}),(0,u.jsxs)("div",{className:aY.default.dates,children:[(0,u.jsx)("span",{className:aY.default["dates-label"],children:"Date"}),(0,u.jsx)("span",{className:aY.default["dates-text"],children:l})]})]})]})]}),a?.footer&&(e=>{let{title:t,featuredImage:s,slides:a}=e;return(0,u.jsxs)("div",{className:aY.default.footer,children:[s&&s.rendition&&(0,u.jsxs)("div",{className:aY.default["footer-featured"],children:[(0,u.jsx)(I.default,{width:s.rendition.width||50,height:s.rendition.height||50,src:n(s.rendition.fullUrl),alt:s.alt||"No Alt Found",priority:!0,crossOrigin:"anonymous"}),t&&(0,u.jsx)("span",{className:aY.default["footer-text"],children:t})]}),a&&a.length>0&&(0,u.jsx)("div",{className:aY.default["footer-images"],children:a.map(e=>(e=>{if(e.__typename!==V.StreamBlockTypes.IMAGE||!e.value)return null;let{sizedImage:t}=e.value;return t&&t.rendition&&(0,u.jsx)("div",{children:(0,u.jsx)(I.default,{src:n(t.rendition.fullUrl),width:t.rendition.width||1200,height:t.rendition.height||600,alt:t.alt||"No Alt Found",priority:!0,crossOrigin:"anonymous"})},`certificate-footer-slide-${e.id}`)})(e))})]})})(a.footer)]})};var aK=e.i(10239);function aX({registration:e,locations:t,teams:s,challenges:a,user:l}){let i=(0,m.useRef)(null),{addToast:o}=(0,S.useToasts)(),{event:n}=(0,ek.useEvent)(e.event),r=s?.some(e=>e?.projectDetails?.submittedAt)||!1,d=[],c=[];s?.forEach(e=>{e.awardBadges&&d.push(...e.awardBadges),e.nominationBadges&&c.push(...e.nominationBadges)});let h=function({bodyClass:e,contentRef:t,copyShadowRoots:s,documentTitle:a,fonts:l,ignoreGlobalStyles:i,nonce:o,onAfterPrint:n,onBeforePrint:r,onPrintError:d,pageStyle:c,preserveAfterPrint:u,print:h,printIframeProps:p,suppressErrors:_}){return(0,m.useCallback)(m=>{function f(){let r,f={bodyClass:e,contentRef:t,copyShadowRoots:s,documentTitle:a,fonts:l,ignoreGlobalStyles:i,nonce:o,onAfterPrint:n,onPrintError:d,pageStyle:c,preserveAfterPrint:u,print:h,suppressErrors:_},g=((r=document.createElement("iframe")).width=`${document.documentElement.clientWidth}px`,r.height=`${document.documentElement.clientHeight}px`,r.style.position="absolute",r.style.top=`-${document.documentElement.clientHeight+100}px`,r.style.left=`-${document.documentElement.clientWidth+100}px`,r.id=sW,r.srcdoc="<!DOCTYPE html>",p&&(p.allow&&(r.allow=p.allow),void 0!==p.referrerPolicy&&(r.referrerPolicy=p.referrerPolicy),void 0!==p.sandbox&&(r.sandbox=p.sandbox)),r),v=function(e,t){let{contentRef:s,fonts:a,ignoreGlobalStyles:l,suppressErrors:i}=t,o=function({contentRef:e,optionalContent:t,suppressErrors:s}){return t&&"function"==typeof t?(e&&sH({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}
28),t()):e?e.current:void sH({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:s})}({contentRef:s,optionalContent:e,suppressErrors:i});if(!o)return;let n=o.cloneNode(!0),r=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),d=n.querySelectorAll("img"),c=n.querySelectorAll("video"),u=a?a.length:0,m=(l?0:r.length)+d.length+c.length+u;return{contentNode:o,clonedContentNode:n,clonedImgNodes:d,clonedVideoNodes:c,numResourcesToLoad:m,originalCanvasNodes:o.querySelectorAll("canvas")}}(m,f);v?(g.onload=()=>{!function(e,t,s){let{contentNode:a,clonedContentNode:l,clonedImgNodes:i,clonedVideoNodes:o,numResourcesToLoad:n,originalCanvasNodes:r}=t,{bodyClass:d,fonts:c,ignoreGlobalStyles:u,pageStyle:m,nonce:h,suppressErrors:p,copyShadowRoots:_}=s,f=[],g=[];function v(t,a){f.includes(t)?sH({level:"debug",messages:["Tried to mark a resource that has already been handled",t],suppressErrors:p}):(a?(sH({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...a],suppressErrors:p}),g.push(t)):f.push(t),f.length+g.length===n&&sY(e,s))}e.onload=null;let x=e.contentDocument??e.contentWindow?.document;if(x){let t=x.body.appendChild(l);_&&function e(t,s,a){let l=sJ(t),i=sJ(s);if(l.length!==i.length)return void sH({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",t,s],suppressErrors:a});for(let t=0;t<l.length;t++){let s=l[t],o=i[t],n=s.shadowRoot;if(null!==n){let t=o.attachShadow({mode:n.mode});t.innerHTML=n.innerHTML,e(n,t,a)}}}(a,t,!!p),c&&(e.contentDocument?.fonts&&e.contentWindow?.FontFace?c.forEach(t=>{let s=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});e.contentDocument.fonts.add(s),s.loaded.then(()=>{v(s)}).catch(e=>{v(s,["Failed loading the font:",s,"Load error:",sV(e)])})}):(c.forEach(e=>{v(e)}),sH({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:p})));let s=x.createElement("style");h&&(s.setAttribute("nonce",h),x.head.setAttribute("nonce",h)),s.appendChild(x.createTextNode(m??sK)),x.head.appendChild(s),d&&x.body.classList.add(...d.split(" "));let n=x.querySelectorAll("canvas");for(let e=0;e<r.length;++e){let t=r[e],s=n[e];if(void 0===s){sH({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:p});continue}let a=s.getContext("2d");a&&a.drawImage(t,0,0)}for(let e=0;e<i.length;e++){let t=i[e],s=t.getAttribute("src");if(s){let e=new Image;e.onload=()=>{v(t)},e.onerror=(e,s,a,l,i)=>{v(t,["Error loading <img>",t,"Error",i])},e.src=s}else v(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',t])}for(let e=0;e<o.length;e++){let t=o[e];t.preload="auto";let s=t.getAttribute("poster");if(s){let e=new Image;e.onload=()=>{v(t)},e.onerror=(e,a,l,i,o)=>{v(t,["Error loading video poster",s,"for video",t,"Error:",o])},e.src=s}else t.readyState>=2?v(t):t.src?(t.onloadeddata=()=>{v(t)},t.onerror=(e,s,a,l,i)=>{v(t,["Error loading video",t,"Error",i])},t.onstalled=()=>{v(t,["Loading video stalled, skipping",t])}):v(t,["Error loading video, `src` is empty",t])}let f="select",g=a.querySelectorAll(f),j=x.querySelectorAll(f);for(let e=0;e<g.length;e++)j[e].value=g[e].value;if(!u){let e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let t=0,s=e.length;t<s;++t){let s=e[t];if("style"===s.tagName.toLowerCase()){let e=x.createElement(s.tagName),a=s.sheet;if(a){let l="";try{let e=a.cssRules.length;for(let t=0;t<e;++t)"string"==typeof a.cssRules[t].cssText&&(l+=`${a.cssRules[t].cssText}\r 29`)}catch(e){sH({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",s,`Original error: ${sV(e).message}`],level:"warning"})}
29e.setAttribute("id",`react-to-print-${t}`),h&&e.setAttribute("nonce",h),e.appendChild(x.createTextNode(l)),x.head.appendChild(e)}}else if(s.getAttribute("href"))if(s.hasAttribute("disabled"))sH({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",s],level:"warning"}),v(s);else{let e=x.createElement(s.tagName);for(let t=0,a=s.attributes.length;t<a;++t){let a=s.attributes[t];a&&e.setAttribute(a.nodeName,a.nodeValue??"")}e.onload=()=>{v(e)},e.onerror=(t,s,a,l,i)=>{v(e,["Failed to load",e,"Error:",i])},h&&e.setAttribute("nonce",h),x.head.appendChild(e)}else sH({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",s],level:"warning"}),v(s)}}}0===n&&sY(e,s)}(g,v,f)},document.body.appendChild(g)):sH({messages:["There is nothing to print"],suppressErrors:_})}sQ(u,!0),r?r().then(()=>{f()}).catch(e=>{d?.("onBeforePrint",sV(e))}):f()},[e,t,s,a,l,i,o,n,r,d,c,u,p,h,_])}({}),p=()=>i.current,_=(e,t)=>{let s=document.createElement("a");s.download=t,s.href=e,s.click(),s.remove()},f=async e=>{if(!i.current)return void o(N.ToastTypes.ERROR,"Certificate Not Found");let t={width:1056,height:816,style:{display:"flex"},fetch:{bypassingCache:!0}},s=["certificate"];l?.username&&s.push(l.username),n?.name&&s.push((0,eh.stringToSnakeCase)(n.name));let a=s.join("_");try{if("PDF"===e&&h(p),"PNG"===e){let e=await aU(i.current,t);_(e,`${a}.png`)}if("JPEG"===e){let e=await aI(i.current,t);_(e,`${a}.jpeg`)}}catch(e){o(N.ToastTypes.ERROR,"Encountered error downloading certificate")}};return(0,u.jsxs)("div",{className:aK.default.container,children:[d&&d.length>0&&(0,u.jsx)("div",{className:aK.default.awards,children:d.map((e,t)=>(0,u.jsx)(sP.Award,{text:e,icon:"award"},`award-badges-${t}`))}),c&&c.length>0&&(0,u.jsx)("div",{className:aK.default.badges,children:c.map((e,t)=>(0,u.jsx)(P.Badge,{label:e,icon:"spaceapps/bookmark"},`nomination-badges-${t}`))}),(0,u.jsxs)("div",{className:aK.default.registered,children:["Registered On: ",(0,u.jsx)(eb.Datetime,{timestamp:e.createdAt||"",format:"month"})]}),t&&t.length>0||s&&s.length>0?(0,u.jsxs)("div",{className:aK.default.details,children:[(0,u.jsxs)("div",{className:`${aK.default.row} ${aK.default.bordered}`,children:[(0,u.jsxs)("dl",{className:aK.default.detail,children:[(0,u.jsx)("dt",{className:aK.default.label,children:"Teams"}),s&&s.length>0?s.map((e,t)=>(0,u.jsx)("dd",{className:aK.default.value,children:(0,u.jsx)(L.Link,{prefetch:!1,href:e.meta.relativeUrl||"/teams",children:e.title})},`participant-teams-${t}`)):(0,u.jsx)("dd",{className:aK.default.value,children:"None"})]}),(0,u.jsxs)("dl",{className:`${aK.default.detail} ${aK.default.half}`,children:[(0,u.jsx)("dt",{className:aK.default.label,children:"Local Event"}),t&&t.length>0?t.map((e,t)=>(0,u.jsx)("dd",{className:aK.default.value,children:(0,u.jsx)(L.Link,{prefetch:!1,href:e.locationDetails?.meta.relativeUrl||"/",children:e.locationDetails?.title})},`participant-locations-${t}`)):(0,u.jsx)("dd",{className:aK.default.value,children:"None"})]}),(0,u.jsxs)("dl",{className:`${aK.default.detail} ${aK.default.half}`,children:[(0,u.jsx)("dt",{className:aK.default.label,children:"Challenges"}),a&&a.length>0?a.map((e,t)=>(0,u.jsx)("dd",{className:aK.default.value,children:(0,u.jsx)(L.Link,{prefetch:!1,href:e.meta.relativeUrl||"/challenges",children:e.title||"Challenge Not Found"})},`participant-challenge-${t}`)):(0,u.jsx)("dd",{className:aK.default.value,children:"None"})]})]}),r&&n?.certificate&&(0,u.jsx)("div",{className:`${aK.default.row}`,children:(0,u.jsxs)("div",{className:aK.default["certificate-action"],children:[(0,u.jsx)(aJ,{ref:i,event:n,userFullName:l?.fullName||l?.firstName||l?.username||""}),(0,u.jsxs)(aB.ComboBox,{label:"Download Participant Certificate",children:[(0,u.jsx)(aB.ComboButton,{label:"PDF",icon:"spaceapps/download",onClick:()=>f("PDF")}),(0,u.jsx)(aB.ComboButton,{label:"JPEG",icon:"spaceapps/download",onClick:()=>f("JPEG")}),(0,u.jsx)(aB.ComboButton,{label:"PNG",icon:"spaceapps/download",onClick:()=>f("PNG")})]})]})})]}):(0,u.jsx)("div",{children:"No Event Data Found."})]})}var aZ=e.i(72163),a0=e.i(54445);let a1=function({contentFormId:e,defaultValues:t,onSave:s,onSubmit:a,onPreview:l,onPublish:i,onComplete:o,editLevel:n,editorAlerts:r,confirmationMsg:d,lookupFilters:c,customActions:h}){let{openModalHandler:p,closeModalHandler:_}=(0,E.useModal)(),{addToast:f}=(0,S.useToasts)(),{data:g,loading:v,error:x}=(0,w.useQuery)(k.ContentTypeFormDocument,{variables:{id:e}}),j=g?.contentTypeForm,b=(0,C.useForm)({values:t,shouldUnregister:!0}),{handleSubmit:y,setError:L,formState:{isLoading:P,isSubmitting:D,isSubmitSuccessful:G,errors:O}}=b,I=async e=>{if(s){let{errors:t}=await s(e);t?(0,T.gqlErrorsToFormErrors)(t,e).forEach(({name:e,error:t})=>{L(e,t)}):(_(),f(N.ToastTypes.SUCCESS,j?.saveConfirmation||"Saved successfully."),o&&o())}},U=async e=>{if(a){let{errors:t}=await a(e);t?(0,T.gqlErrorsToFormErrors)(t,e).forEach(({name:e,error:t})=>{L(e,t)}):(_(),f(N.ToastTypes.SUCCESS,j?.moderationConfirmation||"Submitted successfully."),o&&o())}},B=async e=>{if(l){let{errors:t}=await l(e);t?(0,T.gqlErrorsToFormErrors)(t,e).forEach(({name:e,error:t})=>{L(e,t)}):(_(),f(N.ToastTypes.SUCCESS,j?.publishConfirmation||"Published successfully."),o&&o())}},W=async e=>{if(i){let{errors:t}=await i(e);t?(0,T.gqlErrorsToFormErrors)(t,e).forEach(({name:e,error:t})=>{L(e,t)}):(_(),f(N.ToastTypes.SUCCESS,j?.publishConfirmation||"Published successfully."),o&&o())}},H=(e,s,a)=>{let l=e.value.fields.filter(e=>(0,T.isFormFieldActive)(e,t)).map(e=>e);return 0===l.length?null:(0,u.jsx)($.FieldGroup,{children:l.map((e,l)=>{let i=e.cleanName,o=t[i];return t[`${i}_${T.PREVIEW_KEYWORD}`]&&(o=t[`${i}_${T.PREVIEW_KEYWORD}`]),t[`${i}_${T.READABLE_KEYWORD}`]&&(o=t[`${i}_${T.READABLE_KEYWORD}`]),(0,u.jsx)(aZ.ModalField,{label:e.label||e.cleanName,onClick:()=>Y(e.cleanName),children:e.fieldType===k.FieldTypes.File?(0,u.jsx)(Q.Avatar,{image:o,size:"mid"}):o},`field-${a}-${s}-${l}`)})},`field-row-${a}-${s}`)},V=(e,t)=>{let o=t??O;return(0,u.jsxs)(C.FormProvider,{...b,children:[(0,u.jsx)(sa.ModalTitle,{title:e.label||e.cleanName}),(0,u.jsxs)("div",{className:a0.default.toasts,children:[G&&d&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:d})}),r]}),(0,u.jsxs)("form",{children:[(0,u.jsxs)($.FieldGroup,{children:[(0,u.jsx)(ti,{field:e,regOptions:{required:e.required&&1===Number(e.required)?`${e.label} is required`:void 0,shouldUnregister:!0},filters:c?.[e.cleanName]}),e.meta?.showConfirmation&&(0,u.jsx)(ti,{field:{...e,label:`Confirm ${e.label}`,cleanName:`confirm_${e.cleanName}`},regOptions:{required:`${e.label} is required`,shouldUnregister:!0},filters:c?.[e.cleanName]})]}),j?.useRecaptcha&&(0,u.jsx)(ti,{field:{cleanName:"recaptcha",fieldType:k.FieldTypes.Recaptcha}}),(0,u.jsxs)("div",{className:a0.default["flex-actions"],children:[5===n&&i&&(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/meteor",size:"sm",disabled:D,loading:D,onClick:y(W,t=>{p({content:V(e,t)})}),children:j?.publishLabel||"Publish"}),4===n&&a&&(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/meteor",size:"sm",disabled:D,loading:D,onClick:y(U,t=>{p({content:V(e,t)})}),children:j?.moderationLabel||"Submit"}),l&&(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/eye",size:"sm",disabled:n<2||D,loading:D,onClick:y(B,t=>{p({content:V(e,t)})}),children:n>=2?j?.previewLabel||"Preview":"Editing Disabled"}),s&&(0,u.jsx)(R.Button,{theme:"primary",icon:"spaceapps/edit",size:"sm",disabled:n<2||D,loading:D,onClick:y(I,t=>{p({content:V(e,t)})}),children:n>
29=2?j?.saveLabel||"Save":"Editing Disabled"}),h]}),o&&(0,u.jsx)(tU,{errors:o})]})]})},Y=e=>{let t=(0,T.getFormFields)(j?.fields||[]).find(t=>t.cleanName===e);t?p({content:V(t)}):f(N.ToastTypes.ERROR,`Unable to find form field for ${e}`)},J=v||P;return(0,u.jsxs)("div",{className:a0.default.container,children:[J&&(0,u.jsx)(F.Loader,{}),!J&&!x&&!j&&(0,u.jsx)(A.ErrorResponse,{status:404}),!J&&x&&(0,u.jsx)(A.ErrorResponse,{children:JSON.stringify(x)}),!J&&j&&(0,u.jsx)("form",{children:(0,u.jsx)(z.Accordion,{showExpandCollapse:!1,children:j.fields.map((e,t)=>(0,u.jsx)(m.Fragment,{children:e.value.map((e,t)=>{let s=e.__typename;if("FormPanelBlock"===s)return(0,u.jsx)(z.AccordionItem,{header:e.value.title,defaultOpen:!0,children:e.value.fields?.map((e,s)=>H(e,s,t))},`field-panel-${t}`);return"FormRowBlock"===s?H(e,t):null})},`form-fields-${t}`))})})]})};var a2=e.i(96490);function a5({page:e}){let{data:t,loading:s,refetch:a}=(0,w.useQuery)(k.ViewerDocument),{eventRegistrations:l,localEventRegistrations:i,challenges:o,user:n,teams:r}=t?.viewer||{},{data:d,loading:c}=(0,w.useQuery)(k.TeamsDocument,{skip:!r||r&&0===r.length,variables:{first:100,after:"",q:"",filtering:[{field:"ids",value:r?.map(e=>e.id).join(",")||"",compare:"ids"}]}}),{data:m,loading:h}=(0,w.useQuery)(k.EventsDocument,{skip:!l||l&&0===l.length,variables:{first:100,after:"",q:"",filtering:[{field:"ids",value:[...new Set(l?.map(e=>e.event))].join(","),compare:"ids"}]}}),p=new Date(n?.dateJoined||""),_=r?.reduce((e,t)=>(t?.projectSubmitted&&e++,e),0),{data:f,loading:g}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!e.editAccountForm,variables:{id:e.editAccountForm}}),v=f?.contentTypeForm,x=v?.fields?(0,T.getFormFields)(v?.fields):[],j=(0,T.getDefaultFields)(x,n),[b]=y(k.UpdateUserDocument),C=async e=>{if(n){let t=(0,T.normalizeSubmitFields)(e,[]),{errors:s}
29=await b({variables:{id:n.id,input:t}});if(s)return{errors:[...s]}}return{errors:null}},N=s||c||h,E=s||g,S=v&&n;return(0,u.jsx)("div",{className:a2.default.container,children:(0,u.jsxs)(U.FlexContainer,{children:[(0,u.jsxs)(B.MainColumn,{children:[(0,u.jsx)("h2",{className:a2.default["section-title"],children:e.accountLabel||"Account Information"}),(0,u.jsxs)("div",{className:a2.default.section,children:[E&&(0,u.jsx)(F.Loader,{}),!E&&S&&(0,u.jsx)(a1,{contentFormId:v.id,defaultValues:j,editLevel:3,onSave:C,onComplete:()=>{a()}}),!E&&!S&&(0,u.jsx)("div",{className:a2.default.default,children:(0,u.jsx)("p",{children:"Unable to load Profile."})})]}),(0,u.jsx)("h2",{className:a2.default["section-title"],children:e.participantLabel||"Participant History"}),(0,u.jsxs)("div",{className:a2.default.section,children:[N&&(0,u.jsx)(F.Loader,{}),!N&&l&&l.length>0&&(0,u.jsx)(z.Accordion,{showExpandCollapse:!1,children:l.map(e=>{let t=m?.events?.edges?.find(({node:t})=>t.id===e.event)?.node;return(0,u.jsx)(z.AccordionItem,{header:t?.name,defaultOpen:!0,children:(0,u.jsx)(aX,{registration:e,locations:i?.filter(t=>t.event===e.event),teams:d?.teams?.edges?.filter(t=>t.node.event===e.event).map(({node:e})=>e),challenges:o?.filter(t=>t.event===e.event),user:n})},e.id)})}),!N&&(!l||0===l.length)&&(0,u.jsx)("div",{className:a2.default.default,children:(0,u.jsx)(q.HtmlContainer,{html:e.participantDefault||"Participant History Not Found"})})]})]}),(0,u.jsx)(H.SideColumn,{children:(0,u.jsx)(W.Card,{children:(0,u.jsx)(O,{dateJoined:p,registrationCount:!!l&&l.length||0,teamCount:!!r&&r.length||0,projectCount:_})})})]})})}let a4=a5;e.s(["AccountVerification",()=>a9,"default",()=>a7],71493);var a3=e.i(54022),a6=e.i(65840);let a8=function({isModal:e=!1}){let{data:t}=(0,w.useQuery)(k.SiteByHostnameDocument),{data:s,loading:a}=(0,w.useQuery)(k.PageDocument,{skip:t?.siteByHostname.siteSettings?.sitePages?.helpPage===void 0,variables:{input:t?.siteByHostname?.siteSettings?.sitePages?.helpPage}}),l=s?.page||{};return(0,u.jsxs)("div",{className:a6.default.container,children:[e&&(0,u.jsx)(sa.ModalTitle,{title:l.title||"Request Help"}),l.intro&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:l.intro})}),a&&(0,u.jsx)(F.Loader,{}),l.id&&(0,u.jsx)(tn,{pageId:l.id}),!l.id&&(0,u.jsx)("p",{children:"Request Help Form Not Found! Please contact a site administrator."})]})};function a9(e){let{token:t,id:s}=e,[a,{data:l,loading:i,error:o}]=y(k.VerifyUserDocument),[n,{data:r,loading:d,error:c}]=y(k.RequestVerificationDocument),{openModalHandler:h}=(0,E.useModal)();return(0,m.useEffect)(()=>{a({variables:{input:{id:s,token:t}}})},[s,t,a]),(0,u.jsxs)("div",{className:a3.default.container,children:[(i||d)&&(0,u.jsx)(F.Loader,{}),l&&o&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(se.FormError,{children:"This verification token has expired, please request a new one."}),(0,u.jsx)("p",{children:"To request a new verification link, click the button below."}),(0,u.jsx)(R.Button,{onClick:()=>{n({variables:{email:l?.verifyUser.email}})},children:"Request Verification"})]}),!l&&o&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(se.FormError,{children:"The verification token is invalid, please request a new one."}),(0,u.jsx)("p",{children:"To request a new verification link, click the button below."}),(0,u.jsx)(R.Button,{theme:"secondary",onClick:()=>{h({content:(0,u.jsx)(si,{isModal:!0})})},children:"Request Verification"})]}),c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(se.FormError,{children:"Too many verification requests have been made"}),(0,u.jsx)("p",{children:"For further assistance please reach out to us."}),(0,u.jsx)(R.Button,{theme:"secondary",onClick:()=>{h({content:(0,u.jsx)(a8,{isModal:!0})})},children:"Request Help"})]}),l&&!r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:"Your account has been verified. Login to continue."}),(0,u.jsx)(L.Link,{appearance:"button",theme:"secondary",href:"/login",children:"Login"})]}),r&&!l&&(0,u.jsx)("p",{children:"Your request has been received. A new verification link has been sent to your email."})]})}let a7=a9;
29e.s(["AwardDetails",()=>ld,"default",()=>lc],52105);var le=e.i(55116),lt=e.i(43207),ls=e.i(59899),la=e.i(27976),ll=e.i(13061),li=e.i(94296);function lo({name:e,value:t,onClear:s}){return(0,u.jsxs)("button",{className:li.default.tag,type:"button","data-key":e,onClick:()=>{s()},children:[t,(0,u.jsx)("span",{className:li.default["close-btn"]})]})}function ln({filterFormId:e,lookupEvent:t,formActions:s,resultsMessage:a,isLoading:l,onSubmit:i}){let[o,n]=(0,m.useState)(!1),{data:r,loading:d}=(0,w.useQuery)(k.ContentFilterFormDocument,{skip:!e,variables:{id:e}}),c=r?.contentFilterForm,h=c?.fields||[],{watch:p,reset:_,handleSubmit:f,getValues:g,setValue:v}=(0,C.useFormContext)(),x=()=>t?[{field:"event",value:t,compare:"id"}]:[],j=async()=>{n(!o)},b=(e,t)=>{let s=g(e);Array.isArray(s)?v(e,s.filter(e=>e!==t)):(v(e,void 0),v(`${e}_${T.READABLE_KEYWORD}`,void 0))},y=g(),N=(0,T.filterEmptyValues)(y),E=h.filter(({cleanName:e,meta:t})=>!!N[e]&&(t?.showInline||t?.showMenu)).flatMap((e,t)=>{let s=e.cleanName,a=N[s];return(e.fieldType===k.FieldTypes.Search?a=`Keyword: ${a}`:e.fieldType===k.FieldTypes.Checkbox?a=e.label||s:`${s}_${T.READABLE_KEYWORD}`in y&&(a=y[`${s}_${T.READABLE_KEYWORD}`]),Array.isArray(a)&&a.length>0)?a.map(e=>(0,u.jsx)(lo,{name:s,value:e,onClear:()=>b(s,e)})):(0,u.jsx)(lo,{name:s,value:a,onClear:()=>b(s)})}),S=h.filter(({meta:e})=>e?.showMenu===!0),F=h.filter(({meta:e})=>e?.showInline===!0);p(S.map(({cleanName:e})=>e));let L=d||l;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ll.FlyOut,{controlOpen:o,onOpen:j,onClose:j,fixedToggle:!1,children:(0,u.jsx)("div",{className:li.default["flyout-container"],children:S.map(({__typename:e,meta:t,...s},a)=>(0,u.jsx)(ti,{field:{required:0,...s},filters:x()},`menu-field-${a}`))})}),s&&(0,u.jsx)("div",{className:li.default.actions,children:s}),(0,u.jsxs)("form",{className:li.default.form,onSubmit:f(i),children:[L&&(0,u.jsx)(la.Skeleton,{theme:"light",size:"xl",appearance:"rounded"}),!L&&F.map(({__typename:e,meta:t,...s},a)=>(0,u.jsx)(ti,{field:{required:0,...s},filters:x()},`inline-field-${a}`)),(0,u.jsxs)("div",{className:li.default.controls,children:[(0,u.jsx)(R.Button,{type:"submit",icon:"spaceapps/search",theme:"secondary",size:"sm",disabled:L}),(0,u.jsx)(R.Button,{icon:"spaceapps/filter",onClick:j,size:"sm",disabled:L}),(0,u.jsx)(R.Button,{type:"reset",icon:"spaceapps/refresh",onClick:()=>{_()},size:"sm",disabled:L})]})]}),!L&&a&&(0,u.jsx)("p",{className:li.default["search-results"],children:a}),!L&&(0,u.jsx)("div",{className:li.default["tags-list"],children:E&&E.length>0&&E.map((e,t)=>(0,u.jsx)(m.Fragment,{children:e},`tag-${t}`))})]})}var lr=e.i(56494);function ld({page:e,fetchSize:t=20}){let{nominationDetails:s}=e,{displayStatus:a}=s||{},{event:l}=(0,ek.useEvent)(e.event),{isAwardsActive:i}=l||{},{data:o}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),{teamsFilter:n}=o?.page||{},r=i&&a,{filterFields:d,filterEvent:c,loading:h,getFetchFilters:p}=(0,lt.useFilterForm)(n,e),_=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(d,{}),shouldUnregister:!1}),{getValues:f,watch:g}=_,v=f(),{data:x,loading:j,refetch:b,fetchMore:y}=(0,w.useQuery)(k.TeamsDocument,{skip:!r,variables:{first:t,after:"",q:v.keyword||"",filtering:[...p(v)]}}),N=x?.teams.edges||[];(0,m.useEffect)(()=>{let e=g(()=>{let e=f();b({first:t,after:"",q:e.keyword||"",filtering:[...p(e)]})});return()=>e.unsubscribe()},[t,g,b,f,p]);let E=async()=>{await b()},S=async()=>{let e=x?.teams.pageInfo;e?.hasNextPage&&await y({variables:{after:e?.endCursor}})},R=`Currently returning ${x?.teams.totalCount||0} teams`;return(0,u.jsxs)("div",{className:lr.default.container,children:[!r&&(0,u.jsx)("div",{className:lr.default.disabled,children:(0,u.jsx)(q.HtmlContainer,{html:e.disabledText||"This content is not live."})}),r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(C.FormProvider,{..._,children:n&&(0,u.jsx)(ln,{filterFormId:n,onSubmit:E,lookupEvent:c,resultsMessage:R,isLoading:h})}),j&&(0,u.jsx)(F.Loader,{}),!j&&0===N.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Teams Found."})}),!j&&N&&(0,u.jsx)("div",{className:lr.default.results,children:N.map(({node:e})=>{let t=s?.awards&&s.awards.find(t=>t.teams?.includes(e.id));return(0,u.jsx)(sT,{team:e,award:t,label:s?.badgeLabel||s?.name||"Nominee"},`team_${e.id}`)})}),x&&(0,u.jsx)(le.LoadMore,{isLoading:j,hasMore:x?.teams.pageInfo?.hasNextPage,onLoadMore:S})]})]})}let lc=ld;e.s(["BlogIndex",()=>l_,"default",()=>lf],48584);var lu=e.i(1244),lm=e.i(41658),lh=e.i(62203),lp=e.i(10661);function l_({page:e}){let t,s,a=(0,t9.useRouter)(),l=(0,t9.usePathname)(),i=(0,t9.useSearchParams)(),{contentHeader:o,blogLimit:n,searchHeader:r,filterText:d,blogsFilter:c}=e,h=n||20,{filterFields:p,filterEvent:_,loading:f,getFetchFilters:g}=(0,lt.useFilterForm)(c,e),v=(t=i&&i.get("s"))&&!Array.isArray(i.get("s"))?t:"",x=(s=i&&i.get("categories"))&&!Array.isArray(i.get("categories"))?s:"",[j,b]=(0,m.useState)(()=>{let e=i&&parseInt(i.get("page"),10);return Number.isInteger(e)&&0!==e?e:1});(0,m.useEffect)(()=>{let e=`${l}?page=${j}&s=${v}&categories=${x}`;a.push(e,{scroll:!1})},[]);let[y,N]=(0,m.useState)(!0),T=(0,m.useCallback)((e,t)=>{let s=new URLSearchParams(i||"");return s.set(e,t),s.toString()},[i]),{register:E,handleSubmit:S,getValues:L,setValue:P}=(0,C.useForm)({defaultValues:{keyword:v,categories:x.split(",")}}),A=L(),D=e=>1===e?"":(0,eh.encodeCursor)(lu.CursorType.OFFSET,((e-1)*h-1).toString()),{data:q,loading:M,refetch:$,fetchMore:z}=(0,w.useQuery)(k.BlogsDocument,{variables:{first:h,after:D(j||1),q:A.keyword||"",filtering:[...g(A)]}}),G=q?.blogs?.totalCount||0,O=A.categories,I=async e=>{b(1),P("keyword",e?.target.value||"");let t=`${l}?page=1&s=${e?.target.value||""}&categories=${A.categories.join(",")}`;window.history.replaceState(null,window.document.title,t),await $({first:h,after:"",q:e?.target.value||"",filtering:[...g(A)]})},W=async e=>{b(1);let t=`${l}?page=1&s=${A.keyword}&categories=${A.categories.join(",")}`;a.push(t,{scroll:!1}),await $({first:h,after:"",q:A.keyword||"",filtering:[...g(A)]})},Q=async e=>{b(e);let t=`${l}?${T("page",e.toString())}`;a.push(t,{scroll:!1}),await z({variables:{first:h,after:D(e),q:A.keyword||"",filtering:[...g(A)]}})},V=`Currently returning ${G}${O.length>0&&""!==O[0]?" posts matching any of the selected categories:":" posts."}`,Y=(p&&p.find(e=>"categories"===e.cleanName)?.choices)?.split("|")||[],J=Y.filter(e=>O.includes(e)),K=async e=>{Y.filter(t=>
29t===e).forEach(e=>{P("categories",L().categories.filter(t=>t!==e))}),await W()};return(0,m.useEffect)(()=>{let e=async e=>{await z({variables:{first:h,after:D(e),q:A.keyword||"",filtering:[...g(A)]}})};q?.blogs?.pageInfo?.hasNextPage&&e(j+1),q?.blogs?.pageInfo?.hasPreviousPage&&e(j-1)},[q]),(0,u.jsxs)("div",{className:lp.default.container,children:[(0,u.jsx)(U.FlexContainer,{children:o&&(0,u.jsx)("h3",{className:lp.default["post-heading"],children:o})}),(0,u.jsxs)(U.FlexContainer,{reverse:!0,children:[(0,u.jsxs)(B.MainColumn,{children:[(0,u.jsxs)("div",{className:lp.default["filter-info"],children:[(0,u.jsx)("p",{className:lp.default["filter-info-text"],children:V}),O.length>0&&(0,u.jsx)(lh.TagsList,{filters:J,onRemoveFilter:K})]}),q&&!M?q.blogs.edges?.map(({node:e})=>(0,u.jsx)(tS,{featuredImage:e.featuredImage||void 0,date:e.meta.firstPublishedAt||"",title:e.title,subtitle:e.subTitle,excerpt:e.excerpt||void 0,url:e.meta.relativeUrl||""},e.id)):(0,u.jsx)(F.Loader,{}),(0,u.jsx)(lm.Pagination,{className:lp.default.blog,onPageChange:Q,totalCount:G,siblingCount:1,currentPage:j||1,pageSize:h})]}),(0,u.jsx)(H.SideColumn,{size:"md",children:(0,u.jsxs)("form",{className:lp.default["live-search"],onSubmit:S(e=>W(e)),children:[(0,u.jsxs)("div",{className:lp.default["search-container"],children:[(0,u.jsx)("h3",{className:lp.default["search-header"],children:r||""}),(0,u.jsxs)("div",{className:lp.default["search-input-container"],children:[(0,u.jsx)("input",{...E("keyword",{}),className:lp.default.input,name:"keyword",placeholder:"Search the Blog...",type:"text",onChange:e=>I(e)}),(0,u.jsx)("button",{className:lp.default.submit,type:"submit",children:(0,u.jsx)(ei.Icon,{slug:"spaceapps/search"})})]})]}),(0,u.jsxs)("div",{className:`${lp.default.block} ${!y?lp.default.minimized:""}`,children:[(0,u.jsxs)("div",{className:lp.default["block-header"],children:[(0,u.jsx)("h3",{className:lp.default["header-text"],children:"Categories"}),(0,u.jsx)("button",{onClick:()=>{N(e=>!e)},className:lp.default["block-btn"],children:(0,u.jsx)("span",{className:lp.default.caret})})]}),(0,u.jsxs)("div",{className:lp.default["block-content"],children:[(0,u.jsx)("div",{className:lp.default["category-list"],children:Y.map(e=>(0,u.jsxs)("div",{className:lp.default.category,children:[(0,u.jsx)("input",{...E("categories"),className:lp.default["category-input"],type:"checkbox",value:e}),(0,u.jsx)("p",{className:lp.default["category-label"],children:e})]},`${e}-input`))}),(0,u.jsx)("div",{className:lp.default.btn,children:(0,u.jsx)(R.Button,{onClick:S(e=>W(e)),theme:"secondary",children:d||"Search and Filter"})})]})]})]})})]})]})}let lf=l_;e.s(["Challenge",()=>lT,"default",()=>lE],22197);var lg=e.i(83575);e.s(["ChallengeDetails",()=>lx,"default",()=>lj],39499);var lv=e.i(7369);function lx({page:e}){let t=(0,t9.useSearchParams)(),{event:s}=(0,ek.useEvent)(e.event),a=s?.isChallengePagesActive||"true"===t.get("preview");return(0,u.jsx)("div",{className:lv.default.container,children:(0,u.jsxs)(Y.Container,{size:"md",children:[(0,u.jsx)(tR,{event:s,categories:e.categories,skills:e.skills}),a&&e.detailsContent&&(0,u.jsx)(q.HtmlContainer,{className:lv.default.content,html:e.detailsContent}),!a&&e.excerpt&&(0,u.jsx)("p",{className:lv.default.content,children:e.excerpt})]})})}let lj=lx;e.s(["ChallengeTeams",()=>ly,"default",()=>lw],69492);var lb=e.i(52975);function ly({page:e,fetchSize:t=20}){let{event:s}=(0,ek.useEvent)(e.event),{isTeamPagesActive:a,teamEditStatus:l,teamRegistrationStatus:i,eventPages:o}=s||{},{data:n}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),{teamsFilter:r}=n?.page||{},{data:d}=(0,w.useQuery)(k.PageDocument,{skip:!o?.createTeamPage,variables:{input:o?.createTeamPage}}),{filterFields:c,filterEvent:h,loading:p,getFetchFilters:_}=(0,lt.useFilterForm)(r,e),f=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(c,{}),shouldUnregister:!1}),{getValues:g,watch:v}=f,x=g(),{data:j,loading:b,refetch:y,fetchMore:N}=(0,w.useQuery)(k.TeamsDocument,{skip:!a,variables:{first:t,after:"",q:x.keyword||"",filtering:[..._(x)]}}
29),E=j?.teams.edges||[];(0,m.useEffect)(()=>{let e=v((e,{name:s,type:a})=>{let l=g();y({first:t,after:"",q:l.keyword||"",filtering:[..._(l)]})});return()=>e.unsubscribe()},[t,v,y,g,_]);let S=async()=>{await y()},R=async()=>{let e=j?.teams.pageInfo;e?.hasNextPage&&await N({variables:{after:e?.endCursor}})},P=(l??0)>1&&d?.page.meta.relativeUrl?(0,u.jsx)(L.Link,{prefetch:!1,href:d.page.meta.relativeUrl,appearance:"button",theme:"secondary",size:"sm",icon:"spaceapps/profile",iconPosition:"before",children:d.page.title}):null,A=`Currently returning ${j?.teams.totalCount||0} teams`,D=!!i&&i>1;return(0,u.jsxs)("div",{children:[(0,u.jsx)(Y.Container,{size:"md",children:e.teamsTabContent&&(0,u.jsx)(q.HtmlContainer,{className:lb.default.content,html:e.teamsTabContent})}),(0,u.jsx)(C.FormProvider,{...f,children:r&&(0,u.jsx)(ln,{filterFormId:r,onSubmit:S,lookupEvent:h,formActions:P,resultsMessage:A,isLoading:p})}),b&&(0,u.jsx)(F.Loader,{}),!b&&0===E.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Teams Found."})}),!b&&E&&(0,u.jsx)("div",{className:lb.default.results,children:E.map(({node:e})=>(0,u.jsx)(sL,{team:e,showJoinBadge:D},`team_${e.id}`))}),j&&(0,u.jsx)(le.LoadMore,{isLoading:b,hasMore:j?.teams.pageInfo?.hasNextPage,onLoadMore:R})]})}let lw=ly;var lC=e.i(30194);let lk=function({page:e}){return(0,u.jsx)("div",{className:lC.default.container,children:(0,u.jsx)(Y.Container,{size:"md",children:e.resourcesTabContent&&(0,u.jsx)(q.HtmlContainer,{className:lC.default.content,html:e.resourcesTabContent})})})};var lN=e.i(16681);function lT({page:e}){let{data:t,loading:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),a=t?.page||{},l=[{label:a.detailsTabLabel||"Details",live:!0,panel:(0,u.jsx)(lj,{page:e}),slug:"details"},{label:a.resourcesTabLabel||"Resources",live:a.showResourcesTab,panel:(0,u.jsx)(lk,{page:e}),slug:"resources"},{label:a.teamsTabLabel||"Teams",live:a.showTeamsTab,panel:(0,u.jsx)(lw,{page:e}),slug:"teams"}];return(0,u.jsxs)("div",{className:lN.default.container,children:[s&&(0,u.jsx)(F.Loader,{}),!s&&(0,u.jsx)(lg.TabbedContent,{tabs:l})]})}let lE=lT;var lS=e.i(30870);function lF({page:e,url:t}){let{data:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),a=s?.page||{},{event:l}=(0,ek.useEvent)(e.event);return l?.teamRegistrationStatus&&l.teamRegistrationStatus>=2&&l.isTeamPagesActive?(0,u.jsx)("div",{className:lS.default.container,children:(0,u.jsx)(L.Link,{appearance:"button",icon:"spaceapps/plus",iconPosition:"before",href:t,size:"sm",children:a.joinTeamCta||"Join the Challenge"})}):null}e.s(["ChallengeCta",()=>lF,"default",0,lF],34028),e.s(["ChallengeIndex",()=>lL,"default",()=>lP],16733);var lR=e.i(33441);function lL({page:e,fetchSize:t=100}){let{event:s}=(0,ek.useEvent)(e.event),{challengesFilter:a}=e,{filterFields:l,filterEvent:i,loading:o,getFetchFilters:n}=(0,lt.useFilterForm)(a,e),r=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(l,{}),shouldUnregister:!1}),{getValues:d,watch:c}=r,h=d(),{data:p,loading:_,refetch:f,fetchMore:g}=(0,w.useQuery)(k.ChallengesDocument,{skip:!s,variables:{first:t,after:"",q:h.keyword||"",filtering:[...n(h)]}}),v=p?.challenges.edges||[];(0,m.useEffect)(()=>{let e=c((e,{name:s,type:a})=>{let l=d();f({first:t,after:"",q:l.keyword||"",filtering:[...n(l)]})});return()=>e.unsubscribe()},[t,c,f,d,n]);let x=async()=>{await f()},j=async()=>{let e=p?.challenges.pageInfo;e?.hasNextPage&&await g({variables:{after:e?.endCursor}})},b=`Currently returning ${p?.challenges.totalCount} challenges`;return(0,u.jsxs)("div",{className:lR.default.container,children:[(0,u.jsx)(C.FormProvider,{...r,children:a&&(0,u.jsx)(ln,{filterFormId:a,onSubmit:x,lookupEvent:i,resultsMessage:b,isLoading:o})}),_&&(0,u.jsx)(F.Loader,{}),!_&&0===v.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Challenges Found."})}),!_&&v&&(0,u.jsx)("div",{className:lR.default.results,children:v.map(({node:e})=>(0,u.jsxs)(sF.Listing,{title:e.title,image:e.featuredImage,link:e.meta.relativeUrl,theme:"horizontal",children:[(0,u.jsx)(tR,{event:s,categories:e.categories,skills:e.skills}),e.excerpt&&(0,u.jsx)("div",{className:lR.default.excerpt,children:e.excerpt})]},`challenge_${e.id}`))}),p&&(0,u.jsx)(le.LoadMore,{isLoading:_,hasMore:p?.challenges.pageInfo?.hasNextPage,onLoadMore:j})]})}let lP=lL;e.s(["ContentTypeEditor",()=>lH,"default",()=>lQ],58762);var lA=e.i(61985),lD=e.i(941),lq=e.i(8104);function lM({registration:e,showConfirmation:t=!1,showToast:s=!0,onSuccess:a,onClose:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{canUserCancel:r,refresh:d}=(0,lq.useLocalEventRegistration)({registration:e}),[c,{data:h,loading:p}]=y(k.DeleteLocalEventRegistrationDocument),_=async()=>
29{if(o(void 0),r&&e)try{let{errors:t}=await c({variables:{id:e.id}});t?o((0,T.handleCatchErrors)(t[0])):(s&&n(N.ToastTypes.SUCCESS,"Local Event Participation Cancelled"),await d(),a&&a())}catch(e){o((0,T.handleCatchErrors)(e))}else o("You do not have permission to perform this action.")};return(0,u.jsxs)("div",{children:[p&&(0,u.jsx)(F.Loader,{}),!p&&i&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:(0,u.jsx)(q.HtmlContainer,{html:i})}),!p&&h&&t&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:"Submit Successful"})}),!p&&!h&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:"Are you sure you want to cancel your participation?"}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{onClick:_,children:`Yes, Cancel Participation for ${e?.locationDetails?.title||"this Local Event"}`}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{l&&l()},children:"No, Thanks"})]})]})]})}function l$({teamId:e,showConfirmation:t=!1,showToast:s=!0,onClose:a,onSuccess:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{data:r,loading:d,refetch:c}=(0,w.useQuery)(k.ViewerDocument),h=r?.viewer,{data:p,loading:_}=(0,w.useQuery)(k.PageDocument,{variables:{input:e}}),f=p?.page||{},g=h?.teamJoinRequests&&h?.teamJoinRequests.find(e=>e.team===f?.id)||void 0,[v,{data:x,loading:j}]=y(k.DeleteTeamJoinRequestDocument),b=async()=>{if(o(void 0),g)try{let{errors:e}=await v({variables:{id:g.id}});e?o((0,T.handleCatchErrors)(e[0])):(s&&n(N.ToastTypes.SUCCESS,`You have canceled your request to join ${f.title}.`),await c(),l&&l())}catch(e){o((0,T.handleCatchErrors)(e))}else o("You do not have permission to perform this action.")},C=j||d||_;return(0,u.jsxs)("div",{children:[C&&(0,u.jsx)(F.Loader,{}),!C&&i&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:(0,u.jsx)(q.HtmlContainer,{html:i})}),!C&&x&&t&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:`You have cancelled your request to join ${f?.title}`})}),!C&&!x&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(eE.ModalText,{children:["To cancel your join request for ",f?.title,", click Confirm Cancellation. Once canceled, you can request to join another team or create your own."]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{onClick:b,children:"Confirm Cancellation"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{a&&a()},children:"No, Thanks"})]})]})]})}let lz=({children:e,confirmLabel:t,cancelLabel:s,onConfirm:a,onClose:l,theme:i="primary"})=>{let o=async()=>{a()};return(0,u.jsxs)("div",{children:[(0,u.jsx)(eE.ModalText,{children:e}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{theme:i,onClick:o,children:t||"Confirm"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{l()},children:s||"Cancel"})]})]})};function lG({onConfirm:e,onClose:t,lockedBy:s,lockedAt:a}){let l=async()=>{e()};return(0,u.jsxs)("div",{children:[(0,u.jsxs)(eE.ModalText,{children:[s?(0,u.jsxs)(u.Fragment,{children:["A locked was enabled by ",(0,u.jsx)("strong",{children:s})]}):"A locked was enabled on this content",a&&(0,u.jsxs)(u.Fragment,{children:[" ","at"," ",(0,u.jsx)("strong",{children:(0,u.jsx)(eb.Datetime,{format:"datetime",timestamp:a.replace("Z",""),timezone:"UTC"})})]}),"."]}),(0,u.jsx)(eE.ModalText,{children:"Editing locked content may result in unsaved progress being lost. Click continue to override this lock to go to the page editor or click cancel to go back."}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{theme:"primary",onClick:l,children:"Continue"}),(0,u.jsx)(R.Button,{theme:"secondary",onClick:()=>{t()},children:"Cancel"})]})]})}function lO({team:e,showConfirmation:t=!1,showToast:s=!0,onClose:a,onSuccess:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{event:r}=(0,ek.useEvent)(e.event),{data:d,loading:c,refetch:h}=(0,w.useQuery)(k.ViewerDocument),p=d?.viewer,_=(p?.teams&&p.teams.find(t=>t.id===e?.id)||!1)&&r?.teamRegistrationStatus&&r.teamRegistrationStatus>2,[f,{data:g,loading:v}]=y(k.LeaveTeamDocument),x=async()=>{if(o(void 0),_)try{let{errors:t}=await f({variables:{id:e.id}});t?o((0,T.handleCatchErrors)(t[0])):(s&&n(N.ToastTypes.SUCCESS,"You are no longer a team member of this team"),await h(),l&&l())}catch(e){o((0,T.handleCatchErrors)(e))}else o("You do not have permission to perform this action.")},j=v||c;return(0,u.jsxs)("div",{children:[j&&(0,u.jsx)(F.Loader,{}),!j&&i&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:(0,u.jsx)(q.HtmlContainer,{html:i})}),!j&&g&&t&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:"You are no longer a team member of this team"})}),!j&&!g&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(eE.ModalText,{children:["Are sure you would like to leave ",e?.title,"?"]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{onClick:x,children:"Yes, Leave Team"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{a&&a()},children:"No, Thanks"})]})]})]})}var lI=e.i(50455);let lU=({team:e,onClose:t})=>{let{event:s}=(0,ek.useEvent)(e.event);return(0,u.jsxs)("div",{className:lI.default.container,children:[(0,u.jsx)("div",{className:lI.default["top-actions"],children:e.meta?.relativeUrl&&(0,u.jsx)(L.Link,{size:"md",theme:"outline",icon:"spaceapps/external",href:`${e.meta.relativeUrl}?tab=project`,target:"_blank",rel:"noreferrer noopener",tooltip:"Open Project Page"})}),(0,u.jsxs)("div",{className:lI.default["content-details"],children:[(0,u.jsxs)("h3",{className:lI.default["content-title"],children:["Team Information",e.projectDetails?.submittedAt?(0,u.jsxs)("span",{className:lI.default.caption,"data-tooltip":(0,sy.getDateTimeString)(e.projectDetails.submittedAt,"datetime","UTC"),"aria-label":`Submitted: ${(0,sy.getDateTimeString)(e.projectDetails.submittedAt,"datetime","UTC")}`,"aria-live":"polite",tabIndex:0,children:["Submitted: ",(0,u.jsx)(eb.Datetime,{format:"datetime",timestamp:e.projectDetails.submittedAt})]}):(0,u.jsx)("span",{className:lI.default.caption,"aria-live":"polite",children:"Not Submitted"})]}),(0,u.jsxs)("div",{className:lI.default["meta-container"],children:[(0,u.jsxs)("div",{className:lI.default.meta,children:[(0,u.jsx)("h4",{className:lI.default.label,children:"Team Name"}
29),(0,u.jsx)("span",{className:lI.default["meta-content"],children:e.title})]}),e.locationDetails&&(0,u.jsxs)("div",{className:lI.default.meta,children:[(0,u.jsx)("h4",{className:lI.default.label,children:"Location"}),(0,u.jsxs)("span",{children:[e.locationDetails.displayName||e.locationDetails.shortName||e.locationDetails.title,","," ",e.locationDetails.country]})]})]}),e.challengeDetails&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h4",{className:lI.default.label,children:"Challenge:"}),(0,u.jsx)("h3",{className:lI.default["content-title"],children:e.challengeDetails.title}),(0,u.jsx)("p",{children:e.challengeDetails.excerpt})]})]}),e.projectDetails&&(0,u.jsx)(sj,{project:e.projectDetails,fields:s?.projectFields||[]}),t&&(0,u.jsx)(eT.ModalActions,{children:(0,u.jsx)(R.Button,{theme:"transparent",onClick:()=>{t&&t()},children:"Close"})})]})};var lB=e.i(2154);let lW=Object.freeze({SAVE:"save",PREVIEW:"preview",SUBMIT:"submit",PUBLISH:"publish",LOCK:"lock",UNLOCK:"unlock"});function lH({onOpen:e,onClose:t,onSave:s,onSubmit:a,onPreview:l,onPublish:i,onLock:o,isEditing:n,isUserEditor:r,contentFormId:d,editLevel:c,revision:h,isReady:p,isWaiting:_,userWelcomeMsg:f,statusMsg:g,editorAlerts:v,customActions:x,customSubmits:j}){let[b,y]=(0,m.useState)(),{lockedAt:N,lockedBy:T,isLockedByUser:S,isLocked:F}=(0,lD.useContentLockedBy)(h),{openModalHandler:L,closeModalHandler:P}=(0,E.useModal)(),{data:A,loading:D}=(0,w.useQuery)(k.ContentTypeFormDocument,{variables:{id:d}}),q=A?.contentTypeForm,{clearErrors:M,formState:{isSubmitting:$,isDirty:z,errors:G}}=(0,C.useFormContext)(),O=c<3,I=async()=>{t()},U=async()=>{o&&F&&!S?L({content:(0,u.jsx)(lG,{lockedBy:T,lockedAt:N,onConfirm:B,onClose:P}),title:"Editing Locked"}):e()},B=async()=>{o&&await o(!1),y(void 0),P(),e()},W=async()=>{M(),i&&i(),y(lW.PUBLISH)},H=_||D||$;return(0,u.jsxs)(tD,{isReady:p,children:[r&&O&&(0,u.jsx)(tM,{children:"Event Closed: This content may not be edited."}),r&&!n&&F&&(0,u.jsxs)(tz,{children:["Editing is locked by ",T,"."]}),n&&g&&(0,u.jsx)(tz,{children:g}),n&&z&&(0,u.jsx)(tM,{children:"Unsaved Changes."}),f&&(0,u.jsx)(tM,{children:f}),r&&v,r&&n&&q&&(0,u.jsxs)(u.Fragment,{children:[o&&(0,u.jsx)("div",{className:lB.default.lock,children:(0,u.jsx)(lA.ToggleSwitch,{checked:!!F,label:"Lock",onChange:e=>{o&&o(e),y(void 0)}})}),(0,u.jsxs)("div",{className:lB.default.actions,children:[(0,u.jsxs)("div",{className:lB.default.actions__primary,children:[c>2&&s&&(0,u.jsx)(R.Button,{theme:"secondary",size:"xs",icon:"spaceapps/check",disabled:H,loading:H&&b===lW.SAVE,onClick:()=>void(M(),s&&s(),y(lW.SAVE)),children:q.saveLabel||"Save"}),c>2&&l&&(0,u.jsx)(R.Button,{theme:"secondary",size:"xs",icon:"spaceapps/eye",disabled:H,loading:H&&b===lW.PREVIEW,onClick:()=>void(M(),l&&l(),y(lW.PREVIEW)),children:q.previewLabel||"Preview"}),4===c&&a&&(0,u.jsx)(R.Button,{theme:"secondary",size:"xs",icon:"spaceapps/meteor",disabled:H,loading:H&&b===lW.SUBMIT,onClick:()=>void(M(),a&&a(),y(lW.SUBMIT)),children:q.moderationLabel||"Submit"}),5===c&&i&&(0,u.jsx)(R.Button,{theme:"secondary",size:"xs",icon:"spaceapps/meteor",disabled:H,loading:H&&b===lW.PUBLISH,onClick:()=>W(),children:q.publishLabel||"Publish"}),j]}),(0,u.jsx)("div",{className:lB.default.actions__secondary,children:(0,u.jsx)("button",{className:lB.default.reset,type:"button",onClick:I,children:q.closeLabel||"Close"})})]})]}),(r||x)&&!n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:lB.default.actions,children:r&&(0,u.jsx)(R.Button,{theme:"secondary",size:"xs",icon:O?"spaceapps/lock":"spaceapps/edit",disabled:O,loading:H,onClick:U,tooltip:O?"Editing is Currently Closed.":void 0,children:F&&!S?q?.lockedLabel||"Unlock":q?.editLabel||"Edit"})}),x&&(0,u.jsx)("div",{className:lB.default.actions,children:x})]}),G&&(0,u.jsx)(tU,{errors:G})]})}let lQ=lH;e.s(["DirectoryList",()=>lJ,"default",()=>lK],69362);var lV=e.i(63489),lY=e.i(45656);function lJ({showActive:e=!1,showInactive:t=!1,filterRoles:s}){let{openModalHandler:a}=(0,E.useModal)(),[l]=(0,lV.useLazyQuery)(k.DirectoryDocument),i=async e=>{let{data:t}=await l({variables:{id:e}});t&&a({content:(0,u.jsx)(tP,{profile:t?.directory})})},o=[];
29e&&!t?o.push({field:"is_active",value:"true",compare:"equals"}):!e&&t&&o.push({field:"is_active",value:"false",compare:"equals"}),s&&s.length>0&&o.push({field:"role",value:s.join(","),compare:"in"});let{loading:n,data:r}=(0,w.useQuery)(k.DirectoriesDocument,{variables:{first:100,filtering:o}});return(0,u.jsxs)("div",{className:lY.default.container,children:[n&&(0,u.jsx)(F.Loader,{}),r&&r.directories.edges?.map(({node:e},t)=>(0,u.jsxs)("div",{className:lY.default.profile,onClick:()=>i(e.id),children:[e.avatar?.rendition?(0,u.jsx)(I.default,{className:lY.default.avatar,src:e.avatar.rendition.fullUrl,width:e.avatar.rendition.width||134,height:e.avatar.rendition.height||134,alt:e.avatar.alt||"Directory Image"}):(0,u.jsx)(ei.Icon,{slug:"spaceapps/avatar"}),(0,u.jsx)("h3",{className:lY.default.name,children:e.name}),(0,u.jsx)("p",{className:lY.default.role,children:e.role})]},t))]})}let lK=lJ;var lX=e.i(91727);let lZ=({children:e,eventId:t,...s})=>{let{event:a}=(0,ek.useEvent)(t);return(0,u.jsx)(lX.PageHeader,{subTitle:a?.displayName||a?.name||s.subTitle,...s,children:e})};e.s(["EventPageHeader",0,lZ,"default",0,lZ],13863),e.s(["EventRegistrationCta",()=>l2,"default",()=>l5],85302);var l0=e.i(41625),l1=e.i(2526);function l2({eventId:e}){let{openModalHandler:t,closeModalHandler:s}=(0,E.useModal)(),{event:a}=(0,ek.useEvent)(e),{hasRegistration:l,canUserRegister:i,canUserCancel:o}=(0,eN.useEventRegistration)(e);return i?(0,u.jsxs)(l0.CtaContainer,{children:[l&&!o&&(0,u.jsx)("p",{children:(0,u.jsxs)("span",{className:l1.default.registered,children:[(0,u.jsx)(ei.Icon,{slug:"spaceapps/check"})," ",`You are registered for the ${a?.name||"the Event"}!`]})}),!l&&i&&(0,u.jsx)(R.Button,{exClassName:"uppercase",size:"sm",onClick:()=>void t({requirements:{authenticated:!0},title:`Register for the ${a?.name||"Event"}`,content:(0,u.jsx)(eF,{eventId:e,onSuccess:s})}),children:"Register Here"}),l&&o&&(0,u.jsx)(R.Button,{theme:"important",exClassName:"uppercase",size:"sm",onClick:()=>void t({requirements:{authenticated:!0},title:`Cancel Registration for the ${a?.name||"Event"}`,content:(0,u.jsx)(eS,{eventId:e,onSuccess:s,onClose:s})}),children:"Cancel Registration"})]}):null}let l5=l2;e.s(["Judging",()=>il,"default",()=>ii],35841);var l4=e.i(16245),l3=e.i(95908),l6=e.i(52076),l8=e.i(20735);function l9({options:e,nominationLabel:t,defaultValues:s,awardLimit:a,onReset:l,onSubmit:i}){let o=(0,C.useForm)({mode:"onBlur",defaultValues:{awards:s||[]}}),{handleSubmit:n,register:r,setValue:d,watch:c}=o,m=c("awards"),h=async e=>{i(e.awards)},p=e=>{let{value:t}=e.currentTarget;d("awards",m.includes(t)?m.filter(e=>e!==t):null==a||m.length<a?[...m,t]:[...m.slice(0,-1),t])};return(0,u.jsx)("div",{className:l8.default.container,children:(0,u.jsx)(C.FormProvider,{...o,children:(0,u.jsxs)("form",{onSubmit:n(h),children:[(0,u.jsx)("div",{className:l8.default.options,children:e.map(({id:e,icon:s,name:a},l)=>(0,u.jsxs)("label",{className:l8.default.control,children:[(0,u.jsx)("input",{...r("awards"),onChange:p,className:l8.default.input,type:"checkbox",value:e}),(0,u.jsxs)("div",{className:l8.default["control-indicator"],children:[s&&s.rendition&&(0,u.jsx)("div",{className:l8.default["award-icon"],children:(0,u.jsx)(I.default,{width:s.rendition.width||100,height:s.rendition.height||100,src:s.rendition.fullUrl,alt:s.alt||"Image Alt Not Found"})}),(0,u.jsxs)("div",{className:l8.default["award-label"],children:[t&&(0,u.jsx)("span",{className:l8.default["control-label"],children:t}),(0,u.jsx)("span",{className:l8.default["control-title"],children:a})]}),(0,u.jsx)(ei.Icon,{slug:"spaceapps/check",className:l8.default.checkmark})]})]},`${e}-${l}`))}),(0,u.jsxs)("div",{className:l8.default["flex-actions"],children:[(0,u.jsx)(eB.FormActions,{submitText:"Apply Awards"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:l,children:"Cancel"})]})]})})})}var l7=e.i(47614);function ie({defaultValue:e,onReset:t,onSubmit:s}){let a=(0,C.useForm)({mode:"onBlur",defaultValues:{notes:e||""}}),{handleSubmit:l}=a,i=async e=>{s(e.notes)};return(0,u.jsx)("div",{className:l7.default.container,children:(0,u.jsx)(C.FormProvider,{...a,children:(0,u.jsxs)("form",{onSubmit:l(i),children:[(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(tt.TextArea,{name:"notes",limit:2e3})}),(0,u.jsxs)("div",{className:l7.default["flex-actions"],children:[(0,u.jsx)(eB.FormActions,{submitText:"Save Notes"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:t,children:"Delete Notes"})]})]})})})}var it=e.i(85863);function is({assignedVote:e,nomination:t,disableVote:s=!1}){let[a,l]=(0,m.useState)(),{openModalHandler:i,closeModalHandler:o}=(0,E.useModal)(),{addToast:n}=(0,S.useToasts)(),{voteDetails:r,teamDetails:d}=e,c=t.judgingAwards||[],{selection:h,notes:p,isSaved:_,awards:f}=r||{selection:"",notes:"",isSaved:!1,awards:[]},g=(0,l4.useAuth)({permissions:["edit:judging"],obj:{id:t.id||"",type:"judging"}}),v=["Poor (1)","Unsatisfactory (2)","Adequate (3)","Very Good (4)","Exemplary (5)"],[x,{loading:j}]=y(k.CastVoteDocument),[b,{loading:w}]=y(k.BookmarkVoteDocument),[C,{loading:F}]=y(k.UpdateVoteNotesDocument),[P]=y(k.UpdateVoteAwardsDocument),A=async()=>{o()},D=async t=>{if(g){l(t);try{let{errors:s}
29=await x({variables:{id:e.id,input:{selection:h===t?"clear":t}}});s?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(s)||"Failed to update vote"):n(N.ToastTypes.SUCCESS,"Vote Updated!")}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.");l(null)},q=async t=>{if(g)try{let{errors:s}=await C({variables:{id:e.id,input:{notes:t}}});s?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(s)||"Failed to update note"):(n(N.ToastTypes.SUCCESS,"Note Updated!"),A())}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.")},M=async()=>{await q("")},$=async()=>{if(g)try{let{errors:t}=await b({variables:{id:e.id,input:{isSaved:!_}}});t?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(t)||"Failed to bookmark vote"):n(N.ToastTypes.SUCCESS,"Bookmark Updated!")}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.")},z=async t=>{if(g)try{let{errors:s}=await P({variables:{id:e.id,input:{awards:t}}});s?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(s)||"Failed to update vote awards"):(n(N.ToastTypes.SUCCESS,"Vote Awards Updated!"),A())}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.")};return(0,u.jsxs)("div",{className:it.default.container,children:[(0,u.jsx)("div",{className:it.default["vote-actions"],children:v&&v.map(e=>(0,u.jsx)(R.Button,{size:"sm",icon:h===e?"spaceapps/check":void 0,loading:a===e&&j,disabled:s||j,theme:h===e?"primary":"secondary",onClick:()=>D(e),exClassName:it.default["vote-btn"],children:e},`${e}`))}),(0,u.jsxs)("div",{className:it.default["other-actions"],children:[!!r&&(0,u.jsx)("span",{className:`${it.default.reviewed} ${it.default.tooltip}`,"data-tooltip":"Reviewed",children:(0,u.jsx)(ei.Icon,{slug:"spaceapps/eye"})}),c&&c.length>0&&(0,u.jsx)(R.Button,{size:"sm",theme:"outline",icon:"spaceapps/award",onClick:()=>{i({title:"Awards",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:"Please select which award best fits this project submission."}),c&&(0,u.jsx)(l9,{defaultValues:f,options:c,nominationLabel:"Winner",onSubmit:z,onReset:A,awardLimit:1}),!c&&(0,u.jsx)("p",{children:"Awards Not Found."})]})})},tooltip:"Add Awards",children:f&&f.length>0?(0,u.jsx)("span",{children:f.length}):""}),(0,u.jsx)(R.Button,{size:"sm",theme:"outline",icon:"spaceapps/edit",loading:F,disabled:s||F,tooltip:"Add Notes",onClick:()=>{i({title:"Notes",content:(0,u.jsx)(ie,{defaultValue:p,onSubmit:q,onReset:M})})}}),(0,u.jsx)(R.Button,{size:"sm",theme:_?"primary":"outline",icon:"spaceapps/bookmark",loading:w,disabled:s||w,tooltip:_?"Remove Bookmark":"Bookmark for Later",onClick:$}),(0,u.jsx)(R.Button,{size:"sm",theme:"outline",icon:"spaceapps/info",tooltip:"Project Quick View",onClick:()=>{i({content:d?(0,u.jsx)(lU,{team:d}):(0,u.jsx)("p",{children:"Team Not Found."})})}}),d?.meta.relativeUrl&&(0,u.jsx)(L.Link,{href:`${d.meta.relativeUrl}?tab=project`,icon:"spaceapps/external",appearance:"button",size:"sm",theme:"outline",target:"_blank",rel:"noreferrer noopener",tooltip:"Open Project Page"})]})]})}var ia=e.i(33043);function il({page:e,fetchSize:t=20}){let{data:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),{assignedTeamsFilter:a}=s?.page||{},{event:l}=(0,ek.useEvent)(e.event),{nominationDetails:i}=e,{nominationJudgingStatus:o}=l||{},n=(0,l4.useAuth)({permissions:["edit:judging"],obj:{id:e.nomination||"",type:"judging"}}),r=!!(o&&o>0&&i?.judgingStatus&&i?.judgingStatus>0),{filterFields:d,filterEvent:c,loading:h,getFetchFilters:p}=(0,lt.useFilterForm)(a,e),_=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(d,{}),shouldUnregister:!1}),{getValues:f,watch:g}=_,v=f(),{data:x,loading:j,refetch:b,fetchMore:y}=(0,w.useQuery)(k.AssignedVotesDocument,{skip:!n||!r,variables:{first:t,after:"",q:v.keyword||"",filtering:[...p(v)]}}),N=x?.assignedVotes.edges||[];(0,m.useEffect)(()=>{let e=g(e=>
29{let s=f();b({first:t,after:"",q:s.keyword||"",filtering:[...p(s)]})});return()=>e.unsubscribe()},[t,g,b,f,p]);let E=async()=>{await b()},S=async()=>{let e=x?.assignedVotes.pageInfo;e?.hasNextPage&&await y({variables:{after:e?.endCursor}})},R=`Currently returning ${x?.assignedVotes.totalCount||0} teams`;return(0,u.jsx)("div",{className:ia.default.container,children:(0,u.jsx)(l3.CmsControlled,{canView:!!r,children:(0,u.jsxs)(l6.PermissionsControlled,{canView:n,children:[(0,u.jsx)(C.FormProvider,{..._,children:a&&(0,u.jsx)(ln,{filterFormId:a,onSubmit:E,lookupEvent:c,resultsMessage:R,isLoading:h})}),j&&(0,u.jsx)(F.Loader,{}),!j&&0===N.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Teams Found."})}),!j&&N&&(0,u.jsx)("div",{className:ia.default.results,children:N.map(({node:e})=>(0,u.jsx)(sw,{team:e.teamDetails,showLocation:!1,children:e.teamDetails&&i&&(0,u.jsx)(is,{assignedVote:e,nomination:i})},`team_${e.id}`))}),x&&(0,u.jsx)(le.LoadMore,{isLoading:j,hasMore:x?.assignedVotes.pageInfo?.hasNextPage,onLoadMore:S})]})})})}let ii=il;e.s(["JudgingIndex",()=>ir,"default",()=>id],95824);var io=e.i(93492);function ir({page:e}){let{event:t}=(0,ek.useEvent)(e.event),{nominationJudgingStatus:s}=t||{},a=!!s&&s>1,{data:l,loading:i}=(0,w.useQuery)(k.ViewerDocument),o=l?.viewer?.judging?.filter(e=>e.event===t?.id),n=o&&o.length>0;return(0,u.jsx)("div",{className:io.default.container,children:(0,u.jsxs)(U.FlexContainer,{children:[(0,u.jsx)(B.MainColumn,{children:(0,u.jsx)(tN,{blocks:e.content})}),(0,u.jsx)(H.SideColumn,{children:(0,u.jsxs)("div",{className:io.default.results,children:[i&&(0,u.jsx)(F.Loader,{}),!i&&(0,u.jsxs)(W.Card,{children:[a&&(0,u.jsx)("h2",{children:"Project Judging is Underway."}),s&&1===s&&(0,u.jsx)("h2",{children:"Project Judging is Complete."}),s&&0===s&&(0,u.jsx)("h2",{children:"Project Judging has Not Started Yet."}),(0,u.jsx)("p",{children:e.sideContent||"Check back here for more judging and awards updates."})]}),!i&&n&&(0,u.jsx)(W.Card,{children:(0,u.jsxs)(l3.CmsControlled,{canView:a,children:[(0,u.jsx)("h2",{children:"My Assignments"}),(0,u.jsx)("ul",{className:io.default.assignments,children:o?.map((e,t)=>{let{title:s,meta:a}=e;return a.relativeUrl?(0,u.jsx)("li",{children:(0,u.jsx)(L.Link,{href:a.relativeUrl,children:s})},`assignment-link-${t}`):(0,u.jsx)("li",{children:`${s} - Link Not Found`},`assignment-link-${t}`)})})]})})]})})]})})}let id=ir;e.s(["LocalEventTabs",()=>iR,"default",()=>iL],53737);var ic=e.i(2448),iu=e.i(16886);function im({page:e,content:t}){let s,{data:a}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),l=a?.page||{},{detailsTabForm:i,scheduleTabForm:o}=l||{},n="details"===t?i:o,{data:r}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!n,variables:{id:n}}),d=r?.contentTypeForm,{data:c}=(0,w.useQuery)(k.ViewerDocument),{viewer:h}=c||{},p=h?.localEventRegistrations&&h.localEventRegistrations.find(t=>t.location===e.id),_=(0,l4.useAuth)({permissions:["edit:local-event"],obj:{id:e.id,type:"local-event"}}),{addToast:f}=(0,S.useToasts)(),{data:g,refetch:v,loading:x}=(0,w.useQuery)(k.LocationDocument,{skip:!_,fetchPolicy:"network-only",variables:{id:e.id}}),{event:j}=(0,ek.useEvent)(e.event),b=g?.location,E=b?.workflow,F=b?.revisionMeta,R=j?.localEventEditStatus||0,L=_&&R>2,P=E?.lastComment,[A,D]=(0,m.useState)(!1),[M,$]=(0,m.useState)(!1),[z,G]=(0,m.useState)(),O=(0,t9.useRouter)(),{isDesktop:I}=(0,ic.useUserInterface)(),Q=d?.fields?(0,T.getFormFields)(d?.fields):[],V=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(Q,b),shouldUnregister:!1}),{handleSubmit:Y,setError:J,reset:K}=V,[X,{loading:Z}]=y(k.UpdateLocalEventDocument),[ee,{loading:et}]=y(k.SubmitLocalEventDocument),[es,{loading:ea}]=y(k.PublishLocalEventDocument),[el,{loading:ei}]=y(k.LockLocationPageDocument),[eo,{loading:en}]=y(k.UnlockLocationPageDocument),er=!g&&x,ed=async e=>{if(G(void 0),!L)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let t={...(0,T.normalizeSubmitFields)(e,[])};return!t||Object.keys(t).length<=0?[null,[{name:"root",error:{type:"400",message:"Input not found."}}]]:[t,[]]},ec=async t=>{let[s,a]=await ed(t),l=[...a,...(0,T.validateRequiredFields)(Q,t,1,"required to save")];if(l.length)return void l.forEach(({name:e,error:t})=>{J(e,t)});if(s)try{let{errors:a}
29=await X({variables:{id:e.id,input:s}});a?(0,T.gqlErrorsToFormErrors)(a,t).forEach(({name:e,error:t})=>{J(e,t)}):G(d?.saveConfirmation||"Saved Revision")}catch(e){J("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},eu=async t=>{let[s,a]=await ed(t),l=[...a,...(0,T.validateRequiredFields)(Q,t,1,"required to save")];if(l.length)return void l.forEach(({name:e,error:t})=>{J(e,t)});if(s)try{let{errors:a}=await X({variables:{id:e.id,input:s}});if(a)(0,T.gqlErrorsToFormErrors)(a,t).forEach(({name:e,error:t})=>{J(e,t)});else{f(N.ToastTypes.SUCCESS,d?.saveConfirmation||"Saved Revision"),eg();let t=`${e?.meta.relativeUrl}?preview=true`;O.push(t,{scroll:!1})}}catch(e){J("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},em=async t=>{let[s,a]=await ed(t),l=[...a,...(0,T.validateRequiredFields)(Q,t,2,"required to submit for moderation")];if(l.length)return void l.forEach(({name:e,error:t})=>{J(e,t)});if(s)try{let{errors:a}=await ee({variables:{id:e.id,input:s}});a?(0,T.gqlErrorsToFormErrors)(a,t).forEach(({name:e,error:t})=>{J(e,t)}):G(d?.moderationConfirmation||"Submitted for Moderation")}catch(e){J("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},eh=async t=>{let[s,a]=await ed(t),l=[...a,...(0,T.validateRequiredFields)(Q,t,3,"required to publish")];if(l.length)return void l.forEach(({name:e,error:t})=>{J(e,t)});if(s)try{let{errors:a}=await es({variables:{id:e.id,input:s}});a?(0,T.gqlErrorsToFormErrors)(a,t).forEach(({name:e,error:t})=>{J(e,t)}):(f(N.ToastTypes.SUCCESS,d?.publishConfirmation||"Published"),eg())}catch(e){J("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},ep=async t=>{try{let{errors:s}=t?await el({variables:{id:e.id}}):await eo({variables:{id:e.id}});s?(0,T.gqlErrorsToFormErrors)(s,{}).forEach(({name:e,error:t})=>{J(e,t)}):await v()}catch(e){J("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},e_=async()=>{$(e=>!e)},ef=async()=>{D(!0),await v(),I||$(!1)},eg=async()=>{D(!1),K(),O.refresh(),await v()},ev=l.chatCardLink?{url:l.chatCardLink,text:l.chatCardLinkLabel||"Open Chat",isNewTab:!0}:void 0,ex=(s=[],E?.status==="in_progress"&&s.push("Submission request is under review."),s.join("<br/>")),ej=(()=>{if(P)return(0,u.jsx)(ss.Alert,{title:"Change Requested",children:P})})(),{richtextAlert:eb,richtextContent:ey}=e;return(0,u.jsx)("div",{className:iu.default.container,children:(0,u.jsx)(C.FormProvider,{...V,children:(0,u.jsxs)(U.FlexContainer,{children:[(0,u.jsxs)(B.MainColumn,{children:[!A&&(0,u.jsxs)("div",{className:iu.default.details,children:[(0,u.jsx)(t3,{localEvent:e,registration:p,isLead:_}),"registration"===t&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(t1,{showLiveStream:!0,page:e}),e.schedule&&(0,u.jsx)(t5,{schedule:e.schedule})]}),"details"===t&&(0,u.jsxs)(u.Fragment,{children:[eb&&(0,u.jsx)(q.HtmlContainer,{className:iu.default["richtext--alert"],html:eb}),ey&&(0,u.jsx)(q.HtmlContainer,{className:iu.default.richtext,html:ey}),!ey&&(0,u.jsx)("div",{className:iu.default.richtext,children:(0,u.jsx)("p",{children:"More information coming soon"})})]})]}),A&&L&&!!n&&(0,u.jsx)(s$,{contentFormId:n,onSave:ec,onSubmit:em,onPreview:eu,onPublish:eh,editLevel:R,editorAlerts:ej,confirmationMsg:z,showControls:!1,showUnsavedMsg:!0})]}),(0,u.jsxs)(H.SideColumn,{children:[_&&!!n&&(0,u.jsx)(ll.FlyOut,{autoOpen:!1,mobileOnly:!0,onOpen:e_,onClose:e_,controlOpen:M,children:(0,u.jsx)(lQ,{onOpen:ef,onClose:eg,onSave:Y(ec),onSubmit:Y(em),onPreview:Y(eu),onPublish:Y(eh),onLock:ep,isEditing:A,isUserEditor:L,contentFormId:n,editLevel:R,revision:F,isReady:!er,isWaiting:Z||et||ea||ei||en,userWelcomeMsg:L?"You are a page editor for this Local Event":"",statusMsg:ex,editorAlerts:ej})}),e.memberships&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(tQ,{leads:e.memberships.filter(t=>t.user===e.owner),title:l.leadsCardTitle,text:l.leadsCardText,contactEmail:e.contactEmail})}),e.socialLinks&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(t8,{socialLinks:e.socialLinks,title:l.socialCardTitle,text:e.contactDescription||l.socialCardText})}),e.venueAddress&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(tW,{address:e.venueAddress,venueName:e.venueName})}),l.showChatCard&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(tO,{title:l.chatCardTitle,text:l.chatCardText,link:ev})})]})]})})})}var ih=e.i(80790);function ip({localEventId:e,showConfirmation:t=!1,showToast:s=!0,onSuccess:a,onClose:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{editLevel:r,canUserRegister:d,registration:c,participationChoices:h,createForm:p,refresh:_,loading:f}=(0,lq.useLocalEventRegistration)({localEventId:e}),{data:g,loading:v}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!p,variables:{id:p}}),x=g?.contentTypeForm,j=x?.fields?(0,T.getFormFields)(x?.fields):[],b=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(j,c)}),{setError:E,formState:{isSubmitting:R,isSubmitSuccessful:L}}=b,[P,{loading:A}]=y(k.CreateLocalEventRegistrationDocument),D=async t=>{if(o(void 0),!d)return void E("root",{type:"401",message:"You do not have permission to perform this action."});let l={...(0,T.normalizeSubmitFields)(t,[]),location:e};if(!l||Object.keys(l).length<=0)return void E("root",{type:"400",message:"Input not found."});let i=(0,T.validateRequiredFields)(j,t,1,"required to save");
29if(i.length)return void i.forEach(({name:e,error:t})=>{E(e,t)});try{let{data:e,errors:i}=await P({variables:{input:l}});if(i)(0,T.gqlErrorsToFormErrors)(i,t).forEach(({name:e,error:t})=>{E(e,t)});else{let t=(0,T.getParticipationConfirmMsg)(e?.createLocalEventRegistration?.level,x?.saveConfirmation);o(t),s&&n(N.ToastTypes.SUCCESS,t),await _(),a&&a()}}catch(e){E("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},q=f||v||A||R,M=x&&d&&!c&&!L;return(0,u.jsxs)(C.FormProvider,{...b,children:[q&&(0,u.jsx)(F.Loader,{}),!q&&M&&(0,u.jsx)(s$,{contentFormId:x.id,onSave:D,editLevel:r,showControls:!0,fieldChoicesOverrides:[{cleanName:"participation",choices:h}]}),!q&&!M&&(L&&t?(0,u.jsx)("p",{children:i||"Registration Complete"}):c?(0,u.jsx)("p",{children:"You are already registered for this local event."}):d?(0,u.jsx)("p",{children:"Having trouble loading your content."}):(0,u.jsx)("p",{children:"Local Event registration is unavailable at this time."}))]})}function i_({registration:e,localEventId:t,showConfirmation:s=!1,showToast:a=!0,onSuccess:l,onClose:i}){let[o,n]=(0,m.useState)(),{addToast:r}=(0,S.useToasts)(),{editLevel:d,canUserEdit:c,participationChoices:h,editForm:p,refresh:_,loading:f}=(0,lq.useLocalEventRegistration)({localEventId:t,registration:e}),{data:g,loading:v}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!p,variables:{id:p}}),x=g?.contentTypeForm,j=x?.fields?(0,T.getFormFields)(x?.fields):[],b=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(j,e)}),{setError:E,formState:{isSubmitting:R,isSubmitSuccessful:L}}=b,[P,{loading:A}]=y(k.UpdateLocalEventRegistrationDocument),D=async s=>{if(n(void 0),!c)return void E("root",{type:"401",message:"You do not have permission to perform this action."});let i={...(0,T.normalizeSubmitFields)(s,[])};if(!i||Object.keys(i).length<=0)return void E("root",{type:"400",message:"Input not found."});let o=(0,T.validateRequiredFields)(j,s,1,"required to save");if(o.length)return void o.forEach(({name:e,error:t})=>{E(e,t)});if(e)try{let{data:o,errors:d}=await P({variables:{id:e?.id,input:{...i,user:e.user,location:t||e.location}}});if(d)(0,T.gqlErrorsToFormErrors)(d,s).forEach(({name:e,error:t})=>{E(e,t)});else{let e=(0,T.getParticipationConfirmMsg)(o?.updateLocalEventRegistration?.level,x?.saveConfirmation);n(e),a&&r(N.ToastTypes.SUCCESS,e),await _(),l&&l()}}catch(e){E("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}else E("root",{type:"500",message:"Registration not found, unable to update."})},q=f||v||A||R,M=!!x&&c&&!!e&&!L;return(0,u.jsxs)(C.FormProvider,{...b,children:[q&&(0,u.jsx)(F.Loader,{}),!q&&M&&(0,u.jsx)(s$,{contentFormId:x.id,onSave:D,editLevel:d,confirmationMsg:o,showControls:!0,fieldChoicesOverrides:[{cleanName:"participation",choices:h}]}),!q&&!M&&(L&&s?(0,u.jsx)("p",{children:o||"Registration Updated"}):e?c?(0,u.jsx)("p",{children:"Having trouble loading your content."}):(0,u.jsx)("p",{children:"Registration unable to be edited at this time."}):(0,u.jsx)("p",{children:"Registration not found, unable to edit."}))]})}function ig({registration:e,showConfirmation:t=!1,showToast:s=!0,onSuccess:a,onClose:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{editLevel:r,canUserEdit:d,participationChoices:c,leadForm:h,refresh:p,loading:_}=(0,lq.useLocalEventRegistration)({registration:e}),{data:f,loading:g}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!h,variables:{id:h}}),v=f?.contentTypeForm,x=v?.fields?(0,T.getFormFields)(v?.fields):[],j=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(x,e)}),{setError:b,formState:{isSubmitting:E,isSubmitSuccessful:R}}=j,[L,{loading:P}]=y(k.UpdateLocalEventRegistrationDocument),A=async t=>{if(o(void 0),!d)return void b("root",{type:"401",message:"You do not have permission to perform this action."});let l={...(0,T.normalizeSubmitFields)(t,[])};if(!l||Object.keys(l).length<=0)return void b("root",{type:"400",message:"Input not found."});let i=(0,T.validateRequiredFields)(x,t,1,"required to save");if(i.length)return void i.forEach(({name:e,error:t})=>{b(e,t)});if(e)try{let{data:i,errors:r}
29=await L({variables:{id:e?.id,input:{...l,user:e.user}}});if(r)(0,T.gqlErrorsToFormErrors)(r,t).forEach(({name:e,error:t})=>{b(e,t)});else{let e=(e=>{switch(e){case"Registered":return"Registrant Participation has been updated!";case"Waitlisted":return"Registrant has been added to the waitlist for this Local Event!";default:return v?.saveConfirmation||"Registration has been updated!"}})(i?.updateLocalEventRegistration?.level);o(e),s&&n(N.ToastTypes.SUCCESS,e),await p(),a&&a()}}catch(e){b("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}else b("root",{type:"500",message:"Registration not found, unable to update."})},D=_||g||P||E,q=!!v&&d&&!!e&&!R;return(0,u.jsxs)(C.FormProvider,{...j,children:[D&&(0,u.jsx)(F.Loader,{}),!D&&q&&(0,u.jsx)(s$,{contentFormId:v.id,onSave:A,editLevel:r,confirmationMsg:i,showControls:!0,fieldChoicesOverrides:[{cleanName:"participation",choices:c}]}),!D&&!q&&(R&&t?(0,u.jsx)("p",{children:i||"Registration Updated"}):e?d?(0,u.jsx)("p",{children:"Having trouble loading your content."}):(0,u.jsx)("p",{children:"Registration unable to be edited at this time."}):(0,u.jsx)("p",{children:"Registration not found, unable to edit."}))]})}var iv=e.i(29431);function ix({eventId:e,showConfirmation:t=!1,showToast:s=!0,onClose:a,onSuccess:l}){let[i,o]=(0,m.useState)(),{addToast:n}=(0,S.useToasts)(),{event:r,loading:d}=(0,ek.useEvent)(e),c=(0,C.useForm)({mode:"onBlur"}),{setError:h,watch:p,formState:{isSubmitting:_,isSubmitSuccessful:f}}=c,g=p("location"),{editLevel:v,canUserRegister:x,canUserEdit:j,registration:b,participationChoices:E,createForm:R,editForm:L,refresh:P,loading:A}=(0,lq.useLocalEventRegistration)({localEventId:g}),D=b?L:R,{data:q,loading:M}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!D,variables:{id:D}}),z=q?.contentTypeForm,G=z?.fields?(0,T.getFormFields)(z?.fields):[],[O,{loading:I}]=y(k.CreateLocalEventRegistrationDocument),[U,{loading:B}]=y(k.UpdateLocalEventRegistrationDocument),W=async e=>{if(o(void 0),!x)return void h("root",{type:"401",message:"You do not have permission to perform this action."});if(!g)return void h("root",{type:"400",message:"You must select a location before submitting."});let t={...(0,T.normalizeSubmitFields)(e,[]),location:g};if(!t||Object.keys(t).length<=0)return void h("root",{type:"400",message:"Input not found."});let a=(0,T.validateRequiredFields)(G,e,1,"required to save");if(a.length)return void a.forEach(({name:e,error:t})=>{h(e,t)});try{let{data:a,errors:i}=await O({variables:{input:t}});if(i)(0,T.gqlErrorsToFormErrors)(i,e).forEach(({name:e,error:t})=>{h(e,t)});else{let e=(0,T.getParticipationConfirmMsg)(a?.createLocalEventRegistration?.level,z?.saveConfirmation);o(e),s&&n(N.ToastTypes.SUCCESS,e),await P(),l&&l()}}catch(e){h("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},H=async e=>{if(o(void 0),!j)return void h("root",{type:"401",message:"You do not have permission to perform this action."});if(!g)return void h("root",{type:"400",message:"You must select a location before submitting."});let t={...(0,T.normalizeSubmitFields)(e,[])};if(!t||Object.keys(t).length<=0)return void h("root",{type:"400",message:"Input not found."});let a=(0,T.validateRequiredFields)(G,e,1,"required to save");if(a.length)return void a.forEach(({name:e,error:t})=>{h(e,t)});if(b)try{let{data:a,errors:i}=await U({variables:{id:b?.id,input:{...t,user:b.user,location:g}}});if(i)(0,T.gqlErrorsToFormErrors)(i,e).forEach(({name:e,error:t})=>{h(e,t)});else{let e=(0,T.getParticipationConfirmMsg)(a?.updateLocalEventRegistration?.level,z?.saveConfirmation);o(e),s&&n(N.ToastTypes.SUCCESS,e),await P(),l&&l()}}catch(e){h("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}else h("root",{type:"500",message:"Registration not found, unable to update."})},Q=I||A||d||B||M||_,V=z&&(x||j),Y=!f&&(!g||x||j),J=[{field:"event",value:r?.id||"",compare:"id"},{field:"live",value:"true",compare:"eq"},{field:"registration_enabled",value:"true",compare:"eq"}];return(0,u.jsx)("div",{className:iv.default.container,children:(0,u.jsxs)(C.FormProvider,{...c,children:[Q&&(0,u.jsx)(F.Loader,{}),!Q&&Y&&(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(e0.LocalEventLookupField,{label:"Local Events",name:"location",filters:J,options:{required:!0},scrollIntoView:!0})}),!Q&&V&&(0,u.jsx)(s$,{contentFormId:z.id,onSave:b?H:W,editLevel:v,confirmationMsg:i,showControls:!0,fieldChoicesOverrides:[{cleanName:"participation",choices:E}]}),!Q&&!V&&(f&&t?(0,u.jsx)("p",{children:i||"Registration Complete"}):g&&!x?(0,u.jsx)("p",{children:"Local Event registration is unavailable at this time"}):g&&!j?(0,u.jsx)("p",{children:"Registration unable to be edited at this time."}):g?(0,u.jsx)("p",{children:"Having trouble loading your content."}):"")]})})}var ij=e.i(93078);
29let ib=function({activeValue:e,onChange:t}){return(0,u.jsxs)("div",{className:ij.default.container,children:[(0,u.jsx)("div",{className:ij.default.heading,children:(0,u.jsx)("span",{className:ij.default.title,children:"Filter Registrations"})}),(0,u.jsx)("ul",{className:ij.default.options,children:(0,u.jsxs)("li",{children:[(0,u.jsx)("label",{htmlFor:"level",children:"Status"}),(0,u.jsx)("div",{className:ij.default.select,children:(0,u.jsxs)("select",{name:"level","aria-label":"Select Status",value:e,onChange:e=>{t(e.target.value)},children:[(0,u.jsx)("option",{className:ij.default.default,value:"",children:"All"}),["Attended Event","Registered","Waitlisted"].map((e,t)=>(0,u.jsx)("option",{value:e,children:e},`${e}-${t}`))]})})]})})]})};var iy=e.i(48423);let iw=function({page:e,allowAdd:t=!0,allowEdit:s=!0,allowBulkEdit:a=!1,allowExport:l=!0}){let i=[{field:"location",value:e.id,compare:"eq"},{field:"user",value:"all",compare:"eq"}],{openModalHandler:o,closeModalHandler:n}=(0,E.useModal)(),[r,d]=(0,m.useState)(!1),[c,h]=(0,m.useState)(""),[p,_]=(0,m.useState)([]),[f,g]=(0,m.useState)(1),[v,x]=(0,m.useState)(),[j,b]=(0,m.useState)([]),[C,T]=(0,m.useState)(!1),[L,P]=(0,m.useState)(!1),{addToast:A}=(0,S.useToasts)(),D=e=>e.filter(e=>""!==e).map(e=>({field:"level",value:e,compare:"eq"})),{event:M}=(0,ek.useEvent)(e.event),[$]=y(k.UpdateLocalEventRegistrationDocument,{onCompleted:e=>{A(N.ToastTypes.SUCCESS,(0,u.jsx)(q.HtmlContainer,{html:"Registration Updated!"})),O()},onError:e=>{A(N.ToastTypes.ERROR,(0,u.jsx)(q.HtmlContainer,{html:"An error occurred while attempting to updated the registration. Please try again or contact an administrator."}))}}),{loading:z,data:G,refetch:O}=(0,w.useQuery)(k.LocalEventRegistrationsDocument,{variables:{first:20,after:1===f?"":(0,eh.encodeCursor)(lu.CursorType.OFFSET,((f-1)*20-1).toString()),q:c,filtering:[...i,...D(p)]}}),I=v?.localEventRegistrations.totalCount||0,U=v?.localEventRegistrations?.edges||[],[B,{loading:W,refetch:H}]=(0,lV.useLazyQuery)(k.LocalEventRegistrationsDocument,{notifyOnNetworkStatusChange:!0,fetchPolicy:"no-cache"});(0,m.useEffect)(()=>{G&&x(G)},[G]);let[Q,{data:V,error:Y,loading:J}]=y(k.ApproveLocalEventRegistrationsDocument,{onCompleted:e=>{A(N.ToastTypes.SUCCESS,(0,u.jsx)(q.HtmlContainer,{html:"All Pending Registrations Approved!"})),O()},onError:e=>{A(N.ToastTypes.ERROR,(0,u.jsx)(q.HtmlContainer,{html:"An error occurred while attempting to approve your registrations. Please try again or contact an administrator."}))}}),K=async()=>{M?.localEventRegistrationStatus&&M?.localEventRegistrationStatus>=2&&await Q({variables:{id:e.id}}),n()},X=async e=>{g(e)},Z=async e=>{g(1),_([e])},ee=async e=>{g(1),h(e)},et=async()=>{n(),await O({first:20,q:c,filtering:[...i,...D(p)]})},es=async()=>{b([]),P(!0),T(!1),l||A(N.ToastTypes.ERROR,(0,u.jsx)(q.HtmlContainer,{html:"Export feature is currently disabled."}));try{let{data:e}=await B({variables:{first:500,after:"",q:c,filtering:[...i,...D(p)]}});b(t=>[...t,...eo(e)]),e?.localEventRegistrations.pageInfo?.hasNextPage&&j.length<1e4?await H({first:500,after:e?.localEventRegistrations.pageInfo?.endCursor}):(T(!0),P(!1),j.length>=1e4&&A(N.ToastTypes.ERROR,(0,u.jsx)(q.HtmlContainer,{html:"Export finished incomplete. Unable to export more than 10000 records at a single time."})))}catch(e){A(N.ToastTypes.ERROR,(0,u.jsx)(q.HtmlContainer,{html:"An error occurred while attempting to export your registrations. Please try again or contact an administrator."}))}},ea=async()=>{_([])},el=()=>{d(!r)},eo=e=>e?.localEventRegistrations.edges&&e.localEventRegistrations.edges.map(({node:e})=>{let t=new Date(e.createdAt||""),s=` 30 ${t.toLocaleDateString("en-US",{day:"2-digit"})} 31 ${t.toLocaleDateString("en-US",{month:"long"})} 32 ${t.toLocaleDateString("en-US",{year:"numeric"})} 33 ${t.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1})} 34 `;return["Attended Event"===e.level?"Yes":"No",e.level||"N/A",e.participation||"N/A",e.userDetails?.email||"N/A",e.userDetails?.fullName||e.userDetails?.username||"N/A",e.userDetails?.country||"N/A",e.parentalName||"N/A",e.parentalEmail||"N/A",e.teamName||"N/A",e.projectSubmitted&&("true"===e.projectSubmitted?"Yes":"No")||"N/A",s||"N/A"]})||[],en=["Registered","Confirmed","Attended Event"];return(0,u.jsxs)("div",{className:iy.default.container,children:[(0,u.jsx)(ll.FlyOut,{controlOpen:r,onOpen:el,onClose:el,fixedToggle:!1,children:(0,u.jsx)(ib,{activeValue:p[0]||"",onChange:Z})}),(0,u.jsxs)("div",{className:iy.default.meta,children:[(0,u.jsxs)("div",{className:iy.default.stats,children:[(0,u.jsxs)("dl",{className:iy.default.stat,children:[(0,u.jsx)("dt",{children:"In-Person Registered Participants"}),(0,u.jsxs)("dd",{children:[e.realTimeRegistrations||0," / ",e.registrationLimit||0]})]}),(0,u.jsxs)("dl",{className:iy.default.stat,children:[(0,u.jsx)("dt",{children:"In-Person Waitlisted Participants"}),(0,u.jsx)("dd",{children:e.realTimeWaitlist||0})]}),(0,u.jsxs)("dl",{className:iy.default.stat,children:[(0,u.jsx)("dt",{children:"Virtual Registered Participants"}),(0,u.jsxs)("dd",{children:[e.realTimeVirtualRegistrations||0," / ",e.virtualRegistrationLimit||0]})]}),(0,u.jsxs)("dl",{className:iy.default.stat,children:[(0,u.jsx)("dt",{children:"Virtual Waitlisted Participants"}),(0,u.jsx)("dd",{children:e.realTimeVirtualWaitlist||0})]})]}),(0,u.jsxs)("div",{className:iy.default.controls,children:[l&&(0,u.jsx)(R.Button,{icon:"spaceapps/refresh",iconPosition:"before",theme:"transparent",size:"xs",onClick:es,disabled:L,children:L?"Generating ...":C?"Re-Generate Export":"Generate Export"}),l&&C&&(0,u.jsxs)(ih.CSVLink,{className:iy.default.link,filename:`${e.meta.slug||"participants"}_export.csv`,data:[["Attended Event","Status","Type","Email","Name","Location","Parent/Guardian Name","Parent/Guardian Email","Team Name","Project Submitted","Created At"],...j],asyncOnClick:!1,onClick:()=>(L||T(!1),!L),children:[(0,u.jsx)(ei.Icon,{slug:"spaceapps/download"})," ",L?"Loading Export ...":"Download Export"]}),a&&(0,u.jsx)(R.Button,{icon:"spaceapps/double-check",iconPosition:"before",theme:"secondary",onClick:()=>{o({content:(0,u.jsxs)("div",{className:iy.default["modal-wrap"],children:[J&&(0,u.jsx)(F.Loader,{}),Y&&(0,u.jsx)(se.FormError,{children:(0,u.jsx)(q.HtmlContainer,{html:Y.message})}),!J&&!V&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:iy.default["modal-text"],children:"Approve pending registrations?"}),(0,u.jsx)("div",{className:iy.default["modal-text"],children:"This action will approve up to 100 pending registrations each time, waitlisted participants are excluded."}),(0,u.jsxs)("div",{className:iy.default.actions,children:[(0,u.jsx)(R.Button,{onClick:K,children:"Approve All"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:et,children:"No, Thanks"})]})]})]}
34),title:"Approve All Registrations"})},children:"Confirm All"}),t&&(0,u.jsx)(R.Button,{icon:"spaceapps/plus",iconPosition:"before",theme:"secondary",onClick:()=>{t&&o({content:(0,u.jsx)("div",{className:iy.default["modal-wrap"],children:(0,u.jsx)(ip,{localEventId:e.id,onClose:et})}),title:"Add Registration"})},children:"Add Registration"})]})]}),(0,u.jsxs)("div",{className:iy.default["search-bar"],children:[(0,u.jsxs)("div",{className:iy.default["search-field"],children:[(0,u.jsx)("input",{className:iy.default.input,name:"keyword",placeholder:"Search Registrations",type:"text",value:c,onChange:e=>ee(e.target.value)}),(0,u.jsx)("button",{className:iy.default["search-submit"],onClick:()=>ee(c),children:(0,u.jsx)(ei.Icon,{slug:"spaceapps/search"})}),""!==c&&(0,u.jsx)("button",{className:iy.default.reset,onClick:()=>{h(""),_([])}})]}),(0,u.jsx)(R.Button,{icon:"spaceapps/search",theme:"secondary",size:"sm",onClick:()=>ee(c)}),(0,u.jsx)(R.Button,{icon:"spaceapps/filter",onClick:el,size:"sm"}),p&&p.length>0&&(0,u.jsx)(lh.TagsList,{filters:p,onRemoveFilter:ea})]}),(0,u.jsxs)("div",{className:iy.default["table-container"],children:[(0,u.jsxs)("div",{className:iy.default["table-meta"],children:["Now showing ",20>I?I:20," of ",I," registrations."]}),(0,u.jsxs)("div",{className:iy.default["results-container"],children:[z&&(0,u.jsx)("div",{className:iy.default["loading-overlay"],children:(0,u.jsx)(F.Loader,{})}),(!U||U.length<=0)&&(0,u.jsx)("div",{className:iy.default["not-found"],children:"No Registrations Found."}),U&&U.length>0&&(0,u.jsxs)("table",{className:iy.default.table,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{className:iy.default.table__heading,children:[(0,u.jsx)("th",{children:"Attended Event"}),(0,u.jsx)("th",{children:"Status"}),(0,u.jsx)("th",{children:"Type"}),(0,u.jsx)("th",{children:"Email"}),(0,u.jsx)("th",{children:"Name"}),(0,u.jsx)("th",{children:"Location"}),(0,u.jsx)("th",{children:"Parent / Guardian Name"}),(0,u.jsx)("th",{children:"Parent / Guardian Email"}),(0,u.jsx)("th",{children:"Team Name"}),(0,u.jsx)("th",{children:"Project Submitted"}),(0,u.jsx)("th",{children:"Created At"}),s&&(0,u.jsx)("th",{children:"Actions"})]})}),(0,u.jsx)("tbody",{children:U&&U.map(({node:t},a)=>{let l=(e=>{switch(e.toLowerCase()){case"waitlisted":return"waitlisted";case"attended event":return"checked-in";default:return"registered"}})(t.level||"");return(0,u.jsxs)("tr",{className:`${iy.default.table__row} ${iy.default[a%2==0?"even":"odd"]} ${s?iy.default.editable:""}`,children:[(0,u.jsx)("td",{children:(0,u.jsx)(lA.ToggleSwitch,{name:t.id,checked:"Attended Event"===t.level,disabled:!en.includes(t.level||""),showInnerText:!1,onChange:async s=>{let a={level:s?"Attended Event":"Registered",participation:t.participation,user:t.user,location:e.id};await $({variables:{id:t.id,input:a}})}})}),(0,u.jsx)("td",{children:(0,u.jsxs)("span",{translate:"no",className:iy.default["icon-with-text"],children:[(0,u.jsx)(ei.Icon,{slug:`spaceapps/${l}`}),(0,u.jsx)("span",{translate:"yes",children:t.level})]})}),(0,u.jsx)("td",{children:t.participation||"Not Found"}),(0,u.jsx)("td",{children:(0,u.jsx)("strong",{children:t.userDetails?.email})}),(0,u.jsx)("td",{children:t.userDetails?.fullName||t.userDetails?.username}),(0,u.jsx)("td",{children:t.userDetails?.country||"N/A"}),(0,u.jsx)("td",{children:t.parentalName||"N/A"}),(0,u.jsx)("td",{children:t.parentalEmail||"N/A"}),(0,u.jsx)("td",{children:t.teamName||"N/A"}),(0,u.jsx)("td",{children:t.projectSubmitted&&("true"===t.projectSubmitted?"Yes":"No")||"N/A"}),(0,u.jsx)("td",{children:(0,u.jsx)(eb.Datetime,{timestamp:t.createdAt||"",format:"datetime"})}),s&&(0,u.jsx)("td",{children:(0,u.jsxs)("div",{className:iy.default["button-group"],children:[(0,u.jsx)(R.Button,{size:"sm",theme:"transparent",icon:"spaceapps/edit",onClick:()=>(e=>{s&&o({content:(0,u.jsx)("div",{className:iy.default["modal-wrap"],children:(0,u.jsx)(ig,{registration:e,onClose:et,onSuccess:et})}),title:"Edit Registration"})})(t)}),(0,u.jsx)(R.Button,{size:"sm",theme:"transparent",icon:"spaceapps/trash",onClick:()=>{o({content:(0,u.jsx)("div",{className:iy.default["modal-wrap"],children:(0,u.jsx)(lM,{registration:t,onSuccess:et,onClose:et})}),title:"Cancel Registration"})}})]})})]},`row-${t.id}`)})})]})]}),(0,u.jsx)(lm.Pagination,{onPageChange:X,totalCount:I,siblingCount:1,currentPage:f,pageSize:20})]})]})};var iC=e.i(75754);function ik({team:e,localEvent:t,disableNominations:s=!1,disablePeoplesChoice:a=!1,onRefresh:l}){let{openModalHandler:i,closeModalHandler:o}=(0,E.useModal)(),{addToast:n}=(0,S.useToasts)(),[r,{loading:d}]=y(k.UpdateLocalEventDocument),[c,{loading:m}]=y(k.AddNominationDocument),[h,{loading:p}]=y(k.RemoveNominationDocument),{event:_}=(0,ek.useEvent)(e.event),{localEventJudgingStatus:f}=_||{},g=(0,l4.useAuth)({permissions:["edit:local-event"],obj:{id:t.id,type:"local-event"}})&&!!f&&f>1,v=async s=>{if(g)try{let{errors:a}
34=await h({variables:{id:t.id,input:{teams:[s]}}});a?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(a)||"Failed to remove this nomination"):(n(N.ToastTypes.SUCCESS,`Nomination removed from ${e.title}.`),l&&await l())}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.")},x=async s=>{if(g)try{let{errors:a}=await c({variables:{id:t.id,input:{teams:[s]}}});a?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(a)||`Failed to nominate ${e.title}`):(n(N.ToastTypes.SUCCESS,`Nominated ${e.title}!`),l&&await l())}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.")},j=async s=>{if(g)try{let a=t.peoplesChoiceTeam===s?"":s,{errors:i}=await r({variables:{id:t.id,input:{peoplesChoiceTeam:a}}});i?n(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(i)||"Failed to update people's choice"):(n(N.ToastTypes.SUCCESS,`People's Choice selected ${e.title}!`),l&&await l())}catch(e){n(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else n(N.ToastTypes.ERROR,"You do not have permission to perform this action.")},b=async e=>{t.teamNominations&&t.teamNominations.includes(e)?await v(e):await x(e)},w=!!t.teamNominations&&t.teamNominations.includes(e.id),C=t.peoplesChoiceTeam===e.id,F=!t?.availableNominations||!t.teamNominations||t.availableNominations<=t.teamNominations.length,P=m||p;return(0,u.jsxs)("div",{className:iC.default.container,children:[(0,u.jsx)("div",{className:iC.default["vote-actions"],children:(0,u.jsx)(R.Button,{size:"sm",loading:P,disabled:P||!w&&(s||F),theme:w?"primary":"secondary",onClick:()=>b(e.id),children:w?"Nominated":s?"Nominations Full":"Nominate this Team"})}),!a&&(0,u.jsx)(R.Button,{size:"sm",theme:C?"primary":"outline",icon:"spaceapps/award",loading:d,disabled:d||a,tooltip:C?"Remove People's Choice":"Select People's Choice",onClick:()=>j(e.id),children:C?(0,u.jsx)("span",{children:"People's Choice"}):""}),(0,u.jsx)(R.Button,{size:"sm",theme:"outline",icon:"spaceapps/info",tooltip:"Project Quick View",onClick:()=>{i({content:(0,u.jsx)(lU,{onClose:o,team:e})})}}),e.meta.relativeUrl&&(0,u.jsx)(L.Link,{href:`${e.meta.relativeUrl}?tab=project`,icon:"spaceapps/external",appearance:"button",size:"sm",theme:"outline",target:"_blank",rel:"noreferrer noopener",tooltip:"Open Project Page"})]})}var iN=e.i(47724);let iT=function({page:e,fetchSize:t=20}){let{data:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),a=s?.page||{},{event:l}=(0,ek.useEvent)(e.event),{teamsJudgingFilter:i,judgingTabContent:o}=a,{isTeamPagesActive:n,localEventJudgingStatus:r}=l||{},d=(0,l4.useAuth)({permissions:["edit:local-event"],obj:{id:e.id,type:"local-event"}})&&!!r&&r>1,{data:c,loading:h,refetch:p}=(0,w.useQuery)(k.LocationDocument,{skip:!e.id||!d,fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",variables:{id:e.id}}),_=c?.location,{filterFields:f,filterEvent:g,loading:v,getFetchFilters:x}=(0,lt.useFilterForm)(i,e),j=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(f,{}),shouldUnregister:!1}),{getValues:b,watch:y}=j,N=b(),{data:E,loading:S,refetch:R,fetchMore:L}=(0,w.useQuery)(k.TeamsDocument,{skip:!n||!_,variables:{first:t,after:"",q:N.keyword||"",filtering:[...x(N)]}}),P=E?.teams.edges||[];(0,m.useEffect)(()=>{let e=y((e,{name:s,type:a})=>{let l=b();R({first:t,after:"",q:l.keyword||"",filtering:[...x(l)]})});return()=>e.unsubscribe()},[t,y,R,b,x]);let A=async()=>{await R()},D=async()=>{let e=E?.teams.pageInfo;e?.hasNextPage&&await L({variables:{after:e?.endCursor}})},M=async()=>{p()},$=`Currently returning ${E?.teams.totalCount||0} teams`,z=S||h;return(0,u.jsxs)("div",{children:[(0,u.jsx)(Y.Container,{size:"md",children:_&&P&&P.length>0&&(0,u.jsxs)("div",{className:iN.default.content,children:[(0,u.jsxs)("p",{className:iN.default["local-lead-info"],children:["Welcome, Local Leads! You have received ",(0,u.jsx)("strong",{children:_.projectsSubmitted||0})," total project submissions at your Local Event. ",(0,u.jsx)("br",{})," You may nominate"," ",(0,u.jsx)("strong",{children:_.availableNominations||0})," projects for Global Judging."]}),o&&(0,u.jsx)(q.HtmlContainer,{html:o})]})}),(0,u.jsx)(C.FormProvider,{...j,children:i&&(0,u.jsx)(ln,{filterFormId:i,onSubmit:A,lookupEvent:g,resultsMessage:$,isLoading:v})}),z&&(0,u.jsx)(F.Loader,{}),!z&&0===P.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Teams Found."})}),!z&&P&&_&&(0,u.jsx)("div",{className:iN.default.results,children:P.map(({node:e})=>(0,u.jsx)(sw,{team:e,showLocation:!1,children:(0,u.jsx)(ik,{team:e,localEvent:_,onRefresh:M,disablePeoplesChoice:!0})},`team_${e.id}`))}),E&&(0,u.jsx)(le.LoadMore,{isLoading:S,hasMore:E.teams.pageInfo?.hasNextPage,onLoadMore:D})]})};var iE=e.i(19702);let iS=function({page:e,fetchSize:t=20}){let{data:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),a=s?.page||{},{event:l}=(0,ek.useEvent)(e.event),{teamsFilter:i}=a,{isTeamPagesActive:o,teamEditStatus:n,teamRegistrationStatus:r,eventPages:d}=l||{},{data:c}=(0,w.useQuery)(k.PageDocument,{skip:!d?.createTeamPage,variables:{input:d?.createTeamPage}}),{filterFields:h,filterEvent:p,loading:_,getFetchFilters:f}=(0,lt.useFilterForm)(i,e),g=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(h,{}),shouldUnregister:!1}),{getValues:v,watch:x}=g,j=v(),{data:b,loading:y,refetch:N,fetchMore:E}=(0,w.useQuery)(k.TeamsDocument,{skip:!o,variables:{first:t,after:"",q:j.keyword||"",filtering:[...f(j)]}}),S=b?.teams.edges||[];(0,m.useEffect)(()=>{let e=x((e,{name:s,type:a})=>{let l=v();N({first:t,after:"",q:l.keyword||"",filtering:[...f(l)]})});return()=>e.unsubscribe()},[t,x,N,v,f]);let R=async()=>{await N()},P=async()=>{let e=b?.teams.pageInfo;e?.hasNextPage&&await E({variables:{after:e?.endCursor}})},A=(n??0)>1&&c?.page.meta.relativeUrl?(0,u.jsx)(L.Link,{href:c.page.meta.relativeUrl,icon:"spaceapps/profile",appearance:"button",theme:"secondary",size:"sm",children:c.page.title}):null,D=`Currently returning ${b?.teams.totalCount||0}
34 teams`,M=!!r&&r>1;return(0,u.jsxs)("div",{children:[(0,u.jsx)(Y.Container,{size:"md",children:a.teamsTabContent&&(0,u.jsx)(q.HtmlContainer,{className:iE.default.content,html:a.teamsTabContent})}),(0,u.jsx)(C.FormProvider,{...g,children:i&&(0,u.jsx)(ln,{filterFormId:i,onSubmit:R,lookupEvent:p,formActions:A,resultsMessage:D,isLoading:_})}),y&&(0,u.jsx)(F.Loader,{}),!y&&0===S.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Teams Found."})}),!y&&S&&(0,u.jsx)("div",{className:iE.default.results,children:S.map(({node:e})=>(0,u.jsx)(sL,{team:e,showJoinBadge:M},`team_${e.id}`))}),b&&(0,u.jsx)(le.LoadMore,{isLoading:y,hasMore:b?.teams.pageInfo?.hasNextPage,onLoadMore:P})]})};var iF=e.i(8173);function iR({page:e}){let t=(0,l4.useAuth)({permissions:["edit:local-event"],obj:{id:e.id,type:"local-event"}}),{data:s,loading:a}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),l=s?.page||{},{event:i}=(0,ek.useEvent)(e.event),o=t&&l.showParticipantTab&&i?.localEventEditStatus&&i.localEventEditStatus>0,n=t&&l.showJudgingTab&&i?.localEventJudgingStatus&&i.localEventJudgingStatus>0,r=i?.isTeamPagesActive&&l.showTeamsTab,d=[{label:l.detailsTabLabel||"Details",live:!0,panel:(0,u.jsx)(im,{page:e,content:"details"}),slug:"details"},{label:l.scheduleTabLabel||"Registrations & Schedule",live:!0,panel:(0,u.jsx)(im,{page:e,content:"registration"}),slug:"schedule"},{label:l.participantTabLabel||"Participants",live:o||!1,panel:(0,u.jsx)(iw,{page:e,allowAdd:!1,allowEdit:!0}),slug:"participants"},{label:l.judgingTabLabel||"Judging",live:n||!1,panel:(0,u.jsx)(iT,{page:e}),slug:"judging"},{label:l.teamsTabLabel||"Teams",live:r||!1,panel:(0,u.jsx)(iS,{page:e}),slug:"teams"}];return(0,u.jsxs)("div",{className:iF.default.container,children:[a&&(0,u.jsx)(F.Loader,{}),!a&&(0,u.jsx)(lg.TabbedContent,{tabs:d})]})}let iL=iR;e.s(["LocalEventIndex",()=>iI,"default",()=>iU],1236);var iP=e.i(71725),iA=e.i(47155),iD=e.i(96297),iq=e.i(5646),iM=e.i(15198);let i$=function({eventOptions:e,onSubmit:t}){let{handleSubmit:s,register:a,getValues:l,setValue:i}=(0,C.useFormContext)(),o=(0,iD.useGeolocation)(),n=l("keyword");return(0,u.jsxs)("form",{className:iM.default.container,onSubmit:s(e=>{t&&t(e)}),children:[(0,u.jsxs)("div",{className:iM.default.search,children:[(0,u.jsxs)("div",{className:iM.default["search-bar"],children:[(0,u.jsx)("input",{className:iM.default["search-input"],placeholder:"Enter an event name, city or country...",type:"text",...a("keyword")}),""!==n&&(0,u.jsx)("button",{type:"button",className:iM.default.reset,onClick:()=>i("keyword","")})]}),(0,u.jsx)("button",{className:iM.default.submit,children:(0,u.jsx)(ei.Icon,{slug:"spaceapps/search"})})]}),(0,u.jsxs)("div",{className:iM.default.filters,children:[o&&(0,u.jsxs)("div",{className:iM.default.filter,children:[(0,u.jsx)("span",{className:iM.default["group-label"],children:"From My Location"}),(0,u.jsxs)("div",{className:iM.default["field-group"],children:[(0,u.jsx)(e6.Select,{theme:"dark",name:"distance",placeholder:"All",choices:"20,50,100,200"}),(0,u.jsx)(e6.Select,{theme:"dark",name:"units",defaultValue:"Miles",choices:"Miles,Kilometers"})]})]}),(0,u.jsxs)("div",{className:iM.default.filter,children:[(0,u.jsx)("span",{className:iM.default["group-label"],children:"Attendance Type"}),(0,u.jsx)("div",{className:iM.default["field-group"],children:(0,u.jsx)(e6.Select,{theme:"dark",name:"eventType",placeholder:"All",choices:"Virtual,In-Person"})})]}),(0,u.jsxs)("div",{className:iM.default.filter,children:[(0,u.jsx)("span",{className:iM.default["group-label"],children:"Location Enrollment"}),(0,u.jsx)("div",{className:iM.default["field-group"],children:(0,u.jsx)(e6.Select,{theme:"dark",name:"registrationType",placeholder:"All",choices:"Open,Closed"})})]}),e&&(0,u.jsxs)("div",{className:iM.default.filter,children:[(0,u.jsx)("span",{className:iM.default["group-label"],children:"Event"}),(0,u.jsx)("div",{className:iM.default["field-group"],children:(0,u.jsx)(e6.Select,{theme:"dark",name:"event",choices:e})})]})]})]})};var iz=e.i(52476);let iG=function({selectedLocalEvent:e,openLocations:t,loading:s}){let a=(0,iD.useGeolocation)(),l=a&&new iP.LngLat(a.coords.longitude,a.coords.latitude),{data:i}=(0,w.useQuery)(k.ViewerDocument),o=i?.viewer?.localEventRegistrations&&i.viewer.localEventRegistrations||[],{watch:n}=(0,C.useFormContext)(),{keyword:r,distance:d,units:c,eventType:h,registrationType:p}=n();(0,m.useEffect)(()=>{let t=window.document.getElementById(`event_card_${e}`);t&&t.scrollIntoView()},[e]);let _=t&&t.map(e=>{let t=e.node.geometry?.coordinates;return{id:e.node.properties.id,country:e.node.properties.country||"",dis
34playName:e.node.properties.displayName||"",title:e.node.properties.title||"",isVirtual:e.node.properties.isVirtual||!1,isHybrid:e.node.properties.isHybrid||!1,isHostEvent:e.node.properties.isHostEvent||!1,isRegistrationOpen:e.node.properties.isRegistrationOpen||!1,page:e.node.properties,numRegistered:e.node.properties.cachedRegistrations||0,href:e.node.properties.meta.htmlUrl||void 0,venueGeoLocation:t?new iP.LngLat(t[0],t[1]):void 0,geometry:e.node.geometry||void 0}})||[];if(""!==r&&void 0!==r){let e=RegExp(`${r}`,"gi");_=_.filter(t=>t.country.match(e)||t.displayName.match(e)||t.title.match(e))}if(l&&""!==d){let e="Miles"===c?1609.34:1e3;_=_.filter(t=>t.venueGeoLocation&&t.venueGeoLocation.distanceTo(l)/e<Number(d))}"Virtual"===h&&(_=_.filter(e=>e.isVirtual)),"In-Person"===h&&(_=_.filter(e=>e.isHybrid||!e.isVirtual)),"Hybrid"===h&&(_=_.filter(e=>e.isHybrid)),"Open"===p&&(_=_.filter(e=>e.isRegistrationOpen)),"Closed"===p&&(_=_.filter(e=>!e.isRegistrationOpen));let f=i?.viewer?.localEventRegistrations?.map(e=>e.location)||[],g=_.map(e=>({...e,isRegistered:f.includes(e.id)}
34)),v=g?.filter(e=>e.isHostEvent)||[],x=g?.filter(e=>f?.includes(e.id)&&!e.isHostEvent)||[],j=g?.filter(e=>!f?.includes(e.id)&&!e.isHostEvent&&void 0!==e.venueGeoLocation)||[];return j.sort((e,t)=>{let s,a;return((e,t)=>{if(!l||!e.venueGeoLocation||!t.venueGeoLocation)return 0;let s=l.distanceTo(e.venueGeoLocation),a=l.distanceTo(t.venueGeoLocation);return s>a?1:s<a?-1:0})(e,t)||(s=e.displayName.toUpperCase(),s>(a=t.displayName.toUpperCase())?1:s<a?-1:0)}),(0,u.jsxs)("div",{className:iz.default.container,children:[(0,u.jsx)("ul",{className:iz.default["local-events"],children:[...v,...x,...j].map((t,s)=>{let{country:a,displayName:l,numRegistered:n,page:r}=t,d=o.find(e=>e.location===t.id),c=i?.viewer?.localEvents&&i.viewer.localEvents.some(e=>e.id===t.id),m=(0,u.jsxs)("div",{className:`${iz.default["local-event-content"]} ${t.id===e?iz.default.selected:""}`,children:[(0,u.jsxs)("div",{className:iz.default["local-event-info"],children:[(0,u.jsx)("div",{className:iz.default["local-event-image"],children:(0,u.jsx)(tZ,{name:l,type:"wide",size:"thumbnail",alternate:s%2!=0})}),(0,u.jsxs)("div",{className:iz.default["local-event-details"],children:[(0,u.jsx)("h3",{className:iz.default["local-event-subtitle"],children:a}),(0,u.jsx)("h2",{className:iz.default["local-event-title"],children:l}),(0,u.jsx)("div",{className:iz.default["local-event-text"],children:`${n} Participating`})]})]}),(0,u.jsx)(t3,{localEvent:r,registration:d,isLead:c,size:"sm"})]});return(0,u.jsx)("li",{id:`event_card_${t.id}`,className:`${iz.default["local-event"]} ${t.isHostEvent?iz.default.pinned:""}`,children:t.href?(0,u.jsx)(L.Link,{className:iz.default["local-event-link"],href:t.href,children:m}):m},`${t.id}-${s}`)})}),s&&(0,u.jsx)(F.Loader,{})]})};var iO=e.i(7524);function iI({page:e,fetchSize:t=500}){let[s,a]=(0,m.useState)([]),[l,i]=(0,m.useState)(""),[o,n]=(0,m.useState)(!0),{addToast:r}=(0,S.useToasts)(),{localEventsFilter:d}=e,{filterFields:c,filterEvent:h,loading:p,getFetchFilters:_}=(0,lt.useFilterForm)(d,e),{event:f}=(0,ek.useEvent)(e.event),g=(0,C.useForm)({values:{keyword:"",distance:"",units:"Miles",eventType:"",registrationType:"",event:f?.name||""}}),{watch:v}=g,x=v(),j=(c&&c.find(e=>"event_name"===e.cleanName)?.choices)?.split("|")||[],b=(0,iD.useGeolocation)(),[y,T]=(0,iA.useMapbox)({mapboxStyleUrl:e.mapboxStyleUrl||""}),{data:E,loading:F,fetchMore:R}=(0,w.useQuery)(k.OpenLocationsDocument,{variables:{first:t,filtering:[..._([])]}});(0,m.useEffect)(()=>{if(!E)return;let e=new Set,s=0,l=!0,i=async o=>{try{let n=(o.openLocations.edges||[]).filter(t=>{let s=t.node.properties.id;return!e.has(s)&&(e.add(s),!0)});s+=n.length,l&&a(e=>[...e,...n]);let{endCursor:r,hasNextPage:d}=o.openLocations.pageInfo||{};if(d&&s<5e3){let e=await R({variables:{first:t,after:r,filtering:[..._([])]}});e?.data&&l&&await i(e.data)}}catch(e){r(N.ToastTypes.ERROR,"Unable finish loading local events")}};return i(E),()=>{l=!1}},[E,R,t]);let L=b&&new iP.LngLat(b.coords.longitude,b.coords.latitude),P=s.filter(({node:e})=>{let t=e.properties;if(!e.geometry||"Open"===x.registrationType&&!t.registrationEnabled||"Closed"===x.registrationType&&t.registrationEnabled||"Hybrid"===x.eventType&&(!t.eventType?.toLowerCase().includes("virtual")||!t.eventType?.toLowerCase().includes("person"))||"Virtual"===x.eventType&&!t.eventType?.toLowerCase().includes("virtual")||"In-Person"===x.eventType&&!t.eventType?.toLowerCase().includes("person"))return!1;if(L&&""!==x.distance){let t="Miles"===x.units?1609.34:1e3,s=e.geometry?.coordinates&&new iP.LngLat(e.geometry.coordinates[0],e.geometry.coordinates[1]);if(s&&s.distanceTo(L)/t>Number(x.distance))return!1}return!0}),A=(0,m.useCallback)(e=>e.map(({node:e})=>{let t=e.geometry||{coordinates:[-80.6506,28.5858193]};return{type:"Feature",id:283948*Math.random(),properties:{...e.properties,icon:"Place Pin"},geometry:{...t,type:"Point"}}})||[],[]),D=(0,m.useCallback)(e=>{let t=e.getSource("localEvents");t&&"geojson"===t.type?t.setData({type:"FeatureCollection",features:P&&A(P)||[]}):(e.addSource("localEvents",{type:"geojson",data:{type:"FeatureCollection",features:P&&A(P)||[]}}),e.addLayer({id:"pins",type:"symbol",source:"localEvents",layout:{"icon-image":"Place Pin","icon-allow-overlap":!0,"text-field":["get","displayName"],"text-font":["Source Sans Pro Bold","Arial Unicode MS Bold"],"text-transform":"uppercase","text-offset":[0,-1.5],"text-anchor":"center","text-allow-overlap":!0,"text-padding":4,"text-size":14},paint:{"text-opacity":["case",["boolean",["feature-state","hover"],!1],1,0],"text-color":"#151622","text-halo-color":"#FFF","text-halo-width":.5,"text-halo-blur":1}}
34),e.addLayer({id:"markers",type:"circle",source:"localEvents",paint:{"circle-radius":{stops:[[1,3],[7,10]]},"circle-color":"transparent","circle-stroke-width":["case",["boolean",["feature-state","hover"],!1],7,0],"circle-stroke-color":"rgba(21, 22, 34, 0.25)"}}))},[P,A]);(0,m.useEffect)(()=>{if(y)if(y.isStyleLoaded())D(y);else{y.on("load",()=>{D(y),y.resize(),b&&y.flyTo({center:[b.coords.longitude,b.coords.latitude],duration:1e3,essential:!0})});let e=null;y.on("mouseenter","pins",t=>{y.getCanvas().style.cursor="pointer",t.features&&t.features.length>0&&(e&&y.setFeatureState({source:"localEvents",id:e},{hover:!1}),(e=t.features[0].id)&&y.setFeatureState({source:"localEvents",id:e},{hover:!0}))}),y.on("mouseleave","pins",()=>{y.getCanvas().style.cursor="",e&&y.setFeatureState({source:"localEvents",id:e},{hover:!1}),e=null}),y.on("click",e=>{let t=y.queryRenderedFeatures(e.point,{layers:["pins"]});if(t&&t.length>0){let e=t[0],s="Point"===e.geometry.type?e.geometry.coordinates:void 0;i(e.properties&&e.properties.id),n(!0),s&&y.flyTo({center:new iP.LngLat(s[0],s[1]),duration:1e3,essential:!0,zoom:7})}})}},[y,E,P,b,D]);let q=()=>{n(!o)};return(0,u.jsxs)("div",{className:iO.default.container,children:[(0,u.jsxs)("div",{className:iO.default.data,children:[!e.mapboxStyleUrl&&(0,u.jsx)("div",{className:iO.default["not-found"],children:"Map Style Not Found."}),e.mapboxStyleUrl&&(0,u.jsx)("div",{className:iO.default.map,ref:T,id:"map"}),(0,u.jsx)("div",{className:iO.default.gradient}),(0,u.jsxs)(C.FormProvider,{...g,children:[(0,u.jsx)(i$,{eventOptions:j.join("|")}),(0,u.jsx)(ll.FlyOut,{controlOpen:o,onOpen:q,onClose:q,theme:"full",children:(0,u.jsx)(iG,{selectedLocalEvent:l,openLocations:s,loading:F})})]})]}),e.pageFooter&&(0,u.jsx)("div",{className:iO.default.footer,children:(0,u.jsx)(iq.PageSection,{theme:"slate-gray",children:(0,u.jsx)(tN,{blocks:e.pageFooter.content,direction:"row",theme:"dark"})})})]})}let iU=iI;function iB({localEvent:e}){let{openModalHandler:t,closeModalHandler:s}=(0,E.useModal)(),{isWaitlisted:a,canUserRegister:l,canUserCancel:i,canUserEdit:o,registration:n}=(0,lq.useLocalEventRegistration)({localEventId:e.id}),r=n?.location===e.id;return l?(0,u.jsxs)(l0.CtaContainer,{children:[!!n&&!r&&(0,u.jsx)(R.Button,{icon:"spaceapps/edit",iconPosition:"before",size:"sm",onClick:()=>void t({requirements:{authenticated:!0,event:e?.event??void 0},title:"Switch Participation To This Local Event",content:n?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:`You are already registered for ${n?.locationDetails?.title||"a different Local Event"}`}),(0,u.jsx)(i_,{registration:n,localEventId:e.id,onSuccess:s})]}):"Registration not found."}),children:"Switch Participation To This Local Event"}),!n&&(0,u.jsx)(R.Button,{icon:"spaceapps/plus",iconPosition:"before",size:"sm",onClick:()=>void t({requirements:{authenticated:!0,event:e?.event??void 0},title:"Confirm Registration",content:(0,u.jsx)(ip,{localEventId:e.id,onSuccess:s})}),children:"Sign Up For This Local Event"}),r&&o&&e.isHybrid&&(0,u.jsx)(R.Button,{icon:"spaceapps/edit",iconPosition:"before",size:"sm",onClick:()=>void t({requirements:{authenticated:!0,event:e?.event??void 0},title:"Change Participation Type",content:n?(0,u.jsx)(i_,{registration:n,onSuccess:s}):"Registration not found."}),children:"Change Participation Type"}),r&&a&&i&&(0,u.jsx)(R.Button,{theme:"important",icon:"spaceapps/close",iconPosition:"before",size:"sm",onClick:()=>void t({requirements:{authenticated:!0,event:e?.event??void 0},title:"Cancel Waitlist Registration",content:n?(0,u.jsx)(lM,{registration:n,onSuccess:s}):"Registration not found."}),children:"Cancel Waitlist Request"}),r&&!a&&i&&(0,u.jsx)(R.Button,{theme:"important",icon:"spaceapps/close",iconPosition:"before",size:"sm",onClick:()=>void t({requirements:{authenticated:!0,event:e?.event??void 0},title:"Cancel Local Event Registration",content:n?(0,u.jsx)(lM,{registration:n,onSuccess:s}):"Registration not found."}),children:"Cancel Local Event Registration"})]}):null}e.s(["LocalEventRegistrationCta",()=>iB,"default",()=>iW],63096);let iW=iB;function iH({redirect:e}){let t=(0,t9.useRouter)(),{data:s}=(0,w.useQuery)(k.SiteFormSettingsDocument),a=s?.siteByHostname.formSettings.logoutForm,[l]=y(k.LogoutUserDocument),{data:i}=(0,w.useQuery)(k.ViewerDocument),o=i?.viewer?.user,n=async()=>{await l(),e?t.push(e):t.refresh()};return(0,u.jsxs)("div",{children:[a?.pageContent&&(0,u.jsx)(st.PageContent,{children:(0,u.jsx)(q.HtmlContainer,{html:a.pageContent})}),o?(0,u.jsx)(R.Button,{onClick:n,theme:"secondary",children:a?.submitLabel||"Logout"}):(0,u.jsx)(L.Link,{href:"/login",appearance:"button",theme:"secondary",children:"Go To Login"})]})}e.s(["Logout",()=>iH,"default",0,iH],8068),e.s(["MessageTabs",()=>i2,"default",()=>i5],47240);var iQ=e.i(72180);function iV({messageIndex:e,message:t,onReset:s,onComplete:a}){let[l,i]=(0,m.useState)(),{addToast:o}=(0,S.useToasts)(),{data:n}=(0,w.useQuery)(k.ViewerDocument),{viewer:r}=n||{},d=r?.user&&(r.user.isSuperuser||r?.localEvents&&r?.localEvents.length>0),{data:c,loading:h}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!e?.messageForm,variables:{id:e?.messageForm}}),p=c?.contentTypeForm,_=p?.fields?(0,T.getFormFields)(p?.fields):[],f=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(_,t),shouldUnregister:!!p&&"inline"===p.type}),{handleSubmit:g,setError:v,clearErrors:x,trigger:j,reset:b,formState:{isSubmitting:E,isSubmitSuccessful:L}}=f,[P,{data:A,error:D,loading:q,reset:M}]=y(k.CreateMessageDocument),[$,{data:z,error:G,loading:O,reset:I}]=y(k.UpdateMessageDocument),[U,{data:B,error:W,loading:H,reset:Q}]=y(k.SendMessageDocument),V=async e=>{if(!d)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let s={...e,publish:!1};try{let{errors:a}
34=t?await $({variables:{id:t.id,input:s}}):await P({variables:{input:s}});a?(0,T.gqlErrorsToFormErrors)(a,e).forEach(({name:e,error:t})=>{v(e,t)}):(i(p?.saveConfirmation||"Your message has been saved!"),o(N.ToastTypes.SUCCESS,p?.saveConfirmation||"Your message has been saved!"))}catch(e){v("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},Y=async e=>{if(!d)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let s={...e,publish:!0};try{let{errors:a}=t?await $({variables:{id:t.id,input:s}}):await P({variables:{input:s}});a?(0,T.gqlErrorsToFormErrors)(a,e).forEach(({name:e,error:t})=>{v(e,t)}):(i(p?.publishConfirmation||"Your message has been saved!"),o(N.ToastTypes.SUCCESS,p?.publishConfirmation||"Your message has been saved!"))}catch(e){v("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},J=async e=>{let s;if(!d)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let l={...e,publish:!0};try{let{errors:n,data:r}=t?await $({variables:{id:t.id,input:l}}):await P({variables:{input:l}});s=r?"updateMessage"in r?r.updateMessage?.id:r.createMessage?.id:void 0,n?(0,T.gqlErrorsToFormErrors)(n,e).forEach(({name:e,error:t})=>{v(e,t)}):(s&&(await U({variables:{id:s}}),a&&a()),i(p?.publishConfirmation||"Your message has been saved!"),o(N.ToastTypes.SUCCESS,p?.publishConfirmation||"Your message has been saved!"))}catch(e){v("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},K=()=>{b(),M(),Q(),I(),s&&s()},X=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/double-check",iconPosition:"before",size:"sm",disabled:E,loading:E,onClick:async()=>{x(),await j()&&g(Y)()},children:p?.publishLabel||"Publish Message"}),(0,u.jsx)(R.Button,{theme:"secondary",icon:"spaceapps/rocket",iconPosition:"before",size:"sm",disabled:E,loading:E,onClick:async()=>{x(),await j()&&g(J)()},children:p?.publishLabel?`${p.publishLabel} and Send Email`:"Publish Message and Send Email"}),(0,u.jsx)("div",{className:iQ.default.reset,children:(0,u.jsx)(R.Button,{theme:"transparent",size:"sm",onClick:K,children:"Cancel"})})]}),Z=q||h||E,ee=p&&d;return(0,u.jsxs)(C.FormProvider,{...f,children:[Z&&(0,u.jsx)(F.Loader,{}),!Z&&ee&&L&&(0,u.jsxs)("div",{className:iQ.default["success-reset"],children:[(0,u.jsx)("p",{children:l||"Message Saved!"}),(0,u.jsx)(R.Button,{theme:"secondary",size:"sm",onClick:K,children:"Start New Message"})]}),!Z&&ee&&(0,u.jsx)(s$,{contentFormId:p?.id,editLevel:3,onSave:V,customActions:X,showControls:!0,hideFormOnSubmitSuccess:!0}),!Z&&!ee&&(0,u.jsx)("p",{children:"Having trouble loading your content."})]})}var iY=e.i(43293);function iJ({message:e,messageIndex:t,onRefresh:s,isActive:a=!1}){let l,i,o=t?.deleteConfirmation||"Are you sure you want to delete this message?",n=t?.unpublishConfirmation||"Are you sure you want to unpublish this message?",r=t?.publishConfirmation||"Are you sure you want to publish this message?",d=t?.sendConfirmation||"Are you sure you want to send this message to all recipients?",c=t?.publishAndSendConfirmation||"Are you sure you want to publish this message and send it to all recipients?",h=(0,m.useRef)(null),[p,_]=(0,m.useState)(!1),{addToast:f}=(0,S.useToasts)(),{openModalHandler:g,closeModalHandler:v}=(0,E.useModal)(),{id:x,username:j,avatar:b,isSuperuser:C}=e.author||{},{data:T}=(0,w.useQuery)(k.ViewerDocument),[L,{data:P,loading:A}]=(0,lV.useLazyQuery)(k.MessageDocument,{variables:{id:e.id}}),D=T?.viewer?.user&&T.viewer.user.id===x,[M,{loading:$,reset:z}]=y(k.ReadMessageDocument,{onError:()=>{f(N.ToastTypes.ERROR,"Failed to update read status")}}),[G,{data:O,loading:I,reset:U}]=y(k.UnreadMessageDocument,{onError:()=>{f(N.ToastTypes.ERROR,"Failed to update read status")}}),[B,{reset:W}]=y(k.UpdateMessageDocument,{onCompleted:e=>{P?.message.status!==e.updateMessage.status?(P?.message.status==="Live"&&"Draft"===e.updateMessage.status&&f(N.ToastTypes.SUCCESS,"Message Unpublished!"),P?.message.status==="Draft"&&"Live"===e.updateMessage.status&&f(N.ToastTypes.SUCCESS,"Message Published!")):f(N.ToastTypes.SUCCESS,"Message Updated!"),v(),s&&s()},onError:()=>{f(N.ToastTypes.ERROR,"Failed to update message")}}),[H,{reset:V}]=y(k.SendMessageDocument),[Y,{reset:J}]=y(k.DeleteMessageDocument);(0,m.useEffect)(()=>{let t=async()=>{await M({variables:{id:e.id}}),await L()};a&&(_(!0),t(),h&&h.current&&h.current.scrollIntoView())},[a,e,M,L]);let K=async()=>
34{_(!p),p||(U(),z(),W(),V(),J(),D||P?.message.isRead||I||$||await M({variables:{id:e.id}}),await L())},X=()=>{g({title:"Unpublish Message",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:n}),P&&(0,u.jsxs)("p",{children:[(0,u.jsx)("strong",{children:"Message: "}),(0,u.jsx)("em",{children:P.message.subject})]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/time",theme:"secondary",size:"xs",onClick:en,children:"Unpublish Message"}),(0,u.jsx)(R.Button,{size:"xs",onClick:el,children:"Cancel"})]})]})})},Z=()=>{g({title:"Publish Message",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:r}),P&&(0,u.jsxs)("p",{children:[(0,u.jsx)("strong",{children:"Message: "}),(0,u.jsx)("em",{children:P.message.subject})]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/double-check",theme:"secondary",size:"xs",onClick:er,children:"Publish Message"}),(0,u.jsx)(R.Button,{size:"xs",onClick:el,children:"Cancel"})]})]})})},ee=()=>{g({title:"Publish and Send Message",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:c}),P&&(0,u.jsxs)("p",{children:[(0,u.jsx)("strong",{children:"Message: "}),(0,u.jsx)("em",{children:P?.message.subject})]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/rocket",theme:"secondary",size:"xs",onClick:ed,children:"Publish and Send"}),(0,u.jsx)(R.Button,{size:"xs",onClick:el,children:"Cancel"})]})]})})},et=()=>{g({title:"Send Message",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:d}),P&&(0,u.jsxs)("p",{children:[(0,u.jsx)("strong",{children:"Message: "}),(0,u.jsx)("em",{children:P?.message.subject})]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/mail",theme:"secondary",size:"xs",onClick:ec,children:"Send Message"}),(0,u.jsx)(R.Button,{size:"xs",onClick:el,children:"Cancel"})]})]})})},es=()=>{g({title:"Edit Message",content:P?(0,u.jsx)(iV,{messageIndex:t,message:P.message,onComplete:()=>{f(N.ToastTypes.SUCCESS,"Message Updated!"),el(),s&&s()},onReset:el}):null})},ea=()=>{g({title:"Delete Message",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:o}),P&&(0,u.jsxs)("p",{children:[(0,u.jsx)("strong",{children:"Message: "}),(0,u.jsx)("em",{children:P?.message.subject})]}),(0,u.jsxs)(eT.ModalActions,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/trash",theme:"important",size:"xs",onClick:eu,children:"Delete Message"}),(0,u.jsx)(R.Button,{size:"xs",onClick:el,children:"Cancel"})]})]})})},el=async()=>{v()},eo=()=>{!D&&P?.message.isRead&&!I&&!$&&G({variables:{id:e.id}})},en=async()=>{D&&await B({variables:{id:e.id,input:{publish:!1}}})},er=async()=>{D&&await B({variables:{id:e.id,input:{publish:!0}}})},ed=async()=>{D&&(await B({variables:{id:e.id,input:{publish:!0}}}),await ec())},ec=async()=>{if(D)try{let{errors:t}=await H({variables:{id:e.id}});t||(f(N.ToastTypes.SUCCESS,"Message Added to Send Queue"),v())}catch(e){f(N.ToastTypes.ERROR,"Failed to send message")}},eu=async()=>{if(D)try{let{errors:t}=await Y({variables:{id:e.id}});!t&&(f(N.ToastTypes.SUCCESS,"Message Deleted"),v(),s&&s())}catch(e){f(N.ToastTypes.ERROR,"Failed to delete Message")}},em=!D&&(!!O&&O.unreadMessage||!!P&&!P.message.isRead||!e.isRead);return(0,u.jsxs)("div",{ref:h,className:`${iY.default.container} ${p?iY.default.expanded:""}`,children:[!p&&(0,u.jsx)("div",{className:iY.default["click-catch"],onClick:K}),(l=C&&t?.adminFromLabel?t?.adminFromLabel:j,i=b,C&&t?.adminFromLabel&&t?.adminFromAvatar?.rendition&&(i=t.adminFromAvatar),(0,u.jsxs)("div",{className:iY.default.sender,children:[(0,u.jsx)("div",{className:iY.default.sender__avatar,children:(0,u.jsx)(Q.Avatar,{size:"mid",image:i})}),(0,u.jsx)("span",{className:iY.default.sender__name,children:l})]})),(0,u.jsxs)("div",{className:iY.default.message,children:[(0,u.jsxs)("div",{className:iY.default.meta,children:["Draft"!==e.status&&e.publishedDate&&(0,u.jsx)("span",{children:(0,u.jsx)(eb.Datetime,{timestamp:e.publishedDate,format:"datetime",timezone:"UTC"})}),"Draft"===e.status&&e.modifiedAt&&(0,u.jsxs)("span",{children:["Updated: ",(0,u.jsx)(eb.Datetime,{timestamp:e.modifiedAt,format:"datetime",timezone:"UTC"})]}),"Draft"===e.status&&e.publishedDate&&(0,u.jsxs)("span",{children:["Last Published: ",(0,u.jsx)(eb.Datetime,{timestamp:e.publishedDate,format:"datetime",timezone:"UTC"})]}),!p&&(0,u.jsxs)("div",{className:iY.default.badges,children:[e.isImportant&&(0,u.jsxs)("span",{className:`${iY.default.badge} ${iY.default["badge-red"]}`,children:[(0,u.jsx)(ei.Icon,{slug:"spaceapps/attention"})," Important"]}),em&&(0,u.jsx)("span",{className:`${iY.default.badge} ${iY.default["badge-blue"]}`,children:"Unread"})]}),p&&(0,u.jsxs)("div",{className:iY.default.controls,children:[I&&(0,u.jsx)(F.Loader,{}),(()=>{if(D&&e){let t=e.status&&"live"===e.status.toLowerCase();return(0,u.jsxs)(u.Fragment,{children:[!t&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/double-check",size:"xs",onClick:Z,children:"Publish"}),(0,u.jsx)(R.Button,{icon:"spaceapps/rocket",size:"xs",onClick:ee,children:"Publish and Send"})]}),t&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(R.Button,{icon:"spaceapps/time",size:"xs",onClick:X,children:"Unpublish"}),(0,u.jsx)(R.Button,{icon:"spaceapps/rocket",size:"xs",onClick:et,children:"Resend"})]}),(0,u.jsx)(R.Button,{icon:"spaceapps/edit",theme:"secondary",size:"xs",onClick:es,children:"Edit"}),(0,u.jsx)(R.Button,{icon:"spaceapps/trash",size:"xs",onClick:ea,children:"Delete"})]})}return(0,u.jsxs)(u.Fragment,{children:[!I&&!O?.unreadMessage&&(0,u.jsx)(R.Button,{icon:"spaceapps/mail",size:"xs",onClick:eo,children:"Mark as Unread"}),!I&&O?.unreadMessage&&(0,u.jsx)("span",{className:`${iY.default.badge} ${iY.default["badge-blue"]}`,children:"Unread"})]})})(),(0,u.jsx)("button",{className:iY.default.close,"aria-label":"Close",onClick:K})]})]}),(0,u.jsx)("h3",{className:iY.default.subject,children:e.subject}),(0,u.jsxs)("div",{className:iY.default.content,children:[!p&&(0,u.jsx)("p",{className:iY.default.excerpt,children:e.excerpt}),p&&!P&&!A&&(0,u.jsx)(F.Loader,{}),p&&P?.message.content&&!A&&(0,u.jsx)(q.HtmlContainer,{className:iY.default.richtext,html:P.message.content})]})]})]})}var iK=e.i(84103);function iX({page:e,showRefresh:t,showChat:s,fetchSize:a=100,filters:l=[]}){let i=(0,t9.useSearchParams)(),{loading:o,data:n,fetchMore:r,refetch:d}=(0,w.useQuery)(k.MessagesDocument,{fetchPolicy:"cache-and-network",variables:{first:a,filtering:l}}),c=async()=>{await d()},m=async()=>{let e=n?.messages.pageInfo;e?.hasNextPage&&await r({variables:{after:e?.endCursor}})},h=n&&n?.messages?.edges&&n?.messages.edges.length>0,p=n&&n.messages.pageInfo?.hasNextPage,_=n?.messages?.edges||[];return(0,u.jsxs)("div",{className:iK.default.container,children:[(t||s)&&(0,u.jsxs)("div",{className:iK.default.links,children:[t&&(0,u.jsx)(R.Button,{icon:"spaceapps/refresh",iconPosition:"before",theme:"secondary",size:"xs",onClick:c,loading:o,children:"Refresh"}),s&&e.chatLink&&(0,u.jsx)(L.Link,{icon:(0,tG.getIconByLink)(e.chatLink),href:e.chatLink,isNewTab:!0,size:"xs",appearance:"button",theme:"secondary",children:"Launch Chat"})]}),o&&!h&&(0,u.jsx)(F.Loader,{}),h&&(0,u.jsxs)("div",{children:[_.map(({node:t},s)=>(0,u.jsx)(iJ,{message:t,isActive:t.slug===i.get("slug"),messageIndex:e,onRefresh:c},`${t.id}-${s}`)),(0,u.jsx)(le.LoadMore,{isLoading:o,hasMore:p,onLoadMore:m})]}),!o&&!h&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Messages Found."})})]})}var iZ=e.i(89578);function i0({page:e,showRefresh:t,showChat:s,fetchSize:a=100,filters:l=[]}){let i=(0,t9.useSearchParams)(),{loading:o,data:n,fetchMore:r,refetch:d}=(0,w.useQuery)(k.MessagesByCurrentUserDocument,{fetchPolicy:"cache-and-network",variables:{first:a,filtering:l}}),c=async()=>{await d()},m=async()=>{let e=n?.messagesByCurrentUser.pageInfo;e?.hasNextPage&&await r({variables:{after:e?.endCursor}})},h=n&&n?.messagesByCurrentUser?.edges&&n?.messagesByCurrentUser.edges.length>0,p=n&&n.messagesByCurrentUser.pageInfo?.hasNextPage,_=n?.messagesByCurrentUser?.edges||[];return(0,u.jsxs)("div",{className:iZ.default.container,children:[(t||s)&&(0,u.jsxs)("div",{className:iZ.default.links,children:[t&&(0,u.jsx)(R.Button,{icon:"spaceapps/refresh",iconPosition:"before",theme:"secondary",size:"xs",onClick:c,loading:o,children:"Refresh"}),s&&e.chatLink&&(0,u.jsx)(L.Link,{icon:(0,tG.getIconByLink)(e.chatLink),href:e.chatLink,isNewTab:!0,size:"xs",appearance:"button",theme:"secondary",children:"Launch Chat"})]}),o&&!h&&(0,u.jsx)(F.Loader,{}),h&&(0,u.jsxs)("div",{children:[_.map(({node:t},s)=>(0,u.jsx)(iJ,{message:t,isActive:t.slug===i.get("slug"),messageIndex:e,onRefresh:c},`${t.id}-${s}`)),(0,u.jsx)(le.LoadMore,{isLoading:o,hasMore:p,onLoadMore:m})]}),!o&&!h&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Messages Found."})})]})}var i1=e.i(21202);function i2({page:e}){let{data:t}=(0,w.useQuery)(k.SiteByHostnameDocument),{enableMessaging:s}=t?.siteByHostname.siteSettings?.siteFlags||{},{data:a}=(0,w.useQuery)(k.ViewerDocument),l=a?.viewer?.user,i=(0,l4.useAuth)({roles:["admin","lead"]}),o=[{label:e.inboxTabLabel||"Inbox",live:!0,panel:(0,u.jsx)(sg,{children:(0,u.jsx)(iX,{page:e,filters:[{field:"created_by__not",value:l?.id||"",compare:"id"}],fetchSize:20,showChat:!0,showRefresh:!0})}),slug:"inbox"},{label:e.newTabLabel||"New Message",live:i,panel:(0,u.jsx)(sg,{children:(0,u.jsx)(iV,{messageIndex:e})}),slug:"new"},{label:e.draftTabLabel||"Draft",live:i,panel:(0,u.jsx)(sg,{children:(0,u.jsx)(i0,{page:e,filters:[{field:"status",value:"DR",compare:"eq"}],fetchSize:100,showChat:!0,showRefresh:!0})}),slug:"queue"},{label:e.sentTabLabel||"Sent",live:i,panel:(0,u.jsx)(sg,{children:(0,u.jsx)(i0,{page:e,filters:[{field:"status",value:"LV",compare:"eq"}],fetchSize:100,showChat:!0,showRefresh:!0})}),slug:"sent"}];return(0,u.jsx)("div",{className:i1.default.container,children:(0,u.jsx)(l3.CmsControlled,{canView:s,children:(0,u.jsx)(lg.TabbedContent,{tabs:o})})})}let i5=i2;e.s(["ModalPortal",()=>i3,"default",()=>i6],66858);var i4=e.i(58745);function i3(){let{content:e,title:t,captions:s,requirements:a,closeModalHandler:l}=(0,E.useModal)(),{authenticated:i,event:o,localEvent:n,team:r,project:d}=a,c=(0,l4.useAuth)(),{data:m,refetch:h}=(0,w.useQuery)(k.ViewerDocument),p=m?.viewer,_=p?.eventRegistrations&&p.eventRegistrations.find(e=>e.event===o)||void 0,f=p?.localEventRegistrations&&p.localEventRegistrations.find(e=>e.event===o)||void 0,g=p?.teamJoinRequests&&p.teamJoinRequests.find(e=>e.event===o)||void 0,v=(()=>
34{if((i||o||n||r||d)&&!c)return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:s?.authenticated||"You must log in or create an account to complete this action"}),(0,u.jsx)(sp,{isModal:!0,fullRefresh:!1})]});if((o||n||r||d)&&!_)if("string"==typeof o)return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:s?.event||"You must be event registered to complete this action"}),(0,u.jsx)(eF,{eventId:o})]});else return(0,u.jsx)(eE.ModalText,{children:s?.event||"You must be registered to an event before completing this action."});if(n||r||d)if(f){if(f&&"string"==typeof n&&n!==f.location)return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:s?.localEventUser||`You are currently registered to the ${f.locationDetails?.title} Local Event.`}),(0,u.jsx)(eE.ModalText,{children:s?.localEvent||"You must be registered to the same local event as this team."}),(0,u.jsx)(i_,{registration:f,localEventId:n,onClose:l})]})}else if("string"==typeof n)return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:s?.localEvent||"You must be registered to a local event before completing this action."}),(0,u.jsx)(ip,{localEventId:n})]});else if("string"==typeof o)return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:s?.localEvent||"You must be registered to a local event before completing this action."}),(0,u.jsx)(ix,{eventId:o})]});else return(0,u.jsx)(eE.ModalText,{children:s?.localEvent||"You must be registered to a local event before completing this action."});return(r||d)&&g&&"string"==typeof r&&r!==g.team?(0,u.jsx)(l$,{teamId:g.team,onClose:l,onSuccess:h}):e})();return(0,u.jsxs)(i4.ModalOverlay,{isOpen:!!v,onClose:l,children:[t&&(0,u.jsx)(sa.ModalTitle,{title:t}),v]})}let i6=i3;e.s([],65728),e.s(["MenuDropdown",()=>on,"default",()=>or],79980);var i8=e.i(6744);e.s(["MenuItem",()=>ol,"default",()=>oi],52437);var i9=e.i(98405);e.s(["MenuItemList",()=>oe,"default",()=>ot],18013);var i7=e.i(92392);function oe({items:e,parentItem:t,separator:s=" ",depthLevel:a,onLinkClick:l}){return(0,u.jsx)("ul",{className:i7.default.container,children:e.map(e=>(0,u.jsx)(ol,{item:e,depthLevel:a,onLinkClick:l},e.id)).flatMap((a,l)=>l<e.length-1&&s?[a,(0,u.jsx)("span",{className:i7.default.separator,children:s},`${t.id}-separator-${l}`)]:[a])})}let ot=oe;var os=e.i(2115);let oa=i9.default.bind({...os.default});function ol({item:e,depthLevel:t,label:s,onLinkClick:a}){let l,i,[o,n]=(0,m.useState)(!1),{isDesktop:r}=(0,ic.useUserInterface)(),d=(0,m.useRef)(null),{openModalHandler:c}=(0,E.useModal)(),[h]=y(k.LogoutUserDocument),{data:p}=(0,w.useQuery)(k.ViewerDocument),{link:_,attrClass:f,attrTarget:g,attrTitle:v,onClick:x,separator:j,icon:b,items:C}=e.value,N=e.value.displayType||k.MenuItemDisplayType.Item,T=e.type,S=C&&C.length>0,F=N===k.MenuItemDisplayType.Avatar;(0,m.useEffect)(()=>{let e=e=>{let{current:t}=d,{target:s}=e;(0,eh.assertIsNode)(s),o&&t&&!t.contains(s)&&r&&n(!1)};function t(){n(!1)}return S&&(window.addEventListener("resize",t),document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)),()=>{window.removeEventListener("resize",t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[S,o,e,r,a]);let R=async()=>{a&&a()},P=async()=>{await h(),window.location.reload()},A=e=>(0,u.jsxs)(u.Fragment,{children:[F&&(0,u.jsx)(Q.Avatar,{className:os.default["avatar-icon"],image:p?.viewer?.user?.avatar}),F?(0,u.jsx)("span",{className:`${os.default["mobile-only"]} ${os.default.padded}`,children:q}):q,e]}),D=oa("item",N,T,{"has-children":S,"is-active":o,"is-dropdown":N!==k.MenuItemDisplayType.List,"is-list":N===k.MenuItemDisplayType.List}),q=s||_?.text||"",M=v||q,$={target:g||(_?.isNewTab?"_blank":""),rel:g||_?.isNewTab?"noreferrer noopener":"",title:M};!S&&t>0&&T===k.MenuItemType.MenuUser?l=(0,u.jsx)(ei.Icon,{slug:"spaceapps/ellipsis"}):S&&t>0?l=(0,u.jsx)(ei.Icon,{slug:"spaceapps/arrow"}):S&&!F?l=(0,u.jsx)(ei.Icon,{className:os.default["desktop-only"],slug:"spaceapps/caret"}):b&&(l=(0,u.jsx)(ei.Icon,{slug:b}));let z=(0,u.jsx)("button",{className:`${os.default["toggle-button"]} ${os.default["mobile-only"]}`,onClick:()=>{n(e=>!e)},children:(0,u.jsx)("span",{className:os.default.plus})});return i=x||!_?.url?(0,u.jsx)("button",{type:"button",title:M,className:`${os.default.link} ${os.default["link--btn"]}`,onClick:()=>{switch(n(e=>!e),x){case k.MenuItemOnClickType.Login:c({title:"Login to Space Apps",content:(0,u.jsx)(sp,{isModal:!0})}),R();break;case k.MenuItemOnClickType.Logout:P(),R();break;case k.MenuItemOnClickType.Signup:c({title:"Create Account",content:(0,u.jsx)(sG,{isModal:!0})}),R();break;case k.MenuItemOnClickType.Popup:console.log("PopUp Coming Soon!"),R()}},"aria-hidden":o?"true":"false",children:A(l)}):(0,u.jsx)(L.Link,{prefetch:!1,href:_?.url,className:`${os.default.link}`,...$,onClick:R,"aria-hidden":o?"true":"false",children:A(l)}),(0,u.jsxs)("li",{className:`${D} ${f}`,ref:d,onMouseEnter:()=>{r&&n(!0)},onMouseLeave:()=>{r&&n(!1)},onClick:()=>{r&&o&&n(!1)},children:["LIST"!==N&&i,S&&(0,u.jsxs)(u.Fragment,{children:[0===t&&"LIST"!==N&&z,"LIST"===N?(0,u.jsx)(oe,{items:C,parentItem:e,separator:j,depthLevel:t,onLinkClick:a}):(0,u.jsx)(on,{depthLevel:t,submenus:C,isOpen:o||t>0&&!r,onLinkClick:a})]})]})}let oi=ol;var oo=e.i(46174);function on({submenus:e,isOpen:t,depthLevel:s,onLinkClick:a}){let[l,i]=(0,i8.useRect)(),[o,n]=(0,m.useState)("right");(0,m.useEffect)(()=>{function e(){n(l&&window.innerWidth-l.right>=l.width*s?"left":"right")}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[o,s,l]),s+=1;let r=`${oo.default.dropdown} ${oo.default[o]}`;return r+=(s>1?` ${oo.default["dropdown-submenu"]}
34`:"")+(t?` ${oo.default.show}`:""),(0,u.jsx)("div",{ref:i,className:r,children:(0,u.jsx)("ul",{className:oo.default.container,children:e.map((e,t)=>(0,u.jsx)(ol,{item:e,depthLevel:s,onLinkClick:a},`${e.id}-${s}-${t}`))})})}let or=on;var od=e.i(37844);function oc(){let e=(0,t9.usePathname)();return(0,t9.useSearchParams)().get("preview")?(0,u.jsxs)("div",{className:`${od.default.container}`,children:[(0,u.jsx)("h1",{children:"We're sorry, but you don't have permission to view this preview."}),(0,u.jsxs)("p",{children:["Try reloading the live page instead."," ",(0,u.jsx)(L.Link,{href:e,size:"sm",children:"View Live!"})]})]}):(0,u.jsxs)("div",{className:`${od.default.container}`,children:[(0,u.jsx)("h1",{children:"We're sorry, we couldn't find what you were looking for ..."}),(0,u.jsxs)("p",{children:["Try heading back to the homepage and starting again."," ",(0,u.jsx)(L.Link,{prefetch:!1,href:"/",size:"sm",children:"Return Home!"})]})]})}e.s(["NotFoundContent",()=>oc,"default",0,oc],26025);var ou=e.i(57563);function om({visible:e,message:t,type:s}){let a,l=(0,t9.usePathname)(),i=(0,t9.useSearchParams)(),o="";return("status"===s&&(i.get("preview")?(o="Page Preview - This Page Is Not Live",a=(0,u.jsx)(L.Link,{href:l,children:"View Live"})):o="Page Unpublished - This Page Is Not Live"),e&&(t||o))?(0,u.jsx)(ou.Banner,{title:t||o,dismiss:!1,theme:"important",overlay:!0,children:a}):null}e.s(["PageAlert",()=>om,"default",0,om],47650);var oh=e.i(37722),op=e.i(60411);function o_({children:e,image:t,video:s,theme:a="dark",size:l="sm",hasTabs:i=!1,hasGradient:o=!1}){let{isDesktop:n}=(0,ic.useUserInterface)();return(0,u.jsxs)("div",{className:`${op.default.container} ${op.default[a]} ${op.default[l]} ${i?op.default.tabbed:""}`,children:[(o||!!t||!!s)&&(0,u.jsx)("div",{className:op.default.background,children:(0,u.jsxs)("div",{className:op.default.wrapper,children:[!s&&t&&t.rendition&&(0,u.jsx)(I.default,{className:op.default.img,src:t.rendition.fullUrl,width:t.rendition.width||1668,height:t.rendition.height||704,alt:t?.alt||"Default Page Hero Background"}),s&&n&&(0,u.jsx)(oh.Video,{className:op.default.video,src:s.rendition.fullUrl,type:s.contentType,fadeIn:!0})]})}),(0,u.jsx)("div",{className:op.default.content,children:(0,u.jsx)(Y.Container,{children:e})})]})}e.s(["PageHero",()=>o_,"default",0,o_],26788);var of=e.i(73982);function og({groupIds:e}){let{loading:t,data:s}=(0,w.useQuery)(k.ResourceGroupsDocument,{skip:!e||0===e.length,variables:{first:100,filtering:[{field:"ids",value:e?.map(e=>e.id.toString()).join(","),compare:"ids"}]}}),a=s?.resourceGroups.edges||[];return(0,u.jsxs)("div",{className:of.default.container,children:[t&&(0,u.jsx)(F.Loader,{}),!a&&!t&&(0,u.jsx)("p",{children:"No Resources Found."}),a.map(({node:e},t)=>(0,u.jsxs)("div",{className:of.default.group,children:[(0,u.jsx)("h2",{className:of.default.group__title,children:`${e.title||"Resource Group"}`}),(0,u.jsx)("div",{className:of.default.group__categories,children:e.resourceGuides&&e.resourceGuides.map((e,s)=>{let a=e.meta.relativeUrl||"/";return(0,u.jsxs)("div",{className:of.default.guide,children:[(0,u.jsx)("div",{className:of.default.guide__heading,children:(0,u.jsx)(L.Link,{prefetch:!1,href:a,className:of.default.guide__title,children:e.title})}),e.summary&&(0,u.jsx)("p",{className:of.default.guide__description,children:e.summary}),(0,u.jsx)("ul",{className:of.default.guide__links,children:e.resources&&e.resources.map((e,l)=>(0,u.jsx)("li",{className:of.default.item,children:(0,u.jsxs)(L.Link,{prefetch:!1,href:`${a}#${e.slug}`,className:of.default.link,children:[e.hasVideo&&(0,u.jsx)(ei.Icon,{slug:"spaceapps/video"})," ",e.title]})},`resources-${t}-${s}-${l}`))})]},`guide-${t}-${s}`)})})]},`group-${t}`))]})}e.s(["ResourceGroups",()=>og,"default",0,og],26139);var ov=e.i(34296),ox=e.i(73376);function oj({placeholder:e,noResults:t}){let[s,{loading:a,data:l,fetchMore:i}]=(0,lV.useLazyQuery)(k.ResourcesDocument),[o,n]=(0,m.useState)(""),r=l?.resources?.edges||[],{hasNextPage:d}=l?.resources?.pageInfo||{hasNextPage:!1,hasPreviousPage:!1},c=async e=>{n(e),await s({variables:{first:20,q:e}})},h=async()=>
34{if(d){let e=r[r.length-1].cursor;await i({variables:{first:20,after:e}}),await s({variables:{first:20+r.length,q:o}})}},p=r.map(({node:e},t)=>{let s=e.page.meta.relativeUrl,a=e.resource.slug,l=`${e.resource.title} (${e.page.title})`;return s&&a?(0,u.jsx)(L.Link,{href:`${s}#${a}`,className:ox.default.link,children:(0,u.jsx)(q.HtmlContainer,{html:(0,eh.highlightSearchTerm)(l,o)})}):(0,eh.highlightSearchTerm)(l,o)});return(0,u.jsx)("div",{className:ox.default.container,children:(0,u.jsx)(Y.Container,{size:"sm",children:(0,u.jsx)(ov.SearchForm,{keyword:o,placeholder:e,noResults:t,results:p,onSearch:c,onReset:()=>{n("")},onLoadMore:h,isLoading:a,hasMore:d})})})}e.s(["ResourcesSearchBar",()=>oj,"default",0,oj],92574);var ob=e.i(20879);function oy({heading:e,returnUrl:t,sections:s,current:a}){return(0,u.jsxs)(ll.FlyOut,{autoOpen:!0,children:[(0,u.jsxs)("div",{className:ob.default.menu,children:[(0,u.jsxs)("div",{className:ob.default.menu__heading,children:[(0,u.jsx)("span",{className:ob.default.menu__meta,children:"More From"}),(0,u.jsx)("span",{className:ob.default.menu__title,children:e})]}),(0,u.jsx)("ul",{className:ob.default.menu__links,children:s&&s.map(({slug:e,hasVideo:t,title:s},l)=>{let i=a===e?`${ob.default.link} ${ob.default.current}`:ob.default.link;return(0,u.jsx)("li",{children:(0,u.jsxs)(L.Link,{prefetch:!1,href:`#${e}`,className:i,children:[t&&(0,u.jsx)(ei.Icon,{slug:"spaceapps/video"})," ",s]})},`${e}-${l}`)})})]}),(0,u.jsx)(L.Link,{prefetch:!1,href:t||"/resources",className:ob.default["back-link"],children:"Back to all Resources"})]})}e.s(["ResourceMenu",()=>oy,"default",0,oy],24920),e.s(["SiteHeader",()=>oP,"default",()=>oA],92668);var ow=e.i(61368);function oC(e){return(0,ow.useSyncExternalStore)(p.useCallback(function(t){return e.onNextChange(function s(){t(),e.onNextChange(s)})},[e]),e,e)}var ok=e.i(42224),oN=e.i(96091),oT=e.i(93895),oE=e.i(98403);let oS=[{id:"home",type:k.MenuItemType.MenuItem,value:{link:{text:"Home",url:"/",isNewTab:!1},displayType:k.MenuItemDisplayType.Item,onClick:null,items:[]}}],oF=function({menu:e}){let{isScreenLg:t}=(0,ic.useUserInterface)(),s=oC(oN.mobileMenuOpenVar),a=()=>{s&&(0,oN.mobileMenuOpenVar)(!1)};(0,m.useEffect)(()=>{t&&s&&(0,oN.mobileMenuOpenVar)(!1)},[t,s]);let l=`${oE.default.menu} ${s?oE.default.active:""}`;return(0,u.jsxs)("nav",{className:oE.default.container,children:[(0,u.jsx)("ul",{className:l,children:(e||oS).map((e,t)=>(0,u.jsx)(ol,{item:e,depthLevel:0,onLinkClick:a},`${e.id}-0-${t}`))}),(0,u.jsxs)("button",{className:s?`${oE.default.btn} ${oE.default.active}`:oE.default.btn,type:"button","aria-haspopup":"menu","aria-expanded":s?"true":"false",onClick:()=>{t||(0,oN.mobileMenuOpenVar)(!s)},children:[(0,u.jsx)("span",{className:oE.default.hamburger}),(0,u.jsx)("span",{className:oE.default.hidden,children:"Menu"})]})]})};var oR=e.i(53980);let oL=i9.default.bind({...oR.default});function oP(){let e=oC(ok.mapViewVar),t=oC(oN.mobileMenuOpenVar),{data:s,loading:a}=(0,w.useQuery)(k.SiteByHostnameDocument),{siteName:l,siteSettings:i,siteAlert:o}=s?.siteByHostname||{},n=(0,t9.usePathname)();if((0,m.useEffect)(()=>{window.document.getElementById("map")?(0,ok.mapViewVar)(!0):(0,ok.mapViewVar)(!1)},[n]),!i||["/offers/","/2023/offers/"].includes(n))return null;let r=oL("header",{"mobile-menu-open":t},{transparent:e});return(0,u.jsx)("header",{className:oR.default.container,children:(0,u.jsxs)("div",{className:r,children:[o&&!a&&(0,u.jsx)(ou.Banner,{title:o.title,dismiss:!1,overlay:e,children:o?.info&&(0,u.jsx)(q.HtmlContainer,{className:oR.default.content,html:o.info})}),(0,u.jsx)(Y.Container,{children:(0,u.jsxs)("div",{className:oR.default.wrapper,children:[(0,u.jsx)("div",{className:oR.default["col-left"],children:(0,u.jsx)(oT.SiteLogo,{logo:i?.siteLogo||void 0,title:l||void 0,url:i?.siteUrls?.homeRelUrl||void 0})}),(0,u.jsx)("div",{className:oR.default["col-right"],children:(0,u.jsx)(oF,{menu:i?.siteMenu?.menu})})]})})]})})}let oA=oP;e.s(["SiteFooter",()=>oq,"default",()=>oM],30247);var oD=e.i(4536);function oq(){let e=oC(ok.mapViewVar),{data:t}=(0,w.useQuery)(k.SiteByHostnameDocument),{siteSettings:s}=t?.siteByHostname||{},a=(0,t9.usePathname)();return!s||["/offers/","/2023/offers/"].includes(a)?null:(0,u.jsx)("footer",{className:`${oD.default.container} ${e?oD.default.pinned:""}`,children:(0,u.jsx)(Y.Container,{children:(0,u.jsxs)("div",{className:oD.default.row,children:[s?.siteFooter&&(0,u.jsx)("div",{className:oD.default["footer-content"],
34children:(0,u.jsx)(tN,{blocks:s?.siteFooter.content,theme:s?.siteFooter.theme,direction:s?.siteFooter.position||void 0},`footer-${s?.siteFooter.id}`)}),(0,u.jsx)("div",{className:oD.default["social-container"],children:(0,u.jsx)(tT.default,{})})]})})})}let oM=oq;e.s([],81303),e.s(["CreateTeam",()=>oz,"default",()=>oG],97682);var o$=e.i(16787);function oz({page:e,showConfirmation:t=!1,showToast:s=!0}){let[a,l]=(0,m.useState)(),[i,o]=(0,m.useState)(!1),n=(0,t9.useRouter)(),{addToast:r}=(0,S.useToasts)(),{openModalHandler:d}=(0,E.useModal)(),[c,{data:h,loading:p}]=y(k.CreateTeamPageDocument),{event:_}=(0,ek.useEvent)(e.event),{data:f,loading:g}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!_?.createTeamForm,variables:{id:_?.createTeamForm}}),v=f?.contentTypeForm,{data:x,refetch:j}=(0,w.useQuery)(k.ViewerDocument),b=x?.viewer,P=_?.teamEditStatus&&_?.teamEditStatus>2,A=b?.user,D=b?.eventRegistrations&&b.eventRegistrations.some(e=>e.event===_?.id),q=b?.localEventRegistrations&&b.localEventRegistrations.some(e=>e.event===_?.id),M=b?.localEventRegistrations&&b.localEventRegistrations.find(e=>e.event===_?.id),$=b?.teams&&b.teams.find(e=>e.event===_?.id),z=P&&A&&D&&q&&!$,G=v?.fields?(0,T.getFormFields)(v?.fields):[],O=(0,C.useForm)({mode:"onBlur",values:M?(0,T.getDefaultFields)(G,{location:M.location,joinEnabled:!0}):void 0}),{setError:I,formState:{isSubmitting:U}}=O,B=async e=>{if(l(void 0),!z)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let t={...(0,T.normalizeSubmitFields)(e,[])};if(e.location){if(e.location!==M?.location)return[null,[{name:"root",error:{type:"400",message:"Your local event registration does not match the selected team local event."}}]]}else{if(!M)return[null,[{name:"root",error:{type:"400",message:"Unable to find your registered local event, please register before creating a team"}}]];t={...t,location:M.location}}return!t||Object.keys(t).length<=0?[null,[{name:"root",error:{type:"400",message:"Input not found."}}]]:[t,[]]},W=async e=>{let[t,a]=await B(e),i=[...a,...(0,T.validateRequiredFields)(G,e,1,"required to save")];if(i.length)return void i.forEach(({name:e,error:t})=>{I(e,t)});if(t)try{let{data:a,errors:i}=await c({variables:{input:t}});if(i)(0,T.gqlErrorsToFormErrors)(i,e).forEach(({name:e,error:t})=>{I(e,t)});else{s&&r(N.ToastTypes.SUCCESS,v?.saveConfirmation||"Team created successfully."),l(v?.saveConfirmation||"Team created successfully."),o(!0),await j();let e=`${a?.createTeamPage?.meta.relativeUrl}`;n.push(e,{scroll:!1})}}catch(e){I("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},H=()=>{d({requirements:{authenticated:!0,event:_?.id,localEvent:M?.location??!0},title:"Create a Team",captions:{event:`You must be registered for the ${_?.name} to create a team.`,localEvent:"You must be registered for a Local Event to create a team."}})},Q={location:[],challenge:[]};if(_){let e={field:"event",value:_.id,compare:"id"};Q.location.push(e),Q.challenge.push(e)}let V=p||g||U,Y=v&&z&&!i;return(0,u.jsx)("div",{className:o$.default.container,children:(0,u.jsxs)(C.FormProvider,{...O,children:[V&&(0,u.jsx)(F.Loader,{}),!V&&Y&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:o$.default.content,children:(0,u.jsxs)("p",{children:["You are creating a team for the ",(0,u.jsx)("strong",{children:_?.name})," under the"," ",(0,u.jsx)("strong",{children:M?.locationDetails?.title})," Local Event."]})}),(0,u.jsx)(s$,{contentFormId:v?.id,onPublish:W,editLevel:_?.teamEditStatus||0,confirmationMsg:a,showControls:!0,showUnsavedMsg:!1,lookupFilters:Q})]}),!V&&!Y&&(0,u.jsx)("div",{className:o$.default.content,children:i?(0,u.jsxs)(u.Fragment,{children:[t&&(0,u.jsx)("p",{children:a}),(0,u.jsx)("p",{children:"Please wait while we redirect you to you new team page ..."}),(0,u.jsx)(F.Loader,{}),(0,u.jsx)("p",{children:"Or click the link below."}),h?.createTeamPage.meta.relativeUrl&&(0,u.jsx)(L.Link,{appearance:"button",size:"sm",href:h.createTeamPage.meta.relativeUrl,children:"View My Team"})]}):P?A?D?q?$?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("p",{children:["You may only be a member of one team. You are already of a member of ",$.title,". If you wish to proceed, please leave or delete your other team. For more information please read the Team Formation Guide."]}),$.meta.relativeUrl&&(0,u.jsx)(L.Link,{appearance:"button",size:"sm",href:$.meta.relativeUrl,children:"View My Team"})]}):(0,u.jsx)("p",{children:"Having trouble loading your content."}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:"You must be registered for a Local Event to create a team."}),(0,u.jsx)(R.Button,{size:"sm",onClick:H,children:"Register for a Local Event"})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:`You must be registered for the ${_?.name} to create a team.`}),(0,u.jsx)(R.Button,{size:"sm",onClick:H,children:`Register for ${_?.name}`})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:"You must be logged in to create a team."}),(0,u.jsx)(R.Button,{size:"sm",onClick:H,children:"Login"})]}):(0,u.jsx)("p",{children:"Team creation is unavailable at this time."})})]})})}let oG=oz;var oO=e.i(15502);function oI({teamId:e,showConfirmation:t=!1,showToast:s=!0,onClose:a,onSuccess:l}){let{addToast:i}=(0,S.useToasts)(),o=(0,C.useForm)({mode:"onBlur"}),{handleSubmit:n,setError:r,formState:{errors:d,isSubmitting:c}}=o,{data:m,loading:h}=(0,w.useQuery)(k.PageDocument,{variables:{input:e}}),p=m?.page||{},{event:_}=(0,ek.useEvent)(p?.event),[f,{data:g,loading:v}]=y(k.CreateTeamJoinRequestDocument),x=async t=>{if(e!==p.id)return void r("root",{type:"400",message:"Invalid Team Selected, please reload the page and try again"});let a={...t,team:p.id};try{let{errors:e}=await f({variables:{input:a}});e?(0,T.gqlErrorsToFormErrors)(e,t).forEach(({name:e,error:t})=>{r(e,t)}):(s&&i(N.ToastTypes.SUCCESS,"Join Request Submitted!"),l&&l())}catch(e){r("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},j=h||v||c;return!h&&(!_?.teamRegistrationStatus||_?.teamRegistrationStatus<2)?(0,u.jsx)("p",{children:"Team join is not enabled."}):(0,u.jsxs)("div",{className:oO.default.container,children:[j&&(0,u.jsx)(F.Loader,{}),g&&t&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:"Submit Successful"})}),d.root&&d.root?.message&&(0,u.jsx)(M.Toast,{type:N.ToastTypes.ERROR,children:(0,u.jsx)(q.HtmlContainer,{html:d.root.message||"An error has occurred, please try again."})}),!j&&!g&&(0,u.jsx)(C.FormProvider,{...o,children:(0,u.jsxs)("form",{onSubmit:n(x),children:[(0,u.jsx)($.FieldGroup,{children:(0,u.jsx)(tt.TextArea,{label:"Summary",name:"message",limit:500,options:{required:"Summary is required"},helpText:"Please provide a brief summary about you, your skills, and why you would like to join this team. (500 character limit)"})}),(0,u.jsxs)("div",{className:oO.default["flex-actions"],children:[(0,u.jsx)(eB.FormActions,{disabled:c,submitText:c?"Submitting...":"Send Request"}),(0,u.jsx)(R.Button,{theme:"transparent",onClick:a,children:"Cancel"})]})]})})]})}e.s(["CreateTeamJoinRequest",()=>oI,"default",0,oI],18431),e.s(["DeleteTeamCta",()=>oB,"default",()=>oW],81670);var oU=e.i(32446);function oB({team:e}){let{openModalHandler:t,closeModalHandler:s}
34=(0,E.useModal)(),{addToast:a}=(0,S.useToasts)(),l=(0,t9.usePathname)(),{event:i}=(0,ek.useEvent)(e.event),[o,{loading:n}]=(0,lV.useLazyQuery)(k.ViewerDocument),[r,{loading:d}]=(0,lV.useLazyQuery)(k.SiteByHostnameDocument),c=(0,l4.useAuth)({permissions:["edit:team"],obj:{id:e.id,type:"team"}})&&!!i?.teamEditStatus&&i.teamEditStatus>2,[m,{data:h,loading:p}]=y(k.DeleteTeamDocument),_=async()=>{t({requirements:{authenticated:!0,event:!1,localEvent:!1},title:"Delete Team",content:(0,u.jsxs)(lz,{onConfirm:g,onClose:f,confirmLabel:"Delete Team",theme:"important",children:["Are you sure you want to delete ",(0,u.jsx)("strong",{children:e.title}),"? All team and project information will be permanently deleted."]})})},f=async()=>{s()},g=async()=>{if(s(),c)try{let{errors:t}=await m({variables:{id:e.id}});if(t)a(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(t)||"Failed to Delete Team");else{a(N.ToastTypes.SUCCESS,`You have deleted ${e.title}.`),await o(),await r();let t=l.replace(/\/$/,"").split("/").slice(0,-1).join("/");window.location.assign(t||"/")}}catch(e){a(N.ToastTypes.ERROR,(0,T.handleCatchErrors)(e))}else a(N.ToastTypes.ERROR,"You do not have permission to perform this action.")};return!c||h?null:(0,u.jsxs)("div",{className:oU.default.container,children:[(0,u.jsx)("h2",{children:"Delete Team"}),(0,u.jsx)("p",{className:oU.default.content,children:"If you would no longer like to keep this team, click the button below to delete it."}),(0,u.jsx)(R.Button,{theme:"important",size:"xs",loading:p||n||d,onClick:_,children:"Delete Team"})]})}let oW=oB;function oH({team:e,size:t="md",showDisabledMsg:s=!0}){let{openModalHandler:a,closeModalHandler:l}=(0,E.useModal)(),{event:i}=(0,ek.useEvent)(e.event),{data:o,loading:n,refetch:r}=(0,w.useQuery)(k.ViewerDocument),d=o?.viewer,c=d?.localEventRegistrations&&d.localEventRegistrations.find(e=>e.event===i?.id)||void 0,m=d?.teams&&d.teams.find(t=>t.id===e?.id)||!1,h=d?.teamJoinRequests&&d.teamJoinRequests.filter(e=>e.event===i?.id)||void 0,p=h&&h.length>0,_=h&&h.find(t=>t.team===e?.id)||void 0,f=(i?.teamRegistrationStatus??0)>1,g=e.joinEnabled&&f,v=e.locationDetails?.title||"another local event",x=(i?.teamRegistrationStatus??0)>=2&&i?.isTeamPagesActive,j=async()=>{l()},b=async()=>{l(),await r()};return!x||m?null:(0,u.jsxs)(l0.CtaContainer,{children:[e.canAcceptMembers&&!_&&(0,u.jsx)(R.Button,{loading:n,icon:"spaceapps/plus",size:t,onClick:()=>{a({requirements:{authenticated:!0,event:i?.id||!0,localEvent:e.location||!0,team:e.id},captions:{localEventUser:`Team Members must all be registered for the same Local Event. You are currently registered for ${c?.locationDetails?.title||"a different local event"}.`,localEvent:`This team is part of ${v}. To switch Local Events, confirm ${v} accepts your preferred participation type (in-person or virtual). By hitting save, your Local Event will be switched. You may then request to join this team.`},title:"Confirm Join Request",content:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eE.ModalText,{children:`To request to join ${e.title} please provide a brief summary and confirm your request below.`}),(0,u.jsx)(oI,{teamId:e.id,onClose:j,onSuccess:b})]})})},children:p?"Switch Request to This Team":"Request to Join Team"}),g&&_&&(0,u.jsx)(R.Button,{loading:n,theme:"important",icon:"spaceapps/close",size:t,onClick:()=>{a({requirements:{authenticated:!0,event:!1,localEvent:!1},title:"Cancel Join Request",content:(0,u.jsx)(l$,{teamId:e.id,onClose:j,onSuccess:b})})},children:"Cancel Pending Request"}),!e.canAcceptMembers&&f&&s&&(0,u.jsx)(tM,{children:"This team is not looking for new members."}),!f&&s&&(0,u.jsx)(tM,{children:"Team Registration is closed."})]})}e.s(["TeamTabs",()=>o7,"default",()=>ne],94822),e.s(["JoinTeamCta",()=>oH,"default",()=>oQ],95536);let oQ=oH;function oV({team:e,size:t="md",showDisabledMsg:s=!0}){let{openModalHandler:a,closeModalHandler:l}=(0,E.useModal)(),i=(0,t9.useRouter)(),{event:o}=(0,ek.useEvent)(e.event),{data:n,loading:r}=(0,w.useQuery)(k.ViewerDocument),d=n?.viewer,c=d?.teams&&d.teams.find(t=>t.id===e?.id)||!1,m=e?.owner&&d?.user?.id&&e.owner===d.user.id,h=(o?.teamRegistrationStatus??0)>1,p=async()=>
34{l()},_=async()=>{l(),i.refresh()};return c?(0,u.jsxs)(l0.CtaContainer,{children:[h&&!m&&(0,u.jsx)(R.Button,{loading:r,theme:"important",icon:"spaceapps/close",size:t,onClick:()=>{a({requirements:{authenticated:!0,event:!1,localEvent:!1},title:"Leave Team",content:(0,u.jsx)(lO,{team:e,onClose:p,onSuccess:_})})},children:"Leave Team"}),!h&&s&&(0,u.jsx)(tM,{children:"Team Members may not be changed at this time."})]}):null}var oY=e.i(60024);function oJ({page:e}){let t,{data:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),a=s?.page||{},{detailsSectionHeading:l,challengeSectionHeading:i,editTeamForm:o}=a||{},{data:n}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!o,variables:{id:o}}),r=n?.contentTypeForm,d=(0,l4.useAuth)({permissions:["edit:team"],obj:{id:e.id,type:"team"}}),c=(0,l4.useAuth)({permissions:["view:team"],obj:{id:e.id,type:"team"}}),{addToast:h}=(0,S.useToasts)(),{event:p}=(0,ek.useEvent)(e.event),{data:_,refetch:f,loading:g}=(0,w.useQuery)(k.TeamDocument,{skip:!d,fetchPolicy:"network-only",variables:{id:e.id}}),v=_?.team,x=v?.workflow,j=v?.revisionMeta,b=p?.teamEditStatus||0,E=d&&b>2,F=p?.status||!1,R=x?.lastComment,[L,P]=(0,m.useState)(!1),[A,D]=(0,m.useState)(!1),[M,$]=(0,m.useState)(),z=(0,t9.useRouter)(),{isDesktop:G}=(0,ic.useUserInterface)(),O=r?.fields?(0,T.getFormFields)(r?.fields):[],I=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(O,v)}),{handleSubmit:Q,setError:V,reset:Y}=I,[J,{loading:K}]=y(k.UpdateTeamPageDocument),[X,{loading:Z}]=y(k.SubmitTeamPageDocument),[ee,{loading:et}]=y(k.PublishTeamPageDocument),es=!_&&g,ea=async e=>{if($(void 0),!E)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let t={...(0,T.normalizeSubmitFields)(e,[])};return!t||Object.keys(t).length<=0?[null,[{name:"root",error:{type:"400",message:"Input not found."}}]]:[t,[]]},el=async t=>{let[s,a]=await ea(t),l=[...a,...(0,T.validateRequiredFields)(O,t,3,"required to publish")];if(l.length)return void l.forEach(({name:e,error:t})=>{V(e,t)});if(s)try{let{errors:a}=await ee({variables:{id:e.id,input:s}});a?(0,T.gqlErrorsToFormErrors)(a,t).forEach(({name:e,error:t})=>{V(e,t)}):(h(N.ToastTypes.SUCCESS,r?.publishConfirmation||"Published"),en())}catch(e){V("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},ei=async()=>{D(e=>!e)},eo=async()=>{P(!0),await f(),G||D(!1)},en=async()=>{P(!1),Y(),z.refresh(),await f()},er=()=>{let e=[];return R&&e.push((0,u.jsx)(ss.Alert,{title:"Change Requested",collapsable:!0,children:R},"comment")),v?.eligibility?.status===!1&&e.push((0,u.jsx)(ss.Alert,{title:"Team is Award Ineligible.",collapsable:!0,children:v?.eligibility?.message},"eligibility")),e.length>0?e:null},ed=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(oH,{team:e,size:"xs"}),(0,u.jsx)(oV,{team:e,size:"xs"})]}),ec=a.chatCardLink?{url:a.chatCardLink,text:a.chatCardLinkLabel||"Open Chat",isNewTab:!0}:void 0,eu={location:[],challenge:[],owner:[]};if(p){let e={field:"event",value:p.id,compare:"id"};eu.location.push(e),eu.challenge.push(e)}return e.memberships&&eu.owner.push({field:"ids",value:e.memberships.map(e=>e.user).join(","),compare:"ids"}),(0,u.jsx)("div",{className:oY.default.container,children:(0,u.jsx)(C.FormProvider,{...I,children:(0,u.jsxs)(U.FlexContainer,{children:[(0,u.jsxs)(B.MainColumn,{children:[!L&&(0,u.jsxs)("div",{className:oY.default.details,children:[(0,u.jsx)(sD,{page:e}),l&&(0,u.jsx)("h2",{className:oY.default["section-heading"],children:l}),e.description&&(0,u.jsx)(q.HtmlContainer,{className:oY.default.richtext,html:e.description}),!e.description&&!E&&(0,u.jsx)("div",{className:oY.default.richtext,children:(0,u.jsxs)("p",{children:["This team ",F?"is participating":"participated"," in the"," ",p?.name||"NASA Space Apps Challenge"]})}),!e.description&&E&&F&&(0,u.jsx)("div",{className:oY.default.richtext,children:(0,u.jsx)("p",{children:"Add custom text here to describe your team ..."})}),e.challengeDetails&&(0,u.jsxs)("div",{className:oY.default.richtext,children:[(0,u.jsx)("h3",{children:i||"About the Challenge"}),(0,u.jsx)("p",{children:e.challengeDetails.excerpt||"Challenge Not Found"})]})]}),L&&E&&!!o&&(0,u.jsx)(s$,{contentFormId:o,onPublish:el,editLevel:b,editorAlerts:er(),confirmationMsg:M,showControls:!1,showUnsavedMsg:!0,lookupFilters:eu})]}),(0,u.jsxs)(H.SideColumn,{children:[!!o&&(0,u.jsx)(ll.FlyOut,{autoOpen:!1,mobileOnly:!0,onOpen:ei,onClose:ei,controlOpen:A,children:(0,u.jsx)(lQ,{onOpen:eo,onClose:en,onPublish:Q(el),isEditing:L,isUserEditor:E,contentFormId:o,editLevel:b,revision:j,isReady:!es,isWaiting:K||Z||et,userWelcomeMsg:L?"":d?"You are the team owner.":c?"You are a team member.":void 0,statusMsg:(t=[],x?.status==="in_progress"&&t.push("Submission request is under review."),t.join("<br/>")),editorAlerts:er(),customActions:ed})}),(0,u.jsx)(W.Card,{children:(0,u.jsx)(sS,{team:e})}),a.showChatCard&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(tO,{title:a.chatCardTitle,text:a.chatCardText,link:ec})})]})]})})})}var oK=e.i(59636);function oX({page:e}){let t,s=(0,l4.useAuth)({permissions:["edit:team"],obj:{id:e.id,type:"team"}}),a=(0,l4.useAuth)({permissions:["view:team"],obj:{id:e.id,type:"team"}}),{addToast:l}=(0,S.useToasts)(),{data:i}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),{judgingHelpText:o,editProjectForm:n}=i?.page||{},{data:r}=(0,w.useQuery)(k.ContentTypeFormDocument,{skip:!n,variables:{id:n}}),d=r?.contentTypeForm,{data:c}=(0,w.useQuery)(k.TeamDocument,{skip:e?.id===void 0||e?.id===null||!a,variables:{id:e?.id}}),h=c?.team,{event:p}=(0,ek.useEvent)(e.event),{data:_,refetch:f,loading:g}=(0,w.useQuery)(k.ProjectDocument,{skip:!a,fetchPolicy:"network-only",variables:{id:e.project}}),v=_?.project||e.projectDetails,x=p?.projectFields||[],j=v?.revisionMeta,b=p?.projectEditStatus||0,E=a&&b>2,[F,L]=(0,m.useState)(!1),[P,A]=(0,m.useState)(!1),[D,$]=(0,m.useState)(),z=(0,t9.useRouter)(),{isDesktop:G}=(0,ic.useUserInterface)(),O=d?.fields?(0,T.getFormFields)(d?.fields):[],I=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(O,v)}),{handleSubmit:Q,setError:V,clearErrors:Y,reset:J,formState:{isSubmitting:K}}=I,[X,{loading:Z}]=y(k.UpdateProjectDocument),[ee,{loading:et}]=y(k.SubmitProjectDocument),[es,{loading:ea}]=y(k.PublishProjectDocument),[el,{loading:ei}]=y(k.LockProjectDocument),[eo,{loading:en}]=y(k.UnlockProjectDocument),er=Z||et||ea||ei||en,ed=!_&&g,ec=async e=>{if($(void 0),!E)return[null,[{name:"root",error:{type:"401",message:"You do not have permission to perform this action."}}]];let t={...(0,T.normalizeSubmitFields)(e,[])};return!t||Object.keys(t).length<=0?[null,[{name:"root",error:{type:"400",message:"Input not found."}}]]:[t,[]]},eu=async e=>{let[t,s]=await ec(e),a=[...s,...(0,T.validateRequiredFields)(O,e,1,"required to save")];if(a.length)return void a.forEach(({name:e,error:t})=>{V(e,t)});if(v&&t)try{let{errors:s}
34=await X({variables:{id:v.id,input:t}});s?(0,T.gqlErrorsToFormErrors)(s,e).forEach(({name:e,error:t})=>{V(e,t)}):$(d?.saveConfirmation||"Saved Revision")}catch(e){V("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},em=async e=>{let[t,s]=await ec(e),a=[...s,...(0,T.validateRequiredFields)(O,e,3,"required to publish")];if(a.length)return void a.forEach(({name:e,error:t})=>{V(e,t)});if(v&&t)try{let{errors:s}=await es({variables:{id:v.id,input:t}});s?(0,T.gqlErrorsToFormErrors)(s,e).forEach(({name:e,error:t})=>{V(e,t)}):(l(N.ToastTypes.SUCCESS,d?.publishConfirmation||"Published"),eg())}catch(e){V("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},eh=async e=>{let[t,s]=await ec(e),a=[...s,...(0,T.validateRequiredFields)(O,e,4,"required to submit for judging")];if(a.length)return void a.forEach(({name:e,error:t})=>{V(e,t)});if(v&&t)try{let{errors:s}=await ee({variables:{id:v.id,input:t}});s?(0,T.gqlErrorsToFormErrors)(s,e).forEach(({name:e,error:t})=>{V(e,t)}):await f()}catch(e){V("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},ep=async t=>{try{let{errors:s}=t?await el({variables:{id:e.project}}):await eo({variables:{id:e.project}});s?(0,T.gqlErrorsToFormErrors)(s,{}).forEach(({name:e,error:t})=>{V(e,t)}):await f()}catch(e){V("root",{type:"500",message:(0,T.handleCatchErrors)(e)})}},e_=async()=>{A(e=>!e)},ef=async()=>{L(!0),G||A(!1)},eg=async()=>{L(!1),J(),z.refresh(),await f()},ev=a&&F&&v?.isSubmitted?(0,u.jsx)(M.Toast,{type:N.ToastTypes.SUCCESS,children:(0,u.jsx)(q.HtmlContainer,{html:"Project Submitted for Judging! Your certificate is now available in your âProfileâ."})}):null,ex=(0,u.jsx)(R.Button,{theme:"secondary",size:"xs",icon:"spaceapps/double-check",disabled:ed||K||er,loading:ed||et,onClick:()=>{Y(),Q(eh)()},children:"Submit for Judging"}),ej=e.projectDetails&&!!e.projectDetails?.name;return(0,u.jsx)("div",{className:oK.default.container,children:(0,u.jsx)(C.FormProvider,{...I,children:(0,u.jsxs)(U.FlexContainer,{reverse:!0,children:[(0,u.jsxs)(B.MainColumn,{children:[!F&&(0,u.jsxs)("div",{className:oK.default.details,children:[!ej&&(0,u.jsxs)("div",{className:oK.default.richtext,children:[(0,u.jsx)("h2",{children:"Team Project"}),!E&&(0,u.jsx)("p",{children:"This team has not yet updated their project."}),E&&(0,u.jsx)("p",{children:"Click on the Edit Project button to start updating your project!"})]}),ej&&e?.projectDetails&&(0,u.jsx)(sj,{project:e.projectDetails,fields:x})]}),F&&E&&!!n&&(0,u.jsx)(s$,{contentFormId:n,onSave:eu,onPublish:em,editLevel:b,confirmationMsg:D,showControls:!1,showUnsavedMsg:!0,editorAlerts:ev})]}),(0,u.jsxs)(H.SideColumn,{children:[!!n&&E&&(0,u.jsx)(ll.FlyOut,{autoOpen:!1,mobileOnly:!0,onOpen:e_,onClose:e_,controlOpen:P,children:(0,u.jsx)(lQ,{onOpen:ef,onClose:eg,onSave:Q(eu),onPublish:Q(em),onLock:ep,isEditing:F,isUserEditor:E,contentFormId:n,editLevel:b,revision:j,isReady:!ed,isWaiting:er,userWelcomeMsg:F?"":s?"You are the team owner.":a?"You are a team member.":void 0,editorAlerts:(t=[],F&&v?.savedAt&&t.push((0,u.jsxs)(tM,{children:["Last Saved: ",(0,u.jsx)(eb.Datetime,{timestamp:v.savedAt,format:"datetime"})]},"savedAt")),F&&v?.submittedAt&&t.push((0,u.jsxs)(tM,{children:["Last Submitted: ",(0,u.jsx)(eb.Datetime,{timestamp:v?.submittedAt,format:"datetime"})]},"submittedAt")),h?.eligibility?.status===!1&&t.push((0,u.jsx)(ss.Alert,{title:"Team is Award Ineligible.",collapsable:!0,children:h?.eligibility?.message},"eligibility")),t.length>0?t:null),statusMsg:a&&E&&v?.submittedAt&&v?.savedAt&&v?.savedAt>v.submittedAt?'Project Saved. Click "Submit for Judging" for final project submission.':a&&E&&!v?.isSubmitted?"Project Requires Submission for Judging":a&&!E&&v?.isSubmitted?"Project Not Submitted for Judging":a&&v?.isSubmitted?"Project Submitted for Judging":void 0,customSubmits:ex})}),!F&&ej&&e?.projectDetails&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(sk,{project:e.projectDetails,fields:x,title:e.challengeDetails?.title,subTitle:"Challenge",excerpt:e.challengeDetails?.excerpt})}),F&&o&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(q.HtmlContainer,{className:oK.default.sidetext,html:o})})]})]})})})}e.s(["TeamMemberEditor",()=>o0,"default",()=>o1],67215);var oZ=e.i(32149);function o0({isViewer:e=!1,isEditor:t=!1,page:s}){let{data:a,loading:l}=(0,w.useQuery)(k.ViewerDocument),{user:i,teams:o}=a?.viewer||{},n=s?.owner&&i?.id&&s.owner===i.id,r=o&&o.find(e=>e.id===s?.id)||!1,{data:d,loading:c}=(0,w.useQuery)(k.TeamDocument,{skip:s?.id===void 0||s?.id===null||!r,variables:{id:s?.id}}),m=d?.team,h=n?"You are the team owner.":t?"You are a team editor.":r?"You are a team member.":void 0;return(0,u.jsxs)(tD,{isReady:!(l||c),children:[h&&(0,u.jsx)(tM,{children:h}),e&&m&&!m.eligibility?.status&&(0,u.jsx)(ss.Alert,{title:"Team is Award Ineligible.",collapsable:!0,children:m.eligibility?.message}),(0,u.jsxs)("div",{className:oZ.default.actions,children:[r&&!n&&s&&(0,u.jsx)(oV,{team:s,size:"xs"}),!r&&s&&(0,u.jsx)(oH,{team:s,size:"xs"})]})]})}let o1=o0;var o2=e.i(9987);function o5({teamId:e,user:t,isOwner:s,canEdit:a=!1,canView:l=!1,isLoading:i,onRemove:o}){let{avatar:n,fullName:r,username:d,country:c}=t;return(0,u.jsxs)("div",{className:o2.default.container,children:[(0,u.jsxs)("div",{className:o2.default.avatar,children:[(0,u.jsx)(Q.Avatar,{image:n,size:"lg"}),s&&(0,u.jsx)("span",{className:o2.default.badge,children:"Team Owner"}),!s&&a&&(0,u.jsx)(R.Button,{loading:i,disabled:i,icon:"spaceapps/close",size:"xxs",onClick:()=>{o&&o()},theme:"important",children:"Remove"})]}),(0,u.jsxs)("div",{className:o2.default.meta,children:[(0,u.jsx)("h2",{className:o2.default.heading,children:r||"Name Not Provided"}),l&&(0,u.jsxs)("span",{className:o2.default.text,children:["@",d]}),(0,u.jsx)("span",{className:o2.default["sub-text"],children:c})]})]})}var o4=e.i(10063);function o3({user:e,isLoadingAny:t,isLoadingApprove:s,isLoadingDeny:a,canAdd:l=!0,canEdit:i=!1,onApprove:o,onDeny:n}){let{avatar:r,fullName:d,username:c,country:m}=e;return(0,u.jsxs)("div",{className:o4.default.container,children:[(0,u.jsxs)("div",{className:o4.default.content,children:[(0,u.jsx)("div",{className:o4.default.avatar,children:(0,u.jsx)(Q.Avatar,{image:r,size:"lg"})}),(0,u.jsxs)("div",{className:o4.default.meta,children:[(0,u.jsx)("h2",{className:o4.default.heading,children:d}),(0,u.jsxs)("span",{className:o4.default.text,children:["@",c]}),(0,u.jsx)("span",{className:o4.default["sub-text"],children:m})]})]}),(0,u.jsxs)("div",{className:o4.default.actions,children:[i&&(0,u.jsx)(R.Button,{loading:s,disabled:t||!l,icon:"spaceapps/check",size:"xxs",onClick:()=>{o&&o()},theme:"secondary",tooltip:l?"":"You have reached the member limit",children:"Approve"}),i&&(0,u.jsx)(R.Button,{loading:a,disabled:s,icon:"spaceapps/close",size:"xxs",onClick:()=>{n&&n()},theme:"important",children:"Deny"})]})]})}var o6=e.i(40589);function o8({page:e}){let{openModalHandler:t,closeModalHandler:s}
34=(0,E.useModal)(),{addToast:a}=(0,S.useToasts)(),[l,i]=(0,m.useState)(""),{event:o}=(0,ek.useEvent)(e.event),n=(0,l4.useAuth)({permissions:["edit:team"],obj:{id:e.id,type:"team"}})&&!!o?.teamEditStatus&&o.teamEditStatus>2,r=(0,l4.useAuth)({permissions:["view:team"],obj:{id:e.id,type:"team"}})&&!!o?.teamEditStatus&&o.teamEditStatus>1,{data:d}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),{data:c,loading:h,refetch:p}=(0,w.useQuery)(k.TeamDocument,{skip:e?.id===void 0||e?.id===null||!r,variables:{id:e?.id}}),_=c?.team,f=_?.memberships||e.memberships,g=_?.joinRequests,v=f?[...f]:[],x=g?[...g]:[],j=d?.page||{},{membersSectionHeading:b,memberRequestsSectionHeading:C}=j||{},[R,{loading:L}]=y(k.RemoveTeamMembershipDocument),[P,{loading:A}]=y(k.ApproveJoinRequestDocument),[D,{loading:q}]=y(k.DenyJoinRequestDocument),M=e=>e.fullName||e.username||"this user",$=async()=>{s()},z=async t=>{if(i(t),s(),v){let{errors:s}=await R({variables:{id:e.id,input:{users:[t]}}});s?a(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(s)||"Failed to Update Membership"):(a(N.ToastTypes.SUCCESS,"Member Removed"),await p())}},G=async e=>{if(i(e),s(),x){let{errors:t}=await P({variables:{id:e}});t?a(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(t)||"Failed to Update Request"):(a(N.ToastTypes.SUCCESS,"Team member added!"),await p())}},O=async e=>{if(i(e),s(),x){let{errors:t}=await D({variables:{id:e}});t?a(N.ToastTypes.ERROR,(0,T.flattenGqlErrors)(t)||"Failed to Update Request"):(a(N.ToastTypes.SUCCESS,"Request has been denied."),await p())}},I=j.chatCardLink?{url:j.chatCardLink,text:j.chatCardLinkLabel||"Open Chat",isNewTab:!0}:void 0,Q=v&&o?.teamMemberLimit&&v.length>=o?.teamMemberLimit||!1,V=o?.teamMemberLimit||6;return(0,u.jsx)("div",{className:o6.default.container,children:(0,u.jsxs)(U.FlexContainer,{children:[(0,u.jsxs)(B.MainColumn,{children:[n&&(0,u.jsxs)("div",{className:o6.default.details,children:[C&&(0,u.jsx)("h2",{className:o6.default["section-heading"],children:C}),Q&&(0,u.jsxs)("h3",{className:o6.default["sub-heading"],children:["You have reached the maximum allowed team members of ",V," and may no longer approve requests."]}),!Q&&x.length>0&&(0,u.jsxs)("h3",{className:o6.default["sub-heading"],children:["Your team may have up to ",V," total members."]}),(0,u.jsxs)("div",{className:o6.default.requests,children:[x&&!h&&x.map(({id:e,user:s,userDetails:a},i)=>a?(0,u.jsx)(o3,{canEdit:n,canAdd:!Q,user:a,isLoadingAny:A||q,isLoadingApprove:A&&l===e,isLoadingDeny:q&&l===e,onApprove:()=>{t({requirements:{authenticated:!0,event:o?.id},title:"Approve Join Request",content:(0,u.jsxs)(lz,{confirmLabel:"Ap
34prove",onConfirm:()=>G(e),onClose:$,children:["You are sure you want to approve ",(0,u.jsxs)("strong",{children:[M(a),"'s"]})," request to join your team?"]})})},onDeny:()=>{t({requirements:{authenticated:!0,event:o?.id},title:"Deny Join Request",content:(0,u.jsxs)(lz,{confirmLabel:"Deny",theme:"important",onConfirm:()=>O(e),onClose:$,children:["You are sure you want to deny ",(0,u.jsxs)("strong",{children:[M(a),"'s"]})," request to join your team?"]})})}},`team-request-${s}`):(0,u.jsx)("p",{children:"User Data Not Found."})),x&&h&&(0,u.jsx)(F.Loader,{}),(!x||x.length<=0)&&!h&&(0,u.jsx)("p",{children:"No Pending Requests."})]})]}),(0,u.jsxs)("div",{className:o6.default.details,children:[b&&(0,u.jsx)("h2",{className:o6.default["section-heading"],children:b}),(0,u.jsxs)("div",{className:o6.default.members,children:[v&&v.sort((t,s)=>t.user===e.owner?-1:+(s.user===e.owner)).map(({user:s,userDetails:a},i)=>(0,u.jsx)(o5,{teamId:e.id,user:a,canEdit:n,canView:r,isOwner:e.owner===s,isLoading:L&&l===s,onRemove:()=>{t({requirements:{authenticated:!0,event:o?.id},title:"Remove Team Member",content:(0,u.jsxs)(lz,{confirmLabel:"Remove",theme:"important",onConfirm:()=>z(s),onClose:$,children:["You are sure you want to remove ",(0,u.jsx)("strong",{children:M(a)})," as a member?"]})})}},`team-member-${s}`)),v&&h&&(0,u.jsx)(F.Loader,{})]})]})]}),(0,u.jsxs)(H.SideColumn,{children:[(0,u.jsx)(o0,{isViewer:r,isEditor:n,page:e}),(0,u.jsx)(W.Card,{children:(0,u.jsx)(sS,{team:e})}),r&&_?.memberOnlyInfo&&(0,u.jsxs)(W.Card,{children:[(0,u.jsx)("h2",{children:"Contact Info"}),(0,u.jsx)("p",{children:_.memberOnlyInfo})]}),j.showChatCard&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(tO,{title:j.chatCardTitle,text:j.chatCardText,link:I})}),n&&(0,u.jsx)(W.Card,{children:(0,u.jsx)(oB,{team:e})})]})]})})}var o9=e.i(66388);function o7({page:e}){let{data:t,loading:s}=(0,w.useQuery)(k.PageDocument,{skip:e?.meta?.parent===void 0,variables:{input:e?.meta?.parent?.id}}),a=t?.page||{},{event:l}=(0,ek.useEvent)(e.event),i=l?.teamEditStatus&&l.teamEditStatus>0&&l.isTeamPagesActive,o=l?.teamRegistrationStatus&&l.teamRegistrationStatus>0&&l.isTeamPagesActive,n=l?.projectEditStatus&&l.projectEditStatus>0&&l.isTeamPagesActive,r=[{label:a.detailsTabLabel||"Details",live:!i,panel:(0,u.jsx)("p",{children:"This Content has been hidden by the site administrators"}),slug:"details"},{label:a.detailsTabLabel||"Details",live:!!i,panel:(0,u.jsx)(oJ,{page:e}),slug:"details"},{label:a.projectTabLabel||"Project",live:!!i&&!!n&&a.showProjectTab,panel:(0,u.jsx)(oX,{page:e}),slug:"project"},{label:a.boardTabLabel||"Board",live:!!i&&a.showBoardTab,panel:(0,u.jsx)("div",{children:"Nothing to see yet ..."}),slug:"board"},{label:a.membersTabLabel||"Members",live:!!i&&!!o&&a.showMembersTab,panel:(0,u.jsx)(o8,{page:e}),slug:"members"}];return(0,u.jsxs)("div",{className:o9.default.container,children:[s&&(0,u.jsx)(F.Loader,{}),!s&&(0,u.jsx)(lg.TabbedContent,{tabs:r})]})}let ne=o7;e.s(["TeamIndex",()=>ns,"default",()=>na],95698);var nt=e.i(62642);function ns({page:e,fetchSize:t=20}){let{event:s}=(0,ek.useEvent)(e.event),{teamsFilter:a}=e,{isTeamPagesActive:l,teamEditStatus:i,teamRegistrationStatus:o,eventPages:n}=s||{},{data:r}=(0,w.useQuery)(k.PageDocument,{skip:!n?.createTeamPage,variables:{input:n?.createTeamPage}}),{filterFields:d,filterEvent:c,loading:h,getFetchFilters:p}=(0,lt.useFilterForm)(a,e),_=(0,C.useForm)({mode:"onBlur",values:(0,T.getDefaultFields)(d,{}),shouldUnregister:!1}),{getValues:f,watch:g}=_,v=f(),{data:x,loading:j,refetch:b,fetchMore:y}=(0,w.useQuery)(k.TeamsDocument,{skip:!l,variables:{first:t,after:"",q:v.keyword||"",filtering:[...p(v)]}}),N=x?.teams.edges||[];(0,m.useEffect)(()=>{let e=g((e,{name:s,type:a})=>{let l=f();b({first:t,after:"",q:l.keyword||"",filtering:[...p(l)]})});return()=>e.unsubscribe()},[t,g,b,f,p]);let E=async()=>{await b()},S=async()=>{let e=x?.teams.pageInfo;e?.hasNextPage&&await y({variables:{after:e?.endCursor}})},R=(i??0)>1&&r?.page.meta.relativeUrl?(0,u.jsx)(L.Link,{href:r.page.meta.relativeUrl,icon:"spaceapps/profile",appearance:"button",theme:"secondary",size:"sm",children:r.page.title}):null,P=`Currently returning ${x?.teams.totalCount||0}
34 teams`,A=!!o&&o>1;return(0,u.jsxs)("div",{className:nt.default.container,children:[(0,u.jsx)(C.FormProvider,{..._,children:a&&(0,u.jsx)(ln,{filterFormId:a,onSubmit:E,lookupEvent:c,formActions:R,resultsMessage:P,isLoading:h})}),j&&(0,u.jsx)(F.Loader,{}),!j&&0===N.length&&(0,u.jsx)(ls.NoResults,{children:(0,u.jsx)("p",{children:"No Teams Found."})}),!j&&N&&(0,u.jsx)("div",{className:nt.default.results,children:N.map(({node:e})=>(0,u.jsx)(sL,{team:e,showJoinBadge:A},`team_${e.id}`))}),x&&(0,u.jsx)(le.LoadMore,{isLoading:j,hasMore:x.teams.pageInfo?.hasNextPage,onLoadMore:S})]})}let na=ns;var nl=e.i(88014),ni=e.i(57052),no=e.i(78548),nn=e.i(4846);let nr=i9.default.bind(no.default);function nd(){let{id:e,ref:t,position:s,show:a,handleMouseEnter:l,handleMouseLeave:i}=(0,ni.useTooltip)();return(0,m.useEffect)(()=>{let e=()=>{document.querySelectorAll("a[data-external]:not([data-processed])").forEach(e=>{e.setAttribute("data-processed","true");let t=document.createElement("span");t.classList.add("icon-container"),(0,nl.createRoot)(t).render((0,u.jsx)(ei.Icon,{slug:"spaceapps/external"}));let s=e.querySelector(".cta-button");s?s.appendChild(t):e.appendChild(t),e.addEventListener("pointerenter",l),e.addEventListener("pointerleave",i)})};e();let t=new MutationObserver(()=>{e()}),s=document.querySelector("#main");return null!==s&&t.observe(s,{childList:!0,subtree:!0}),()=>{t.disconnect(),document.querySelectorAll("a[data-external]").forEach(e=>{e.removeAttribute("data-processed"),e.querySelector(no.default["icon-container"])?.remove(),e.removeEventListener("pointerenter",l),e.removeEventListener("pointerleave",i)})}},[]),(0,u.jsx)("div",{id:e,ref:t,style:{top:s?.top||0,left:s?.left||0},className:nr("tooltip",{show:a}),role:"tooltip",children:(0,u.jsx)(nn.ExternalTooltip,{})})}e.s(["ToolTipPortal",()=>nd,"default",0,nd],49640);var nc=e.i(74080),nu=e.i(83870);function nm(){let e=(0,m.useRef)(null),[t,s]=(0,m.useState)(!1),{toasts:a}=(0,S.useToasts)();return(0,m.useEffect)(()=>{e.current=document.querySelector("#main"),s(!0)},[]),t&&e.current?(0,nc.createPortal)((0,u.jsx)("div",{className:nu.default.container,children:a.filter(e=>!!e.content&&""!==e.content).map(e=>(0,u.jsx)(M.Toast,{id:e.id,type:e.type||N.ToastTypes.ALERT,timer:3e4,children:"string"==typeof e.content?(0,u.jsx)(q.HtmlContainer,{html:e.content}):e.content},e.id))}),e.current):null}e.s(["ToastPortal",()=>nm,"default",0,nm],44408)},96222,e=>{"use strict";e.i(34572),e.i(68252);var t=e.i(74462),s=e.i(87415),a=e.i(24606),l=e.i(97374),i=e.i(38645),o=e.i(27030);e.s(["CreateAccount",()=>t.CreateAccount,"ForgotPasswordForm",()=>a.ForgotPasswordForm,"ForgotUsernameForm",()=>l.ForgotUsernameForm,"LoginForm",()=>s.LoginForm,"RequestVerificationForm",()=>i.RequestVerificationForm,"ResetPasswordForm",()=>o.ResetPasswordForm],91961),e.i(91961);var n=e.i(54900),r=e.i(71493),d=e.i(94906),c=e.i(52105),u=e.i(48584),m=e.i(22197),h=e.i(34028),p=e.i(39499),_=e.i(69492),f=e.i(16733),g=e.i(58762),v=e.i(11273),x=e.i(69362),j=e.i(13863);e.i(92641);var b=e.i(84723),y=e.i(58161),w=e.i(30319);e.s(["CancelEventRegistration",()=>b.CancelEventRegistration,"CreateEventRegistration",()=>y.CreateEventRegistration,"EditEventRegistration",()=>w.EditEventRegistration],99376),e.i(99376);var C=e.i(85302),k=e.i(12301),N=e.i(67287),T=e.i(29570),E=e.i(35841),S=e.i(95824),F=e.i(53737),R=e.i(1236),L=e.i(63096),P=e.i(8068),A=e.i(47240),D=e.i(66858);e.i(65728);var q=e.i(79980),M=e.i(52437),$=e.i(18013);e.s(["MenuDropdown",()=>q.MenuDropdown,"MenuItem",()=>M.MenuItem,"MenuItemList",()=>$.MenuItemList],76188),e.i(76188);var z=e.i(26025),G=e.i(47650),O=e.i(26788),I=e.i(26139),U=e.i(92574),B=e.i(24920),W=e.i(92668),H=e.i(30247);e.i(81303);var Q=e.i(97682),V=e.i(18431);e.s(["CreateTeam",()=>Q.CreateTeam,"CreateTeamJoinRequest",()=>V.CreateTeamJoinRequest],7468),e.i(7468);
34var Y=e.i(81670),J=e.i(94822),K=e.i(95698),X=e.i(95536),Z=e.i(67215),ee=e.i(49640),et=e.i(44408);e.s(["AccountProfile",()=>n.AccountProfile,"AccountVerification",()=>r.AccountVerification,"Authorized",()=>d.Authorized,"AwardDetails",()=>c.AwardDetails,"BlogIndex",()=>u.BlogIndex,"CancelEventRegistration",()=>b.CancelEventRegistration,"Challenge",()=>m.Challenge,"ChallengeCta",()=>h.ChallengeCta,"ChallengeDetails",()=>p.ChallengeDetails,"ChallengeIndex",()=>f.ChallengeIndex,"ChallengeTeams",()=>_.ChallengeTeams,"ContentTypeEditor",()=>g.ContentTypeEditor,"ContentTypeForm",()=>v.ContentTypeForm,"CreateAccount",()=>t.CreateAccount,"CreateEventRegistration",()=>y.CreateEventRegistration,"CreateTeam",()=>Q.CreateTeam,"CreateTeamJoinRequest",()=>V.CreateTeamJoinRequest,"DeleteTeamCta",()=>Y.DeleteTeamCta,"DirectoryList",()=>x.DirectoryList,"EditEventRegistration",()=>w.EditEventRegistration,"EventPageHeader",()=>j.EventPageHeader,"EventRegistrationCta",()=>C.EventRegistrationCta,"EventTaskCard",()=>N.EventTaskCard,"EventTaskCta",()=>k.EventTaskCta,"ForgotPasswordForm",()=>a.ForgotPasswordForm,"ForgotUsernameForm",()=>l.ForgotUsernameForm,"FormPageContent",()=>T.FormPageContent,"JoinTeamCta",()=>X.JoinTeamCta,"Judging",()=>E.Judging,"JudgingIndex",()=>S.JudgingIndex,"LocalEventIndex",()=>R.LocalEventIndex,"LocalEventRegistrationCta",()=>L.LocalEventRegistrationCta,"LocalEventTabs",()=>F.LocalEventTabs,"LoginForm",()=>s.LoginForm,"Logout",()=>P.Logout,"MenuDropdown",()=>q.MenuDropdown,"MenuItem",()=>M.MenuItem,"MenuItemList",()=>$.MenuItemList,"MessageTabs",()=>A.MessageTabs,"ModalPortal",()=>D.ModalPortal,"NotFoundContent",()=>z.NotFoundContent,"PageAlert",()=>G.PageAlert,"PageHero",()=>O.PageHero,"RequestVerificationForm",()=>i.RequestVerificationForm,"ResetPasswordForm",()=>o.ResetPasswordForm,"ResourceGroups",()=>I.ResourceGroups,"ResourceMenu",()=>B.ResourceMenu,"ResourcesSearchBar",()=>U.ResourcesSearchBar,"SiteFooter",()=>H.SiteFooter,"SiteHeader",()=>W.SiteHeader,"TeamIndex",()=>K.TeamIndex,"TeamMemberEditor",()=>Z.TeamMemberEditor,"TeamTabs",()=>J.TeamTabs,"ToastPortal",()=>et.ToastPortal,"ToolTipPortal",()=>ee.ToolTipPortal],96222)}]);
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.