1import{Ht as e,I as t,K as n,M as r,N as i,T as a,Wt as o,_ as s,et as c,gt as l,i as u,kt as d,l as f,mt as p,ot as m,rt as h,v as g,vt as _}from"./runtime-dom.esm-bundler-CQ0Zn2r4.js";import{D as v,Z as y,f as b,ft as x,i as S,l as C,r as w,u as T,ut as E,v as D,y as O}from"./locale-BI5oJrMT.js";import{t as k}from"./VBtn-B6Y_v1Ks.js";import{m as A,p as j}from"./VIcon-D3ZTM4Ev.js";import{i as M,n as N,r as P}from"./scopeId-7l3fFPua.js";import{i as F,r as I,t as L}from"./group-UOiZEMs_.js";import{t as R}from"./transition-D7mTF842.js";import{t as z}from"./ssrBoot-TCR13sYz.js";var B=e=>{let{touchstartX:t,touchendX:n,touchstartY:r,touchendY:i}=e,a=.5;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-16&&e.left(e),e.right&&n>t+16&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&i<r-16&&e.up(e),e.down&&i>r+16&&e.down(e))};function V(e,t){let n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function H(e,t){let n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),B(t)}function U(e,t){let n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function W(e={}){let t={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:e=>V(e,t),touchend:e=>H(e,t),touchmove:e=>U(e,t)}}function G(e,t){let n=t.value,r=n?.parent?e.parentElement:e,i=n?.options??{passive:!0},a=t.instance?.$.uid;if(!r||a===void 0)return;let o=W(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[a]=o,y(o).forEach(e=>{r.addEventListener(e,o[e],i)})}function K(e,t){let n=t.value?.parent?e.parentElement:e,r=t.instance?.$.uid;if(!n?._touchHandlers||r===void 0)return;let i=n._touchHandlers[r];
1i&&(y(i).forEach(e=>{n.removeEventListener(e,i[e])}),delete n._touchHandlers[r],y(n._touchHandlers).length||delete n._touchHandlers)}var q={mounted:G,unmounted:K};r(),d(),m();var J=Symbol.for(`vuetify:v-window`),Y=Symbol.for(`vuetify:v-window-group`),X=O({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`},verticalArrows:[Boolean,String],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:{type:[Boolean,String],default:`force`},crossfade:Boolean,transitionDuration:Number,...D(),...C(),...j()},`VWindow`),Z=b()({name:`VWindow`,directives:{vTouch:q},props:X(),emits:{"update:modelValue":e=>!0},setup(r,{slots:i}){let{themeClasses:u}=A(r),{isRtl:d}=S(),{t:f}=w(),m=I(r,Y),y=p(),b=s(()=>d.value?!r.reverse:r.reverse),C=l(!1),D=s(()=>r.crossfade?`v-window-crossfade-transition`:`v-window-${r.direction===`vertical`?`y`:`x`}${(b.value?!C.value:C.value)?`-reverse`:``}-transition`),O=l(0),j=p(void 0),N=s(()=>m.items.value.findIndex(e=>m.selected.value.includes(e.id)));c(N,(e,n)=>{let r,i={left:0,top:0};E&&n>=0&&(r=M(y.value),i.left=r?.scrollLeft,i.top=r?.scrollTop);let a=m.items.value.length,o=a-1;a<=2?C.value=e<n:e===o&&n===0?C.value=!1:e===0&&n===o?C.value=!0:C.value=e<n,t(()=>{!E||!r||(r.scrollTop!==i.top&&r.scrollTo({...i,behavior:`instant`}),requestAnimationFrame(()=>{r&&r.scrollTop!==i.top&&r.scrollTo({...i,behavior:`instant`})}))})},{flush:`sync`}),n(J,{transition:D,isReversed:C,transitionCount:O,transitionHeight:j,rootRef:y});let P=_(()=>r.continuous||N.value!==0),F=_(()=>r.continuous||N.value!==m.items.value.length-1);function L(){P.value&&m.prev()}function R(){F.value&&m.next()}let z=s(()=>{let e=[],t={icon:d.value?r.nextIcon:r.prevIcon,class:`v-window__${b.value?`right`:`left`}`,onClick:m.prev,"aria-label":f(`$vuetify.carousel.prev`)};e.push(P.value?i.prev?i.prev({props:t}):a(k,t,null):g(`div`,null,null));let n={icon:d.value?r.prevIcon:r.nextIcon,class:`v-window__${b.value?`left`:`right`}`,onClick:m.next,"aria-label":f(`$vuetify.carousel.next`)};return e.push(F.value?i.next?i.next({props:n}):a(k,n,null):g(`div`,null,null)),e}),B=s(()=>r.touch===!1?r.touch:{left:()=>{b.value?L():R()},right:()=>{b.value?R():L()},start:({originalEvent:e})=>{e.stopPropagation()},...r.touch===!0?{}:r.touch});function V(e){(r.direction===`horizontal`&&e.key===`ArrowLeft`||r.direction===`vertical`&&e.key===`ArrowUp`)&&(e.preventDefault(),L(),t(()=>{P.value?H(0):H(1)})),(r.direction===`horizontal`&&e.key===`ArrowRight`||r.direction===`vertical`&&e.key===`ArrowDown`)&&(e.preventDefault(),R(),t(()=>{F.value?H(1):H(0)}))}function H(e){let t=z.value[e];t&&(Array.isArray(t)?t[0]:t).el?.focus()}return T(()=>h(a(r.tag,{ref:y,class:e([`v-window`,{"v-window--show-arrows-on-hover":r.showArrows===`hover`,"v-window--vertical-arrows":!!r.verticalArrows,"v-window--crossfade":!!r.crossfade},u.value,r.class]),style:o([r.style,{"--v-window-transition-duration":x()?null:v(r.transitionDuration,`ms`)}])},{default:()=>[g(`div`,{class:`v-window__container`,style:{height:j.value}},[i.default?.({group:m}),r.showArrows!==!1&&g(`div`,{class:e([`v-window__controls`,{"v-window__controls--left":r.verticalArrows===`left`||r.verticalArrows===!0},{"v-window__controls--right":r.verticalArrows===`right`}]),onKeydown:V},[z.value])]),i.additional?.({group:m})]}),[[q,B.value]])),{group:m}}});u(),d(),r(),m();var Q=O({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...D(),...L(),...N()},`VWindowItem`),$=b()({name:`VWindowItem`,directives:{vTouch:q},props:Q(),emits:{"group:selected":e=>!0},setup(n,{slots:r}){let c=i(J),u=F(n,Y),{isBooted:d}=z();if(!c||!u)throw Error(`[Vuetify] VWindowItem must be used inside VWindow`);let p=l(!1),m=s(()=>d.value&&(c.isReversed.value?n.reverseTransition!==!1:n.transition!==!1));function _(){!p.value||!c||(p.value=!1,c.transitionCount.value>0&&(--c.transitionCount.value,c.transitionCount.value===0&&(c.transitionHeight.value=void 0)))}function y(){p.value||!c||(p.value=!0,c.transitionCount.value===0&&(c.transitionHeight.value=v(c.rootRef.value?.clientHeight)),c.transitionCount.value+=1)}function b(){_()}function x(e){p.value&&t(()=>{!m.value||!p.value||!c||(c.transitionHeight.value=v(e.clientHeight))})}let S=s(()=>{let e=c.isReversed.value?n.reverseTransition:n.transition;return m.value?{name:typeof e==`string`?e:c.transition.value,onBeforeEnter:y,onAfterEnter:_,onEnterCancelled:b,onBeforeLeave:y,onAfterLeave:_,onLeaveCancelled:b,onEnter:x}:!1}),{hasContent:C}=P(n,u.isSelected);return T(()=>a(R,{transition:S.value,disabled:!d.value},{default:()=>
1[h(g(`div`,{class:e([`v-window-item`,u.selectedClass.value,n.class]),style:o(n.style)},[C.value&&r.default?.()]),[[f,u.isSelected.value]])]})),{groupItem:u}}});export{X as i,Q as n,Z as r,$ as t};
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.