PageSourceSearch

https://gnature.ru/_next/static/chunks/2cccmydd311nt.js

js gnature.ru collected 2026-10-05 03:42:12 UTC 10,043 bytes, 37 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,350858,e=>{"use strict";var r=e.i(843476),n=e.i(271645),t=e.i(174080),i=e.i(117814),s=e.i(522016);function a({article:e}){let n=e.tags[0]?.name??"",t=e.read_time,l=function(e){if(!e)return"";try{return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",year:"numeric"}).format(new Date(e))}catch{return e}}(e.published_at);return(0,r.jsxs)(s.default,{href:`/articles/${e.slug}`,className:"gn-art-card",style:{display:"flex",flexDirection:"column",background:"#fff",borderRadius:16,border:`1px solid ${i.C.fg07}`,overflow:"hidden",textDecoration:"none",color:"inherit",minWidth:0,transition:"box-shadow 200ms, transform 200ms"},children:[(0,r.jsx)("div",{style:{aspectRatio:"16/10",overflow:"hidden",flexShrink:0},children:e.cover?(0,r.jsx)("img",{src:e.cover,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 600ms cubic-bezier(0.25,0.46,0.45,0.94)"},className:"gn-art-card-img",loading:"lazy"}):(0,r.jsx)("div",{style:{width:"100%",height:"100%",background:i.C.bgSection}})}),(0,r.jsxs)("div",{style:{padding:22,display:"flex",flexDirection:"column",gap:10,flex:1},children:[n&&(0,r.jsxs)("span",{style:{font:"500 10px Manrope, sans-serif",letterSpacing:"0.16em",textTransform:"uppercase",color:i.C.green},children:[n," · ",t]}),(0,r.jsx)("h3",{style:{font:"700 18px/1.3 Manrope, sans-serif",letterSpacing:"-0.01em",color:i.C.fg,margin:0},children:e.title}),e.excerpt&&(0,r.jsx)("p",{style:{font:"400 14px/1.55 Manrope, sans-serif",color:i.C.fg55,margin:0,flex:1},children:e.excerpt}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:4},children:[(0,r.jsx)("span",{style:{font:"400 12px Manrope, sans-serif",color:i.C.fg40},children:l}),(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,font:"600 13px Manrope, sans-serif",color:i.C.green},children:["Читать",(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:i.C.green,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]})]}),(0,r.jsx)("style",{children:`
2        .gn-art-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,0.10); transform: translateY(-3px); }
3        .gn-art-card:hover .gn-art-card-img { transform: scale(1.05); }
4      `})]})}function l({article:e}){let n=e.tags[0]?.name??"",t=e.read_time;return(0,r.jsxs)(s.default,{href:`/articles/${e.slug}`,className:"gn-ai-featured",style:{display:"grid",width:"100%",background:"#fff",borderRadius:20,border:`1px solid ${i.C.fg07}`,overflow:"hidden",textDecoration:"none",color:"inherit",boxShadow:"0 1px 0 rgba(0,0,0,0.02)",transition:"box-shadow 220ms"},children:[(0,r.jsxs)("div",{className:"gn-ai-feat-img",style:{position:"relative",minHeight:320,overflow:"hidden"},children:[e.cover?(0,r.jsx)("img",{src:e.cover,alt:e.title,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",transition:"transform 600ms cubic-bezier(0.25,0.46,0.45,0.94)"},className:"gn-ai-feat-img-el"}):(0,r.jsx)("div",{style:{position:"absolute",inset:0,background:i.C.bgSection}}),(0,r.jsx)("span",{style:{position:"absolute",top:20,left:20,font:"600 10px Manrope, sans-serif",letterSpacing:"0.16em",textTransform:"uppercase",color:"#fff",background:"rgba(78,166,61,0.92)",padding:"7px 13px",borderRadius:9999},children:"Рекомендуем"})]}),(0,r.jsxs)("div",{style:{padding:"clamp(24px,3vw,44px)",display:"flex",flexDirection:"column",justifyContent:"center",gap:16},children:[n&&(0,r.jsxs)("span",{style:{font:"500 11px Manrope, sans-serif",letterSpacing:"0.16em",textTransform:"uppercase",color:i.C.green},children:[n," · ",t]}),(0,r.jsx)("h2",{style:{font:"700 clamp(24px,2.8vw,36px)/1.12 Manrope, sans-serif",letterSpacing:"-0.02em",color:i.C.fg,margin:0},children:e.title}),e.excerpt&&(0,r.jsx)("p",{style:{font:"400 16px/1.6 Manrope, sans-serif",color:i.C.fg55,margin:0,maxWidth:460},children:e.excerpt}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:12},children:[(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8,font:"600 14px Manrope, sans-serif",color:i.C.green,marginTop:4},children:["Читать статью",(0,r.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:i.C.green,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"gn-ai-feat-arrow",style:{transition:"transform 200ms"},children:(0,r.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]}),e.published_at&&(0,r.jsx)("span",{style:{font:"400 12px Manrope, sans-serif",color:i.C.fg40},children:function(e){if(!e)return"";try{return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",year:"numeric"}).format(new Date(e))}catch{return e}}(e.published_at)})]})]}),(0,r.jsx)("style",{children:`
5        .gn-ai-featured {
6          grid-template-columns: 1.1fr 1fr;
7        }
8        .gn-ai-featured:hover {
9          box-shadow: 0 22px 50px rgba(0,0,0,0.10);
10        }
11        .gn-ai-featured:hover .gn-ai-feat-img-el {
12          transform: scale(1.04);
13        }
14        .gn-ai-featured:hover .gn-ai-feat-arrow {
15          transform: translateX(4px);
16        }
17        @media (max-width: 860px) {
18          .gn-ai-featured {
19            grid-template-columns: 1fr !important;
20          }
21          .gn-ai-feat-img {
22            min-height: 220px !important;
23          }
24        }
25      `})]})}function o({query:e,onQueryChange:s}
25){let[a,l]=(0,n.useState)(null);return((0,n.useEffect)(()=>{l(document.getElementById("gn-ai-hero-right"))},[]),a)?(0,t.createPortal)((0,r.jsxs)("div",{children:[(0,r.jsx)(i.AccentLine,{width:48,style:{marginBottom:20}}),(0,r.jsx)("p",{style:{font:"400 17px/1.55 Manrope, sans-serif",color:i.C.fg55,margin:"0 0 22px",maxWidth:420},children:"Практика без воды: как подготовить, чем покрыть и как ухаживать. От технологов Gnature."}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,background:"#fff",border:`1px solid ${i.C.fg08}`,borderRadius:10,padding:"12px 14px",maxWidth:420},children:[(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:i.C.fg40,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,r.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.jsx)("path",{d:"M21 21l-4.35-4.35"})]}),(0,r.jsx)("input",{type:"search",value:e,onChange:e=>s(e.target.value),placeholder:"Поиск по статьям","aria-label":"Поиск по статьям",style:{flex:1,border:"none",outline:"none",background:"none",minWidth:0,font:"400 15px Manrope, sans-serif",color:i.C.fg}}),e&&(0,r.jsx)("button",{onClick:()=>s(""),"aria-label":"Сбросить поиск",style:{background:"none",border:"none",cursor:"pointer",display:"inline-flex",padding:0,minHeight:24},children:(0,r.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:i.C.fg40,strokeWidth:2,strokeLinecap:"round",children:(0,r.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})})]})]}),a):null}e.s(["ArticlesPageClient",0,function({articles:e,tags:t,initialFeatured:s}){let[d,c]=(0,n.useState)(""),[p,g]=(0,n.useState)("all"),[x,f]=(0,n.useState)(6),h=(0,n.useCallback)(e=>{g(e),f(6)},[]),m=(0,n.useCallback)(e=>{c(e),f(6)},[]),u=d.trim().toLowerCase(),y=(0,n.useMemo)(()=>e.filter(e=>{let r="all"===p||e.tags.some(e=>e.slug===p),n=!u||e.title.toLowerCase().includes(u)||e.excerpt.toLowerCase().includes(u);return r&&n}),[e,p,u]),j="all"!==p||u?null:s,b=j?y.filter(e=>e.id!==j.id):y,v=[{slug:"all",name:"Все"},...t.map(e=>({slug:e.slug,name:e.name}))];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o,{query:d,onQueryChange:m}),(0,r.jsxs)("section",{style:{paddingBottom:"clamp(56px,8vw,104px)",paddingInline:"clamp(20px,4vw,64px)"},children:[(0,r.jsxs)("div",{style:{maxWidth:1280,margin:"0 auto"},children:[(0,r.jsx)("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginBottom:32},role:"group","aria-label":"Фильтр по темам",children:v.map(e=>{let n=p===e.slug;return(0,r.jsx)("button",{onClick:()=>h(e.slug),"aria-pressed":n,style:{font:"500 13px Manrope, sans-serif",color:n?"#fff":i.C.fg55,background:n?i.C.green:"#fff",border:`1px solid ${n?i.C.green:i.C.fg08}`,padding:"9px 16px",borderRadius:9999,cursor:"pointer",whiteSpace:"nowrap",transition:"all 140ms",minHeight:44},children:e.name},e.slug)})}),j&&(0,r.jsx)("div",{style:{marginBottom:24},children:(0,r.jsx)(l,{article:j})}),b.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"gn-ai-grid",children:b.slice(0,x).map(e=>(0,r.jsx)(a,{article:e},e.id))}),b.length>x&&(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:10,marginTop:32},children:[(0,r.jsxs)("button",{onClick:()=>f(e=>e+6),style:{background:"#fff",border:`1px solid ${i.C.green}`,color:i.C.green,borderRadius:9999,padding:"13px 28px",cursor:"pointer",font:"600 14px Manrope, sans-serif",minHeight:44},children:["Показать ещё ",Math.min(6,b.length-x)]}),(0,r.jsxs)("span",{style:{font:"400 12px Manrope, sans-serif",color:i.C.fg40},children:["Показано ",Math.min(x,b.length)," из ",b.length]})]})]}):(0,r.jsx)("div",{style:{padding:"56px 0",textAlign:"center",font:"400 15px Manrope, sans-serif",color:i.C.fg50},children:"По запросу ничего не нашли. Попробуйте другую тему или сбросьте фильтр."})]}),(0,r.jsx)("style",{children:`
26          .gn-ai-grid {
27            display: grid;
28            grid-template-columns: repeat(3, minmax(0, 1fr));
29            gap: 24px;
30          }
31          @media (max-width: 980px) {
32            .gn-ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
33          }
34          @media (max-width: 600px) {
35            .gn-ai-grid { grid-template-columns: 1fr !important; }
36          }
37        `})]})]})}],350858)}]);

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.