1import{d as s,a as e,m as t,P as r,k as i,I as a}from"./Cm2J8wJT.js";import{ah as o,L as n,M as l,V as c,U as h,T as p,Q as d,N as u,an as g,$ as y,R as f,J as m}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const w=s({name:"gallery",setup:()=>({store:e(),config:i()}),components:{Ads:t},data:()=>({helpers:{isMobile:!1,previousUrl:!1,previousPage:!1},viewAds:!1,floorInitialized:!1,statsQueue:[],statsDebounce:null}),computed:{settings(){return this.store.settings},adProvider(){return this.settings&&this.settings.programmatic_settings&&this.settings.programmatic_settings.provider?this.settings.programmatic_settings.provider:"ZPR"},gallerySettings(){return!(!this.settings||!this.settings.gallery_settings)&&this.settings.gallery_settings},galleryAds(){return!(!this.settings||!this.settings.gallery_ads)&&this.settings.gallery_ads},user(){return this.store.user},regAccepted(){return this.user&&0!==this.user.reg_accept},ads(){return this.store.ads},commercials(){return this.store.commercials},galleryCount(){return this.store.galleryCount},referer(){return this.store.referer},staticPages(){return this.store.staticPages},staticPagesInFooter(){return this.store.staticPages.filter((s=>1==s.in_footer))},adIsDisplayed(){return this.store.galleryAdDisplayed},cssProps(){if(!this.store.settings)return{"--theme-primary":"#ff00ff","--theme-secondary":"#0192af","--theme-third":"#004b62","--font-primary":'"Playfair Display", serif',"--font-secondary":'"Lato", sans-serif',"--font-third":'"Frank Ruhl Libre", serif'};const{customLayout:s}=this.store.settings;let e=null;if(s)try{e=s}catch(t){}if(e&&e.fonts&&e.colors){const{fonts:s,colors:t}=e;return{"--theme-primary":t.primary||"#ff00ff","--theme-secondary":t.secondary||"#0192af","--theme-third":t.third||"#004b62","--font-primary":s.primary||'"Playfair Display", serif',"--font-secondary":s.secondary||'"Lato", sans-serif',"--font-third":s.third||'"Frank Ruhl Libre", serif'}}return{"--theme-primary":"#ff00ff","--theme-secondary":"#0192af","--theme-third":"#004b62","--font-primary":'"Playfair Display", serif',"--font-secondary":'"Lato", sans-serif',"--font-third":'"Frank Ruhl Libre", serif'}}},mounted(){const s=this,e=(this._.provides[r]||this.$route).query;e&&e.rvUrl&&(this.helpers.previousUrl=e.rvUrl),e&&e.pg&&(this.helpers.previousPage=parseInt(e.pg)),window.addEventListener("handleStatReport",(e=>{s.reportStats(e.detail)})),window&&window.cookieconsent&&window.cookieconsent.initialise({palette:{popup:{background:"#ffffff",text:"#212529"},button:{background:"#004b62"}},theme:"classic",content:{message:"Informujemy, iż w celu optymalizacji treÅci dostÄpnych w naszym serwisie, dostosowania ich do PaÅstwa indywidualnych potrzeb korzystamy z informacji zapisanych za pomocÄ
plików cookies na urzÄ
dzeniach koÅcowych użytkowników.",dismiss:"Rozumiem",link:"Dowiedz siÄ wiÄcej",href:"/polityka-prywatnosci"}}),s.ads&&(this.store&&this.store.zprInitialized&&this.handleZprState(),this.config.public.portalId,s.commercials,this.config.public.oldStatic,this.config.public.newStatic)},methods:{handleZprState(){},handleClose(){this.helpers.previousUrl&&""!==this.helpers.previousUrl&&-1===this.helpers.previousUrl.indexOf("http")?location.replace(this.helpers.previousUrl):location.replace("/lista-galerii"+(this.helpers.previousPage&&this.helpers.previousPage>1?`?page=${this.helpers.previousPage}`:""))},reportStats(s){const e=this;e.statsQueue.push(s),clearTimeout(e.statsDebounce),this.statsDebounce=setTimeout((()=>{$fetch("/api/statistics",{method:"POST",body:{queue:e.statsQueue},key:this.config.statisticsKey}),e.statsQueue=[]}),1e3)}},watch:{"store.zprInitialized":function(){this.handleZprState()}}},"$xHkkWHj80A"),k={class:"gallery__wrapper"},_={href:"/",class:"gallery__logotype"},v=["src","alt"],b={class:"gallery__header-right"},P={key:0,class:"gallery__header-count"};const z=o(w,[["render",function(s,e,t,r,i,o){const w=a;return m(),n("main",{style:f(s.cssProps),class:"gallery-main"},[l("header",{class:d(["gallery__header",s.adIsDisplayed?"gallery__header--blur":""])},[l("div",k,[l("a",_,[s.settings&&s.settings.logo?(m(),n("img",{key:0,src:s.settings.logo,alt:s.settings.description?s.settings.description:"Portal lokalny","data-not-lazy":""},null,8,v)):c("",!0)]),l("div",b,[s.galleryCount?(m(),n("div",P,[l("strong",null,h(s.galleryCount.current),1),p(" / "+h(s.galleryCount.max),1)])):c("",!0),l("div",{class:"gallery__back",onClick:e[0]||(e[0]=(...e)=>s.handleClose&&s.handleClose(...e))})])])],2),u(s.$slots,"default"),e[1]||(g(-1),(e[1]=y(w)).cacheIndex=1,g(1),e[1])],4)}]]);export{z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.