PageSourceSearch

https://app.teleskop.ro/build/assets/Drawing-D5Sl9SoB.js

js teleskop.ro collected 2026-09-24 10:47:57 UTC 2,100 bytes, 1 lines download raw bytes

1import{r as a,j as r,C as d,D as b}from"./chakraUI-h3IIcARD.js";import{H as S}from"./Header-DlB1wKZF.js";import{I as v}from"./excalidraw-COXd5XH0.js";import{u as I,a as C}from"./useGetDrawingJson-BKkrUQsc.js";import{u as D}from"./App-BJtDJr_7.js";import{E as P}from"./percentages-BXMCSKIN-DWHxCHQh.js";import"./Button-CG5b4GW5.js";import"./Icon-Ci5DRDlF.js";import"./appBaseUrl-BN54vKaS.js";import"./ellipse--cEExGJJ.js";import"./utils-CcpXDjap.js";import"./logo-short-DTvOMtOG.js";import"./i18n-DMximgDB.js";const F=f=>{const{location:m,navigate:l}=f,[t,g]=a.useState(null),[s,x]=a.useState(null),i=m.pathname.split("/")[2],{locale:w}=D(),{getJson:c,isLoadingJson:h,responseDrawerJson:o}=I({jsonPath:s?.json_file_path,isPublic:!0}),{getDrawing:p,isLoadingGetDrawing:j,responseGetDrawing:n}=C({drawingId:i,isPublic:!0}),_=()=>{switch(w){case"en":return"en-US";case"ro":return"ro-RO";default:return"ro-RO"}};a.useEffect(()=>{i&&!s&&p()},[i,s,p]),a.useEffect(()=>{if(n){if(n.error){l("/404");return}const e=n.drawing;document.title=`Teleskop | ${e.title}`,x({json_file_path:e.json_file_path,preview_image:e.preview_image,title:e.title,user_name:e.user_name,user_avatar:e.user_avatar})}},[n]);const u=a.useCallback(e=>{c(e)},[c]);a.useEffect(()=>{!o&&s?.json_file_path&&u()},[o,u,s]),a.useEffect(()=>{o&&t&&(t.updateScene(o),t.updateScene({elements:t.getSceneElements(),appState:t.getAppState()}),t.scrollToContent())},[o,t]);const E={canvasActions:{changeViewBackgroundColor:!0,clearCanvas:!0,loadScene:!0}};return r.jsxs(P,{children:[r.jsx(S,{isPublic:!0,board:s,navigate:l}),r.jsxs(d,{positon:"fixed",top:"0",width:"100%",height:"100vh",bg:"#fff",zIndex:"100",sx:{"@media screen and (max-width: 900px)":{height:"calc(100vh - 73px)"}},children:[(!s&&j||h)&&r.jsx(d,{position:"absolute",width:"300px",top:"30%",left:"0",right:"0",m:"0 auto",zIndex:"9999",children:r.jsx(b,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"blue.500",size:"200px"})}),r.jsx(v,{UIOptions:E,langCode:_(),excalidrawAPI:e=>g(e),isCollaborating:!1,zenModeEnabled:!0,viewModeEnabled:!0})]})]})};export{F as default};

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.