PageSourceSearch

https://chili-adv.ru/assets/SiteHeader-Dv-jDGFy.js

js chili-adv.ru collected 2026-10-08 10:11:48 UTC 12,312 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProductSearchDialog-VTJcEunq.js","assets/rolldown-runtime-S-ySWqyJ.js","assets/framework-CXnKph_e.js","assets/link-BYXplpAp.js","assets/index-DiFlMmu_.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";import{c as r,h as i,t as a}from"./index-DiFlMmu_.js";import o from"./link-BYXplpAp.js";import s from"./image-FKNNwVfq.js";var c=e(t()),l=Symbol.for(`vinext.serverInsertedHTMLContext`);function u(){if(typeof c.createContext!=`function`)return null;let e=globalThis;return e[l]||(e[l]=c.createContext(null)),e[l]??null}u();var d=Symbol.for(`vinext.navigation.globalAccessors`),f=Symbol.for(`vinext.navigation.clientHydrationContext`);function p(){return globalThis[d]}function m(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,f))return e[f]??null}var h=null,g=()=>{if(typeof window<`u`){let e=m();return e===void 0?h:e}let e=p();return e?e.getServerContext():h},_=typeof window>`u`,v=Symbol.for(`vinext.clientNavigationState`);function y(){if(_)return null;let e=window;return e[v]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new r(window.location.search),cachedPathname:i(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[v]}function b(){let e=y();if(e)for(let t of e.listeners)t()}function x(){return y()?.cachedPathname??`/`}function S(){let e=y();if(!e)return!1;let t=!1,n=i(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let a=window.location.search;return a!==e.cachedSearch&&(e.cachedSearch=a,e.cachedReadonlySearchParams=new r(a),t=!0),t}var C=Symbol.for(`vinext.clientNavigationRenderContext`);function w(){if(typeof c.createContext!=`function`)return null;let e=globalThis;return e[C]||(e[C]=c.createContext(null)),e[C]??null}function T(){let e=w();if(!e||typeof c.useContext!=`function`)return null;try{return c.useContext(e)}catch{return null}}function E(e){let t=y();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function D(){if(_)return g()?.pathname??`/`;let e=T(),t=c.useSyncExternalStore(E,x,()=>g()?.pathname??`/`);return e&&(y()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function O(e,t){if(_)return;let n=y();if(!n)return;(e!==void 0||t?.releaseSnapshot===!0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=S();n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let i=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,i&&b()}function k(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>{requestAnimationFrame(()=>{window.scrollTo(t,n)})}):requestAnimationFrame(()=>{window.scrollTo(t,n)})})}}if(!_){let e=y();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,e=>{typeof window.__VINEXT_RSC_NAVIGATE__!=`function`&&(O(),k(e.state))}),window.history.pushState=function(t,n,r){e.originalPushState.call(window.history,t,n,r),e.suppressUrlNotifyCount===0&&O()},window.history.replaceState=function(t,n,r){e.originalReplaceState.call(window.history,t,n,r),e.suppressUrlNotifyCount===0&&O()})}var A=n(),j=[{label:`Наклейки`,href:`/poligrafi/nakleiki`},{label:`Этикетки`,href:`/poligrafi/etiketk`},{label:`Баннеры`,href:`/narujreklama/banneri`},{label:`Визитки`,href:`/poligrafi/vizitki`},{label:`Листовки`,href:`/poligrafi/listovki`},{label:`Доставка`,href:`/oplataidostavka`},{label:`Контакты`,href:`#footer`}],M=`https://max.ru/u/f9LHodD0cOJdNGoIYsUzJ38aU-qGWqtlrcWK5ABUwoK8dRscKOH_aTGrKOo`,N=`https://t.me/chili_adv`,P=()=>a(()=>import(`./ProductSearchDialog-VTJcEunq.js`),__vite__mapDeps([0,1,2,3,4])),F=(0,c.lazy)(P),I=[{title:`Наклейки и этиÐ
2ºÐµÑ‚ки`,items:[{label:`Наклейки для продукции`,href:`/poligrafi/nakleiki`},{label:`Этикетки`,href:`/poligrafi/etiketk`},{label:`Объёмные наклейки`,href:`/poligrafi/sticker`},{label:`Наклейки на витрины`,href:`/poligrafi/nakleiki`},{label:`Брендирование авто`,href:`#car-branding`}]},{title:`Полиграфия для бизнеса`,items:[{label:`Визитки`,href:`/poligrafi/vizitki`},{label:`Листовки`,href:`/poligrafi/listovki`},{label:`Бирки`,href:`/poligrafi/birki`},{label:`Каталоги`,href:`#form`},{label:`Буклеты`,href:`/poligrafi/listovki`},{label:`Плакаты`,href:`/poligrafi/plakati`}]},{title:`Наружная реклама`,titleHref:`/narujreklama`,items:[{label:`Баннеры`,href:`/narujreklama/banneri`},{label:`Таблички`,href:`/narujreklama/tablichki`},{label:`Ролл-апы`,href:`/narujreklama/rollup`},{label:`Вывески`,href:`/narujreklama`},{label:`УФ-печать`,href:`/narujreklama/ufpechat`},{label:`Объёмные буквы`,href:`/narujreklama`}]}];function L(){return(0,A.jsx)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.jsx)(`path`,{d:`m4 6 4 4 4-4`})})}function R(){return(0,A.jsxs)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,A.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,A.jsx)(`path`,{d:`m16.2 16.2 4.1 4.1`})]})}function z(){return(0,A.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,A.jsx)(`path`,{d:`M8.2 3.8 10 7.7 7.7 9.5a14.4 14.4 0 0 0 6.8 6.8l1.8-2.3 3.9 1.8v3a2 2 0 0 1-2 2C9.9 20.8 3.2 14.1 3.2 5.8a2 2 0 0 1 2-2h3Z`})})}function B(){let e=D(),[t,n]=(0,c.useState)(!1),[r,i]=(0,c.useState)(!1),[a,l]=(0,c.useState)(!1),u=(0,c.useRef)(null),d=(0,c.useRef)(null),f=(0,c.useRef)(null),p=(0,c.useRef)(null),m=(0,c.useRef)(null),h=()=>{m.current&&=(clearTimeout(m.current),null)},g=()=>{h(),n(!0)},_=()=>{h(),m.current=setTimeout(()=>{n(!1),m.current=null},140)};(0,c.useEffect)(()=>{if(!t&&!r)return;let e=e=>{u.current?.contains(e.target)||(n(!1),i(!1))},a=e=>{e.key===`Escape`&&(n(!1),i(!1),r?f.current?.focus():d.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,a),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,a)}},[t,r]),(0,c.useEffect)(()=>()=>{h()},[]);let v=()=>{n(!0),requestAnimationFrame(()=>{u.current?.querySelector(`.mega-menu a`)?.focus()})},y=e=>{p.current=e,n(!1),i(!1),l(!0)},b=(0,c.useCallback)(()=>{l(!1),requestAnimationFrame(()=>p.current?.focus())},[]);return(0,A.jsxs)(`header`,{className:`header-shell`,ref:u,children:[(0,A.jsxs)(`div`,{className:`site-header`,children:[(0,A.jsx)(o,{className:`brand`,href:`/`,"aria-label":`Чили, студия рекламы`,children:(0,A.jsx)(s,{src:`/logo-chili.svg`,alt:`ЧИЛИ, студия рекламы`,width:`92`,height:`41`,priority:!0,unoptimized:!0})}),(0,A.jsxs)(`nav`,{className:`desktop-nav`,"aria-label":`Основная навигация`,children:[(0,A.jsxs)(`button`,{className:`catalog-trigger`,type:`button`,ref:d,"aria-expanded":t,"aria-controls":`catalog-menu`,"aria-haspopup":`true`,onMouseEnter:g,onMouseLeave:_,onClick:()=>n(e=>!e),onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),v())},children:[`Вся продукция`,(0,A.jsx)(L,{})]}),(0,A.jsx)(`button`,{className:`header-search-trigger`,type:`button`,"aria-label":`Поиск по продукции`,"aria-haspopup":`dialog`,onPointerEnter:P,onFocus:P,onClick:e=>y(e.currentTarget),children:(0,A.jsx)(R,{})}),j.map(t=>(0,A.jsx)(`a`,{className:e===t.href?`is-active`:void 0,href:t.href,"aria-current":e===t.href?`page`:void 0,children:t.label},t.label))]}),(0,A.jsxs)(`div`,{className:`header-contacts`,id:`contacts`,children:[(0,A.jsxs)(`div`,{className:`contact-lines`,children:[(0,A.jsx)(`a`,{href:`tel:+79034010866`,children:`+7 903 401 08 66`}),(0,A.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`})]}),(0,A.jsx)(`a`,{className:`header-cta`,href:`#form`,children:`Рассчитать`})]})]}),(0,A.jsxs)(`div`,{className:`mobile-header`,children:[(0,A.jsx)(o,{className:`brand`,href:`/`,"aria-label":`Чили, студия рекламы`,children:(0,A.jsx)(s,{src:`/logo-chili.svg`,alt:`ЧÐ
2˜Ð›Ð˜, студия рекламы`,width:`76`,height:`34`,priority:!0,unoptimized:!0})}),(0,A.jsxs)(`div`,{className:`mobile-header-actions`,children:[(0,A.jsx)(`a`,{className:`mobile-phone-trigger`,href:`tel:+79034010866`,"aria-label":`Позвонить`,children:(0,A.jsx)(z,{})}),(0,A.jsx)(`button`,{className:`mobile-search-trigger`,type:`button`,"aria-label":`Поиск по продукции`,"aria-haspopup":`dialog`,onPointerEnter:P,onFocus:P,onClick:e=>y(e.currentTarget),children:(0,A.jsx)(R,{})}),(0,A.jsxs)(`button`,{className:`mobile-menu-trigger`,type:`button`,ref:f,"aria-label":r?`Закрыть меню`:`Открыть меню`,"aria-expanded":r,"aria-controls":`mobile-menu-panel`,onClick:()=>i(e=>!e),children:[(0,A.jsx)(`span`,{}),(0,A.jsx)(`span`,{})]})]})]}),(0,A.jsx)(`div`,{className:`mega-menu`,id:`catalog-menu`,"aria-label":`Вся продукция`,hidden:!t,onMouseEnter:h,onMouseLeave:_,children:(0,A.jsx)(`div`,{className:`catalog-grid`,children:I.map(t=>(0,A.jsxs)(`div`,{className:`catalog-column`,children:[(0,A.jsx)(`p`,{className:`catalog-title`,children:t.titleHref?(0,A.jsx)(`a`,{href:t.titleHref,onClick:()=>n(!1),children:t.title}):t.title}),(0,A.jsx)(`ul`,{children:t.items.map(t=>(0,A.jsx)(`li`,{children:(0,A.jsx)(`a`,{className:t.href!==`/narujreklama`&&e===t.href?`is-active`:void 0,href:t.href,"aria-current":t.href!==`/narujreklama`&&e===t.href?`page`:void 0,onClick:()=>n(!1),children:t.label})},t.label))})]},t.title))})}),(0,A.jsxs)(`div`,{className:`mobile-menu-panel`,id:`mobile-menu-panel`,hidden:!r,children:[(0,A.jsxs)(`div`,{className:`mobile-menu-contact`,children:[(0,A.jsxs)(`div`,{className:`mobile-menu-contact-row`,children:[(0,A.jsx)(`a`,{className:`mobile-menu-phone`,href:`tel:+79034010866`,children:`+7 903 401 08 66`}),(0,A.jsxs)(`nav`,{className:`mobile-menu-messengers`,"aria-label":`Мессенджеры`,children:[(0,A.jsx)(`a`,{href:M,target:`_blank`,rel:`noreferrer`,"aria-label":`Написать в MAX`,children:(0,A.jsx)(s,{src:`/icons/max.svg`,alt:``,width:32,height:32,unoptimized:!0})}),(0,A.jsx)(`a`,{href:N,target:`_blank`,rel:`noreferrer`,"aria-label":`Написать в Telegram`,children:(0,A.jsx)(s,{src:`/icons/telegram.svg`,alt:``,width:32,height:32,unoptimized:!0})})]})]}),(0,A.jsx)(`a`,{className:`mobile-menu-cta`,href:`#form`,onClick:()=>i(!1),children:`Рассчитать`})]}),(0,A.jsx)(`nav`,{className:`mobile-primary-links`,"aria-label":`Основное меню`,children:j.map(t=>(0,A.jsx)(`a`,{className:e===t.href?`is-active`:void 0,href:t.href,"aria-current":e===t.href?`page`:void 0,onClick:()=>i(!1),children:t.label},t.label))}),(0,A.jsx)(`div`,{className:`mobile-catalog`,"aria-label":`Каталог продукции`,children:I.map(t=>(0,A.jsxs)(`div`,{className:`mobile-catalog-column`,children:[(0,A.jsx)(`p`,{className:`mobile-catalog-title`,children:t.titleHref?(0,A.jsx)(`a`,{href:t.titleHref,onClick:()=>i(!1),children:t.title}):t.title}),(0,A.jsx)(`ul`,{children:t.items.map(t=>(0,A.jsx)(`li`,{children:(0,A.jsx)(`a`,{className:t.href!==`/narujreklama`&&e===t.href?`is-active`:void 0,href:t.href,"aria-current":t.href!==`/narujreklama`&&e===t.href?`page`:void 0,onClick:()=>i(!1),children:t.label})},t.label))})]},t.title))})]}),a?(0,A.jsx)(c.Suspense,{fallback:(0,A.jsx)(`div`,{className:`product-search-loading`,"aria-label":`Открываем поиск`}),children:(0,A.jsx)(F,{onClose:b})}):null]})}export{B as SiteHeader};

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.