PageSourceSearch

https://on-media.ru/_next/static/chunks/pages/cases-b0aba68c2dc5b248.js

js on-media.ru collected 2026-10-05 06:02:55 UTC 8,749 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[415],{23:(e,t,s)=>{"use strict";s.d(t,{R:()=>r});var a=s(4232);let r=e=>{let[t,s]=(0,a.useState)(e);return[t,({value:t,key:a,resetKeys:r=[]})=>{s(s=>{let i={...s};return i[a]=t,r.forEach(t=>{t in i&&(i[t]=e[t])}),i})}]}},1095:(e,t,s)=>{"use strict";s.d(t,{C:()=>r});var a=s(4232);let r=(e,t)=>{let s=(0,a.useRef)(!1);(0,a.useEffect)(()=>{s.current?e():s.current=!0},t)}},1489:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/cases",function(){return s(4001)}])},1564:(e,t,s)=>{"use strict";s.d(t,{g:()=>o});var a=s(7876),r=s(7328),i=s.n(r);function o({seo:e}){return(0,a.jsxs)(i(),{children:[e?.title&&(0,a.jsx)("title",{children:e?.title}),e?.description&&(0,a.jsx)("meta",{name:"description",content:e?.description}),e?.keywords&&(0,a.jsx)("meta",{name:"keywords",content:e?.keywords}),e?.og.title&&(0,a.jsx)("meta",{property:"og:title",content:e?.og.title}),e?.og.description&&(0,a.jsx)("meta",{property:"og:description",content:e?.og.description}),e?.og.image&&(0,a.jsx)("meta",{property:"og:image",content:e?.og.image}),e?.og.locale&&(0,a.jsx)("meta",{property:"og:locale",content:e?.og.locale}),e?.og.site_name&&(0,a.jsx)("meta",{property:"og:site_name",content:e?.og.site_name}),e?.og.type&&(0,a.jsx)("meta",{property:"og:type",content:e?.og.type}),e?.og.url&&(0,a.jsx)("meta",{property:"og:url",content:e?.og.url}),(0,a.jsx)("link",{rel:"icon",href:"/logo.svg"}),e?.canonical_url&&(0,a.jsx)("link",{rel:"canonical",href:e?.canonical_url})]})}},2248:e=>{e.exports={projectsContainer:"CasesPage_projectsContainer__buhKd",projectsCards:"CasesPage_projectsCards__L170r",projectsCards__row:"CasesPage_projectsCards__row__dbPIE",small:"CasesPage_small__r5tdw",projectsCards__text:"CasesPage_projectsCards__text__DF7rJ",large_6:"CasesPage_large_6__aZiAs",small_12:"CasesPage_small_12__hqBGz",mixed:"CasesPage_mixed__vQS9n",big:"CasesPage_big__MXqFO",spaceTitle:"CasesPage_spaceTitle__avGe3",pagination:"CasesPage_pagination__ykzAy",contactsForm:"CasesPage_contactsForm___8E0O"}},2547:(e,t,s)=>{"use strict";s.d(t,{d:()=>_});var a=s(7876),r=s(4232),i=s(9241),o=s(9915),n=s(8697),c=s(7969),l=s.n(c);let _=({onChangePage:e,totalPages:t,active:s,className:c})=>{let _=(0,r.useMemo)(()=>Array(t).fill("").reduce((e,a,r)=>{let i=r+1;return t<5||s<4&&i<5||s>t-3&&i>t-4||1===i||i===t||i===s||i===s+1?[...e,i]:"..."===e.at(-1)?e:[...e,"..."]},[]),[t,s]);return(0,a.jsx)("nav",{className:c,children:(0,a.jsxs)("ul",{className:l().pagination,children:[(0,a.jsx)("li",{children:(0,a.jsx)("button",{onClick:()=>e(s-1),className:(0,i.A)(l().button,1===s&&l().disabled),"aria-label":"Перейти на предыдущую страницу",type:"button",children:(0,a.jsx)(n.I,{id:"left",size:24})})}),_.map((t,r)=>"number"==typeof t?(0,a.jsx)("li",{children:(0,a.jsx)("button",{onClick:()=>e(t),className:(0,i.A)(l().item,t===s&&l().itemActive),"aria-label":t===s?`Page ${t}`:`Go to page ${t}`,type:"button",children:(0,a.jsx)(o.Z,{as:"span",design:"p3-medium",className:l().itemText,children:t})})},r):(0,a.jsx)("li",{className:l().dottedLine,children:(0,a.jsx)(o.Z,{as:"span",design:"p3-medium",className:l().itemText,children:"..."})},r)),(0,a.jsx)("li",{children:(0,a.jsx)("button",{onClick:()=>e(s+1),className:(0,i.A)(l().button,s===t&&l().disabled),"aria-label":"Перейти на следующую страницу",type:"button",children:(0,a.jsx)(n.I,{id:"right",size:24})})})]})})}},2933:(e,t,s)=>{"use strict";s.d(t,{e:()=>r});var a=s(4232);let r=(e,t)=>{let[s,r]=(0,a.useState)(e),[i,o]=(0,a.useState)(e);return(0,a.useEffect)(()=>{t||r(i)},[t,i]),[s,o]}},3569:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var a=s(7876),r=s(4232),i=s(3530);let o=({alt:e,content:t,types:s=["horizontal","square","vertical"]})=>{let[o,n]=(0,r.useState)(""),c=(0,i.d)();return(0,r.useEffect)(()=>{let[e,a,r]=s;c>i.E.Tablet?n(t[`image_${e}`]):c<=i.E.Tablet&&c>i.E.Mobile_Small?n(t[`image_${a}`]):n(t[`image_${r}`])},[c,t,s]),(0,a.jsx)("img",{src:o,alt:e})}},4001:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>T,default:()=>z});var a=s(7876),r=s(7328),i=s.n(r),o=s(4232),n=s(9099),c=s(9241),l=s(4561),_=s(9915),d=s(1095),p=s(23),g=s(2807),m=s(4854),j=s(6236),u=s(2547),x=s(2933),h=s(4113),C=s(2248),b=s.n(C),P=s(4587),N=s.n(P),v=s(6436),f=s(4618),w=s.n(f),y=s(3569);let k=({design:e="big",title:t,description:s,image:r,slug:i,icons:o,backgroundColor:n,className:l})=>{let d="big"===e,p=r[0];return(0,a.jsxs)(v.A,{href:`/cases/${i}
1`,gradient:d,className:(0,c.A)(w().projectCard,w()[`${e}ProjectCard`],l),children:[(0,a.jsx)("div",{className:w().imageWrapper,children:(0,a.jsx)(y.A,{...p,alt:t,types:"small"===e?["horizontal","horizontal","horizontal"]:["horizontal","horizontal","vertical"]})}),(0,a.jsx)("div",{className:w().icons,children:o.map((e,t)=>e.asset.logo?(0,a.jsx)("div",{className:w().iconWrapper,children:(0,a.jsx)(N(),{className:w().icon,src:e.asset.logo,fill:!0,sizes:"52px",alt:e.asset.description??""})},t):null)}),(0,a.jsxs)("div",{className:(0,c.A)(w().content,w()[n]),children:[t&&(0,a.jsx)(_.Z,{className:w().title,design:d?"promo-56":"h2",raw:t}),d&&s&&(0,a.jsx)(_.Z,{className:w().description,design:"p2",raw:s})]})]})},A=({title:e,cases:t,spaceTitle1:s,spaceTitle2:r})=>{let{locale:i}=(0,n.useRouter)(),[C,P]=(0,p.R)({page:1}),[N,v]=(0,o.useState)(!1),[f,w]=(0,x.e)(t,N),y=async e=>{try{let t=await function({lang:e="ru",...t}){return(0,m.Ic)("pages/cases/",{lang:e},t)}(e);w(t)}catch(e){console.error(e)}};return(0,d.C)(()=>{y({lang:i??"ru",page:C.page})},[C]),(0,a.jsx)(l.A,{className:b().projectsPage,children:(0,a.jsxs)(h.A,{className:b().projectsContainer,children:[(0,a.jsx)(_.Z,{as:"h1",design:"promo-medium",raw:e}),(0,a.jsx)("div",{className:(0,c.$)(b().projectsCards),children:f?.blocks&&f?.blocks.map((e,t)=>{let i=1===t||3===t,o=1===t?s:r;if("big_case"===e.type){let{image:t,slug:s,assets:r}=e.content.case;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k,{title:e.content.case.title,description:e.content.case.short_description??e.content.case.description,image:t,slug:s,icons:r,backgroundColor:e.content.case.background_color,design:"big",className:b().projectsCards__row}),i&&(0,a.jsx)(_.Z,{className:b().projectsCards__text,as:"p",design:"promo1-short-wide",raw:o})]})}if("small_cases"===e.type){let{case_1:t,case_2:s}=e.content;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,c.$)(b().projectsCards__row,b().small),children:[(0,a.jsx)(k,{title:t.title,description:t.short_description??t.description,image:t.image,slug:t.slug,icons:t.assets,backgroundColor:t.background_color,design:"small"}),(0,a.jsx)(k,{title:s.title,description:s.short_description??s.description,image:s.image,slug:s.slug,icons:s.assets,backgroundColor:s.background_color,design:"small"})]}),i&&(0,a.jsx)(_.Z,{className:b().projectsCards__text,as:"p",design:"promo1-short-wide",raw:o})]})}return null})}),f&&f.count>6&&(0,a.jsx)(u.d,{className:b().pagination,onChangePage:e=>{P({value:e,key:"page"}),0!==window.scrollY&&(v(!0),(0,j.VG)({top:0}).then(()=>v(!1)))},totalPages:Math.ceil((f.count??0)/6),active:C.page}),(0,a.jsx)(g.V,{className:b().contactsForm})]})})};var E=s(1564),T=!0;function z({casesProps:e}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E.g,{seo:e.seo}),(0,a.jsxs)(i(),{children:[(0,a.jsx)("meta",{httpEquiv:"cache-control",content:"no-cache"}),(0,a.jsx)("meta",{httpEquiv:"expires",content:"0"}),(0,a.jsx)("meta",{httpEquiv:"pragma",content:"no-cache"})]}),(0,a.jsx)(A,{title:e.name,cases:e,spaceTitle1:e.space_title_1,spaceTitle2:e.space_title_2})]})}},4561:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(7876),r=s(4232),i=s(9241),o=s(8755),n=s.n(o);let c=(0,r.forwardRef)(({children:e,className:t,style:s},r)=>(0,a.jsx)("section",{ref:r,className:(0,i.A)(n().section,t),style:s,children:e}))},4618:e=>{e.exports={projectCard:"ProjectCard_projectCard__vKUDQ",bigProjectCard:"ProjectCard_bigProjectCard__TfQ4l",imageWrapper:"ProjectCard_imageWrapper__rlEbb",iconWrapper:"ProjectCard_iconWrapper__F7ba_",black:"ProjectCard_black__QCALN",white:"ProjectCard_white___Q8tc",title:"ProjectCard_title__Limiy",description:"ProjectCard_description__TnI8Q",smallProjectCard:"ProjectCard_smallProjectCard__ECadA",icons:"ProjectCard_icons__FIXBq",content:"ProjectCard_content__jqw13",image:"ProjectCard_image__g_1hH",icon:"ProjectCard_icon__Hzt28"}},7969:e=>{e.exports={pagination:"Pagination_pagination__xmf2O",button:"Pagination_button__icUcN",disabled:"Pagination_disabled__4JKnv",item:"Pagination_item__Z7gJV",itemActive:"Pagination_itemActive__ci6G7",itemText:"Pagination_itemText__b4S7I",dottedLine:"Pagination_dottedLine__2pnK6"}},8755:e=>{e.exports={section:"Section_section__6rY7a"}}},e=>{e.O(0,[587,636,593,792],()=>e(e.s=1489)),_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.