|
|
-import{T as f,aW as C,aX as I,a0 as r,a1 as _,ad as d,a9 as g,a7 as p,ag as y,a5 as c,a4 as T,b5 as h,b$ as V,D as v,aO as x,a3 as D,a8 as L,a2 as S,af as w}from"./index-D8sjOVce.js";import{J as $,T as B,a as M,a2 as P}from"./index-Czf8ViR4.js";import{b as E,D as N}from"./vuedraggable.umd-C4atledj.js";const O={class:"mobile-thumbnails"},W=["onClick"],z={class:"label"},H=f({__name:"MobileThumbnails",setup(k){const t=C(),{slides:n,slideIndex:e}=I(t),{sortSlides:u}=E(),{slidesLoadLimit:b}=$(),s=a=>{t.updateSlideIndex(a)},m=a=>{const{newIndex:l,oldIndex:o}=a;l===void 0||o===void 0||l===o||u(l,o)};return(a,l)=>(r(),_("div",O,[d(c(N),{class:"thumbnail-list",modelValue:c(n),animation:200,scroll:!0,scrollSensitivity:50,delayOnTouchOnly:!0,delay:800,itemKey:"id",onEnd:m},{item:g(({element:o,index:i})=>[p("div",{class:T(["thumbnail-item",{active:c(e)===i}]),onClick:K=>s(i)},[p("div",z,y(i+1),1),d(B,{class:"thumbnail",slide:o,size:120,visible:i<c(b)},null,8,["slide","visible"])],10,W)]),_:1},8,["modelValue"])]))}}),F=h(H,[["__scopeId","data-v-530fb6fe"]]),J=f({__name:"mobileScreen",setup(k){const t=V(),n=v(!0),e=v(!1),u=M();return t.setScreenMode("mobileScreen"),u.initPPTData().then(()=>{n.value=!1}),(b,s)=>{const m=x("IconListView");return r(),_("div",{class:"mobileScreen",onClick:s[1]||(s[1]=a=>e.value=!1)},[n.value?S("",!0):(r(),_(D,{key:0},[d(P),e.value?(r(),L(F,{key:0,class:"thumbnails"})):S("",!0),d(m,{class:"tool-icon",onClick:s[0]||(s[0]=w(a=>e.value=!e.value,["stop"]))})],64))])}}}),q=h(J,[["__scopeId","data-v-de947e0a"]]);export{q as default};
|