PageSourceSearch

https://ligalombard.ru/_nuxt/DJb5wM6w.js

js ligalombard.ru collected 2026-10-08 15:57:52 UTC 11,886 bytes, 1 lines download raw bytes

1import{B as e,Bt as t,L as n,N as r,U as i,Ut as a,Wt as o,Z as s,_ as c,d as l,et as u,f as d,ft as f,m as p,p as m,r as h,s as g,tt as _,u as v,v as y,y as b,yt as x}from"./fSbKS3Ms.js";import{c as S,d as C}from"./CjPwXSAj.js";import{c as w,t as T}from"./MaLhb9eO.js";import{a as E,i as D,l as O,n as k,o as A,r as j,s as M,t as N,u as P}from"./D9xEBIpG.js";var F={class:`lm-container`},ee={class:`lm-stories-wrap`},te=[`onClick`],I=[`src`,`alt`],L={class:`lm-story-label`},R={class:`lm-viewer-progress`},z={key:0,style:{width:`100%`}},B={class:`lm-viewer-head`},V=[`src`],H=[`src`,`alt`],U=[`src`],W={key:2},G={key:3},K=4500,q={__name:`MediaStories`,setup(c){let{data:u}=w(`/api/media/stories`,{default:()=>null},`$YnDhGdDEY_`),_=v(()=>Array.isArray(u.value)&&u.value.length?u.value:M),y=f(null),b=f(null),x=f(0),S=f(new Set),T=v(()=>_.value.findIndex(e=>e.id===b.value)),E=v(()=>T.value>=0?_.value[T.value]:null),D=v(()=>E.value.slides[x.value]),O=null;function k(){O&&=(clearTimeout(O),null)}function A(){k(),!(D.value&&D.value.video)&&(O=setTimeout(()=>P(),K))}function j(e,t=0){b.value=e,x.value=t,S.value=new Set([...S.value,e]),A()}function N(){k(),b.value=null}function P(){if(E.value){if(x.value<E.value.slides.length-1)x.value++,A();else{let e=(T.value+1)%_.value.length;j(_.value[e].id)}}}function q(){if(E.value){if(x.value>0)x.value--,A();else{let e=(T.value-1+_.value.length)%_.value.length,t=_.value[e];j(t.id,t.slides.length-1)}}}function J(e){let t=y.value;t&&t.scrollBy({left:e*Math.max(220,t.clientWidth*.6),behavior:`smooth`})}function Y(e){E.value&&(e.key===`Escape`&&N(),e.key===`ArrowRight`&&P(),e.key===`ArrowLeft`&&q())}return s(E,e=>{document.body.style.overflow=e?`hidden`:``}),n(()=>window.addEventListener(`keydown`,Y)),r(()=>{window.removeEventListener(`keydown`,Y),k(),document.body.style.overflow=``}),(n,r)=>(e(),p(`section`,F,[l(`div`,ee,[_.value.length>4?(e(),p(`button`,{key:0,class:`lm-stories-nav lm-stories-nav--prev`,"aria-label":`Листать сторис назад`,onClick:r[0]||=e=>J(-1)},[...r[3]||=[l(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`},[l(`path`,{d:`M15 6l-6 6 6 6`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]])):m(``,!0),l(`div`,{ref_key:`stripEl`,ref:y,class:`lm-stories lm-no-scrollbar`},[(e(!0),p(h,null,i(_.value,n=>(e(),p(`button`,{key:n.id,class:`lm-story-btn`,onClick:e=>j(n.id)},[l(`span`,{class:t([`lm-story-ring`,{"lm-story-ring--viewed":S.value.has(n.id)}])},[l(`img`,{src:n.cover,alt:n.title,loading:`eager`,decoding:`async`},null,8,I)],2),l(`span`,L,o(n.title),1)],8,te))),128))],512),_.value.length>4?(e(),p(`button`,{key:1,class:`lm-stories-nav lm-stories-nav--next`,"aria-label":`Листать сторис вперёд`,onClick:r[1]||=e=>J(1)},[...r[4]||=[l(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`},[l(`path`,{d:`M9 6l6 6-6 6`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]])):m(``,!0)]),(e(),d(g,{to:`body`},[E.value?(e(),p(`div`,{key:0,class:`lm-viewer`,onClick:N},[l(`div`,{class:t([`lm-viewer-box`,`lm-viewer-box--${D.value.tone} lm-stripes-${D.value.tone===`paper`?`paper`:D.value.tone===`red`?`red`:`dark`}`]),style:a({"--lm-slide-ms":`4500ms`}),onClick:r[2]||=C(()=>{},[`stop`])},[l(`div`,R,[(e(!0),p(h,null,i(E.value.slides,(n,r)=>(e(),p(`div`,{key:r,class:t([`lm-viewer-bar`,{"lm-viewer-bar--active":r===x.value}])},[r<x.value?(e(),p(`span`,z)):r===x.value?(e(),p(`span`,{key:E.value.id+`-`+x.value})):m(``,!0)],2))),128))]),l(`div`,B,[l(`img`,{src:E.value.cover,alt:``},null,8,V),l(`span`,null,o(E.value.title),1)]),l(`button`,{class:`lm-viewer-close`,"aria-label":`Закрыть`,onClick:N},`×`),l(`button`,{class:`lm-viewer-tap lm-viewer-tap--left`,"aria-label":`Назад`,onClick:q}),l(`button`,{class:`lm-viewer-tap lm-viewer-tap--right`,"aria-label":`Вперёд`,onClick:P}),l(`div`,{class:t([`lm-viewer-body`,{"lm-viewer-body--media":D.value.image||D.value.video}])},[D.value.image?(e(),p(`img`,{key:0,class:`lm-viewer-media`,src:D.value.image,alt:D.value.title||``},null,8,H)):D.value.video?(e(),p(`video`,{key:1,class:`lm-viewer-media`,src:D.value.video,controls:``,autoplay:``,muted:``,playsinline:``},null,8,U)):m(``,!0),D.value.title?(e(),p(`h3`,W,o(D.value.title),
11)):m(``,!0),D.value.text?(e(),p(`p`,G,o(D.value.text),1)):m(``,!0)],2)],6)])):m(``,!0)]))]))}},J={key:0,class:`lm-container lm-hero`},Y={class:`lm-hero-bg`},X=[`src`,`alt`],Z={class:`lm-hero-tags`},Q={class:`lm-tag lm-tag--red`},ne={class:`lm-tag lm-tag--paper lm-tag--tilt-r`},re={class:`lm-hero-content`},ie={class:`lm-hero-meta`},ae={class:`lm-hero-side`},oe=[`onClick`],se={class:`lm-hero-card-img`},ce=[`src`,`alt`],le={class:`lm-hero-card-body`},ue={class:`lm-hero-card-topic`},de={class:`lm-hero-card-date`},fe={class:`lm-popular`},pe=[`onClick`],me={class:`lm-popular-num`},he={class:`lm-popular-title`},ge={__name:`MediaHero`,props:{articles:{type:Array,required:!0}},emits:[`open`],setup(t){let n=t,{viewsOf:r,recentIds:a}=D(),s=v(()=>[...n.articles].sort((e,t)=>String(t.date).localeCompare(String(e.date)))),c=v(()=>s.value.find(e=>e.type===`Статья`)??s.value[0]),u=v(()=>{let e=s.value.filter(e=>e.type===`Новость`&&e.id!==c.value?.id).slice(0,2);for(let t of s.value){if(e.length>=2)break;t.id!==c.value?.id&&!e.some(e=>e.id===t.id)&&e.push(t)}return e}),f=v(()=>{let e=new Map(n.articles.map(e=>[e.id,e])),t=a().map(t=>e.get(t)).filter(Boolean);for(let e of s.value){if(t.length>=4)break;t.some(t=>t.id===e.id)||t.push(e)}return t.slice(0,4)});return(t,n)=>{let a=E;return c.value?(e(),p(`section`,J,[l(`article`,{class:`lm-hero-main`,onClick:n[0]||=e=>t.$emit(`open`,c.value)},[l(`div`,Y,[c.value.cover?(e(),p(`img`,{key:0,src:c.value.cover,alt:c.value.title},null,8,X)):(e(),d(a,{key:1,article:c.value},null,8,[`article`]))]),l(`div`,Z,[l(`span`,Q,o(c.value.type),1),l(`span`,ne,o(c.value.topics[0]),1)]),l(`div`,re,[l(`div`,ie,o(x(O)(c.value.date))+` · `+o(c.value.readTime)+` мин чтения · Прочитано `+o(x(P)(x(r)(c.value))),1),l(`h2`,null,o(c.value.title),1),l(`p`,null,o(c.value.excerpt),1),n[1]||=l(`span`,{class:`lm-hero-read`},[y(` Читать `),l(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`},[l(`path`,{d:`M5 12h14M13 6l6 6-6 6`,"stroke-linecap":`round`,"stroke-linejoin":`round`})])],-1)])]),l(`div`,ae,[(e(!0),p(h,null,i(u.value,n=>(e(),p(`article`,{key:n.id,class:`lm-hero-card`,onClick:e=>t.$emit(`open`,n)},[l(`div`,se,[n.cover?(e(),p(`img`,{key:0,src:n.cover,alt:n.title,loading:`lazy`},null,8,ce)):(e(),d(a,{key:1,article:n,compact:``},null,8,[`article`]))]),l(`div`,le,[l(`span`,ue,o(n.topics[0]),1),l(`h3`,null,o(n.title),1),l(`div`,de,o(x(O)(n.date))+` · `+o(n.readTime)+` мин · Прочитано `+o(x(P)(x(r)(n))),1)])],8,oe))),128)),l(`div`,fe,[n[2]||=l(`div`,{class:`lm-popular-head`},[l(`span`,{class:`lm-kicker-dot`}),l(`span`,null,`Сейчас читают`)],-1),l(`ol`,null,[(e(!0),p(h,null,i(f.value,(n,r)=>(e(),p(`li`,{key:n.id},[l(`button`,{onClick:e=>t.$emit(`open`,n)},[l(`span`,me,o(r+1),1),l(`span`,he,o(n.title),1)],8,pe)]))),128))])])])])):m(``,!0)}}},_e={key:0,class:`lm-container`},ve={class:`lm-actual`},ye={class:`lm-actual-grid`},be=[`onClick`],xe={class:`lm-actual-meta`},Se={__name:`MediaActual`,props:{articles:{type:Array,required:!0}},emits:[`open`],setup(t){let n=t,{viewsOf:r}=D(),a=v(()=>n.articles.filter(e=>e.featured).slice(0,3));return(t,n)=>a.value.length?(e(),p(`section`,_e,[l(`div`,ve,[n[1]||=l(`div`,{class:`lm-actual-head`},[l(`span`,{class:`lm-actual-dot`}),l(`h2`,{class:`lm-actual-title`},`Актуально сейчас`)],-1),l(`div`,ye,[(e(!0),p(h,null,i(a.value,i=>(e(),p(`article`,{key:i.id,class:`lm-actual-card`,onClick:e=>t.$emit(`open`,i)},[l(`div`,xe,[n[0]||=l(`i`,null,null,-1),y(` `+o(x(O)(i.date))+` `,1),i.city?(e(),p(h,{key:0},[y(`· `+o(i.city),1)],64)):m(``,!0),y(` · Прочитано `+o(x(P)(x(r)(i))
1),1)]),l(`h3`,null,o(i.title),1)],8,be))),128))])])])):m(``,!0)}},Ce={key:0,class:`lm-container lm-section`},we={class:`lm-section-head`},Te={class:`lm-section-title`},Ee={class:`lm-section-desc`},De={class:`lm-grid`,style:{"padding-top":`0`}},$={__name:`MediaSection`,props:{section:{type:Object,required:!0},articles:{type:Array,required:!0}},emits:[`open`],setup(t){let n=t,r=v(()=>n.articles.filter(e=>e.type===n.section.type).sort((e,t)=>t.date.localeCompare(e.date)).slice(0,3));return(n,a)=>{let s=T,c=j;return r.value.length?(e(),p(`section`,Ce,[l(`div`,we,[l(`div`,null,[l(`h2`,Te,o(t.section.title),1),l(`p`,Ee,o(t.section.desc),1)]),b(s,{to:`/media/`+t.section.slug,class:`lm-btn-more`},{default:u(()=>[...a[0]||=[y(` Смотреть ещё `,-1),l(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.5`},[l(`path`,{d:`M5 12h14M13 6l6 6-6 6`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1)]]),_:1},8,[`to`])]),l(`div`,De,[(e(!0),p(h,null,i(r.value,(t,r)=>(e(),d(c,{key:t.id,article:t,index:r,onOpen:e=>n.$emit(`open`,t)},null,8,[`article`,`index`,`onOpen`]))),128))])])):m(``,!0)}}},Oe={class:`lm-container`},ke={class:`lm-subscribe`},Ae={class:`lm-subscribe-inner`},je={key:0,class:`lm-subscribe-done`},Me={__name:`MediaSubscribe`,setup(t){let n=f(``),r=f(!1);function i(){/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.value.trim())&&(r.value=!0)}return(t,a)=>(e(),p(`section`,Oe,[l(`div`,ke,[l(`div`,Ae,[a[3]||=l(`h2`,null,[y(`Новости ЛИГИ —`),l(`br`),y(`первыми в вашей почте`)],-1),a[4]||=l(`p`,{class:`lm-subscribe-sub`},` Разыгрыши, акции и полезные статьи — без спама, не чаще двух раз в месяц. `,-1),r.value?(e(),p(`div`,je,[...a[1]||=[l(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`3`},[l(`path`,{d:`M4 12.5l5 5L20 6.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`})],-1),y(` Готово! Проверьте почту `,-1)]])):(e(),p(`form`,{key:1,class:`lm-subscribe-form`,onSubmit:C(i,[`prevent`])},[_(l(`input`,{"onUpdate:modelValue":a[0]||=e=>n.value=e,type:`email`,inputmode:`email`,placeholder:`ваша@почта.ru`,"aria-label":`Электронная почта`},null,512),[[S,n.value]]),a[2]||=l(`button`,{type:`submit`},`Подписаться`,-1)],32)),a[5]||=l(`p`,{class:`lm-subscribe-note`},` Нажимая «Подписаться», вы соглашаетесь с политикой обработки персональных данных. `,-1)])])]))}},Ne={class:`lm-page`},Pe={__name:`index`,setup(t){let{articles:n}=k(),r=f(null);function a(e){r.value=e}return(t,o)=>{let s=q,l=ge,u=Se,f=$,g=Me,_=N;return e(),p(`div`,Ne,[o[1]||=c(`<div class="lm-container lm-herohead"><span class="lm-kicker"><span class="lm-kicker-dot"></span> ЛИГА Медиа </span><h1 class="lm-title"> Блог о золоте, технике<br>и <span class="lm-title-accent">жизни ломбарда</span></h1><p class="lm-subtitle"> «ЛИГА Медиа» — журнал ломбарда «Лига». Рассказываем простым языком, как работает залоговый бизнес. Здесь мы делимся полезными советами, разбираем важные вопросы, публикуем новости компании, истории, акции и розыгрыши. </p></div>`,1),b(s),b(l,{articles:x(n),onOpen:a},null,8,[`articles`]),b(u,{articles:x(n),onOpen:a},null,8,[`articles`]),(e(!0),p(h,null,i(x(A),t=>(e(),d(f,{key:t.slug,section:t,articles:x(n),onOpen:a},null,8,[`section`,`articles`]))),128)),b(g),r.value?(e(),d(_,{key:0,article:r.value,onClose:o[0]||=e=>r.value=null,onOpen:a},null,8,[`article`])):m(``,!0)])}}};export{Pe 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.