-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-final-js-7d965f1446bf34ed46cb.js
2 lines (2 loc) · 10.7 KB
/
component---src-templates-final-js-7d965f1446bf34ed46cb.js
1
2
"use strict";(self.webpackChunkvolgactf_site=self.webpackChunkvolgactf_site||[]).push([[145],{1458:function(e,t,a){var l=a(7294),r=a(5093);t.Z=function(e){var t=e.scoreboard,a=(0,r.useTranslation)().t;return l.createElement("div",{className:"table-scroll"},l.createElement("table",{className:"unstriped"},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,"#"),l.createElement("th",null,a("scoreboard_team")),l.createElement("th",null,a("scoreboard_score")))),l.createElement("tbody",null,t.map((function(e){return l.createElement("tr",{key:e.pos},l.createElement("td",null,e.pos),l.createElement("td",null,e.team),l.createElement("td",null,e.score<1&&e.score>0?(100*e.score).toFixed(2)+"%":e.score))})))))}},7197:function(e,t,a){a.d(t,{Z:function(){return c}});var l=a(7294),r=function(e){var t=e.section,a=e.language;return t.large?l.createElement("h1",null,t.title[a]):l.createElement("h2",null,t.title[a])},n=function(e){var t=e.partner;return l.createElement("a",{href:t.href,className:"partner",target:"_blank",rel:"noreferrer noopener"},l.createElement("img",{src:t.image.publicURL,alt:t.id}))},c=function(e){var t=e.partnersSections,a=e.language;return t?l.createElement("div",{className:"grid-x"},t.map((function(e){return l.createElement("div",{key:e.id,className:"large-12 grid-x"},l.createElement("div",{className:"large-12 cell cell-text"},l.createElement(r,{section:e,language:a})),e.partners.map((function(e){return l.createElement("div",{className:"large-3 small-6 text-center",key:e.id},l.createElement(n,{partner:e}))})))}))):null}},59:function(e,t,a){a.d(t,{Z:function(){return s}});var l=a(7294),r=a(5093),n=a(5444),c=function(e){var t=e.locale,a=e.url,n=e.title,c=e.description,s=e.image,i=e.twitter;return l.createElement(r.Helmet,null,l.createElement("meta",{property:"og:locale",content:t}),l.createElement("meta",{property:"og:url",content:a}),l.createElement("meta",{property:"og:type",content:"website"}),l.createElement("meta",{property:"og:title",content:n}),l.createElement("meta",{property:"og:description",content:c}),l.createElement("meta",{property:"og:image",content:s}),l.createElement("meta",{property:"og:image:alt",content:c}),l.createElement("meta",{property:"twitter:card",content:"summary"}),l.createElement("meta",{property:"twitter:site",content:i}),l.createElement("meta",{property:"twitter:title",content:n}),l.createElement("meta",{property:"twitter:description",content:c}),l.createElement("meta",{property:"twitter:image",content:s}),l.createElement("meta",{name:"twitter:image:alt",content:c}))},s=function(e){var t=e.title,a=e.description,s=e.pathname,m=e.lang,o=e.ctf,u=e.metaYandexVerification,g=(0,n.useStaticQuery)(i).site.siteMetadata,d=g.siteUrl,E=g.defaultTitle,p=g.defaultDescription,f=g.banner,N=g.twitter,y={title:t?E+"::"+t:E,description:a||p,image:""+d+f,url:""+d+s},M=null;return o&&(M={"@context":"https://schema.org","@type":"Event",name:t,startDate:o.startDate,endDate:o.endDate,eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",eventStatus:"https://schema.org/EventScheduled",location:[{"@type":"VirtualLocation",url:y.url},{"@type":"Place",name:"Lotte Hotel Samara",address:{"@type":"PostalAddress",addressCountry:"RU",addressRegion:"Самарская область",addressLocality:"Самара",streetAddress:"ул. Самарская, 110",postalCode:"443041"}}],image:[y.image],description:y.description,organizer:{"@type":"Organization",name:E,url:d}}),l.createElement(l.Fragment,null,l.createElement(r.Helmet,{title:y.title,defer:!1},l.createElement("html",{lang:m,prefix:"og: http://ogp.me/ns#"}),l.createElement("meta",{name:"description",content:y.description}),l.createElement("meta",{name:"image",content:y.image}),u&&l.createElement("meta",{name:"yandex-verification",content:u}),o&&l.createElement("script",{type:"application/ld+json"},JSON.stringify(M))),l.createElement(c,{title:t,description:y.description,url:y.url,image:y.image,twitter:N,locale:m}))},i="2369751036"},3456:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var l=a(7294),r=function(e){var t=e.showStatus,a=e.teamsSections,r=e.language;return l.createElement("div",{className:"table-scroll"},l.createElement("table",{className:"teams unstriped"},l.createElement("tbody",null,a.map((function(e){return l.createElement(l.Fragment,{key:e.id},l.createElement("tr",null,l.createElement("th",{colSpan:t?"3":"2"},e.title[r])),e.teams.map((function(e){return l.createElement("tr",{key:e.title},l.createElement("td",null,l.createElement("a",{href:e.ctfTimeLink,target:"_blank",rel:"noreferrer noopener"},e.title)),l.createElement("td",null,e.edu[r]),t&&l.createElement("td",{style:{color:e.status.color||"black"}},e.status[r]))})))})))))},n=a(5093),c=a(7197),s=function(e){var t=e.streams,a=e.language;return t?l.createElement(l.Fragment,null,t.map((function(e){return l.createElement("div",{className:"grid-x",key:e.href},l.createElement("div",{className:"large-4 cell cell-text"},l.createElement("h2",null,e.title[a].toUpperCase())),l.createElement("div",{className:"large-offset-3 large-6 cell"},l.createElement("div",{className:"flex-video"},l.createElement("iframe",{frameBorder:"0",width:"100%",height:"100%",scrolling:"no",allowFullScreen:"true",title:e.title[a],src:e.href,allow:"encrypted-media"}))))}))):null},i=a(4578),m=function(e){function t(t){var a;(a=e.call(this,t)||this).nextPage=function(){var e=a.state.position+1;e<a.props.pages.length&&a.setState({position:e})},a.previousPage=function(){var e=a.state.position-1;e>=0&&a.setState({position:e})};var l=String((new Date).getDate()).padStart(2,"0")+"."+String((new Date).getMonth()+1).padStart(2,"0"),r=a.props.pages.map((function(e){return e.date})).indexOf(l);return-1===r&&(r=0),a.state={position:r},a}return(0,i.Z)(t,e),t.prototype.render=function(){var e=this;return l.createElement("div",{className:"grid-x schedule"},l.createElement("div",{className:"large-offset-7 large-4 cell text-right date"},l.createElement("button",{onClick:this.previousPage},l.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSI0NzcuMTc1IiBoZWlnaHQ9IjQ3Ny4xNzUiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9Im5vbmUiLz4KICAgIDxwYXRoIGQ9Im0xMTYuMzg0IDI0Ni4xMDUgMjIzLjg2MiAyMjYuMzMxYzUuMjcgNS4zMyAxMy43NyA1LjM3NiAxOS4xLjEwNXM1LjM3NS0xMy43Ny4xMDQtMTkuMUwxNDUuMTM2IDIzNi43NjJsMjE2LjY4LTIxNC4zMTRhMTMuNDYgMTMuNDYgMCAwIDAgLjEwNC0xOS4xYy0yLjU4Ni0yLjYxNC02LjA3OC00LjAzMy05LjQ3OC00LjA1Mi0zLjQtLjAxOS02LjkwNyAxLjI2Mi05LjUyMiAzLjk0OEwxMTYuNTkgMjI3LjEwNmMtNS4zMjkgNS4xNy01LjM3NiAxMy43Ny0uMjA1IDE4Ljk5OXoiCiAgICAgICAgICBmaWxsPSIjRkZGIiBjbGFzcz0iY3VycmVudExheWVyIi8+PC9zdmc+Cg==",alt:"Previous schedule page control"})),this.props.pages[this.state.position].date,l.createElement("button",{onClick:this.nextPage},l.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NzcuMTc1IDQ3Ny4xNzUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ3Ny4xNzUgNDc3LjE3NSIKICAgICB4bWw6c3BhY2U9InByZXNlcnZlIiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiI+PHBhdGggZD0ibTM2MC43MzEgMjI5LjA3NS0yMjUuMS0yMjUuMWMtNS4zLTUuMy0xMy44LTUuMy0xOS4xIDBzLTUuMyAxMy44IDAgMTkuMWwyMTUuNSAyMTUuNS0yMTUuNSAyMTUuNWMtNS4zIDUuMy01LjMgMTMuOCAwIDE5LjEgMi42IDIuNiA2LjEgNCA5LjUgNCAzLjQgMCA2LjktMS4zIDkuNS00bDIyNS4xLTIyNS4xYzUuMy01LjIgNS4zLTEzLjguMS0xOXoiIGZpbGw9IiNGRkYiLz48L3N2Zz4K",alt:"Next schedule page control"}))),l.createElement("div",{className:"large-12 cell"},this.props.pages[this.state.position].schedule.map((function(t,a){return l.createElement("div",{className:"grid-x schedule-element",key:a},!t.track&&l.createElement("div",{className:"cell small-offset-1 small-1"},t.time),l.createElement("div",{className:"cell small-offset-1 "+(t.track?"small-10":"small-8")+" "+(t.track?"schedule-track":"schedule-text")},t.name[e.props.language],t.author&&l.createElement("span",null,l.createElement("br",null),l.createElement("em",null,t.author[e.props.language]))))}))))},t}(l.Component),o=m,u=a(1458),g=a(59),d=function(e){var t=e.data,a=e.location,i=(0,n.useI18next)(),m=i.t,d=i.language,E=t.ctfJson.title,p=E.toUpperCase(),f=t.ctfJson.ctfText[d],N=t.ctfJson.teamsSections,y=t.ctfJson.partnersSections,M=t.ctfJson.streams,h=t.ctfJson.schedule,v=t.ctfJson.scoreboard,x=t.ctfJson.activity,I=t.ctfJson.current?t.ctfJson:null,j=t.ctfJson.showTeamStatus,S=t.ctfJson.showStreams;return l.createElement(l.Fragment,null,l.createElement(g.Z,{lang:d,description:f,title:E,pathname:a.pathname,ctf:I}),l.createElement("section",{className:"welcome bg-first"},l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-3 cell cell-text"},l.createElement("h1",null,p),f,l.createElement("hr",null)))),l.createElement("section",null,S&&M&&M.length>0&&l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-4 cell cell-text"},l.createElement("h1",null,m("streams_header"))),l.createElement("div",{className:"large-offset-1 large-10 cell cell-text"},l.createElement(s,{streams:M,language:d})))),l.createElement("section",null,h&&l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-4 cell cell-text"},l.createElement("h1",null,m("schedule_header"))),l.createElement("div",{className:"medium-offset-4 medium-4 cell"},l.createElement(o,{pages:h,language:d})))),l.createElement("section",null,x&&x.show&&l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-4 cell cell-text"},l.createElement("h1",null,m("activity_header")),x.activityText[d],l.createElement("br",null),l.createElement("a",{href:x.activityHref,target:"_blank",rel:"noopener noreferrer"},x.activityHref)))),l.createElement("section",null,v&&l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-4 cell cell-text"},l.createElement("h1",null,m("scoreboard_header"))),l.createElement("div",{className:"large-offset-1 large-10 cell cell-text"},l.createElement(u.Z,{scoreboard:v})))),l.createElement("section",null,N&&l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-4 cell cell-text"},l.createElement("h1",null,m("teams_header_1")),l.createElement("h1",null,m("teams_header_2"))),l.createElement("div",{className:"large-offset-1 large-10 cell cell-text"},l.createElement(r,{teamsSections:N,showStatus:j,language:d})))),l.createElement("section",null,y&&l.createElement("div",{className:"grid-x"},l.createElement("div",{className:"large-offset-1 large-4 cell cell-text"},l.createElement("h1",null,m("partners_header_1")),l.createElement("h1",null,m("partners_header_2"))),l.createElement("div",{className:"large-offset-1 large-10 cell"},l.createElement(c.Z,{partnersSections:y,language:d})))))}}}]);
//# sourceMappingURL=component---src-templates-final-js-7d965f1446bf34ed46cb.js.map