diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 2fe1cef3..00000000 --- a/css/style.css +++ /dev/null @@ -1,15 +0,0 @@ -/* force full height on public template */ -#body-public .full-height { - height: 100%; -} - -#body-public footer.hidden { - display: none; -} - -#pdframe { - /* The PDF frame uses an absolute position and thus fills the whole padding - * box of the content, so the top padding is needed here too to not overlap - * the header. */ - padding-top: inherit; -} diff --git a/js/files_pdfviewer-public.js b/js/files_pdfviewer-public.js index a58b8a87..ccaf2d32 100644 --- a/js/files_pdfviewer-public.js +++ b/js/files_pdfviewer-public.js @@ -1,3 +1,3 @@ /*! For license information please see files_pdfviewer-public.js.LICENSE.txt */ -(()=>{var t={2200:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRequestToken",{enumerable:!0,get:function(){return n.getRequestToken}}),Object.defineProperty(e,"onRequestTokenUpdate",{enumerable:!0,get:function(){return n.onRequestTokenUpdate}}),Object.defineProperty(e,"getCurrentUser",{enumerable:!0,get:function(){return o.getCurrentUser}});var n=r(1894),o=r(1618)},1894:(t,e,r)=>{"use strict";var n=r(5108);r(9554),Object.defineProperty(e,"__esModule",{value:!0}),e.getRequestToken=function(){return a},e.onRequestTokenUpdate=function(t){c.push(t)};var o=r(2089),i=document.getElementsByTagName("head")[0],a=i?i.getAttribute("data-requesttoken"):null,c=[];(0,o.subscribe)("csrf-token-update",(function(t){a=t.token,c.forEach((function(e){try{e(t.token)}catch(t){n.error("error updating CSRF token observer",t)}}))}))},1618:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentUser=function(){if(null===n)return null;return{uid:n,displayName:i,isAdmin:a}};var r=document.getElementsByTagName("head")[0],n=r?r.getAttribute("data-user"):null,o=document.getElementsByTagName("head")[0],i=o?o.getAttribute("data-user-displayname"):null,a="undefined"!=typeof OC&&OC.isUserAdmin()},2089:(t,e,r)=>{"use strict";r.r(e),r.d(e,{emit:()=>qo,subscribe:()=>Bo,unsubscribe:()=>$o});var n=r(4155),o=r(5108),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function a(t){var e={exports:{}};return t(e,e.exports),e.exports}var c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof i&&i)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y={f:p&&!f.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:f},g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,d=function(t){return h.call(t).slice(8,-1)},v="".split,b=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?v.call(t,""):Object(t)}:Object,E=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return b(E(t))},O=function(t){return"object"==typeof t?null!==t:"function"==typeof t},S=function(t,e){if(!O(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!O(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!O(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!O(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},w=function(t){return Object(E(t))},A={}.hasOwnProperty,x=function(t,e){return A.call(w(t),e)},I=u.document,j=O(I)&&O(I.createElement),R=function(t){return j?I.createElement(t):{}},T=!l&&!s((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),P=Object.getOwnPropertyDescriptor,N={f:l?P:function(t,e){if(t=m(t),e=S(e,!0),T)try{return P(t,e)}catch(t){}if(x(t,e))return g(!y.f.call(t,e),t[e])}},L=function(t){if(!O(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,_={f:l?k:function(t,e,r){if(L(t),e=S(e,!0),L(r),T)try{return k(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},F=l?function(t,e,r){return _.f(t,e,g(1,r))}:function(t,e,r){return t[e]=r,t},D=function(t,e){try{F(u,t,e)}catch(r){u[t]=e}return e},M="__core-js_shared__",U=u[M]||D(M,{}),C=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return C.call(t)});var G,B,$,q=U.inspectSource,V=u.WeakMap,z="function"==typeof V&&/native code/.test(q(V)),W=a((function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,H=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+H).toString(36)},J=W("keys"),K=function(t){return J[t]||(J[t]=Y(t))},Z={},Q="Object already initialized",tt=u.WeakMap;if(z){var et=U.state||(U.state=new tt),rt=et.get,nt=et.has,ot=et.set;G=function(t,e){if(nt.call(et,t))throw new TypeError(Q);return e.facade=t,ot.call(et,t,e),e},B=function(t){return rt.call(et,t)||{}},$=function(t){return nt.call(et,t)}}else{var it=K("state");Z[it]=!0,G=function(t,e){if(x(t,it))throw new TypeError(Q);return e.facade=t,F(t,it,e),e},B=function(t){return x(t,it)?t[it]:{}},$=function(t){return x(t,it)}}var at={set:G,get:B,has:$,enforce:function(t){return $(t)?B(t):G(t,{})},getterFor:function(t){return function(e){var r;if(!O(e)||(r=B(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},ct=a((function(t){var e=at.get,r=at.enforce,n=String(String).split("String");(t.exports=function(t,e,o,i){var a,c=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||x(o,"name")||F(o,"name",e),(a=r(o)).source||(a.source=n.join("string"==typeof e?e:""))),t!==u?(c?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=o:F(t,e,o)):s?t[e]=o:D(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||q(this)}))})),ut=u,st=function(t){return"function"==typeof t?t:void 0},lt=function(t,e){return arguments.length<2?st(ut[t])||st(u[t]):ut[t]&&ut[t][e]||u[t]&&u[t][e]},ft=Math.ceil,pt=Math.floor,yt=function(t){return isNaN(t=+t)?0:(t>0?pt:ft)(t)},gt=Math.min,ht=function(t){return t>0?gt(yt(t),9007199254740991):0},dt=Math.max,vt=Math.min,bt=function(t){return function(e,r,n){var o,i=m(e),a=ht(i.length),c=function(t,e){var r=yt(t);return r<0?dt(r+e,0):vt(r,e)}(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},Et={includes:bt(!0),indexOf:bt(!1)}.indexOf,mt=function(t,e){var r,n=m(t),o=0,i=[];for(r in n)!x(Z,r)&&x(n,r)&&i.push(r);for(;e.length>o;)x(n,r=e[o++])&&(~Et(i,r)||i.push(r));return i},Ot=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=Ot.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return mt(t,St)}},At={f:Object.getOwnPropertySymbols},xt=lt("Reflect","ownKeys")||function(t){var e=wt.f(L(t)),r=At.f;return r?e.concat(r(t)):e},It=function(t,e){for(var r=xt(e),n=_.f,o=N.f,i=0;ii;)_.f(t,r=n[i++],e[r]);return t},Bt=lt("document","documentElement"),$t=K("IE_PROTO"),qt=function(){},Vt=function(t){return"