PageSourceSearch

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

js imperial-mf.ru collected 2026-10-07 13:20:11 UTC 2,801 bytes, 1 lines download raw bytes

1import{_ as $,a as P}from"./NoeOmWcP.js";import{_ as B,a as V}from"./CZqCHNJ9.js";import{_ as b}from"./DkSnwlcq.js";import{d as v,c as m,b as r,h as c,e as l,f as d,t as f,F as h,v as w,j as i,o as e,g as _,_ as U,u as A,n as F,w as j,p as C,k as z}from"./CWoPGWPY.js";import{c as D}from"./Bj3VtTYR.js";import{_ as E}from"./CnNb5WvN.js";import"./BnHPtZyZ.js";import"./DxnGXnK7.js";import"./C29XrcW9.js";import"./pqzkP1CQ.js";import"./BUm9MBH5.js";import"./pPAik5Mw.js";import"./C8gK0VkS.js";import"./iuSlkyKU.js";import"./DQkFxDAU.js";import"./CNb9eZgB.js";import"./D9a9RC2v.js";import"./ezhUuHml.js";import"./C9XvdDUk.js";const I={key:0,class:"bg-grey-1 pb-12 pt-4"},S=["textContent"],G=["src","alt"],L=["textContent"],M={key:1,class:"mt-14"},O=["textContent"],R=v({__name:"CategoryPageView",props:{category:{}},setup(o){return(a,g)=>{const x=P,s=B,p=V,n=b,u=U,y=$;return e(),m(y,{title:""},{prepend:r(()=>[o.category?(e(),c("div",I,[l(s,{"no-padding":""},{default:r(()=>[l(x,{class:"mb-8",items:[{name:o.category.pluralName}]},null,8,["items"])]),_:1}),l(s,null,{default:r(()=>[d("h1",{textContent:f(o.category.pluralName),class:"text-h3 font-bold mb-8","data-role":"page-title"},null,8,S)]),_:1}),l(s,{class:"flex gap-2 overflow-auto invisible-scroll"},{default:r(()=>[(e(!0),c(h,null,w(o.category.children,t=>(e(),m(p,{key:t.id,to:t.path,class:"p-4 md:p-8 flex-[15.5%_0_0] min-w-[170px] bg-white rounded flex flex-col items-center cursor-pointer"},{default:r(()=>[d("img",{src:`/images/categories-icons/${_(D)[t.id]}`,alt:t.pluralName},null,8,G),d("p",{class:"mt-4 font-bold text-center",textContent:f(t.pluralName)},null,8,L)]),_:2},1032,["to"]))),128))]),_:1})])):i("",!0),o.category?.children?.length?(e(),c("div",M,[l(s,null,{default:r(()=>[(e(!0),c(h,null,w(o.category.children,t=>(e(),c("div",{key:t.id,class:"mb-[72px]"},[t.products?.length?(e(),c(h,{key:0},[d("h2",{class:"text-h4 font-bold mb-8",textContent:f(t.pluralName)},null,8,O),t.products?.length?(e(),m(n,{key:0,items:t.products,"image-size-type":t?.imageType},null,8,["items","image-size-type"])):i("",!0),l(u,{class:"mt-10",label:"Смотреть все",onClick:k=>a.$router.push({path:t.path})},null,8,["onClick"])],64)):i("",!0)]))),128))]),_:1})])):i("",!0)]),_:1})}}}),T=Object.assign(R,{__name:"CatalogCategoryPageView"}),_t=v({__name:"index",async setup(o){let a,g;const{$api:x}=A(),s=F(),p=String(s.params.category),{data:n,error:u}=([a,g]=j(()=>z(`catalog-page:${p}`,()=>x.category.get(p))),a=await a,g(),a);if(u.value)throw C(u.value);if(!n.value)throw C({statusCode:404,statusMessage:"Page Not Found"});return(y,t)=>{const k=T,N=E;return _(n)?.isCategory===!0?(e(),m(k,{key:0,category:_(n)},null,8,["category"])):_(n)?.isCategory===!1?(e(),m(N,{key:1,data:_(n)},null,8,["data"])):i("",!0)}}});export{_t as default};

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.