import"./vue-C2cMydZB.js";import{h as k,i as I,f as S,j as f}from"./app-BEmliBhW.js";import{c as x}from"./@vueuse-Ca5vHdxT.js";import{u as B}from"./vue-router-CKUI0Twr.js";import{a5 as F,r as s,o as h,ad as N,c as a,d as n,K as b,e as c,N as j}from"./@vue-Bf7e1FJA.js";import"./axios-NIGUFBhG.js";import"./pinia-BVayYkVO.js";import"./primevue-D560Sdto.js";import"./@primevue-DPkGvRPC.js";import"./@primeuix-C4hPHhAU.js";import"./laravel-vue-i18n-DoYn1SwG.js";import"./sprintf-js-D7DtBTRn.js";import"./justified-layout-1UKsdMGj.js";import"./@sidsbrmnn-DQhBXYP8.js";import"./qrcode-B3tOMrWf.js";import"./dijkstrajs-C00ieaqj.js";import"./vue-collapsed-BjXSUHBS.js";import"./leaflet-B16DWo85.js";import"./leaflet-rotatedmarker-roe_HPmI.js";import"./leaflet.markercluster-CQ4sI09g.js";import"./@lychee-org-CcYfPfz8.js";import"./axios-cache-interceptor-hz9-Z59L.js";import"./cache-parser-DXYp_BCq.js";import"./fast-defer-9MI9za_P.js";import"./object-code-SBtdq8jY.js";import"./pinia-plugin-persistedstate-B8MS7Mes.js";import"./destr-BPvN1X9m.js";import"./deep-pick-omit-CegYQlcN.js";/* empty css            */const E={class:"h-screen w-screen"},M=["src"],T={class:"w-screen h-screen flex justify-center items-center flex-wrap bg-repeat bg-[url(/img/noise.png)]"},V=["src","srcset"],q={class:"absolute top-0 ltr:left-0 rtl:right-0 p-3"},ie=F({__name:"Frame",props:{albumId:{}},setup(_){const t=_,l=B(),o=s(""),m=s(""),i=s(5),g=k(),v=s(!1);function u(){f.frame(t.albumId??null).then(e=>{o.value=e.data.src,m.value=e.data.srcset})}const{slideshow:w,clearTimeouts:p}=I(1e3,v,i,s(null),u,void 0);function y(){f.frame(t.albumId??null).then(e=>{i.value=e.data.timeout,u(),w()})}h(()=>{g.left_menu_open=!1,document.getElementsByTagName("body")[0].requestFullscreen().then(()=>{}).catch(r=>console.log(r)),y()}),N(()=>{try{document.exitFullscreen()}catch{}p()});function d(){p();try{document.exitFullscreen()}catch{}t.albumId!==void 0&&t.albumId!==""?l.push({name:"album",params:{albumId:t.albumId}}):l.push({name:"gallery"})}return x("Escape",()=>{d()}),h(()=>{document.documentElement.requestFullscreen()}),(e,r)=>(n(),a("div",E,[o.value!==""?(n(),a("img",{key:0,alt:"image background",class:"absolute w-screen h-screen object-cover blur-lg object-center",src:o.value},null,8,M)):b("",!0),c("div",T,[o.value!==""?(n(),a("img",{key:0,alt:"Random Image",class:"h-[95%] w-[95%] object-contain filter drop-shadow-black",src:o.value,srcset:m.value},null,8,V)):b("",!0)]),r[0]||(r[0]=c("div",{id:"shutter",class:"absolute w-screen h-dvh bg-surface-950 transition-opacity duration-1000 ease-in-out top-0 left-0"},null,-1)),c("div",q,[j(S,{onGoBack:d})])]))}});export{ie as default};
