1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,113267,e=>{"use strict";e.s(["NavbarClient",()=>Q,"priceLabel",()=>Y],113267);var t=e.i(843476),n=e.i(271645),r=e.i(657688),o=e.i(475254);let i=(0,o.default)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);var a=e.i(852008);let s=(0,o.default)("Grid2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);var l=e.i(201107);let d=(0,o.default)("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);var c=e.i(358519),p=e.i(237092),p=p,u=e.i(958377),f=e.i(117814),g=e.i(684317),h=e.i(618566),x=e.i(522016),m=e.i(555436),y=e.i(972520),b=e.i(859648);let v={colorIntent:null,isCodeLike:!1,sectionOrder:["products","colors"],products:[],colors:[]};function k(e){return e.trim().toLowerCase().replace(/Ñ/g,"е")}function w(e){return/^\d{3,5}$/.test(e)}function j(e,t){return e.slice(0,5).map(e=>({kind:"color",key:`color:${t}:${e.code}`,palette:t,code:e.code,name:e.name&&e.name.trim()?e.name:e.code,hex:e.hex??"#9b8d80",group:e.group??void 0,source:"remote"}))}var C=e.i(321219);let S="search-index:v1",M=null,I=null,E={cycle:0,ral:{status:"idle",data:[]},ncs:{status:"idle",data:[]}},T={gnature:"Gnature",ral:"RAL",ncs:"NCS"};function R({variant:e,isOpen:r,onRequestOpen:o,onRequestClose:i,onNavigate:a}){let s=(0,h.useRouter)(),l=(0,n.useRef)(null),d=(0,n.useRef)(null),c=(0,n.useId)(),p=`${c}-input`,u=`${c}-listbox`,f=`${c}-status`,{query:g,setQuery:x,phase:y,localDegraded:T,partialDegraded:L,remoteErrors:A,sections:_,flatItems:$,activeKey:D,setActiveKey:O,moveActive:W,itemHref:H,resultCount:N,invalidateCycle:G}=function(e){let[t,r]=(0,n.useState)(""),[o,i]=(0,n.useState)(null),[a,s]=(0,n.useState)(null),[l,d]=(0,n.useState)("idle"),[c,p]=(0,n.useState)(E),u=(0,n.useRef)(0),f=(0,n.useRef)(null),g=(0,n.useRef)(null),h=(0,n.useRef)(!1),x=()=>{u.current+=1,f.current?.abort(),g.current&&clearTimeout(g.current)};(0,n.useEffect)(()=>{let t=e&&!h.current;h.current=e,t&&"ready"!==l&&(d("loading"),(M===S&&I?I:(M=S,I=fetch("/api/search-index").then(e=>{if(!e.ok)throw Error(`search-index ${e.status}`);return e.json()}).then(e=>{if(!(e&&"object"==typeof e&&1===e.version&&Array.isArray(e.products)&&Array.isArray(e.colors)&&Array.isArray(e.degraded)))throw Error("search-index: unexpected shape/version");return e}).catch(e=>{throw I=null,M=null,e}))).then(e=>{s(e),d("ready")}).catch(()=>{d("error")}))},[e,l]);let m=(0,n.useMemo)(()=>a?function(e,t,n){let r=e.trim();if(r.length<2)return v;let o=k(r),i=(0,b.detectPaletteIntent)(r),a=(0,b.parseColorCode)(r),s=w(r),l=[];for(let e of t)(k(e.name).includes(o)||k(e.sku).includes(o))&&l.push({kind:"product",key:`product:${e.slug}`,slug:e.slug,name:e.name,sku:e.sku,priceFrom:e.priceFrom});l.sort((e,t)=>(k(e.sku)!==o)-(k(t.sku)!==o));let d=[],c=new Set,p=e=>{let t=`color:gnature:${e.code}`;c.has(t)||(c.add(t),d.push({kind:"color",key:t,palette:"gnature",code:e.code,name:e.name,hex:e.hex,source:"local"}))};if(a&&"gnature"===a.palette){let e=n.find(e=>e.code===a.canonical);e&&p(e)}for(let e of n)(k(e.name).includes(o)||k(e.code).includes(o))&&p(e);return{colorIntent:i,isCodeLike:null!==i||s,sectionOrder:null!==i?["colors","products"]:["products","colors"],products:l.slice(0,5),colors:d.slice(0,5)}}(t,a.products,a.colors):null,[t,a]),y=t.trim(),T=function(e){let t=e.trim();if(t.length<2)return!1;let n=(0,b.detectPaletteIntent)(t);return"ral"===n||"ncs"===n||w(t)}(y),R=(0,n.useMemo)(()=>(0,b.resolveRemoteQuery)(y),[y]);(0,n.useEffect)(()=>{x();let t=u.current;if(!e||!T)return void p(E);p({cycle:t,ral:{status:"loading",data:[]},ncs:{status:"loading",data:[]}});let n=new AbortController;return f.current=n,g.current=setTimeout(async()=>{let[e,r]=await Promise.allSettled([(0,C.searchPaletteRemote)(R,"ral",n.signal),(0,C.searchPaletteRemote)(R,"ncs",n.signal)]);t===u.current&&p({cycle:t,ral:{status:"fulfilled"===e.status?e.value.status:"error",data:"fulfilled"===e.status&&"ok"===e.value.status?e.value.data:[]},ncs:{status:"fulfilled"===r.status?r.value.status:"error",data:"fulfilled"===r.status&&"ok"===r.value.status?r.value.data:[]}})},300),()=>{g.current&&clearTimeout(g.current),n.abort()}},[R,T,e]),(0,n.useEffect)(()=>{e||(x(),i(null))},[e]);let L=(0,n.useMemo)(()=>[...j(c.ral.data,"ral"),...j(c.ncs.data,"ncs")],[c]),A="error"===l,B="ready"===l?a?.degraded??[]:[],_=[..."error"===c.ral.status||"rate_limited"===c.ral.status?["ral"]:[],..."error"===c.ncs.status||"rate_limited"===c.ncs.status?["
1ncs"]:[]],$="loading"===c.ral.status||"loading"===c.ncs.status,D=m?.products??[],O=[...m?.colors??[],...L],W=(m?.sectionOrder??["products","colors"]).map(e=>({kind:e,items:"products"===e?D:O})),H=W.flatMap(e=>e.items).slice(0,12),N=H.length;return(0,n.useEffect)(()=>{null!==o&&(H.some(e=>e.key===o)||i(null))},[H]),{query:t,setQuery:function(e){r(e),i(null)},phase:e?y.length<2?"ready-empty":"loading"===l||"idle"===l?"loading-index":"error"!==l||T?T&&$?"remote-loading":N>0?"results":"empty":"degraded":"closed",localDegraded:A,partialDegraded:B,remoteErrors:_,sections:W,flatItems:H,activeKey:o,setActiveKey:i,moveActive:function(e){if(0===H.length)return;let t=o?H.findIndex(e=>e.key===o):-1,n=-1===t?1===e?0:H.length-1:(t+e+H.length)%H.length;i(H[n].key)},itemHref:function(e){return"product"===e.kind?`/catalog/${e.slug}`:"gnature"===e.palette?`/colors?color=${(0,b.serializeCodeToURL)(e.code)}#palette-grid`:`/colors?code=${(0,b.serializeCodeToURL)(e.code)}&palette=${e.palette}#code-search`},resultCount:N,invalidateCycle:x}}(r),q=r&&"closed"!==y&&"ready-empty"!==y;function F(e){let t=e.trim();t&&(G(),i(),a?.(),s.push(`/catalog?q=${encodeURIComponent(t)}`))}function z(e){G(),i(),a?.(),s.push(H(e))}(0,n.useEffect)(()=>{l.current?.setAttribute("data-gn-search-ready","true")},[]),(0,n.useEffect)(()=>{if(r)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){l.current&&!l.current.contains(e.target)&&i()}},[r,i]),(0,n.useEffect)(()=>{if(q)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&(e.stopPropagation(),G(),i(),d.current?.focus())}},[q,i]);let K=q&&D?`${c}-option-${encodeURIComponent(D)}`:void 0;return(0,t.jsxs)("div",{ref:l,style:"drawer"===e?void 0:{position:"relative"},children:[(0,t.jsxs)("label",{htmlFor:p,style:"desktop"===e?{display:"flex",alignItems:"center",gap:8,background:"rgba(255,255,255,0.06)",borderRadius:8,padding:"8px 12px",width:180,flexShrink:0,cursor:"text",position:"relative"}:{display:"flex",alignItems:"center",gap:8,background:"rgba(255,255,255,0.1)",borderRadius:8,padding:"12px 14px"},children:[(0,t.jsx)("span",{style:{color:"rgba(255,255,255,0.5)",display:"inline-flex",flexShrink:0},children:(0,t.jsx)(m.Search,{size:"desktop"===e?15:16,color:"currentColor",strokeWidth:1.75})}),"desktop"===e&&(0,t.jsx)("span",{style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:"ÐоиÑк"}),(0,t.jsx)("input",{ref:d,id:p,value:g,placeholder:"ТоваÑ, ÑвеÑ, код","aria-label":"ÐайÑи ÑÐ¾Ð²Ð°Ñ Ð¸Ð»Ð¸ ÑвеÑ",role:"combobox","aria-autocomplete":"list","aria-expanded":q,"aria-controls":q?u:void 0,"aria-activedescendant":K,onFocus:o,onChange:e=>{x(e.target.value),r||o()},onKeyDown:function(e){if("ArrowDown"===e.key){e.preventDefault(),r||o(),W(1);return}if("ArrowUp"===e.key){e.preventDefault(),r||o(),W(-1);return}if("Enter"===e.key){if(null===D)return void F(g);let e=$.find(e=>e.key===D);return void(e&&z(e))}},style:{background:"none",border:"none",outline:"none",flex:1,font:"desktop"===e?"400 13px Manrope, sans-serif":"400 16px Manrope, sans-serif",color:"#fff",minWidth:0}})]}),(0,t.jsxs)("div",{id:f,role:"status","aria-live":"polite",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:["loading-index"===y&&"ÐагÑÑзкаâ¦","remote-loading"===y&&"ÐдÑÑ Ð¿Ð¾Ð¸Ñкâ¦","results"===y&&`${N} ÑезÑлÑÑаÑов`,"empty"===y&&(L.length>0||A.length>0?"ÐоиÑк неполнÑй â ÑаÑÑÑ Ð¸ÑÑоÑников недоÑÑÑпна":"ÐиÑего не найдено"),"degraded"===y&&"ÐоиÑк вÑеменно недоÑÑÑпен"]}),q&&(0,t.jsx)(B,{variant:e,listboxId:u,baseId:c,phase:y,sections:_,activeKey:D,setActiveKey:O,onActivate:z,query:g,onFallback:()=>F(g),localDegraded:T,partialDegraded:L,remoteErrors:A})]})}let L={products:"ТоваÑÑ",colors:"ЦвеÑа Gnature"},A={ral:"RAL",ncs:"NCS"};function B({variant:e,listboxId:n,baseId:r,phase:o,sections:i,activeKey:a,setA
1ctiveKey:s,onActivate:l,query:d,onFallback:c,localDegraded:p,partialDegraded:u,remoteErrors:g}){let h="desktop"===e?{position:"absolute",top:"calc(100% + 8px)",right:0,width:"min(360px, calc(100vw - 32px))",maxHeight:420,overflowY:"auto",background:"#fff",borderRadius:16,boxShadow:"0 24px 56px rgba(0,0,0,0.24)",border:`1px solid ${f.C.fg08}`,padding:8}:{marginTop:8,background:"#fff",borderRadius:12,padding:8,maxHeight:320,overflowY:"auto"},x=i.some(e=>e.items.length>0);return(0,t.jsxs)("div",{id:n,role:"listbox","aria-label":"РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка",style:h,children:[p&&(0,t.jsx)("div",{style:{padding:"8px 10px",font:"500 12px Manrope, sans-serif",color:f.C.fg40},children:"ÐокалÑнÑй поиÑк недоÑÑÑпен â RAL/NCS вÑÑ ÐµÑÑ ÑабоÑаеÑ."}),!p&&u.length>0&&(0,t.jsxs)("div",{style:{padding:"8px 10px",font:"500 12px Manrope, sans-serif",color:f.C.fg40},children:[u.map(e=>L[e]).join(" и ")," вÑеменно недоÑÑÑпн",u.length>1?"Ñ":"о","."]}),g.length>0&&(0,t.jsxs)("div",{style:{padding:"8px 10px",font:"500 12px Manrope, sans-serif",color:f.C.fg40},children:[g.map(e=>A[e]).join("/")," вÑеменно недоÑÑÑпен â попÑобÑйÑе еÑÑ Ñаз."]}),("loading-index"===o||"remote-loading"===o)&&!x&&(0,t.jsx)("div",{style:{padding:"16px 10px",font:"500 13px Manrope, sans-serif",color:f.C.fg40},children:"ÐдÑÑ Ð¿Ð¾Ð¸Ñкâ¦"}),"degraded"===o&&(0,t.jsxs)("div",{style:{padding:"8px 10px"},children:[(0,t.jsx)("div",{style:{font:"500 13px Manrope, sans-serif",color:f.C.fg40,marginBottom:8},children:"ÐоиÑк вÑеменно недоÑÑÑпен."}),(0,t.jsx)(_,{query:d,onFallback:c})]}),i.map(e=>e.items.length>0?(0,t.jsxs)("div",{style:{marginBottom:6},children:[(0,t.jsx)("div",{style:{padding:"6px 10px 4px",font:"600 10px Manrope, sans-serif",letterSpacing:"0.1em",textTransform:"uppercase",color:f.C.fg40},children:"products"===e.kind?"ТоваÑÑ":"ЦвеÑа"}),e.items.map(e=>"product"===e.kind?(0,t.jsx)(D,{item:e,baseId:r,active:e.key===a,onHover:s,onActivate:l},e.key):(0,t.jsx)(O,{item:e,baseId:r,active:e.key===a,onHover:s,onActivate:l},e.key))]},e.kind):null),"empty"===o&&(0,t.jsxs)("div",{style:{padding:"8px 10px"},children:[0===u.length&&0===g.length&&(0,t.jsx)("div",{style:{font:"500 13px Manrope, sans-serif",color:f.C.fg40,marginBottom:8},children:"ÐиÑего не найдено."}),(0,t.jsx)(_,{query:d,onFallback:c})]})]})}function _({query:e,onFallback:n}){return(0,t.jsxs)("button",{type:"button",onClick:n,style:{display:"inline-flex",alignItems:"center",gap:6,background:"none",border:"none",padding:0,cursor:"pointer",font:"600 13px Manrope, sans-serif",color:f.C.green},children:["ÐÑкаÑÑ Â«",e,"» в каÑалоге",(0,t.jsx)(y.ArrowRight,{size:14,color:f.C.green,strokeWidth:2})]})}function $(e,t){return`${e}-option-${encodeURIComponent(t)}`}function D({item:e,baseId:n,active:r,onHover:o,onActivate:i}){let a=Y(e.priceFrom);return(0,t.jsxs)(x.default,{id:$(n,e.key),role:"option","aria-selected":r,tabIndex:-1,href:`/catalog/${e.slug}`,onMouseEnter:()=>o(e.key),onClick:t=>{0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),i(e))},style:{display:"flex",alignItems:"center",gap:10,padding:"9px 10px",borderRadius:10,textDecoration:"none",background:r?f.C.greenTint10:"transparent"},children:[(0,t.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("span",{style:{display:"block",font:"600 13px Manrope, sans-serif",color:f.C.fg,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),!e.name.trimStart().startsWith(e.sku)&&(0,t.jsxs)("span",{style:{display:"block",font:"400 11px Manrope, sans-serif",color:f.C.fg40},children:["ÐРТ ",e.sku]})]}),a&&(0,t.jsx)("span",{style:{font:"600 12px Manrope, sans-serif",color:f.C.green,whiteSpace:"nowrap"},children:a})]})}function O({item:e,baseId:n,active:r,onHover:o,onActivate:i}){return(0,t.jsxs)(x.default,{id:$(n,e.key),role:"option","aria-selected":r,tabIndex:-1,href:"gnature"===e.palette?`/colors?color=${encodeURIComponent(e.code)}#palette-grid`:`/colors?code=${encodeURIComponent(e.code)}&palette=${e.palette}#code-search`,onMouseEnter:()=>
1o(e.key),onClick:t=>{0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),i(e))},style:{display:"flex",alignItems:"center",gap:10,padding:"9px 10px",borderRadius:10,textDecoration:"none",background:r?f.C.greenTint10:"transparent"},children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{width:28,height:28,borderRadius:8,background:e.hex,flexShrink:0,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.08)"}}),(0,t.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("span",{style:{display:"block",font:"700 13px Manrope, sans-serif",color:f.C.fg,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.code}),(0,t.jsx)("span",{style:{display:"block",font:"400 11px Manrope, sans-serif",color:f.C.fg40,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name!==e.code?e.name:e.group??""})]}),(0,t.jsx)("span",{style:{font:"600 10px Manrope, sans-serif",letterSpacing:"0.06em",color:f.C.fg40,whiteSpace:"nowrap"},children:T[e.palette]})]})}let W='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 6 6 6-6 6"/></svg>',H=[{label:"ÐаÑалог",href:"/catalog"},{label:"ЦвеÑа и палиÑÑа",href:"/colors"},{label:"ÐÐ¾Ð´Ð±Ð¾Ñ ÑвеÑа",href:"https://repaint.gnature.ru/?utm_source=navbar&utm_campaign=drawer"},{label:"ШоÑÑÑм",href:"/showroom"},{label:"Ðде кÑпиÑÑ",href:"/where-to-buy"},{label:"СÑаÑÑи",href:"/articles"},{label:"ÐонÑакÑÑ",href:"/contacts"},{label:"ÐабинеÑ",href:"/account"}];function N({open:e,onClose:o,categories:i}
1){let a=(0,n.useRef)(null),[s,l]=(0,n.useState)(!1),d=(0,n.useRef)(null),c=(0,n.useRef)(null),p=(0,n.useRef)(!1),[u,h]=(0,n.useState)(e);return((0,n.useEffect)(()=>{if(e)h(!0);else{let e=setTimeout(()=>h(!1),290);return()=>clearTimeout(e)}},[e]),(0,n.useEffect)(()=>(e?(document.body.style.overflow="hidden",document.querySelectorAll("header, main, footer").forEach(e=>{e.setAttribute("aria-hidden","true"),e.setAttribute("data-drawer-hidden","true")})):(document.body.style.overflow="",document.querySelectorAll("[data-drawer-hidden]").forEach(e=>{e.removeAttribute("aria-hidden"),e.removeAttribute("data-drawer-hidden")})),()=>{document.body.style.overflow="",document.querySelectorAll("[data-drawer-hidden]").forEach(e=>{e.removeAttribute("aria-hidden"),e.removeAttribute("data-drawer-hidden")})}),[e]),(0,n.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&o()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,o]),(0,n.useEffect)(()=>{e?c.current=document.activeElement instanceof HTMLElement?document.activeElement:null:c.current&&(p.current||c.current.focus(),c.current=null,p.current=!1)},[e]),(0,n.useEffect)(()=>{if(!e||!u)return;let t=setTimeout(()=>d.current?.focus(),0);return()=>clearTimeout(t)},[e,u]),(0,n.useEffect)(()=>{if(!e)return;let t=e=>{if("Tab"!==e.key)return;let t=a.current;if(!t)return;let n=t.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])');if(0===n.length)return;let r=n[0],o=n[n.length-1],i=document.activeElement;e.shiftKey?i!==r&&t.contains(i)||(e.preventDefault(),o.focus()):i!==o&&t.contains(i)||(e.preventDefault(),r.focus())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]),u)?(0,t.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:80,overflow:"hidden",pointerEvents:e?"auto":"none"},"aria-hidden":!e,children:[(0,t.jsx)("div",{onClick:o,"aria-hidden":!0,style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)",opacity:+!!e,transition:"opacity 240ms"}}),(0,t.jsxs)("aside",{ref:a,role:"dialog","aria-modal":"true","aria-label":"ÐÐµÐ½Ñ ÑайÑа",style:{position:"absolute",top:0,right:0,bottom:0,width:"min(400px, 85vw)",maxWidth:"min(400px, 85vw)",background:"#141C16",color:"#fff",boxShadow:"-20px 0 60px rgba(0,0,0,0.45)",transform:e?"translateX(0)":"translateX(100%)",transition:"transform 280ms cubic-bezier(0.4,0,0.2,1)",display:"flex",flexDirection:"column",overflowY:"auto"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid rgba(255,255,255,0.1)",flexShrink:0},children:[(0,t.jsx)(r.default,{src:"/logo/gnature_logo.svg",alt:"Gnature",width:193,height:45,style:{width:100,height:"auto",filter:"brightness(0) invert(1)"}}),(0,t.jsx)("button",{ref:d,onClick:o,"aria-label":"ÐакÑÑÑÑ Ð¼ÐµÐ½Ñ",style:{background:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:8,color:"rgba(255,255,255,0.8)",minWidth:44,minHeight:44},dangerouslySetInnerHTML:{__html:'<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6l12 12M18 6 6 18"/></svg>'}})]}),(0,t.jsx)("div",{style:{padding:"16px 20px",flexShrink:0},children:(0,t.jsx)(R,{variant:"drawer",isOpen:s,onRequestOpen:()=>l(!0),onRequestClose:()=>l(!1),onNavigate:()=>{p.current=!0,o()}})}),(0,t.jsxs)("nav",{style:{display:"flex",flexDirection:"column",padding:"0 8px",flex:1},children:[(0,t.jsxs)("a",{href:"/catalog",onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 12px",borderBottom:"1px solid rgba(255,255,255,0.08)",font:"600 16px Manrope, sans-serif",color:"#fff",textDecoration:"none"},children:["ÐаÑалог",(0,t.jsx)("span",{style:{color:"rgba(255,255,255,0.35)",display:"inline-flex"},dangerouslySetInnerHTML:{__html:W}})]}),i.map(e=>(0,t.jsx)("a",{href:`/catalog?category=${e.slug}`,onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"13px 12px 13px 28px",borderBottom:"1px solid rgba(255,255,255,0.05)",font:"400 14px Manrope, sans-serif",color:"rgba(255,255,255,0.7)",textDecoration:"none"},children:e.title||e.name},e.slug)),H.slice(1).map(({label:e,href:n})=>(0,t.jsxs)("a",{href:n,...n.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 12px",borderBottom:"1px solid rgba(255,255,255,0.08)",font:"500 16px Manrope, sans-serif",color:"rgba(255,255,255,0.88)",textDecoration:"none"},children:[e,(0,t.jsx)("span",{style:{color:"rgba(255,255,255,0.35)",display:"inline-flex"},dangerouslySetInnerHTML:{__html:W}})]},e))]}),(0,t.jsxs)("div",{style:{padding:"24px 20px",flexShrink:0},children:[(0,t.jsxs)("a",{href:g.SITE_CONTACTS.phoneHref,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:f.C.green,color:"#fff",borderRadius:8,padding:"15px",textDecoration:"none",font:"600 15px Manrope, sans-serif",minHeight:44},children:[(0,t.jsx)("span",{style:{display:"inline-flex",color:"#fff"},dangerouslySetInnerHTML:{__html:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 4h4l1.5 5-2 1.5a13 13 0 0 0 5 5l1.5-2 5 1.5v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z"/></svg>'}}
1),"ÐозвониÑÑ ",g.SITE_CONTACTS.phoneDisplay]}),(0,t.jsx)("div",{style:{font:"400 12px Manrope, sans-serif",color:"rgba(255,255,255,0.65)",textAlign:"center",marginTop:10},children:g.SITE_CONTACTS.phoneHours}),(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:12,marginTop:16},children:["telegram","vk"].map(e=>(0,t.jsx)("a",{href:"telegram"===e?g.SITE_CONTACTS.telegram:g.SITE_CONTACTS.vk,"aria-label":e,style:{width:44,height:44,borderRadius:9999,background:"rgba(255,255,255,0.15)",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff"},dangerouslySetInnerHTML:{__html:f.SOCIAL_SVG[e]}},e))})]})]})]}):null}e.i(896751);var G=e.i(16552);function q({d:e,size:n=18,stroke:r=1.75}){return(0,t.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,t.jsx)("path",{d:e})})}let F="M3 6h18M3 12h18M3 18h18",z="M5 4h4l1.5 5-2 1.5a13 13 0 0 0 5 5l1.5-2 5 1.5v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z",K=({count:e})=>(0,t.jsxs)("div",{style:{position:"relative",display:"inline-flex"},children:[(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"9",cy:"20",r:"1.5"}),(0,t.jsx)("circle",{cx:"17",cy:"20",r:"1.5"}),(0,t.jsx)("path",{d:"M3 4h2l2 12h11l2-8H6"})]}),e>0&&(0,t.jsx)("span",{"data-testid":"cart-badge",style:{position:"absolute",top:-4,right:-4,minWidth:16,height:16,padding:"0 4px",borderRadius:9999,background:f.C.green,color:"#fff",font:"700 9px/16px Manrope, sans-serif",textAlign:"center"},children:e})]}),U={fasad:i,"terrasy-i-bani":l.Trees,"bani-i-sauny":u.Flame,"steny-i-potolki":a.Layers,poly:s,mebel:d,kisti:c.Brush,instrumenty:p.default},P=new Intl.NumberFormat("ru-RU"),Y=e=>null!=e?`Ð¾Ñ ${P.format(e)} â½`:"";function V({categories:e,open:n,activeId:r,onSetActive:o,onClose:a}){if(!n||0===e.length)return null;let s=e.find(e=>e.id===r)??e[0],l=(e,n=!1)=>(0,t.jsxs)("a",{href:`/catalog/${e.slug}`,onClick:()=>a(),style:{display:"flex",alignItems:"center",gap:12,padding:"10px 12px",borderRadius:10,textDecoration:"none",transition:"background 120ms"},onMouseEnter:e=>{e.currentTarget.style.background="#fff"},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:[(0,t.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("span",{style:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",font:"600 14px/1.3 Manrope, sans-serif",color:n?f.C.fg55:f.C.fg,overflow:"hidden"},children:e.name}),e.summary&&(0,t.jsx)("span",{style:{display:"block",font:"400 12px Manrope, sans-serif",color:f.C.fg40,marginTop:2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.summary})]}),Y(e.priceFrom)&&(0,t.jsx)("span",{style:{font:"600 12px Manrope, sans-serif",color:n?f.C.fg40:f.C.green,whiteSpace:"nowrap"},children:Y(e.priceFrom)})]},e.slug);return(0,t.jsxs)("div",{id:"gn-catalog-megamenu",style:{position:"absolute",top:"calc(100% + 8px)",left:0,display:"flex",overflow:"hidden",background:"#fff",borderRadius:16,boxShadow:"0 24px 56px rgba(0,0,0,0.24)",border:`1px solid ${f.C.fg08}`,maxHeight:"calc(100dvh - 92px)"},children:[(0,t.jsx)("div",{style:{width:300,padding:8,flexShrink:0,borderRight:`1px solid ${f.C.fg08}`,overflowY:"auto"},children:e.map(e=>{let n=e.id===r,a=U[e.slug]??i;return(0,t.jsxs)("button",{type:"button",onMouseEnter:()=>o(e.id),onFocus:()=>o(e.id),onClick:()=>o(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",background:n?f.C.greenTint10:"transparent",border:"none",cursor:"pointer",textAlign:"left",padding:"11px 12px",borderRadius:10,font:"500 14px Manrope, sans-serif",color:f.C.fg,transition:"background 120ms"},children:[(0,t.jsx)("span",{style:{width:34,height:34,borderRadius:9,background:f.C.greenTint10,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:f.C.green},children:(0,t.jsx)(a,{size:18,strokeWidth:1.5})}),(0,t.jsx)("span",{style:{flex:1},children:e.label}),(0,t.jsx)("span",{style:{color:n?f.C.green:f.C.fg30,display:"inline-flex"},children:(0,t.jsx)(q,{d:"M4 12h16M14 6l6 6-6 6",size:15,stroke:2})})]},e.id)})}),(0,t.jsxs)("div",{style:{width:340,padding:"14px 12px 10px",flexShrink:0,background:f.C.bg,overflowY:"auto"},children:[(0,t.jsx)("div",{style:{font:"500 10px Manrope, sans-serif",letterSpacing:"0.16em",textTransform:"uppercase",color:f.C.fg40,padding:"0 12px 8px"},children:s.label}),s.products.map(e=>l(e)),s.extras.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 12px 6px"},children:[(0,t.jsx)("span",{style:{font:"500 10px Manrope, sans-serif",letterSpacing:"0.16em",textTransform:"uppercase",color:f.C.fg40,whiteSpace:"nowrap"},children:"СопÑÑÑÑвÑÑÑие"}),(0,t.jsx)("span",{style:{flex:1,height:1,background:f.C.fg08}}
1)]}),s.extras.map(e=>l(e,!0))]})]})]})}let X=[["ЦвеÑа","/colors"],["ÐÐ¾Ð´Ð±Ð¾Ñ ÑвеÑа","https://repaint.gnature.ru/?utm_source=navbar&utm_campaign=header"],["ШоÑÑÑм","/showroom"],["Ðде кÑпиÑÑ","/where-to-buy"],["СÑаÑÑи","/articles"],["ÐонÑакÑÑ","/contacts"]];function Q({categories:e,menuCategories:o}){let[i,a]=(0,n.useState)(!1),[s,l]=(0,n.useState)("none"),d="catalog"===s,[c,p]=(0,n.useState)(o[0]?.id??""),[u,h]=(0,n.useState)(!1),{itemCount:x,openDrawer:m}=(0,G.useCart)(),[y,b]=(0,n.useState)(!1),v=(0,n.useRef)(null),k=(0,n.useRef)(null),w=(0,n.useRef)(null),j=(0,n.useCallback)(()=>{w.current&&clearTimeout(w.current),l("catalog")},[]),C=(0,n.useCallback)(()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>l(e=>"catalog"===e?"none":e),180)},[]);(0,n.useEffect)(()=>{let e=()=>a(window.scrollY>40);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,n.useEffect)(()=>{let e=window.matchMedia("(max-width: 1024px)"),t=()=>b(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let S=(0,n.useCallback)(()=>{console.log("[DEBUG] closeDrawer called"),h(!1)},[]);return(0,n.useEffect)(()=>{if(d)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){v.current&&!v.current.contains(e.target)&&l(e=>"catalog"===e?"none":e)}},[d]),(0,n.useEffect)(()=>{if(d)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&(l(e=>"catalog"===e?"none":e),k.current?.focus())}},[d]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{style:{position:"sticky",top:0,zIndex:60,background:i?"rgba(20,28,22,0.96)":"rgba(20,28,22,0.88)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",borderBottom:i?"1px solid rgba(255,255,255,0.09)":"1px solid rgba(255,255,255,0.06)",transition:"background 200ms, border-color 200ms",paddingInline:"clamp(16px, 4vw, 64px)"},children:(0,t.jsxs)("div",{className:"gn-navbar-inner",style:{maxWidth:1280,margin:"0 auto",height:68,display:"flex",alignItems:"center",gap:16},children:[(0,t.jsx)("a",{href:"/",className:"gn-navbar-logo",style:{display:"inline-flex",alignItems:"center",flexShrink:0},"aria-label":"Gnature â главнаÑ",children:(0,t.jsx)(r.default,{src:"/logo/gnature_logo.svg",alt:"Gnature",width:193,height:45,style:{width:110,height:"auto",filter:"brightness(0) invert(1)"},priority:!0})}),(0,t.jsxs)("div",{ref:v,className:"gn-navbar-desktop",style:{position:"relative"},onPointerEnter:e=>{"mouse"===e.pointerType&&j()},onPointerLeave:e=>{"mouse"===e.pointerType&&C()},...y?{inert:!0}:{},children:[(0,t.jsxs)("button",{ref:k,className:"gn-navbar-catalog-button",onClick:()=>l(e=>"catalog"===e?"none":"catalog"),"aria-expanded":d,"aria-haspopup":"true","aria-controls":"gn-catalog-megamenu","aria-label":"ÐаÑалог",style:{display:"inline-flex",alignItems:"center",gap:7,background:d?f.C.green:"rgba(255,255,255,0.12)",border:"none",cursor:"pointer",borderRadius:8,padding:"9px 14px",color:"#fff",font:"600 13px Manrope, sans-serif",transition:"background 160ms",whiteSpace:"nowrap"},children:[(0,t.jsx)(q,{d:F,size:16,stroke:2}),"ÐаÑалог"]}),(0,t.jsx)(V,{categories:o,open:d,activeId:c,onSetActive:p,onClose:()=>l(e=>"catalog"===e?"none":e)})]}),!y&&(0,t.jsx)("nav",{className:"gn-navbar-desktop gn-navbar-util","aria-label":"ÐÑÐ½Ð¾Ð²Ð½Ð°Ñ Ð½Ð°Ð²Ð¸Ð³Ð°ÑиÑ",style:{display:"flex",alignItems:"center",gap:20,overflow:"hidden"},children:X.map(([e,n])=>(0,t.jsx)("a",{href:n,...n.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},style:{font:"500 13px/1 Manrope, sans-serif",color:"rgba(255,255,255,0.75)",textDecoration:"none",whiteSpace:"nowrap",transition:"color 150ms"},onMouseEnter:e=>{e.currentTarget.style.color="#fff"},onMouseLeave:e=>{e.currentTarget.style.color="rgba(255,255,255,0.75)"},children:e},e))}),(0,t.jsx)("div",{"aria-hidden":!0,style:{flex:1}}),(0,t.jsx)("div",{className:"gn-navbar-desktop gn-navbar-search",...y?{inert:!0}:{},children:(0,t.jsx)(R,{variant:"desktop",isOpen:"search"===s,onRequestOpen:()=>l("search"),onRequestClose:()=>l(e=>"search"===e?"none":e)})}),(0,t.jsxs)("a",{href:g.SITE_CONTACTS.phoneHref,className:"gn-navbar-desktop gn-navbar-phone",style:{display:"inline-flex",alignItems:"center",gap:7,color:"#fff",textDecoration:"none",flexShrink:0,whiteSpace:"nowrap"},...y?{inert:!0}:{},children:[(0,t.jsx)("span",{style:{color:f.C.green,display:"inline-flex"},children:(0,t.jsx)(q,{d:z,size:16,stroke:2})}),(0,t.jsx)("span",{style:{font:"600 14px/1 Manrope, sans-serif"}
1,children:g.SITE_CONTACTS.phoneDisplay})]}),(0,t.jsx)("a",{href:"/account",className:"gn-navbar-desktop","aria-label":"ÐиÑнÑй кабинеÑ",...y?{inert:!0}:{},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:44,height:44,borderRadius:9999,background:"rgba(255,255,255,0.12)",color:"#fff",textDecoration:"none"},children:(0,t.jsx)(q,{d:"M20 21a8 8 0 0 0-16 0M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8",size:19,stroke:1.9})}),(0,t.jsx)("button",{onClick:m,"aria-label":`ÐоÑзина${x>0?`, ${x} ÑоваÑа`:""}`,style:{position:"relative",background:"rgba(255,255,255,0.12)",border:"none",width:44,height:44,borderRadius:9999,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"#fff"},children:(0,t.jsx)(K,{count:x})}),(0,t.jsx)("a",{href:g.SITE_CONTACTS.phoneHref,"aria-label":"ÐозвониÑÑ",className:"gn-navbar-mobile",style:{display:"none",alignItems:"center",justifyContent:"center",flexShrink:0,width:44,height:44,borderRadius:9999,background:f.C.green,textDecoration:"none",color:"#fff"},children:(0,t.jsx)(q,{d:z,size:18,stroke:2})}),(0,t.jsx)("button",{"aria-label":"ÐÑкÑÑÑÑ Ð¼ÐµÐ½Ñ",onClick:()=>h(!0),className:"gn-navbar-burger",style:{display:"none",alignItems:"center",justifyContent:"center",flexShrink:0,width:44,height:44,borderRadius:9999,background:"rgba(255,255,255,0.12)",border:"none",cursor:"pointer",color:"#fff"},children:(0,t.jsx)(q,{d:F,size:20,stroke:2})})]})}),(0,t.jsx)(N,{open:u,onClose:S,categories:e}),(0,t.jsx)("style",{children:` 2 /* Desktop: show desktop nav elements, hide mobile controls */ 3 .gn-navbar-mobile { display: none !important; } 4 .gn-navbar-burger { display: none !important; } 5 6 /* ÐÑиглÑÑÑннÑй плейÑÑ Ð¾Ð»Ð´ÐµÑ Ð¿Ð¾Ð¸Ñка (inline-ÑÑили не ÑмеÑÑ ::placeholder) */ 7 .gn-navbar-desktop input::placeholder { color: rgba(255,255,255,0.45); } 8 9 /* Compact desktop preserves the design's 1024px chrome breakpoint. */ 10 @media (min-width: 1025px) and (max-width: 1260px) { 11 header { padding-inline: 16px !important; } 12 .gn-navbar-inner { gap: 8px !important; } 13 .gn-navbar-logo img { width: 96px !important; height: auto !important; } 14 .gn-navbar-catalog-button { padding-inline: 10px !important; } 15 .gn-navbar-util { gap: 10px !important; } 16 .gn-navbar-util a { font-size: 11px !important; } 17 .gn-navbar-search label { width: 120px !important; padding-inline: 9px !important; } 18 .gn-navbar-phone { gap: 5px !important; } 19 .gn-navbar-phone span:last-child { font-size: 12px !important; } 20 } 21 22 /* â¤1024px â desktop chrome collapses to the shared mobile controls. */ 23 @media (max-width: 1024px) { 24 .gn-navbar-desktop { display: none !important; } 25 .gn-navbar-mobile { display: inline-flex !important; } 26 .gn-navbar-burger { display: inline-flex !important; } 27 } 28 29 /* Mobile â¤430px: narrower header */ 30 @media (max-width: 430px) { 31 header { padding-inline: 16px !important; } 32 } 33 `})]})}},240903,e=>{"use strict";var t=e.i(167253);e.s(["HomeAssistantGate",0,function({children:e}){return(0,t.useHomeAssistantEnabled)()?e:null}])},235171,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(522016);e.i(896751);var o=e.i(16552),i=e.i(117814),a=e.i(372332);function s(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M6 6l12 12M18 6 6 18"})})}function l(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:(0,t.jsx)("path",{d:"M5 12h14"})})}function d(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:(0,t.jsx)("path",{d:"M12 5v14M5 12h14"})})}function c(){return(0,t.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,t.jsx)("path",{d:"M19 6l-1 14H6L5 6"}),(0,t.jsx)("path",{d:"M10 11v6M14 11v6"}),(0,t.jsx)("path",{d:"M9 6V4h6v2"})]})}function p(){return(0,t.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:i.C.fg30,strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("circle",{cx:"9",cy:"20",r:"1.5"}),(0,t.jsx)("circle",{cx:"17",cy:"20",r:"1.5"}),(0,t.jsx)("path",{d:"M3 4h2l2 12h11l2-8H6"})]})}function u(e){return new Intl.NumberFormat("ru-RU").format(e)}function f({item:e}){let{updateItem:r,removeItem:s}
33=(0,o.useCart)(),[p,g]=(0,n.useState)(null),[h,x]=(0,n.useState)(null),m=async t=>{if(p)return;g("update"),x(null);let n=await r(e.id,t);n.ok||x(n.message),g(null)},y=async()=>{if(p)return;g("remove"),x(null);let t=await s(e.id);t.ok||x(t.message),g(null)},b=e.metadata?.color_code?String(e.metadata.color_code).startsWith("#")?String(e.metadata.color_code):`#${e.metadata.color_code}`:null,v=(0,a.cartColorName)(e.metadata),k=(0,a.cartVariantDetails)(e.variant_title,e.metadata,e.title);return(0,t.jsxs)("div",{style:{display:"flex",gap:14,padding:"16px 0",borderBottom:`1px solid ${i.C.fg08}`,alignItems:"flex-start"},children:[(0,t.jsxs)("div",{style:{width:72,height:72,borderRadius:10,flexShrink:0,overflow:"hidden",background:"#F0ECE6",border:`1px solid ${i.C.fg08}`,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[e.thumbnail?(0,t.jsx)("img",{src:e.thumbnail,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover"}}):(0,t.jsx)("span",{style:{font:"700 11px Manrope, sans-serif",color:i.C.fg30,letterSpacing:"0.05em"},children:"GN"}),b&&(0,t.jsx)("span",{"aria-label":v?`ЦвеÑ: ${v}`:"ÐÑбÑаннÑй ÑвеÑ",style:{position:"absolute",right:5,bottom:5,width:20,height:20,borderRadius:9999,background:b,border:"2px solid #fff",boxShadow:"0 0 0 1px rgba(0,0,0,0.2)"}})]}),(0,t.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("div",{style:{font:"600 14px/1.3 Manrope, sans-serif",color:i.C.fg,marginBottom:3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title}),k.volume&&(0,t.jsxs)("div",{style:{font:"400 12px Manrope, sans-serif",color:i.C.fg40,marginBottom:4},children:[k.volumeLabel,": ",k.volume]}),k.option&&(0,t.jsxs)("div",{style:{font:"400 12px Manrope, sans-serif",color:i.C.fg40,marginBottom:4},children:["ÐаÑианÑ: ",k.option]}),(b||v)&&(0,t.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:5,background:i.C.fg06,borderRadius:9999,padding:"3px 9px",marginBottom:8},children:[b&&(0,t.jsx)("span",{style:{width:11,height:11,borderRadius:9999,background:b,boxShadow:"0 0 0 1px rgba(0,0,0,0.15)",flexShrink:0}}),(0,t.jsx)("span",{style:{font:"500 11px Manrope, sans-serif",color:i.C.fg55},children:v??b})]}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,t.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",border:`1px solid ${i.C.fg08}`,borderRadius:8,overflow:"hidden"},children:[(0,t.jsx)("button",{onClick:()=>{e.quantity<=1||m(e.quantity-1)},disabled:null!==p||e.quantity<=1,"aria-label":"УменÑÑиÑÑ",style:{width:32,height:32,border:"none",background:"none",cursor:e.quantity<=1?"default":"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:e.quantity<=1?i.C.fg30:i.C.fg},children:(0,t.jsx)(l,{})}),(0,t.jsx)("span",{style:{minWidth:28,textAlign:"center",font:"600 14px Manrope, sans-serif",color:i.C.fg},children:e.quantity}),(0,t.jsx)("button",{onClick:()=>void m(e.quantity+1),disabled:null!==p,"aria-label":"УвелиÑиÑÑ",style:{width:32,height:32,border:"none",background:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:i.C.fg},children:(0,t.jsx)(d,{})})]}),(0,t.jsxs)("span",{style:{font:"700 15px Manrope, sans-serif",color:i.C.green,flex:1},children:[u(e.total)," â½"]}),(0,t.jsx)("button",{onClick:()=>void y(),disabled:null!==p,"aria-label":"УдалиÑÑ Ð¸Ð· коÑзинÑ",style:{width:32,height:32,border:"none",background:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:i.C.fg30,borderRadius:6,transition:"color 150ms"},onMouseEnter:e=>{e.currentTarget.style.color="#e53e3e"},onMouseLeave:e=>{e.currentTarget.style.color=i.C.fg30},children:(0,t.jsx)(c,{})})]}),(0,t.jsxs)("div",{style:{font:"400 11px Manrope, sans-serif",color:i.C.fg40,marginTop:4},children:[e.quantity," à ",u(e.unit_price)," â½"]}),h&&(0,t.jsx)("div",{role:"alert",style:{font:"500 11px/1.45 Manrope, sans-serif",color:"#C0392B",marginTop:7},children:h})]})]})}e.s(["CartDrawer",0,function(){var e;let a,l,{items:d,subtotal:c,itemCount:g,discountTotal:h,drawerOpen:x,closeDrawer:m,loading:y,error:b,retryCart:v}=(0,o.useCart)(),k=Math.max(0,c-h),w=(0,n.useRef)(null);return((0,n.useEffect)(()=>(x?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[x]),(0,n.useEffect)(()=>
33{if(!x)return;let e=e=>{"Escape"===e.key&&m()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[x,m]),x)?(0,t.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:100,pointerEvents:"auto"},"aria-hidden":!x,children:[(0,t.jsx)("div",{onClick:m,"aria-hidden":!0,style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.45)",backdropFilter:"blur(2px)",WebkitBackdropFilter:"blur(2px)"}}),(0,t.jsxs)("aside",{ref:w,role:"dialog","aria-modal":"true","aria-label":"ÐоÑзина",style:{position:"absolute",top:0,right:0,bottom:0,width:"min(480px, 95vw)",background:"#fff",display:"flex",flexDirection:"column",boxShadow:"-16px 0 56px rgba(0,0,0,0.18)",animation:"gn-drawer-slide-in 240ms cubic-bezier(0.32,0,0.67,0)"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px",borderBottom:`1px solid ${i.C.fg08}`,flexShrink:0},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{font:"700 18px Manrope, sans-serif",color:i.C.fg},children:"ÐоÑзина"}),g>0&&(0,t.jsxs)("div",{style:{font:"400 13px Manrope, sans-serif",color:i.C.fg40,marginTop:2},children:[g," ",(a=(e=g)%10,(l=e%100)>=11&&l<=14?"ÑоваÑов":1===a?"ÑоваÑ":a>=2&&a<=4?"ÑоваÑа":"ÑоваÑов")]})]}),(0,t.jsx)("button",{onClick:m,"aria-label":"ÐакÑÑÑÑ ÐºÐ¾ÑзинÑ",style:{width:40,height:40,border:`1px solid ${i.C.fg08}`,background:"none",borderRadius:9999,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:i.C.fg55},children:(0,t.jsx)(s,{})})]}),(0,t.jsx)("div",{style:{flex:1,overflowY:"auto",padding:"0 24px"},children:y&&0===d.length?(0,t.jsx)("div",{role:"status",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",font:"500 14px Manrope, sans-serif",color:i.C.fg55},children:"ÐагÑÑжаем коÑзинÑâ¦"}):b&&0===d.length?(0,t.jsxs)("div",{role:"alert",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:14,paddingBlock:48,textAlign:"center"},children:[(0,t.jsx)("div",{style:{font:"600 17px Manrope, sans-serif",color:i.C.fg},children:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÐºÐ¾ÑзинÑ"}),(0,t.jsx)("div",{style:{font:"400 14px/1.5 Manrope, sans-serif",color:i.C.fg55,maxWidth:300},children:b}),(0,t.jsx)("button",{type:"button",onClick:()=>void v(),"data-testid":"cart-retry-btn",style:{minHeight:44,padding:"10px 20px",border:"none",borderRadius:8,background:i.C.green,color:"#fff",font:"600 14px Manrope, sans-serif"},children:"ÐовÑоÑиÑÑ"})]}):0===d.length?(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:16,paddingBlock:48},children:[(0,t.jsx)(p,{}),(0,t.jsx)("div",{style:{font:"600 17px Manrope, sans-serif",color:i.C.fg},children:"ÐоÑзина пÑÑÑаÑ"}),(0,t.jsx)("div",{style:{font:"400 14px/1.5 Manrope, sans-serif",color:i.C.fg40,textAlign:"center",maxWidth:260},children:"ÐобавÑÑе ÑоваÑÑ Ð¸Ð· каÑалога, ÑÑÐ¾Ð±Ñ Ð¾ÑоÑмиÑÑ Ð·Ð°ÐºÐ°Ð·."}),(0,t.jsx)("a",{href:"/catalog",onClick:m,style:{marginTop:8,display:"inline-flex",alignItems:"center",gap:6,padding:"11px 20px",background:i.C.green,color:"#fff",borderRadius:8,textDecoration:"none",font:"600 14px Manrope, sans-serif"},children:"РкаÑалог â"})]}):d.map(e=>(0,t.jsx)(f,{item:e},e.id))}),d.length>0&&(0,t.jsxs)("div",{style:{flexShrink:0,padding:"20px 24px",borderTop:`1px solid ${i.C.fg08}`,background:i.C.bg},children:[h>0&&(0,t.jsxs)("div",{"data-testid":"drawer-discount-total",style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginBottom:8,color:i.C.green},children:[(0,t.jsx)("span",{style:{font:"500 13px Manrope, sans-serif"},children:"Скидка"}),(0,t.jsxs)("span",{style:{font:"600 14px Manrope, sans-serif"},children:["â",u(h)," â½"]})]}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginBottom:16},children:[(0,t.jsx)("span",{style:{font:"500 14px Manrope, sans-serif",color:i.C.fg55},children:"ÐÑого"}),(0,t.jsxs)("span",{style:{font:"700 22px Manrope, sans-serif",color:i.C.fg,letterSpacing:"-0.01em"},children:[u(k)," â½"]})]}),(0,t.jsx)(r.default,{href:"/checkout",onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:8,width:"100%",padding:"15px",background:y?i.C.fg30:i.C.green,color:"#fff",borderRadius:10,textDecoration:"none",font:"600 15px Manrope, sans-serif",pointerEvents:y?"none":"auto",transition:"background 160ms",minHeight:52},"aria-disabled":y,"data-testid":"drawer-checkout-btn",children:"ÐÑоÑмиÑÑ Ð·Ð°ÐºÐ°Ð· â"}),(0,t.jsx)(r.default,{href:"/cart",onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:10,padding:"11px",color:i.C.green,font:"500 13px Manrope, sans-serif",textDecoration:"none"}
33,children:"СмоÑÑеÑÑ ÐºÐ¾ÑÐ·Ð¸Ð½Ñ Ñеликом"})]})]}),(0,t.jsx)("style",{children:` 34 @keyframes gn-drawer-slide-in { 35 from { transform: translateX(100%); opacity: 0.6; } 36 to { transform: translateX(0); opacity: 1; } 37 } 38 `})]}):null}])},71032,e=>{"use strict";var t=e.i(271645);e.s(["DataLayerInit",0,function(){return(0,t.useEffect)(()=>{{let e=window;e.dataLayer=e.dataLayer??[]}},[]),null}])},681881,e=>{"use strict";var t=e.i(618566),n=e.i(271645),r=e.i(346255),o=e.i(604673);let i="gn-goal-scroll50",a="gn-goal-time30s",s="gn-goal-engaged",l="ym_pages";function d(e){try{return sessionStorage.getItem(e)}catch{return null}}function c(e,t){try{sessionStorage.setItem(e,t)}catch{}}e.s(["BehaviorGoals",0,function(){let e=(0,t.usePathname)(),p=(0,n.useRef)(!1),u=(0,n.useRef)(!1),f=(0,n.useRef)(!1),g=(0,n.useRef)(null);return(0,n.useEffect)(()=>{p.current="1"===d(i),u.current="1"===d(a),f.current="1"===d(s);let e=()=>{!f.current&&p.current&&u.current&&(f.current=!0,c(s,"1"),(0,o.reachGoal)(r.GOALS.engagedVisitor))},t=()=>{if(p.current)return;let t=document.documentElement.scrollHeight-window.innerHeight;(t>0?window.scrollY/t:1)>=.5&&(p.current=!0,c(i,"1"),(0,o.reachGoal)(r.GOALS.scroll50),e())},n=setTimeout(()=>{u.current||(u.current=!0,c(a,"1"),(0,o.reachGoal)(r.GOALS.time30s),e())},3e4);return p.current||window.addEventListener("scroll",t,{passive:!0}),()=>{clearTimeout(n),window.removeEventListener("scroll",t)}},[]),(0,n.useEffect)(()=>{if(!e||g.current===e)return;g.current=e;let t=parseInt(d(l)??"0",10)+1;c(l,String(t)),2===t&&(0,o.reachGoal)(r.GOALS.multiPage),"/cart"===e&&(0,o.reachGoal)(r.GOALS.cartView),"/checkout"===e&&(0,o.reachGoal)(r.GOALS.orderStart)},[e]),null}])},623359,e=>{"use strict";var t=e.i(271645),n=e.i(346255),r=e.i(684317),o=e.i(604673);e.s(["ClickGoals",0,function(){return(0,t.useEffect)(()=>{let e=e=>{let t=e.target;if(!(t instanceof Element))return;let i=t.closest("[data-b24-crm-button-widget]");if(i)return void(0,o.reachGoal)((0,n.mapWidgetGoal)(i.getAttribute("data-b24-crm-button-widget")??""));let a=t.closest("a[href]");!a||(a.getAttribute("href")??"").startsWith(r.B2B_SITE_URL)&&(0,o.reachGoal)(n.GOALS.b2bClick)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),null}])},538651,e=>{"use strict";var t=e.i(843476);e.s(["Calltouch",0,function(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("link",{rel:"preconnect",href:"https://mod.calltouch.ru",crossOrigin:""}),(0,t.jsx)("script",{id:"calltouch-counter",dangerouslySetInnerHTML:{__html:` 39 (function(w,d,n,c){w.CalltouchDataObject=n;w[n]=function(){w[n]["callbacks"].push(arguments)};if(!w[n]["callbacks"]){w[n]["callbacks"]=[]}w[n]["loaded"]=false;if(typeof c!="object"){c=[c]}w[n]["counters"]=c;for(var i=0;i<c.length;i+=1){p(c[i])}function p(cId){var a=d.getElementsByTagName("script")[0],s=d.createElement("script"),i=function(){a.parentNode.insertBefore(s,a)},m=typeof Array.prototype.find === 'function',n=m?"init-min.js":"init.js";s.async=true;s.fetchPriority="high";s.src="https://mod.calltouch.ru/"+n+"?id="+cId;if(w.opera=="[object Opera]"){d.addEventListener("DOMContentLoaded",i,false)}else{i()}}})(window,document,"ct","6q35330q"); 40 `}})]})}])},3303,(e,t,n)=>{t.exports=e.r(479520)},751828,e=>{"use strict";var t=e.i(843476),n=e.i(3303);e.s(["Bitrix24Widget",0,function(){return(0,t.jsx)(n.default,{id:"bitrix24-site-button",strategy:"lazyOnload",children:` 41 (function(w,d,u){ 42 var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0); 43 var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); 44 })(window,document,'https://cdn-ru.bitrix24.ru/b35944396/crm/site_button/loader_2_s2juar.js'); 45 `})}])},783688,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(117814);let o="gn-cookie-consent",i="accepted",a="Manrope, sans-serif";function s(){try{return window.localStorage.getItem(o)===i}catch{return!1}}let l=()=>()=>{};e.s(["CookieBanner",0,function(){let[,e]=(0,n.useState)(0);
45return(0,n.useSyncExternalStore)(l,s,()=>!0)?null:(0,t.jsxs)("div",{"data-testid":"cookie-banner",role:"region","aria-label":"Уведомление об иÑполÑзовании cookie",style:{position:"fixed",left:"clamp(12px, 3vw, 24px)",right:"clamp(12px, 3vw, 24px)",bottom:"clamp(12px, 3vw, 24px)",zIndex:1e3,maxWidth:720,margin:"0 auto",display:"flex",flexWrap:"wrap",alignItems:"center",gap:16,padding:"16px 20px",background:"#fff",border:`1px solid ${r.C.fg08}`,borderRadius:12,boxShadow:"0 8px 32px rgba(0,0,0,0.12)",font:`400 14px/1.5 ${a}`,color:r.C.ink},children:[(0,t.jsxs)("p",{style:{margin:0,flex:"1 1 280px",font:`400 14px/1.5 ${a}`,color:r.C.fg55},children:["ÐÑ Ð¸ÑполÑзÑем ÑÐ°Ð¹Ð»Ñ cookie и ÑеÑвиÑÑ Ð¯Ð½Ð´ÐµÐºÑ.ÐеÑÑика, Calltouch и ÐиÑÑикÑ24 Ð´Ð»Ñ Ð°Ð½Ð°Ð»Ð¸Ñики, ÑвÑзи Ñ Ð²Ð°Ð¼Ð¸ и ÑлÑÑÑÐµÐ½Ð¸Ñ ÑабоÑÑ ÑайÑа. ÐÑÐ¾Ð´Ð¾Ð»Ð¶Ð°Ñ Ð¿Ð¾Ð»ÑзоваÑÑÑÑ ÑайÑом, Ð²Ñ ÑоглаÑаеÑеÑÑ Ñ"," ",(0,t.jsx)("a",{href:"/docs/politika-obrabotki-personalnyh-dannyh.docx",target:"_blank",rel:"noopener",style:{color:r.C.green,textDecoration:"underline"},children:"полиÑикой обÑабоÑки пеÑÑоналÑнÑÑ
даннÑÑ
"}),"."]}),(0,t.jsx)("button",{"data-testid":"cookie-accept-btn",type:"button",onClick:function(){try{window.localStorage.setItem(o,i)}catch{}e(e=>e+1)},className:"gn-cta",style:{flex:"0 0 auto",minHeight:44,padding:"11px 24px",border:"none",borderRadius:8,background:r.C.green,color:"#fff",font:`500 14px/1 ${a}`,cursor:"pointer",whiteSpace:"nowrap"},children:"ÐÑинÑÑÑ"})]})}])}]);
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.