Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-doe-gallery

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-doe-gallery - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-beta.0

esm2015/lib/directives/media.directive.js

4

bundles/ngx-doe-gallery.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/animations"),require("rxjs/operators"),require("@angular/common"),require("@angular/platform-browser/animations"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("ngx-doe-gallery",["exports","@angular/core","rxjs","@angular/animations","rxjs/operators","@angular/common","@angular/platform-browser/animations","@angular/platform-browser"],t):t((e=e||self)["ngx-doe-gallery"]={},e.ng.core,e.rxjs,e.ng.animations,e.rxjs.operators,e.ng.common,e.ng.platformBrowser.animations,e.ng.platformBrowser)}(this,(function(e,t,r,n,o,i,s,a){"use strict";
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/animations"),require("rxjs/operators"),require("@angular/common"),require("@angular/platform-browser/animations"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("ngx-doe-gallery",["exports","@angular/core","rxjs","@angular/animations","rxjs/operators","@angular/common","@angular/platform-browser/animations","@angular/platform-browser"],t):t((e=e||self)["ngx-doe-gallery"]={},e.ng.core,e.rxjs,e.ng.animations,e.rxjs.operators,e.ng.common,e.ng.platformBrowser.animations,e.ng.platformBrowser)}(this,(function(e,t,n,o,i,r,s,a){"use strict";
/*! *****************************************************************************

@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved.

and limitations under the License.
***************************************************************************** */var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function c(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}var h={galleryLabel:"Image Gallery",viewerLabel:"Displayed gallery image",thumbnailsLabel:"Gallery thumbnails"},d="undefined"!=typeof window,m={scrollBehavior:d&&"scrollBehavior"in document.body.style,nativeMediaLoading:d&&"loading"in Image.prototype,intersectionObserver:d&&"IntersectionObserver"in window},p={ios:d&&!!window.navigator.userAgent.match(/iP(ad|hone|od)/)},f=function(e,t,r,n,o){this.src=e,this.thumbSrc=t,this.alt=r,this.description=n,this.data=o};var g=function(e){function t(t,r,n,o,i,s){var a=e.call(this,t,r,n,o,s)||this;return a.pictureSources=i,a}return c(t,e),t}(f);var b=function(e){function t(t,r,n,o,i){return e.call(this,t,r,n,o,i)||this}return c(t,e),t}(f);var v=function(){function e(e,n){var o=this;this.cd=e,this.elRef=n,this.items=[],this.thumbClick=new t.EventEmitter,this.thumbHover=new t.EventEmitter,this.showStartArrow=!1,this.showEndArrow=!1,this.destroy$=new r.Subject,this.smoothScrollAllowed=!1,this.onArrowsObserved=function(e){var t=e[0].target,r=t===o.thumbsRef.first.nativeElement?e[0]:e[1],n=t===o.thumbsRef.last.nativeElement?e[0]:e[1];r&&(o.showStartArrow=r.intersectionRatio<1),n&&(o.showEndArrow=n.intersectionRatio<1),o.cd.detectChanges()}}return Object.defineProperty(e.prototype,"scrollBehavior",{get:function(){return this.smoothScrollAllowed?this._scrollBehavior:"auto"},set:function(e){this._scrollBehavior=e||"smooth"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){return"doe-thumbs--"+this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollKey",{get:function(){return this.vertical?"scrollTop":"scrollLeft"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostOffsetAxis",{get:function(){return this.vertical?this.elRef.nativeElement.offsetHeight:this.elRef.nativeElement.offsetWidth},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=this,r=e.arrows,n=e.items,o=e.orientation;if(o&&null!=o.currentValue){var i=o.currentValue;this.vertical="left"===i||"right"===i}if(r&&(r.currentValue&&this.items&&this.items.length?this.observeArrows():r.currentValue||(this.showStartArrow=!1,this.showEndArrow=!1,this.unobserveArrows())),n&&n.currentValue){var s=n.currentValue||[],a=n.previousValue||[];if(s.length===a.length)return;this.arrows&&s.length&&this.observeArrows(),a.length||setTimeout((function(){t.centerThumbIfNeeded(t.selectedIndex),t.smoothScrollAllowed=!0}))}},e.prototype.ngOnDestroy=function(){this.destroy$.next(null),this.destroy$.complete(),this.arrowObserver&&this.arrowObserver.disconnect()},e.prototype.slide=function(e){var t;if(this.arrowSlideByLength)t=this.arrowSlideByLength;else{var r=this.thumbListRef.nativeElement,n=this.vertical?r.scrollHeight:r.scrollWidth,o=this.vertical?r.offsetHeight:r.offsetWidth;t=Math.min(o,n-o)}this.scroll(t*e)},e.prototype.centerThumbIfNeeded=function(e){if(this.items&&!(this.items.length<=1)){var t=this.thumbsRef.toArray()[e].nativeElement,r=t.offsetLeft,n=t.offsetTop,o=t.offsetWidth,i=t.offsetHeight,s=this.vertical?n:r,a=this.vertical?i:o,l=this.hostOffsetAxis,c=this.thumbListRef.nativeElement[this.scrollKey],u=s+a/2-l/2-c;(c+l<s+a||c>s)&&this.scroll(u)}},e.prototype.select=function(e){var t=this;this.selectedIndex=e,this.cd.detectChanges(),this.autoScroll&&setTimeout((function(){return t.centerThumbIfNeeded(e)}))},e.prototype.onItemErrored=function(e){e._thumbFailed=!0},e.prototype.emitEvent=function(e,t,r,n){n.emit({index:e,item:t,event:r})},e.prototype.scroll=function(e){var t=this;if(d)if(m.scrollBehavior||"auto"===this.scrollBehavior)this.thumbListRef.nativeElement[this.scrollKey]+=e;else{null!=this.scrollId&&cancelAnimationFrame(this.scrollId);var r=Math.abs(e),n=Date.now(),o=200*(Math.log10(r)-1.1);o<0&&(o=200);var i=0,s=function(){var a=Math.ceil((Date.now()-n)/o*r),l=Math.min(a-i,r-i);l*=Math.sign(e),i=a,t.thumbListRef.nativeElement[t.scrollKey]+=l,i<=r&&(t.scrollId=requestAnimationFrame(s))};this.scrollId=requestAnimationFrame(s)}},e.prototype.observeArrows=function(){var e=this;this.arrowObserver?this.arrowObserver.disconnect():this.arrowObserver=new IntersectionObserver(this.onArrowsObserved,{root:this.thumbListRef.nativeElement,threshold:1}),setTimeout((function(){e.arrowObserver.observe(e.thumbsRef.first.nativeElement),e.arrowObserver.observe(e.thumbsRef.last.nativeElement)}))},e.prototype.unobserveArrows=function(){this.arrowObserver&&this.arrowObserver.disconnect()},e.decorators=[{type:t.Component,args:[{selector:"doe-thumbs",template:'<div\r\n *ngIf="showStartArrow"\r\n class="doe-thumbs-arrow doe-thumbs-arrow-prev"\r\n (click)="slide(-1)"\r\n>\r\n <div *ngIf="!arrowTemplate; else arrowTemplate">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n\r\n<ul\r\n #thumbs\r\n [style.scrollBehavior]="scrollBehavior"\r\n tabindex="0"\r\n [attr.aria-label]="aria?.thumbnailsLabel"\r\n>\r\n <li *ngIf="!items || !items.length" class="doe-thumbs-initial-item"></li>\r\n <li\r\n #thumb\r\n *ngFor="let item of items; let i = index"\r\n [class.doe-thumbs-item--selected]="i === selectedIndex"\r\n aria-hidden="true"\r\n (click)="emitEvent(i, item, $event, thumbClick)"\r\n (mouseenter)="emitEvent(i, item, $event, thumbHover)"\r\n >\r\n <ng-container *ngIf="!thumbTemplate; else customThumbTemplate">\r\n <img\r\n [src]="item.thumbSrc || item.src"\r\n [alt]="item.alt"\r\n (error)="onItemErrored(item)"\r\n />\r\n\r\n <ng-container *ngIf="item._thumbFailed">\r\n <div\r\n *ngIf="!errorTemplate; else errorTemplate"\r\n class="doe-thumbs-error"\r\n >\r\n <div class="doe-thumbs-error-icon">⚠</div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #customThumbTemplate>\r\n <ng-container\r\n *ngTemplateOutlet="\r\n thumbTemplate;\r\n context: { index: i, selectedIndex: selectedIndex, item: item }\r\n "\r\n ></ng-container>\r\n </ng-template>\r\n </li>\r\n</ul>\r\n\r\n<div\r\n *ngIf="showEndArrow"\r\n class="doe-thumbs-arrow doe-thumbs-arrow-next"\r\n (click)="slide(1)"\r\n>\r\n <div *ngIf="!arrowTemplate; else arrowTemplate">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{flex:1 0 auto;position:relative}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;border:1px solid #252525;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:"";display:block;position:absolute;left:0;bottom:0;width:100%;height:10px;background-color:#ffffffab;box-shadow:0 0 1px #000}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#222}.doe-thumbs-error-icon{font-size:20px;color:#f5f5f5}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}']}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},e.propDecorators={items:[{type:t.Input}],selectedIndex:[{type:t.Input}],aria:[{type:t.Input}],orientation:[{type:t.Input}],arrows:[{type:t.Input}],arrowSlideByLength:[{type:t.Input}],autoScroll:[{type:t.Input}],thumbTemplate:[{type:t.Input}],arrowTemplate:[{type:t.Input}],errorTemplate:[{type:t.Input}],scrollBehavior:[{type:t.Input}],thumbClick:[{type:t.Output}],thumbHover:[{type:t.Output}],thumbListRef:[{type:t.ViewChild,args:["thumbs",{static:!0}]}],thumbsRef:[{type:t.ViewChildren,args:["thumb"]}],cssClass:[{type:t.HostBinding,args:["class"]}]},e}();var y=function(){function e(e,n,o){var i=this;this.hostRef=e,this.cd=n,this.zone=o,this.imageClick=new t.EventEmitter,this.descriptionClick=new t.EventEmitter,this.selection=new t.EventEmitter,this.UA=p,this._destroy$=new r.Subject,this._listX=0,this.onResize=function(){setTimeout((function(){var e=i.items;i.noAnimation=!0,e&&e.length?(i.readDimensions(),i._fringeCount=i.getFringeCount(),i.displayedItems=i.loop?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}(e.slice(-i._fringeCount),e,e.slice(0,i._fringeCount)):e,i.cd.detectChanges(),i.center()):i.shift(0),setTimeout((function(){return i.noAnimation=!1}))}))},this.shiftByDelta=function(e){i.shift(i._listX-e)}}return Object.defineProperty(e.prototype,"itemWidth",{set:function(e){this.itemListRef.nativeElement.style.setProperty("--item-width",e||"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lazyLoading",{get:function(){return"lazy"===this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noAnimation",{set:function(e){this.itemListRef.nativeElement.style.transitionDuration=e?"0ms":""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showArrow",{get:function(){return this.arrows&&this.items&&this.items.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showPrevArrow",{get:function(){return this.showArrow&&(this.selectedIndex>0||this.loop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showNextArrow",{get:function(){return this.showArrow&&(this.selectedIndex<this.items.length-1||this.loop)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=this,r=e.thumbsOrientation,n=e.items;if(r&&!r.firstChange&&(r.currentValue&r.previousValue||setTimeout((function(){t.readDimensions(),t.center(),t.cd.detectChanges()}))),n&&n.currentValue&&n.currentValue.length){this.onResize();var o=n.currentValue[this.selectedIndex];o&&(o._seen=!0)}},e.prototype.ngOnInit=function(){var e=this,t={passive:!0};d&&r.fromEvent(window,"resize",t).pipe(o.takeUntil(this._destroy$)).subscribe(this.onResize),d&&this.mouseGestures&&this.zone.runOutsideAngular((function(){var r,n=e.itemListRef.nativeElement,o=0,i=0,s=function(n){r=n,e.noAnimation=!0,document.addEventListener("mousemove",a,t),document.addEventListener("mouseup",l,t)},a=function(t){o=Math.max(Math.abs(r.x-t.x)),i=Math.max(Math.abs(r.y-t.y)),e.shiftByDelta(t.movementX)},l=function(t){var n=r.x-t.x;e.noAnimation=!1,e.zone.run((function(){return e.selectBySwipeStats(n)})),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l)},c=function(e){(o>10||i>10)&&e.stopPropagation(),i=o=0},u=function(e){return e.preventDefault()};n.addEventListener("mousedown",s,t),n.addEventListener("click",c,{capture:!0}),n.addEventListener("dragstart",u),e._destroy$.subscribe((function(){n.removeEventListener("mousedown",s),n.removeEventListener("click",c),n.removeEventListener("dragstart",u)}))})),d&&this.touchGestures&&this.zone.runOutsideAngular((function(){var r,n,o=e.itemListRef.nativeElement,i=null,s=function(t){r=t,e.noAnimation=!0},a=function(t){if(r&&1===t.touches.length){var o=r.touches[0],s=t.touches[0];if(null==i){var a=Math.abs(s.clientX-o.clientX),l=Math.abs(s.clientY-o.clientY);(a||l)&&(i=1.2*a>=l)}i&&(e.shiftByDelta(s.clientX-(n||r).touches[0].clientX),n=t,p.ios&&(t.preventDefault(),t.stopPropagation()))}},l=function(){if(e.noAnimation=!1,n){var t=r.touches[0].clientX-n.touches[0].clientX;e.zone.run((function(){return e.selectBySwipeStats(t)}))}i=null,r=null,n=null};o.addEventListener("touchstart",s,t),document.addEventListener("touchmove",a,{passive:!p.ios}),document.addEventListener("touchend",l,t),e._destroy$.subscribe((function(){o.removeEventListener("touchstart",s),document.removeEventListener("touchmove",a),document.removeEventListener("touchend",l)}))}))},e.prototype.ngOnDestroy=function(){this._destroy$.next(null),this._destroy$.complete()},e.prototype.getSrc=function(e,t){var r=this.isInScrollportProximity(t);return!this.lazyLoading||e._seen||r?e.src:""},e.prototype.isInScrollportProximity=function(e){this.loop&&(e-=this._fringeCount);var t=Math.floor(Math.ceil(this._viewerWidth/(this._itemWidth+1))/2)+1||1,r=Math.abs(this.selectedIndex-e);return this.loop&&Math.abs(r-this.items.length)<=t||r<=t},e.prototype.isYoutube=function(e){return!!e.src.match(/youtube.*\/embed\//)},e.prototype.isVideo=function(e){return e instanceof b},e.prototype.selectByDelta=function(e){this.select(this.selectedIndex+e)},e.prototype.select=function(e){var t=this,r=!this.items[e];if(this.selectedIndex===e||!this.loop&&r)this.center();else{if(this.loop&&r){var n=e;e=n-Math.sign(e)*this.items.length,this.noAnimation=!0,setTimeout((function(){var e=t._listX-Math.sign(n)*t.items.length*t._itemWidth;t.shift(e),setTimeout((function(){t.noAnimation=!1,t.center()}))}))}if(this.isVideo(this.items[e])){var o=this.itemsRef.toArray()[this.selectedIndex].nativeElement.querySelector("video");o&&o.pause()}this.items[e]._seen=!0,this.selectedIndex=e,this.selection.emit(e),r||this.center()}},e.prototype.onImageClick=function(e,t){this.imageClick.emit({event:t,item:e,index:this.items.indexOf(e)})},e.prototype.onTab=function(e){var t=this;e>=0&&e<this.items.length&&(this.select(e),requestAnimationFrame((function(){return t.hostRef.nativeElement.scrollLeft=0})))},e.prototype.onItemLoaded=function(e,t){t.target.getAttribute("src")&&(e._loaded=!0,this.cd.detectChanges())},e.prototype.onItemErrored=function(e,t){t.target.getAttribute("src")&&(e._failed=!0,this.cd.detectChanges())},e.prototype.center=function(){var e=(this._viewerWidth-this._itemWidth)/2;this.shift((this.selectedIndex+this._fringeCount)*this._itemWidth-e)},e.prototype.getFringeCount=function(){return this.loop?Math.min(Math.ceil(this._viewerWidth/(this._itemWidth+1)),this.items.length):0},e.prototype.readDimensions=function(){this._viewerWidth=this.hostRef.nativeElement.offsetWidth,this._itemWidth=this.hostRef.nativeElement.querySelector("li").offsetWidth},e.prototype.selectBySwipeStats=function(e){var t=Math.ceil((Math.abs(e)-25)/this._itemWidth);t?this.selectByDelta(t*Math.sign(e)):this.center()},e.prototype.shift=function(e){this.itemListRef.nativeElement.style.transform="translate3d("+-(this._listX=e)+"px, 0, 0)"},e.decorators=[{type:t.Component,args:[{selector:"doe-viewer",template:'<div\r\n *ngIf="showPrevArrow"\r\n class="doe-viewer-arrow doe-viewer-arrow-prev"\r\n (click)="selectByDelta(-1)"\r\n>\r\n <doe-chevron-icon\r\n *ngIf="!arrowTemplate; else arrowTemplate"\r\n ></doe-chevron-icon>\r\n</div>\r\n\r\n<ul #itemList [attr.aria-label]="aria?.viewerLabel">\r\n <li *ngIf="!displayedItems?.length" class="doe-viewer-initial-item"></li>\r\n <li\r\n #items\r\n *ngFor="let item of displayedItems; let i = index"\r\n [class.doe-viewer-item--selected]="i === selectedIndex"\r\n tabindex="0"\r\n [attr.aria-label]="item.alt"\r\n [attr.aria-describedby]="\'doe-viewer-aria-description-\' + i"\r\n (click)="onImageClick(item, $event)"\r\n (keydown.Tab)="onTab(i + 1)"\r\n (keydown.shift.Tab)="onTab(i - 1)"\r\n >\r\n <ng-container *ngIf="!itemTemplate; else customTemplate">\r\n <ng-container *ngIf="isInScrollportProximity(i)">\r\n <ng-container *ngIf="getSrc(item, i); let src">\r\n <picture *ngIf="!isVideo(item)" @remove>\r\n <source\r\n *ngFor="let source of item.pictureSources"\r\n [srcset]="source.srcset"\r\n [attr.media]="source.media"\r\n [attr.sizes]="source.sizes"\r\n [attr.type]="source.type"\r\n />\r\n <img\r\n [src]="src"\r\n [alt]="item.alt"\r\n [class.doe-viewer-media-loading]="item._seen && !item._loaded"\r\n [style.objectFit]="objectFit"\r\n (load)="onItemLoaded(item, $event)"\r\n (error)="onItemErrored(item, $event)"\r\n />\r\n </picture>\r\n \x3c!-- Using loadedmetadata instead of loadeddata because iOS loads data lazily upon user\'s interaction --\x3e\r\n <video\r\n @remove\r\n *ngIf="!isYoutube(item) && isVideo(item)"\r\n [src]="src"\r\n [poster]="item.thumbSrc"\r\n [class.doe-viewer-media-loading]="item._seen && !item._loaded"\r\n [style.objectFit]="objectFit"\r\n controls\r\n playsinline\r\n (loadedmetadata)="onItemLoaded(item, $event)"\r\n (error)="onItemErrored(item, $event)"\r\n ></video>\r\n\r\n <iframe\r\n @remove\r\n *ngIf="isYoutube(item)"\r\n [src]="src | safe"\r\n frameborder="0"\r\n allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\r\n allowfullscreen\r\n (load)="onItemLoaded(item, $event)"\r\n ></iframe>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="item._seen && !item._loaded && !item._failed">\r\n <ng-container *ngTemplateOutlet="loadingTemplate"></ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf="item._failed">\r\n <div\r\n *ngIf="!errorTemplate; else errorTemplate"\r\n class="doe-viewer-error"\r\n >\r\n <div class="doe-viewer-error-icon">⚠</div>\r\n <p class="doe-viewer-error-text">\r\n {{ errorText || \'Loading of this media failed\' }}\r\n </p>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <span\r\n [id]="\'doe-viewer-aria-description-\' + i"\r\n class="doe-viewer-aria-description"\r\n [innerHTML]="item.description"\r\n aria-hidden="true"\r\n ></span>\r\n\r\n <ng-template #customTemplate>\r\n <ng-container\r\n *ngTemplateOutlet="\r\n itemTemplate;\r\n context: {\r\n index: items.indexOf(item),\r\n selectedIndex: selectedIndex,\r\n item: item,\r\n seen: item._seen\r\n }\r\n "\r\n ></ng-container>\r\n </ng-template>\r\n </li>\r\n</ul>\r\n\r\n<ng-container *ngIf="items?.length <= 0">\r\n <ng-container *ngTemplateOutlet="loadingTemplate"></ng-container>\r\n</ng-container>\r\n\r\n<div\r\n *ngIf="showNextArrow"\r\n class="doe-viewer-arrow doe-viewer-arrow-next"\r\n (click)="selectByDelta(1)"\r\n>\r\n <doe-chevron-icon\r\n *ngIf="!arrowTemplate; else arrowTemplate"\r\n ></doe-chevron-icon>\r\n</div>\r\n\r\n<doe-counter\r\n *ngIf="imageCounter && items?.length"\r\n [itemQuantity]="items?.length"\r\n [selectedIndex]="selectedIndex"\r\n [orientation]="imageCounterOrientation"\r\n></doe-counter>\r\n\r\n<div\r\n *ngIf="descriptions && items"\r\n class="doe-viewer-description"\r\n [class.doe-viewer-description--above-counter]="\r\n imageCounter && imageCounterOrientation === \'bottom\'\r\n "\r\n aria-hidden="true"\r\n>\r\n <div\r\n *ngIf="items[selectedIndex]?.description as description"\r\n class="doe-viewer-description-inner"\r\n [innerHTML]="description"\r\n (click)="descriptionClick.emit($event)"\r\n ></div>\r\n</div>\r\n',changeDetection:t.ChangeDetectionStrategy.OnPush,animations:[n.trigger("remove",[n.transition(":leave",n.animate("0ms 100ms"))])],styles:[':host{display:block;position:relative;width:100%;height:100%;overflow:hidden;outline:0;background-color:#232323;z-index:1}ul{--item-width:calc(100% - 0.01px);display:flex;width:100%;height:100%;transition:transform .4s;scrollbar-width:none;-ms-overflow-style:none}ul::-webkit-scrollbar{width:0;height:0}li{display:flex;align-items:center;flex:none;position:relative;width:var(--item-width);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}picture{width:100%;height:100%}iframe,img,video{width:100%;height:100%;background-color:transparent;transition:opacity .3s ease-out;outline:0}iframe[src=""],img[src=""],video[src=""]{opacity:0}iframe.doe-viewer-media-loading,img.doe-viewer-media-loading,video.doe-viewer-media-loading{opacity:.5}img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.doe-viewer-description{position:absolute;bottom:5px;width:100%;display:flex;justify-content:center}.doe-viewer-description--above-counter{bottom:35px}.doe-viewer-description-inner{display:inline-block;background:#000;opacity:.8;color:#fff;padding:6px 15px;max-width:80%;font-size:.95em;text-align:center}.doe-viewer-aria-description{opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;bottom:0;left:50%;transform:translateX(-50%)}.doe-viewer-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background-color:#f5f5f5;color:#424242}.doe-viewer-error-icon{font-size:40px}.doe-viewer-error-text{margin-top:20px;letter-spacing:.01em}.doe-viewer-arrow{display:flex;position:absolute;top:50%;transform:translateY(-50%);z-index:100;cursor:pointer}.doe-viewer-arrow-prev{left:0;transform:rotate(180deg) translateY(50%)}.doe-viewer-arrow-next{right:0}.doe-viewer-arrow doe-chevron-icon{margin:15px 6px;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-viewer-arrow doe-chevron-icon:hover{opacity:1}}.doe-viewer-arrow doe-chevron-icon::ng-deep svg{height:32px;width:32px}']}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:t.NgZone}]},e.propDecorators={items:[{type:t.Input}],arrows:[{type:t.Input}],selectedIndex:[{type:t.Input}],descriptions:[{type:t.Input}],errorText:[{type:t.Input}],mouseGestures:[{type:t.Input}],touchGestures:[{type:t.Input}],imageCounter:[{type:t.Input}],imageCounterOrientation:[{type:t.Input}],loading:[{type:t.Input}],loop:[{type:t.Input}],objectFit:[{type:t.Input}],itemTemplate:[{type:t.Input}],loadingTemplate:[{type:t.Input}],errorTemplate:[{type:t.Input}],arrowTemplate:[{type:t.Input}],thumbsOrientation:[{type:t.Input}],aria:[{type:t.Input}],itemWidth:[{type:t.Input}],imageClick:[{type:t.Output}],descriptionClick:[{type:t.Output}],selection:[{type:t.Output}],itemListRef:[{type:t.ViewChild,args:["itemList",{static:!0}]}],itemsRef:[{type:t.ViewChildren,args:["items"]}]},e}();var w=function(){function e(){this.selectedIndex=0,this.aria=h,this.arrows=!0,this.descriptions=!1,this.mouseGestures=!0,this.touchGestures=!0,this.imageCounter=!0,this.imageCounterOrientation="bottom",this.loading="auto",this.loop=!1,this.objectFit="cover",this.thumbs=!0,this.thumbsAutoScroll=!0,this.thumbsOrientation="bottom",this.thumbsArrows=!0,this.thumbsScrollBehavior="smooth",this.imageClick=new t.EventEmitter,this.thumbClick=new t.EventEmitter,this.thumbHover=new t.EventEmitter,this.descriptionClick=new t.EventEmitter,this.selection=new t.EventEmitter,this._tabindex=0}return Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.aria&&this.aria.galleryLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_galleryColumn",{get:function(){return"top"===this.thumbsOrientation||"bottom"===this.thumbsOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_thumbsOrientationFlag",{get:function(){return"top"===this.thumbsOrientation||"bottom"===this.thumbsOrientation?6:24},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this.viewerElRef.nativeElement.focus()},e.prototype.next=function(){this.viewerRef.selectByDelta(1)},e.prototype.prev=function(){this.viewerRef.selectByDelta(-1)},e.prototype.select=function(e){this.viewerRef.select(e),this.thumbsRef.select(e),this._selectInternal(e)},e.prototype.slideThumbs=function(e){this.thumbsRef.slide(e)},e.prototype._onThumbClick=function(e){this.viewerRef.select(e.index),this.thumbClick.emit(e),this._selectInternal(e.index)},e.prototype._selectInternal=function(e){this.selectedIndex=e,this.selection.emit(this.items[e])},e.decorators=[{type:t.Component,args:[{selector:"doe-gallery",template:'<doe-thumbs\r\n *ngIf="thumbs"\r\n [items]="items"\r\n [selectedIndex]="selectedIndex"\r\n [orientation]="thumbsOrientation"\r\n [arrows]="thumbsArrows"\r\n [arrowSlideByLength]="thumbsArrowSlideByLength"\r\n [autoScroll]="thumbsAutoScroll"\r\n [scrollBehavior]="thumbsScrollBehavior"\r\n [thumbTemplate]="thumbTemplate"\r\n [arrowTemplate]="thumbsArrowTemplate"\r\n [errorTemplate]="thumbErrorTemplate"\r\n [aria]="aria"\r\n (thumbClick)="_onThumbClick($event)"\r\n (thumbHover)="thumbHover.emit($event)"\r\n></doe-thumbs>\r\n\r\n<doe-viewer\r\n tabindex="0"\r\n [items]="items"\r\n [selectedIndex]="selectedIndex"\r\n [arrows]="arrows"\r\n [descriptions]="descriptions"\r\n [errorText]="errorText"\r\n [mouseGestures]="mouseGestures"\r\n [touchGestures]="touchGestures"\r\n [imageCounter]="imageCounter"\r\n [imageCounterOrientation]="imageCounterOrientation"\r\n [itemWidth]="itemWidth"\r\n [objectFit]="objectFit"\r\n [loading]="loading"\r\n [itemTemplate]="itemTemplate"\r\n [loadingTemplate]="loadingTemplate || defaultLoadingTemplate"\r\n [errorTemplate]="errorTemplate"\r\n [loop]="loop"\r\n [thumbsOrientation]="_thumbsOrientationFlag"\r\n [arrowTemplate]="arrowTemplate"\r\n [aria]="aria"\r\n (imageClick)="imageClick.emit($event)"\r\n (descriptionClick)="descriptionClick.emit($event)"\r\n (selection)="_selectInternal($event); thumbsRef?.select($event)"\r\n></doe-viewer>\r\n\r\n<ng-template #defaultLoadingTemplate>\r\n <div class="doe-loading">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n</ng-template>\r\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;height:600px;width:500px;outline:0;position:relative;background-color:#252525;border-radius:5px}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]}]}],e.propDecorators={items:[{type:t.Input}],selectedIndex:[{type:t.Input}],aria:[{type:t.Input}],arrows:[{type:t.Input}],descriptions:[{type:t.Input}],errorText:[{type:t.Input}],mouseGestures:[{type:t.Input}],touchGestures:[{type:t.Input}],imageCounter:[{type:t.Input}],imageCounterOrientation:[{type:t.Input}],itemWidth:[{type:t.Input}],loading:[{type:t.Input}],loop:[{type:t.Input}],objectFit:[{type:t.Input}],itemTemplate:[{type:t.Input}],loadingTemplate:[{type:t.Input}],errorTemplate:[{type:t.Input}],arrowTemplate:[{type:t.Input}],thumbs:[{type:t.Input}],thumbsAutoScroll:[{type:t.Input}],thumbsOrientation:[{type:t.Input}],thumbsArrows:[{type:t.Input}],thumbsArrowSlideByLength:[{type:t.Input}],thumbsScrollBehavior:[{type:t.Input}],thumbTemplate:[{type:t.Input}],thumbsArrowTemplate:[{type:t.Input}],thumbErrorTemplate:[{type:t.Input}],imageClick:[{type:t.Output}],thumbClick:[{type:t.Output}],thumbHover:[{type:t.Output}],descriptionClick:[{type:t.Output}],selection:[{type:t.Output}],viewerRef:[{type:t.ViewChild,args:[y,{static:!1}]}],thumbsRef:[{type:t.ViewChild,args:[v,{static:!1}]}],viewerElRef:[{type:t.ViewChild,args:[y,{static:!1,read:t.ElementRef}]}],_tabindex:[{type:t.HostBinding,args:["tabindex"]}],ariaLabel:[{type:t.HostBinding,args:["attr.aria-label"]}],_galleryColumn:[{type:t.HostBinding,args:["class.doe-gallery--column"]}],next:[{type:t.HostListener,args:["keydown.arrowright"]}],prev:[{type:t.HostListener,args:["keydown.arrowleft"]}]},e}();var x=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"doe-counter",template:'\n <span aria-hidden="true">\n {{ selectedIndex + 1 }}<span class="doe-counter-delimiter">/</span\n >{{ itemQuantity || 0 }}\n </span>\n ',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{position:absolute;left:50%;transform:translateX(-50%);background:#000;padding:4px 7px 3px;color:#fff;opacity:.7;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host.top{top:0}:host.bottom{bottom:0}.doe-counter-delimiter{padding:0 2px}"]}]}],e.propDecorators={itemQuantity:[{type:t.Input}],selectedIndex:[{type:t.Input}],orientation:[{type:t.HostBinding,args:["class"]},{type:t.Input}]},e}();var I=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"doe-chevron-icon",template:'\x3c!-- Icon made by Dave Gandy from www.flaticon.com --\x3e\r\n<svg\r\n version="1.1"\r\n xmlns="http://www.w3.org/2000/svg"\r\n xmlns:xlink="http://www.w3.org/1999/xlink"\r\n x="0px"\r\n y="0px"\r\n viewBox="0 0 407.436 407.436"\r\n xml:space="preserve"\r\n>\r\n <polygon\r\n points="112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 "\r\n />\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n</svg>\r\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["svg{width:26px;height:26px;fill:#fff;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);display:block}"]}]}],e}(),T=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)},e.decorators=[{type:t.Pipe,args:[{name:"safe"}]}],e.ctorParameters=function(){return[{type:a.DomSanitizer}]},e}();var O=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[w,v,y,I,x,T],imports:[i.CommonModule,s.BrowserAnimationsModule],exports:[w]}]}],e}();e.GalleryComponent=w,e.GalleryImage=g,e.GalleryItem=f,e.GalleryModule=O,e.GalleryVideo=b,e.SUPPORT=m,e.UA=p,e.isBrowser=d,e.orientations={left:2,right:4,top:8,bottom:16},e.ɵa=y,e.ɵb=v,e.ɵc=I,e.ɵd=x,e.ɵe=T,Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function c(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}var h={galleryLabel:"Image Gallery",viewerLabel:"Displayed gallery image",thumbnailsLabel:"Gallery thumbnails"},u="undefined"!=typeof window,m={scrollBehavior:u&&"scrollBehavior"in document.body.style,nativeMediaLoading:u&&"loading"in Image.prototype,intersectionObserver:u&&"IntersectionObserver"in window},p={ios:u&&!!window.navigator.userAgent.match(/iP(ad|hone|od)/)},f=function(e,t,n,o,i){this.src=e,this.thumbSrc=t,this.alt=n,this.description=o,this.data=i};var b=function(e){function t(t,n,o,i,r,s){var a=e.call(this,t,n,o,i,s)||this;return a.pictureSources=r,a}return c(t,e),t}(f);var g=function(e){function t(t,n,o,i,r){return e.call(this,t,n,o,i,r)||this}return c(t,e),t}(f);var v=function(e){return e instanceof g};var y=function(){function e(e,o){var i=this;this._cd=e,this._elRef=o,this.items=[],this.thumbClick=new t.EventEmitter,this.thumbHover=new t.EventEmitter,this.isVideo=v,this._showStartArrow=!1,this._showEndArrow=!1,this._destroy$=new n.Subject,this._smoothScrollAllowed=!1,this.onArrowsObserved=function(e){var t=e[0].target,n=t===i.thumbsRef.first.nativeElement?e[0]:e[1],o=t===i.thumbsRef.last.nativeElement?e[0]:e[1];n&&(i._showStartArrow=n.intersectionRatio<1),o&&(i._showEndArrow=o.intersectionRatio<1),i._cd.detectChanges()}}return Object.defineProperty(e.prototype,"scrollBehavior",{get:function(){return this._smoothScrollAllowed?this._scrollBehavior:"auto"},set:function(e){this._scrollBehavior=e||"smooth"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){return"doe-thumbs--"+this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_hostOffsetAxis",{get:function(){return this._vertical?this._elRef.nativeElement.offsetHeight:this._elRef.nativeElement.offsetWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_scrollKey",{get:function(){return this._vertical?"scrollTop":"scrollLeft"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=this,n=e.arrows,o=e.items,i=e.orientation;if(i&&null!=i.currentValue){var r=i.currentValue;this._vertical="left"===r||"right"===r}if(n&&(n.currentValue&&this.items&&this.items.length?this.observeArrows():n.currentValue||(this._showStartArrow=!1,this._showEndArrow=!1,this.unobserveArrows())),o&&o.currentValue){var s=o.currentValue||[],a=o.previousValue||[];if(s.length===a.length)return;this.arrows&&s.length&&this.observeArrows(),a.length||setTimeout((function(){t.centerThumbIfNeeded(t.selectedIndex),t._smoothScrollAllowed=!0}))}},e.prototype.ngOnDestroy=function(){this._destroy$.next(null),this._destroy$.complete(),this._arrowObserver&&this._arrowObserver.disconnect()},e.prototype.slide=function(e){var t;if(this.arrowSlideByLength)t=this.arrowSlideByLength;else{var n=this.thumbListRef.nativeElement,o=this._vertical?n.scrollHeight:n.scrollWidth,i=this._vertical?n.offsetHeight:n.offsetWidth;t=Math.min(i,o-i)}this.scroll(t*e)},e.prototype.centerThumbIfNeeded=function(e){if(this.items&&!(this.items.length<=1)){var t=this.thumbsRef.toArray()[e].nativeElement;if(t){var n=t.offsetLeft,o=t.offsetTop,i=t.offsetWidth,r=t.offsetHeight,s=this._vertical?o:n,a=this._vertical?r:i,l=this._hostOffsetAxis,c=this.thumbListRef.nativeElement[this._scrollKey],d=s+a/2-l/2-c;(c+l<s+a||c>s)&&this.scroll(d)}}},e.prototype.select=function(e){var t=this;this.selectedIndex=e,this._cd.detectChanges(),this.autoScroll&&setTimeout((function(){return t.centerThumbIfNeeded(e)}))},e.prototype._emitEvent=function(e,t,n,o){o.emit({index:e,item:t,event:n})},e.prototype._onLoadChange=function(e,t){e._thumbFailed=!t},e.prototype.scroll=function(e){var t=this;if(u)if(m.scrollBehavior||"auto"===this.scrollBehavior)this.thumbListRef.nativeElement[this._scrollKey]+=e;else{null!=this._scrollId&&cancelAnimationFrame(this._scrollId);var n=Math.abs(e),o=Date.now(),i=200*(Math.log10(n)-1.1);i<0&&(i=200);var r=0,s=function(){var a=Math.ceil((Date.now()-o)/i*n),l=Math.min(a-r,n-r);l*=Math.sign(e),r=a,t.thumbListRef.nativeElement[t._scrollKey]+=l,r<=n&&(t._scrollId=requestAnimationFrame(s))};this._scrollId=requestAnimationFrame(s)}},e.prototype.observeArrows=function(){var e=this;this._arrowObserver?this._arrowObserver.disconnect():this._arrowObserver=new IntersectionObserver(this.onArrowsObserved,{root:this.thumbListRef.nativeElement,threshold:1}),setTimeout((function(){e._arrowObserver.observe(e.thumbsRef.first.nativeElement),e._arrowObserver.observe(e.thumbsRef.last.nativeElement)}))},e.prototype.unobserveArrows=function(){this._arrowObserver&&this._arrowObserver.disconnect()},e.decorators=[{type:t.Component,args:[{selector:"doe-thumbs",template:'<div\n *ngIf="_showStartArrow"\n class="doe-thumbs-arrow doe-thumbs-arrow-prev"\n (click)="slide(-1)"\n>\n <div *ngIf="!arrowTemplate; else arrowTemplate">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n\n<ul\n #thumbs\n [style.scrollBehavior]="scrollBehavior"\n tabindex="0"\n [attr.aria-label]="aria?.thumbnailsLabel"\n>\n <li *ngIf="!items || !items.length" class="doe-thumbs-initial-item"></li>\n <li\n #thumb\n *ngFor="let item of items; let i = index"\n [class.doe-thumbs-item--selected]="i === selectedIndex"\n aria-hidden="true"\n (click)="_emitEvent(i, item, $event, thumbClick)"\n (mouseenter)="_emitEvent(i, item, $event, thumbHover)"\n >\n <ng-container *ngIf="!thumbTemplate; else customThumbTemplate">\n <img\n [src]="item.thumbSrc || \'\'"\n [alt]="item.alt"\n (load)="_onLoadChange(item, true)"\n (error)="_onLoadChange(item, false)"\n />\n\n <ng-container *ngIf="item._thumbFailed">\n <div\n *ngIf="!errorTemplate; else errorTemplate"\n class="doe-thumbs-error"\n >\n <div\n class="doe-thumbs-error-icon"\n [class.doe-thumbs-error-icon--video]="isVideo(item)"\n ></div>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template #customThumbTemplate>\n <ng-container\n *ngTemplateOutlet="\n thumbTemplate;\n context: { index: i, selectedIndex: selectedIndex, item: item }\n "\n ></ng-container>\n </ng-template>\n </li>\n</ul>\n\n<div\n *ngIf="_showEndArrow"\n class="doe-thumbs-arrow doe-thumbs-arrow-next"\n (click)="slide(1)"\n>\n <div *ngIf="!arrowTemplate; else arrowTemplate">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{flex:1 0 auto;position:relative;background-color:#f3f3f3}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--bottom .doe-thumbs-error,:host.doe-thumbs--top .doe-thumbs-error{border-right:1px solid #cecece}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--left .doe-thumbs-error,:host.doe-thumbs--right .doe-thumbs-error{border-bottom:1px solid #cecece}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:"";display:block;position:absolute;left:0;bottom:0;width:100%;height:100%;border:10px solid #ffffffcf;box-sizing:border-box}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#e8e8e8;box-sizing:border-box}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video){position:relative;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:28px solid #a5a5a5;margin-left:-8px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after,.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{content:"";position:absolute}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{height:10px;width:10px;background-color:#a5a5a5;border-radius:100%;left:14px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after{border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:17px solid #a5a5a5;top:11px}.doe-thumbs-error-icon--video{border-top:16px solid transparent;border-bottom:16px solid transparent;border-left:28px solid #a5a5a5;margin-left:9px}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}']}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},e.propDecorators={items:[{type:t.Input}],selectedIndex:[{type:t.Input}],aria:[{type:t.Input}],orientation:[{type:t.Input}],arrows:[{type:t.Input}],arrowSlideByLength:[{type:t.Input}],autoScroll:[{type:t.Input}],thumbTemplate:[{type:t.Input}],arrowTemplate:[{type:t.Input}],errorTemplate:[{type:t.Input}],scrollBehavior:[{type:t.Input}],thumbClick:[{type:t.Output}],thumbHover:[{type:t.Output}],thumbListRef:[{type:t.ViewChild,args:["thumbs",{static:!0}]}],thumbsRef:[{type:t.ViewChildren,args:["thumb"]}],cssClass:[{type:t.HostBinding,args:["class"]}]},e}();var w=function(){function e(e,o,i){var r=this;this._hostRef=e,this._cd=o,this._zone=i,this.imageClick=new t.EventEmitter,this.descriptionClick=new t.EventEmitter,this.selection=new t.EventEmitter,this.isVideo=v,this.UA=p,this._destroy$=new n.Subject,this._listX=0,this.onResize=function(){setTimeout((function(){var e=r.items;r._noAnimation=!0,e&&e.length?(r.readDimensions(),r._fringeCount=r.getFringeCount(),r._displayedItems=r.loop?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}(e.slice(-r._fringeCount),e,e.slice(0,r._fringeCount)):e,r._cd.detectChanges(),r.center()):r.shift(0),setTimeout((function(){return r._noAnimation=!1}))}))},this.shiftByDelta=function(e){r.shift(r._listX-e)}}return Object.defineProperty(e.prototype,"loop",{get:function(){return this.items&&this.items.length>1&&this._loop},set:function(e){this._loop=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemWidth",{set:function(e){this.itemListRef.nativeElement.style.setProperty("--item-width",e||"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_noAnimation",{set:function(e){this.itemListRef.nativeElement.style.transitionDuration=e?"0ms":""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lazyLoading",{get:function(){return"lazy"===this.loading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showArrow",{get:function(){return this.arrows&&this.items&&this.items.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showPrevArrow",{get:function(){return this.showArrow&&(this.selectedIndex>0||this.loop)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showNextArrow",{get:function(){return this.showArrow&&(this.selectedIndex<this.items.length-1||this.loop)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=this,n=e.thumbsOrientation,o=e.items;n&&!n.firstChange&&(n.currentValue&n.previousValue||setTimeout((function(){t.readDimensions(),t.center(),t._cd.detectChanges()}))),o&&o.currentValue&&o.currentValue.length&&this.onResize()},e.prototype.ngOnInit=function(){var e=this,t={passive:!0};u&&n.fromEvent(window,"resize",t).pipe(i.takeUntil(this._destroy$)).subscribe(this.onResize),u&&this.mouseGestures&&this._zone.runOutsideAngular((function(){var n,o=e.itemListRef.nativeElement,i=0,r=0,s=function(o){n=o,e._noAnimation=!0,document.addEventListener("mousemove",a,t),document.addEventListener("mouseup",l,t)},a=function(t){i=Math.max(Math.abs(n.x-t.x)),r=Math.max(Math.abs(n.y-t.y)),e.shiftByDelta(t.movementX)},l=function(t){var o=n.x-t.x;e._noAnimation=!1,e._zone.run((function(){return e.selectBySwipeStats(o)})),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l)},c=function(e){(i>10||r>10)&&(e.stopPropagation(),e.preventDefault()),r=i=0},d=function(e){return e.preventDefault()};o.addEventListener("mousedown",s,t),o.addEventListener("click",c,{capture:!0}),o.addEventListener("dragstart",d),e._destroy$.subscribe((function(){o.removeEventListener("mousedown",s),o.removeEventListener("click",c),o.removeEventListener("dragstart",d)}))})),u&&this.touchGestures&&this._zone.runOutsideAngular((function(){var n,o,i=e.itemListRef.nativeElement,r=null,s=function(t){n=t,e._noAnimation=!0},a=function(t){if(n&&1===t.touches.length){var i=n.touches[0],s=t.touches[0];if(null==r){var a=Math.abs(s.clientX-i.clientX),l=Math.abs(s.clientY-i.clientY);(a||l)&&(r=1.2*a>=l)}r&&(e.shiftByDelta(s.clientX-(o||n).touches[0].clientX),o=t,p.ios&&(t.preventDefault(),t.stopPropagation()))}},l=function(){if(e._noAnimation=!1,o){var t=n.touches[0].clientX-o.touches[0].clientX;e._zone.run((function(){return e.selectBySwipeStats(t)}))}r=null,n=null,o=null};i.addEventListener("touchstart",s,t),document.addEventListener("touchmove",a,{passive:!p.ios}),document.addEventListener("touchend",l,t),e._destroy$.subscribe((function(){i.removeEventListener("touchstart",s),document.removeEventListener("touchmove",a),document.removeEventListener("touchend",l)}))}))},e.prototype.ngOnDestroy=function(){this._destroy$.next(null),this._destroy$.complete()},e.prototype.isInScrollportProximity=function(e){this.loop&&(e-=this._fringeCount);var t=this.touched?Math.ceil(this._viewerWidth/(this._itemWidth+1))||1:Math.floor(Math.ceil(this._viewerWidth/this._itemWidth)/2),n=Math.abs(this.selectedIndex-e);return this.loop&&Math.abs(n-this.items.length)<=t||n<=t},e.prototype.isYoutube=function(e){return!!e.src.match(/youtube.*\/embed\//)},e.prototype.selectByDelta=function(e){this.select(this.selectedIndex+e)},e.prototype.select=function(e){var t=this,n=!this.items[e],o=this.loop&&n;if(this.selectedIndex===e)return this.center();if(!o&&n&&(e=e<0?0:this.items.length-1),o){var i=e;e=i-Math.sign(e)*this.items.length,this._noAnimation=!0,setTimeout((function(){var e=t._listX-Math.sign(i)*t.items.length*t._itemWidth;t.shift(e),setTimeout((function(){t._noAnimation=!1,t.center()}))}))}if(this.isVideo(this.items[e])){var r=this.itemsRef.toArray()[this.selectedIndex].nativeElement.querySelector("video");r&&r.pause()}this.selectedIndex=e,this.selection.emit(e),o||this.center()},e.prototype.onImageClick=function(e,t){this.imageClick.emit({event:t,item:e,index:this.items.indexOf(e)})},e.prototype.onTab=function(e){var t=this;e>=0&&e<this.items.length&&(this.select(e),requestAnimationFrame((function(){return t._hostRef.nativeElement.scrollLeft=0})))},e.prototype.onItemLoaded=function(e,t){t.target.getAttribute("src")&&(e._loaded=!0,e._failed=!1,this._cd.detectChanges())},e.prototype.onItemErrored=function(e,t){t.target.getAttribute("src")&&(e._failed=!0,this._cd.detectChanges())},e.prototype.center=function(){var e=(this._viewerWidth-this._itemWidth)/2;this.shift((this.selectedIndex+this._fringeCount)*this._itemWidth-e)},e.prototype.getFringeCount=function(){return this.loop?Math.min(Math.ceil(this._viewerWidth/(this._itemWidth+1)),this.items.length):0},e.prototype.readDimensions=function(){this._viewerWidth=this._hostRef.nativeElement.offsetWidth,this._itemWidth=this._hostRef.nativeElement.querySelector("li").offsetWidth},e.prototype.selectBySwipeStats=function(e){var t=Math.ceil((Math.abs(e)-25)/this._itemWidth);t?this.selectByDelta(t*Math.sign(e)):this.center()},e.prototype.shift=function(e){this.itemListRef.nativeElement.style.transform="translate3d("+-(this._listX=e)+"px, 0, 0)"},e.decorators=[{type:t.Component,args:[{selector:"doe-viewer",template:'<div\n *ngIf="showPrevArrow"\n class="doe-viewer-arrow doe-viewer-arrow-prev"\n (click)="selectByDelta(-1)"\n>\n <doe-chevron-icon\n *ngIf="!arrowTemplate; else arrowTemplate"\n ></doe-chevron-icon>\n</div>\n\n<ul #itemList [attr.aria-label]="aria?.viewerLabel">\n <li *ngIf="!_displayedItems?.length" class="doe-viewer-initial-item"></li>\n <li\n #itemsRef\n *ngFor="let item of _displayedItems; let i = index"\n [class.doe-viewer-item--selected]="i === selectedIndex"\n tabindex="0"\n [attr.aria-label]="item.alt"\n [attr.aria-describedby]="\'doe-viewer-aria-description-\' + i"\n (click)="onImageClick(item, $event)"\n (doe-media-load)="onItemLoaded(item, $event.detail)"\n (doe-media-error)="onItemErrored(item, $event.detail)"\n (keydown.Tab)="onTab(i + 1)"\n (keydown.shift.Tab)="onTab(i - 1)"\n >\n <ng-container *ngIf="!lazyLoading || isInScrollportProximity(i)">\n <ng-container *ngIf="!itemTemplate; else customTemplate">\n <picture *ngIf="!isVideo(item)" @remove>\n <source\n *ngFor="let source of item.pictureSources"\n [srcset]="source.srcset"\n [attr.media]="source.media"\n [attr.sizes]="source.sizes"\n [attr.type]="source.type"\n />\n <img\n [src]="item.src"\n [alt]="item.alt"\n [class.doe-viewer-media-loading]="!item._loaded"\n [style.objectFit]="objectFit"\n (load)="onItemLoaded(item, $event)"\n (error)="onItemErrored(item, $event)"\n />\n </picture>\n \x3c!-- Using loadedmetadata instead of loadeddata because iOS loads data lazily upon user\'s interaction --\x3e\n <video\n @remove\n *ngIf="!isYoutube(item) && isVideo(item)"\n [src]="item.src"\n [poster]="item.thumbSrc || \'\'"\n [class.doe-viewer-media-loading]="!item._loaded"\n [style.objectFit]="objectFit"\n controls\n playsinline\n (loadedmetadata)="onItemLoaded(item, $event)"\n (error)="onItemErrored(item, $event)"\n ></video>\n\n <iframe\n @remove\n *ngIf="isYoutube(item)"\n [src]="item.src | safe"\n frameborder="0"\n allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"\n allowfullscreen\n (load)="onItemLoaded(item, $event)"\n ></iframe>\n </ng-container>\n\n <ng-container *ngIf="!item._loaded && !item._failed">\n <ng-container *ngTemplateOutlet="loadingTemplate"></ng-container>\n </ng-container>\n\n <ng-container *ngIf="item._failed">\n <div\n *ngIf="!errorTemplate; else errorTemplate"\n class="doe-viewer-error"\n >\n <div class="doe-viewer-error-icon">⚠</div>\n <p class="doe-viewer-error-text">\n {{ errorText || \'Loading of this media failed\' }}\n </p>\n </div>\n </ng-container>\n\n <span\n [id]="\'doe-viewer-aria-description-\' + i"\n class="doe-viewer-aria-description"\n [innerHTML]="item.description"\n aria-hidden="true"\n ></span>\n </ng-container>\n\n <ng-template #customTemplate>\n <ng-container\n *ngTemplateOutlet="\n itemTemplate;\n context: {\n index: items?.indexOf(item),\n selectedIndex: selectedIndex,\n item: item,\n video: isVideo(item)\n }\n "\n ></ng-container>\n </ng-template>\n </li>\n</ul>\n\n<ng-container *ngIf="items?.length <= 0">\n <ng-container *ngTemplateOutlet="loadingTemplate"></ng-container>\n</ng-container>\n\n<div\n *ngIf="showNextArrow"\n class="doe-viewer-arrow doe-viewer-arrow-next"\n (click)="selectByDelta(1)"\n>\n <doe-chevron-icon\n *ngIf="!arrowTemplate; else arrowTemplate"\n ></doe-chevron-icon>\n</div>\n\n<doe-counter\n *ngIf="counter && items?.length"\n [itemQuantity]="items?.length"\n [selectedIndex]="selectedIndex"\n [orientation]="counterOrientation"\n></doe-counter>\n\n<div\n *ngIf="descriptions && items"\n class="doe-viewer-description"\n [class.doe-viewer-description--above-counter]="\n counter && counterOrientation === \'bottom\'\n "\n aria-hidden="true"\n>\n <div\n *ngIf="items[selectedIndex]?.description as description"\n class="doe-viewer-description-inner"\n [innerHTML]="description"\n (click)="descriptionClick.emit($event)"\n ></div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,animations:[o.trigger("remove",[o.transition(":leave",o.animate("0ms 100ms")),o.transition(":enter",[o.style({opacity:0}),o.animate("400ms",o.style({opacity:1}))])])],styles:[':host{display:block;position:relative;width:100%;height:100%;overflow:hidden;outline:0;background-color:#ececec;z-index:1}ul{--item-width:calc(100% - 0.01px);display:flex;width:100%;height:100%;transition:transform .4s;scrollbar-width:none;-ms-overflow-style:none}ul::-webkit-scrollbar{width:0;height:0}li{display:flex;align-items:center;flex:none;position:relative;width:var(--item-width);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}picture{width:100%;height:100%}iframe,img,video{width:100%;height:100%;background-color:transparent;transition:opacity .3s ease-out;outline:0}iframe[src=""],img[src=""],video[src=""]{opacity:0}iframe.doe-viewer-media-loading,img.doe-viewer-media-loading,video.doe-viewer-media-loading{opacity:.5}img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.doe-viewer-description{position:absolute;bottom:5px;width:100%;display:flex;justify-content:center}.doe-viewer-description--above-counter{bottom:35px}.doe-viewer-description-inner{display:inline-block;background:#000;opacity:.8;color:#fff;padding:6px 15px;max-width:80%;font-size:.95em;text-align:center}.doe-viewer-aria-description{opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;bottom:0;left:50%;transform:translateX(-50%)}.doe-viewer-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background-color:#f5f5f5;color:#7d7d7d}.doe-viewer-error-icon{font-size:40px}.doe-viewer-error-text{margin-top:10px;letter-spacing:.01em}.doe-viewer-arrow{display:flex;position:absolute;top:50%;transform:translateY(-50%);z-index:100;cursor:pointer}.doe-viewer-arrow-prev{left:0;transform:rotate(180deg) translateY(50%)}.doe-viewer-arrow-next{right:0}.doe-viewer-arrow doe-chevron-icon{margin:15px 6px;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-viewer-arrow doe-chevron-icon:hover{opacity:1}}.doe-viewer-arrow doe-chevron-icon::ng-deep svg{height:32px;width:32px}']}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:t.NgZone}]},e.propDecorators={items:[{type:t.Input}],arrows:[{type:t.Input}],selectedIndex:[{type:t.Input}],descriptions:[{type:t.Input}],errorText:[{type:t.Input}],mouseGestures:[{type:t.Input}],touchGestures:[{type:t.Input}],counter:[{type:t.Input}],counterOrientation:[{type:t.Input}],loading:[{type:t.Input}],objectFit:[{type:t.Input}],itemTemplate:[{type:t.Input}],loadingTemplate:[{type:t.Input}],errorTemplate:[{type:t.Input}],arrowTemplate:[{type:t.Input}],thumbsOrientation:[{type:t.Input}],aria:[{type:t.Input}],loop:[{type:t.Input}],itemWidth:[{type:t.Input}],touched:[{type:t.Input}],imageClick:[{type:t.Output}],descriptionClick:[{type:t.Output}],selection:[{type:t.Output}],itemListRef:[{type:t.ViewChild,args:["itemList",{static:!0}]}],itemsRef:[{type:t.ViewChildren,args:["itemsRef"]}]},e}();var x=function(){function e(e,n){var o=this;this.cd=e,this.hostRef=n,this.selectedIndex=0,this.aria=h,this.arrows=!0,this.descriptions=!1,this.mouseGestures=!0,this.touchGestures=!0,this.counter=!0,this.counterOrientation="bottom",this.loading="auto",this.loop=!1,this.objectFit="cover",this.thumbs=!0,this.thumbsAutoScroll=!0,this.thumbsOrientation="bottom",this.thumbsArrows=!0,this.thumbsScrollBehavior="smooth",this.imageClick=new t.EventEmitter,this.thumbClick=new t.EventEmitter,this.thumbHover=new t.EventEmitter,this.descriptionClick=new t.EventEmitter,this.selection=new t.EventEmitter,this._tabindex=0,this._touched=!1,this.INIT_INTERACTIONS=["touchstart","mousedown","keydown"],this._onInitInteraction=function(){var e=o.hostRef.nativeElement;o._touched=!0,o.cd.detectChanges(),o.INIT_INTERACTIONS.forEach((function(t){return e.removeEventListener(t,o._onInitInteraction)}))},this.INIT_INTERACTIONS.forEach((function(e){return n.nativeElement.addEventListener(e,o._onInitInteraction,{passive:!0})}))}return Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.aria&&this.aria.galleryLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_galleryColumn",{get:function(){return"top"===this.thumbsOrientation||"bottom"===this.thumbsOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_thumbsOrientationFlag",{get:function(){return"top"===this.thumbsOrientation||"bottom"===this.thumbsOrientation?6:24},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this._viewerElRef.nativeElement.focus()},e.prototype.next=function(){this._viewerRef.selectByDelta(1)},e.prototype.prev=function(){this._viewerRef.selectByDelta(-1)},e.prototype.select=function(e){this._viewerRef.select(e),this._thumbsRef.select(e),this._selectInternal(e)},e.prototype.slideThumbs=function(e){this._thumbsRef.slide(e)},e.prototype._onThumbClick=function(e){this._viewerRef.select(e.index),this.thumbClick.emit(e),this._selectInternal(e.index)},e.prototype._selectInternal=function(e){this.selectedIndex=e,this.selection.emit(this.items[e])},e.decorators=[{type:t.Component,args:[{selector:"doe-gallery",template:'<doe-thumbs\n *ngIf="thumbs"\n [items]="items"\n [selectedIndex]="selectedIndex"\n [orientation]="thumbsOrientation"\n [arrows]="thumbsArrows"\n [arrowSlideByLength]="thumbsArrowSlideByLength"\n [autoScroll]="thumbsAutoScroll"\n [scrollBehavior]="thumbsScrollBehavior"\n [thumbTemplate]="thumbTemplate"\n [arrowTemplate]="thumbsArrowTemplate"\n [errorTemplate]="thumbErrorTemplate"\n [aria]="aria"\n (thumbClick)="_onThumbClick($event)"\n (thumbHover)="thumbHover.emit($event)"\n></doe-thumbs>\n\n<doe-viewer\n tabindex="0"\n [items]="items"\n [selectedIndex]="selectedIndex"\n [arrows]="arrows"\n [descriptions]="descriptions"\n [errorText]="errorText"\n [mouseGestures]="mouseGestures"\n [touchGestures]="touchGestures"\n [counter]="counter"\n [counterOrientation]="counterOrientation"\n [itemWidth]="itemWidth"\n [objectFit]="objectFit"\n [loading]="loading"\n [itemTemplate]="itemTemplate"\n [loadingTemplate]="loadingTemplate || defaultLoadingTemplate"\n [errorTemplate]="errorTemplate"\n [loop]="loop"\n [thumbsOrientation]="_thumbsOrientationFlag"\n [arrowTemplate]="arrowTemplate"\n [aria]="aria"\n [touched]="_touched"\n (imageClick)="imageClick.emit($event)"\n (descriptionClick)="descriptionClick.emit($event)"\n (selection)="_selectInternal($event); _thumbsRef?.select($event)"\n></doe-viewer>\n\n<ng-template #defaultLoadingTemplate>\n <div class="doe-loading">\n <div></div>\n <div></div>\n <div></div>\n </div>\n</ng-template>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;height:600px;width:500px;outline:0;position:relative}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5,0 0 1px 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},e.propDecorators={items:[{type:t.Input}],selectedIndex:[{type:t.Input}],aria:[{type:t.Input}],arrows:[{type:t.Input}],descriptions:[{type:t.Input}],errorText:[{type:t.Input}],mouseGestures:[{type:t.Input}],touchGestures:[{type:t.Input}],counter:[{type:t.Input}],counterOrientation:[{type:t.Input}],itemWidth:[{type:t.Input}],loading:[{type:t.Input}],loop:[{type:t.Input}],objectFit:[{type:t.Input}],itemTemplate:[{type:t.Input}],loadingTemplate:[{type:t.Input}],errorTemplate:[{type:t.Input}],arrowTemplate:[{type:t.Input}],thumbs:[{type:t.Input}],thumbsAutoScroll:[{type:t.Input}],thumbsOrientation:[{type:t.Input}],thumbsArrows:[{type:t.Input}],thumbsArrowSlideByLength:[{type:t.Input}],thumbsScrollBehavior:[{type:t.Input}],thumbTemplate:[{type:t.Input}],thumbsArrowTemplate:[{type:t.Input}],thumbErrorTemplate:[{type:t.Input}],imageClick:[{type:t.Output}],thumbClick:[{type:t.Output}],thumbHover:[{type:t.Output}],descriptionClick:[{type:t.Output}],selection:[{type:t.Output}],_viewerRef:[{type:t.ViewChild,args:[w,{static:!1}]}],_thumbsRef:[{type:t.ViewChild,args:[y,{static:!1}]}],_viewerElRef:[{type:t.ViewChild,args:[w,{static:!1,read:t.ElementRef}]}],_tabindex:[{type:t.HostBinding,args:["tabindex"]}],ariaLabel:[{type:t.HostBinding,args:["attr.aria-label"]}],_galleryColumn:[{type:t.HostBinding,args:["class.doe-gallery--column"]}],next:[{type:t.HostListener,args:["keydown.arrowright"]}],prev:[{type:t.HostListener,args:["keydown.arrowleft"]}]},e}();var I=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"doe-counter",template:'\n <span aria-hidden="true">\n {{ selectedIndex + 1 }}<span class="doe-counter-delimiter">/</span\n >{{ itemQuantity || 0 }}\n </span>\n ',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{position:absolute;left:50%;transform:translateX(-50%);background:#000;padding:4px 7px 3px;color:#fff;opacity:.7;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host.top{top:0}:host.bottom{bottom:0}.doe-counter-delimiter{padding:0 2px}"]}]}],e.propDecorators={itemQuantity:[{type:t.Input}],selectedIndex:[{type:t.Input}],orientation:[{type:t.HostBinding,args:["class"]},{type:t.Input}]},e}();var _=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"doe-chevron-icon",template:'\x3c!-- Icon made by Dave Gandy from www.flaticon.com --\x3e\n<svg\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n x="0px"\n y="0px"\n viewBox="0 0 407.436 407.436"\n xml:space="preserve"\n>\n <polygon\n points="112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 "\n />\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n</svg>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["svg{width:26px;height:26px;fill:#fff;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);display:block}"]}]}],e}(),T=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)},e.decorators=[{type:t.Pipe,args:[{name:"safe"}]}],e.ctorParameters=function(){return[{type:a.DomSanitizer}]},e}();var E=function(){function e(e){this.hostRef=e}return e.prototype.onLoad=function(e){var t="error"===e.type?"doe-media-error":"doe-media-load";this.hostRef.nativeElement.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))},e.decorators=[{type:t.Directive,args:[{selector:"[doeMedia]"}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e.propDecorators={onLoad:[{type:t.HostListener,args:["load",["$event"]]},{type:t.HostListener,args:["loadedmetadata",["$event"]]},{type:t.HostListener,args:["error",["$event"]]}]},e}();var O=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[x,y,w,_,I,T,E],imports:[r.CommonModule,s.BrowserAnimationsModule],exports:[x,E]}]}],e}();e.GalleryComponent=x,e.GalleryImage=b,e.GalleryItem=f,e.GalleryModule=O,e.GalleryVideo=g,e.SUPPORT=m,e.UA=p,e.isBrowser=u,e.orientations={left:2,right:4,top:8,bottom:16},e.ɵa=w,e.ɵb=y,e.ɵc=_,e.ɵd=I,e.ɵe=T,e.ɵf=E,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-doe-gallery.umd.min.js.map

@@ -35,2 +35,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9jb3VudGVyL2NvdW50ZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsS0FBSyxFQUNMLFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQWV2QixNQUFNLE9BQU8sZ0JBQWdCOzs7WUFYNUIsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxhQUFhO2dCQUN2QixRQUFRLEVBQUU7Ozs7O0dBS1Q7Z0JBRUQsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07O2FBQ2hEOzs7MkJBRUUsS0FBSzs0QkFHTCxLQUFLOzBCQUdMLFdBQVcsU0FBQyxPQUFPLGNBQ25CLEtBQUs7Ozs7SUFQTix3Q0FDcUI7O0lBRXJCLHlDQUNzQjs7SUFFdEIsdUNBRWlDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcclxuICBDb21wb25lbnQsXHJcbiAgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksXHJcbiAgSW5wdXQsXHJcbiAgS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RyYXRlZ3kuT25QdXNoLFxufSlcbmV4cG9ydCBjbGFzcyBDb3VudGVyQ29tcG9uZW50IHtcbiAgQElucHV0KClcbiAgaXRlbVF1YW50aXR5OiBudW1iZXI7XG5cbiAgQElucHV0KClcbiAgc2VsZWN0ZWRJbmRleDogbnVtYmVyO1xuXG4gIEBIb3N0QmluZGluZygnY2xhc3MnKVxuICBASW5wdXQoKVxuICBvcmllbnRhdGlvbjogVmVydGljYWxPcmllbnRhdGlvbjtcbn1cbiJdfQ==

@@ -6,3 +6,3 @@ /**

*/
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, ViewChild, } from '@angular/core';
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, ViewChild, ChangeDetectorRef, } from '@angular/core';
import { defaultAria } from '../../core/aria';

@@ -12,3 +12,9 @@ import { ThumbsComponent } from '../thumbs/thumbs.component';

export class GalleryComponent {
constructor() {
/**
* @param {?} cd
* @param {?} hostRef
*/
constructor(cd, hostRef) {
this.cd = cd;
this.hostRef = hostRef;
this.selectedIndex = 0;

@@ -20,4 +26,4 @@ this.aria = defaultAria;

this.touchGestures = true;
this.imageCounter = true;
this.imageCounterOrientation = 'bottom';
this.counter = true;
this.counterOrientation = 'bottom';
this.loading = 'auto';

@@ -37,2 +43,25 @@ this.loop = false;

this._tabindex = 0;
this._touched = false;
this.INIT_INTERACTIONS = ['touchstart', 'mousedown', 'keydown'];
this._onInitInteraction = (/**
* @return {?}
*/
() => {
/** @type {?} */
const hostEl = this.hostRef.nativeElement;
this._touched = true;
this.cd.detectChanges();
this.INIT_INTERACTIONS.forEach((/**
* @param {?} ename
* @return {?}
*/
ename => hostEl.removeEventListener(ename, this._onInitInteraction)));
});
this.INIT_INTERACTIONS.forEach((/**
* @param {?} ename
* @return {?}
*/
ename => hostRef.nativeElement.addEventListener(ename, this._onInitInteraction, {
passive: true,
})));
}

@@ -65,3 +94,3 @@ /**

focus() {
this.viewerElRef.nativeElement.focus();
this._viewerElRef.nativeElement.focus();
}

@@ -72,3 +101,3 @@ /**

next() {
this.viewerRef.selectByDelta(1);
this._viewerRef.selectByDelta(1);
}

@@ -79,3 +108,3 @@ /**

prev() {
this.viewerRef.selectByDelta(-1);
this._viewerRef.selectByDelta(-1);
}

@@ -87,4 +116,4 @@ /**

select(index) {
this.viewerRef.select(index);
this.thumbsRef.select(index);
this._viewerRef.select(index);
this._thumbsRef.select(index);
this._selectInternal(index);

@@ -97,3 +126,3 @@ }

slideThumbs(direction) {
this.thumbsRef.slide(direction);
this._thumbsRef.slide(direction);
}

@@ -105,3 +134,3 @@ /**

_onThumbClick(event) {
this.viewerRef.select(event.index);
this._viewerRef.select(event.index);
this.thumbClick.emit(event);

@@ -122,7 +151,12 @@ this._selectInternal(event.index);

selector: 'doe-gallery',
template: "<doe-thumbs\r\n *ngIf=\"thumbs\"\r\n [items]=\"items\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [orientation]=\"thumbsOrientation\"\r\n [arrows]=\"thumbsArrows\"\r\n [arrowSlideByLength]=\"thumbsArrowSlideByLength\"\r\n [autoScroll]=\"thumbsAutoScroll\"\r\n [scrollBehavior]=\"thumbsScrollBehavior\"\r\n [thumbTemplate]=\"thumbTemplate\"\r\n [arrowTemplate]=\"thumbsArrowTemplate\"\r\n [errorTemplate]=\"thumbErrorTemplate\"\r\n [aria]=\"aria\"\r\n (thumbClick)=\"_onThumbClick($event)\"\r\n (thumbHover)=\"thumbHover.emit($event)\"\r\n></doe-thumbs>\r\n\r\n<doe-viewer\r\n tabindex=\"0\"\r\n [items]=\"items\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [arrows]=\"arrows\"\r\n [descriptions]=\"descriptions\"\r\n [errorText]=\"errorText\"\r\n [mouseGestures]=\"mouseGestures\"\r\n [touchGestures]=\"touchGestures\"\r\n [imageCounter]=\"imageCounter\"\r\n [imageCounterOrientation]=\"imageCounterOrientation\"\r\n [itemWidth]=\"itemWidth\"\r\n [objectFit]=\"objectFit\"\r\n [loading]=\"loading\"\r\n [itemTemplate]=\"itemTemplate\"\r\n [loadingTemplate]=\"loadingTemplate || defaultLoadingTemplate\"\r\n [errorTemplate]=\"errorTemplate\"\r\n [loop]=\"loop\"\r\n [thumbsOrientation]=\"_thumbsOrientationFlag\"\r\n [arrowTemplate]=\"arrowTemplate\"\r\n [aria]=\"aria\"\r\n (imageClick)=\"imageClick.emit($event)\"\r\n (descriptionClick)=\"descriptionClick.emit($event)\"\r\n (selection)=\"_selectInternal($event); thumbsRef?.select($event)\"\r\n></doe-viewer>\r\n\r\n<ng-template #defaultLoadingTemplate>\r\n <div class=\"doe-loading\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n</ng-template>\r\n",
template: "<doe-thumbs\n *ngIf=\"thumbs\"\n [items]=\"items\"\n [selectedIndex]=\"selectedIndex\"\n [orientation]=\"thumbsOrientation\"\n [arrows]=\"thumbsArrows\"\n [arrowSlideByLength]=\"thumbsArrowSlideByLength\"\n [autoScroll]=\"thumbsAutoScroll\"\n [scrollBehavior]=\"thumbsScrollBehavior\"\n [thumbTemplate]=\"thumbTemplate\"\n [arrowTemplate]=\"thumbsArrowTemplate\"\n [errorTemplate]=\"thumbErrorTemplate\"\n [aria]=\"aria\"\n (thumbClick)=\"_onThumbClick($event)\"\n (thumbHover)=\"thumbHover.emit($event)\"\n></doe-thumbs>\n\n<doe-viewer\n tabindex=\"0\"\n [items]=\"items\"\n [selectedIndex]=\"selectedIndex\"\n [arrows]=\"arrows\"\n [descriptions]=\"descriptions\"\n [errorText]=\"errorText\"\n [mouseGestures]=\"mouseGestures\"\n [touchGestures]=\"touchGestures\"\n [counter]=\"counter\"\n [counterOrientation]=\"counterOrientation\"\n [itemWidth]=\"itemWidth\"\n [objectFit]=\"objectFit\"\n [loading]=\"loading\"\n [itemTemplate]=\"itemTemplate\"\n [loadingTemplate]=\"loadingTemplate || defaultLoadingTemplate\"\n [errorTemplate]=\"errorTemplate\"\n [loop]=\"loop\"\n [thumbsOrientation]=\"_thumbsOrientationFlag\"\n [arrowTemplate]=\"arrowTemplate\"\n [aria]=\"aria\"\n [touched]=\"_touched\"\n (imageClick)=\"imageClick.emit($event)\"\n (descriptionClick)=\"descriptionClick.emit($event)\"\n (selection)=\"_selectInternal($event); _thumbsRef?.select($event)\"\n></doe-viewer>\n\n<ng-template #defaultLoadingTemplate>\n <div class=\"doe-loading\">\n <div></div>\n <div></div>\n <div></div>\n </div>\n</ng-template>\n",
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [":host{display:flex;height:600px;width:500px;outline:0;position:relative;background-color:#252525;border-radius:5px}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]
styles: [":host{display:flex;height:600px;width:500px;outline:0;position:relative}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5,0 0 1px 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]
}] }
];
/** @nocollapse */
GalleryComponent.ctorParameters = () => [
{ type: ChangeDetectorRef },
{ type: ElementRef }
];
GalleryComponent.propDecorators = {

@@ -137,4 +171,4 @@ items: [{ type: Input }],

touchGestures: [{ type: Input }],
imageCounter: [{ type: Input }],
imageCounterOrientation: [{ type: Input }],
counter: [{ type: Input }],
counterOrientation: [{ type: Input }],
itemWidth: [{ type: Input }],

@@ -162,5 +196,5 @@ loading: [{ type: Input }],

selection: [{ type: Output }],
viewerRef: [{ type: ViewChild, args: [ViewerComponent, { static: false },] }],
thumbsRef: [{ type: ViewChild, args: [ThumbsComponent, { static: false },] }],
viewerElRef: [{ type: ViewChild, args: [ViewerComponent, { static: false, read: ElementRef },] }],
_viewerRef: [{ type: ViewChild, args: [ViewerComponent, { static: false },] }],
_thumbsRef: [{ type: ViewChild, args: [ThumbsComponent, { static: false },] }],
_viewerElRef: [{ type: ViewChild, args: [ViewerComponent, { static: false, read: ElementRef },] }],
_tabindex: [{ type: HostBinding, args: ['tabindex',] }],

@@ -190,5 +224,5 @@ ariaLabel: [{ type: HostBinding, args: ['attr.aria-label',] }],

/** @type {?} */
GalleryComponent.prototype.imageCounter;
GalleryComponent.prototype.counter;
/** @type {?} */
GalleryComponent.prototype.imageCounterOrientation;
GalleryComponent.prototype.counterOrientation;
/** @type {?} */

@@ -239,10 +273,29 @@ GalleryComponent.prototype.itemWidth;

/** @type {?} */
GalleryComponent.prototype.viewerRef;
GalleryComponent.prototype._viewerRef;
/** @type {?} */
GalleryComponent.prototype.thumbsRef;
GalleryComponent.prototype._thumbsRef;
/** @type {?} */
GalleryComponent.prototype.viewerElRef;
GalleryComponent.prototype._viewerElRef;
/** @type {?} */
GalleryComponent.prototype._tabindex;
/** @type {?} */
GalleryComponent.prototype._touched;
/** @type {?} */
GalleryComponent.prototype.INIT_INTERACTIONS;
/**
* @type {?}
* @private
*/
GalleryComponent.prototype._onInitInteraction;
/**
* @type {?}
* @private
*/
GalleryComponent.prototype.cd;
/**
* @type {?}
* @private
*/
GalleryComponent.prototype.hostRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9nYWxsZXJ5L2dhbGxlcnkuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixXQUFXLEVBQ1gsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04sV0FBVyxFQUNYLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQWN2QixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDOUMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzdELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQVE3RCxNQUFNLE9BQU8sZ0JBQWdCO0lBTjdCO1FBV0Usa0JBQWEsR0FBRyxDQUFDLENBQUM7UUFHbEIsU0FBSSxHQUFTLFdBQVcsQ0FBQztRQUd6QixXQUFNLEdBQUcsSUFBSSxDQUFDO1FBR2QsaUJBQVksR0FBRyxLQUFLLENBQUM7UUFNckIsa0JBQWEsR0FBRyxJQUFJL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R2FsbGVyeUl0ZW1FdmVudCkge1xuICAgIHRoaXMuX3ZpZXdlclJlZi5zZWxlY3QoZXZlbnQuaW5kZXgpO1xuICAgIHRoaXMudGh1bWJDbGljay5lbWl0KGV2ZW50KTtcbiAgICB0aGlzLl9zZWxlY3RJbnRlcm5hbChldmVudC5pbmRleCk7XG4gIH1cblxuICBfc2VsZWN0SW50ZXJuYWwoaW5kZXg6IG51bWJlcikge1xuICAgIHRoaXMuc2VsZWN0ZWRJbmRleCA9IGluZGV4O1xuICAgIHRoaXMuc2VsZWN0aW9uLmVtaXQodGhpcy5pdGVtc1tpbmRleF0pO1xuICB9XG59XG4iXX0=

@@ -12,3 +12,3 @@ /**

selector: 'doe-chevron-icon',
template: "<!-- Icon made by Dave Gandy from www.flaticon.com -->\r\n<svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 407.436 407.436\"\r\n xml:space=\"preserve\"\r\n>\r\n <polygon\r\n points=\"112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 \"\r\n />\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n</svg>\r\n",
template: "<!-- Icon made by Dave Gandy from www.flaticon.com -->\n<svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 407.436 407.436\"\n xml:space=\"preserve\"\n>\n <polygon\n points=\"112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 \"\n />\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n</svg>\n",
changeDetection: ChangeDetectionStrategy.OnPush,

@@ -18,2 +18,2 @@ styles: ["svg{width:26px;height:26px;fill:#fff;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);display:block}"]

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hldnJvbi1pY29uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2ljb25zL2NoZXZyb24vY2hldnJvbi1pY29uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFRbkUsTUFBTSxPQUFPLG9CQUFvQjs7O1lBTmhDLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsa0JBQWtCO2dCQUM1QixnbkJBQTRDO2dCQUU1QyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTs7YUFDaEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIENoYW5nZURldGVjdGlvblN0cmF0ZWd5IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ2RvZS1jaGV2cm9uLWljb24nLFxyXG4gIHRlbXBsYXRlVXJsOiAnLi9jaGV2cm9uLWljb24uY29tcG9uZW50Lmh0bWwnLFxyXG4gIHN0eWxlVXJsczogWycuL2NoZXZyb24taWNvbi5jb21wb25lbnQuc2NzcyddLFxyXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBDaGV2cm9uSWNvbkNvbXBvbmVudCB7fVxyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hldnJvbi1pY29uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2ljb25zL2NoZXZyb24vY2hldnJvbi1pY29uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFRbkUsTUFBTSxPQUFPLG9CQUFvQjs7O1lBTmhDLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsa0JBQWtCO2dCQUM1QixzakJBQTRDO2dCQUU1QyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTs7YUFDaEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIENoYW5nZURldGVjdGlvblN0cmF0ZWd5IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2RvZS1jaGV2cm9uLWljb24nLFxuICB0ZW1wbGF0ZVVybDogJy4vY2hldnJvbi1pY29uLmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmxzOiBbJy4vY2hldnJvbi1pY29uLmNvbXBvbmVudC5zY3NzJ10sXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoXG59KVxuZXhwb3J0IGNsYXNzIENoZXZyb25JY29uQ29tcG9uZW50IHt9XG4iXX0=

@@ -9,17 +9,19 @@ /**

import { isBrowser, SUPPORT, } from '../../core';
import { isVideo, } from '../../core/gallery-item';
export class ThumbsComponent {
/**
* @param {?} cd
* @param {?} elRef
* @param {?} _cd
* @param {?} _elRef
*/
constructor(cd, elRef) {
this.cd = cd;
this.elRef = elRef;
constructor(_cd, _elRef) {
this._cd = _cd;
this._elRef = _elRef;
this.items = [];
this.thumbClick = new EventEmitter();
this.thumbHover = new EventEmitter();
this.showStartArrow = false;
this.showEndArrow = false;
this.destroy$ = new Subject();
this.smoothScrollAllowed = false;
this.isVideo = isVideo;
this._showStartArrow = false;
this._showEndArrow = false;
this._destroy$ = new Subject();
this._smoothScrollAllowed = false;
this.onArrowsObserved = (/**

@@ -37,8 +39,8 @@ * @param {?} entries

if (firstThumbEntry) {
this.showStartArrow = firstThumbEntry.intersectionRatio < 1;
this._showStartArrow = firstThumbEntry.intersectionRatio < 1;
}
if (lastThumbEntry) {
this.showEndArrow = lastThumbEntry.intersectionRatio < 1;
this._showEndArrow = lastThumbEntry.intersectionRatio < 1;
}
this.cd.detectChanges();
this._cd.detectChanges();
});

@@ -57,3 +59,3 @@ }

get scrollBehavior() {
return this.smoothScrollAllowed ? this._scrollBehavior : 'auto';
return this._smoothScrollAllowed ? this._scrollBehavior : 'auto';
}

@@ -70,4 +72,6 @@ /**

*/
get scrollKey() {
return this.vertical ? 'scrollTop' : 'scrollLeft';
get _hostOffsetAxis() {
return this._vertical
? this._elRef.nativeElement.offsetHeight
: this._elRef.nativeElement.offsetWidth;
}

@@ -78,6 +82,4 @@ /**

*/
get hostOffsetAxis() {
return this.vertical
? this.elRef.nativeElement.offsetHeight
: this.elRef.nativeElement.offsetWidth;
get _scrollKey() {
return this._vertical ? 'scrollTop' : 'scrollLeft';
}

@@ -92,3 +94,3 @@ /**

const newOrientation = orientation.currentValue;
this.vertical = newOrientation === 'left' || newOrientation === 'right';
this._vertical = newOrientation === 'left' || newOrientation === 'right';
}

@@ -100,4 +102,4 @@ if (arrows) {

else if (!arrows.currentValue) {
this.showStartArrow = false;
this.showEndArrow = false;
this._showStartArrow = false;
this._showEndArrow = false;
this.unobserveArrows();

@@ -123,3 +125,3 @@ }

this.centerThumbIfNeeded(this.selectedIndex);
this.smoothScrollAllowed = true;
this._smoothScrollAllowed = true;
}));

@@ -133,5 +135,5 @@ }

ngOnDestroy() {
this.destroy$.next(null);
this.destroy$.complete();
this.arrowObserver && this.arrowObserver.disconnect();
this._destroy$.next(null);
this._destroy$.complete();
this._arrowObserver && this._arrowObserver.disconnect();
}

@@ -155,7 +157,7 @@ /**

/** @type {?} */
const thumbListScrollAxis = this.vertical
const thumbListScrollAxis = this._vertical
? thumbList.scrollHeight
: thumbList.scrollWidth;
/** @type {?} */
const thumbListOffsetAxis = this.vertical
const thumbListOffsetAxis = this._vertical
? thumbList.offsetHeight

@@ -177,11 +179,14 @@ : thumbList.offsetWidth;

const nextItemEl = this.thumbsRef.toArray()[index].nativeElement;
if (!nextItemEl) {
return;
}
const { offsetLeft, offsetTop, offsetWidth, offsetHeight } = nextItemEl;
/** @type {?} */
const itemOffset = this.vertical ? offsetTop : offsetLeft;
const itemOffset = this._vertical ? offsetTop : offsetLeft;
/** @type {?} */
const itemOffsetAxis = this.vertical ? offsetHeight : offsetWidth;
const itemOffsetAxis = this._vertical ? offsetHeight : offsetWidth;
/** @type {?} */
const hostScrollAxis = this.hostOffsetAxis;
const hostScrollAxis = this._hostOffsetAxis;
/** @type {?} */
const thumbListScroll = this.thumbListRef.nativeElement[this.scrollKey];
const thumbListScroll = this.thumbListRef.nativeElement[this._scrollKey];
/** @type {?} */

@@ -200,3 +205,3 @@ const nextScrollDelta = itemOffset + itemOffsetAxis / 2 - hostScrollAxis / 2 - thumbListScroll;

this.selectedIndex = index;
this.cd.detectChanges();
this._cd.detectChanges();
if (this.autoScroll) {

@@ -210,9 +215,2 @@ setTimeout((/**

/**
* @param {?} item
* @return {?}
*/
onItemErrored(item) {
item._thumbFailed = true;
}
/**
* @param {?} index

@@ -224,3 +222,3 @@ * @param {?} item

*/
emitEvent(index, item, event, emitter) {
_emitEvent(index, item, event, emitter) {
emitter.emit({

@@ -233,2 +231,10 @@ index,

/**
* @param {?} item
* @param {?} success
* @return {?}
*/
_onLoadChange(item, success) {
item._thumbFailed = !success;
}
/**
* @private

@@ -243,7 +249,7 @@ * @param {?} totalScrollDelta

if (SUPPORT.scrollBehavior || this.scrollBehavior === 'auto') {
this.thumbListRef.nativeElement[this.scrollKey] += totalScrollDelta;
this.thumbListRef.nativeElement[this._scrollKey] += totalScrollDelta;
return;
}
if (this.scrollId != null) {
cancelAnimationFrame(this.scrollId);
if (this._scrollId != null) {
cancelAnimationFrame(this._scrollId);
}

@@ -278,8 +284,8 @@ /** @type {?} */

currentScroll = suggestedScroll;
this.thumbListRef.nativeElement[this.scrollKey] += frameScroll;
this.thumbListRef.nativeElement[this._scrollKey] += frameScroll;
if (currentScroll <= totalDistance) {
this.scrollId = requestAnimationFrame(animate);
this._scrollId = requestAnimationFrame(animate);
}
});
this.scrollId = requestAnimationFrame(animate);
this._scrollId = requestAnimationFrame(animate);
}

@@ -291,4 +297,4 @@ /**

observeArrows() {
if (!this.arrowObserver) {
this.arrowObserver = new IntersectionObserver(this.onArrowsObserved, {
if (!this._arrowObserver) {
this._arrowObserver = new IntersectionObserver(this.onArrowsObserved, {
root: this.thumbListRef.nativeElement,

@@ -299,3 +305,3 @@ threshold: 1.0,

else {
this.arrowObserver.disconnect();
this._arrowObserver.disconnect();
}

@@ -306,4 +312,4 @@ setTimeout((/**

() => {
this.arrowObserver.observe(this.thumbsRef.first.nativeElement);
this.arrowObserver.observe(this.thumbsRef.last.nativeElement);
this._arrowObserver.observe(this.thumbsRef.first.nativeElement);
this._arrowObserver.observe(this.thumbsRef.last.nativeElement);
}));

@@ -316,3 +322,3 @@ }

unobserveArrows() {
this.arrowObserver && this.arrowObserver.disconnect();
this._arrowObserver && this._arrowObserver.disconnect();
}

@@ -323,5 +329,5 @@ }

selector: 'doe-thumbs',
template: "<div\r\n *ngIf=\"showStartArrow\"\r\n class=\"doe-thumbs-arrow doe-thumbs-arrow-prev\"\r\n (click)=\"slide(-1)\"\r\n>\r\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n\r\n<ul\r\n #thumbs\r\n [style.scrollBehavior]=\"scrollBehavior\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"aria?.thumbnailsLabel\"\r\n>\r\n <li *ngIf=\"!items || !items.length\" class=\"doe-thumbs-initial-item\"></li>\r\n <li\r\n #thumb\r\n *ngFor=\"let item of items; let i = index\"\r\n [class.doe-thumbs-item--selected]=\"i === selectedIndex\"\r\n aria-hidden=\"true\"\r\n (click)=\"emitEvent(i, item, $event, thumbClick)\"\r\n (mouseenter)=\"emitEvent(i, item, $event, thumbHover)\"\r\n >\r\n <ng-container *ngIf=\"!thumbTemplate; else customThumbTemplate\">\r\n <img\r\n [src]=\"item.thumbSrc || item.src\"\r\n [alt]=\"item.alt\"\r\n (error)=\"onItemErrored(item)\"\r\n />\r\n\r\n <ng-container *ngIf=\"item._thumbFailed\">\r\n <div\r\n *ngIf=\"!errorTemplate; else errorTemplate\"\r\n class=\"doe-thumbs-error\"\r\n >\r\n <div class=\"doe-thumbs-error-icon\">\u26A0</div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #customThumbTemplate>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n thumbTemplate;\r\n context: { index: i, selectedIndex: selectedIndex, item: item }\r\n \"\r\n ></ng-container>\r\n </ng-template>\r\n </li>\r\n</ul>\r\n\r\n<div\r\n *ngIf=\"showEndArrow\"\r\n class=\"doe-thumbs-arrow doe-thumbs-arrow-next\"\r\n (click)=\"slide(1)\"\r\n>\r\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n",
template: "<div\n *ngIf=\"_showStartArrow\"\n class=\"doe-thumbs-arrow doe-thumbs-arrow-prev\"\n (click)=\"slide(-1)\"\n>\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n\n<ul\n #thumbs\n [style.scrollBehavior]=\"scrollBehavior\"\n tabindex=\"0\"\n [attr.aria-label]=\"aria?.thumbnailsLabel\"\n>\n <li *ngIf=\"!items || !items.length\" class=\"doe-thumbs-initial-item\"></li>\n <li\n #thumb\n *ngFor=\"let item of items; let i = index\"\n [class.doe-thumbs-item--selected]=\"i === selectedIndex\"\n aria-hidden=\"true\"\n (click)=\"_emitEvent(i, item, $event, thumbClick)\"\n (mouseenter)=\"_emitEvent(i, item, $event, thumbHover)\"\n >\n <ng-container *ngIf=\"!thumbTemplate; else customThumbTemplate\">\n <img\n [src]=\"item.thumbSrc || ''\"\n [alt]=\"item.alt\"\n (load)=\"_onLoadChange(item, true)\"\n (error)=\"_onLoadChange(item, false)\"\n />\n\n <ng-container *ngIf=\"item._thumbFailed\">\n <div\n *ngIf=\"!errorTemplate; else errorTemplate\"\n class=\"doe-thumbs-error\"\n >\n <div\n class=\"doe-thumbs-error-icon\"\n [class.doe-thumbs-error-icon--video]=\"isVideo(item)\"\n ></div>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template #customThumbTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n thumbTemplate;\n context: { index: i, selectedIndex: selectedIndex, item: item }\n \"\n ></ng-container>\n </ng-template>\n </li>\n</ul>\n\n<div\n *ngIf=\"_showEndArrow\"\n class=\"doe-thumbs-arrow doe-thumbs-arrow-next\"\n (click)=\"slide(1)\"\n>\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n",
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [":host{flex:1 0 auto;position:relative}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;border:1px solid #252525;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:\"\";display:block;position:absolute;left:0;bottom:0;width:100%;height:10px;background-color:#ffffffab;box-shadow:0 0 1px #000}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#222}.doe-thumbs-error-icon{font-size:20px;color:#f5f5f5}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}"]
styles: [":host{flex:1 0 auto;position:relative;background-color:#f3f3f3}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--bottom .doe-thumbs-error,:host.doe-thumbs--top .doe-thumbs-error{border-right:1px solid #cecece}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--left .doe-thumbs-error,:host.doe-thumbs--right .doe-thumbs-error{border-bottom:1px solid #cecece}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:\"\";display:block;position:absolute;left:0;bottom:0;width:100%;height:100%;border:10px solid #ffffffcf;box-sizing:border-box}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#e8e8e8;box-sizing:border-box}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video){position:relative;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:28px solid #a5a5a5;margin-left:-8px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after,.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{content:\"\";position:absolute}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{height:10px;width:10px;background-color:#a5a5a5;border-radius:100%;left:14px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after{border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:17px solid #a5a5a5;top:11px}.doe-thumbs-error-icon--video{border-top:16px solid transparent;border-bottom:16px solid transparent;border-left:28px solid #a5a5a5;margin-left:9px}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}"]
}] }

@@ -382,7 +388,9 @@ ];

/** @type {?} */
ThumbsComponent.prototype.showStartArrow;
ThumbsComponent.prototype.isVideo;
/** @type {?} */
ThumbsComponent.prototype.showEndArrow;
ThumbsComponent.prototype._showStartArrow;
/** @type {?} */
ThumbsComponent.prototype.vertical;
ThumbsComponent.prototype._showEndArrow;
/** @type {?} */
ThumbsComponent.prototype._vertical;
/**

@@ -392,3 +400,3 @@ * @type {?}

*/
ThumbsComponent.prototype.destroy$;
ThumbsComponent.prototype._destroy$;
/**

@@ -398,3 +406,3 @@ * @type {?}

*/
ThumbsComponent.prototype.arrowObserver;
ThumbsComponent.prototype._arrowObserver;
/**

@@ -409,3 +417,3 @@ * @type {?}

*/
ThumbsComponent.prototype.smoothScrollAllowed;
ThumbsComponent.prototype._scrollId;
/**

@@ -415,3 +423,3 @@ * @type {?}

*/
ThumbsComponent.prototype.scrollId;
ThumbsComponent.prototype._smoothScrollAllowed;
/**

@@ -426,3 +434,3 @@ * @type {?}

*/
ThumbsComponent.prototype.cd;
ThumbsComponent.prototype._cd;
/**

@@ -432,4 +440,4 @@ * @type {?}

*/
ThumbsComponent.prototype.el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ZmFjZSBBcmlhIHtcbiAgZ2FsbGVyeUxhYmVsOiBzdHJpbmc7XG4gIHZpZXdlckxhYmVsOiBzdHJpbmc7XG4gIHRodW1ibmFpbHNMYWJlbDogc3RyaW5nO1xufVxuXG5leHBvcnQgY29uc3QgZGVmYXVsdEFyaWE6IEFyaWEgPSB7XG4gIGdhbGxlcnlMYWJlbDogJ0ltYWdlIEdhbGxlcnknLFxuICB2aWV3ZXJMYWJlbDogJ0Rpc3BsYXllZCBnYWxsZXJ5IGltYWdlJyxcbiAgdGh1bWJuYWlsc0xhYmVsOiAnR2FsbGVyeSB0aHVtYm5haWxzJ1xufTtcbiJdfQ==

@@ -141,7 +141,2 @@ /**

/**
* Marks item as seen at least once
* @type {?|undefined}
*/
GalleryItemInternal.prototype._seen;
/**
* `true` when media couldn't be loaded

@@ -157,2 +152,8 @@ * @type {?|undefined}

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS1pdGVtLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWRvZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibGliL2NvcmUvZ2FsbGVyeS1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsTUFBTSxPQUFnQixXQUFXOzs7Ozs7OztJQUMvQixZQUlTLEdBQVcsRUFLWCxRQUFnQixFQUtoQixHQUFXLEVBS1gsV0FBbUIsRUFLbkIsSUFBUztRQXBCVCxRQUFHLEdBQUgsR0FBRyxDQUFRO1FBS1gsYUFBUSxHQUFSLFFBQVEsQ0FBUTtRQUtoQixRQUFHLEdBQUgsR0FBRyxDQUFRO1FBS1gsZ0JBQVcsR0FBWCxXQUFXLENBQVE7UUFLbkIsU0FBSSxHQUFKLElBQUksQ0FBSztJQUNmLENBQUM7Q0FDTDs7Ozs7O0lBdEJHLDBCQUFrQjs7Ozs7SUFLbEIsK0JBQXVCOzs7OztJQUt2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HJcbiAgZXZlbnQ6IEV2ZW50O1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEdhbGxlcnlJdGVtSW50ZXJuYWwgZXh0ZW5kcyBHYWxsZXJ5SW1hZ2UsIEdhbGxlcnlWaWRlbyB7XHJcbiAgLyoqXHJcbiAgICogTWFya3MgaXRlbSBhcyBsb2FkZWQgb25jZSBpdHMgbWVkaWEgZ2V0cyBsb2FkZWRcclxuICAgKi9cclxuICBfbG9hZGVkPzogYm9vbGVhbjtcclxuXHJcbiAgLyoqXHJcbiAgICogTWFya3MgaXRlbSBhcyBzZWVuIGF0IGxlYXN0IG9uY2VcclxuICAgKi9cclxuICBfc2Vlbj86IGJvb2xlYW47XHJcblxyXG4gIC8qKlxyXG4gICAqIGB0cnVlYCB3aGVuIG1lZGlhIGNvdWxkbid0IGJlIGxvYWRlZFxyXG4gICAqL1xyXG4gIF9mYWlsZWQ/OiBib29sZWFuO1xyXG5cclxuICAvKipcclxuICAgKiBgdHJ1ZWAgd2hlbiB0aHVtYm5haWwgY291bGRuJ3QgYmUgbG9hZGVkXHJcbiAgICovXHJcbiAgX3RodW1iRmFpbGVkPzogYm9vbGVhbjtcclxufVxyXG4iXX0=
/** @type {?} */
export const isVideo = (/**
* @param {?} item
* @return {?}
*/
(item) => item instanceof GalleryVideo);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS1pdGVtLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWRvZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibGliL2NvcmUvZ2FsbGVyeS1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUEsTUFBTSxPQUFnQixXQUFXOzs7Ozs7OztJQUMvQixZQUlTLEdBQVcsRUFLWCxRQUFnQixFQUtoQixHQUFXLEVBS1gsV0FBbUIsRUFLbkIsSUFBUztRQXBCVCxRQUFHLEdBQU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BHYWxsZXJ5VmlkZW8sXG4gIEdhbGxlcnlJdGVtRXZlbnRcbn0gZnJvbSAnLi9nYWxsZXJ5LWl0ZW0nO1xuZXhwb3J0ICogZnJvbSAnLi9vYmplY3QtZml0JztcbmV4cG9ydCAqIGZyb20gJy4vbG9hZGluZyc7XG5leHBvcnQgKiBmcm9tICcuL29yaWVudGF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vdGVtcGxhdGUtY29udGV4dHMnO1xuZXhwb3J0IHsgQXJpYSB9IGZyb20gJy4vYXJpYSc7XG4iXX0=

@@ -6,2 +6,2 @@ /**

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL2xvYWRpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIExvYWRpbmcgPSAnYXV0bycgfCAnbGF6eSc7XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL2xvYWRpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIExvYWRpbmcgPSAnYXV0bycgfCAnbGF6eSc7XG4iXX0=

@@ -6,2 +6,2 @@ /**

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LWZpdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL29iamVjdC1maXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIE9iamVjdEZpdCA9ICdjb250YWluJyB8ICdjb3Zlcic7XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LWZpdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL29iamVjdC1maXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIE9iamVjdEZpdCA9ICdjb250YWluJyB8ICdjb3Zlcic7XG4iXX0=

@@ -23,2 +23,2 @@ /**

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZW50YXRpb24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29yZS9vcmllbnRhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFJQSxNQUFrQixlQUFlO0lBQy9CLElBQUksR0FBSTtJQUNSLEtBQUssR0FBSTtJQUNULEdBQUcsR0FBSTtJQUNQLE1BQU0sSUFBSztJQUNYLFVBQVUsR0FBSTtJQUNkLFFBQVEsSUFBSztFQUNkOzs7QUFFRCxNQUFNLE9BQU8sWUFBWSxHQUFHO0lBQzFCLElBQUksY0FBc0I7SUFDMUIsS0FBSyxlQUF1QjtJQUM1QixHQUFHLGFBQXFCO0lBQ3hCLE1BQU0saUJBQXdCO0NBQy9CIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgT3JpZW50YXRpb24gPSAndG9wJyB8ICdib3R0b20nIHwgJ2xlZnQnIHwgJ3JpZ2h0JztcclxuXHJcbmV4cG9ydCB0eXBlIFZlcn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UUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLO0lBQ3BFLGtCQUFrQixFQUFFLFNBQVMsSUFBSSxTQUFTLElBQUksS0FBSyxDQUFDLFNBQVM7SUFDN0Qsb0JBQW9CLEVBQUUsU0FBUyxJQUFJLHNCQUFzQixJQUFJLE1BQU07Q0FDcEU7O0FBRUQsTUFBTSxPQUFPLEVBQUUsR0FBRztJQUNoQixHQUFHLEVBQUUsU0FBUyxJQUFJLENBQUMsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLENBQUM7Q0FDdkUiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgaXNCcm93c2VyID0gdHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCc7XG5cbmV4cG9ydCBjb25zdCBTVVBQT1JUID0ge1xuICBzY3JvbGxCZWhhdmlvcjogaXNCcm93c2VyICYmICdzY3JvbGxCZWhhdmlvcicgaW4gZG9jdW1lbnQuYm9keS5zdHlsZSxcbiAgbmF0aXZlTWVkaWFMb2FkaW5nOiBpc0Jyb3dzZXIgJiYgJ2xvYWRpbmcnIGluIEltYWdlLnByb3RvdHlwZSxcbiAgaW50ZXJzZWN0aW9uT2JzZXJ2ZXI6IGlzQnJvd3NlciAmJiAnSW50ZXJzZWN0aW9uT2JzZXJ2ZXInIGluIHdpbmRvd1xufTtcblxuZXhwb3J0IGNvbnN0IFVBID0ge1xuICBpb3M6IGlzQnJvd3NlciAmJiAhIXdpbmRvdy5uYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9pUChhZHxob25lfG9kKS8pXG59O1xuIl19

@@ -18,3 +18,3 @@ /**

/** @type {?} */
ItemTemplateContext.prototype.seen;
ItemTemplateContext.prototype.video;
}

@@ -33,2 +33,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUtY29udGV4dHMuan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Qjs7SUFDbEIsb0NBQWU7Ozs7O0FBR2pCLDBDQUlDOzs7SUFIQyxxQ0FBYzs7SUFDZCw2Q0FBc0I7O0lBQ3RCLG9DQUFrQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdhbGxlcnlJdGVtIH0gZnJvbSAnLi9nYWxsZXJ5LWl0ZW0nO1xuXG5leHBvcnQgaW50ZXJmYWNlIEl0ZW1UZW1wbGF0ZUNvbnRleHQge1xuICBpbmRleDogbnVtYmVyO1xuICBzZWxlY3RlZEluZGV4OiBudW1iZXI7XG4gIGl0ZW06IEdhbGxlcnlJdGVtO1xuICB2aWRlbzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBUaHVtYlRlbXBsYXRlQ29udGV4dCB7XG4gIGluZGV4OiBudW1iZXI7XG4gIHNlbGVjdGVkSW5kZXg6IG51bWJlcjtcbiAgaXRlbTogR2FsbGVyeUl0ZW07XG59XG4iXX0=

@@ -15,2 +15,3 @@ /**

import { SafePipe } from './pipes/safe.pipe';
import { MediaDirective } from './directives/media.directive';
export class GalleryModule {

@@ -27,7 +28,8 @@ }

SafePipe,
MediaDirective,
],
imports: [CommonModule, BrowserAnimationsModule],
exports: [GalleryComponent],
exports: [GalleryComponent, MediaDirective],
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvZ2FsbGVyeS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxz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G9ydCB7IERvbVNhbml0aXplciB9IGZyb20gJ0Bhbmd1bGFyL3BsYXRmb3JtLWJyb3dzZXInO1xuXG5AUGlwZSh7XG4gIG5hbWU6ICdzYWZlJ1xufSlcbmV4cG9ydCBjbGFzcyBTYWZlUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHNhbml0aXplcjogRG9tU2FuaXRpemVyKSB7fVxuXG4gIHRyYW5zZm9ybSh1cmw6IHN0cmluZykge1xuICAgIHJldHVybiB0aGlzLnNhbml0aXplci5ieXBhc3NTZWN1cml0eVRydXN0UmVzb3VyY2VVcmwodXJsKTtcbiAgfVxufVxuIl19

@@ -14,3 +14,4 @@ /**

export { ViewerComponent as ɵa } from './lib/components/viewer/viewer.component';
export { MediaDirective as ɵf } from './lib/directives/media.directive';
export { SafePipe as ɵe } from './lib/pipes/safe.pipe';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWRvZS1nYWxsZXJ5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWRvZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibmd4LWRvZS1nYWxsZXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsK0hBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw0Q0FBNEMsQ0FBQztBQUNsRixPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sdURBQXVELENBQUM7QUFDakcsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSwwQ0FBMEMsQ0FBQztBQUMvRSxPQUFPLEVBQUMsZUFBZSxJQUFJLEVBQUUsRUFBQyxNQUFNLDBDQUEwQyxDQUFDO0FBQy9FLE9BQU8sRUFBQyxRQ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XBlJzsiXX0=

@@ -12,2 +12,2 @@ /**

export { GalleryItem, GalleryImage, GalleryVideo, isBrowser, SUPPORT, UA, orientations } from './lib/core';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSxpQ0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCw4QkFBYyxzQkFBc0IsQ0FBQztBQUNyQyw4RkFBYyxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgZG9lLWdhbGxlcnlcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2dhbGxlcnkvZ2FsbGVyeS5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9nYWxsZXJ5Lm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUnO1xyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSxpQ0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCw4QkFBYyxzQkFBc0IsQ0FBQztBQUNyQyw4RkFBYyxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGRvZS1nYWxsZXJ5XG4gKi9cblxuZXhwb3J0ICogZ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c2gsXG59KVxuZXhwb3J0IGNsYXNzIENvdW50ZXJDb21wb25lbnQge1xuICBASW5wdXQoKVxuICBpdGVtUXVhbnRpdHk6IG51bWJlcjtcblxuICBASW5wdXQoKVxuICBzZWxlY3RlZEluZGV4OiBudW1iZXI7XG5cbiAgQEhvc3RCaW5kaW5nKCdjbGFzcycpXG4gIEBJbnB1dCgpXG4gIG9yaWVudGF0aW9uOiBWZXJ0aWNhbE9yaWVudGF0aW9uO1xufVxuIl19

@@ -6,3 +6,3 @@ /**

*/
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, ViewChild, } from '@angular/core';
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, TemplateRef, ViewChild, ChangeDetectorRef, } from '@angular/core';
import { defaultAria } from '../../core/aria';

@@ -12,3 +12,6 @@ import { ThumbsComponent } from '../thumbs/thumbs.component';

var GalleryComponent = /** @class */ (function () {
function GalleryComponent() {
function GalleryComponent(cd, hostRef) {
var _this = this;
this.cd = cd;
this.hostRef = hostRef;
this.selectedIndex = 0;

@@ -20,4 +23,4 @@ this.aria = defaultAria;

this.touchGestures = true;
this.imageCounter = true;
this.imageCounterOrientation = 'bottom';
this.counter = true;
this.counterOrientation = 'bottom';
this.loading = 'auto';

@@ -37,2 +40,29 @@ this.loop = false;

this._tabindex = 0;
this._touched = false;
this.INIT_INTERACTIONS = ['touchstart', 'mousedown', 'keydown'];
this._onInitInteraction = (/**
* @return {?}
*/
function () {
/** @type {?} */
var hostEl = _this.hostRef.nativeElement;
_this._touched = true;
_this.cd.detectChanges();
_this.INIT_INTERACTIONS.forEach((/**
* @param {?} ename
* @return {?}
*/
function (ename) {
return hostEl.removeEventListener(ename, _this._onInitInteraction);
}));
});
this.INIT_INTERACTIONS.forEach((/**
* @param {?} ename
* @return {?}
*/
function (ename) {
return hostRef.nativeElement.addEventListener(ename, _this._onInitInteraction, {
passive: true,
});
}));
}

@@ -80,3 +110,3 @@ Object.defineProperty(GalleryComponent.prototype, "ariaLabel", {

function () {
this.viewerElRef.nativeElement.focus();
this._viewerElRef.nativeElement.focus();
};

@@ -90,3 +120,3 @@ /**

function () {
this.viewerRef.selectByDelta(1);
this._viewerRef.selectByDelta(1);
};

@@ -100,3 +130,3 @@ /**

function () {
this.viewerRef.selectByDelta(-1);
this._viewerRef.selectByDelta(-1);
};

@@ -112,4 +142,4 @@ /**

function (index) {
this.viewerRef.select(index);
this.thumbsRef.select(index);
this._viewerRef.select(index);
this._thumbsRef.select(index);
this._selectInternal(index);

@@ -126,3 +156,3 @@ };

function (direction) {
this.thumbsRef.slide(direction);
this._thumbsRef.slide(direction);
};

@@ -138,3 +168,3 @@ /**

function (event) {
this.viewerRef.select(event.index);
this._viewerRef.select(event.index);
this.thumbClick.emit(event);

@@ -158,7 +188,12 @@ this._selectInternal(event.index);

selector: 'doe-gallery',
template: "<doe-thumbs\r\n *ngIf=\"thumbs\"\r\n [items]=\"items\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [orientation]=\"thumbsOrientation\"\r\n [arrows]=\"thumbsArrows\"\r\n [arrowSlideByLength]=\"thumbsArrowSlideByLength\"\r\n [autoScroll]=\"thumbsAutoScroll\"\r\n [scrollBehavior]=\"thumbsScrollBehavior\"\r\n [thumbTemplate]=\"thumbTemplate\"\r\n [arrowTemplate]=\"thumbsArrowTemplate\"\r\n [errorTemplate]=\"thumbErrorTemplate\"\r\n [aria]=\"aria\"\r\n (thumbClick)=\"_onThumbClick($event)\"\r\n (thumbHover)=\"thumbHover.emit($event)\"\r\n></doe-thumbs>\r\n\r\n<doe-viewer\r\n tabindex=\"0\"\r\n [items]=\"items\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [arrows]=\"arrows\"\r\n [descriptions]=\"descriptions\"\r\n [errorText]=\"errorText\"\r\n [mouseGestures]=\"mouseGestures\"\r\n [touchGestures]=\"touchGestures\"\r\n [imageCounter]=\"imageCounter\"\r\n [imageCounterOrientation]=\"imageCounterOrientation\"\r\n [itemWidth]=\"itemWidth\"\r\n [objectFit]=\"objectFit\"\r\n [loading]=\"loading\"\r\n [itemTemplate]=\"itemTemplate\"\r\n [loadingTemplate]=\"loadingTemplate || defaultLoadingTemplate\"\r\n [errorTemplate]=\"errorTemplate\"\r\n [loop]=\"loop\"\r\n [thumbsOrientation]=\"_thumbsOrientationFlag\"\r\n [arrowTemplate]=\"arrowTemplate\"\r\n [aria]=\"aria\"\r\n (imageClick)=\"imageClick.emit($event)\"\r\n (descriptionClick)=\"descriptionClick.emit($event)\"\r\n (selection)=\"_selectInternal($event); thumbsRef?.select($event)\"\r\n></doe-viewer>\r\n\r\n<ng-template #defaultLoadingTemplate>\r\n <div class=\"doe-loading\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n</ng-template>\r\n",
template: "<doe-thumbs\n *ngIf=\"thumbs\"\n [items]=\"items\"\n [selectedIndex]=\"selectedIndex\"\n [orientation]=\"thumbsOrientation\"\n [arrows]=\"thumbsArrows\"\n [arrowSlideByLength]=\"thumbsArrowSlideByLength\"\n [autoScroll]=\"thumbsAutoScroll\"\n [scrollBehavior]=\"thumbsScrollBehavior\"\n [thumbTemplate]=\"thumbTemplate\"\n [arrowTemplate]=\"thumbsArrowTemplate\"\n [errorTemplate]=\"thumbErrorTemplate\"\n [aria]=\"aria\"\n (thumbClick)=\"_onThumbClick($event)\"\n (thumbHover)=\"thumbHover.emit($event)\"\n></doe-thumbs>\n\n<doe-viewer\n tabindex=\"0\"\n [items]=\"items\"\n [selectedIndex]=\"selectedIndex\"\n [arrows]=\"arrows\"\n [descriptions]=\"descriptions\"\n [errorText]=\"errorText\"\n [mouseGestures]=\"mouseGestures\"\n [touchGestures]=\"touchGestures\"\n [counter]=\"counter\"\n [counterOrientation]=\"counterOrientation\"\n [itemWidth]=\"itemWidth\"\n [objectFit]=\"objectFit\"\n [loading]=\"loading\"\n [itemTemplate]=\"itemTemplate\"\n [loadingTemplate]=\"loadingTemplate || defaultLoadingTemplate\"\n [errorTemplate]=\"errorTemplate\"\n [loop]=\"loop\"\n [thumbsOrientation]=\"_thumbsOrientationFlag\"\n [arrowTemplate]=\"arrowTemplate\"\n [aria]=\"aria\"\n [touched]=\"_touched\"\n (imageClick)=\"imageClick.emit($event)\"\n (descriptionClick)=\"descriptionClick.emit($event)\"\n (selection)=\"_selectInternal($event); _thumbsRef?.select($event)\"\n></doe-viewer>\n\n<ng-template #defaultLoadingTemplate>\n <div class=\"doe-loading\">\n <div></div>\n <div></div>\n <div></div>\n </div>\n</ng-template>\n",
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [":host{display:flex;height:600px;width:500px;outline:0;position:relative;background-color:#252525;border-radius:5px}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]
styles: [":host{display:flex;height:600px;width:500px;outline:0;position:relative}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5,0 0 1px 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]
}] }
];
/** @nocollapse */
GalleryComponent.ctorParameters = function () { return [
{ type: ChangeDetectorRef },
{ type: ElementRef }
]; };
GalleryComponent.propDecorators = {

@@ -173,4 +208,4 @@ items: [{ type: Input }],

touchGestures: [{ type: Input }],
imageCounter: [{ type: Input }],
imageCounterOrientation: [{ type: Input }],
counter: [{ type: Input }],
counterOrientation: [{ type: Input }],
itemWidth: [{ type: Input }],

@@ -198,5 +233,5 @@ loading: [{ type: Input }],

selection: [{ type: Output }],
viewerRef: [{ type: ViewChild, args: [ViewerComponent, { static: false },] }],
thumbsRef: [{ type: ViewChild, args: [ThumbsComponent, { static: false },] }],
viewerElRef: [{ type: ViewChild, args: [ViewerComponent, { static: false, read: ElementRef },] }],
_viewerRef: [{ type: ViewChild, args: [ViewerComponent, { static: false },] }],
_thumbsRef: [{ type: ViewChild, args: [ThumbsComponent, { static: false },] }],
_viewerElRef: [{ type: ViewChild, args: [ViewerComponent, { static: false, read: ElementRef },] }],
_tabindex: [{ type: HostBinding, args: ['tabindex',] }],

@@ -229,5 +264,5 @@ ariaLabel: [{ type: HostBinding, args: ['attr.aria-label',] }],

/** @type {?} */
GalleryComponent.prototype.imageCounter;
GalleryComponent.prototype.counter;
/** @type {?} */
GalleryComponent.prototype.imageCounterOrientation;
GalleryComponent.prototype.counterOrientation;
/** @type {?} */

@@ -278,10 +313,29 @@ GalleryComponent.prototype.itemWidth;

/** @type {?} */
GalleryComponent.prototype.viewerRef;
GalleryComponent.prototype._viewerRef;
/** @type {?} */
GalleryComponent.prototype.thumbsRef;
GalleryComponent.prototype._thumbsRef;
/** @type {?} */
GalleryComponent.prototype.viewerElRef;
GalleryComponent.prototype._viewerElRef;
/** @type {?} */
GalleryComponent.prototype._tabindex;
/** @type {?} */
GalleryComponent.prototype._touched;
/** @type {?} */
GalleryComponent.prototype.INIT_INTERACTIONS;
/**
* @type {?}
* @private
*/
GalleryComponent.prototype._onInitInteraction;
/**
* @type {?}
* @private
*/
GalleryComponent.prototype.cd;
/**
* @type {?}
* @private
*/
GalleryComponent.prototype.hostRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9nYWxsZXJ5L2dhbGxlcnkuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixXQUFXLEVBQ1gsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04sV0FBVyxFQUNYLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQWN2QixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDOUMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQzdELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUU3RDtJQUFBO1FBV0Usa0JBQWEsR0FBRyxDQUFDLENBQUM7UUFHbEIsU0FBSSxHQUFTLFdBQVcsQ0FBQztRQUd6QixXQUFNLEdBQUcsSUFBSSxDQUFDO1FBR2QsaUJBQVksR0FBRyxLQUFLLENBQUM7UUFNckIsa0JBQWEsR0FBRyxJQUFJL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bGVmdCcpXG4gIHByZXYoKSB7XG4gICAgdGhpcy5fdmlld2VyUmVmLnNlbGVjdEJ5RGVsdGEoLTEpO1xuICB9XG5cbiAgc2VsZWN0KGluZGV4OiBudW1iZXIpIHtcbiAgICB0aGlzLl92aWV3ZXJSZWYuc2VsZWN0KGluZGV4KTtcbiAgICB0aGlzLl90aHVtYnNSZWYuc2VsZWN0KGluZGV4KTtcbiAgICB0aGlzLl9zZWxlY3RJbnRlcm5hbChpbmRleCk7XG4gIH1cblxuICBzbGlkZVRodW1icyhkaXJlY3Rpb246IG51bWJlcikge1xuICAgIHRoaXMuX3RodW1ic1JlZi5zbGlkZShkaXJlY3Rpb24pO1xuICB9XG5cbiAgX29uVGh1bWJDbGljayhldmVudDogR2FsbGVyeUl0ZW1FdmVudCkge1xuICAgIHRoaXMuX3ZpZXdlclJlZi5zZWxlY3QoZXZlbnQuaW5kZXgpO1xuICAgIHRoaXMudGh1bWJDbGljay5lbWl0KGV2ZW50KTtcbiAgICB0aGlzLl9zZWxlY3RJbnRlcm5hbChldmVudC5pbmRleCk7XG4gIH1cblxuICBfc2VsZWN0SW50ZXJuYWwoaW5kZXg6IG51bWJlcikge1xuICAgIHRoaXMuc2VsZWN0ZWRJbmRleCA9IGluZGV4O1xuICAgIHRoaXMuc2VsZWN0aW9uLmVtaXQodGhpcy5pdGVtc1tpbmRleF0pO1xuICB9XG59XG4iXX0=

@@ -13,3 +13,3 @@ /**

selector: 'doe-chevron-icon',
template: "<!-- Icon made by Dave Gandy from www.flaticon.com -->\r\n<svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 407.436 407.436\"\r\n xml:space=\"preserve\"\r\n>\r\n <polygon\r\n points=\"112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 \"\r\n />\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n</svg>\r\n",
template: "<!-- Icon made by Dave Gandy from www.flaticon.com -->\n<svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 407.436 407.436\"\n xml:space=\"preserve\"\n>\n <polygon\n points=\"112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 \"\n />\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n</svg>\n",
changeDetection: ChangeDetectionStrategy.OnPush,

@@ -22,2 +22,2 @@ styles: ["svg{width:26px;height:26px;fill:#fff;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);display:block}"]

export { ChevronIconComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hldnJvbi1pY29uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL2ljb25zL2NoZXZyb24vY2hldnJvbi1pY29uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFbkU7SUFBQTtJQU1tQyxDQUFDOztnQkFObkMsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSxrQkFBa0I7b0JBQzVCLGduQkFBNEM7b0JBRTVDLGVBQ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O0NBQUEsQUFOcEMsSUFNb0M7U0FBdkIsb0JBQW9CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdkb2UtY2hldnJvbi1pY29uJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2NoZXZyb24taWNvbi5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL2NoZXZyb24taWNvbi5jb21wb25lbnQuc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBDaGV2cm9uSWNvbkNvbXBvbmVudCB7fVxuIl19

@@ -9,14 +9,16 @@ /**

import { isBrowser, SUPPORT, } from '../../core';
import { isVideo, } from '../../core/gallery-item';
var ThumbsComponent = /** @class */ (function () {
function ThumbsComponent(cd, elRef) {
function ThumbsComponent(_cd, _elRef) {
var _this = this;
this.cd = cd;
this.elRef = elRef;
this._cd = _cd;
this._elRef = _elRef;
this.items = [];
this.thumbClick = new EventEmitter();
this.thumbHover = new EventEmitter();
this.showStartArrow = false;
this.showEndArrow = false;
this.destroy$ = new Subject();
this.smoothScrollAllowed = false;
this.isVideo = isVideo;
this._showStartArrow = false;
this._showEndArrow = false;
this._destroy$ = new Subject();
this._smoothScrollAllowed = false;
this.onArrowsObserved = (/**

@@ -34,8 +36,8 @@ * @param {?} entries

if (firstThumbEntry) {
_this.showStartArrow = firstThumbEntry.intersectionRatio < 1;
_this._showStartArrow = firstThumbEntry.intersectionRatio < 1;
}
if (lastThumbEntry) {
_this.showEndArrow = lastThumbEntry.intersectionRatio < 1;
_this._showEndArrow = lastThumbEntry.intersectionRatio < 1;
}
_this.cd.detectChanges();
_this._cd.detectChanges();
});

@@ -48,3 +50,3 @@ }

function () {
return this.smoothScrollAllowed ? this._scrollBehavior : 'auto';
return this._smoothScrollAllowed ? this._scrollBehavior : 'auto';
},

@@ -71,3 +73,3 @@ set: /**

});
Object.defineProperty(ThumbsComponent.prototype, "scrollKey", {
Object.defineProperty(ThumbsComponent.prototype, "_hostOffsetAxis", {
get: /**

@@ -78,3 +80,5 @@ * @private

function () {
return this.vertical ? 'scrollTop' : 'scrollLeft';
return this._vertical
? this._elRef.nativeElement.offsetHeight
: this._elRef.nativeElement.offsetWidth;
},

@@ -84,3 +88,3 @@ enumerable: true,

});
Object.defineProperty(ThumbsComponent.prototype, "hostOffsetAxis", {
Object.defineProperty(ThumbsComponent.prototype, "_scrollKey", {
get: /**

@@ -91,5 +95,3 @@ * @private

function () {
return this.vertical
? this.elRef.nativeElement.offsetHeight
: this.elRef.nativeElement.offsetWidth;
return this._vertical ? 'scrollTop' : 'scrollLeft';
},

@@ -113,3 +115,3 @@ enumerable: true,

var newOrientation = orientation.currentValue;
this.vertical = newOrientation === 'left' || newOrientation === 'right';
this._vertical = newOrientation === 'left' || newOrientation === 'right';
}

@@ -121,4 +123,4 @@ if (arrows) {

else if (!arrows.currentValue) {
this.showStartArrow = false;
this.showEndArrow = false;
this._showStartArrow = false;
this._showEndArrow = false;
this.unobserveArrows();

@@ -144,3 +146,3 @@ }

_this.centerThumbIfNeeded(_this.selectedIndex);
_this.smoothScrollAllowed = true;
_this._smoothScrollAllowed = true;
}));

@@ -157,5 +159,5 @@ }

function () {
this.destroy$.next(null);
this.destroy$.complete();
this.arrowObserver && this.arrowObserver.disconnect();
this._destroy$.next(null);
this._destroy$.complete();
this._arrowObserver && this._arrowObserver.disconnect();
};

@@ -183,7 +185,7 @@ /**

/** @type {?} */
var thumbListScrollAxis = this.vertical
var thumbListScrollAxis = this._vertical
? thumbList.scrollHeight
: thumbList.scrollWidth;
/** @type {?} */
var thumbListOffsetAxis = this.vertical
var thumbListOffsetAxis = this._vertical
? thumbList.offsetHeight

@@ -209,11 +211,14 @@ : thumbList.offsetWidth;

var nextItemEl = this.thumbsRef.toArray()[index].nativeElement;
if (!nextItemEl) {
return;
}
var offsetLeft = nextItemEl.offsetLeft, offsetTop = nextItemEl.offsetTop, offsetWidth = nextItemEl.offsetWidth, offsetHeight = nextItemEl.offsetHeight;
/** @type {?} */
var itemOffset = this.vertical ? offsetTop : offsetLeft;
var itemOffset = this._vertical ? offsetTop : offsetLeft;
/** @type {?} */
var itemOffsetAxis = this.vertical ? offsetHeight : offsetWidth;
var itemOffsetAxis = this._vertical ? offsetHeight : offsetWidth;
/** @type {?} */
var hostScrollAxis = this.hostOffsetAxis;
var hostScrollAxis = this._hostOffsetAxis;
/** @type {?} */
var thumbListScroll = this.thumbListRef.nativeElement[this.scrollKey];
var thumbListScroll = this.thumbListRef.nativeElement[this._scrollKey];
/** @type {?} */

@@ -237,3 +242,3 @@ var nextScrollDelta = itemOffset + itemOffsetAxis / 2 - hostScrollAxis / 2 - thumbListScroll;

this.selectedIndex = index;
this.cd.detectChanges();
this._cd.detectChanges();
if (this.autoScroll) {

@@ -247,13 +252,2 @@ setTimeout((/**

/**
* @param {?} item
* @return {?}
*/
ThumbsComponent.prototype.onItemErrored = /**
* @param {?} item
* @return {?}
*/
function (item) {
item._thumbFailed = true;
};
/**
* @param {?} index

@@ -265,3 +259,3 @@ * @param {?} item

*/
ThumbsComponent.prototype.emitEvent = /**
ThumbsComponent.prototype._emitEvent = /**
* @param {?} index

@@ -281,2 +275,15 @@ * @param {?} item

/**
* @param {?} item
* @param {?} success
* @return {?}
*/
ThumbsComponent.prototype._onLoadChange = /**
* @param {?} item
* @param {?} success
* @return {?}
*/
function (item, success) {
item._thumbFailed = !success;
};
/**
* @private

@@ -297,7 +304,7 @@ * @param {?} totalScrollDelta

if (SUPPORT.scrollBehavior || this.scrollBehavior === 'auto') {
this.thumbListRef.nativeElement[this.scrollKey] += totalScrollDelta;
this.thumbListRef.nativeElement[this._scrollKey] += totalScrollDelta;
return;
}
if (this.scrollId != null) {
cancelAnimationFrame(this.scrollId);
if (this._scrollId != null) {
cancelAnimationFrame(this._scrollId);
}

@@ -332,8 +339,8 @@ /** @type {?} */

currentScroll = suggestedScroll;
_this.thumbListRef.nativeElement[_this.scrollKey] += frameScroll;
_this.thumbListRef.nativeElement[_this._scrollKey] += frameScroll;
if (currentScroll <= totalDistance) {
_this.scrollId = requestAnimationFrame(animate);
_this._scrollId = requestAnimationFrame(animate);
}
});
this.scrollId = requestAnimationFrame(animate);
this._scrollId = requestAnimationFrame(animate);
};

@@ -350,4 +357,4 @@ /**

var _this = this;
if (!this.arrowObserver) {
this.arrowObserver = new IntersectionObserver(this.onArrowsObserved, {
if (!this._arrowObserver) {
this._arrowObserver = new IntersectionObserver(this.onArrowsObserved, {
root: this.thumbListRef.nativeElement,

@@ -358,3 +365,3 @@ threshold: 1.0,

else {
this.arrowObserver.disconnect();
this._arrowObserver.disconnect();
}

@@ -365,4 +372,4 @@ setTimeout((/**

function () {
_this.arrowObserver.observe(_this.thumbsRef.first.nativeElement);
_this.arrowObserver.observe(_this.thumbsRef.last.nativeElement);
_this._arrowObserver.observe(_this.thumbsRef.first.nativeElement);
_this._arrowObserver.observe(_this.thumbsRef.last.nativeElement);
}));

@@ -379,3 +386,3 @@ };

function () {
this.arrowObserver && this.arrowObserver.disconnect();
this._arrowObserver && this._arrowObserver.disconnect();
};

@@ -385,5 +392,5 @@ ThumbsComponent.decorators = [

selector: 'doe-thumbs',
template: "<div\r\n *ngIf=\"showStartArrow\"\r\n class=\"doe-thumbs-arrow doe-thumbs-arrow-prev\"\r\n (click)=\"slide(-1)\"\r\n>\r\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n\r\n<ul\r\n #thumbs\r\n [style.scrollBehavior]=\"scrollBehavior\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"aria?.thumbnailsLabel\"\r\n>\r\n <li *ngIf=\"!items || !items.length\" class=\"doe-thumbs-initial-item\"></li>\r\n <li\r\n #thumb\r\n *ngFor=\"let item of items; let i = index\"\r\n [class.doe-thumbs-item--selected]=\"i === selectedIndex\"\r\n aria-hidden=\"true\"\r\n (click)=\"emitEvent(i, item, $event, thumbClick)\"\r\n (mouseenter)=\"emitEvent(i, item, $event, thumbHover)\"\r\n >\r\n <ng-container *ngIf=\"!thumbTemplate; else customThumbTemplate\">\r\n <img\r\n [src]=\"item.thumbSrc || item.src\"\r\n [alt]=\"item.alt\"\r\n (error)=\"onItemErrored(item)\"\r\n />\r\n\r\n <ng-container *ngIf=\"item._thumbFailed\">\r\n <div\r\n *ngIf=\"!errorTemplate; else errorTemplate\"\r\n class=\"doe-thumbs-error\"\r\n >\r\n <div class=\"doe-thumbs-error-icon\">\u26A0</div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #customThumbTemplate>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n thumbTemplate;\r\n context: { index: i, selectedIndex: selectedIndex, item: item }\r\n \"\r\n ></ng-container>\r\n </ng-template>\r\n </li>\r\n</ul>\r\n\r\n<div\r\n *ngIf=\"showEndArrow\"\r\n class=\"doe-thumbs-arrow doe-thumbs-arrow-next\"\r\n (click)=\"slide(1)\"\r\n>\r\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n",
template: "<div\n *ngIf=\"_showStartArrow\"\n class=\"doe-thumbs-arrow doe-thumbs-arrow-prev\"\n (click)=\"slide(-1)\"\n>\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n\n<ul\n #thumbs\n [style.scrollBehavior]=\"scrollBehavior\"\n tabindex=\"0\"\n [attr.aria-label]=\"aria?.thumbnailsLabel\"\n>\n <li *ngIf=\"!items || !items.length\" class=\"doe-thumbs-initial-item\"></li>\n <li\n #thumb\n *ngFor=\"let item of items; let i = index\"\n [class.doe-thumbs-item--selected]=\"i === selectedIndex\"\n aria-hidden=\"true\"\n (click)=\"_emitEvent(i, item, $event, thumbClick)\"\n (mouseenter)=\"_emitEvent(i, item, $event, thumbHover)\"\n >\n <ng-container *ngIf=\"!thumbTemplate; else customThumbTemplate\">\n <img\n [src]=\"item.thumbSrc || ''\"\n [alt]=\"item.alt\"\n (load)=\"_onLoadChange(item, true)\"\n (error)=\"_onLoadChange(item, false)\"\n />\n\n <ng-container *ngIf=\"item._thumbFailed\">\n <div\n *ngIf=\"!errorTemplate; else errorTemplate\"\n class=\"doe-thumbs-error\"\n >\n <div\n class=\"doe-thumbs-error-icon\"\n [class.doe-thumbs-error-icon--video]=\"isVideo(item)\"\n ></div>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template #customThumbTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n thumbTemplate;\n context: { index: i, selectedIndex: selectedIndex, item: item }\n \"\n ></ng-container>\n </ng-template>\n </li>\n</ul>\n\n<div\n *ngIf=\"_showEndArrow\"\n class=\"doe-thumbs-arrow doe-thumbs-arrow-next\"\n (click)=\"slide(1)\"\n>\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n",
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [":host{flex:1 0 auto;position:relative}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;border:1px solid #252525;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:\"\";display:block;position:absolute;left:0;bottom:0;width:100%;height:10px;background-color:#ffffffab;box-shadow:0 0 1px #000}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#222}.doe-thumbs-error-icon{font-size:20px;color:#f5f5f5}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}"]
styles: [":host{flex:1 0 auto;position:relative;background-color:#f3f3f3}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--bottom .doe-thumbs-error,:host.doe-thumbs--top .doe-thumbs-error{border-right:1px solid #cecece}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--left .doe-thumbs-error,:host.doe-thumbs--right .doe-thumbs-error{border-bottom:1px solid #cecece}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:\"\";display:block;position:absolute;left:0;bottom:0;width:100%;height:100%;border:10px solid #ffffffcf;box-sizing:border-box}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#e8e8e8;box-sizing:border-box}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video){position:relative;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:28px solid #a5a5a5;margin-left:-8px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after,.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{content:\"\";position:absolute}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{height:10px;width:10px;background-color:#a5a5a5;border-radius:100%;left:14px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after{border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:17px solid #a5a5a5;top:11px}.doe-thumbs-error-icon--video{border-top:16px solid transparent;border-bottom:16px solid transparent;border-left:28px solid #a5a5a5;margin-left:9px}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}"]
}] }

@@ -447,7 +454,9 @@ ];

/** @type {?} */
ThumbsComponent.prototype.showStartArrow;
ThumbsComponent.prototype.isVideo;
/** @type {?} */
ThumbsComponent.prototype.showEndArrow;
ThumbsComponent.prototype._showStartArrow;
/** @type {?} */
ThumbsComponent.prototype.vertical;
ThumbsComponent.prototype._showEndArrow;
/** @type {?} */
ThumbsComponent.prototype._vertical;
/**

@@ -457,3 +466,3 @@ * @type {?}

*/
ThumbsComponent.prototype.destroy$;
ThumbsComponent.prototype._destroy$;
/**

@@ -463,3 +472,3 @@ * @type {?}

*/
ThumbsComponent.prototype.arrowObserver;
ThumbsComponent.prototype._arrowObserver;
/**

@@ -474,3 +483,3 @@ * @type {?}

*/
ThumbsComponent.prototype.smoothScrollAllowed;
ThumbsComponent.prototype._scrollId;
/**

@@ -480,3 +489,3 @@ * @type {?}

*/
ThumbsComponent.prototype.scrollId;
ThumbsComponent.prototype._smoothScrollAllowed;
/**

@@ -491,3 +500,3 @@ * @type {?}

*/
ThumbsComponent.prototype.cd;
ThumbsComponent.prototype._cd;
/**

@@ -497,4 +506,4 @@ * @type {?}

*/
ThumbsComponent.prototype.elRef;
ThumbsComponent.prototype._elRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGh1bWJzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3RodW1icy90aHVtYnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWF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UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL2FyaWEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSwwQkFJQzs7O0lBSEMsNEJBQXFCOztJQUNyQiwyQkFBb0I7O0lBQ3BCLCtCQUF3Qjs7O0FBRzFCLE1BQU0sS0FBTyxXQUFXLEdBQVM7SUFDL0IsWUFBWSxFQUFFLGVBQWU7SUFDN0IsV0FBVyxFQUFFLHlCQUF5QjtJQUN0QyxlQUFlLEVBQUUsb0JBQW9CO0NBQ3RDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBBcmlhIHtcbiAgZ2FsbGVyeUxhYmVsOiBzdHJpbmc7XG4gIHZpZXdlckxhYmVsOiBzdHJpbmc7XG4gIHRodW1ibmFpbHNMYWJlbDogc3RyaW5nO1xufVxuXG5leHBvcnQgY29uc3QgZGVmYXVsdEFyaWE6IEFyaWEgPSB7XG4gIGdhbGxlcnlMYWJlbDogJ0ltYWdlIEdhbGxlcnknLFxuICB2aWV3ZXJMYWJlbDogJ0Rpc3BsYXllZCBnYWxsZXJ5IGltYWdlJyxcbiAgdGh1bWJuYWlsc0xhYmVsOiAnR2FsbGVyeSB0aHVtYm5haWxzJ1xufTtcbiJdfQ==

@@ -135,7 +135,2 @@ /**

/**
* Marks item as seen at least once
* @type {?|undefined}
*/
GalleryItemInternal.prototype._seen;
/**
* `true` when media couldn't be loaded

@@ -151,2 +146,8 @@ * @type {?|undefined}

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS1pdGVtLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWRvZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibGliL2NvcmUvZ2FsbGVyeS1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOzs7O0lBQ0U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pZGVvID0gKGl0ZW06IEdhbGxlcnlJdGVtKSA9PiBpdGVtIGluc3RhbmNlb2YgR2FsbGVyeVZpZGVvO1xuIl19

@@ -12,2 +12,2 @@ /**

export {} from './template-contexts';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29yZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHVDQUFjLFdBQVcsQ0FBQztBQUMxQixPQUFPLEVBQ0wsV0FBVyxFQUNYLFlBQVksRUFDWixZQUFZLEVBRWIsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QixlQUFjLGNBQWMsQ0FBQztBQUM3QixlQUFjLFdBQVcsQ0FBQztBQUMxQiw2QkFBYyxlQUFlLENBQUM7QUFDOUIsZUFBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3VwcG9ydCc7XHJcbmV4cG9ydCB7XHJcbiAgR2FsbGVyeUl0ZW0sXHJcbiAgR2FsbGVyeUltYWdlLFxyXG4gIEdhbGxlcnlWaWRlbyxcclxuICBHYWxsZXJ5SXRlbUV2ZW50XHJcbn0gZnJvbSAnLi9nYWxsZXJ5LWl0ZW0nO1xyXG5leHBvcnQgKiBmcm9tICcuL29iamVjdC1maXQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xvYWRpbmcnO1xyXG5leHBvcnQgKiBmcm9tICcuL29yaWVudGF0aW9uJztcclxuZXhwb3J0ICogZnJvbSAnLi90ZW1wbGF0ZS1jb250ZXh0cyc7XHJcbmV4cG9ydCB7IEFyaWEgfSBmcm9tICcuL2FyaWEnO1xyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb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XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL2xvYWRpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIExvYWRpbmcgPSAnYXV0bycgfCAnbGF6eSc7XG4iXX0=

@@ -6,2 +6,2 @@ /**

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LWZpdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL29iamVjdC1maXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIE9iamVjdEZpdCA9ICdjb250YWluJyB8ICdjb3Zlcic7XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LWZpdC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbImxpYi9jb3JlL29iamVjdC1maXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIE9iamVjdEZpdCA9ICdjb250YWluJyB8ICdjb3Zlcic7XG4iXX0=

@@ -23,2 +23,2 @@ /**

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JpZW50YXRpb24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29yZS9vcmllbnRhdGl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FMb2FkaW5nOiBpc0Jyb3dzZXIgJiYgJ2xvYWRpbmcnIGluIEltYWdlLnByb3RvdHlwZSxcbiAgaW50ZXJzZWN0aW9uT2JzZXJ2ZXI6IGlzQnJvd3NlciAmJiAnSW50ZXJzZWN0aW9uT2JzZXJ2ZXInIGluIHdpbmRvd1xufTtcblxuZXhwb3J0IGNvbnN0IFVBID0ge1xuICBpb3M6IGlzQnJvd3NlciAmJiAhIXdpbmRvdy5uYXZpZ2F0b3IudXNlckFnZW50Lm1hdGNoKC9pUChhZHxob25lfG9kKS8pXG59O1xuIl19

@@ -18,3 +18,3 @@ /**

/** @type {?} */
ItemTemplateContext.prototype.seen;
ItemTemplateContext.prototype.video;
}

@@ -33,2 +33,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUtY29udGV4dHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29yZS90ZW1wbGF0ZS1jb250ZXh0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUVBLHlDQUtDOzs7SUFKQyxvQ0FBYzs7SUFDZCw0Q0FBc0I7O0lBQ3RCLG1DQUFrQjs7SUFDbEIsbUNBQWM7Ozs7O0FBR2hCLDBDQUlDOzs7SUFIQyxxQ0FBYzs7SUFDZCw2Q0FBc0I7O0lBQ3RCLG9DQUFrQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdhbGxlcnlJdGVtIH0gZnJvbSAnLi9nYWxsZXJ5LWl0ZW0nO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJdGVtVGVtcGxhdGVDb250ZXh0IHtcclxuICBpbmRleDogbnVtYmVyO1xyXG4gIHNlbGVjdGVkSW5kZXg6IG51bWJlcjtcclxuICBpdGVtOiBHYWxsZXJ5SXRlbTtcclxuICBzZWVuOiBib29sZWFuO1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFRodW1iVGVtcGxhdGVDb250ZXh0IHtcclxuICBpbmRleDogbnVtYmVyO1xyXG4gIHNlbGVjdGVkSW5kZXg6IG51bWJlcjtcclxuICBpdGVtOiBHYWxsZXJ5SXRlbTtcclxufVxyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGUtY29udGV4dHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvY29yZS90ZW1wbGF0ZS1jb250ZXh0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUVBLHlDQUtDOzs7SUFKQyxvQ0FBYzs7SUFDZCw0Q0FBc0I7O0lBQ3RCLG1DQUFrQjs7SUFDbEIsb0NBQWU7Ozs7O0FBR2pCLDBDQUlDOzs7SUFIQyxxQ0FBYzs7SUFDZCw2Q0FBc0I7O0lBQ3RCLG9DQUFrQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdhbGxlcnlJdGVtIH0gZnJvbSAnLi9nYWxsZXJ5LWl0ZW0nO1xuXG5leHBvcnQgaW50ZXJmYWNlIEl0ZW1UZW1wbGF0ZUNvbnRleHQge1xuICBpbmRleDogbnVtYmVyO1xuICBzZWxlY3RlZEluZGV4OiBudW1iZXI7XG4gIGl0ZW06IEdhbGxlcnlJdGVtO1xuICB2aWRlbzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBUaHVtYlRlbXBsYXRlQ29udGV4dCB7XG4gIGluZGV4OiBudW1iZXI7XG4gIHNlbGVjdGVkSW5kZXg6IG51bWJlcjtcbiAgaXRlbTogR2FsbGVyeUl0ZW07XG59XG4iXX0=

@@ -15,2 +15,3 @@ /**

import { SafePipe } from './pipes/safe.pipe';
import { MediaDirective } from './directives/media.directive';
var GalleryModule = /** @class */ (function () {

@@ -28,5 +29,6 @@ function GalleryModule() {

SafePipe,
MediaDirective,
],
imports: [CommonModule, BrowserAnimationsModule],
exports: [GalleryComponent],
exports: [GalleryComponent, MediaDirective],
},] }

@@ -37,2 +39,2 @@ ];

export { GalleryModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FsbGVyeS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtZG9lLWdhbGxlcnkvIiwic291cmNlcyI6WyJsaWIvZ2FsbGVyeS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUUvRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUMxRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUMxRSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUN6RixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDdkUsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUU3QztJQUFBO0lBWTRCLENBQUM7O2dCQVo1QixRQUFRLFNBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLGdCQUFnQjt3QkFDaEIsZUFBZTt3QkFDZixlQUFlO3dCQUNmLG9CQUFvQjt3QkFDcEIsZ0JBQ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NlY3VyaXR5VHJ1c3RSZXNvdXJjZVVybCh1cmwpO1xuICB9XG59XG4iXX0=

@@ -14,3 +14,4 @@ /**

export { ViewerComponent as ɵa } from './lib/components/viewer/viewer.component';
export { MediaDirective as ɵf } from './lib/directives/media.directive';
export { SafePipe as ɵe } from './lib/pipes/safe.pipe';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWRvZS1nYWxsZXJ5LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWRvZS1nYWxsZXJ5LyIsInNvdXJjZXMiOlsibmd4LWRvZS1nYWxsZXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsK0hBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw0Q0FBNEMsQ0FBQztBQUNsRixPQUFPLEVBQUMsb0JBQW9CLElBQUksRUFBRSxFQUFDLE1BQU0sdURBQXVELENBQUM7QUFDakcsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSwwQ0FBMEMsQ0FBQztBQUMvRSxPQUFPLEVBQUMsZUFBZSxJQUFJLEVBQUUsRUFBQyxNQUFNLDBDQUEwQyxDQUFDO0FBQy9FLE9BQU8sRUFBQyxRQUFRLElBQUksRUFBRSxFQUFDLE1BQU0sdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7Q291bnRlckNvbXBvbmVudCBhcyDJtWR9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvY291bnRlci9jb3VudGVyLmNvbXBvbmVudCc7XG5leHBvcnQge0NoZXZyb25JY29uQ29tcG9uZW50IGFz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XJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtDb3VudGVyQ29tcG9uZW50IGFzIMm1ZH0gZnJvbSAnLi9saWIvY29tcG9uZW50cy9jb3VudGVyL2NvdW50ZXIuY29tcG9uZW50JztcbmV4cG9ydCB7Q2hldnJvbkljb25Db21wb25lbnQgYXMgybVjfSBmcm9tICcuL2xpYi9jb21wb25lbnRzL2ljb25zL2NoZXZyb24vY2hldnJvbi1pY29uLmNvbXBvbmVudCc7XG5leHBvcnQge1RodW1ic0NvbXBvbmVudCBhcyDJtWJ9IGZyb20gJy4vbGliL2NvbXBvbmVudHMvdGh1bWJzL3RodW1icy5jb21wb25lbnQnO1xuZXhwb3J0IHtWaWV3ZXJDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ZpZXdlci92aWV3ZXIuY29tcG9uZW50JztcbmV4cG9ydCB7TWVkaWFEaXJlY3RpdmUgYXMgybVmfSBmcm9tICcuL2xpYi9kaXJlY3RpdmVzL21lZGlhLmRpcmVjdGl2ZSc7XG5leHBvcnQge1NhZmVQaXBlIGFzIMm1ZX0gZnJvbSAnLi9saWIvcGlwZXMvc2FmZS5waXBlJzsiXX0=

@@ -12,2 +12,2 @@ /**

export { GalleryItem, GalleryImage, GalleryVideo, isBrowser, SUPPORT, UA, orientations } from './lib/core';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSxpQ0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCw4QkFBYyxzQkFBc0IsQ0FBQztBQUNyQyw4RkFBYyxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgZG9lLWdhbGxlcnlcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL2dhbGxlcnkvZ2FsbGVyeS5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9nYWxsZXJ5Lm1vZHVsZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUnO1xyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1kb2UtZ2FsbGVyeS8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSxpQ0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCw4QkFBYyxzQkFBc0IsQ0FBQztBQUNyQyw4RkFBYyxZQUFZLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGRvZS1nYWxsZXJ5XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy9nYWxsZXJ5L2dhbGxlcnkuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2dhbGxlcnkubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUnO1xuIl19

@@ -0,0 +0,0 @@ import { VerticalOrientation } from '../../core';

@@ -1,2 +0,2 @@

import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
import { ElementRef, EventEmitter, TemplateRef, ChangeDetectorRef } from '@angular/core';
import { Aria, GalleryItem, GalleryItemEvent, ItemTemplateContext, Loading, ObjectFit, Orientation, OrientationFlag, VerticalOrientation, ThumbTemplateContext } from '../../core';

@@ -6,2 +6,4 @@ import { ThumbsComponent } from '../thumbs/thumbs.component';

export declare class GalleryComponent {
private cd;
private hostRef;
items: GalleryItem[];

@@ -15,4 +17,4 @@ selectedIndex: number;

touchGestures: boolean;
imageCounter: boolean;
imageCounterOrientation: VerticalOrientation;
counter: boolean;
counterOrientation: VerticalOrientation;
itemWidth: string;

@@ -40,9 +42,13 @@ loading: Loading;

selection: EventEmitter<GalleryItem>;
viewerRef: ViewerComponent;
thumbsRef: ThumbsComponent;
viewerElRef: ElementRef<HTMLElement>;
_viewerRef: ViewerComponent;
_thumbsRef: ThumbsComponent;
_viewerElRef: ElementRef<HTMLElement>;
_tabindex: number;
_touched: boolean;
INIT_INTERACTIONS: string[];
readonly ariaLabel: string;
readonly _galleryColumn: boolean;
readonly _thumbsOrientationFlag: OrientationFlag;
constructor(cd: ChangeDetectorRef, hostRef: ElementRef<HTMLElement>);
private _onInitInteraction;
focus(): void;

@@ -49,0 +55,0 @@ next(): void;

export declare class ChevronIconComponent {
}

@@ -6,4 +6,4 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges, TemplateRef } from '@angular/core';

export declare class ThumbsComponent implements OnChanges, OnDestroy {
private cd;
private elRef;
private _cd;
private _elRef;
items: GalleryItemInternal[];

@@ -24,14 +24,15 @@ selectedIndex: number;

thumbsRef: QueryList<ElementRef<HTMLElement>>;
showStartArrow: boolean;
showEndArrow: boolean;
vertical: boolean;
private destroy$;
private arrowObserver;
isVideo: (item: import("../../core").GalleryItem) => boolean;
_showStartArrow: boolean;
_showEndArrow: boolean;
_vertical: boolean;
private _destroy$;
private _arrowObserver;
private _scrollBehavior;
private smoothScrollAllowed;
private scrollId;
private _scrollId;
private _smoothScrollAllowed;
readonly cssClass: string;
private readonly scrollKey;
private readonly hostOffsetAxis;
constructor(cd: ChangeDetectorRef, elRef: ElementRef<HTMLElement>);
private readonly _hostOffsetAxis;
private readonly _scrollKey;
constructor(_cd: ChangeDetectorRef, _elRef: ElementRef<HTMLElement>);
ngOnChanges({ arrows, items, orientation }: SimpleChanges): void;

@@ -42,4 +43,4 @@ ngOnDestroy(): void;

select(index: number): void;
onItemErrored(item: GalleryItemInternal): void;
emitEvent(index: number, item: GalleryItemInternal, event: Event, emitter: EventEmitter<GalleryItemEvent>): void;
_emitEvent(index: number, item: GalleryItemInternal, event: Event, emitter: EventEmitter<GalleryItemEvent>): void;
_onLoadChange(item: GalleryItemInternal, success: boolean): void;
private scroll;

@@ -46,0 +47,0 @@ private onArrowsObserved;

@@ -5,5 +5,5 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';

export declare class ViewerComponent implements OnChanges, OnInit, OnDestroy {
private hostRef;
private cd;
private zone;
private _hostRef;
private _cd;
private _zone;
items: GalleryItemInternal[];

@@ -16,6 +16,5 @@ arrows: boolean;

touchGestures: boolean;
imageCounter: boolean;
imageCounterOrientation: VerticalOrientation;
counter: boolean;
counterOrientation: VerticalOrientation;
loading: Loading;
loop: boolean;
objectFit: ObjectFit;

@@ -28,3 +27,5 @@ itemTemplate: TemplateRef<ItemTemplateContext>;

aria: Aria;
loop: boolean;
itemWidth: string;
touched: boolean;
imageClick: EventEmitter<GalleryItemEvent>;

@@ -35,24 +36,24 @@ descriptionClick: EventEmitter<Event>;

itemsRef: QueryList<ElementRef<HTMLElement>>;
displayedItems: GalleryItemInternal[];
isVideo: (item: import("../../core").GalleryItem) => boolean;
UA: {
ios: boolean;
};
_displayedItems: GalleryItemInternal[];
private _destroy$;
private _fringeCount;
private _itemWidth;
private _loop;
private _viewerWidth;
private _listX;
_noAnimation: boolean;
readonly lazyLoading: boolean;
noAnimation: boolean;
readonly showArrow: boolean;
readonly showPrevArrow: boolean;
readonly showNextArrow: boolean;
constructor(hostRef: ElementRef<HTMLElement>, cd: ChangeDetectorRef, zone: NgZone);
constructor(_hostRef: ElementRef<HTMLElement>, _cd: ChangeDetectorRef, _zone: NgZone);
ngOnChanges({ thumbsOrientation, items }: SimpleChanges): void;
ngOnInit(): void;
ngOnDestroy(): void;
getSrc(item: GalleryItemInternal, index: number): string;
isInScrollportProximity(index: number): boolean;
isYoutube(item: GalleryItemInternal): boolean;
isVideo(item: GalleryItemInternal): boolean;
selectByDelta(delta: number): void;

@@ -59,0 +60,0 @@ select(index: number): void;

@@ -0,0 +0,0 @@ export interface Aria {

@@ -96,6 +96,2 @@ export declare abstract class GalleryItem {

/**
* Marks item as seen at least once
*/
_seen?: boolean;
/**
* `true` when media couldn't be loaded

@@ -109,1 +105,2 @@ */

}
export declare const isVideo: (item: GalleryItem) => boolean;

@@ -0,0 +0,0 @@ export * from './support';

export declare type Loading = 'auto' | 'lazy';
export declare type ObjectFit = 'contain' | 'cover';

@@ -0,0 +0,0 @@ export declare type Orientation = 'top' | 'bottom' | 'left' | 'right';

@@ -0,0 +0,0 @@ export declare const isBrowser: boolean;

@@ -6,3 +6,3 @@ import { GalleryItem } from './gallery-item';

item: GalleryItem;
seen: boolean;
video: boolean;
}

@@ -9,0 +9,0 @@ export interface ThumbTemplateContext {

export declare class GalleryModule {
}

@@ -0,0 +0,0 @@ import { PipeTransform } from '@angular/core';

@@ -9,2 +9,3 @@ /**

export { ViewerComponent as ɵa } from './lib/components/viewer/viewer.component';
export { MediaDirective as ɵf } from './lib/directives/media.directive';
export { SafePipe as ɵe } from './lib/pipes/safe.pipe';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"exports":[{"from":"./lib/support"},{"from":"./lib/object-fit"},{"from":"./lib/loading"},{"from":"./lib/orientation"},{"from":"./lib/template-contexts"},{"export":[{"name":"GalleryItem","as":"GalleryItem"},{"name":"GalleryImage","as":"GalleryImage"},{"name":"GalleryVideo","as":"GalleryVideo"},{"name":"GalleryItemEvent","as":"GalleryItemEvent"}],"from":"./lib/gallery-item"},{"export":[{"name":"Aria","as":"Aria"}],"from":"./lib/aria"}],"metadata":{"GalleryComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":29,"character":1},"arguments":[{"selector":"doe-gallery","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":33,"character":19},"member":"OnPush"},"template":"<doe-thumbs\r\n *ngIf=\"thumbs\"\r\n [items]=\"items\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [orientation]=\"thumbsOrientation\"\r\n [arrows]=\"thumbsArrows\"\r\n [arrowSlideByLength]=\"thumbsArrowSlideByLength\"\r\n [autoScroll]=\"thumbsAutoScroll\"\r\n [scrollBehavior]=\"thumbsScrollBehavior\"\r\n [thumbTemplate]=\"thumbTemplate\"\r\n [arrowTemplate]=\"thumbsArrowTemplate\"\r\n [errorTemplate]=\"thumbErrorTemplate\"\r\n [aria]=\"aria\"\r\n (thumbClick)=\"_onThumbClick($event)\"\r\n (thumbHover)=\"thumbHover.emit($event)\"\r\n></doe-thumbs>\r\n\r\n<doe-viewer\r\n tabindex=\"0\"\r\n [items]=\"items\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [arrows]=\"arrows\"\r\n [descriptions]=\"descriptions\"\r\n [errorText]=\"errorText\"\r\n [mouseGestures]=\"mouseGestures\"\r\n [touchGestures]=\"touchGestures\"\r\n [imageCounter]=\"imageCounter\"\r\n [imageCounterOrientation]=\"imageCounterOrientation\"\r\n [itemWidth]=\"itemWidth\"\r\n [objectFit]=\"objectFit\"\r\n [loading]=\"loading\"\r\n [itemTemplate]=\"itemTemplate\"\r\n [loadingTemplate]=\"loadingTemplate || defaultLoadingTemplate\"\r\n [errorTemplate]=\"errorTemplate\"\r\n [loop]=\"loop\"\r\n [thumbsOrientation]=\"_thumbsOrientationFlag\"\r\n [arrowTemplate]=\"arrowTemplate\"\r\n [aria]=\"aria\"\r\n (imageClick)=\"imageClick.emit($event)\"\r\n (descriptionClick)=\"descriptionClick.emit($event)\"\r\n (selection)=\"_selectInternal($event); thumbsRef?.select($event)\"\r\n></doe-viewer>\r\n\r\n<ng-template #defaultLoadingTemplate>\r\n <div class=\"doe-loading\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n</ng-template>\r\n","styles":[":host{display:flex;height:600px;width:500px;outline:0;position:relative;background-color:#252525;border-radius:5px}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"aria":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"descriptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"errorText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"mouseGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"touchGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"imageCounter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"imageCounterOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"itemWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":66,"character":3}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":69,"character":3}}]}],"loop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":72,"character":3}}]}],"objectFit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":75,"character":3}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":78,"character":3}}]}],"loadingTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":3}}]}],"errorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":84,"character":3}}]}],"arrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":87,"character":3}}]}],"thumbs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":3}}]}],"thumbsAutoScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":93,"character":3}}]}],"thumbsOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":3}}]}],"thumbsArrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":99,"character":3}}]}],"thumbsArrowSlideByLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":102,"character":3}}]}],"thumbsScrollBehavior":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":3}}]}],"thumbTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":108,"character":3}}]}],"thumbsArrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":111,"character":3}}]}],"thumbErrorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":114,"character":3}}]}],"imageClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":117,"character":3}}]}],"thumbClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":120,"character":3}}]}],"thumbHover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":123,"character":3}}]}],"descriptionClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":126,"character":3}}]}],"selection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":129,"character":3}}]}],"viewerRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":132,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"static":false}]}]}],"thumbsRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":135,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"static":false}]}]}],"viewerElRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":138,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"static":false,"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":138,"character":53}}]}]}],"_tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":141,"character":3},"arguments":["tabindex"]}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":144,"character":3},"arguments":["attr.aria-label"]}]}],"_galleryColumn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":149,"character":3},"arguments":["class.doe-gallery--column"]}]}],"focus":[{"__symbolic":"method"}],"next":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":170,"character":3},"arguments":["keydown.arrowright"]}]}],"prev":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":175,"character":3},"arguments":["keydown.arrowleft"]}]}],"select":[{"__symbolic":"method"}],"slideThumbs":[{"__symbolic":"method"}],"_onThumbClick":[{"__symbolic":"method"}],"_selectInternal":[{"__symbolic":"method"}]}},"GalleryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"GalleryComponent"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":20,"character":12},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":20,"character":26}],"exports":[{"__symbolic":"reference","name":"GalleryComponent"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":35,"character":1},"arguments":[{"selector":"doe-viewer","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":39,"character":19},"member":"OnPush"},"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":40,"character":15},"arguments":["remove",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":40,"character":34},"arguments":[":leave",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":40,"character":55},"arguments":["0ms 100ms"]}]}]]}],"template":"<div\r\n *ngIf=\"showPrevArrow\"\r\n class=\"doe-viewer-arrow doe-viewer-arrow-prev\"\r\n (click)=\"selectByDelta(-1)\"\r\n>\r\n <doe-chevron-icon\r\n *ngIf=\"!arrowTemplate; else arrowTemplate\"\r\n ></doe-chevron-icon>\r\n</div>\r\n\r\n<ul #itemList [attr.aria-label]=\"aria?.viewerLabel\">\r\n <li *ngIf=\"!displayedItems?.length\" class=\"doe-viewer-initial-item\"></li>\r\n <li\r\n #items\r\n *ngFor=\"let item of displayedItems; let i = index\"\r\n [class.doe-viewer-item--selected]=\"i === selectedIndex\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"item.alt\"\r\n [attr.aria-describedby]=\"'doe-viewer-aria-description-' + i\"\r\n (click)=\"onImageClick(item, $event)\"\r\n (keydown.Tab)=\"onTab(i + 1)\"\r\n (keydown.shift.Tab)=\"onTab(i - 1)\"\r\n >\r\n <ng-container *ngIf=\"!itemTemplate; else customTemplate\">\r\n <ng-container *ngIf=\"isInScrollportProximity(i)\">\r\n <ng-container *ngIf=\"getSrc(item, i); let src\">\r\n <picture *ngIf=\"!isVideo(item)\" @remove>\r\n <source\r\n *ngFor=\"let source of item.pictureSources\"\r\n [srcset]=\"source.srcset\"\r\n [attr.media]=\"source.media\"\r\n [attr.sizes]=\"source.sizes\"\r\n [attr.type]=\"source.type\"\r\n />\r\n <img\r\n [src]=\"src\"\r\n [alt]=\"item.alt\"\r\n [class.doe-viewer-media-loading]=\"item._seen && !item._loaded\"\r\n [style.objectFit]=\"objectFit\"\r\n (load)=\"onItemLoaded(item, $event)\"\r\n (error)=\"onItemErrored(item, $event)\"\r\n />\r\n </picture>\r\n <!-- Using loadedmetadata instead of loadeddata because iOS loads data lazily upon user's interaction -->\r\n <video\r\n @remove\r\n *ngIf=\"!isYoutube(item) && isVideo(item)\"\r\n [src]=\"src\"\r\n [poster]=\"item.thumbSrc\"\r\n [class.doe-viewer-media-loading]=\"item._seen && !item._loaded\"\r\n [style.objectFit]=\"objectFit\"\r\n controls\r\n playsinline\r\n (loadedmetadata)=\"onItemLoaded(item, $event)\"\r\n (error)=\"onItemErrored(item, $event)\"\r\n ></video>\r\n\r\n <iframe\r\n @remove\r\n *ngIf=\"isYoutube(item)\"\r\n [src]=\"src | safe\"\r\n frameborder=\"0\"\r\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\r\n allowfullscreen\r\n (load)=\"onItemLoaded(item, $event)\"\r\n ></iframe>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"item._seen && !item._loaded && !item._failed\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"item._failed\">\r\n <div\r\n *ngIf=\"!errorTemplate; else errorTemplate\"\r\n class=\"doe-viewer-error\"\r\n >\r\n <div class=\"doe-viewer-error-icon\">⚠</div>\r\n <p class=\"doe-viewer-error-text\">\r\n {{ errorText || 'Loading of this media failed' }}\r\n </p>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <span\r\n [id]=\"'doe-viewer-aria-description-' + i\"\r\n class=\"doe-viewer-aria-description\"\r\n [innerHTML]=\"item.description\"\r\n aria-hidden=\"true\"\r\n ></span>\r\n\r\n <ng-template #customTemplate>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n index: items.indexOf(item),\r\n selectedIndex: selectedIndex,\r\n item: item,\r\n seen: item._seen\r\n }\r\n \"\r\n ></ng-container>\r\n </ng-template>\r\n </li>\r\n</ul>\r\n\r\n<ng-container *ngIf=\"items?.length <= 0\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\r\n</ng-container>\r\n\r\n<div\r\n *ngIf=\"showNextArrow\"\r\n class=\"doe-viewer-arrow doe-viewer-arrow-next\"\r\n (click)=\"selectByDelta(1)\"\r\n>\r\n <doe-chevron-icon\r\n *ngIf=\"!arrowTemplate; else arrowTemplate\"\r\n ></doe-chevron-icon>\r\n</div>\r\n\r\n<doe-counter\r\n *ngIf=\"imageCounter && items?.length\"\r\n [itemQuantity]=\"items?.length\"\r\n [selectedIndex]=\"selectedIndex\"\r\n [orientation]=\"imageCounterOrientation\"\r\n></doe-counter>\r\n\r\n<div\r\n *ngIf=\"descriptions && items\"\r\n class=\"doe-viewer-description\"\r\n [class.doe-viewer-description--above-counter]=\"\r\n imageCounter && imageCounterOrientation === 'bottom'\r\n \"\r\n aria-hidden=\"true\"\r\n>\r\n <div\r\n *ngIf=\"items[selectedIndex]?.description as description\"\r\n class=\"doe-viewer-description-inner\"\r\n [innerHTML]=\"description\"\r\n (click)=\"descriptionClick.emit($event)\"\r\n ></div>\r\n</div>\r\n","styles":[":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;outline:0;background-color:#232323;z-index:1}ul{--item-width:calc(100% - 0.01px);display:flex;width:100%;height:100%;transition:transform .4s;scrollbar-width:none;-ms-overflow-style:none}ul::-webkit-scrollbar{width:0;height:0}li{display:flex;align-items:center;flex:none;position:relative;width:var(--item-width);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}picture{width:100%;height:100%}iframe,img,video{width:100%;height:100%;background-color:transparent;transition:opacity .3s ease-out;outline:0}iframe[src=\"\"],img[src=\"\"],video[src=\"\"]{opacity:0}iframe.doe-viewer-media-loading,img.doe-viewer-media-loading,video.doe-viewer-media-loading{opacity:.5}img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.doe-viewer-description{position:absolute;bottom:5px;width:100%;display:flex;justify-content:center}.doe-viewer-description--above-counter{bottom:35px}.doe-viewer-description-inner{display:inline-block;background:#000;opacity:.8;color:#fff;padding:6px 15px;max-width:80%;font-size:.95em;text-align:center}.doe-viewer-aria-description{opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;bottom:0;left:50%;transform:translateX(-50%)}.doe-viewer-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background-color:#f5f5f5;color:#424242}.doe-viewer-error-icon{font-size:40px}.doe-viewer-error-text{margin-top:20px;letter-spacing:.01em}.doe-viewer-arrow{display:flex;position:absolute;top:50%;transform:translateY(-50%);z-index:100;cursor:pointer}.doe-viewer-arrow-prev{left:0;transform:rotate(180deg) translateY(50%)}.doe-viewer-arrow-next{right:0}.doe-viewer-arrow doe-chevron-icon{margin:15px 6px;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-viewer-arrow doe-chevron-icon:hover{opacity:1}}.doe-viewer-arrow doe-chevron-icon::ng-deep svg{height:32px;width:32px}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"descriptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"errorText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"mouseGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"touchGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"imageCounter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"imageCounterOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"loop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"objectFit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"loadingTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"errorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"arrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"thumbsOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"aria":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"itemWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"imageClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":3}}]}],"descriptionClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":67,"character":3}}]}],"selection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":68,"character":3}}]}],"itemListRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":70,"character":3},"arguments":["itemList",{"static":true}]}]}],"itemsRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":71,"character":3},"arguments":["items"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":108,"character":32,"context":{"typeName":"HTMLElement"},"module":"./lib/components/viewer/viewer.component"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":109,"character":16},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":110,"character":18}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getSrc":[{"__symbolic":"method"}],"isInScrollportProximity":[{"__symbolic":"method"}],"isYoutube":[{"__symbolic":"method"}],"isVideo":[{"__symbolic":"method"}],"selectByDelta":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"onImageClick":[{"__symbolic":"method"}],"onTab":[{"__symbolic":"method"}],"onItemLoaded":[{"__symbolic":"method"}],"onItemErrored":[{"__symbolic":"method"}],"center":[{"__symbolic":"method"}],"getFringeCount":[{"__symbolic":"method"}],"readDimensions":[{"__symbolic":"method"}],"selectBySwipeStats":[{"__symbolic":"method"}],"shift":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":28,"character":1},"arguments":[{"selector":"doe-thumbs","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":32,"character":19},"member":"OnPush"},"template":"<div\r\n *ngIf=\"showStartArrow\"\r\n class=\"doe-thumbs-arrow doe-thumbs-arrow-prev\"\r\n (click)=\"slide(-1)\"\r\n>\r\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n\r\n<ul\r\n #thumbs\r\n [style.scrollBehavior]=\"scrollBehavior\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"aria?.thumbnailsLabel\"\r\n>\r\n <li *ngIf=\"!items || !items.length\" class=\"doe-thumbs-initial-item\"></li>\r\n <li\r\n #thumb\r\n *ngFor=\"let item of items; let i = index\"\r\n [class.doe-thumbs-item--selected]=\"i === selectedIndex\"\r\n aria-hidden=\"true\"\r\n (click)=\"emitEvent(i, item, $event, thumbClick)\"\r\n (mouseenter)=\"emitEvent(i, item, $event, thumbHover)\"\r\n >\r\n <ng-container *ngIf=\"!thumbTemplate; else customThumbTemplate\">\r\n <img\r\n [src]=\"item.thumbSrc || item.src\"\r\n [alt]=\"item.alt\"\r\n (error)=\"onItemErrored(item)\"\r\n />\r\n\r\n <ng-container *ngIf=\"item._thumbFailed\">\r\n <div\r\n *ngIf=\"!errorTemplate; else errorTemplate\"\r\n class=\"doe-thumbs-error\"\r\n >\r\n <div class=\"doe-thumbs-error-icon\">⚠</div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #customThumbTemplate>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n thumbTemplate;\r\n context: { index: i, selectedIndex: selectedIndex, item: item }\r\n \"\r\n ></ng-container>\r\n </ng-template>\r\n </li>\r\n</ul>\r\n\r\n<div\r\n *ngIf=\"showEndArrow\"\r\n class=\"doe-thumbs-arrow doe-thumbs-arrow-next\"\r\n (click)=\"slide(1)\"\r\n>\r\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\r\n <doe-chevron-icon></doe-chevron-icon>\r\n </div>\r\n</div>\r\n","styles":[":host{flex:1 0 auto;position:relative}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;border:1px solid #252525;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:\"\";display:block;position:absolute;left:0;bottom:0;width:100%;height:10px;background-color:#ffffffab;box-shadow:0 0 1px #000}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#222}.doe-thumbs-error-icon{font-size:20px;color:#f5f5f5}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"aria":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"arrowSlideByLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"autoScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"thumbTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"arrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"errorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"scrollBehavior":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"thumbClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":53,"character":3}}]}],"thumbHover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"thumbListRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":56,"character":3},"arguments":["thumbs",{"static":true}]}]}],"thumbsRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":57,"character":3},"arguments":["thumb"]}]}],"cssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":71,"character":3},"arguments":["class"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":87,"character":16},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":88,"character":30,"context":{"typeName":"HTMLElement"},"module":"./lib/components/thumbs/thumbs.component"}]}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"slide":[{"__symbolic":"method"}],"centerThumbIfNeeded":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"onItemErrored":[{"__symbolic":"method"}],"emitEvent":[{"__symbolic":"method"}],"scroll":[{"__symbolic":"method"}],"observeArrows":[{"__symbolic":"method"}],"unobserveArrows":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"doe-chevron-icon","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":6,"character":19},"member":"OnPush"},"template":"<!-- Icon made by Dave Gandy from www.flaticon.com -->\r\n<svg\r\n version=\"1.1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 407.436 407.436\"\r\n xml:space=\"preserve\"\r\n>\r\n <polygon\r\n points=\"112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 \"\r\n />\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n <g></g>\r\n</svg>\r\n","styles":["svg{width:26px;height:26px;fill:#fff;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);display:block}"]}]}],"members":{}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"doe-counter","template":"\n <span aria-hidden=\"true\">\n {{ selectedIndex + 1 }}<span class=\"doe-counter-delimiter\">/</span\n >{{ itemQuantity || 0 }}\n </span>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":18,"character":19},"member":"OnPush"},"styles":[":host{position:absolute;left:50%;transform:translateX(-50%);background:#000;padding:4px 7px 3px;color:#fff;opacity:.7;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host.top{top:0}:host.bottom{bottom:0}.doe-counter-delimiter{padding:0 2px}"]}]}],"members":{"itemQuantity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":27,"character":3},"arguments":["class"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"safe"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":7,"character":33}]}],"transform":[{"__symbolic":"method"}]}}},"origins":{"GalleryComponent":"./lib/components/gallery/gallery.component","GalleryModule":"./lib/gallery.module","ɵa":"./lib/components/viewer/viewer.component","ɵb":"./lib/components/thumbs/thumbs.component","ɵc":"./lib/components/icons/chevron/chevron-icon.component","ɵd":"./lib/components/counter/counter.component","ɵe":"./lib/pipes/safe.pipe"},"importAs":"ngx-doe-gallery"}
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/support"},{"from":"./lib/object-fit"},{"from":"./lib/loading"},{"from":"./lib/orientation"},{"from":"./lib/template-contexts"},{"export":[{"name":"GalleryItem","as":"GalleryItem"},{"name":"GalleryImage","as":"GalleryImage"},{"name":"GalleryVideo","as":"GalleryVideo"},{"name":"GalleryItemEvent","as":"GalleryItemEvent"}],"from":"./lib/gallery-item"},{"export":[{"name":"Aria","as":"Aria"}],"from":"./lib/aria"}],"metadata":{"GalleryComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"doe-gallery","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":34,"character":19},"member":"OnPush"},"template":"<doe-thumbs\n *ngIf=\"thumbs\"\n [items]=\"items\"\n [selectedIndex]=\"selectedIndex\"\n [orientation]=\"thumbsOrientation\"\n [arrows]=\"thumbsArrows\"\n [arrowSlideByLength]=\"thumbsArrowSlideByLength\"\n [autoScroll]=\"thumbsAutoScroll\"\n [scrollBehavior]=\"thumbsScrollBehavior\"\n [thumbTemplate]=\"thumbTemplate\"\n [arrowTemplate]=\"thumbsArrowTemplate\"\n [errorTemplate]=\"thumbErrorTemplate\"\n [aria]=\"aria\"\n (thumbClick)=\"_onThumbClick($event)\"\n (thumbHover)=\"thumbHover.emit($event)\"\n></doe-thumbs>\n\n<doe-viewer\n tabindex=\"0\"\n [items]=\"items\"\n [selectedIndex]=\"selectedIndex\"\n [arrows]=\"arrows\"\n [descriptions]=\"descriptions\"\n [errorText]=\"errorText\"\n [mouseGestures]=\"mouseGestures\"\n [touchGestures]=\"touchGestures\"\n [counter]=\"counter\"\n [counterOrientation]=\"counterOrientation\"\n [itemWidth]=\"itemWidth\"\n [objectFit]=\"objectFit\"\n [loading]=\"loading\"\n [itemTemplate]=\"itemTemplate\"\n [loadingTemplate]=\"loadingTemplate || defaultLoadingTemplate\"\n [errorTemplate]=\"errorTemplate\"\n [loop]=\"loop\"\n [thumbsOrientation]=\"_thumbsOrientationFlag\"\n [arrowTemplate]=\"arrowTemplate\"\n [aria]=\"aria\"\n [touched]=\"_touched\"\n (imageClick)=\"imageClick.emit($event)\"\n (descriptionClick)=\"descriptionClick.emit($event)\"\n (selection)=\"_selectInternal($event); _thumbsRef?.select($event)\"\n></doe-viewer>\n\n<ng-template #defaultLoadingTemplate>\n <div class=\"doe-loading\">\n <div></div>\n <div></div>\n <div></div>\n </div>\n</ng-template>\n","styles":[":host{display:flex;height:600px;width:500px;outline:0;position:relative}:host.doe-gallery--column{flex-direction:column}:host::ng-deep{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}:host::ng-deep button{border:none}:host::ng-deep ul{list-style-type:none;margin:0;padding:0}.doe-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;left:0;top:0;background-color:transparent;z-index:10}.doe-loading>div{height:13px;width:13px;background-color:#4a4a4a;-webkit-animation:2s infinite bounce;animation:2s infinite bounce;border-radius:50%;box-shadow:0 0 0 1px #f5f5f5,0 0 1px 1px #f5f5f5}.doe-loading>div+div{margin-left:10px;-webkit-animation-delay:125ms;animation-delay:125ms}.doe-loading>div+div+div{-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}@keyframes bounce{20%{transform:translateY(-20px)}50%{transform:translateY(0)}}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"aria":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"descriptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"errorText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"mouseGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"touchGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"counter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"counterOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"itemWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"loop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"objectFit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"loadingTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"errorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"arrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"thumbs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"thumbsAutoScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"thumbsOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"thumbsArrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"thumbsArrowSlideByLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"thumbsScrollBehavior":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"thumbTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"thumbsArrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"thumbErrorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"imageClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":65,"character":3}}]}],"thumbClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":3}}]}],"thumbHover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":67,"character":3}}]}],"descriptionClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":68,"character":3}}]}],"selection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":69,"character":3}}]}],"_viewerRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":71,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"static":false}]}]}],"_thumbsRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":72,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"static":false}]}]}],"_viewerElRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":73,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"static":false,"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":73,"character":53}}]}]}],"_tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":76,"character":3},"arguments":["tabindex"]}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":81,"character":3},"arguments":["attr.aria-label"]}]}],"_galleryColumn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":86,"character":3},"arguments":["class.doe-gallery--column"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":104,"character":16},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":105,"character":32,"context":{"typeName":"HTMLElement"},"module":"./lib/components/gallery/gallery.component"}]}]}],"focus":[{"__symbolic":"method"}],"next":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":127,"character":3},"arguments":["keydown.arrowright"]}]}],"prev":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":132,"character":3},"arguments":["keydown.arrowleft"]}]}],"select":[{"__symbolic":"method"}],"slideThumbs":[{"__symbolic":"method"}],"_onThumbClick":[{"__symbolic":"method"}],"_selectInternal":[{"__symbolic":"method"}]}},"GalleryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"GalleryComponent"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":22,"character":12},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":22,"character":26}],"exports":[{"__symbolic":"reference","name":"GalleryComponent"},{"__symbolic":"reference","name":"ɵf"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":35,"character":1},"arguments":[{"selector":"doe-viewer","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":39,"character":19},"member":"OnPush"},"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":41,"character":4},"arguments":["remove",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":42,"character":6},"arguments":[":leave",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":42,"character":27},"arguments":["0ms 100ms"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":43,"character":6},"arguments":[":enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":44,"character":8},"arguments":[{"opacity":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":45,"character":8},"arguments":["400ms",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":45,"character":25},"arguments":[{"opacity":1}]}]}]]}]]}],"template":"<div\n *ngIf=\"showPrevArrow\"\n class=\"doe-viewer-arrow doe-viewer-arrow-prev\"\n (click)=\"selectByDelta(-1)\"\n>\n <doe-chevron-icon\n *ngIf=\"!arrowTemplate; else arrowTemplate\"\n ></doe-chevron-icon>\n</div>\n\n<ul #itemList [attr.aria-label]=\"aria?.viewerLabel\">\n <li *ngIf=\"!_displayedItems?.length\" class=\"doe-viewer-initial-item\"></li>\n <li\n #itemsRef\n *ngFor=\"let item of _displayedItems; let i = index\"\n [class.doe-viewer-item--selected]=\"i === selectedIndex\"\n tabindex=\"0\"\n [attr.aria-label]=\"item.alt\"\n [attr.aria-describedby]=\"'doe-viewer-aria-description-' + i\"\n (click)=\"onImageClick(item, $event)\"\n (doe-media-load)=\"onItemLoaded(item, $event.detail)\"\n (doe-media-error)=\"onItemErrored(item, $event.detail)\"\n (keydown.Tab)=\"onTab(i + 1)\"\n (keydown.shift.Tab)=\"onTab(i - 1)\"\n >\n <ng-container *ngIf=\"!lazyLoading || isInScrollportProximity(i)\">\n <ng-container *ngIf=\"!itemTemplate; else customTemplate\">\n <picture *ngIf=\"!isVideo(item)\" @remove>\n <source\n *ngFor=\"let source of item.pictureSources\"\n [srcset]=\"source.srcset\"\n [attr.media]=\"source.media\"\n [attr.sizes]=\"source.sizes\"\n [attr.type]=\"source.type\"\n />\n <img\n [src]=\"item.src\"\n [alt]=\"item.alt\"\n [class.doe-viewer-media-loading]=\"!item._loaded\"\n [style.objectFit]=\"objectFit\"\n (load)=\"onItemLoaded(item, $event)\"\n (error)=\"onItemErrored(item, $event)\"\n />\n </picture>\n <!-- Using loadedmetadata instead of loadeddata because iOS loads data lazily upon user's interaction -->\n <video\n @remove\n *ngIf=\"!isYoutube(item) && isVideo(item)\"\n [src]=\"item.src\"\n [poster]=\"item.thumbSrc || ''\"\n [class.doe-viewer-media-loading]=\"!item._loaded\"\n [style.objectFit]=\"objectFit\"\n controls\n playsinline\n (loadedmetadata)=\"onItemLoaded(item, $event)\"\n (error)=\"onItemErrored(item, $event)\"\n ></video>\n\n <iframe\n @remove\n *ngIf=\"isYoutube(item)\"\n [src]=\"item.src | safe\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n (load)=\"onItemLoaded(item, $event)\"\n ></iframe>\n </ng-container>\n\n <ng-container *ngIf=\"!item._loaded && !item._failed\">\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"item._failed\">\n <div\n *ngIf=\"!errorTemplate; else errorTemplate\"\n class=\"doe-viewer-error\"\n >\n <div class=\"doe-viewer-error-icon\">⚠</div>\n <p class=\"doe-viewer-error-text\">\n {{ errorText || 'Loading of this media failed' }}\n </p>\n </div>\n </ng-container>\n\n <span\n [id]=\"'doe-viewer-aria-description-' + i\"\n class=\"doe-viewer-aria-description\"\n [innerHTML]=\"item.description\"\n aria-hidden=\"true\"\n ></span>\n </ng-container>\n\n <ng-template #customTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate;\n context: {\n index: items?.indexOf(item),\n selectedIndex: selectedIndex,\n item: item,\n video: isVideo(item)\n }\n \"\n ></ng-container>\n </ng-template>\n </li>\n</ul>\n\n<ng-container *ngIf=\"items?.length <= 0\">\n <ng-container *ngTemplateOutlet=\"loadingTemplate\"></ng-container>\n</ng-container>\n\n<div\n *ngIf=\"showNextArrow\"\n class=\"doe-viewer-arrow doe-viewer-arrow-next\"\n (click)=\"selectByDelta(1)\"\n>\n <doe-chevron-icon\n *ngIf=\"!arrowTemplate; else arrowTemplate\"\n ></doe-chevron-icon>\n</div>\n\n<doe-counter\n *ngIf=\"counter && items?.length\"\n [itemQuantity]=\"items?.length\"\n [selectedIndex]=\"selectedIndex\"\n [orientation]=\"counterOrientation\"\n></doe-counter>\n\n<div\n *ngIf=\"descriptions && items\"\n class=\"doe-viewer-description\"\n [class.doe-viewer-description--above-counter]=\"\n counter && counterOrientation === 'bottom'\n \"\n aria-hidden=\"true\"\n>\n <div\n *ngIf=\"items[selectedIndex]?.description as description\"\n class=\"doe-viewer-description-inner\"\n [innerHTML]=\"description\"\n (click)=\"descriptionClick.emit($event)\"\n ></div>\n</div>\n","styles":[":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;outline:0;background-color:#ececec;z-index:1}ul{--item-width:calc(100% - 0.01px);display:flex;width:100%;height:100%;transition:transform .4s;scrollbar-width:none;-ms-overflow-style:none}ul::-webkit-scrollbar{width:0;height:0}li{display:flex;align-items:center;flex:none;position:relative;width:var(--item-width);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}picture{width:100%;height:100%}iframe,img,video{width:100%;height:100%;background-color:transparent;transition:opacity .3s ease-out;outline:0}iframe[src=\"\"],img[src=\"\"],video[src=\"\"]{opacity:0}iframe.doe-viewer-media-loading,img.doe-viewer-media-loading,video.doe-viewer-media-loading{opacity:.5}img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.doe-viewer-description{position:absolute;bottom:5px;width:100%;display:flex;justify-content:center}.doe-viewer-description--above-counter{bottom:35px}.doe-viewer-description-inner{display:inline-block;background:#000;opacity:.8;color:#fff;padding:6px 15px;max-width:80%;font-size:.95em;text-align:center}.doe-viewer-aria-description{opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;bottom:0;left:50%;transform:translateX(-50%)}.doe-viewer-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background-color:#f5f5f5;color:#7d7d7d}.doe-viewer-error-icon{font-size:40px}.doe-viewer-error-text{margin-top:10px;letter-spacing:.01em}.doe-viewer-arrow{display:flex;position:absolute;top:50%;transform:translateY(-50%);z-index:100;cursor:pointer}.doe-viewer-arrow-prev{left:0;transform:rotate(180deg) translateY(50%)}.doe-viewer-arrow-next{right:0}.doe-viewer-arrow doe-chevron-icon{margin:15px 6px;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-viewer-arrow doe-chevron-icon:hover{opacity:1}}.doe-viewer-arrow doe-chevron-icon::ng-deep svg{height:32px;width:32px}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":3}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":3}}]}],"descriptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"errorText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":3}}]}],"mouseGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":3}}]}],"touchGestures":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"counter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"counterOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":59,"character":3}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":3}}]}],"objectFit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":61,"character":3}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3}}]}],"loadingTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"errorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":3}}]}],"arrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":65,"character":3}}]}],"thumbsOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":66,"character":3}}]}],"aria":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":67,"character":3}}]}],"loop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":68,"character":3}}]}],"itemWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":76,"character":3}}]}],"touched":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":3}}]}],"imageClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":81,"character":3}}]}],"descriptionClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":82,"character":3}}]}],"selection":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":83,"character":3}}]}],"itemListRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":85,"character":3},"arguments":["itemList",{"static":true}]}]}],"itemsRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":86,"character":3},"arguments":["itemsRef"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":125,"character":33,"context":{"typeName":"HTMLElement"},"module":"./lib/components/viewer/viewer.component"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":126,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":127,"character":19}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"isInScrollportProximity":[{"__symbolic":"method"}],"isYoutube":[{"__symbolic":"method"}],"selectByDelta":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"onImageClick":[{"__symbolic":"method"}],"onTab":[{"__symbolic":"method"}],"onItemLoaded":[{"__symbolic":"method"}],"onItemErrored":[{"__symbolic":"method"}],"center":[{"__symbolic":"method"}],"getFringeCount":[{"__symbolic":"method"}],"readDimensions":[{"__symbolic":"method"}],"selectBySwipeStats":[{"__symbolic":"method"}],"shift":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":32,"character":1},"arguments":[{"selector":"doe-thumbs","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":36,"character":19},"member":"OnPush"},"template":"<div\n *ngIf=\"_showStartArrow\"\n class=\"doe-thumbs-arrow doe-thumbs-arrow-prev\"\n (click)=\"slide(-1)\"\n>\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n\n<ul\n #thumbs\n [style.scrollBehavior]=\"scrollBehavior\"\n tabindex=\"0\"\n [attr.aria-label]=\"aria?.thumbnailsLabel\"\n>\n <li *ngIf=\"!items || !items.length\" class=\"doe-thumbs-initial-item\"></li>\n <li\n #thumb\n *ngFor=\"let item of items; let i = index\"\n [class.doe-thumbs-item--selected]=\"i === selectedIndex\"\n aria-hidden=\"true\"\n (click)=\"_emitEvent(i, item, $event, thumbClick)\"\n (mouseenter)=\"_emitEvent(i, item, $event, thumbHover)\"\n >\n <ng-container *ngIf=\"!thumbTemplate; else customThumbTemplate\">\n <img\n [src]=\"item.thumbSrc || ''\"\n [alt]=\"item.alt\"\n (load)=\"_onLoadChange(item, true)\"\n (error)=\"_onLoadChange(item, false)\"\n />\n\n <ng-container *ngIf=\"item._thumbFailed\">\n <div\n *ngIf=\"!errorTemplate; else errorTemplate\"\n class=\"doe-thumbs-error\"\n >\n <div\n class=\"doe-thumbs-error-icon\"\n [class.doe-thumbs-error-icon--video]=\"isVideo(item)\"\n ></div>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template #customThumbTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n thumbTemplate;\n context: { index: i, selectedIndex: selectedIndex, item: item }\n \"\n ></ng-container>\n </ng-template>\n </li>\n</ul>\n\n<div\n *ngIf=\"_showEndArrow\"\n class=\"doe-thumbs-arrow doe-thumbs-arrow-next\"\n (click)=\"slide(1)\"\n>\n <div *ngIf=\"!arrowTemplate; else arrowTemplate\">\n <doe-chevron-icon></doe-chevron-icon>\n </div>\n</div>\n","styles":[":host{flex:1 0 auto;position:relative;background-color:#f3f3f3}:host.doe-thumbs--bottom,:host.doe-thumbs--top{width:100%}:host.doe-thumbs--bottom ul,:host.doe-thumbs--top ul{width:100%;display:flex;overflow-x:scroll;overflow-y:hidden}:host.doe-thumbs--bottom li,:host.doe-thumbs--top li{flex:none}:host.doe-thumbs--bottom li:not(:first-child),:host.doe-thumbs--top li:not(:first-child){border-left:0}:host.doe-thumbs--bottom li:first-child,:host.doe-thumbs--top li:first-child{margin-left:auto}:host.doe-thumbs--bottom li:last-child,:host.doe-thumbs--top li:last-child{margin-right:auto}:host.doe-thumbs--bottom .doe-thumbs-arrow,:host.doe-thumbs--top .doe-thumbs-arrow{top:0;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow>div,:host.doe-thumbs--top .doe-thumbs-arrow>div{width:30px;height:100%}:host.doe-thumbs--bottom .doe-thumbs-arrow-prev,:host.doe-thumbs--top .doe-thumbs-arrow-prev{left:0}:host.doe-thumbs--bottom .doe-thumbs-arrow-next,:host.doe-thumbs--top .doe-thumbs-arrow-next{right:0}:host.doe-thumbs--bottom .doe-thumbs-error,:host.doe-thumbs--top .doe-thumbs-error{border-right:1px solid #cecece}:host.doe-thumbs--left,:host.doe-thumbs--right{height:100%}:host.doe-thumbs--left ul,:host.doe-thumbs--right ul{height:100%;overflow-y:scroll;overflow-x:hidden}:host.doe-thumbs--left li,:host.doe-thumbs--right li{border-top:0}:host.doe-thumbs--left .doe-thumbs-arrow,:host.doe-thumbs--right .doe-thumbs-arrow{width:100%}:host.doe-thumbs--left .doe-thumbs-arrow>div,:host.doe-thumbs--right .doe-thumbs-arrow>div{width:100%;height:30px}:host.doe-thumbs--left .doe-thumbs-arrow doe-chevron-icon,:host.doe-thumbs--right .doe-thumbs-arrow doe-chevron-icon{transform:rotate(90deg)}:host.doe-thumbs--left .doe-thumbs-arrow-prev,:host.doe-thumbs--right .doe-thumbs-arrow-prev{top:0}:host.doe-thumbs--left .doe-thumbs-arrow-next,:host.doe-thumbs--right .doe-thumbs-arrow-next{bottom:0}:host.doe-thumbs--left .doe-thumbs-error,:host.doe-thumbs--right .doe-thumbs-error{border-bottom:1px solid #cecece}:host.doe-thumbs--bottom,:host.doe-thumbs--right{order:1}ul{outline:0;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;transform:translate3d(0,0,0)}ul::-webkit-scrollbar{width:0;height:0}li{box-sizing:border-box;width:120px;height:80px;position:relative;cursor:pointer}li.doe-thumbs-initial-item{visibility:hidden}li.doe-thumbs-item--selected::after{content:\"\";display:block;position:absolute;left:0;bottom:0;width:100%;height:100%;border:10px solid #ffffffcf;box-sizing:border-box}img{width:100%;height:100%;background-repeat:no-repeat;background-position:center;-o-object-fit:cover;object-fit:cover}.doe-thumbs-error{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;background:#e8e8e8;box-sizing:border-box}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video){position:relative;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:28px solid #a5a5a5;margin-left:-8px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after,.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{content:\"\";position:absolute}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::before{height:10px;width:10px;background-color:#a5a5a5;border-radius:100%;left:14px}.doe-thumbs-error-icon:not(.doe-thumbs-error-icon--video)::after{border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:17px solid #a5a5a5;top:11px}.doe-thumbs-error-icon--video{border-top:16px solid transparent;border-bottom:16px solid transparent;border-left:28px solid #a5a5a5;margin-left:9px}.doe-thumbs-arrow{position:absolute;cursor:pointer;z-index:10}.doe-thumbs-arrow-prev{transform:rotate(180deg)}.doe-thumbs-arrow>div{display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);padding:0;opacity:.7}@media (hover:hover) and (pointer:fine){.doe-thumbs-arrow>div:hover{opacity:1}}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":3}}]}],"aria":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"arrows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"arrowSlideByLength":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"autoScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"thumbTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":46,"character":3}}]}],"arrowTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"errorTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":48,"character":3}}]}],"scrollBehavior":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"thumbClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"thumbHover":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"thumbListRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":60,"character":3},"arguments":["thumbs",{"static":true}]}]}],"thumbsRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":61,"character":3},"arguments":["thumb"]}]}],"cssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":75,"character":3},"arguments":["class"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":91,"character":17},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":92,"character":31,"context":{"typeName":"HTMLElement"},"module":"./lib/components/thumbs/thumbs.component"}]}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"slide":[{"__symbolic":"method"}],"centerThumbIfNeeded":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"_emitEvent":[{"__symbolic":"method"}],"_onLoadChange":[{"__symbolic":"method"}],"scroll":[{"__symbolic":"method"}],"observeArrows":[{"__symbolic":"method"}],"unobserveArrows":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"doe-chevron-icon","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":6,"character":19},"member":"OnPush"},"template":"<!-- Icon made by Dave Gandy from www.flaticon.com -->\n<svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 407.436 407.436\"\n xml:space=\"preserve\"\n>\n <polygon\n points=\"112.814,0 91.566,21.178 273.512,203.718 91.566,386.258 112.814,407.436 315.869,203.718 \"\n />\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n <g></g>\n</svg>\n","styles":["svg{width:26px;height:26px;fill:#fff;-webkit-filter:drop-shadow(0 0 1px #000);filter:drop-shadow(0 0 1px #000);display:block}"]}]}],"members":{}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"doe-counter","template":"\n <span aria-hidden=\"true\">\n {{ selectedIndex + 1 }}<span class=\"doe-counter-delimiter\">/</span\n >{{ itemQuantity || 0 }}\n </span>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":18,"character":19},"member":"OnPush"},"styles":[":host{position:absolute;left:50%;transform:translateX(-50%);background:#000;padding:4px 7px 3px;color:#fff;opacity:.7;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host.top{top:0}:host.bottom{bottom:0}.doe-counter-delimiter{padding:0 2px}"]}]}],"members":{"itemQuantity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"selectedIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":27,"character":3},"arguments":["class"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":3,"character":1},"arguments":[{"name":"safe"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":7,"character":33}]}],"transform":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[doeMedia]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":6,"character":42,"context":{"typeName":"HTMLElement"},"module":"./lib/directives/media.directive"}]}]}],"onLoad":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":8,"character":3},"arguments":["load",["$event"]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":9,"character":3},"arguments":["loadedmetadata",["$event"]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":10,"character":3},"arguments":["error",["$event"]]}]}]}}},"origins":{"GalleryComponent":"./lib/components/gallery/gallery.component","GalleryModule":"./lib/gallery.module","ɵa":"./lib/components/viewer/viewer.component","ɵb":"./lib/components/thumbs/thumbs.component","ɵc":"./lib/components/icons/chevron/chevron-icon.component","ɵd":"./lib/components/counter/counter.component","ɵe":"./lib/pipes/safe.pipe","ɵf":"./lib/directives/media.directive"},"importAs":"ngx-doe-gallery"}
{
"name": "ngx-doe-gallery",
"version": "1.0.0-alpha.1",
"version": "1.0.0-beta.0",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "author": {

export * from './lib/components/gallery/gallery.component';
export * from './lib/gallery.module';
export * from './lib/core';

@@ -0,0 +0,0 @@ # Doe Gallery

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc