PageSourceSearch

https://polymus.ru/_nuxt/BWOXyfqj.js

js polymus.ru collected 2026-10-02 03:41:19 UTC 3,332 bytes, 1 lines download raw bytes

1import{_ as I}from"./CEGjYqgz.js";import{u as L}from"./B9JP1Sd9.js";import{u as z}from"./Ce0ZLrFR.js";import{a as T}from"./C1rCEnVI.js";import{F}from"./DwyMZqPb.js";import{d as V,c as s,r as N,w as $,h as d,o as r,B as M,u as a,at as A,g as o,e as l,a as q,b,t as m,f as v,V as x,_ as D}from"./CbhbEXF0.js";import{_ as E}from"./DM5MML44.js";import"./D1_MqowL.js";import"./CfR38C_9.js";import"./MOsKat2q.js";import"./BIWjpfK9.js";import"./B7f9WgOz.js";import"./CoVd-34K.js";import"./BYMGX0X6.js";import"./BZexl-vX.js";import"./BhwCEFti.js";import"./CX75OaZB.js";import"./BC0-k6-T.js";import"./ao9G2SIr.js";import"./DgftgaiM.js";import"./DL-xrZ5r.js";import"./CJdVGRRK.js";import"./UeZ32aDQ.js";import"./BTUqCutK.js";import"./DDKZrMLI.js";import"./2gf4Ud_t.js";import"./CNMYhB9E.js";import"./x_rD_Ya3.js";import"./BpNjh0LZ.js";import"./Du0-m0lz.js";import"./Dkoirn3a.js";const P={class:"description"},W={class:"description__text"},j={key:0,class:"description__button"},G=V({__name:"MediaPageSectionItem",props:{name:{type:String,default:""},description:{type:String,default:""},btnText:{type:String,default:""},btnLink:{type:String,default:""},crmCode:{type:String,default:""},code:{type:String,default:""},sectionIndex:{type:Number,default:0}},async setup(e){let n,u;const k={videos:[{label:"Все",value:void 0},{label:"детям",value:"for_kids"},{label:"образовательные ролики",value:"edu"},{label:"события",value:"events"}],articles:[{label:"Все",value:void 0},{label:"наука",value:"science"},{label:"коллекция",value:"collection"},{label:"о музее",value:"about_museum"}],podcast:[{label:"Все",value:void 0},{label:"детям",value:"for_kids"},{label:"о музее",value:"about_museum"},{label:"наука",value:"science"}]},i=e,y=s(()=>{const t=i.name.toLowerCase();return t.includes("статьи")?"Все статьи":t.includes("журнал")?"Все выпуски":t?`Все ${t}`:"Смотреть все"}),p=N(void 0),f=s(()=>({pageSize:i.sectionIndex%2?6:5,sectionCode:i.code,filter_tags:p.value})),{response:_}=([n,u]=$(()=>z({name:`media-${i.code}`,path:"/media",query:f,watch:[f]})),n=await n,u(),n),g=L({L:"(max-width: 1439px)"}),S=s(()=>{var c;const t=((c=_.value)==null?void 0:c.items.map(T))||[];return i.sectionIndex%2&&g.L.value?t.splice(0,3):t}),C=t=>`/media/${t}`,h=s(()=>k[i.code]||[]),w=t=>{p.value=t};return(t,c)=>{const B=I;return r(),d(F,{title:e.name,filters:a(h),cards:a(S),"grid-card-size":e.sectionIndex%2?"small":"mediumSmall",type:"media","action-link":C(e.code),"action-text":a(y),class:M(["container media-section",{minimalistic:e.sectionIndex%2}]),onSetFilter:w},A({_:2},[e.description?{name:"description",fn:o(()=>[l("div",P,[l("span",W,m(e.description),1),e.btnText?(r(),q("div",j,[e.crmCode?(r(),d(E,{key:0,code:e.crmCode},{trigger:o(()=>[v(a(x),{kind:"primary",size:"l"},{default:o(()=>[l("span",null,m(e.btnText),1)]),_:1})]),_:1},8,["code"])):e.btnLink?(r(),d(B,{key:1,to:e.btnLink,class:"button-show"},{default:o(()=>[v(a(x),{kind:"primary",size:"l"},{default:o(()=>[l("span",null,m(e.btnText),1)]),_:1})]),_:1},8,["to"])):b("",!0)])):b("",!0)])]),key:"0"}:void 0]),1032,["title","filters","cards","grid-card-size","action-link","action-text","class"])}}}),ge=D(G,[["__scopeId","data-v-966a9564"]]);export{ge 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.