import{Et as e,Lt as t,P as n,St as r,st as i}from"./chunks/design-system-components-Y2tugS6v.mjs";import{$ as a,M as o}from"./chunks/src-C-XpxEWy.mjs";var s={af:{},ar:{"PDF Viewer":`عارض بي دي إف (PDF)`},bs:{},bg:{},cs:{},es:{"PDF Viewer":`Visualizador de PDF`},et:{},de:{"PDF Viewer":`PDF-Vorschau`},el:{"PDF Viewer":`Πρόγραμμα προβολής PDF`},fr:{"PDF Viewer":`Visionneuse PDF`},gl:{},he:{},id:{},it:{"PDF Viewer":`Visualizzatore PDF`},hr:{},nl:{"PDF Viewer":`PDF Viewer`},ja:{"PDF Viewer":`PDFビューアー`},pt:{"PDF Viewer":`Visualizador de PDF`},pl:{"PDF Viewer":`Przeglądarka PDF`},ka:{},ru:{"PDF Viewer":`PDF Viewer`},ro:{},sk:{},ko:{"PDF Viewer":`PDF 뷰어`},si:{},sq:{},sv:{"PDF Viewer":`PDF-visare`},sr:{},ta:{},tr:{},ug:{},uk:{"PDF Viewer":`Переглядач PDF`},zh:{}},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=a({setup(){let{$gettext:e}=n(),t=`pdf-viewer`,r=[{path:`/:driveAliasAndItem(.*)?`,component:o(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};