import{s as r,t as i,V as s,a as p}from"./dav-D-0Zsvk_.chunk.mjs";import{N as l,a as c,v as d,i as v,s as h,b as m,r as n}from"./video-B2Zidy_E.chunk.mjs";import{l as t,p as a}from"./index-VDTWCae_.chunk.mjs";import{n as u}from"./icons-D6kGtfXC.chunk.mjs";import"./index-CxUc7fso.chunk.mjs";const g={name:"PhotosAppPublic",components:{NcAppContent:c,NcContent:l},data(){return{svgplaceholder:h,imgplaceholder:v,videoplaceholder:d}},async beforeMount(){"serviceWorker"in navigator?window.addEventListener("load",async()=>{try{const e=r("/apps/photos/service-worker.js",{},{noRewrite:!0}),o=await navigator.serviceWorker.register(e,{scope:r("/apps/photos")});t.debug("SW registered: ",{registration:o})}catch(e){t.error("SW registration failed: ",{error:e})}}):t.debug("Service Worker is not enabled on this browser.")},beforeDestroy(){window.removeEventListener("load",()=>{navigator.serviceWorker.register(r("/apps/photos/service-worker.js",{},{noRewrite:!0}))})}};var w=function(){var e=this,o=e._self._c;return o("NcContent",{attrs:{"app-name":"photos"}},[o("input",{attrs:{id:"isPublic",type:"hidden",name:"isPublic",value:"1"}}),o("NcAppContent",[o("router-view"),o("span",{staticClass:"hidden-visually",attrs:{role:"none"},domProps:{innerHTML:e._s(e.svgplaceholder)}}),o("span",{staticClass:"hidden-visually",attrs:{role:"none"},domProps:{innerHTML:e._s(e.imgplaceholder)}}),o("span",{staticClass:"hidden-visually",attrs:{role:"none"},domProps:{innerHTML:e._s(e.videoplaceholder)}})],1)],1)},y=[],b=u(g,w,y,!1,null,null);const f=b.exports;m.sync(a,n),s.prototype.t=i,s.prototype.n=p,new s({el:"#content",name:"PhotosRoot",router:n,store:a,render:e=>e(f)});
//# sourceMappingURL=photos-public.mjs.map
