1(()=>{"use strict";function t(t,i,e){const n=`#initial-state-${t}-${i}`;if(window._nc_initial_state?.has(n))return window._nc_initial_state.get(n);window._nc_initial_state||(window._nc_initial_state=new Map);const o=document.querySelector(n);if(null===o){if(void 0!==e)return e;throw new Error(`Could not find initial state ${i} of ${t}`)}try{const t=JSON.parse(atob(o.value));return window._nc_initial_state.set(n,t),t}catch(n){if(console.error("[@nextcloud/initial-state] Could not parse initial state",{key:i,app:t,error:n}),void 0!==e)return e;throw new Error(`Could not parse initial state ${i} of ${t}`,{cause:n})}}var i=function(){try{return t("core","capabilities")}catch(t){return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}(),e=new(function(){function t(){this.capabilities=i.richdocuments}return t.prototype.getCapabilities=function(){return this.capabilities},t.prototype.setCapabilities=function(t){this.capabilities=t},t.prototype.updateCapability=function(t,i){this.capabilities[t]=i},t}()),n=function(){return e.getCapabilities()};const o=n().mimetypes;const a=function(){const t=document.getElementById("mimetype");return Boolean(t)&&o.includes(t.value)};const c=function(){const t=document.getElementById("mimetype");return Boolean(t)&&"application/pdf"===t.value};const r=function(){const t=document.getElementById("hideDownload");return Boolean(t)&&"true"===t.value};document.addEventListener("DOMContentLoaded",(()=>{if(!(t("files_sharing","isPublic",null)??null!==document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]'))||!OCA.Viewer)return;const i=n().mimetypesNoDefaultOpen.includes("application/pdf");!r()&&i||!c()?a()&&OCA.Viewer.open({path:"/"}):OCA.Viewer.openWith("richdocuments",{path:"/"})}))})(); 2//# sourceMappingURL=richdocuments-public.js.map?v=9b1ce4ab924862cb5814
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.