PageSourceSearch

https://cdnfiles.rg.ru/_next/static/chunks/pages/project/heroes-8be1c7ba413fcc01.js

js rg.ru collected 2026-09-27 20:57:02 UTC 10,215 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81897],{16065:function(e,t,n){"use strict";var r,i=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 28"},e),r||(r=i.createElement("path",{d:"M.423 25.237c-.564.629-.564 1.664 0 2.292a1.36 1.36 0 0 0 2.058 0l11.192-12.46.043-.097.065-.13.006-.011c.022-.043.053-.103.081-.165.07-.157.132-.352.132-.605 0-.432-.181-.845-.396-1.084L2.484.473 2.48.471a1.36 1.36 0 0 0-2.058 0c-.564.628-.564 1.663 0 2.292L10.57 14.059.425 25.235z"})))}},70021:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/heroes",function(){return n(14125)}])},14125:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return D},default:function(){return Q}});var r=n(85893),i=n(67294),o=n(21190),s=n(39332),a=n(48362),c=n(8979),u=n(14339),l=n(15033),d=n(42811),f=n(15040),h=n(68171),_=n(92716),x=n(63514),p=n(16065),m=n(23351),v=n(88527),j=n.n(v);function g(e){let{url:t,className:n,isHovered:i}=e;return(0,r.jsx)(d.Z,{errMsg:"Ошибка в блоке RippleButton. Проект heroes",children:(0,r.jsx)(m.Z,{href:t,children:(0,r.jsx)("a",{className:(0,x.Z)(j().root,i&&j().hovered,n),tabIndex:0,children:(0,r.jsx)(p.Z,{className:j().icon})})})})}var b=n(39129),N=n(96976),w=n.n(N);let E={hidden:{opacity:0,y:50,scale:.8},visible:{opacity:1,y:0,scale:1,transition:{duration:.3,ease:"easeOut"}},hover:{color:"#d82727",transition:{duration:.3,ease:"easeInOut"}}},y={visible:{transition:{staggerChildren:.03}},hover:{transition:{staggerChildren:.03}}};function C(e){let{title:t,url:n,onHoverStart:i,onHoverEnd:o,className:s}=e;return(0,r.jsx)(d.Z,{errMsg:"Ошибка в блоке AnimatedTitle. Проект heroes",children:(0,r.jsx)(m.Z,{href:n,children:(0,r.jsx)("a",{className:(0,x.Z)(w().link,s),tabIndex:0,children:(0,r.jsx)(b.E.h1,{className:w().root,initial:"hidden",animate:"visible",whileHover:"hover",variants:y,onHoverStart:i,onHoverEnd:o,children:t.split("").map((e,t)=>(0,r.jsx)(b.E.span,{variants:E,children:e},t))})})})})}var Z=n(4405),A=n.n(Z);function H(){let[e,t]=(0,i.useState)(!1);return(0,r.jsxs)("footer",{className:A().root,children:[(0,r.jsxs)("div",{className:A().box,children:[(0,r.jsx)(C,{title:"герои нашего времени",url:"/heroes/map",onHoverStart:()=>t(!0),onHoverEnd:()=>t(!1),className:A().title}),(0,r.jsx)(g,{url:"/heroes/map",className:A().button,isHovered:e})]}),(0,r.jsx)("h2",{className:A().subtitle,children:"Наступило время героев"})]})}var P=n(4002),M=n(80578),I=n(33234),k=n(2736),S=n.n(k);function T(e){let{mousePosition:t,windowInnerWidth:n,windowInnerHeight:i,children:o}=e,s=(0,P.q)(0,{stiffness:100,damping:50}),a=(0,P.q)(0,{stiffness:100,damping:50}),c=(0,M.H)((0,I.B)(t.clientX),[n,0],[-12,12]),u=(0,M.H)((0,I.B)(t.clientY),[i,0],[10,-10]);return c.onChange(e=>a.set(e)),u.onChange(e=>s.set(e)),(0,r.jsx)(d.Z,{errMsg:"Ошибка в блоке MotionGridItem. Проект heroes",children:(0,r.jsx)(b.E.div,{className:S().root,style:{perspective:2e3,rotateX:s,rotateY:a},children:o})})}var B=n(53485),G=n(41810),O=n.n(G);function R(e){let{image:t}=e;return(0,r.jsx)(d.Z,{errMsg:"Ошибка в блоке HeroGridCard. Проект heroes",children:(0,r.jsx)("div",{className:O().root,children:(0,r.jsx)(B.Z,{image:t,style:{width:"100%"},className:O().image,imageCropMap:(0,B.A)(t,{mobile:400,tablet:350,laptop:350,desktop:350,widescreen:450})})})})}var F=n(32094),L=n.n(F);function X(e){let{images:t}=e,n=window.innerWidth,o=window.innerHeight,s=(0,u.k)(),[a,c]=(0,i.useState)([]);(0,i.useEffect)(()=>{c(t.map(e=>({value:e,sort:Math.random()})).sort((e,t)=>e.sort-t.sort).map(e=>{let{value:t}=e;return t}))},[t]);let l=a.reduce((e,t,n)=>{let r=n%3;return e[r]||(e[r]=[]),e[r].push(t),e},[]),f=e=>(s.clientX-n/2)/10*(e%2==0?1:-1);return(0,r.jsx)(d.Z,{errMsg:"Ошибка в блоке MotionGrid. Проект heroes",children:(0,r.jsx)(b.E.div,{className:L().root,children:l.map((e,t)=>(0,r.jsx)(b.E.div,{className:L().row,animate:{x:f(t)},transition:{type:"spring",stiffness:100,damping:100},children:e.map((e,t)=>(0,r.jsx)(T,{mousePosition:s,windowInnerWidth:n,windowInnerHeight:o,children:(0,r.jsx)(R,{image:e})},t))},t))})})}var q=n(26646),z=n(7215),J=n(24447),W=n.n(J);function Y(e){let{setIsVisible:t}=e;return(0,r.jsx)(b.E.section,{className:W().wrapper,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.6},children:(0,r.jsxs)(z.Z,{outsideHandler:()=>t(!1),className:W().root,children:[(0,r.jsx)("div",{className:W().head,children:(0,r.jsx)(q.Z,{onClick:()=>t(!1)})}),(0,r.jsxs)("div",{className:W().content,children:[(0,r.jsxs)("div",{className:W().box,children:[(0,r.jsx)("h2",{className:W().title,children:"О проекте"}),(0,r.jsx)("p",{className:W().text,children:"\xabГерои нашего времени\xbb — проект фонда \xabЗащитники Отечества\xbb и \xabРоссийской газеты\xbb об участниках специальной военной операции. Они проявили свои лучшие качества на передовой, а теперь делятся своим опытом возвращения к мирной жизни."})]}),(0,r.jsxs)("div",{className:W().box,children:[(0,r.jsx)("h2",{className:W().title,children:"Миссия"}),(0,r.jsx)("p",{className:W().text,children:"Рассказать ветеранам СВО и их семьям о том, какую поддержку они могут получить от фонда \xabЗащитники Отечества\xbb."})]})]})]})})}function V(e){let{data:t}=e,n=(0,a.pW)(t)._source,x=(0,s.useRouter)(),[p,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{(0,l.ej)("heroes_init")||(m(!0),(0,l.d8)("heroes_init",1))},[]);let v=()=>{p||x.push("/heroes/map")};if(!n||!n.images)return null;let j=n.images.filter(e=>{let{is_icon:t}=e;return!t});return(0,r.jsx)(d.Z,{errMsg:"Ошибка в блоке IndexPage. Проект heroes",children:(0,r.jsx)("div",{onWheel:v,onTouchMove:v,children:(0,r.jsx)(c.d,{children:(0,r.jsxs)(h.Z,{children:[(0,r.jsx)(f.Z,{item:n}),(0,r.jsx)(o.M,{children:p&&(0,r.jsx)(Y,{setIsVisible:m})}),(0,r.jsx)(_.Z,{children:(0,r.jsx)(u.t,{children:(0,r.jsx)(X,{images:j})})}),(0,r.jsx)(H,{})]})})})})}var D=!0;function Q(e){return(0,r.jsx)(V,{data:e})}},14339:function(e,t,n){"use strict";n.d(t,{k:function(){return a},t:function(){return s}});var r=n(85893),i=n(67294);let o=(0,i.createContext)({clientX:0,clientY:0});function s(e){let{children:t}=e,[n,s]=(0,i.useState)({clientX:0,clientY:0}),a=(0,i.useCallback)(e=>{requestAnimationFrame(()=>{let{clientX:t,clientY:n}=e;s({clientX:t,clientY:n})})},[]);return(0,i.useEffect)(()=>(document.addEventListener("mousemove",a),()=>{document.removeEventListener("mousemove",a)}),[a]),(0,r.jsx)(o.Provider,{value:n,children:t})}let a=()=>(0,i.useContext)(o)},24447:function(e){e.exports={wrapper:"AboutProject_wrapper__Q_1J_",root:"AboutProject_root__xqdjz",head:"AboutProject_head__mPC3H",content:"AboutProject_content__I__Fn",box:"AboutProject_box__LPpYg",title:"AboutProject_title__Qhs2J",text:"AboutProject_text__gZyZu"}},96976:function(e){e.exports={root:"AnimatedTitle_root__1k8jb",link:"AnimatedTitle_link___P648"}},41810:function(e){e.exports={root:"HeroGridCard_root__THDhA",image:"HeroGridCard_image__pDN9C"}},4405:function(e){e.exports={root:"IndexFooter_root__TeSu5",box:"IndexFooter_box__JGfbw",title:"IndexFooter_title__TleIx",subtitle:"IndexFooter_subtitle__aV8eO",button:"IndexFooter_button__Gm45j"}},32094:function(e){e.exports={root:"MotionGrid_root__TmrTj",row:"MotionGrid_row__hz_79"}},2736:function(e){e.exports={root:"MotionGridItem_root__OnzwZ"}},88527:function(e){e.exports={root:"RippleButton_root__h3ARd",pulseEffect:"RippleButton_pulseEffect__h4EZj",icon:"RippleButton_icon__nHspK",hovered:"RippleButton_hovered__y_Bu_"}},4960:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var r=n(97582),i=n(67294),o=n(33234),s=n(16014),a=n(96681);function c(e){var t=(0,a.h)(function(){return(0,o.B)(e)});if((0,i.useContext)(s._).isStatic){var n=(0,r.CR)((0,i.useState)(e),2)[1];(0,i.useEffect)(function(){return t.onChange(n)},[])}return t}},75262:function(e,t,n){"use strict";n.d(t,{f:function(){return s},p:function(){return o}});var r=n(40406),i=n(58868);function o(e,t){(0,i.L)(function(){if((0,r.i)(e))return e.onChange(t)},[t])}function s(e,t){(0,i.L)(function(){var n=e.map(function(e){return e.onChange(t)}
1);return function(){return n.forEach(function(e){return e()})}})}},4002:function(e,t,n){"use strict";n.d(t,{q:function(){return l}});var r=n(97582),i=n(67294),o=n(90612),s=n(40406),a=n(4960),c=n(75262),u=n(16014);function l(e,t){void 0===t&&(t={});var n=(0,i.useContext)(u._).isStatic,l=(0,i.useRef)(null),d=(0,a.c)((0,s.i)(e)?e.get():e);return(0,i.useMemo)(function(){return d.attach(function(e,i){return n?i(e):(l.current&&l.current.stop(),l.current=(0,o.j)((0,r.pi)((0,r.pi)({from:d.get(),to:e,velocity:d.getVelocity()},t),{onUpdate:i})),d.get())})},[JSON.stringify(t)]),(0,c.p)(e,function(e){return d.set(parseFloat(e))}),d}},80578:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(97582),i=n(59180),o=n(4960),s=n(75262),a=n(54735),c=n(96681);function u(e,t,n,o){var s="function"==typeof t?t:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=!Array.isArray(t[0]),s=o?0:-1,a=t[0+s],c=t[1+s],u=t[2+s],l=t[3+s],d=(0,i.s)(c,u,(0,r.pi)({mixer:"object"==typeof(e=u[0])&&e.mix?e.mix:void 0},l));return o?d(a):d}(t,n,o);return Array.isArray(e)?l(e,s):l([e],function(e){return s((0,r.CR)(e,1)[0])})}function l(e,t){var n,r,i,u=(0,c.h)(function(){return[]});return n=function(){u.length=0;for(var n=e.length,r=0;r<n;r++)u[r]=e[r].get();return t(u)},r=(0,o.c)(n()),(i=function(){return r.set(n())})(),(0,s.f)(e,function(){return a.ZP.update(i,!1,!0)}),r}}},function(e){e.O(0,[39129,55941,92888,49774,40179],function(){return e(e.s=70021)}),_N_E=e.O()}]);

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.