1"use strict";(self.webpackChunkportal_minfin=self.webpackChunkportal_minfin||[]).push([[709],{3709:(Jt,K,w)=>{w.r(K),w.d(K,{MultimediaModule:()=>R});var O=w(6895),n=w(4650),z=function(){return z=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},z.apply(this,arguments)};var v_afterAppendSlide="lgAfterAppendSlide",v_init="lgInit",v_hasVideo="lgHasVideo",v_containerResize="lgContainerResize",v_updateSlides="lgUpdateSlides",v_afterAppendSubHtml="lgAfterAppendSubHtml",v_beforeOpen="lgBeforeOpen",v_afterOpen="lgAfterOpen",v_slideItemLoad="lgSlideItemLoad",v_beforeSlide="lgBeforeSlide",v_afterSlide="lgAfterSlide",v_posterClick="lgPosterClick",v_dragStart="lgDragStart",v_dragMove="lgDragMove",v_dragEnd="lgDragEnd",v_beforeNextSlide="lgBeforeNextSlide",v_beforePrevSlide="lgBeforePrevSlide",v_beforeClose="lgBeforeClose",v_afterClose="lgAfterClose",at={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};var tt=function(){function o(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return o.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},o.prototype._getSelector=function(t,e){return void 0===e&&(e=document),"string"!=typeof t?t:(e=e||document,"#"===t.substring(0,1)?e.querySelector(t):e.querySelectorAll(t))},o.prototype._each=function(t){return this.selector?(void 0!==this.selector.length?[].forEach.call(this.selector,t):t(this.selector,0),this):this},o.prototype._setCssVendorPrefix=function(t,e,i){var r=e.replace(/-([a-z])/gi,function(s,a){return a.toUpperCase()});-1!==this.cssVenderPrefixes.indexOf(r)?(t.style[r.charAt(0).toLowerCase()+r.slice(1)]=i,t.style["webkit"+r]=i,t.style["moz"+r]=i,t.style["ms"+r]=i,t.style["o"+r]=i):t.style[r]=i},o.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},o.prototype.isEventMatched=function(t,e){var i=e.split(".");return t.split(".").filter(function(r){return r}).every(function(r){return-1!==i.indexOf(r)})},o.prototype.attr=function(t,e){return void 0===e?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(i){i.setAttribute(t,e)}),this)},o.prototype.find=function(t){return p(this._getSelector(t,this.selector))},o.prototype.first=function(){return this.selector&&void 0!==this.selector.length?p(this.selector[0]):p(this.selector)},o.prototype.eq=function(t){return p(this.selector[t])},o.prototype.parent=function(){return p(this.selector.parentElement)},o.prototype.get=function(){return this._getFirstEl()},o.prototype.removeAttr=function(t){var e=t.split(" ");return this._each(function(i){e.forEach(function(r){return i.removeAttribute(r)})}),this},o.prototype.wrap=function(t){if(!this.firstElement)return this;var e=document.createElement("div");return e.className=t,this.firstElement.parentNode.insertBefore(e,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),e.appendChild(this.firstElement),this},o.prototype.addClass=function(t){return void 0===t&&(t=""),this._each(function(e){t.split(" ").forEach(function(i){i&&e.classList.add(i)})}),this},o.prototype.removeClass=function(t){return this._each(function(e){t.split(" ").forEach(function(i){i&&e.classList.remove(i)})}),this},o.prototype.hasClass=function(t){return!!this.firstElement&&this.firstElement.classList.contains(t)},o.prototype.hasAttribute=function(t){return!!this.firstElement&&this.firstElement.hasAttribute(t)},o.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},o.prototype.css=function(t,e){var i=this;return this._each(function(r){i._setCssVendorPrefix(r,t,e)}),this},o.prototype.on=function(t,e){var i=this;return this.selector?(t.split(" ").forEach(function(r){Array.isArray(o.eventListeners[r])||(o.eventListeners[r]=[]),o.eventListeners[r].push(e),i.selector.addEventListener(r.split(".")[0],e)}),this):this},o.prototype.once=function(t,e){var i=this;return this.on(t,function(){i.off(t),e(t)}),this},o.prototype.off=function(t){var e=this;
1return this.selector?(Object.keys(o.eventListeners).forEach(function(i){e.isEventMatched(t,i)&&(o.eventListeners[i].forEach(function(r){e.selector.removeEventListener(i.split(".")[0],r)}),o.eventListeners[i]=[])}),this):this},o.prototype.trigger=function(t,e){if(!this.firstElement)return this;var i=new CustomEvent(t.split(".")[0],{detail:e||null});return this.firstElement.dispatchEvent(i),this},o.prototype.load=function(t){var e=this;return fetch(t).then(function(i){return i.text()}).then(function(i){e.selector.innerHTML=i}),this},o.prototype.html=function(t){return void 0===t?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(e){e.innerHTML=t}),this)},o.prototype.append=function(t){return this._each(function(e){"string"==typeof t?e.insertAdjacentHTML("beforeend",t):e.appendChild(t)}),this},o.prototype.prepend=function(t){return this._each(function(e){e.insertAdjacentHTML("afterbegin",t)}),this},o.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},o.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},o.prototype.scrollTop=function(t){return void 0!==t?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},o.prototype.scrollLeft=function(t){return void 0!==t?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},o.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),e=p("body").style().marginLeft;return{left:t.left-parseFloat(e)+this.scrollLeft(),top:t.top+this.scrollTop()}},o.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},o.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},o.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},o.eventListeners={},o}();function p(o){return function lt(){(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function o(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}})(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)}(),new tt(o)}var gt=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function dt(o){return"href"===o?"src":o=(o=(o=o.replace("data-","")).charAt(0).toLowerCase()+o.slice(1)).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}var x_getSize=function(o,t,e,i){void 0===e&&(e=0);var s=p(o).attr("data-lg-size")||i;if(s){var a=s.split(",");if(a[1])for(var l=window.innerWidth,d=0;d<a.length;d++){var h=a[d];if(parseInt(h.split("-")[2],10)>l){s=h;break}d===a.length-1&&(s=h)}var c=s.split("-"),g=parseInt(c[0],10),u=parseInt(c[1],10),m=t.width(),C=t.height()-e,_=Math.min(m,g),y=Math.min(C,u),I=Math.min(_/g,y/u);return{width:g*I,height:u*I}}},x_getTransform=function(o,t,e,i,r){if(r){var s=p(o).find("img").first();if(s.get()){var a=t.get().getBoundingClientRect(),l=a.width,d=t.height()-(e+i),h=s.width(),f=s.height(),c=s.style(),g=(l-h)/2-s.offset().left+(parseFloat(c.paddingLeft)||0)+(parseFloat(c.borderLeft)||0)+p(window).scrollLeft()+a.left,u=(d-f)/2-s.offset().top+(parseFloat(c.paddingTop)||0)+(parseFloat(c.borderTop)||0)+p(window).scrollTop()+e;return"translate3d("+(g*=-1)+"px, "+(u*=-1)+"px, 0) scale3d("+h/r.width+", "+f/r.height+", 1)"}}},x_getIframeMarkup=function(o,t,e,i,r,s){return'<div class="lg-video-cont lg-has-iframe" style="width:'+o+"; max-width:"+e+"; height: "+t+"; max-height:"+i+'">\n <iframe class="lg-object" frameborder="0" '+(s?'title="'+s+'"':"")+' src="'+r+'" allowfullscreen="true"></iframe>\n </div>'},x_getImgMarkup=function(o,t,e,i,r,s){var d="<img "+e+" "+(i?'srcset="'+i+'"':"")+" "+(r?'sizes="'+r+'"':"")+' class="lg-object lg-image" data-index="'+o+'" src="'+t+'" />',h="";s&&(h=("string"==typeof s?JSON.parse(s):s).map(function(c){var g="";
1return Object.keys(c).forEach(function(u){g+=" "+u+'="'+c[u]+'"'}),"<source "+g+"></source>"}));return""+h+d},x_getResponsiveSrc=function(o){for(var t=[],e=[],i="",r=0;r<o.length;r++){var s=o[r].split(" ");""===s[0]&&s.splice(0,1),e.push(s[0]),t.push(s[1])}for(var a=window.innerWidth,l=0;l<t.length;l++)if(parseInt(t[l],10)>a){i=e[l];break}return i},x_isImageLoaded=function(o){return!(!o||!o.complete||0===o.naturalWidth)},x_getVideoPosterMarkup=function(o,t,e,i,r){return'<div class="lg-video-cont '+(r&&r.youtube?"lg-has-youtube":r&&r.vimeo?"lg-has-vimeo":"lg-has-html5")+'" style="'+e+'">\n <div class="lg-video-play-button">\n <svg\n viewBox="0 0 20 20"\n preserveAspectRatio="xMidYMid"\n focusable="false"\n aria-labelledby="'+i+'"\n role="img"\n class="lg-video-play-icon"\n >\n <title>'+i+'</title>\n <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n </svg>\n <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle></svg>\n <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle>\n </svg>\n </div>\n '+(t||"")+'\n <img class="lg-object lg-video-poster" src="'+o+'" />\n </div>'},x_getFocusableElements=function(o){var t=o.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');return[].filter.call(t,function(i){var r=window.getComputedStyle(i);return"none"!==r.display&&"hidden"!==r.visibility})},x_getDynamicOptions=function(o,t,e,i){var r=[],s=function st(){for(var o=0,t=0,e=arguments.length;t<e;t++)o+=arguments[t].length;var i=Array(o),r=0;for(t=0;t<e;t++)for(var s=arguments[t],a=0,l=s.length;a<l;a++,r++)i[r]=s[a];return i}(gt,t);return[].forEach.call(o,function(a){for(var l={},d=0;d<a.attributes.length;d++){var h=a.attributes[d];if(h.specified){var f=dt(h.name),c="";s.indexOf(f)>-1&&(c=f),c&&(l[c]=h.value)}}var g=p(a),u=g.find("img").first().attr("alt"),m=g.attr("title"),C=i?g.attr(i):g.find("img").first().attr("src");l.thumb=C,e&&!l.subHtml&&(l.subHtml=m||u||""),l.alt=u||m||"",r.push(l)}),r},x_isMobile=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},x_isVideo=function(o,t,e){if(!o)return t?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var i=o.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),r=o.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),s=o.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return i?{youtube:i}:r?{vimeo:r}:s?{wistia:s}:void 0},et=0,ct=function(){function o(t,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(et++,this.lgId=et,this.el=t,this.LGel=p(t),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return o.prototype.generateSettings=function(t){if(this.settings=z(z({},at),t),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():x_isMobile()){var e=z(z
vendor: 6,311 bytes, line 1
1({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=z(z({},this.settings),e)}},o.prototype.normalizeSettings=function(){this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container||(this.settings.container=document.body),this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},o.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(v_init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},o.prototype.openGalleryOnItemClick=function(){for(var t=this,e=function(s){var a=i.items[s],l=p(a),d=tt.generateUUID();l.attr("data-lg-id",d).on("click.lgcustom-item-"+d,function(h){h.preventDefault();var f=t.settings.index||s;t.openGallery(f,a)})},i=this,r=0;r<this.items.length;r++)e(r)},o.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(e){t.plugins.push(new e(t,p))})},o.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},o.prototype.getSlideItem=function(t){return p(this.getSlideItemId(t))},o.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},o.prototype.getIdName=function(t){return t+"-"+this.lgId},o.prototype.getElementById=function(t){return p("#"+this.getIdName(t))},o.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},o.prototype.buildStructure=function(){var t=this;if(!(this.$container&&this.$container.get())){var i="",r="";this.settings.controls&&(i='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(r='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var s="";this.settings.allowMediaOverlap&&(s+="lg-media-overlap ");var a=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",l=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",d="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),h=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",f=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",c='\n <div class="'+d+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+a+" "+l+' role="dialog"\n >\n <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+s+' ">\n\n <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n </div>\n '+i+'\n </div>\n <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n '+f+"\n "+h+"\n </div>\n "+(".lg-outer"===this.settings.appendSubHtmlTo?r:"")+'\n <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n '+(".lg-sub-html"===this.settings.appendSubHtmlTo?r:"")+"\n </div>\n </div>\n </div>\n ";p(this.settings.container).append(c),document.body!==this.settings.container&&p(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var g=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(g+="lg-grab "),this.outer.addClass(g),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),p(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},o.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var i=this.mediaContainerPosition,r=i.top,s=i.bottom;if(this.currentImageSize=x_getSize(this.items[this.index],this.outer,r+s,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var a=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",a)}this.LGel.trigger(v_containerResize)}},o.prototype.resizeVideoSlide=function(t,e){var i=this.getVideoContStyle(e);
1this.getSlideItem(t).find(".lg-video-cont").attr("style",i)},o.prototype.updateSlides=function(t,e){if(this.index>t.length-1&&(this.index=t.length-1),1===t.length&&(this.index=0),t.length){var i=this.galleryItems[e].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var r=0;this.galleryItems.some(function(s,a){return s.src===i&&(r=a,!0)}),this.currentItemsInDom=this.organizeSlideItems(r,-1),this.loadContent(r,!0),this.getSlideItem(r).addClass("lg-current"),this.index=r,this.updateCurrentCounter(r),this.LGel.trigger(v_updateSlides)}else this.closeGallery()},o.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var t=p(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return x_getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},o.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},o.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(p("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),e=window.innerWidth-t.width;p(document.body).css("padding-right",e+this.bodyPaddingRight+"px"),p(document.body).addClass("lg-overlay-open")}},o.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(p(document.body).css("padding-right",this.bodyPaddingRight+"px"),p(document.body).removeClass("lg-overlay-open"))},o.prototype.openGallery=function(t,e){var i=this;if(void 0===t&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var r=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=r;var s="";r.forEach(function(g){s=s+'<div id="'+g+'" class="lg-item"></div>'}),this.$inner.append(s),this.addHtml(t);var a="";this.mediaContainerPosition=this.getMediaContainerPosition();var l=this.mediaContainerPosition,d=l.top,h=l.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(d,h);var f=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&e&&(this.currentImageSize=x_getSize(e,this.outer,d+h,f&&this.settings.videoMaxSize),a=x_getTransform(e,this.outer,d,h,this.currentImageSize)),(!this.zoomFromOrigin||!a)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var c=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){i.outer.addClass("lg-components-open")},c),this.index=t,this.LGel.trigger(v_beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=p(window).scrollTop(),setTimeout(function(){if(i.zoomFromOrigin&&a){var g=i.getSlideItem(t);g.css("transform",a),setTimeout(function(){g.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",i.settings.startAnimationDuration+"ms"),i.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){g.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){i.$backdrop.addClass("in"),i.$container.addClass("lg-show-in")},10),setTimeout(function(){i.settings.trapFocus&&document.body===i.settings.container&&i.trapFocus()},i.settings.backdropDuration+50),(!i.zoomFromOrigin||!a)&&setTimeout(function(){i.outer.addClass("lg-visible")},i.settings.backdropDuration),i.slide(t,!1,!1,!1),i.LGel.trigger(v_afterOpen)}),document.body===this.settings.container&&p("html").addClass("lg-on")}},o.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,e=this.outer.find(".lg-components .lg-sub-html").get(),i=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,r=this.outer.find(".lg-thumb-outer").get();return{top:t,bottom:(r?r.clientHeight:0)+i}},o.prototype.setMediaContainerPosition=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.$content.css("top",t+"px").css("bottom",e+"px")},o.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>
10&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},o.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},o.prototype.counter=function(){if(this.settings.counter){var t='<div class="lg-counter" role="status" aria-live="polite">\n <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},o.prototype.addHtml=function(t){var e,i;if(this.galleryItems[t].subHtmlUrl?i=this.galleryItems[t].subHtmlUrl:e=this.galleryItems[t].subHtml,!i)if(e){var r=e.substring(0,1);("."===r||"#"===r)&&(e=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?p(this.items).eq(t).find(e).first().html():p(e).first().html())}else e="";if(".lg-item"!==this.settings.appendSubHtmlTo)i?this.outer.find(".lg-sub-html").load(i):this.outer.find(".lg-sub-html").html(e);else{var s=p(this.getSlideItemId(t));i?s.load(i):s.append('<div class="lg-sub-html">'+e+"</div>")}typeof e<"u"&&null!==e&&(""===e?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(v_afterAppendSubHtml,{index:t})},o.prototype.preload=function(t){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-t);e++)this.loadContent(t+e,!1);for(var i=1;i<=this.settings.preload&&!(t-i<0);i++)this.loadContent(t-i,!1)},o.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+"px;\n margin-left: -"+t.width/2+"px;\n margin-top: -"+t.height/2+"px;\n height:"+t.height+"px":""},o.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+"px;\n height:"+t.height+"px":""},o.prototype.getDummyImageContent=function(t,e,i){var r;if(this.settings.dynamic||(r=p(this.items).eq(e)),r){var s=void 0;if(!(s=this.settings.exThumbImage?r.attr(this.settings.exThumbImage):r.find("img").first().attr("src")))return"";var l="<img "+i+' style="'+this.getDummyImgStyles(this.currentImageSize)+'" class="lg-dummy-img" src="'+s+'" />';return t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),l}return""},o.prototype.setImgMarkup=function(t,e,i){var r=this.galleryItems[i],s=r.alt,a=r.srcset,l=r.sizes,d=r.sources,f=s?'alt="'+s+'"':"",c='<picture class="lg-img-wrap"> '+(this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(e,i,f):x_getImgMarkup(i,t,f,a,l,d))+"</picture>";e.prepend(c)},o.prototype.onSlideObjectLoad=function(t,e,i,r){var s=t.find(".lg-object").first();x_isImageLoaded(s.get())||e?i():(s.on("load.lg error.lg",function(){i&&i()}),s.on("error.lg",function(){r&&r()}))},o.prototype.onLgObjectLoad=function(t,e,i,r,s,a){var l=this;this.onSlideObjectLoad(t,a,function(){l.triggerSlideItemLoad(t,e,i,r,s)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+l.settings.strings.mediaLoadingFailed+"</span>")})},o.prototype.triggerSlideItemLoad=function(t,e,i,r,s){var a=this,l=this.galleryItems[e],d=s&&"video"===this.getSlideType(l)&&!l.poster?r:0;setTimeout(function(){t.addClass("lg-complete lg-complete_"),a.LGel.trigger(v_slideItemLoad,{index:e,delay:i||0,isFirstSlide:s})},d)},o.prototype.isFirstSlideWithZoomAnimation=function(){return!(this.lGalleryOn||!this.zoomFromOrigin||!this.currentImageSize)},o.prototype.addSlideVideoInfo=function(t){var e=this;t.forEach(function(i,r){i.__slideVideoInfo=x_isVideo(i.src,!!i.video,r),i.__slideVideoInfo&&e.settings.loadYouTubePoster&&!i.poster&&i.__slideVideoInfo.youtube&&(i.poster="//img.youtube.com/vi/"+i.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},o.prototype.loadContent=function(t,e){var i=this,r=this.galleryItems[t],s=p(this.getSlideItemId(t)),a=r.poster,l=r.srcset,d=r.sizes,h=r.sources,f=r.src,c=r.video,g=c&&"string"==typeof c?JSON.parse(c):c;if(r.responsive){var u=r.responsive.split(",");f=x_getResponsiveSrc(u)||f}var m=r.__slideVideoInfo,C="",_=!!r.iframe,y=!this.lGalleryOn,I=0;if(y&&(I=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!s.hasClass("lg-loaded")){if(m){var nt=this.mediaContainerPosition,Nt=nt.top,Ut=nt.bottom,Yt=x_getSize(this.items[t],this.outer,Nt+Ut,m&&this.settings.videoMaxSize);C=this.getVideoContStyle(Yt)}if(_){var U=x_getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,f,r.iframeTitle);s.prepend(U)}else if(a){var ot="";y&&this.zoomFromOrigin&&this.currentImageSize&&(ot=this.getDummyImageContent(s,t,""));U=x_getVideoPosterMarkup(a,ot||"",C,this.settings.strings.playVideo,m);s.prepend(U)}else if(m){U='<div class="lg-video-cont " style="'+C+'"></div>';s.prepend(U)}
1else if(this.setImgMarkup(f,s,t),l||h){var Xt=s.find(".lg-object");this.initPictureFill(Xt)}(a||m)&&this.LGel.trigger(v_hasVideo,{index:t,src:f,html5Video:g,hasPoster:!!a}),this.LGel.trigger(v_afterAppendSlide,{index:t}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(t)}var Y=0;I&&!p(document.body).hasClass("lg-from-hash")&&(Y=I),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){s.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),s.hasClass("lg-loaded")||setTimeout(function(){if("image"===i.getSlideType(r)){var rt=r.alt,qt=rt?'alt="'+rt+'"':"";if(s.find(".lg-img-wrap").append(x_getImgMarkup(t,f,qt,l,d,r.sources)),l||h){var jt=s.find(".lg-object");i.initPictureFill(jt)}}("image"===i.getSlideType(r)||"video"===i.getSlideType(r)&&a)&&(i.onLgObjectLoad(s,t,I,Y,!0,!1),i.onSlideObjectLoad(s,!(!m||!m.html5||a),function(){i.loadContentOnFirstSlideLoad(t,s,Y)},function(){i.loadContentOnFirstSlideLoad(t,s,Y)}))},this.settings.startAnimationDuration+100)),s.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||"video"===this.getSlideType(r)&&!a)&&this.onLgObjectLoad(s,t,I,Y,y,!(!m||!m.html5||a)),(!this.zoomFromOrigin||!this.currentImageSize)&&s.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){s.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,!0===e&&(s.hasClass("lg-complete_")?this.preload(t):s.find(".lg-object").first().on("load.lg error.lg",function(){i.preload(t)}))},o.prototype.loadContentOnFirstSlideLoad=function(t,e,i){var r=this;setTimeout(function(){e.find(".lg-dummy-img").remove(),e.removeClass("lg-first-slide"),r.outer.removeClass("lg-first-slide-loading"),r.isDummyImageRemoved=!0,r.preload(t)},i+300)},o.prototype.getItemsToBeInsertedToDom=function(t,e,i){var r=this;void 0===i&&(i=0);var s=[],a=Math.max(i,3);a=Math.min(a,this.galleryItems.length);var l="lg-item-"+this.lgId+"-"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(f,c){s.push("lg-item-"+r.lgId+"-"+c)}),s;if(t<(this.galleryItems.length-1)/2){for(var d=t;d>t-a/2&&d>=0;d--)s.push("lg-item-"+this.lgId+"-"+d);var h=s.length;for(d=0;d<a-h;d++)s.push("lg-item-"+this.lgId+"-"+(t+d+1))}else{for(d=t;d<=this.galleryItems.length-1&&d<t+a/2;d++)s.push("lg-item-"+this.lgId+"-"+d);for(h=s.length,d=0;d<a-h;d++)s.push("lg-item-"+this.lgId+"-"+(t-d-1))}return this.settings.loop&&(t===this.galleryItems.length-1?s.push("lg-item-"+this.lgId+"-0"):0===t&&s.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===s.indexOf(l)&&s.push("lg-item-"+this.lgId+"-"+e),s},o.prototype.organizeSlideItems=function(t,e){var i=this,r=this.getItemsToBeInsertedToDom(t,e,this.settings.numberOfSlideItemsInDom);return r.forEach(function(s){-1===i.currentItemsInDom.indexOf(s)&&i.$inner.append('<div id="'+s+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(s){-1===r.indexOf(s)&&p("#"+s).remove()}),r},o.prototype.getPreviousSlideIndex=function(){var t=0;try{var e=this.outer.find(".lg-current").first().attr("id");t=parseInt(e.split("-")[3])||0}catch{t=0}return t},o.prototype.setDownloadValue=function(t){if(this.settings.download){var e=this.galleryItems[t];if(!1===e.downloadUrl||"false"===e.downloadUrl)this.outer.addClass("lg-hide-download");else{var r=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),r.attr("href",e.downloadUrl||e.src),e.download&&r.attr("download",e.download)}}},o.prototype.makeSlideAnimation=function(t,e,i){var r=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout(function(){r.outer.addClass("lg-no-trans"),r.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===t?(e.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout(function(){r.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),r.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},o.prototype.slide=function(t,e,i,r){var s=this,a=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,a),!this.lGalleryOn||a!==t){var l=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var d=this.getSlideItem(t),h=this.getSlideItem(a),f=this.galleryItems[t],c=f.__slideVideoInfo;
1if(this.outer.attr("data-lg-slide-type",this.getSlideType(f)),this.setDownloadValue(t),c){var g=this.mediaContainerPosition,u=g.top,m=g.bottom,C=x_getSize(this.items[t],this.outer,u+m,c&&this.settings.videoMaxSize);this.resizeVideoSlide(t,C)}if(this.LGel.trigger(v_beforeSlide,{prevIndex:a,index:t,fromTouch:!!e,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),r||(t<a?r="prev":t>a&&(r="next")),e){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var _=void 0,y=void 0;l>2?(_=t-1,y=t+1,(0===t&&a===l-1||t===l-1&&0===a)&&(y=0,_=l-1)):(_=0,y=1),"prev"===r?this.getSlideItem(y).addClass("lg-next-slide"):this.getSlideItem(_).addClass("lg-prev-slide"),d.addClass("lg-current")}else this.makeSlideAnimation(r,d,h);this.lGalleryOn?setTimeout(function(){s.loadContent(t,!0),".lg-item"!==s.settings.appendSubHtmlTo&&s.addHtml(t)},this.settings.speed+50+(e?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){s.lgBusy=!1,h.removeClass("lg-slide-progress"),s.LGel.trigger(v_afterSlide,{prevIndex:a,index:t,fromTouch:e,fromThumb:i})},(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=t}},o.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},o.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},o.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},o.prototype.touchMove=function(t,e,i){var r=e.pageX-t.pageX,s=e.pageY-t.pageY,a=!1;if(this.swipeDirection?a=!0:Math.abs(r)>15?(this.swipeDirection="horizontal",a=!0):Math.abs(s)>15&&(this.swipeDirection="vertical",a=!0),a){var l=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){i?.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(l,r,0);var d=l.get().offsetWidth,f=15*d/100-Math.abs(10*r/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-d+r-f,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),d+r+f,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){i?.preventDefault(),this.$container.addClass("lg-dragging-vertical");var c=1-Math.abs(s)/window.innerHeight;this.$backdrop.css("opacity",c);var g=1-Math.abs(s)/(2*window.innerWidth);this.setTranslate(l,0,s,g,g),Math.abs(s)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},o.prototype.touchEnd=function(t,e,i){var s,r=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout(function(){r.$container.removeClass("lg-dragging-vertical"),r.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var a=!0;if("horizontal"===r.swipeDirection){s=t.pageX-e.pageX;var l=Math.abs(t.pageX-e.pageX);s<0&&l>r.settings.swipeThreshold?(r.goToNextSlide(!0),a=!1):s>0&&l>r.settings.swipeThreshold&&(r.goToPrevSlide(!0),a=!1)}else if("vertical"===r.swipeDirection){if(s=Math.abs(t.pageY-e.pageY),r.settings.closable&&r.settings.swipeToClose&&s>100)return void r.closeGallery();r.$backdrop.css("opacity",1)}if(r.outer.find(".lg-item").removeAttr("style"),a&&Math.abs(t.pageX-e.pageX)<5){var d=p(i.target);r.isPosterElement(d)&&r.LGel.trigger(v_posterClick)}r.swipeDirection=void 0}),setTimeout(function(){!r.outer.hasClass("lg-dragging")&&"lg-slide"!==r.settings.mode&&r.outer.removeClass("lg-slide")},this.settings.speed+100)},o.prototype.enableSwipe=function(){var t=this,e={},i={},r=!1,s=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(a){t.dragOrSwipeEnabled=!0;var l=t.getSlideItem(t.index);(p(a.target).hasClass("lg-item")||l.get().contains(a.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&1===a.touches.length&&(s=!0,t.touchAction="swipe",t.manageSwipeClass(),e={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(a){s&&"swipe"===t.touchAction&&1===a.touches.length&&(i={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t.touchMove(e,i,a),r=!0)}),this.$inner.on("touchend.lg",function(a){if("swipe"===t.touchAction){if(r)r=!1,t.touchEnd(i,e,a);else if(s){var l=p(a.target);t.isPosterElement(l)&&t.LGel.trigger(v_posterClick)}t.touchAction=void 0,s=!1}}))},o.prototype.enableDrag=function(){var t=this,e={},i={},r=!1,s=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(a){t.dragOrSwipeEnabled=!0;var l=t.getSlideItem(t.index);(p(a.target).hasClass("lg-item")||l.get().contains(a.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(a.preventDefault(),t.lgBusy||(t.manageSwipeClass(),e={pageX:a.pageX,pageY:a.pageY},r=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(v_dragStart)))}),p(window).on("mousemove.lg.global"+this.lgId,function(a){r&&t.lgOpened&&(s=!0,i={pageX:a.pageX,pageY:a.pageY},t.touchMove(e,i),t.LGel.trigger(v_dragMove))}
1),p(window).on("mouseup.lg.global"+this.lgId,function(a){if(t.lgOpened){var l=p(a.target);s?(s=!1,t.touchEnd(i,e,a),t.LGel.trigger(v_dragEnd)):t.isPosterElement(l)&&t.LGel.trigger(v_posterClick),r&&(r=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},o.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(e){!t.dragOrSwipeEnabled&&t.isPosterElement(p(e.target))&&t.LGel.trigger(v_posterClick)})},o.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},o.prototype.goToNextSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(v_beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):i?(this.index=0,this.LGel.trigger(v_beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){e.outer.removeClass("lg-right-end")},400)))},o.prototype.goToPrevSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(v_beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(v_beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){e.outer.removeClass("lg-left-end")},400)))},o.prototype.keyPress=function(){var t=this;p(window).on("keydown.lg.global"+this.lgId,function(e){t.lgOpened&&!0===t.settings.escKey&&27===e.keyCode&&(e.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))})},o.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},o.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),i=this.getElementById("lg-next");t+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===t?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}},o.prototype.setTranslate=function(t,e,i,r,s){void 0===r&&(r=1),void 0===s&&(s=1),t.css("transform","translate3d("+e+"px, "+i+"px, 0px) scale3d("+r+", "+s+", 1)")},o.prototype.mousewheel=function(){var t=this,e=0;this.outer.on("wheel.lg",function(i){if(i.deltaY&&!(t.galleryItems.length<2)){i.preventDefault();var r=(new Date).getTime();r-e<1e3||(e=r,i.deltaY>0?t.goToNextSlide():i.deltaY<0&&t.goToPrevSlide())}})},o.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")},o.prototype.isPosterElement=function(t){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||e&&e.contains(t.get())},o.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},o.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var i=p(this.items[t]);i.off("click.lgcustom-item-"+i.attr("data-lg-id"))}},o.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),p(window).on("keydown.lg.global"+this.lgId,function(e){if(t.lgOpened&&("Tab"===e.key||9===e.keyCode)){var r=x_getFocusableElements(t.$container.get()),s=r[0],a=r[r.length-1];e.shiftKey?document.activeElement===s&&(a.focus(),e.preventDefault()):document.activeElement===a&&(s.focus(),e.preventDefault())}})},o.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var e=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(i){var r=p(i.target);e=!!t.isSlideElement(r)}),this.outer.on("mousemove.lg",function(){e=!1}),this.outer.on("mouseup.lg",function(i){var r=p(i.target);t.isSlideElement(r)&&e&&(t.outer.hasClass("lg-dragging")||t.closeGallery())}))}},o.prototype.closeGallery=function(t){var e=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(v_beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&p(window).scrollTop(this.prevScrollTop);var r,i=this.items[this.index];if(this.zoomFromOrigin&&i){var s=this.mediaContainerPosition,a=s.top,l=s.bottom,d=this.galleryItems[this.index],h=d.__slideVideoInfo,f=d.poster,c=x_getSize(i,this.outer,a+l,h&&f&&this.settings.videoMaxSize);r=x_getTransform(i,this.outer,a,l,c)}this.zoomFromOrigin&&r?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.get
1SlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",r)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,p("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var g=this.zoomFromOrigin&&r?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){e.zoomFromOrigin&&r&&e.outer.removeClass("lg-zoom-from-image"),e.$container.removeClass("lg-show"),e.resetScrollBar(),e.$backdrop.removeAttr("style").css("transition-duration",e.settings.backdropDuration+"ms"),e.outer.removeClass("lg-closing "+e.settings.startClass),e.getSlideItem(e.index).removeClass("lg-start-end-progress"),e.$inner.empty(),e.lgOpened&&e.LGel.trigger(v_afterClose,{instance:e}),e.$container.get()&&e.$container.get().blur(),e.lgOpened=!1},g+100),g+100},o.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},o.prototype.destroyModules=function(t){this.plugins.forEach(function(e){try{t?e.destroy():e.closeGallery&&e.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},o.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),this.galleryItems=t||this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(v_updateSlides)},o.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},o.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),p(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},o.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},o}();const pt=function ht(o,t){return new ct(o,t)};class Z{constructor(){}}Z.\u0275fac=function(t){return new(t||Z)},Z.\u0275prov=n.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"});const b_onAfterAppendSlide="lgAfterAppendSlide",b_onInit="lgInit",b_onHasVideo="lgHasVideo",b_onContainerResize="lgContainerResize",b_onAfterAppendSubHtml="lgAfterAppendSubHtml",b_onBeforeOpen="lgBeforeOpen",b_onAfterOpen="lgAfterOpen",b_onSlideItemLoad="lgSlideItemLoad",b_onBeforeSlide="lgBeforeSlide",b_onAfterSlide="lgAfterSlide",b_onPosterClick="lgPosterClick",b_onDragStart="lgDragStart",b_onDragMove="lgDragMove",b_onDragEnd="lgDragEnd",b_onBeforeNextSlide="lgBeforeNextSlide",b_onBeforePrevSlide="lgBeforePrevSlide",b_onBeforeClose="lgBeforeClose",b_onAfterClose="lgAfterClose",b_onRotateLeft="lgRotateLeft",b_onRotateRight="lgRotateRight",b_onFlipHorizontal="lgFlipHorizontal",b_onFlipVertical="lgFlipVertical";class G{constructor(t){this._elementRef=t,this.lgInitialized=!1,this._elementRef=t}ngAfterViewChecked(){this.lgInitialized||(this.registerEvents(),this.LG=pt(this._elementRef.nativeElement,this.settings),this.lgInitialized=!0)}ngOnDestroy(){this.LG.destroy(),this.lgInitialized=!1}registerEvents(){this.onAfterAppendSlide&&this._elementRef.nativeElement.addEventListener(b_onAfterAppendSlide,t=>{this.onAfterAppendSlide&&this.onAfterAppendSlide(t.detail)}),this.onInit&&this._elementRef.nativeElement.addEventListener(b_onInit,t=>{this.onInit&&this.onInit(t.detail)}),this.onHasVideo&&this._elementRef.nativeElement.addEventListener(b_onHasVideo,t=>{this.onHasVideo&&this.onHasVideo(t.detail)}),this.onContainerResize&&this._elementRef.nativeElement.addEventListener(b_onContainerResize,t=>{this.onContainerResize&&this.onContainerResize(t.detail)}),this.onAfterAppendSubHtml&&this._elementRef.nativeElement.addEventListener(b_onAfterAppendSubHtml,t=>{this.onAfterAppendSubHtml&&this.onAfterAppendSubHtml(t.detail)}),this.onBeforeOpen&&this._elementRef.nativeElement.addEventListener(b_onBeforeOpen,t=>{this.onBeforeOpen&&this.onBeforeOpen(t.detail)}),this.onAfterOpen&&this._elementRef.nativeElement.addEventListener(b_onAfterOpen,t=>{this.onAfterOpen&&this.onAfterOpen(t.detail)}),this.onSlideItemLoad&&this._elementRef.nativeElement.addEventListener(b_onSlideItemLoad,t=>{this.onSlideItemLoad&&this.onSlideItemLoad(t.detail)}),this.onBeforeSlide&&this._elementRef.nativeElement.addEventListener(b_onBeforeSlide,t=>{this.onBeforeSlide&&this.onBeforeSlide(t.detail)}),this.onAfterSlide&&this._elementRef.nativeElement.addEventListener(b_onAfterSlide,t=>{this.onAfterSlide&&this.onAfterSlide(t.detail)}),this.onPosterClick&&this._elementRef.nativeElement.addEventListener(b_onPosterClick,t=>{this.onPosterClick&&this.onPosterClick(t.detail)}),this.onDragStart&&this._elementRef.nativeElement.addEventListener(b_onDragStart,t=>{this.onDragStart&&this.onDragStart(t.detail)}),this.onDragMove&&this._elementRef.nativeElement.addEventListener(b_onDragMove,t=>{this.onDragMove&&this.onDragMove(t.detail)}),this.onDragEnd&&this._elementRef.nativeElement.addEventListener(b_onDragEnd,t=>{this.onDragEnd&&this.onDragEnd(t.detail)}),this.onBeforeNextSlide&&this._elementRef.nativeElement.addEventListener(b_onBeforeNextSlide,t=>{this.onBeforeNextSlide&&this.onBeforeNextSlide(t.detail)}),this.onBeforePrevSlide&&this._elementRef.nativeElement.addEventListener(b_onBeforePrevSlide,t=>{this.onBeforePrevSlide&&this.onBeforePrevSlide(t.detail)}),this.onBeforeClose&&this._elementRef.nativeElement.addEventListener(b_onBeforeClose,t=>{this.onBeforeClose&&this.onBeforeClose(t.detail)}),this.onAfterClose&&this._elementRef.nativeElement.addEventListener(b_onAfterClose,t=>{this.onAfterClose&&this.onAfterClose(t.detail)}),this.onRotateLeft&&this._elementRef.nativeElement.addEventListener(b_onRotateLeft,t=>{this.onRotateLeft&&this.onRotateLeft(t.detail)}),this.onRotateRight&&this._elementRef.nativeElement.addEventListener(b_onRotateRight,t=>{this.onRotateRight&&this.onRotateRight(t.detail)}),this.onFlipHorizontal&&this._elementRef.nativeElement.addEventListener(b_onFlipHorizontal,t=>{this.onFlipHorizontal&&this.onFlipHorizontal(t.detail)}),this.onFlipVertical&&this._elementRef.nativeElement.addEventListener(b_onFlipVertical,t=>{this.onFlipVertical&&this.onFlipVertical(t.detail)})}}G.\u0275fac=function(t){return new(t||G)(n.Y36(n.SBq))},G.\u0275cmp=n.Xpm({type:G,selectors:[["lightgallery"]],inputs:{settings:"settings",onAfterAppendSlide:"onAfterAppendSlide",onInit:"onInit",onHasVideo:"onHasVideo",onContainerResize:"onContainerResize",onAfterAppendSubHtml:"onAfterAppendSubHtml",onBeforeOpen:"onBeforeOpen",onAfterOpen:"onAfterOpen",onSlideItemLoad:"onSlideItemLoad",onBeforeSlide:"onBeforeSlide",onAfterSlide:"onAfterSlide",onPosterClick:"onPosterClick",onDragStart:"onDragStart",onDragMove:"onDragMove",onDragEnd:"onDragEnd",onBeforeNextSlide:"onBeforeNextSlide",onBeforePrevSlide:"onBeforePrevSlide",onBeforeClose:"onBeforeClose",onAfterClose:"onAfterClose",onRotateLeft:"onRotateLeft",onRotateRight:"onRotateRight",onFlipHorizontal:"onFlipHorizontal",onFlipVertical:"onFlipVertical"},ngContentSelectors:["*"],decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},encapsulation:2});class L{}L.\u0275fac=function(t){return new(t||L)},L.\u0275mod=n.oAB({type:L}),L.\u0275inj=n.cJS({});var M=w(3611),V=function(){return V=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},V.apply(this,arguments)},ut={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},P_containerResize="lgContainerResize",P_beforeOpen="lgBeforeOpen",P_afterOpen="lgAfterOpen",P_slideItemLoad="lgSlideItemLoad",P_afterSlide="lgAfterSlide",P_rotateLeft="lgRotateLeft",P_rotateRight="lgRotateRight",P_flipHorizontal="lgFlipHorizontal",P_flipVertical="lgFlipVertical";const vt=function(){function o(t,e){return this.core=t,this.$LG=e,this.settings=V(V({},ut),this.core.settings),this}return o.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" t
1ype="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},o.prototype.enableZoom=function(t){var e=this,i=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){e.isImageSlide(e.core.index)&&(e.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===e.core.index&&e.setZoomEssentials())},i+30)},o.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(P_slideItemLoad+".zoom",this.enableZoom.bind(this))},o.prototype.getDragCords=function(t){return{x:t.pageX,y:t.pageY}},o.prototype.getSwipeCords=function(t){return{x:t.touches[0].pageX,y:t.touches[0].pageY}},o.prototype.getDragAllowedAxises=function(t,e){var i=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),r=0,s=0,a=i.getBoundingClientRect();t?(r=i.offsetHeight*t,s=i.offsetWidth*t):e?(r=a.height+e*a.height,s=a.width+e*a.width):(r=a.height,s=a.width);var l=r>this.containerRect.height;return{allowX:s>this.containerRect.width,allowY:l}},o.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},o.prototype.zoomImage=function(t,e,i,r){if(!(Math.abs(e)<=0)){var l,d,s=this.containerRect.width/2+this.containerRect.left,a=this.containerRect.height/2+this.containerRect.top+this.scrollTop;1===t&&(this.positionChanged=!1);var h=this.getDragAllowedAxises(0,e),f=h.allowY,c=h.allowX;this.positionChanged&&(l=this.left/(this.scale-e),d=this.top/(this.scale-e),this.pageX=s-l,this.pageY=a-d,this.positionChanged=!1);var u,m,g=this.getPossibleSwipeDragCords(e),C=s-this.pageX,_=a-this.pageY;if(t-e>1){var y=(t-e)/Math.abs(e);u=(C=(e<0?-C:C)+this.left*(y+(e<0?-1:1)))/y,m=(_=(e<0?-_:_)+this.top*(y+(e<0?-1:1)))/y}else{u=C*(y=(t-e)*e),m=_*y}i&&(c?this.isBeyondPossibleLeft(u,g.minX)?u=g.minX:this.isBeyondPossibleRight(u,g.maxX)&&(u=g.maxX):t>1&&(u<g.minX?u=g.minX:u>g.maxX&&(u=g.maxX)),f?this.isBeyondPossibleTop(m,g.minY)?m=g.minY:this.isBeyondPossibleBottom(m,g.maxY)&&(m=g.maxY):t>1&&(m<g.minY?m=g.minY:m>g.maxY&&(m=g.maxY))),this.setZoomStyles({x:u,y:m,scale:t}),this.left=u,this.top=m,r&&this.setZoomImageSize()}},o.prototype.resetImageTranslate=function(t){if(this.isImageSlide(t)){var e=this.core.getSlideItem(t).find(".lg-image").first();this.imageReset=!1,e.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),e.css("width","auto").css("height","auto"),setTimeout(function(){e.removeClass("no-transition")},10)}},o.prototype.setZoomImageSize=function(){var t=this,e=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var i=t.getCurrentImageActualSizeScale();t.scale>=i&&(e.addClass("no-transition"),t.imageReset=!0)},500),setTimeout(function(){var i=t.getCurrentImageActualSizeScale();if(t.scale>=i){var r=t.getDragAllowedAxises(t.scale);e.css("width",e.get().naturalWidth+"px").css("height",e.get().naturalHeight+"px"),t.core.outer.addClass("lg-actual-size"),r.allowX&&r.allowY?e.addClass("reset-transition"):r.allowX&&!r.allowY?e.addClass("reset-transition-x"):!r.allowX&&r.allowY&&e.addClass("reset-transition-y")}},550)},o.prototype.setZoomStyles=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),i=this.core.getSlideItem(this.core.index).find(".lg-image").first(),r=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=t.scale,i.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),r.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var s="translate3d("+t.x+"px, "+t.y+"px, 0)";e.css("transform",s)},o.prototype.setActualSize=function(t,e){var i=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var r=this.core.galleryItems[this.core.index];this.resetImageTranslate(t),setTimeout(function(){if(r.src&&!i.core.outer.hasClass("lg-first-slide-loading")){var s=i.getCurrentImageActualSizeScale(),a=i.scale;i.core.outer.hasClass("lg-zoomed")?i.scale=1:i.scale=i.getScale(s),i.setPageCords(e),i.beginZoom(i.scale),i.zoomImage(i.scale,i.scale-a,!0,!0)}},50),setTimeout(function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){i.zoomInProgress=!1},610)}}
1,o.prototype.getNaturalWidth=function(t){var e=this.core.getSlideItem(t).find(".lg-image").first(),i=this.core.galleryItems[t].width;return i?parseFloat(i):e.get().naturalWidth},o.prototype.getActualSizeScale=function(t,e){var r;return t>=e?r=t/e||2:r=1,r},o.prototype.getCurrentImageActualSizeScale=function(){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,i=this.getNaturalWidth(this.core.index)||e;return this.getActualSizeScale(i,e)},o.prototype.getPageCords=function(t){var e={};if(t)e.x=t.pageX||t.touches[0].pageX,e.y=t.pageY||t.touches[0].pageY;else{var i=this.core.$content.get().getBoundingClientRect();e.x=i.width/2+i.left,e.y=i.height/2+this.scrollTop+i.top}return e},o.prototype.setPageCords=function(t){var e=this.getPageCords(t);this.pageX=e.x,this.pageY=e.y},o.prototype.manageActualPixelClassNames=function(){this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},o.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),t>1},o.prototype.getScale=function(t){var e=this.getCurrentImageActualSizeScale();return t<1?t=1:t>e&&(t=e),t},o.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on("dblclick.lg",function(i){t.$LG(i.target).hasClass("lg-image")&&t.setActualSize(t.core.index,i)}),this.core.outer.on("touchstart.lg",function(i){var r=t.$LG(i.target);1===i.touches.length&&r.hasClass("lg-image")&&(e?(clearTimeout(e),e=null,i.preventDefault(),t.setActualSize(t.core.index,i)):e=setTimeout(function(){e=null},300))}),this.core.LGel.on(P_containerResize+".zoom "+P_rotateRight+".zoom "+P_rotateLeft+".zoom "+P_flipHorizontal+".zoom "+P_flipVertical+".zoom",function(){if(t.core.lgOpened&&t.isImageSlide(t.core.index)&&!t.core.touchAction){var i=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();t.top=0,t.left=0,t.setZoomEssentials(),t.setZoomSwipeStyles(i,{x:0,y:0}),t.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(t.isImageSlide(t.core.index)){var i=0;t.imageReset&&(t.resetImageTranslate(t.core.index),i=50),setTimeout(function(){var r=t.scale-t.settings.scale;r<1&&(r=1),t.beginZoom(r),t.zoomImage(r,-t.settings.scale,!0,!t.settings.infiniteZoom)},i)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){t.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){t.setActualSize(t.core.index)}),this.core.LGel.on(P_beforeOpen+".zoom",function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(P_afterOpen+".zoom",function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1}),this.core.LGel.on(P_afterSlide+".zoom",function(i){var r=i.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.zoomInProgress=!1,t.resetZoom(r),t.resetImageTranslate(r),t.isImageSlide(t.core.index)&&t.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},o.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var t=this.scale+this.settings.scale;this.settings.infiniteZoom||(t=this.getScale(t)),this.beginZoom(t),this.zoomImage(t,Math.min(this.settings.scale,t-this.scale),!0,!this.settings.infiniteZoom)}},o.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var e=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(void 0!==t?t:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style"),i.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},o.prototype.getTouchDistance=function(t){return Math.sqrt((t.touches[0].pageX-t.touches[1].pageX)*(t.touches[0].pageX-t.touches[1].pageX)+(t.touches[0].pageY-t.touches[1].pageY)*(t.touches[0].pageY-t.touches[1].pageY))},o.prototype.pinchZoom=function(){var t=this,e=0,i=!1,r=1,s=0,a=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(l){if(a=t.core.getSlideItem(t.core.index),t.isImageSlide(t.core.index)&&2===l.touches.length){if(l.preventDefault(),t.core.outer.hasClass("lg-first-slide-loading"))return;r=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.setPageCords(l),t.resetImageTranslate(t.core.index),t.core.touchAction="pinch",e=t.getTouchDistance(l)}}),this.core.$inner.on("touchmove.lg",function(l){if(2===l.touches.length&&"pinch"===t.core.touchAction&&(t.$LG(l.target).hasClass("lg-item")||a.get().contains(l.target))){l.preventDefault();var d=t.getTouchDistance(l),h=e-d;if(!i&&Math.abs(h)>5&&(i=!0),i){s=t.scale;var f=Math.max(1,r+.02*-h);t.scale=Math.round(100*(f+Number.EPSILON))/100;var c=t.scale-s;t.zoomImage(t.scale,Math.round(100*(c+Number.EPSILON))/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(l){if("pinch"===t.core.touchAction&&(t.$LG(l.target).hasClass("lg-item")||a.get().contains(l.target))){if(i=!1,e=0,t.scale<=1)t.resetZoom();else{var d=t.getCurrentImageActualSizeScale();if(t.scale>=d){var h=d-t.scale;
10===h&&(h=.01),t.zoomImage(d,h,!1,!0)}t.manageActualPixelClassNames(),t.core.outer.addClass("lg-zoomed")}t.core.touchAction=void 0}})},o.prototype.touchendZoom=function(t,e,i,r,s){var a=e.x-t.x,l=e.y-t.y,d=Math.abs(a)/s+1,h=Math.abs(l)/s+1;d>2&&(d+=1),h>2&&(h+=1),a*=d,l*=h;var f=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),c={};c.x=this.left+a,c.y=this.top+l;var g=this.getPossibleSwipeDragCords();(Math.abs(a)>15||Math.abs(l)>15)&&(r&&(this.isBeyondPossibleTop(c.y,g.minY)?c.y=g.minY:this.isBeyondPossibleBottom(c.y,g.maxY)&&(c.y=g.maxY)),i&&(this.isBeyondPossibleLeft(c.x,g.minX)?c.x=g.minX:this.isBeyondPossibleRight(c.x,g.maxX)&&(c.x=g.maxX)),r?this.top=c.y:c.y=this.top,i?this.left=c.x:c.x=this.left,this.setZoomSwipeStyles(f,c),this.positionChanged=!0)},o.prototype.getZoomSwipeCords=function(t,e,i,r,s){var a={};if(r){if(a.y=this.top+(e.y-t.y),this.isBeyondPossibleTop(a.y,s.minY)){var l=s.minY-a.y;a.y=s.minY-l/6}else if(this.isBeyondPossibleBottom(a.y,s.maxY)){var d=a.y-s.maxY;a.y=s.maxY+d/6}}else a.y=this.top;if(i){if(a.x=this.left+(e.x-t.x),this.isBeyondPossibleLeft(a.x,s.minX)){var h=s.minX-a.x;a.x=s.minX-h/6}else if(this.isBeyondPossibleRight(a.x,s.maxX)){var f=a.x-s.maxX;a.x=s.maxX+f/6}}else a.x=this.left;return a},o.prototype.isBeyondPossibleLeft=function(t,e){return t>=e},o.prototype.isBeyondPossibleRight=function(t,e){return t<=e},o.prototype.isBeyondPossibleTop=function(t,e){return t>=e},o.prototype.isBeyondPossibleBottom=function(t,e){return t<=e},o.prototype.isImageSlide=function(t){var e=this.core.galleryItems[t];return"image"===this.core.getSlideType(e)},o.prototype.getPossibleSwipeDragCords=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.mediaContainerPosition.bottom,r=e.get().getBoundingClientRect(),s=r.height,a=r.width;return t&&(s+=t*s,a+=t*a),{minY:(s-this.containerRect.height)/2,maxY:(this.containerRect.height-s)/2+i,minX:(a-this.containerRect.width)/2,maxX:(this.containerRect.width-a)/2}},o.prototype.setZoomSwipeStyles=function(t,e){t.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},o.prototype.zoomSwipe=function(){var h,f,t=this,e={},i={},r=!1,s=!1,a=!1,l=new Date,c=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(g){if(t.isImageSlide(t.core.index)&&(c=t.core.getSlideItem(t.core.index),(t.$LG(g.target).hasClass("lg-item")||c.get().contains(g.target))&&1===g.touches.length&&t.core.outer.hasClass("lg-zoomed"))){g.preventDefault(),l=new Date,t.core.touchAction="zoomSwipe",f=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var u=t.getDragAllowedAxises(0);a=u.allowY,((s=u.allowX)||a)&&(e=t.getSwipeCords(g)),h=t.getPossibleSwipeDragCords(),t.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(g){if(1===g.touches.length&&"zoomSwipe"===t.core.touchAction&&(t.$LG(g.target).hasClass("lg-item")||c.get().contains(g.target))){g.preventDefault(),t.core.touchAction="zoomSwipe",i=t.getSwipeCords(g);var u=t.getZoomSwipeCords(e,i,s,a,h);(Math.abs(i.x-e.x)>15||Math.abs(i.y-e.y)>15)&&(r=!0,t.setZoomSwipeStyles(f,u))}}),this.core.$inner.on("touchend.lg",function(g){if("zoomSwipe"===t.core.touchAction&&(t.$LG(g.target).hasClass("lg-item")||c.get().contains(g.target))){if(g.preventDefault(),t.core.touchAction=void 0,t.core.outer.removeClass("lg-zoom-dragging"),!r)return;r=!1;var u=(new Date).valueOf()-l.valueOf();t.touchendZoom(e,i,s,a,u)}})},o.prototype.zoomDrag=function(){var d,h,f,c,t=this,e={},i={},r=!1,s=!1,a=!1,l=!1;this.core.outer.on("mousedown.lg.zoom",function(g){if(t.isImageSlide(t.core.index)){var u=t.core.getSlideItem(t.core.index);if(t.$LG(g.target).hasClass("lg-item")||u.get().contains(g.target)){d=new Date,c=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();var m=t.getDragAllowedAxises(0);l=m.allowY,a=m.allowX,t.core.outer.hasClass("lg-zoomed")&&t.$LG(g.target).hasClass("lg-object")&&(a||l)&&(g.preventDefault(),e=t.getDragCords(g),f=t.getPossibleSwipeDragCords(),r=!0,t.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(g){if(r){s=!0,i=t.getDragCords(g);var u=t.getZoomSwipeCords(e,i,a,l,f);t.setZoomSwipeStyles(c,u)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(g){if(r){if(h=new Date,r=!1,t.core.outer.removeClass("lg-zoom-dragging"),s&&(e.x!==i.x||e.y!==i.y)){i=t.getDragCords(g);var u=h.valueOf()-d.valueOf();t.touchendZoom(e,i,a,l,u)}s=!1}t.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},o.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},o.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},o}();var k=w(529),j=w(4004),A=w(8863);class T{constructor(t){this.http=t,this.baseUrl=A.N.baseUrl,this.nomeProjecto=A.N.appName,this.apiUrl=`${this.baseUrl}/content/${this.nomeProjecto}/galeria`,this.headers=new k.WM({"X-Languages":"pt","X-Flatten":"true","X-ResolveUrls":"ficheiros","X-sort":"-dataPublicacao"}),this.lang=localStorage.getItem("lang")||"pt"}get(){return this.http.get(`${this.apiUrl}`)}getById(t){return this.http.get(`${this.apiUrl}/${t}`,{headers:this.headers})}getBySlug(t){return this.http.get(`${this.apiUrl}?$filter=data/titulo/${this.lang} eq '${t}'`,{headers:this.headers}).pipe((0,j.U)(e=>e.items[0]))}getGalery(t){let e=new k.LE;return e=e.set("$orderby","data/dataPublicacao/iv desc"),t&&(void 0!==t.$top&&(e=e.set("$top",t.$top.toString())),void 0!==t.$skip&&(e=e.set("$skip",t.$skip.toString())),t.$filter&&(e=e.set("$filter",t.$filter)),t.$orderby&&(e=e.set("$orderby",t.$orderby))),console.log("Par\xe2metros de pagina\xe7\xe3o enviados:",{params:t,httpParams:e.toString()}),this.http.get(this.apiUrl,{headers:this.headers,params:e})}}T.\u0275fac=function(t){return new(t||T)(n.LFG(k.eN))},T.\u0275prov=n.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"});var X=w(4484);function bt(o,t){if(1&o&&(n.TgZ(0,"a",11),n._UZ(1,"img",12),n.qZA()),2&o){const e=t.$implicit;n.uIk("data-src",e),n.xp6(1),n.Q6J("src",e,n.LSH)}}function yt(o,t){if(1&o&&(n.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"p",5),n._UZ(5,"img",6),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"h2",7),n._uU(10),n.qZA(),n.TgZ(11,"p",8)(12,"span"),n._uU(13),n.qZA()()()(),n.TgZ(14,"lightgallery",9),n.YNc(15,bt,2,2,"a",10),n.qZA()()()),2&o){const e=n.oxw();n.xp6(7),n.hij(" ",n.lcZ(8,6,"header.press.sala_de_imprensa.voltarGaleria")," "),n.xp6(3),n.Oqu(e.galeria.data.titulo),n.xp6(3),n.Oqu(e.galeria.data.descricao),n.xp6(1),n.Q6J("settings",e.settings)("onBeforeSlide",e.onBeforeSlide),n.xp6(1),n.Q6J("ngForOf",e.galeria.data.ficheiros)}}class ${constructor(t,e,i){this.router=t,this.route=e,this.galeriaService=i,this.name="Angular "+n.q4F.major,this.settings={counter:!1,plugins:[vt]},this.onBeforeSlide=r=>{const{index:s,prevIndex:a}=r;console.log(s,a)},this.publicacoes=[]}ngOnInit(){this.route.paramMap.subscribe(t=>{const e=t.get("id");e&&this.getNoticia(e)}),this.getNoticias()}getNoticia(t){this.galeriaService.getBySlug(t).subscribe(e=>{e.data&&(this.galeria=e)})}getNoticias(){this.galeriaService.getGalery({$orderby:"data/dataPublicacao/iv desc"}).subscribe(t=>{this.publicacoes=t.items})}}$.\u0275fac=function(t){return new(t||$)(n.Y36(M.F0),n.Y36(M.gz),n.Y36(T))},$.\u0275cmp=n.Xpm({type:$,selectors:[["app-galeria"]],decls:1,vars:1,consts:[["class","banner bg-gray-800","style","margin-top: 120px;",4,"ngIf"],[1,"banner","bg-gray-800",2,"margin-top","120px"],[1,"container"],[1,"row"],[1,"col-12","col-md-12","text-black","py-5"],["routerLink","../",2,"cursor","pointer"],["src","assets/img/arrow-narrow-right-black.svg","alt","","id","icon",2,"transform","rotate(180deg)"],[2,"color","#f59e0b"],[2,"text-align","justify"],[3,"settings","onBeforeSlide"],["data-lg-size","480-475-480, 800-791-800, 1406-1390","class","gallery-item",4,"ngFor","ngForOf"],["data-lg-size","480-475-480, 800-791-800, 1406-1390",1,"gallery-item"],[1,"img-responsive","im",3,"src"]],template:function(t,e){1&t&&n.YNc(0,yt,16,8,"div",0),2&t&&n.Q6J("ngIf",e.galeria)},dependencies:[O.sg,O.O5,M.rH,G,X.X$],styles:['@import"https://cdn.jsdelivr.net/npm/[email protected]/css/lightgallery.css";@import"https://cdn.jsdelivr.net/npm/[email protected]/css/lg-zoom.css";.gallery-item[_ngcontent-%COMP%]{margin:5px!important}.banner[_ngcontent-%COMP%]{width:100%;min-height:550px;background-position:center;background-size:cover;background-repeat:no-repeat;margin-bottom:50px}.pp[_ngcontent-%COMP%]{display:inline-block;padding:10px}.im[_ngcontent-%COMP%]{display:inline-block;width:300px;height:200px;object-fit:cover;margin:10px 5px}@media (max-width: 768px){.im[_ngcontent-%COMP%]{width:95%}}']});var J=w(8746),Q=w(6198),S=w(4006),W=w(8926);const xt=["paginator"];function Ct(o,t){if(1&o&&(n.TgZ(0,"div",18),n._UZ(1,"img",19),n.qZA()),2&o){const e=t.$implicit;n.xp6(1),n.Q6J("src",e,n.LSH)}}function _t(o,t){if(1&o&&(n.TgZ(0,"div",20),n._UZ(1,"img",21),n.qZA()),2&o){const e=t.$implicit;n.xp6(1),n.Q6J("src",e,n.LSH)}}const wt=function(o){return[o]};function Ot(o,t){if(1&o&&(n.TgZ(0,"div",22),n._UZ(1,"img",23),n.TgZ(2,"div",24)(3,"h3"),n._uU(4,"Ver Mais "),n._UZ(5,"img",25),n.qZA()()()),2&o){const e=t.$implicit,i=n.oxw().$implicit;n.xp6(1),n.Q6J("src",e,n.LSH),n.xp6(1),n.Q6J("routerLink",n.VKq(2,wt,i.data.titulo))}}function Mt(o,t){if(1&o&&(n.TgZ(0,"div",12)(1,"h2"),n._uU(2),n.qZA(),n._UZ(3,"br"),n.TgZ(4,"div",13)(5,"div",14),n.YNc(6,Ct,2,1,"div",15),n.YNc(7,_t,2,1,"div",16),n.YNc(8,Ot,6,4,"div",17),n.qZA()()()),2&o){const e=t.$implicit;n.xp6(2),n.Oqu(e.data.titulo),n.xp6(4),n.Q6J("ngForOf",e.data.ficheiros.slice(0,1)),n.xp6(1),n.Q6J("ngForOf",e.data.ficheiros.slice(1,2)),n.xp6(1),n.Q6J("ngForOf",e.data.ficheiros.slice(2,3))}}function Pt(o,t){1&o&&(n.TgZ(0,"div",26)(1,"h6",26),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&o&&(n.xp6(2),n.Oqu(n.lcZ(3,1,"noDoc")))}function St(o,t){if(1&o){const e=n.EpF();n.TgZ(0,"div",27)(1,"p-paginator",28),n.NdJ("onPageChange",function(r){n.CHM(e);const s=n.oxw();return n.KtG(s.paginate(r))}),n.qZA()()}if(2&o){const e=n.oxw();n.xp6(1),n.Q6J("rows",e.pagination.rows)("totalRecords",e.pagination.totalRecords)("first",e.pagination.first)}}const It=function(){return{"background-image":"url('assets/img/minfin-edi.jpg')"}};class F{constructor(t,e,i){this.galeriaService=t,this.router=e,this.route=i,this.galerias=[],this.dateRange=[],this.latestPublicacoes=null,this.visualizarModal=!1,this.search="",this.isPublicacoesLoading=!1}ngOnInit(){this.initPagination(),this.route.queryParams.subscribe(t=>{t.search&&(this.search=this.decodificarTexto(t.search),this.getNoticias())})}initPagination(){this.pagination={rows:6,totalRecords:0,page:0,pageCount:1,first:0,paginate:t=>{this.paginate(t)}},this.getNoticias()}paginate(t){this.pagination.page=t.page,this.pagination.rows=t.rows,this.pagination.first=t.first,this.getNoticias()}codificarTexto(t){return encodeURIComponent(t)}decodificarTexto(t){return decodeURIComponent(t)}construirFiltroBusca(){return this.search?`contains(data/titulo/pt, '${this.codificarTexto(this.search)}')`:""}
1getRotaGaleria(t){return["/galeria",this.codificarTexto(t)]}navegarParaGaleria(t){const e=this.codificarTexto(t);this.router.navigate(["/galeria",e])}getNoticias(){this.isPublicacoesLoading=!0;const t=this.pagination.page*this.pagination.rows,e=this.construirFiltroBusca();this.galeriaService.getGalery({$top:this.pagination.rows,$skip:t,$filter:e}).pipe((0,J.x)(()=>this.isPublicacoesLoading=!1)).subscribe(i=>{this.galerias=i.items,this.pagination.totalRecords=i.total,this.galerias.length>0&&(this.latestPublicacoes=this.galerias[0])})}onSearch(t){this.search=t,this.pagination.page=0,this.pagination.first=0;const e={};this.search&&(e.search=this.codificarTexto(this.search)),this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:"merge"}),this.getNoticias()}}F.\u0275fac=function(t){return new(t||F)(n.Y36(T),n.Y36(M.F0),n.Y36(M.gz))},F.\u0275cmp=n.Xpm({type:F,selectors:[["app-galerias"]],viewQuery:function(t,e){if(1&t&&n.Gf(xt,5),2&t){let i;n.iGM(i=n.CRH())&&(e.paginator=i.first)}},decls:18,vars:15,consts:[[1,"content","text-white","im",3,"ngStyle"],[1,"top-head"],[1,"content"],[1,"tit"],["src","assets/img/account_balance2.svg","alt",""],[1,"titulo"],["type","text","appDebounce","",1,"text-center",3,"placeholder","ngModel","ngModelChange","onEvent"],[1,"main"],[1,"container","py-5"],["class","py-3",4,"ngFor","ngForOf"],["class","text-center",4,"ngIf"],["class","text-center w-100",4,"ngIf"],[1,"py-3"],[1,"activities"],[1,"activity-container"],["class","image-container img-one","style","height: 195px;",4,"ngFor","ngForOf"],["class","image-container img-two","style","height: 195px;",4,"ngFor","ngForOf"],["class","image-container img-three","style","height: 400px;",4,"ngFor","ngForOf"],[1,"image-container","img-one",2,"height","195px"],["alt","tennis",3,"src"],[1,"image-container","img-two",2,"height","195px"],["alt","hiking",3,"src"],[1,"image-container","img-three",2,"height","400px"],["alt","running",3,"src"],[1,"overlay",3,"routerLink"],["src","assets/img/arrow-narrow-right.svg","alt","",2,"width","40px"],[1,"text-center"],[1,"text-center","w-100"],[3,"rows","totalRecords","first","onPageChange"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),n._UZ(4,"img",4),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._UZ(7,"br"),n.TgZ(8,"h2",5),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",6),n.NdJ("ngModelChange",function(r){return e.search=r})("onEvent",function(){return e.initPagination()}),n.ALo(12,"translate"),n.qZA()()()(),n._UZ(13,"main",7),n.TgZ(14,"div",8),n.YNc(15,Mt,9,4,"div",9),n.YNc(16,Pt,4,3,"div",10),n.qZA(),n.YNc(17,St,2,3,"div",11)),2&t&&(n.Q6J("ngStyle",n.DdM(14,It)),n.xp6(5),n.hij(" ",n.lcZ(6,8,"pronunciamentos.sala_de_imprensa")," "),n.xp6(4),n.Oqu(n.lcZ(10,10,"header.press.sala_de_imprensa.galeria")),n.xp6(2),n.s9C("placeholder",n.lcZ(12,12,"pronunciamentos.search")),n.Q6J("ngModel",e.search),n.xp6(4),n.Q6J("ngForOf",e.galerias),n.xp6(1),n.Q6J("ngIf",!(null!=e.galerias&&e.galerias.length)),n.xp6(1),n.Q6J("ngIf",null==e.galerias?null:e.galerias.length))},dependencies:[O.sg,O.O5,O.PC,M.rH,Q.q,S.Fj,S.JJ,S.On,W.D,X.X$],styles:['@charset "UTF-8";.banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:right;background-repeat:no-repeat;text-align:center;color:#667085;min-height:400px;padding-top:60px;background-color:#fff8f8}.noticias[_ngcontent-%COMP%]{color:var(--Castanho);font-size:16px;font-family:Montserrat,sans-serif!important;font-weight:700;line-height:24px;word-wrap:break-word}.ler[_ngcontent-%COMP%]{margin-top:60px;color:#667085;font-size:16px;font-family:Montserrat,sans-serif!important;font-weight:300;line-height:24px;word-wrap:break-word}.tituloIntro[_ngcontent-%COMP%]{font-size:2rem;margin:15px 0;color:var(--Castanho);width:100%}.tecnologia[_ngcontent-%COMP%]{color:#1d2939}.subtexto[_ngcontent-%COMP%]{font-size:1.2rem;width:100%}.im[_ngcontent-%COMP%]{background-position:right;background-repeat:no-repeat;background-size:cover}input[_ngcontent-%COMP%]{width:50%;height:50px;padding-left:20px;border-radius:8px;border:1px}.p-input-icon-left[_ngcontent-%COMP%]{width:80%}.p-input-icon-left[_ngcontent-%COMP%]{display:flex;align-items:center;width:40%;margin:0 auto}.p-input-icon-left[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{margin-right:10px}.p-input-icon-left[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{flex-grow:1;padding-left:40px}.linha-horizontal[_ngcontent-%COMP%]{border-top:5px solid var(--Castanho);width:50px;display:inline-block;margin-right:10px;opacity:1}.titulo-noticias[_ngcontent-%COMP%]{display:inline-block;color:var(--Castanho-medio);font-family:Montserrat;font-size:16px;margin-top:1rem;font-style:normal;font-weight:700;line-height:150%}@media (max-width: 768px){.container[_ngcontent-%COMP%]{flex-direction:column}.p-input-icon-left[_ngcontent-%COMP%]{width:100%;left:0;top:auto;margin:0}.frameNoticias[_ngcontent-%COMP%]{margin-top:60px}.itemNoticias[_ngcontent-%COMP%], .dropdownRecentes[_ngcontent-%COMP%]{flex-basis:100%;margin:0}.vectorHifem[_ngcontent-%COMP%]{width:75px}}.content[_ngcontent-%COMP%]{width:100%;padding:20px 0;box-sizing:border-box;align-items:initial}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Roboto;font-size:18px;font-weight:400;line-height:28px;letter-spacing:0em;text-align:justified}.top-head[_ngcontent-%COMP%]{width:100%;padding-left:10%;padding-right:10%;height:500px;
1-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);padding-top:50px;text-align:center}.im[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}.tit[_ngcontent-%COMP%]{padding:8px 16px 7px;height:45px;background:rgba(255,255,255,.2);display:inline-block;margin-top:100px;font-size:16px;line-height:30px;font-family:Montserrat!important;font-weight:500!important;border-radius:8px}.tit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}.top-head[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px}.top-head[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:30px;display:block}.titulo[_ngcontent-%COMP%]{font-size:45px;line-height:55px;text-align:center;display:inline-block}.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.img[_ngcontent-%COMP%]{width:50%}.card-body[_ngcontent-%COMP%]{box-shadow:2px 2px 6px 1px #f4f4f4}.card[_ngcontent-%COMP%]{box-shadow:2px 2px 6px 1px #f4f4f4;margin-top:2rem}.card[_ngcontent-%COMP%]:hover h5[_ngcontent-%COMP%]{color:#0086c9}.card-footer[_ngcontent-%COMP%]{padding:15px;border:0px;background-color:#fff}.card-footer[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{background:rgba(0,134,201,.1490196078);color:#0086c9!important;padding:10px 12px;border:0px;font-family:"Source Sans 3",sans-serif!important;font-size:14px;font-style:normal;font-weight:700;line-height:normal;text-transform:capitalize!important}.card-footer[_ngcontent-%COMP%] .small2[_ngcontent-%COMP%]{color:#0086c9!important;background-color:transparent!important;padding:6px 12px 6px 0;border:0px;border-radius:15px;font-size:14px;font-family:"Source Sans 3",sans-serif!important;font-style:normal;font-weight:600;line-height:normal;margin-left:15px}.card-header[_ngcontent-%COMP%]{height:220px;padding:15px;width:100%;background-size:cover;background-repeat:no-repeat;background-position:top;color:#fff}.card-body[_ngcontent-%COMP%]{padding:15px;background-color:#fff;width:100%}.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#475467;font-size:18px;line-height:27px;height:60px}.card-body[_ngcontent-%COMP%]:hover h5[_ngcontent-%COMP%]{color:#0086c9}.card-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{height:120px}.card-body[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#0086c9!important}.col[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}input[_ngcontent-%COMP%]{width:50%;height:50px;padding-left:20px}.bannerCard[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:0}.bannerCard[_ngcontent-%COMP%], .bannerCard2[_ngcontent-%COMP%]{position:relative;background-repeat:no-repeat;background-size:cover;background-position:center center;width:100%;height:450px;border-radius:4px;color:#fff;text-align:left;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;padding:20px 20px 50px;cursor:pointer}.bannerCard[_ngcontent-%COMP%] .container[_ngcontent-%COMP%], .bannerCard2[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{z-index:1}@media (max-width: 767px){input[_ngcontent-%COMP%]{width:100%}.bannerCard[_ngcontent-%COMP%]{height:90vh!important}.bannerCard[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1em}.bannerCard[_ngcontent-%COMP%] .tema[_ngcontent-%COMP%], .bannerCard[_ngcontent-%COMP%] .subTitulo[_ngcontent-%COMP%]{max-width:100%}.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#542c0d;font-size:18px;line-height:27px;height:90px}}.tema[_ngcontent-%COMP%]{color:#fff;font-size:28px;font-family:Montserrat;font-weight:800;margin-bottom:15px;word-wrap:break-word;max-width:40%}.min[_ngcontent-%COMP%]{background:#FEFBE8;color:#eaaa08!important;padding:6px 12px;border:0px;border-radius:15px;font-size:18px;font-weight:600;max-width:100px;display:inline-block}.date[_ngcontent-%COMP%]{background:rgba(255,255,255,.2);color:#eaaa08!important;padding:6px 12px;border:0px;border-radius:15px;font-size:18px;font-weight:600;max-width:250px;display:inline-block;margin-left:20px}.subTitulo[_ngcontent-%COMP%]{color:#fff;font-size:15px;font-family:Montserrat;font-weight:400;width:100%;word-wrap:break-word;max-width:40%}.background[_ngcontent-%COMP%]{background:#D9D9D9}.link[_ngcontent-%COMP%]{background-color:#0086c9;width:22%;height:172px;margin-top:56px;margin-left:15px;
1display:grid;place-items:center;color:#fff;cursor:pointer}@media (max-width: 768px){.link[_ngcontent-%COMP%]{width:93%}}@media (max-width: 1408px){.p-input-icon-left[_ngcontent-%COMP%]{left:367px!important;top:16rem!important}}@media (max-width: 760px){.p-input-icon-left[_ngcontent-%COMP%]{left:0!important;top:auto!important}.banner[_ngcontent-%COMP%]{padding-top:70px}.subtitleIntro[_ngcontent-%COMP%]{margin-bottom:15px}.subtexto[_ngcontent-%COMP%]{font-size:14px;margin:0 15px}.tituloIntro[_ngcontent-%COMP%]{margin:0 15px}}.activity-container[_ngcontent-%COMP%]{display:grid;column-gap:10px}.img-one[_ngcontent-%COMP%]{grid-area:1/1/2/2}.img-two[_ngcontent-%COMP%]{grid-area:2/1/3/2}.img-three[_ngcontent-%COMP%]{display:block;grid-area:1/2/3/4}.img-four[_ngcontent-%COMP%]{grid-area:1/4/2/5}.img-five[_ngcontent-%COMP%]{grid-area:1/5/2/6}.img-six[_ngcontent-%COMP%]{display:block;grid-area:2/4/3/6}.image-container[_ngcontent-%COMP%]{position:relative;margin-bottom:10px;box-shadow:#00000029 0 1px 3px;border-radius:10px}.image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:10px;object-fit:cover}.overlay[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;top:0;left:0;width:100%;height:100%;background:linear-gradient(180deg,rgba(0,0,0,0),black);border-radius:10px;transition:all .6s linear}.image-container[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{cursor:pointer}.overlay[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:10px;color:#fff}.left-bottom[_ngcontent-%COMP%]{display:grid;grid-template-columns:55% 40%;gap:40px}.weekly-schedule[_ngcontent-%COMP%]{display:flex;flex-direction:column}.weekly-schedule[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:20px;font-size:1.3rem;font-weight:700}.calendar[_ngcontent-%COMP%]{margin-top:10px}.day-and-activity[_ngcontent-%COMP%]{display:grid;grid-template-columns:15% 60% 25%;align-items:center;border-radius:14px;margin-bottom:5px;color:#484d53;box-shadow:#00000029 0 1px 3px}.activity-one[_ngcontent-%COMP%]{background-color:#7c88e080;background-image:linear-gradient(240deg,rgb(124,136,224) 0%,#c3f4fc 100%)}.activity-two[_ngcontent-%COMP%]{background-color:#aee2a4a1;background-image:linear-gradient(240deg,rgba(229,162,67,.6705882353) 0%,#f7f7aa 90%)}.activity-three[_ngcontent-%COMP%]{background-color:#ecfcc376;background-image:linear-gradient(240deg,#97e7d1 0%,#ecfcc3 100%)}.activity-four[_ngcontent-%COMP%]{background-color:#e6a7c3b5;background-image:linear-gradient(240deg,#fc8ebe 0%,#fce5c3 100%)}.day[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;transform:translateY(-10px)}.day[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:600}.day[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-transform:uppercase;font-size:.9rem;font-weight:600;transform:translateY(-3px)}.activity[_ngcontent-%COMP%]{border-left:3px solid #484d53}.participants[_ngcontent-%COMP%]{display:flex;margin-left:20px}.linha-horizontal[_ngcontent-%COMP%]{border-top:5px solid #6D0002;width:50px;display:inline-block;margin-right:10px;opacity:1}']});class E{constructor(t){this.http=t,this.baseUrl=A.N.baseUrl,this.nomeProjecto=A.N.appName,this.apiUrl=`${this.baseUrl}/content/${this.nomeProjecto}/videos`,this.headers=new k.WM({"X-Languages":"pt","X-Flatten":"true","X-ResolveUrls":"ficheiro"})}get(){return this.http.get(`${this.apiUrl}`)}getById(t){return this.http.get(`${this.apiUrl}/${t}`,{headers:this.headers})}getBySlug(t){return this.http.get(`${this.apiUrl}?$filter=data/titulo/pt eq '${t}' or id eq '${t}'`,{headers:this.headers}).pipe((0,j.U)(e=>e.items[0]))}getNews(t){return this.http.get(this.apiUrl,{params:t,headers:this.headers})}}E.\u0275fac=function(t){return new(t||E)(n.LFG(k.eN))},E.\u0275prov=n.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"});var it=w(1481);const zt=["paginator"],kt=function(o){return["../video",o]},Tt=function(o){return{"background-image":o}};function Lt(o,t){if(1&o){const e=n.EpF();
1n.TgZ(0,"div",16)(1,"button",17),n.NdJ("click",function(){const s=n.CHM(e).$implicit,a=n.oxw();return n.KtG(a.mostrarVideo(s))}),n.TgZ(2,"div",18)(3,"span",19),n._UZ(4,"img",20),n.qZA(),n.TgZ(5,"div",21)(6,"span"),n._uU(7,"V\xeddeo"),n.qZA(),n.TgZ(8,"h4"),n._uU(9),n.qZA()()()()()}if(2&o){const e=t.$implicit;n.Q6J("routerLink",n.VKq(3,kt,e.data.titulo)),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Tt,e.data.ficheiro?"url("+e.data.ficheiro+")":"url('assets/img/imagemissao.png')")),n.xp6(7),n.Oqu(e.data.titulo)}}function At(o,t){if(1&o&&(n.TgZ(0,"div",22)(1,"div",23)(2,"h1",24),n._uU(3),n.qZA(),n._UZ(4,"button",25),n.qZA(),n.TgZ(5,"div",26),n._UZ(6,"iframe",27),n.qZA()()),2&o){const e=n.oxw();n.xp6(3),n.Oqu(e.videoSelecionado.data.titulo),n.xp6(3),n.Q6J("src",e.urlSafe,n.uOi)("title",e.videoSelecionado.data.titulo)}}const Et=function(){return{"background-image":"url('assets/img/minfin-edi.jpg')"}};class H{constructor(t,e){this.videoService=t,this.sanitizer=e,this.videos=[],this.dateRange=[],this.latestPublicacoes=null,this.visualizarModal=!1,this.search="",this.isPublicacoesLoading=!1,this.dropdownOptions1=[{label:"Option 1.1",value:"value1.1"},{label:"Option 1.2",value:"value1.2"}],this.dropdownOptions2=[{label:"Option 2.1",value:"value2.1"},{label:"Option 2.2",value:"value2.2"}]}showDialog(){this.visualizarModal=!0}fecharModal(){this.visualizarModal=!1}ngOnInit(){this.initPagination()}initPagination(){this.pagination={rows:6,totalRecords:0,page:0,pageCount:1,first:0,paginate:t=>{this.pagination.page=t.page,this.pagination.rows=t.rows,this.getNoticias()}},this.paginator?.changePage(this.pagination.page),this.getNoticias()}getNoticias(){this.isPublicacoesLoading=!0,this.videoService.getNews({$top:this.pagination.rows,$skip:this.pagination.page*this.pagination.rows,$filter:this.search?`contains(data/titulo/pt, '${this.search}')`:""}).pipe((0,J.x)(()=>this.isPublicacoesLoading=!1)).subscribe(t=>{this.videos=t.items,this.pagination.totalRecords=t.total,this.videos.length>0&&(this.latestPublicacoes=this.videos[0])})}mostrarVideo(t){console.log(t),this.videoSelecionado=t,this.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.videoSelecionado.data.url)}convertToEmbed(t){if(/(?:https?:\/\/)?(?:www\.)?youtube\.com\/embed\/([\w-]+)/.test(t))return t;const s=t.match(/(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=([\w-]+)/);return s&&s[1]?`https://www.youtube.com/embed/${s[1]}`:t}}H.\u0275fac=function(t){return new(t||H)(n.Y36(E),n.Y36(it.H7))},H.\u0275cmp=n.Xpm({type:H,selectors:[["app-videos"]],viewQuery:function(t,e){if(1&t&&n.Gf(zt,5),2&t){let i;n.iGM(i=n.CRH())&&(e.paginator=i.first)}},decls:23,vars:16,consts:[[1,"content","text-white","im",3,"ngStyle"],[1,"top-head"],[1,"content"],[1,"tit"],["src","assets/img/account_balance2.svg","alt",""],[1,"titulo"],["type","text","appDebounce","",1,"text-center",3,"placeholder","ngModel","ngModelChange","onEvent"],[1,"main"],[1,"container","py-5"],[1,"row","row-cols-1","row-cols-md-2","g-4"],["class","col",3,"routerLink",4,"ngFor","ngForOf"],[1,"background2"],[3,"rows","totalRecords","onPageChange"],["id","modalvideo","tabindex","-1","aria-labelledby","modalvideoLabel","aria-hidden","true",1,"modal","modal-lg","fade"],[1,"modal-dialog"],["class","modal-content",4,"ngIf"],[1,"col",3,"routerLink"],["type","button","data-bs-toggle","modal","data-bs-target","#modalvideo",1,"btnVideo",3,"click"],[1,"card","card-imagem",3,"ngStyle"],[1,"play"],["src","assets/img/icon-play.svg","alt",""],[1,"descricao"],[1,"modal-content"],[1,"modal-header"],["id","modalvideoLabel",1,"modal-title","fs-5"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],["width","100%","height","515","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","referrerpolicy","strict-origin-when-cross-origin","allowfullscreen","",3,"src","title"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),n._UZ(4,"img",4),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._UZ(7,"br"),n.TgZ(8,"h2",5),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",6),n.NdJ("ngModelChange",function(r){return e.search=r})("onEvent",function(){return e.initPagination()}),n.ALo(12,"translate"),n.qZA()()()(),n._UZ(13,"main",7),n.TgZ(14,"div",8)(15,"div")(16,"div",9),n.YNc(17,Lt,10,7,"div",10),n.qZA()()(),n.TgZ(18,"div",11)(19,"p-paginator",12),n.NdJ("onPageChange",function(r){return e.pagination.paginate(r)}),n.qZA()(),n.TgZ(20,"div",13)(21,"div",14),n.YNc(22,At,7,3,"div",15),n.qZA()()),2&t&&(n.Q6J("ngStyle",n.DdM(15,Et)),n.xp6(5),n.hij(" ",n.lcZ(6,9,"pronunciamentos.sala_de_imprensa")," "),n.xp6(4),n.Oqu(n.lcZ(10,11,"header.press.sala_de_imprensa.video")),n.xp6(2),n.s9C("placeholder",n.lcZ(12,13,"pronunciamentos.search")),n.Q6J("ngModel",e.search),n.xp6(6),n.Q6J("ngForOf",e.videos),n.xp6(2),n.Q6J("rows",e.pagination.rows)("totalRecords",e.pagination.totalRecords),n.xp6(3),n.Q6J("ngIf",e.videoSelecionado))},dependencies:[O.sg,O.O5,O.PC,M.rH,Q.q,S.Fj,S.JJ,S.On,W.D,X.X$],styles:['@charset "UTF-8";.banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:right;background-repeat:no-repeat;text-align:center;color:#667085;min-height:400px;padding-top:60px;background-color:#fff8f8}.noticias[_ngcontent-%COMP%]{color:var(--Castanho);font-size:16px;font-family:Montserrat,sans-serif!important;font-weight:700;line-height:24px;word-wrap:break-word}.ler[_ngcontent-%COMP%]{margin-top:60px;color:#667085;font-size:16px;font-family:Montserrat,sans-serif!important;font-weight:300;line-height:24px;word-wrap:break-word}.tituloIntro[_ngcontent-%COMP%]{font-size:2rem;margin:15px 0;color:var(--Gray-800);width:100%}.tecnologia[_ngcontent-%COMP%]{color:#1d2939}.subtexto[_ngcontent-%COMP%]{font-size:1.2rem;width:100%}.im[_ngcontent-%COMP%]{background-position:right;background-repeat:no-repeat;background-size:cover}input[_ngcontent-%COMP%]{width:50%;height:50px;padding-left:20px;border-radius:8px;border:1px}.p-input-icon-left[_ngcontent-%COMP%]{width:80%}.p-input-icon-left[_ngcontent-%COMP%]{display:flex;align-items:center;width:40%;margin:0 auto}.p-input-icon-left[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{margin-right:10px}.p-input-icon-left[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{flex-grow:1;padding-left:40px}.linha-horizontal[_ngcontent-%COMP%]{border-top:5px solid var(--Castanho);width:50px;display:inline-block;margin-right:10px;opacity:1}.titulo-noticias[_ngcontent-%COMP%]{display:inline-block;color:var(--Castanho-medio);font-family:Montserrat;font-size:16px;margin-top:1rem;font-style:normal;font-weight:700;line-height:150%}@media (max-width: 768px){.container[_ngcontent-%COMP%]{flex-direction:column}.p-input-icon-left[_ngcontent-%COMP%]{width:100%;left:0;top:auto;margin:0}.frameNoticias[_ngcontent-%COMP%]{margin-top:60px}.itemNoticias[_ngcontent-%COMP%], .dropdownRecentes[_ngcontent-%COMP%]{flex-basis:100%;margin:0}.vectorHifem[_ngcontent-%COMP%]{width:75px}}.content[_ngcontent-%COMP%]{width:100%;padding:20px 0;box-sizing:border-box;align-items:initial}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Roboto;font-size:18px;font-weight:400;line-height:28px;letter-spacing:0em;text-align:justified}.top-head[_ngcontent-%COMP%]{width:100%;padding-left:10%;padding-right:10%;height:500px;
1-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);padding-top:50px;text-align:center}.im[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}.tit[_ngcontent-%COMP%]{padding:8px 16px 7px;height:45px;background:rgba(255,255,255,.2);display:inline-block;margin-top:100px;font-size:16px;line-height:30px;font-family:Montserrat!important;font-weight:500!important;border-radius:8px}.tit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}.top-head[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px}.top-head[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:30px;display:block}.titulo[_ngcontent-%COMP%]{font-size:45px;line-height:55px;text-align:center;display:inline-block}.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.img[_ngcontent-%COMP%]{width:50%}.card-body[_ngcontent-%COMP%]{box-shadow:2px 2px 6px 1px #f4f4f4}.linha-horizontal[_ngcontent-%COMP%]{border-top:5px solid #6D0002;width:50px;display:inline-block;margin-right:10px;opacity:1}.titulo[_ngcontent-%COMP%]{margin:30px 0}.card[_ngcontent-%COMP%]{margin-top:2rem;border:0px!important}.card-imagem[_ngcontent-%COMP%]{height:350px;background-position:top;background-size:cover;z-index:-1;display:flex;justify-content:flex-end;align-items:center;border-radius:16px}.play[_ngcontent-%COMP%]{background-color:#fff;padding:22px 29px;display:inline-block;float:right;margin-top:-40px;margin-right:30px;border-radius:50%;width:75px;height:75px}.descricao[_ngcontent-%COMP%]{text-align:left;width:100%;height:150px;background:linear-gradient(180deg,rgba(0,0,0,0),black);padding:20px 40px;border-radius:16px}.descricao[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;padding:5px 20px;margin-bottom:10px;text-align:center;background-color:#d9d9d9;border-radius:16px;font-weight:700}.descricao[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]:hover h5[_ngcontent-%COMP%]{color:#0086c9}.card-footer[_ngcontent-%COMP%]{padding:15px;border:0px;background-color:#fff}.card-footer[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{background:rgba(0,134,201,.1490196078);color:#0086c9!important;padding:10px 12px;border:0px;font-family:"Source Sans 3",sans-serif!important;font-size:14px;font-style:normal;font-weight:700;line-height:normal;text-transform:capitalize!important}.card-footer[_ngcontent-%COMP%] .small2[_ngcontent-%COMP%]{color:#0086c9!important;background-color:transparent!important;padding:6px 12px 6px 0;border:0px;border-radius:15px;font-size:14px;font-family:"Source Sans 3",sans-serif!important;font-style:normal;font-weight:600;line-height:normal;margin-left:15px}.card-header[_ngcontent-%COMP%]{height:220px;padding:15px;width:100%;background-size:cover;background-repeat:no-repeat;background-position:top;color:#fff}.card-body[_ngcontent-%COMP%]{padding:15px;background-color:#fff;width:100%}.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#475467;font-size:18px;line-height:27px;height:60px}.card-body[_ngcontent-%COMP%]:hover h5[_ngcontent-%COMP%]{color:#0086c9}.card-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{height:120px}.card-body[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#0086c9!important}.col[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}input[_ngcontent-%COMP%]{width:50%;height:50px;padding-left:20px}.bannerCard[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:0}.bannerCard[_ngcontent-%COMP%], .bannerCard2[_ngcontent-%COMP%]{position:relative;background-repeat:no-repeat;background-size:cover;background-position:center center;width:100%;height:450px;border-radius:4px;color:#fff;text-align:left;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;padding:20px 20px 50px;cursor:pointer}.bannerCard[_ngcontent-%COMP%] .container[_ngcontent-%COMP%], .bannerCard2[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{z-index:1}@media (max-width: 767px){input[_ngcontent-%COMP%]{width:100%}.bannerCard[_ngcontent-%COMP%]{height:90vh!important}.bannerCard[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1em}.bannerCard[_ngcontent-%COMP%] .tema[_ngcontent-%COMP%], .bannerCard[_ngcontent-%COMP%] .subTitulo[_ngcontent-%COMP%]{max-width:100%}
1.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#542c0d;font-size:18px;line-height:27px;height:90px}}.tema[_ngcontent-%COMP%]{color:#fff;font-size:28px;font-family:Montserrat;font-weight:800;margin-bottom:15px;word-wrap:break-word;max-width:40%}.min[_ngcontent-%COMP%]{background:#FEFBE8;color:#eaaa08!important;padding:6px 12px;border:0px;border-radius:15px;font-size:18px;font-weight:600;max-width:100px;display:inline-block}.date[_ngcontent-%COMP%]{background:rgba(255,255,255,.2);color:#eaaa08!important;padding:6px 12px;border:0px;border-radius:15px;font-size:18px;font-weight:600;max-width:250px;display:inline-block;margin-left:20px}.subTitulo[_ngcontent-%COMP%]{color:#fff;font-size:15px;font-family:Montserrat;font-weight:400;width:100%;word-wrap:break-word;max-width:40%}.background[_ngcontent-%COMP%]{background:#D9D9D9}.link[_ngcontent-%COMP%]{background-color:#0086c9;width:22%;height:172px;margin-top:56px;margin-left:15px;display:grid;place-items:center;color:#fff;cursor:pointer}@media (max-width: 760px){.banner[_ngcontent-%COMP%]{padding-top:60px}.subtitleIntro[_ngcontent-%COMP%]{margin-bottom:15px}.subtexto[_ngcontent-%COMP%]{font-size:14px;margin:0 15px}.tituloIntro[_ngcontent-%COMP%]{margin:0 15px}}.btnVideo[_ngcontent-%COMP%]{background-color:transparent;border:0px solid;width:100%}']});class B{constructor(t){this.http=t,this.baseUrl=A.N.baseUrl,this.nomeProjecto=A.N.appName,this.apiUrl=`${this.baseUrl}/content/portal-minfin/revista`,this.headers=new k.WM({"X-Languages":"pt","X-Flatten":"true","X-ResolveUrls":"ficheiro, revista"})}get(){return this.http.get(`${this.apiUrl}`)}getById(t){return this.http.get(`${this.apiUrl}/${t}`,{headers:this.headers})}getBySlug(t){return this.http.get(`${this.apiUrl}?$filter=data/titulo/pt eq '${t}' or id eq '${t}'`,{headers:this.headers}).pipe((0,j.U)(e=>e.items[0]))}getNews(t){return this.http.get(this.apiUrl,{params:t,headers:this.headers})}}B.\u0275fac=function(t){return new(t||B)(n.LFG(k.eN))},B.\u0275prov=n.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"});const Bt=["paginator"],Dt=function(o){return["../video",o]},Rt=function(o){return{"background-image":o}};function Zt(o,t){if(1&o){const e=n.EpF();n.TgZ(0,"div",18)(1,"button",19),n.NdJ("click",function(){const s=n.CHM(e).$implicit,a=n.oxw();return n.KtG(a.mostrarVideo(s))}),n.TgZ(2,"div",20)(3,"span",21),n._UZ(4,"img",22),n.qZA(),n.TgZ(5,"div",23)(6,"span"),n._uU(7,"Revista"),n.qZA(),n.TgZ(8,"h4"),n._uU(9),n.qZA()()()()()}if(2&o){const e=t.$implicit;n.Q6J("routerLink",n.VKq(3,Dt,e.data.titulo)),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Rt,e.data.ficheiro?"url("+e.data.ficheiro+")":"url('assets/img/imagemissao.png')")),n.xp6(7),n.Oqu(e.data.titulo)}}function Gt(o,t){if(1&o&&(n.TgZ(0,"div",24)(1,"div",25)(2,"h1",26),n._uU(3),n.qZA(),n._UZ(4,"button",27),n.qZA(),n.TgZ(5,"div",28),n._UZ(6,"iframe",29),n.qZA()()),2&o){const e=n.oxw();n.xp6(3),n.Oqu(e.videoSelecionado.data.titulo),n.xp6(3),n.Q6J("src",e.urlSafe,n.uOi)}}const $t=function(){return{"background-image":"url('assets/img/minfin-edi.jpg')"}};class N{constructor(t,e){this.videoService=t,this.sanitizer=e,this.videos=[],this.dateRange=[],this.latestPublicacoes=null,this.visualizarModal=!1,this.search="",this.isPublicacoesLoading=!1,this.dropdownOptions1=[{label:"Option 1.1",value:"value1.1"},{label:"Option 1.2",value:"value1.2"}],this.dropdownOptions2=[{label:"Option 2.1",value:"value2.1"},{label:"Option 2.2",value:"value2.2"}]}showDialog(){this.visualizarModal=!0}fecharModal(){this.visualizarModal=!1}ngOnInit(){this.initPagination()}initPagination(){this.pagination={rows:6,totalRecords:0,page:0,pageCount:1,first:0,paginate:t=>{this.pagination.page=t.page,this.pagination.rows=t.rows,this.getNoticias()}},this.paginator?.changePage(this.pagination.page),this.getNoticias()}getNoticias(){this.isPublicacoesLoading=!0,this.videoService.getNews({$top:this.pagination.rows,$skip:this.pagination.page*this.pagination.rows,$filter:this.search?`contains(data/titulo/pt, '${this.search}')`:""}).pipe((0,J.x)(()=>this.isPublicacoesLoading=!1)).subscribe(t=>{this.videos=t.items,this.pagination.totalRecords=t.total,this.videos.length>0&&(this.latestPublicacoes=this.videos[0])})}mostrarVideo(t){console.log(t),this.videoSelecionado=t,this.urlSafe=this.sanitizer.bypassSecurityTrustResourceUrl(this.videoSelecionado.data.revista)}}N.\u0275fac=function(t){return new(t||N)(n.Y36(B),n.Y36(it.H7))},N.\u0275cmp=n.Xpm({type:N,selectors:[["app-revista"]],viewQuery:function(t,e){if(1&t&&n.Gf(Bt,5),2&t){let i;n.iGM(i=n.CRH())&&(e.paginator=i.first)}},decls:25,vars:16,consts:[[1,"content","text-white","im",3,"ngStyle"],[1,"top-head"],[1,"content"],[1,"tit"],["src","assets/img/account_balance2.svg","alt",""],[1,"titulo"],["type","text","appDebounce","",1,"text-center",3,"placeholder","ngModel","ngModelChange","onEvent"],[1,"main"],[1,"container","py-5"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex"],[1,"row","row-cols-1","row-cols-md-2","g-4"],["class","col",3,"routerLink",4,"ngFor","ngForOf"],[1,"background2"],[3,"rows","totalRecords","onPageChange"],["id","modalvideo","tabindex","-1","aria-labelledby","modalvideoLabel","aria-hidden","true",1,"modal","modal
1-xl","fade"],[1,"modal-dialog"],["class","modal-content",4,"ngIf"],[1,"col",3,"routerLink"],["type","button","data-bs-toggle","modal","data-bs-target","#modalvideo",1,"btnVideo",3,"click"],[1,"card","card-imagem",3,"ngStyle"],[1,"play"],["src","assets/img/open-book.svg","alt",""],[1,"descricao"],[1,"modal-content"],[1,"modal-header"],["id","modalvideoLabel",1,"modal-title","fs-5"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],["frameborder","0",2,"width","100%","height","70vh",3,"src"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),n._UZ(4,"img",4),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._UZ(7,"br"),n.TgZ(8,"h2",5),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",6),n.NdJ("ngModelChange",function(r){return e.search=r})("onEvent",function(){return e.initPagination()}),n.ALo(12,"translate"),n.qZA()()()(),n._UZ(13,"main",7),n.TgZ(14,"div",8)(15,"div")(16,"div",9),n._UZ(17,"div",10),n.qZA(),n.TgZ(18,"div",11),n.YNc(19,Zt,10,7,"div",12),n.qZA()()(),n.TgZ(20,"div",13)(21,"p-paginator",14),n.NdJ("onPageChange",function(r){return e.pagination.paginate(r)}),n.qZA()(),n.TgZ(22,"div",15)(23,"div",16),n.YNc(24,Gt,7,2,"div",17),n.qZA()()),2&t&&(n.Q6J("ngStyle",n.DdM(15,$t)),n.xp6(5),n.hij(" ",n.lcZ(6,9,"pronunciamentos.sala_de_imprensa")," "),n.xp6(4),n.Oqu(n.lcZ(10,11,"header.press.sala_de_imprensa.revista")),n.xp6(2),n.s9C("placeholder",n.lcZ(12,13,"pronunciamentos.search")),n.Q6J("ngModel",e.search),n.xp6(8),n.Q6J("ngForOf",e.videos),n.xp6(2),n.Q6J("rows",e.pagination.rows)("totalRecords",e.pagination.totalRecords),n.xp6(3),n.Q6J("ngIf",e.videoSelecionado))},dependencies:[O.sg,O.O5,O.PC,M.rH,Q.q,S.Fj,S.JJ,S.On,W.D,X.X$],styles:['@charset "UTF-8";.banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:right;background-repeat:no-repeat;text-align:center;color:#667085;min-height:400px;padding-top:60px;background-color:#fff8f8}.noticias[_ngcontent-%COMP%]{color:var(--Castanho);font-size:16px;font-family:Montserrat,sans-serif!important;font-weight:700;line-height:24px;word-wrap:break-word}.ler[_ngcontent-%COMP%]{margin-top:60px;color:#667085;font-size:16px;font-family:Montserrat,sans-serif!important;font-weight:300;line-height:24px;word-wrap:break-word}.tituloIntro[_ngcontent-%COMP%]{font-size:2rem;margin:15px 0;color:var(--Gray-800);width:100%}.tecnologia[_ngcontent-%COMP%]{color:#1d2939}.subtexto[_ngcontent-%COMP%]{font-size:1.2rem;width:100%}.im[_ngcontent-%COMP%]{background-position:right;background-repeat:no-repeat;background-size:cover}input[_ngcontent-%COMP%]{width:50%;height:50px;padding-left:20px;border-radius:8px;border:1px}.p-input-icon-left[_ngcontent-%COMP%]{width:80%}.p-input-icon-left[_ngcontent-%COMP%]{display:flex;align-items:center;width:40%;margin:0 auto}.p-input-icon-left[_ngcontent-%COMP%] > .pi[_ngcontent-%COMP%]{margin-right:10px}.p-input-icon-left[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{flex-grow:1;padding-left:40px}.linha-horizontal[_ngcontent-%COMP%]{border-top:5px solid var(--Castanho);width:50px;display:inline-block;margin-right:10px;opacity:1}.titulo-noticias[_ngcontent-%COMP%]{display:inline-block;color:var(--Castanho-medio);font-family:Montserrat;font-size:16px;margin-top:1rem;font-style:normal;font-weight:700;line-height:150%}@media (max-width: 768px){.container[_ngcontent-%COMP%]{flex-direction:column}.p-input-icon-left[_ngcontent-%COMP%]{width:100%;left:0;top:auto;margin:0}.frameNoticias[_ngcontent-%COMP%]{margin-top:60px}.itemNoticias[_ngcontent-%COMP%], .dropdownRecentes[_ngcontent-%COMP%]{flex-basis:100%;margin:0}.vectorHifem[_ngcontent-%COMP%]{width:75px}}.content[_ngcontent-%COMP%]{width:100%;padding:20px 0;box-sizing:border-box;align-items:initial}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Roboto;font-size:18px;font-weight:400;line-height:28px;letter-spacing:0em;text-align:justified}.top-head[_ngcontent-%COMP%]{width:100%;padding-left:10%;padding-right:10%;height:500px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);padding-top:50px;text-align:center}.im[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover}.tit[_ngcontent-%COMP%]{padding:8px 16px 7px;height:45px;background:rgba(255,255,255,.2);display:inline-block;margin-top:100px;font-size:16px;line-height:30px;font-family:Montserrat!important;font-weight:500!important;border-radius:8px}.tit[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:10px}.top-head[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px}.top-head[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:30px;display:block}.titulo[_ngcontent-%COMP%]{font-size:45px;line-height:55px;text-align:center;display:inline-block}.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.img[_ngcontent-%COMP%]{width:50%}.card-body[_ngcontent-%COMP%]{box-shadow:2px 2px 6px 1px #f4f4f4}.linha-horizontal[_ngcontent-%COMP%]{border-top:5px solid #6D0002;width:50px;display:inline-block;margin-right:10px;opacity:1}.titulo[_ngcontent-%COMP%]{margin:30px 0}.card[_ngcontent-%COMP%]{margin-top:2rem;border:0px!important}.card-imagem[_ngcontent-%COMP%]{height:350px;background-position:top;background-size:cover;z-index:-1;display:flex;justify-content:flex-end;align-items:center;border-radius:16px}.play[_ngcontent-%COMP%]{background-color:#fff;padding:16px 10px;display:inline-block;float:right;margin-top:-40px;margin-right:30px;border-radius:50%;width:75px;height:75px}.descricao[_ngcontent-%COMP%]{text-align:left;width:100%;height:150px;background:linear-gradient(180deg,rgba(0,0,0,0),black);padding:20px 40px;border-radius:16px}.descricao[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;padding:5px 20px;margin-bottom:10px;text-align:center;background-color:#d9d9d9;border-radius:16px;font-weight:700}
1.descricao[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]:hover h5[_ngcontent-%COMP%]{color:#0086c9}.card-footer[_ngcontent-%COMP%]{padding:15px;border:0px;background-color:#fff}.card-footer[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{background:rgba(0,134,201,.1490196078);color:#0086c9!important;padding:10px 12px;border:0px;font-family:"Source Sans 3",sans-serif!important;font-size:14px;font-style:normal;font-weight:700;line-height:normal;text-transform:capitalize!important}.card-footer[_ngcontent-%COMP%] .small2[_ngcontent-%COMP%]{color:#0086c9!important;background-color:transparent!important;padding:6px 12px 6px 0;border:0px;border-radius:15px;font-size:14px;font-family:"Source Sans 3",sans-serif!important;font-style:normal;font-weight:600;line-height:normal;margin-left:15px}.card-header[_ngcontent-%COMP%]{height:220px;padding:15px;width:100%;background-size:cover;background-repeat:no-repeat;background-position:top;color:#fff}.card-body[_ngcontent-%COMP%]{padding:15px;background-color:#fff;width:100%}.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#475467;font-size:18px;line-height:27px;height:60px}.card-body[_ngcontent-%COMP%]:hover h5[_ngcontent-%COMP%]{color:#0086c9}.card-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{height:120px}.card-body[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:#0086c9!important}.col[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}input[_ngcontent-%COMP%]{width:50%;height:50px;padding-left:20px}.bannerCard[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:0}.bannerCard[_ngcontent-%COMP%], .bannerCard2[_ngcontent-%COMP%]{position:relative;background-repeat:no-repeat;background-size:cover;background-position:center center;width:100%;height:450px;border-radius:4px;color:#fff;text-align:left;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;padding:20px 20px 50px;cursor:pointer}.bannerCard[_ngcontent-%COMP%] .container[_ngcontent-%COMP%], .bannerCard2[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{z-index:1}@media (max-width: 767px){input[_ngcontent-%COMP%]{width:100%}.bannerCard[_ngcontent-%COMP%]{height:90vh!important}.bannerCard[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1em}.bannerCard[_ngcontent-%COMP%] .tema[_ngcontent-%COMP%], .bannerCard[_ngcontent-%COMP%] .subTitulo[_ngcontent-%COMP%]{max-width:100%}.card-body[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#542c0d;font-size:18px;line-height:27px;height:90px}}.tema[_ngcontent-%COMP%]{color:#fff;font-size:28px;font-family:Montserrat;font-weight:800;margin-bottom:15px;word-wrap:break-word;max-width:40%}.min[_ngcontent-%COMP%]{background:#FEFBE8;color:#eaaa08!important;padding:6px 12px;border:0px;border-radius:15px;font-size:18px;font-weight:600;max-width:100px;display:inline-block}.date[_ngcontent-%COMP%]{background:rgba(255,255,255,.2);color:#eaaa08!important;padding:6px 12px;border:0px;border-radius:15px;font-size:18px;font-weight:600;max-width:250px;display:inline-block;margin-left:20px}.subTitulo[_ngcontent-%COMP%]{color:#fff;font-size:15px;font-family:Montserrat;font-weight:400;width:100%;word-wrap:break-word;max-width:40%}.background[_ngcontent-%COMP%]{background:#D9D9D9}.link[_ngcontent-%COMP%]{background-color:#0086c9;width:22%;height:172px;margin-top:56px;margin-left:15px;display:grid;place-items:center;color:#fff;cursor:pointer}@media (max-width: 760px){.banner[_ngcontent-%COMP%]{padding-top:60px}.subtitleIntro[_ngcontent-%COMP%]{margin-bottom:15px}.subtexto[_ngcontent-%COMP%]{font-size:14px;margin:0 15px}.tituloIntro[_ngcontent-%COMP%]{margin:0 15px}}.btnVideo[_ngcontent-%COMP%]{background-color:transparent;border:0px solid;width:100%}']});const Ft=[{path:"galeria",component:F},{path:"galeria/:id",component:$},{path:"video",component:H},{path:"revista",component:N}];class D{}D.\u0275fac=function(t){return new(t||D)},D.\u0275mod=n.oAB({type:D}),D.\u0275inj=n.cJS({imports:[M.Bz.forChild(Ft),M.Bz]});var Ht=w(565);class R{}R.\u0275fac=function(t){return new(t||R)},R.\u0275mod=n.oAB({type:R}),R.\u0275inj=n.cJS({imports:[O.ez,D,Ht.m,L]})}}]);
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.