/*! For license information please see richdocuments-init-viewer.js.LICENSE.txt */ (()=>{var e,o,t={69058:(e,o,t)=>{"use strict";t.d(o,{F:()=>d});var n=(0,t(87485).F)(),i=new(function(){function e(){this.capabilities=n.richdocuments}return e.prototype.getCapabilities=function(){return this.capabilities},e.prototype.setCapabilities=function(e){this.capabilities=e},e.prototype.updateCapability=function(e,o){this.capabilities[e]=o},e}()),d=function(){return i.getCapabilities()}},89761:(e,o,t)=>{t.nc=btoa(OC.requestToken),t.p=OC.linkTo("richdocuments","js/")},87485:(e,o,t)=>{"use strict";t.d(o,{F:()=>i});var n=t(81222);function i(){try{return(0,n.C)("core","capabilities")}catch(e){return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}},81222:(e,o,t)=>{"use strict";function n(e,o,t){const n=`#initial-state-${e}-${o}`;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 i=document.querySelector(n);if(null===i){if(void 0!==t)return t;throw new Error(`Could not find initial state ${o} of ${e}`)}try{const e=JSON.parse(atob(i.value));return window._nc_initial_state.set(n,e),e}catch(n){if(console.error("[@nextcloud/initial-state] Could not parse initial state",{key:o,app:e,error:n}),void 0!==t)return t;throw new Error(`Could not parse initial state ${o} of ${e}`,{cause:n})}}t.d(o,{C:()=>n})}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var d=n[e]={id:e,exports:{}};return t[e].call(d.exports,d,d.exports,i),d.exports}i.m=t,i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((o,t)=>(i.f[t](e,o),o)),[])),i.u=e=>"richdocuments-"+e+".js?v="+{"vendors-node_modules_string_decoder_lib_string_decoder_js-node_modules_nextcloud_dialogs_node-09c59e":"b3bc6dec6675ee5e1773","vendors-node_modules_path-browserify_index_js-node_modules_nextcloud_vue_dist_Components_NcBu-2d8926":"db0f83de3a5fb239f43f","vendors-node_modules_vue-material-design-icons_AlertOctagonOutline_vue-node_modules_vue-mater-368208":"c40bd10302485d594e6c",src_view_Viewer_vue:"0b20368b10349e86b6fb","node_modules_nextcloud_dialogs_dist_chunks_index-BMbtc3xh_mjs":"e8b11934db7dbe371360","vendors-node_modules_nextcloud_dialogs_node_modules_nextcloud_files_dist_index_mjs":"637a7af4549d8755c18e","node_modules_nextcloud_dialogs_dist_chunks_PublicAuthPrompt-CfOE69qY_mjs":"492724ff378f031cc4d0","vendors-node_modules_rehype-highlight_index_js":"63b2c5cbe15d19a6dc7c","vendors-node_modules_nextcloud_vue_dist_Components_NcDateTimePicker_mjs":"8ec8079f79045434819d","vendors-node_modules_nextcloud_vue_dist_chunks_NcColorPicker-DVkGUHxL_mjs":"8de2d79ce49a9ae39d0f","vendors-node_modules_nextcloud_vue_dist_chunks_NcActionInput-pjhToEAw_mjs-node_modules_nextcl-8ac611":"543a32b006b4fd6b1d1a","vendors-node_modules_nextcloud_vue_dist_index_mjs":"83cf71a9d1611606fe29",GuestNamePicker:"7aecd118b4a3b62bed96","vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-JKNLPCbR_mjs":"f538de2b4fc360d8f92a",node_modules_nextcloud_vue_dist_Components_NcColorPicker_mjs:"3766b43e9144a2d3bb5c","data_image_svg_xml_3c_21--_20-_20SPDX-FileCopyrightText_202020_20Google_20Inc_20-_20SPDX-Lice-cc29b1":"0a5fab5bf0d01895599c",node_modules_nextcloud_vue_dist_Components_NcSelect_mjs:"fe3527f21a48bb9e01f7"}[e],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),e={},o="richdocuments:",i.l=(t,n,d,r)=>{if(e[t])e[t].push(n);else{var s,a;if(void 0!==d)for(var c=document.getElementsByTagName("script"),_=0;_{s.onerror=s.onload=null,clearTimeout(m);var i=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),o)return o(n)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j="init-viewer",i.p="/apps/richdocuments/js/",(()=>{i.b=document.baseURI||self.location.href;var e={"init-viewer":0};i.f.j=(o,t)=>{var n=i.o(e,o)?e[o]:void 0;if(0!==n)if(n)t.push(n[2]);else{var d=new Promise(((t,i)=>n=e[o]=[t,i]));t.push(n[2]=d);var r=i.p+i.u(o),s=new Error;i.l(r,(t=>{if(i.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var d=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;s.message="Loading chunk "+o+" failed.\n("+d+": "+r+")",s.name="ChunkLoadError",s.type=d,s.request=r,n[1](s)}}),"chunk-"+o,o)}};var o=(o,t)=>{var n,d,[r,s,a]=t,c=0;if(r.some((o=>0!==e[o]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(a)a(i)}for(o&&o(t);c{"use strict";i(89761);const e=(0,i(69058).F)().mimetypes;var o;(function(e){const{id:o,mimes:t,mimesAliases:n,component:i}=e;if(!o||""===o.trim()||"string"!=typeof o)throw new Error("The handler does not have a valid id");if(!(t&&Array.isArray(t)||n))throw new Error("Handler needs a valid mime array or mimesAliases");if(!i||"object"!=typeof i&&"function"!=typeof i)throw new Error("The handler does not have a valid component")})(o={id:"richdocuments",group:null,mimes:e,component:()=>Promise.all([i.e("vendors-node_modules_string_decoder_lib_string_decoder_js-node_modules_nextcloud_dialogs_node-09c59e"),i.e("vendors-node_modules_path-browserify_index_js-node_modules_nextcloud_vue_dist_Components_NcBu-2d8926"),i.e("vendors-node_modules_vue-material-design-icons_AlertOctagonOutline_vue-node_modules_vue-mater-368208"),i.e("src_view_Viewer_vue")]).then(i.bind(i,11015)),theme:"default",canCompare:!0}),window._oca_viewer_handlers??(window._oca_viewer_handlers=new Map),window._oca_viewer_handlers.has(o.id)?console.warn(`Handler with id ${o.id} is already registered.`):window._oca_viewer_handlers.set(o.id,o)})()})(); //# sourceMappingURL=richdocuments-init-viewer.js.map?v=93ff69b9bd2419013d65