HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //var/packages/UniversalViewer/target/dist/assets/index-DRWz6LAz.js
import{bI as P,bJ as _,d as h,c as E,o as p,u as t,I as m,r as C,N as y,l as w,n as v,C as O,a2 as S}from"../uv.main.XdP33zSa.js";import{U as Z,u as i,a as d,b as c}from"./store-CAJW2YFn.js";import{b as L,u as H}from"./usePaperFloat-QHga-gfl.js";import"./ZoomFloatingBar.vue_vue_type_script_setup_true_lang-DOYCzXq-.js";import{a as V,u as x}from"./usePageComponent-vUPIKFpG.js";import{u as z,S as B}from"./createIframe-MrdCgf32.js";import{i as D}from"./officeItem-DyDugwZR.js";import{P as W}from"./handler-hB-BTHEZ.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./item-B5SDe0MM.js";import"./handler-CIFn3Nrq.js";import"./blockComponent-eH9nLfFc.js";class U extends Z{iframe;renderEl;resizeObserver;constructor(e){super(e),this.iframe=e.iframe,this.iframe.classList.add("syno-uv-oslides-view");const r=this.iframe.contentDocument;this.renderEl=r.body.appendChild(r.createElement("div")),this.renderEl.classList.add("syno-o-slide-viewer"),this.renderEl.addEventListener("wheel",n=>this.handleWheel(n)),this.resizeObserver=new ResizeObserver(P(n=>{const s=`${this.renderEl.offsetHeight}px`,a=`${this.renderEl.offsetWidth}px`;this.iframe.style.height=s,this.iframe.style.width=a,this.getComponent().style.height=s},30,{leading:!1})),this.resizeObserver.observe(this.renderEl)}createProseMirror(e){return this.iframe.contentWindow.PresentationViewer.createProseMirror(e)}getPmPlace(){return this.renderEl}getPageContainer(){return this.iframe}cleanup(){this.iframe.classList.add("hidden"),super.cleanup()}renderPages(){return this.iframe.classList.remove("hidden"),super.renderPages()}getEventPosition(e){return _(e)}}const Q=h({__name:"FloatingBar",setup(l){const{enableZoomOut:e,enableZoomIn:r,handType:n,currentPage:s,totalPage:a,displayFit:o,handleZoomOut:u,handleZoomDisplay:g,handleZoomIn:f,handleCursorClick:I,handleHandClick:b}=L({useComponentStore:i,usePageStore:c,useZoomableStore:d});return(k,F)=>(p(),E(t(V),{"enable-zoom-in":t(r),"enable-zoom-out":t(e),"hand-type":t(n),"current-page":t(s),"total-page":t(a),"display-fit":t(o),onZoomout:t(u),onZoomreset:t(g),onZoomin:t(f),onCursor:t(I),onHand:t(b)},null,8,["enable-zoom-in","enable-zoom-out","hand-type","current-page","total-page","display-fit","onZoomout","onZoomreset","onZoomin","onCursor","onHand"]))}}),X=h({__name:"ItemView",setup(l,{expose:e}){const r=m.OSLIDE,n=C(null),s=y(S);z(n,o=>x(n,{useComponentStore:i,usePageStore:c,useZoomableStore:d},U,{iframe:o}),r,s);const{redrawHighlights:a}=H(r,()=>i().component);return e({redrawHighlights:a,handleWheel:o=>i().component?.handleWheel(o)}),(o,u)=>(p(),w("div",{ref_key:"container",ref:n,class:v(t(O).OSLIDES_VIEW)},null,2))}});class ee extends W{static itemType=m.OSLIDE;getInitDataConfig(e,r){const n=e.getImageURLHandler();return{...super.getInitDataConfig(e,r),requestImageUrl:D(n)?n.bind(null,r.object_id):n.bind(null,e.getId(),r.object_id)}}getComponentStore(){return i()}getZoomableStore(){return d()}getPageStore(){return c()}}class te extends B{static type=m.OSLIDE;static previewableExtensions=["oslides"]}export{Q as FloatingBar,te as Item,X as ItemView,U as UVOslidesView,ee as ViewHandler};