PageSourceSearch

https://imperial-mf.ru/_nuxt/CX5PHP0b.js

js imperial-mf.ru collected 2026-10-07 13:19:51 UTC 12,179 bytes, 1 lines download raw bytes

1import{y as A,o as l,c as V,b,f as e,q,n as H,a as z,G as Z,x as R,r as N,d as C,h as i,e as a,D as M,a8 as K,g as t,t as S,a0 as Q,l as O,F as T,v as U,j as y,B as L,J as D,A as ee,s as te,Q as ne,U as E,i as oe}from"./CWoPGWPY.js";import{a as G,_ as J}from"./CZqCHNJ9.js";import{_ as se}from"./iuSlkyKU.js";import{a as le,u as ae}from"./DxnGXnK7.js";import{c as re}from"./Bj3VtTYR.js";import{g as ie}from"./C29XrcW9.js";import{_ as ce}from"./C8gK0VkS.js";const ue={};function de(c,_){const u=G;return l(),V(u,{to:"/",class:"inline-flex"},{default:b(()=>[..._[0]||(_[0]=[e("img",{src:se,alt:"Imperial"},null,-1)])]),_:1})}const _e=Object.assign(A(ue,[["render",de]]),{__name:"TheLogo"}),P={query:N("")},W=()=>{const c=q(),_=H(),u=({target:{value:d}})=>{P.query.value=d},p=()=>{P.query.value.length&&c.push({path:"/search",query:{q:P.query.value}})},n=()=>{P.query.value=""};return z(()=>_.path,()=>P.query.value=""),Z({query:R(()=>P.query),onSearchInput:u,onSearch:p,clearQuery:n})},pe={class:"flex items-center rounded-5 h-10 pl-2 pr-1 border border-grey-4"},me=["value"],fe=C({__name:"Search",setup(c){const{query:_,onSearchInput:u,onSearch:p}=W();return(n,d)=>{const f=M;return l(),i("div",pe,[a(f,{name:"search",class:"mr-4 text-grey-2"}),e("input",{value:t(_),type:"text",onInput:d[0]||(d[0]=(...m)=>t(u)&&t(u)(...m)),onKeyup:d[1]||(d[1]=K((...m)=>t(p)&&t(p)(...m),["enter"])),class:"flex-1 outline-none border-none bg-transparent h-full placeholder:text-grey-2",placeholder:"Поиск"},null,40,me)])}}}),he=Object.assign(fe,{__name:"TheHeaderSearch"}),F={title:"+7 958 578 78 46",link:"tel:+79585787846"},St={title:"[email protected]",link:"mailto:[email protected]"},ve={class:"flex items-center text-grey-2"},xe=["href"],ge=["textContent"],ye=C({__name:"TheHeaderPhones",setup(c){return(_,u)=>(l(),i("div",ve,[e("a",{href:t(F).link},[e("span",{textContent:S(t(F).title),class:"text-small whitespace-nowrap"},null,8,ge)],8,xe)]))}}),$e=Object.assign(ye,{__name:"TheHeaderPhones"}),X=[{title:"Оптовым покупателям",to:"/cooperation/wholesale"},{title:"Поставщикам сырья и комплектующих",to:"/cooperation/supply"},{title:"О фабрике",to:"/about"},{title:"Где купить",to:"/address"},{title:"Контакты",to:"/contacts"},{title:"Отзывы",to:"/reviews"},{title:"Планировщик РОНДО",to:"/3d-online"}],we={key:0,class:"relative"},be={class:"nav flex gap-8"},ke={class:"flex"},Ce=["onMouseenter","onClick"],Ie=["title","onClick"],Pe={key:0,class:"shadow-2 absolute bg-white pt-8 pb-9 w-full left-0 z-10 text-left invisible group-hover:visible delay-150"},Te={class:"flex justify-between"},Ne={class:"flex-1 flex flex-wrap items-start gap-4"},Se=["onClick"],Me={class:"flex gap-4 mb-6 items-center"},je={class:"rounded-full w-20 h-20 flex items-center justify-center relative"},ze={class:"relative"},Ue=["src","alt"],Le={class:"flex-1 relative z-10"},Ve=["textContent"],qe=["textContent"],He={class:"flex items-center gap-2 relative"},Be={key:0,class:"flex-[0_1_355px]"},Oe={class:"mt-2"},Ee=C({__name:"Nav",props:{navType:{default:"catalog"}},setup(c){const{categories:_}=Q(),u=q(),p=H(),n=N(null),d=R(()=>c.navType==="catalog"?_.value:X);function f(r){return"pluralName"in r}function m(r){return f(r)?r.pluralName:r.title}function $(r){return f(r)?r.path:r.to}function o(r){n.value=null,u.push({path:`${$(r)}`})}function s(r,h){n.value=null,u.push({path:`${r.path}/${h.slug}`})}function v(r){f(r)&&r.children?.length&&(n.value=r)}return z(()=>p.fullPath,()=>{n.value=null}),(r,h)=>{const I=G,g=M,j=le,x=J;return t(d).length?(l(),i("div",we,[a(x,null,{default:b(()=>[e("nav",be,[a(I,{to:"/catalog/new",class:"z-[11] inline-flex items-center border border-main-red h-8 rounded-4 text-main-red px-6"},{default:b(()=>[...h[0]||(h[0]=[O(" Новинки ",-1)])]),_:1}),e("ul",ke,[(l(!0),i(T,null,U(t(d),(k,B)=>(l(),i("li",{key:B,class:"text-center group py-2 pr-6 1.5xl:pr-8",onMouseenter:w=>v(k),onClick:w=>v(k)},[e("p",{title:m(k),class:"cursor-pointer nav__item group-hover:font-bold",onClick:w=>o(k)},S(m(k)),9,Ie),c.navType==="catalog"&&t(n)?.children?.length?(l(),i("div",Pe,[a(x,null,{default:b(()=>[e("div",Te,[e("div",Ne,[(l(!0),i(T,null,U(t(n).children,(w,Y)=>(l(),i("div",{key:Y,class:"p-6 border border-grey-1 rounded cursor-pointer overflow-hidden group/item",onClick:wt=>s(t(n),w)},[e("div",Me,[e("div",je,[h[1]||(h[1]=e("div",{class:"rounded-full bg-grey-1 w-full h-full absolute top-0 left-0 duration-500 transition group-hover/item:scale-[7]"},null,-1)),e("div",ze,[e("img",{src:`/images/categories-icons/${t(re)[w.id]}`,alt:w.pluralName,class:"max-w-[52px]","data-not-lazy":""},null,8,Ue)])]),e("div",Le,[e("p",{class:"mb-1",textContent:S(w.pluralName)}
1,null,8,Ve),w.countProduct?(l(),i("p",{key:0,class:"text-grey-2",textContent:S(`${w.countProduct} шт`)},null,8,qe)):y("",!0)])]),e("div",He,[h[2]||(h[2]=e("span",{textContent:"Смотреть все",class:"font-bold text-body2"},null,-1)),a(g,{name:"chevron-right",class:"text-main-red text-[20px]"})])],8,Se))),128))]),t(n).suggestedProduct?(l(),i("div",Be,[a(j,{name:t(n).suggestedProduct.name,category:t(n).suggestedProduct.siteCategory?.name,img:t(ie)(t(n).suggestedProduct),color:t(n).suggestedProduct.subName,link:t(n).suggestedProduct.sitePath,"no-actions":"","hide-price":"",noImageLazyLoad:"","no-hover":""},null,8,["name","category","img","color","link"]),e("div",Oe,[a(I,{to:t(n).suggestedProduct.sitePath,class:"text-body2 text-main-red font-bold"},{default:b(()=>[...h[3]||(h[3]=[O(" Смотреть новинку ",-1)])]),_:1},8,["to"])])])):y("",!0)])]),_:1})])):y("",!0)],40,Ce))),128))])])]),_:1})])):y("",!0)}}}),Fe=Object.assign(A(Ee,[["__scopeId","data-v-fb98de3b"]]),{__name:"TheHeaderNav"}),Ae={class:"min-h-[44px] py-3 px-4"},Re=["textContent"],Ke=C({__name:"ListItem2",props:{title:{default:""},active:{type:Boolean,default:!1},noArrow:{type:Boolean,default:!1},titleClass:{}},emits:["click-item"],setup(c,{emit:_}){const u=_,p=()=>{u("click-item")};return(n,d)=>{const f=M;return l(),i("div",Ae,[e("div",{class:"flex items-center",onClick:p},[e("span",{textContent:S(c.title),class:L(["flex-1",c.titleClass])},null,10,Re),c.noArrow?y("",!0):(l(),V(f,{key:0,class:L([[c.active&&"rotate-180"],"text-[20px] transition"]),name:"chevron-down"},null,8,["class"]))]),n.$slots.default?(l(),i("div",{key:0,onClick:d[0]||(d[0]=D(()=>{},["stop"]))},[ee(n.$slots,"default")])):y("",!0)])}}}),Qe=Object.assign(Ke,{__name:"UiListItem2"}),De={key:0,class:"fixed w-[360px] max-w-full bg-white h-screen left-0 top-0 z-[60] overflow-auto"},Ge={class:"h-screen py-5 flex flex-col"},Je={class:"px-4 flex justify-end mb-4"},We={class:"flex-1 overflow-auto"},Xe={key:0,class:"pt-2"},Ye={class:"mt-6 flex flex-col items-center"},Ze={href:"tel:",class:"flex items-center cursor-pointer"},et=C({__name:"MobileNav",props:{modelValue:{type:Boolean}},emits:["update:model-value"],setup(c,{emit:_}){const u=_,{categories:p}=Q(),n=q(),d=H(),f=N([...p.value.map(s=>({title:s.pluralName,items:s.children?.map(v=>({title:v.pluralName,to:`${s.path}/${v.slug}`})),active:!1})),...X.map(s=>s.items?.length?{title:s.title,items:s.items,active:!1}:{title:s.title,to:s.to})]);function m(){f.value.forEach(s=>{s.active!==void 0&&(s.active=!1)}),u("update:model-value",!1)}function $(s){if(s.items?.length){s.active=!s.active;return}m(),n.push({path:s.to})}function o(){c.modelValue&&m()}return z(()=>d.fullPath,()=>{c.modelValue&&m()}),te(()=>{z(()=>c.modelValue,()=>{c.modelValue?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},{immediate:!0}),window.addEventListener("resize",o)}),ne(()=>{window.removeEventListener("resize",o)}),(s,v)=>{const r=M,h=Qe,I=ce;return l(),i(T,null,[a(E,{name:"backdrop"},{default:b(()=>[c.modelValue?(l(),i("div",{key:0,class:"fixed top-0 left-0 h-full w-full bg-dark/30 z-[55]",onClick:m})):y("",!0)]),_:1}),a(E,{name:"nav"},{default:b(()=>[c.modelValue?(l(),i("div",De,[e("div",Ge,[e("div",Je,[a(r,{name:"close",onClick:m})]),e("div",We,[(l(!0),i(T,null,U(t(f),(g,j)=>(l(),i(T,{key:j},[a(h,{title:g.title,active:g.active,"no-arrow":!g.items,"title-class":"text-h5",onClickItem:x=>$(g)},{default:b(()=>[g.items&&g.active?(l(),i("div",Xe,[(l(!0),i(T,null,U(g.items,(x,k)=>(l(),V(h,{key:k,title:x.title,"no-arrow":"",onClickItem:B=>$(x)},null,8,["title","onClickItem"]))),128))])):y("",!0)]),_:2},1032,["title","active","no-arrow","onClickItem"]),a(I,{class:"mx-4"})],64))),128)),e("div",Ye,[e("a",Ze,[a(r,{name:"phone",class:"mr-2"}),v[0]||(v[0]=e("span",{textContent:"+7 958 578 78 46",class:"text-small whitespace-nowrap"},null,-1))])])])])])):y("",!0)]),_:1})],64)}}}),tt=Object.assign(et,{__name:"TheHeaderMobileNav"}),nt={class:"bg-white py-3 px-4 flex items-center gap-4 drop-shadow-1"},ot={class:"relative flex items-center w-full"},st=["value"],lt=C({__name:"SearchMobile",emits:["close"],setup(c,{emit:_}){const u=_,{query:p,onSearchInput:n,onSearch:d,clearQuery:f}=W();function m(){f(),u("close")}return($,o)=>{const s=M;return l(),i("div",nt,[a(s,{name:"close",onClick:D(m,["stop"]),class:"cursor-pointer"}),e("div",ot,[e("input",{value:t(p),type:"text",placeholder:"Поиск",class:"h-10 rounded-2 bg-[#F6F5FA] pl-4 pr-12 placeholder:text-grey-2 w-full outline-none",onInput:o[
10]||(o[0]=(...v)=>t(n)&&t(n)(...v)),onKeyup:o[1]||(o[1]=K((...v)=>t(d)&&t(d)(...v),["enter"]))},null,40,st),a(s,{name:"search",class:"absolute right-3"})])])}}}),at=Object.assign(lt,{__name:"TheHeaderSearchMobile"}),rt={class:"z-50 bg-white"},it={class:"relative z-10"},ct={class:"w-full bg-white transition-all duration-300"},ut={class:"h-16 md:h-14 xl:h-auto flex items-center justify-between transition-all xl:pt-7"},dt={class:"xl:hidden flex gap-4"},_t={class:"flex justify-center max-w-[138px] sm:max-w-[182px] xl:max-w-[221px] xl:mr-10"},pt={class:"hidden self-stretch gap-10 xl:flex"},mt={class:"hidden xl:flex justify-center flex-1"},ft={class:"flex items-center h-6 gap-4 justify-end"},ht={class:"h-6 w-6 xl:hidden"},vt={class:"relative h-6 w-6"},xt=["textContent"],gt={class:"relative z-[100] hidden xl:block"},yt={class:"xl:hidden"},$t=C({__name:"TheHeader",setup(c){const{favoritesItemsCount:_}=ae(),u=N(!1),p=N("catalog"),n=N(!1);function d(){u.value=!0}function f($){p.value=$}function m(){p.value="catalog"}return($,o)=>{const s=M,v=_e,r=he,h=$e,I=J,g=Fe,j=tt;return l(),i("header",rt,[e("div",it,[e("div",ct,[a(I,null,{default:b(()=>[t(n)?(l(),V(at,{key:0,class:"absolute top-0 left-0 w-full z-[1] xl:hidden",onClose:o[0]||(o[0]=x=>n.value=!1)})):y("",!0),e("div",ut,[e("div",dt,[a(s,{name:"burger",onClick:d}),o[6]||(o[6]=e("div",{class:"w-6 h-6"},null,-1))]),o[7]||(o[7]=e("div",{class:"flex-1 xl:hidden"},null,-1)),e("div",_t,[a(v)]),e("div",pt,[e("div",{class:"h-full flex items-center",onMouseover:o[1]||(o[1]=x=>f("catalog"))},[e("span",{class:L([t(p)==="catalog"?"underline underline-offset-8 decoration-main-red cursor-pointer":"text-grey-2"])}," Товары ",2)],32),e("div",{class:"h-full flex items-center",onMouseover:o[2]||(o[2]=x=>f("service"))},[e("span",{class:L([t(p)==="service"?"underline underline-offset-8 decoration-main-red cursor-pointer":"text-grey-2"])}," О компании ",2)],32)]),o[8]||(o[8]=e("div",{class:"flex-1 xl:hidden"},null,-1)),e("div",mt,[a(r,{class:"max-w-[420px] w-full"})]),a(h,{class:"mr-8 hidden xl:flex"}),e("div",ft,[e("button",ht,[a(s,{name:"search",class:"cursor-pointer",onClick:o[3]||(o[3]=x=>n.value=!0)})]),e("button",vt,[a(s,{name:"heart",class:"cursor-pointer",onClick:o[4]||(o[4]=x=>$.$router.push({path:"/favorites"}))}),t(_)?(l(),i("span",{key:0,class:"pointer-events-none w-[18px] h-[18px] bg-main-red text-[9px] leading-1 text-white flex items-center justify-center rounded-full absolute -right-2 -top-2",textContent:S(t(_))},null,8,xt)):y("",!0)])])])]),_:1})])]),e("div",gt,[a(g,{"nav-type":t(p),onMouseleave:m,class:"xl:pt-6"},null,8,["nav-type"])]),e("div",yt,[a(j,{modelValue:t(u),"onUpdate:modelValue":o[5]||(o[5]=x=>oe(u)?u.value=x:null)},null,8,["modelValue"])])])}}}),Mt=Object.assign($t,{__name:"TheHeader"});export{St as E,F as P,_e as _,Mt as a,X as s};

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.