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