1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BXJDBrdV.js","./Cm2J8wJT.js","./Cw52Jb_b.js","./Dropzone.BkW6QGI3.css","./oPzPbeIq.js","./Dv5-W7ly.js","./entry.xg9melRb.css","./Pagination.Do8YMEFq.css"])))=>i.map(i=>d[i]); 2import{a as e,k as l,m as t,_ as a}from"./Cm2J8wJT.js";import{_ as s}from"./CIXxJGYT.js";import{u as r}from"./vNA1_wLl.js";import{ah as i,ak as n,J as c,L as o,M as g,$ as d,V as y,U as u,S as m,a4 as p,Q as f,O as _,aj as h}from"./Cw52Jb_b.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const v=h((()=>a((()=>import("./BXJDBrdV.js")),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then((e=>e.default||e)))),k={class:"container-custom"},x={class:"row"},b={key:0,class:"col-custom-12 col-custom-mid-12 col-custom-mobile-12"},w={id:"article__gallery"},P={class:"d-flex article__gallery-wrapper justify-content-center"},j={class:"left-sidenav d-none d-xl-block"},U={key:0,class:"sticky-top"},C={class:"middle-article"},R={class:"article__gallery-title mt-5 mt-md-0 mb-4 px-3"},I={key:0},F={key:0},G=["href"],L={class:"article__gallery-close d-flex align-items-center justify-content-center"},M={class:"article__gallery-images px-3"},O={key:0,class:"mb-5 d-flex justify-content-center"},S={key:0},E={key:1},q={class:"text-center"},B=["src","alt"],D=["onClick"],V={class:"d-flex align-items-center justify-content-between"},A={key:0,class:"article__gallery-text text-left"},J={key:1,class:"article__gallery-text w-25 text-end d-none d-lg-block"},Q={key:2,class:"article__gallery-text w-50 text-end d-block d-lg-none"},T={class:"text-center mt-5"},Y={key:0,class:"text-center mt-5 mt-md-0 mb-4 article__gallery-text px-3"},z={class:"right-sidenav d-none d-xl-block"},H={class:"right-sidenav__column"},K={class:"right-sidenav__column"},N={class:"right-sidenav__column"};const W=i({props:["article","isMobile","gallery"],setup:()=>({store:e(),config:l()}),data:()=>({forcedFullscreen:!1,fullscreenIndex:!1,helpers:{currentPage:1,perPage:20,totalRows:200,modal:!0},urlPath:""}),mounted(){window.addEventListener("keyup",(function(e){37===e.keyCode&&$(".prevGalleryButton").find("button").click(),39===e.keyCode&&$(".nextGalleryButton").find("button").click()}));const e=r().pathname;this.urlPath=e},methods:{getCutUrlPath(){let e=this.urlPath;const l=e.indexOf("/galeria");return-1!==l?e.substring(0,l):e},getUrlPath(){return this.urlPath},toggleFullScreen(e){const l=this;if(l.$fullscreen.support)l.$fullscreen.toggle(l.$refs[`imageContainer_${l.image.id}`],{teleport:this.teleport,pageonly:this.pageOnly,callback:e=>{this.fullscreen=e}});else{const l=!this.forcedFullscreen;this.forcedFullscreen=l,this.fullscreenIndex=e}},fullScreenChange(e){this.gallery.fullscreen=e},paginationChange(e,l){e.preventDefault();const{articleUrl:t}=this.gallery,a=`${t}/galeria?page=${l}`;location.replace(a)},addGalleryImages(){this.gallery.page+=1}},computed:{settings(){return this.store.settings},ads(){return this.store.ads}}},[["render",function(e,l,a,r,i,h){const $=s,W=n("font-awesome-icon"),X=t,Z=v;return c(),o("section",{class:f("gallery my-3 my-lg-4 "+(e.forcedFullscreen?"gallery--forced":""))},[g("div",k,[g("div",x,[a.article?(c(),o("article",b,[l[0]||(l[0]=g("div",{class:"text-center my-5 w-100"},[g("div",{class:"spinner-border",role:"status"},[g("span",{class:"sr-only"},"Loading...")])],-1)),g("div",w,[g("template",null,[g("div",P,[g("aside",j,[h.settings&&h.settings.programmatic&&h.ads&&"default"===a.gallery.style?(c(),o("div",U,[d($)])):y("",!0)]),g("article",C,[g("p",R,u(a.article.title),1),"default"===a.gallery.style?(c(),o(m,{key:0},[h.settings&&h.settings.programmatic&&h.ads?(c(),o("div",I,[d($)])):y("",!0)],64)):(c(),o(m,{key:1},[h.settings&&h.settings.programmatic&&h.ads?(c(),o("div",F,[d($)])):y("",!0)],64)),g("a",{href:`${a.gallery.articleUrl.length>2?a.gallery.articleUrl:h.getCutUrlPath()}`},[g("span",L,[d(W,{icon:["fas","times"]})])],8,G),g("div",M,[(c(!0),o(m,null,p(a.gallery.items,((l,t)=>(c(),o("div",{key:t,class:"mb-5"},[t%(a.article.gallery_ads&&a.article.gallery_ads.frequency?a.article.gallery_ads.frequency:4)==0&&t>0?(c(),o("div",O,[h.settings&&h.settings.programmatic&&h.ads?(c(),o("div",S,[d($)])):(c(),o("div",E,[d(X,{content:{placement:200,height:0,header:!0}})]))])):y("",!0),g("div",q,[g("div",{ref_for:!0,ref:`imageContainer_${t}`,class:f("article__gallery-img d-flex align-items-center justify-content-center "+(e.forcedFullscreen&&e.fullscreenIndex==t?"article__gallery-img--forced":""))},[g("img",{class:"w-auto mb-2",src:e.getImageUrl(l.url),alt:l.description},null,8,B),g("button",{class:"article__gallery-img-button",onClick:e=>h.toggleFullScreen(t)},[d(W,{icon:["fas","expand"]})],8,D)],2),g("div",V,[l?(c(),o("p",A,[g("span",null,u(l.description?l.description:"")+" | "+u(l.author?l.author:""),1)])):y("",!0),a.gallery&&a.gallery.page&&a.gallery.totalRows?(c(),o("p",J,u((a.gallery.page-1)*a.gallery.perPage+t+1)+" / "+u(a.gallery.totalRows),1)):y("",!0),a.gallery&&a.gallery.page&&a.gallery.totalRows?(c(),o("p",Q,u((a.gallery.page-1)*a.gallery.perPage+t+1)+" / "+u(a.gallery.totalRows),1)):y("",!0)])])])))),128))]),g("div",{class:f(["text-center px-3",{alternateGallery__pagination:"default"!==a.gallery.style}])},[d(Z,{perPage:a.gallery.perPage,currentPage:parseInt(a.gallery.page),maxRows:parseInt(a.gallery.totalRows),baseUrl:`${a.gallery.articleUrl.length>2?a.gallery.articleUrl+"/galeria":h.getUrlPath()}`},null,8,["perPage","currentPage","maxRows","baseUrl"])],2),"default"!==a.gallery.style?(c(),o(m,{key:2}
2,[g("div",T,[d($)]),a.article&&a.article&&a.article.lead?(c(),o("div",Y,u(a.article.lead),1)):y("",!0)],64)):y("",!0)]),g("aside",z,["default"===a.gallery.style&&!a.isMobile&&h.settings&&h.settings.programmatic&&h.ads?(c(),o(m,{key:0},[g("div",H,[g("div",null,[d($)])]),g("div",K,[g("div",null,[d($)])]),g("div",N,[g("div",null,[d($)])])],64)):!a.isMobile&&h.settings&&h.settings.programmatic&&h.ads?(c(),_($,{key:1})):y("",!0)])])])])])):y("",!0)])])],2)}]]);export{W 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.