import{Et as e,Lt as t,P as n,St as r,st as i}from"./chunks/design-system-components-BwTjgxr6.mjs";import{M as a,Q as o}from"./chunks/src-D0Eb6RrM.mjs";var s={af:{},ar:{"PDF Viewer":`عارض بي دي إف (PDF)`},bs:{},bg:{},cs:{},el:{"PDF Viewer":`Πρόγραμμα προβολής PDF`},es:{"PDF Viewer":`Visualizador de PDF`},et:{},he:{},hr:{},id:{},it:{"PDF Viewer":`Visualizzatore PDF`},ja:{"PDF Viewer":`PDFビューアー`},nl:{"PDF Viewer":`PDF Viewer`},pl:{"PDF Viewer":`Przeglądarka PDF`},pt:{"PDF Viewer":`Visualizador de PDF`},ka:{},ko:{"PDF Viewer":`PDF 뷰어`},ro:{},ru:{"PDF Viewer":`PDF Viewer`},si:{},sk:{},sq:{},sv:{"PDF Viewer":`PDF-visare`},sr:{},ta:{},tr:{},ug:{},uk:{"PDF Viewer":`Переглядач PDF`},zh:{},fr:{"PDF Viewer":`Visionneuse PDF`},de:{"PDF Viewer":`PDF-Vorschau`},gl:{}},c=e({props:{url:{type:String,required:!0}},setup(){return{objectType:navigator.userAgent?.includes(`Safari`)&&!navigator.userAgent?.includes(`Chrome`)?void 0:`application/pdf`}}}),l=[`data`,`type`];function u(e,n,i,a,o,s){return t(),r(`object`,{class:`pdf-viewer size-full overflow-hidden`,data:e.url,type:e.objectType},null,8,l)}var d=i(c,[[`render`,u]]),f=o({setup(){let{$gettext:e}=n(),t=`pdf-viewer`,r=[{path:`/:driveAliasAndItem(.*)?`,component:a(d,{applicationId:t,urlForResourceOptions:{disposition:`inline`}}),name:`pdf-viewer`,meta:{authContext:`hybrid`,title:e(`PDF Viewer`),patchCleanPath:!0}}];return{appInfo:{name:e(`PDF Viewer`),id:t,icon:`resource-type-pdf`,iconFillType:`fill`,iconColor:`var(--oc-color-icon-pdf)`,extensions:[{extension:`pdf`,routeName:`pdf-viewer`}]},routes:r,translations:s}}});export{f as default};