This commit is contained in:
iriska-gri committed 2023-09-20 08:27:42 +03:00
1 parent 399a818a86
commit 8fab752b9d
34 files changed
+33 -33

No files matched your search

+1
View File
@@ -0,0 +1 @@
import{M as Fe,_ as ce,r as I,b5 as $e,w as N,O as H,P as G,Q as h,aF as ge,aG as ye,aw as ne,b6 as ke,a1 as Q,H as l,aE as ie,T as _e,S as X,aH as q,b7 as gt,Y as yt,Z as pe,a2 as kt,U as we,$ as Xe,b8 as Ne,p as $,a6 as re,a7 as Se,ai as Ge,B as E,am as Ue,aX as qe,aN as be,c as y,s as O,e as Ke,F as z,au as _t,a5 as ve,C as ae,o as xe,J as Je,E as Y,a0 as pt,b as ue,b9 as wt,i as Qe,ba as St,a9 as Ze,z as bt,bb as xt,bc as Vt,ac as Dt,ae as Pt,af as Ct,bd as Mt,be as It,ag as Tt,az as Ve,a8 as $t,an as Et,aq as At,ar as Bt,bf as Rt,bg as Ht,as as zt,a_ as Lt,I as Wt,R as Ee,L as Yt,aO as jt,aL as se,bh as le,bi as Ae,b2 as oe,bj as Ot,bk as Ft,aP as Xt,aa as Nt,N as Gt,bl as Ut,aW as qt,X as ee,W as te,aV as Kt}from"./index-bb5c2687.js";import{V as De,a as Jt,u as et,m as tt,b as at,c as Qt,d as fe}from"./group-17c532ee.js";import{V as T,b as me,d as Zt,c as ea,u as Be,a as ta}from"./ssrBoot-c9b91ed3.js";const aa=Fe(),na={setup(){const e=I([]),o=I(!1),t=ke.slice(0,-1),a=i=>i.split(" ").slice(0,10).join(" ");return $e("api/navigation/news/",e),N(()=>aa.cod2user,(i,c)=>{i&&$e("api/navigation/news/",e)},{deep:!0}),{newss:e,show:o,burl:t,limitText:a}}};function la(e,o,t,a,i,c){return H(),G(De,{class:"py-1 newsVH bg-transparent overflow-auto"},{default:h(()=>[(H(!0),ge(ne,null,ye(a.newss,(n,s)=>(H(),G(Q,{class:"mx-auto mb-0",key:s},{default:h(()=>[l(ie,{src:`${a.burl}${n.link}`,height:"164px",cover:""},null,8,["src"]),l(_e,null,{default:h(()=>[X(q(n.title),1)]),_:2},1024),l(gt,null,{default:h(()=>[X(q(a.limitText(n.text)),1)]),_:2},1024),l(yt,null,{default:h(()=>[l(T,{color:"teal-accent-4",variant:"text"},{default:h(()=>[X(q(n.author.fio),1)]),_:2},1024),l(me),l(T,{icon:n.show?"mdi-chevron-up":"mdi-chevron-down",onClick:d=>n.show=!n.show},null,8,["icon","onClick"])]),_:2},1024),l(Jt,null,{default:h(()=>[pe(kt("div",null,[l(Zt),l(we,null,{default:h(()=>[X(q(n.text),1)]),_:2},1024)],512),[[Xe,n.show]])]),_:2},1024)]),_:2},1024))),128))]),_:1})}const oa=ce(na,[["render",la]]);const sa=e=>{const{touchstartX:o,touchendX:t,touchstartY:a,touchendY:i}=e,c=.5,n=16;e.offsetX=t-o,e.offsetY=i-a,Math.abs(e.offsetY)<c*Math.abs(e.offsetX)&&(e.left&&t<o-n&&e.left(e),e.right&&t>o+n&&e.right(e)),Math.abs(e.offsetX)<c*Math.abs(e.offsetY)&&(e.up&&i<a-n&&e.up(e),e.down&&i>a+n&&e.down(e))};function ia(e,o){var a;const t=e.changedTouches[0];o.touchstartX=t.clientX,o.touchstartY=t.clientY,(a=o.start)==null||a.call(o,{originalEvent:e,...o})}function ua(e,o){var a;const t=e.changedTouches[0];o.touchendX=t.clientX,o.touchendY=t.clientY,(a=o.end)==null||a.call(o,{originalEvent:e,...o}),sa(o)}function ca(e,o){var a;const t=e.changedTouches[0];o.touchmoveX=t.clientX,o.touchmoveY=t.clientY,(a=o.move)==null||a.call(o,{originalEvent:e,...o})}function ra(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:t=>ia(t,o),touchend:t=>ua(t,o),touchmove:t=>ca(t,o)}}function da(e,o){var s;const t=o.value,a=t!=null&&t.parent?e.parentElement:e,i=(t==null?void 0:t.options)??{passive:!0},c=(s=o.instance)==null?void 0:s.$.uid;if(!a||!c)return;const n=ra(o.value);a._touchHandlers=a._touchHandlers??Object.create(null),a._touchHandlers[c]=n,Ne(n).forEach(d=>{a.addEventListener(d,n[d],i)})}function va(e,o){var c,n;const t=(c=o.value)!=null&&c.parent?e.parentElement:e,a=(n=o.instance)==null?void 0:n.$.uid;if(!(t!=null&&t._touchHandlers)||!a)return;const i=t._touchHandlers[a];Ne(i).forEach(s=>{t.removeEventListener(s,i[s])}),delete t._touchHandlers[a]}const nt={mounted:da,unmounted:va},lt=Symbol.for("vuetify:v-window"),ot=Symbol.for("vuetify:v-window-group"),st=$({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},...re(),...Se(),...Ge()},"VWindow"),Re=E()({name:"VWindow",directives:{Touch:nt},props:st(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const{themeClasses:a}=Ue(e),{isRtl:i}=qe(),{t:c}=be(),n=et(e,ot),s=I(),d=y(()=>i.value?!e.reverse:e.reverse),v=O(!1),f=y(()=>{const k=e.direction==="vertical"?"y":"x",P=(d.value?!v.value:v.value)?"-reverse":"";return`v-window-${k}${P}-transition`}),g=O(0),V=I(void 0),b=y(()=>n.items.value.findIndex(k=>n.selected.value.includes(k.id)));N(b,(k,p)=>{const P=n.items.value.length,u=P-1;P<=2?v.value=k<p:k===u&&p===0?v.value=!0:k===0&&p===u?v.value=!1:v.value=k<p}),Ke(lt,{transition:f,isReversed:v,transitionCount:g,transitionHeight:V,rootRef:s});const x=y(()=>e.continuous||b.value!==0),L=y(()=Line truncated