@getontime/cli
Version:
Time keeping for live events
2 lines • 6.41 kB
JavaScript
System.register(["./jsx-runtime-legacy-DMkDNnVj.js","./useSocket-legacy-C772wu7w.js","./Button-legacy-DpgzgT04.js","./useIsSmallScreen-legacy-DavgXfPB.js","./Select-legacy-DHLEukf3.js","./constants-legacy-CvecvM28.js","./SwatchPicker-legacy-DpR2sNl5.js","./viewParamsEditor.store-legacy-BGER9MKV.js","./useSettings-legacy-CmEM1qbK.js","./Input-legacy-CNt711cd.js","./viewOptions-legacy-C48HYPwV.js","./assets-legacy-CsCyioqi.js","./index-legacy-NWDCUII5.js","./Info-legacy-6yM0-oGU.js","./Empty-legacy-ZRfHevNV.js","./ViewParamsEditor-legacy-5MW9MZnc.js","./viewUtils-legacy-djI28uVO.js","./useWindowTitle-legacy-2YHQ5qMQ.js","./ViewLogo-legacy-BZNOVq3q.js","./useProjectData-legacy-BeF8hAuC.js"],function(e,i){var t,n,a,o,r,s,l,c,d,f,m,p,g,u,x,j;function v({projectData:e,isMirrored:i}){const{getLocalizedString:t}=c();if(!e||Object.values(e).every(e=>!e||e&&Array.isArray(e)&&0===e.length))return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(f,{target:o.ProjectInfo,viewOptions:[]}),(0,j.jsx)(d,{text:t("common.no_data")})]});const n=Boolean(e.logo||e.title||e.description);return(0,j.jsxs)("div",{className:"project "+(i?"mirror":""),"data-testid":"project-view",children:[(0,j.jsx)(f,{target:o.ProjectInfo,viewOptions:[]}),n&&(0,j.jsxs)("div",{className:"project-header",children:[e.logo&&(0,j.jsx)(p,{name:e.logo,className:"logo"}),(0,j.jsxs)("div",{className:"project-header__text",children:[e.title&&(0,j.jsx)("div",{className:"title",children:e.title}),e.description&&(0,j.jsx)("div",{className:"description",children:e.description})]})]}),(0,j.jsxs)("div",{className:"info",children:[e.info&&(0,j.jsx)(h,{label:t("project.info"),children:e.info}),e.url&&(0,j.jsxs)("div",{className:"info__card",children:[(0,j.jsx)("div",{className:"info__label",children:t("project.url")}),(0,j.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"info__value link",children:[e.url,(0,j.jsx)(r,{style:{fontSize:"1em"}})]})]}),e.custom.map((e,i)=>(0,j.jsxs)("div",{className:"info__card",children:[e.title&&(0,j.jsx)("div",{className:"info__label",children:e.title}),e.url?(0,j.jsxs)("div",{className:"info__media",children:[(0,j.jsx)(y,{src:e.url}),e.value&&(0,j.jsx)("div",{className:"info__value",children:e.value})]}):e.value&&(0,j.jsx)("div",{className:"info__value",children:e.value})]},`${e.title}-${i}`))]})]})}function h({label:e,children:i}){return(0,j.jsxs)("div",{className:"info__card",children:[(0,j.jsx)("div",{className:"info__label",children:e}),(0,j.jsx)("div",{className:"info__value",children:i})]})}function y({src:e}){const[i,t]=(0,x.useState)(!1);return i?null:(0,j.jsx)("div",{className:"info__image-container",children:(0,j.jsx)("img",{className:"info__image",src:e,loading:"lazy",alt:"",onError:()=>t(!0)})})}return e("default",function(){const{data:e,status:i}=function(){const e=s(e=>e.mirror),{data:i,status:t}=g();return{data:{projectData:i,isMirrored:e},status:t}}();return m("Project info"),"pending"===i?(0,j.jsx)(l,{}):"error"===i?(0,j.jsx)(d,{variant:"error",text:"There was an error fetching data, please refresh the page."}):(0,j.jsx)(v,{...e})}),{setters:[function(e){t=e.a,n=e.n,a=e.t},function(e){o=e.Kt},function(e){},function(e){},function(e){},function(e){r=e.Wt},function(e){},function(e){},function(e){},function(e){},function(e){s=e.t},function(e){},function(e){l=e.s,c=e.t},function(e){},function(e){},function(e){d=e.o,f=e.t},function(e){},function(e){m=e.t},function(e){p=e.t},function(e){g=e.t}],execute:function(){(u=document.createElement("style")).textContent='.blink{animation:1s step-start infinite blink}@keyframes blink{0%{opacity:1}50%{opacity:.2}}.fourtyfive{transform:rotate(45deg)}.mirror{transform:rotate(180deg)}.project{box-sizing:border-box;width:100%;height:100vh;font-family:var(--font-family-override,"Open Sans", "Segoe UI", sans-serif);background:var(--background-color-override,#101010);color:var(--color-override,rgba(255,255,255,.8));flex-direction:column;margin:0;padding:min(2vh,16px) max(16px,min(2vw,24px));font-size:max(15px,min(1.5vw,28px));display:flex;overflow:hidden}.project .project-header{border-bottom:1px solid rgba(255,255,255,.1);align-items:center;gap:max(12px,min(2vw,24px));width:min(100%,1100px);margin-left:auto;margin-right:auto;padding-bottom:min(2vh,16px);display:flex}.project .logo{max-width:min(200px,30vw)}.project .title{font-size:max(24px,min(2.5vw,48px));font-weight:600;line-height:1.1em}.project .description{color:var(--secondary-color-override,rgba(255,255,255,.45));font-size:max(15px,min(1.5vw,28px))}.project .info{padding-top:min(2vh,16px);padding-bottom:min(2vh,16px);flex-direction:column;flex:1;gap:min(2vh,16px);width:min(100%,1100px);margin-left:auto;margin-right:auto;padding-bottom:10vh;display:flex;overflow-y:auto}.project .info__card{background-color:var(--card-background-color-override,rgba(255,255,255,.05));border-radius:4px;flex-direction:column;gap:.35em;padding:min(2vh,16px) max(16px,min(2vw,24px));display:flex}.project .info__media{flex-direction:row;align-items:flex-start;gap:min(2vh,16px);display:flex}.project .info__media .info__value{flex:1;min-width:0}.project .info__label{letter-spacing:.05em;color:var(--label-color-override,rgba(255,255,255,.25));text-transform:uppercase;font-size:max(12px,min(1.25vw,20px));font-weight:600}.project .info__value{white-space:break-spaces;overflow-wrap:anywhere;line-height:1.35}.project .info__image-container{flex:0 0 min(192px,25%);justify-content:center;align-items:center;display:flex}.project .info__image{object-fit:contain;max-width:100%;height:auto;display:block}.project .link.info__value{color:#779be7;align-items:center;gap:.35em;display:inline-flex}.project .link.info__value:hover{color:#ff7597}@media screen and (max-width:768px){.project .project-header{flex-direction:column;align-items:start;gap:.5rem}.project .logo img{height:min(50px,10vh)}}\n/*$vite$:1*/',document.head.appendChild(u),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f14ad0099eab1969fdd065b56af5fdd3cf530de6"};var i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4572458d-03da-41e0-8cbb-7914f5ab2f07",e._sentryDebugIdIdentifier="sentry-dbid-4572458d-03da-41e0-8cbb-7914f5ab2f07")}catch(e){}}(),x=t(n(),1),j=a()}}});
//# sourceMappingURL=ProjectInfo-legacy-BSbGxhtv.js.map