PageSourceSearch

https://editor-assets.periodica.press/bundle/shareRoute-C5zgJHxL.js

js periodica.press collected 2026-10-02 14:56:36 UTC 3,188 bytes, 1 lines download raw bytes

1import{j as e,B as m,A as f,P as n,l as u,a as v,b as j,I as x,c as w,T as y,d as E,e as _,f as g,g as b,h as P,i as z,D as d,k as I,m as N,n as T,C as i,o as k,r as C,p as S}from"./index-BkrnhKrt.js";import{N as D}from"./NotFound-cvh4mEGb.js";import{P as L}from"./Preview-Bub1B2P7.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"periodica-ed35d2514d520dd6930196ef4301489ceeeffb1f"};var a=new s.Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="1fc8e405-0adc-4cd9-8a8a-8bc59460a25c",s._sentryDebugIdIdentifier="sentry-dbid-1fc8e405-0adc-4cd9-8a8a-8bc59460a25c")}catch{}})();const A="_grows_wztgv_1",B="_title_wztgv_5",F="_titleBlock_wztgv_11",R="_logo_wztgv_23",$="_logoLink_wztgv_28",O="_spacer_wztgv_34",W="_container_wztgv_43",H="_bg_wztgv_65",J="_headerContainer_wztgv_71",Q="_footerBlock_wztgv_77";function l({children:s,title:a="",description:r="",onCopyProjectClick:o,footerCaption:t}){return e.jsxs(m,{className:A,children:[e.jsxs("div",{className:J,children:[e.jsx(f,{}),e.jsx(U,{title:a,description:r,onCopyProjectClick:o})]}),s,t&&e.jsx("div",{className:Q,children:e.jsx(n,{size:"small",color:"secondary",children:t})})]})}function U({title:s,description:a,rootLink:r="https://periodica.press",onCopyProjectClick:o}){return e.jsx("div",{className:H,children:e.jsxs("div",{className:W,children:[e.jsx("a",{className:$,href:r,children:e.jsx("img",{className:R,src:u,alt:"логотип"})}),e.jsxs("div",{className:F,children:[e.jsx(n,{size:"large",weight:"emphasized",className:B,children:s}),a&&e.jsx(n,{size:"medium",color:"secondary",children:a})]}),o?e.jsxs(v,{children:[e.jsx(j,{render:e.jsx(w,{variant:"secondary",size:"medium",onClick:o}),children:e.jsx(x,{})}),e.jsx(y,{children:"Дублировать к себе и открыть"})]}):e.jsx("div",{className:O})]})})}function Y({project:s}){const a=g(),r=_(),o=k(t=>t.projects.allIds.includes(s.id));return C.useEffect(()=>{o?i.analytics.logEvent({name:"event_editor_preview_shared_project"}):i.analytics.logEvent({name:"event_editor_view_shared_project"})},[o]),e.jsx(L,{project:s,returnToEditorWithPage:o?t=>{i.analytics.logEvent({name:"event_editor_page_select_from_shared"}),r(i.actions.project.selectProject(s.id)),r(i.actions.pages.selectPageWithCheck(t)),a(`/projects/${s.id}`)}:void 0})}function M(){const s=E("shared-import"),a=_(),r=g(),{token:o}=b(),{data:t,isLoading:p,isError:h}=P(S(o));return p?e.jsx(z,{title:"Раскрашиваем развороты..."}):h||!t?e.jsx(l,{children:e.jsx(D,{})}):e.jsxs(l,{title:t?.metadata?.title||d,description:t.name,onCopyProjectClick:s?()=>{N.logEvent({name:"event_editor_copy_shared_project"});const c=T();a(i.actions.project.importProject(c,t.full_data,`${t?.metadata?.title??d} (из ссылки)`)),r(`/projects/${c}`)}:void 0,footerCaption:t.metadata.conflictInfo?.date?`Сохранено ${I(t.metadata.conflictInfo?.date)}`:void 0,children:[e.jsx("style",{children:"@import url(https://static.periodica.press/public/fonts/periodica-fonts.css?d=20260114)"}),e.jsx(Y,{project:t.full_data})]})}export{M as Component};

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.