1
This commit is contained in:
1 parent
0a9601629c
commit
a815e59043
28 files changed
+60
-4
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
import{am as Ve,al as U,r as R,bg as he,w as E,ao as C,ap as P,aq as d,aW as se,aX as le,a8 as K,bh as oe,ay as L,H as l,aV as N,as as ue,ar as T,aY as I,bi as Ne,aw as qe,O as ie,az as Ue,at as ce,P as Ce,bj as ke,p as A,M as J,aC as re,R as pe,B as z,_ as Te,a1 as Ie,S as Pe,c as x,s as p,e as Ke,F as D,ai as Je,X as ne,C as Qe,o as $e,J as Ze,E as q,ax as et,b as ae,bk as tt,i as nt,bl as at,Q as st,z as lt,bm as ot,bn as ut,aE as it,aF as ct,aG as rt,bo as dt,bp as vt,Z as ft,a2 as mt,a3 as ht,aL as gt,aN as _t,aO as yt,bq as bt,br as xt,a0 as wt,b9 as St,I as Vt,T as ge,L as Ct,b2 as kt,bs as pt,an as Tt,b0 as te,av as G,au as O,b6 as It}from"./index-3173e4cf.js";import{b as de,c as Pt,u as Re,m as ze,d as Be,e as $t,f as _e}from"./group-bb3e3939.js";import{V as M,a as Rt,c as zt,b as Bt,u as ye}from"./ssrBoot-0f664535.js";const Et=Ve(),Lt={setup(){const e=R([]),s=R(!1),n=oe.slice(0,-1),t=i=>i.split(" ").slice(0,10).join(" ");return he("api/navigation/news/",e),E(()=>Et.cod2user,(i,u)=>{i&&he("api/navigation/news/",e)},{deep:!0}),{newss:e,show:s,burl:n,limitText:t}}};function At(e,s,n,t,i,u){return C(),P(de,{class:"py-1 newsVH bg-transparent overflow-auto"},{default:d(()=>[(C(!0),se(K,null,le(t.newss,(a,o)=>(C(),P(L,{class:"mx-auto mb-0",key:o},{default:d(()=>[l(N,{src:`${t.burl}${a.link}`,height:"164px",cover:""},null,8,["src"]),l(ue,null,{default:d(()=>[T(I(a.title),1)]),_:2},1024),l(Ne,null,{default:d(()=>[T(I(t.limitText(a.text)),1)]),_:2},1024),l(qe,null,{default:d(()=>[l(M,{color:"teal-accent-4",variant:"text"},{default:d(()=>[T(I(a.author.fio),1)]),_:2},1024),l(Rt),l(M,{icon:a.show?"mdi-chevron-up":"mdi-chevron-down",onClick:c=>a.show=!a.show},null,8,["icon","onClick"])]),_:2},1024),l(Pt,null,{default:d(()=>[ie(Ue("div",null,[l(zt),l(ce,null,{default:d(()=>[T(I(a.text),1)]),_:2},1024)],512),[[Ce,a.show]])]),_:2},1024)]),_:2},1024))),128))]),_:1})}const Dt=U(Lt,[["render",At]]);const Ht=e=>{const{touchstartX:s,touchendX:n,touchstartY:t,touchendY:i}=e,u=.5,a=16;e.offsetX=n-s,e.offsetY=i-t,Math.abs(e.offsetY)<u*Math.abs(e.offsetX)&&(e.left&&n<s-a&&e.left(e),e.right&&n>s+a&&e.right(e)),Math.abs(e.offsetX)<u*Math.abs(e.offsetY)&&(e.up&&i<t-a&&e.up(e),e.down&&i>t+a&&e.down(e))};function Ot(e,s){var t;const n=e.changedTouches[0];s.touchstartX=n.clientX,s.touchstartY=n.clientY,(t=s.start)==null||t.call(s,{originalEvent:e,...s})}function Mt(e,s){var t;const n=e.changedTouches[0];s.touchendX=n.clientX,s.touchendY=n.clientY,(t=s.end)==null||t.call(s,{originalEvent:e,...s}),Ht(s)}function Xt(e,s){var t;const n=e.changedTouches[0];s.touchmoveX=n.clientX,s.touchmoveY=n.clientY,(t=s.move)==null||t.call(s,{originalEvent:e,...s})}function Yt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s={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:n=>Ot(n,s),touchend:n=>Mt(n,s),touchmove:n=>Xt(n,s)}}function jt(e,s){var o;const n=s.value,t=n!=null&&n.parent?e.parentElement:e,i=(n==null?void 0:n.options)??{passive:!0},u=(o=s.instance)==null?void 0:o.$.uid;if(!t||!u)return;const a=Yt(s.value);t._touchHandlers=t._touchHandlers??Object.create(null),t._touchHandlers[u]=a,ke(a).forEach(c=>{t.addEventListener(c,a[c],i)})}function Ft(e,s){var u,a;const n=(u=s.value)!=null&&u.parent?e.parentElement:e,t=(a=s.instance)==null?void 0:a.$.uid;if(!(n!=null&&n._touchHandlers)||!t)return;const i=n._touchHandlers[t];ke(i).forEach(o=>{n.removeEventListener(o,i[o])}),delete n._touchHandlers[t]}const Ee={mounted:jt,unmounted:Ft},Le=Symbol.for("vuetify:v-window"),Ae=Symbol.for("vuetify:v-window-group"),De=A({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"},...J(),...re(),...pe()},"VWindow"),be=z()({name:"VWindow",directives:{Touch:Ee},props:De(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:n}=s;const{themeClasses:t}=Te(e),{isRtl:i}=Ie(),{t:u}=Pe(),a=Re(e,Ae),o=R(),c=x(()=>i.value?!e.reverse:e.reverse),v=p(!1),f=x(()=>{const y=e.direction==="vertical"?"y":"x",S=(c.value?!v.value:v.value)?"-reverse":"";return`v-window-${y}${S}-transition`}),g=p(0),b=R(void 0),h=x(()=>a.items.value.findIndex(y=>a.selected.value.includes(y.id)));E(h,(y,w)=>{const S=a.items.value.length,F=S-1;S<=2?v.value=y<w:y===F&&w===0?v.value=!0:y===0&&w===F?v.value=!1:v.value=y<w}),Ke(Le,{transition:f,isReversed:v,transitionCount:g,transitionHeight:b,rootRef:o});const _=x(()=>e.continuous||h.value!==0),H=x(()=>e.continuous||h.value!==a.items.value.length-1);function X(){_.value&&a.prev()}functLine truncated
|
||||
Reference in new issue
Block a user