1"use strict";(self.webpackChunkesanum=self.webpackChunkesanum||[]).push([[4837],{15722:(E,u,i)=>{i.d(u,{l:()=>_});var l=i(70655),s=i(30800),y=i(99444),g=i(92604),r=i(52150),m=i(51599),v=i(8781),p=i(36485);let _=class{};(0,l.gn)([(0,r.E)({mock:v.R_.id}),(0,l.w6)("design:type",Number)],_.prototype,"id",void 0),(0,l.gn)([(0,r.E)({mock:v.R_.title}),(0,l.w6)("design:type",String)],_.prototype,"title",void 0),(0,l.gn)([(0,r.E)({serializer:new s.ArraySerializer(new y.ModelMetadataSerializer(p.g)),mock:{type:p.g,length:2}}),(0,l.w6)("design:type",Array)],_.prototype,"playlists",void 0),(0,l.gn)([(0,r.E)({serializer:new s.ArraySerializer(new s.PrimitiveSerializer),mock:m.J}),(0,l.w6)("design:type",Array)],_.prototype,"sections",void 0),(0,l.gn)([(0,r.E)({mock:g.A}),(0,l.w6)("design:type",g.A)],_.prototype,"layout",void 0),_=(0,l.gn)([(0,r.o)()],_)},71853:(E,u,i)=>{i.d(u,{X:()=>A});var O,l=i(22012),s=i(591),C=i(36053),y=i(92198),g=i(40537),r=i(15941),m=i(72762),p=(i(15722),i(14421)),_=i(45973),t=i(55062),M=(i(70543),i(36895)),c=i(16563),h=i(14378),D=i(92852);
1function I(o,e){if(1&o&&(t._UZ(0,"div",4),t.ALo(1,"sanitizeHtml")),2&o){const n=t.oxw(2);t.Q6J("innerHTML",t.lcZ(1,1,n.gallery.title),t.oJD)}}function L(o,e){if(1&o&&(t._UZ(0,"div",7),t.ALo(1,"sanitizeHtml")),2&o){const n=t.oxw().$implicit;t.Q6J("innerHTML",t.lcZ(1,1,n.title),t.oJD)}}function G(o,e){if(1&o&&(t._UZ(0,"span",13),t.ALo(1,"sanitizeHtml")),2&o){const n=t.oxw().$implicit;t.Q6J("innerHTML",t.lcZ(1,1,n.title),t.oJD)}}function V(o,e){if(1&o){const n=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const T=t.CHM(n).$implicit,X=t.oxw(4);return t.KtG(X.videoChange.emit(T))}),t.YNc(1,G,2,3,"span",11),t._UZ(2,"ch-video",12),t.qZA()}if(2&o){const n=e.$implicit,a=t.oxw(4);t.uIk("data-active",n.id===a.video.id),t.xp6(1),t.Q6J("ngIf",!!n.title),t.xp6(1),t.Q6J("video",n)}}function J(o,e){if(1&o&&(t.TgZ(0,"sn-stack",8),t.YNc(1,V,3,3,"div",9),t.qZA()),2&o){const n=t.oxw().$implicit,a=t.oxw(2);t.Q6J("gutter",a.ui.gutter.none)("align",a.ui.align.stretch),t.xp6(1),t.Q6J("ngForOf",n.videos)}}function U(o,e){if(1&o&&(t.ynx(0),t.YNc(1,L,2,3,"div",5),t.YNc(2,J,2,3,"sn-stack",6),t.BQk()),2&o){const n=e.$implicit;t.xp6(1),t.Q6J("ngIf",!!n.title),t.xp6(1),t.Q6J("ngIf",n.videos.length>0)}}function R(o,e){if(1&o&&(t.TgZ(0,"sn-stack",1),t.YNc(1,I,2,3,"div",2),t.ALo(2,"includes"),t.YNc(3,U,3,2,"ng-container",3),t.qZA()),2&o){const n=t.oxw();t.Q6J("align",n.ui.align.stretch),t.xp6(1),t.Q6J("ngIf",t.xi3(2,3,null==n.gallery?null:n.gallery.sections,"title")&&!!n.gallery.title),t.xp6(2),t.Q6J("ngForOf",null==n.gallery?null:n.gallery.playlists)}}class x{constructor(){this.ui=l.UI,this.videoChange=new t.vpe}}(O=x).\u0275fac=function(e){return new(e||O)},O.\u0275cmp=t.Xpm({type:O,selectors:[["esn-video-gallery-playlists"]],inputs:{gallery:"gallery",video:"video"},outputs:{videoChange:"videoChange"},decls:1,vars:1,consts:[["data-playlists","",3,"align",4,"ngIf"],["data-playlists","",3,"align"],["data-gallery-title","",3,"innerHTML",4,"ngIf"],[4,"ngFor","ngForOf"],["data-gallery-title","",3,"innerHTML"],["data-title","",3,"innerHTML",4,"ngIf"],[3,"gutter","align",4,"ngIf"],["data-title","",3,"innerHTML"],[3,"gutter","align"],["data-video","",3,"click",4,"ngFor","ngForOf"],["data-video","",3,"click"],[3,"innerHTML",4,"ngIf"],["context","click",3,"video"],[3,"innerHTML"]],template:function(e,n){1&e&&t.YNc(0,R,4,6,"sn-stack",0),2&e&&t.Q6J("ngIf",!!n.gallery)},dependencies:[M.sg,M.O5,l.aAT,c.a,h.Z,D.A],styles:["[data-playlists][_ngcontent-%COMP%] [data-video][_ngcontent-%COMP%] span[_ngcontent-%COMP%], [data-gallery-title][_ngcontent-%COMP%], [data-title][_ngcontent-%COMP%]{font-size:16px;line-height:24px;color:#444;font-weight:400}[data-gallery-title][_ngcontent-%COMP%], [data-title][_ngcontent-%COMP%]{font-weight:700}.app-two-columns[_nghost-%COMP%] [data-playlists][_ngcontent-%COMP%], .app-two-columns [_nghost-%COMP%] [data-playlists][_ngcontent-%COMP%]{width:200px;max-height:391px}[_nghost-%COMP%]{display:block;width:33%;min-width:300px}@media (max-width: 767px){[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] [data-playlists][_ngcontent-%COMP%]{padding:8px}}[data-gallery-title][_ngcontent-%COMP%]{padding:8px;color:#fff;background-color:#005461}[data-playlists][_ngcontent-%COMP%]{height:100%;width:100%;max-height:555px;padding:24px;overflow-y:auto;box-sizing:border-box}[data-playlists][_ngcontent-%COMP%] [data-video][_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid #F5F5F5;cursor:pointer}[data-playlists][_ngcontent-%COMP%] [data-video][data-active=true][_ngcontent-%COMP%]{background-color:#f5f5f5}[data-playlists][_ngcontent-%COMP%] [data-video][_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#005461}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding:8px 16px;font-weight:700;font-size:16px}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .videos[_ngcontent-%COMP%]{list-style:none;padding-left:0}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .videos[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:8px 16px;font-weight:700;border-bottom:1px solid #ECECEC}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .videos[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#f5f5f5}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .videos[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005461}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .videos[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}[data-playlists][_ngcontent-%COMP%] li.playlist[_ngcontent-%COMP%] .videos[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-block;text-decoration:none;color:#737373;font-size:16px}"]});var P,Q=i(90168),Z=i(92359),w=i(7370);function k(o,e){if(1&o){const n=t.EpF();t.TgZ(0,"sn-informer",3),t.NdJ("ok",function(){t.CHM(n);const d=t.oxw();return t.KtG(d.error=null)}),t._UZ(1,"sn-informer-message",4),t.qZA()}if(2&o){const n=t.oxw();t.Q6J("placement",n.ui.placement.absolute),t.xp6(1),t.Q6J("message",n.error.toString())}}function N(o,e){if(1&o&&(t.TgZ(0,"sn-card",5),t._UZ(1,"sn-skeleton",6),t.qZA()),2&o){const n=t.oxw();t.Q6J("width",n.ui.width.fluid),t.xp6(1),t.Q6J("lines",7)}}function z(o,e){1&o&&t._UZ(0,"esn-empty",8)}function K(o,e){if(1&o){const n=t.EpF();t.TgZ(0,"esn-video-gallery-playlists",16),t.NdJ("videoChange",function(d){t.CHM(n);const T=t.oxw(3);return t.KtG(T.current=d)})("videoChange",function(){t.CHM(n);const d=t.oxw(3);return t.KtG(d.autoplay=!0)}),t.qZA()}if(2&o){const n=t.oxw(3);t.Q6J("gallery",n.gallery)("video",n.current)}}
1function B(o,e){if(1&o&&(t._UZ(0,"h3",22),t.ALo(1,"sanitizeHtml")),2&o){const n=t.oxw(4);t.Q6J("innerHTML",t.lcZ(1,1,n.current.title),t.oJD)}}function S(o,e){if(1&o){const n=t.EpF();t.TgZ(0,"sn-stack",17),t.YNc(1,B,2,3,"h3",18),t.TgZ(2,"sn-stack",19),t.NdJ("click",function(){t.CHM(n);const d=t.oxw(3);return t.KtG(d.showPlaylists())}),t.TgZ(3,"span"),t.SDv(4,20),t.qZA(),t._UZ(5,"sn-icon",21),t.qZA()()}if(2&o){const n=t.oxw(3);t.Q6J("align",n.ui.align.stretch),t.xp6(1),t.Q6J("ngIf",!!n.current.title),t.xp6(1),t.Q6J("orientation",n.ui.orientation.horizontal)("justify",n.ui.justify.between),t.xp6(3),t.Q6J("icon",n.localUi.icons.arrowDown)("color",n.ui.color.white)}}function F(o,e){if(1&o&&(t._UZ(0,"h3",22),t.ALo(1,"sanitizeHtml")),2&o){const n=t.oxw(4);t.Q6J("innerHTML",t.lcZ(1,1,n.current.title),t.oJD)}}function W(o,e){if(1&o&&(t.ynx(0),t.YNc(1,F,2,3,"h3",18),t.BQk()),2&o){const n=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!!n.current.title)}}function Y(o,e){if(1&o&&t._UZ(0,"esn-copyrights",23),2&o){const n=t.oxw(3);t.Q6J("copyrights",n.current.copyrights)}}const H=function(o,e){return{id:o,type:e}};function $(o,e){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"sn-stack",9),t.ALo(2,"breakpoint"),t.YNc(3,K,1,2,"esn-video-gallery-playlists",10),t.TgZ(4,"sn-stack",11),t.YNc(5,S,6,6,"sn-stack",12),t.YNc(6,W,2,1,"ng-container",13),t.TgZ(7,"esn-video-player",14),t.NdJ("watched",function(){t.CHM(n);const d=t.oxw(2);return t.KtG(d.next())}),t.qZA()()(),t.YNc(8,Y,1,1,"esn-copyrights",15),t.BQk()}if(2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("orientation",t.lcZ(2,12,n.ui.breakpoint.mobile)?n.ui.orientation.vertical:n.ui.orientation.horizontal)("gutter",n.ui.gutter.none),t.xp6(2),t.Q6J("snMinFor",n.ui.breakpoint.tablet),t.xp6(1),t.Q6J("align",n.ui.align.stretch),t.xp6(1),t.Q6J("snFor",n.ui.breakpoint.mobile),t.xp6(1),t.Q6J("snMinFor",n.ui.breakpoint.tablet),t.xp6(1),t.Q6J("pk",n.current.id)("autoplay",n.autoplay)("presentation",n.videoPlayerPresentation.gallery)("startFrom",n.startFrom)("owner",t.WLB(14,H,n.gallery.id,n.analyticsOwner.videoGallery)),t.xp6(1),t.Q6J("ngIf",null==n.current?null:n.current.copyrights.length)}}function j(o,e){if(1&o&&(t.ynx(0),t.YNc(1,z,1,0,"ng-template",null,7,t.W1O),t.YNc(3,$,9,17,"ng-container",2),t.BQk()),2&o){const n=t.MAs(2),a=t.oxw();t.xp6(3),t.Q6J("ngIf",(null==a.videos?null:a.videos.length)>0)("ngIfElse",n)}}class A{constructor(e,n,a,d){this.galleriesService=e,this.modal=n,this.cfr=a,this.injector=d,this.ui=l.UI,this.localUi=_.S,this.videoPlayerPresentation=m.Q,this.analyticsOwner=r.K,this.videos$=new s.X([]),this.video$=new s.X(null),this.autoplay=!1,this.startFrom=null}set pk(e){this._pk=e,e&&this.load()}get pk(){return this._pk}set gallery(e){this._gallery=e,this.videos=e.playlists.reduce((n,a)=>[...n,...a.videos],[])}get gallery(){return this._gallery}set videos(e){this.videos$.next(e)}get videos(){return this.videos$.getValue()}set video(e){this.video$.next(e),e&&(this.autoplay=!0)}ngOnInit(){(0,C.aj)([this.videos$,this.video$]).pipe((0,y.h)(([e])=>!!e.length)).subscribe(([e,n])=>this.current=e.find(a=>a.id===n)||e[0])}load(){this.loading=!0,this.galleriesService.get(this.pk).pipe((0,g.x)(()=>this.loading=!1)).subscribe(e=>this.gallery=e,e=>this.error=e)}pause(){this.player&&this.player.pause()}next(){let e=this.videos.findIndex(n=>n.id===this.current.id);-1!==e&&e<this.videos.length-1&&(this.current=this.videos[e+1],this.autoplay=!0)}showPlaylists(){let e=this.cfr.resolveComponentFactory(x).create(this.injector);e.instance.gallery=this.gallery,e.instance.video=this.current,e.instance.videoChange.subscribe(n=>{this.modal.close(),this.current=n}),this.modal.open(e)}}(P=A).\u0275fac=function(e){return new(e||P)(t.Y36(Q.J),t.Y36(l.Z7U),t.Y36(t._Vd),t.Y36(t.zs3))},P.\u0275cmp=t.Xpm({type:P,selectors:[["esn-video-gallery"]],viewQuery:function(e,n){if(1&e&&t.Gf(p.p,7),2&e){let a;t.iGM(a=t.CRH())&&(n.player=a.first)}},inputs:{pk:"pk",gallery:"gallery",video:"video",startFrom:"startFrom"},decls:4,vars:3,consts:function(){let o,e;return o="No videos currently available. Please come back later.",e="More videos",[[3,"placement","ok",4,"ngIf"],["previewTemplate",""],[4,"ngIf","ngIfElse"],[3,"placement","ok"],[3,"message"],[3,"width"],[3,"lines"],["noVideosTemplate",""],["message",o],[3,"orientation","gutter"],[3,"gallery","video","videoChange",4,"snMinFor"],["data-player","",3,"align"],[3,"align",4,"sn
1For"],[4,"snMinFor"],[1,"video",3,"pk","autoplay","presentation","startFrom","owner","watched"],["data-copyrights","",3,"copyrights",4,"ngIf"],[3,"gallery","video","videoChange"],[3,"align"],[3,"innerHTML",4,"ngIf"],["data-more","",3,"orientation","justify","click"],e,[3,"icon","color"],[3,"innerHTML"],["data-copyrights","",3,"copyrights"]]},template:function(e,n){if(1&e&&(t.YNc(0,k,2,2,"sn-informer",0),t.YNc(1,N,2,2,"ng-template",null,1,t.W1O),t.YNc(3,j,4,2,"ng-container",2)),2&e){const a=t.MAs(2);t.Q6J("ngIf",n.error),t.xp6(3),t.Q6J("ngIf",!n.loading)("ngIfElse",a)}},dependencies:[M.O5,l.AkF,l.oJW,l.ZlA,l.mMx,l.ycx,l.DzK,l._eU,l.aAT,Z.e,w.T,p.p,x,l.oXc,D.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;background-color:#fff}.app-two-columns[_nghost-%COMP%] [data-player][_ngcontent-%COMP%], .app-two-columns [_nghost-%COMP%] [data-player][_ngcontent-%COMP%]{max-width:calc(100% - 200px)}@media screen and (min-width: 767px){.app-two-columns[_nghost-%COMP%] esn-video-player [data-player], .app-two-columns [_nghost-%COMP%] esn-video-player [data-player]{padding-bottom:50.5%}}h3[_ngcontent-%COMP%]{max-width:100%;color:#444;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}[data-copyrights][_ngcontent-%COMP%]{flex:1 100%;padding:8px 24px 24px}[data-more][_ngcontent-%COMP%]{background-color:#005461;color:#fff;padding:16px}[data-player][_ngcontent-%COMP%]{padding:24px;box-sizing:border-box;width:100%;overflow:hidden}[data-player][_ngcontent-%COMP%] [data-video-title]{display:none}"]})},34837:(E,u,i)=>{i.d(u,{g:()=>f});var t,l=i(36895),s=i(22012),C=i(6410),y=i(21437),g=i(65775),r=i(83264),m=i(31825),v=i(85166),p=i(71853),_=i(55062);class f{getElement(c){return p.X}}(t=f).\u0275fac=function(c){return new(c||t)},t.\u0275mod=_.oAB({type:t}),t.\u0275inj=_.cJS({imports:[l.ez,s.dTQ,s.QX1,s.k85,s.IaM,s.mLg,s.iNp,m.M,v.o,C.Q,g.Q,r.V,y.VideoPlayerModule]})},90168:(E,u,i)=>{i.d(u,{J:()=>f});var t,l=i(15453),s=i(30800),y=i(21086),g=i(24850),r=i(15722),m=i(14506),v=i(47308),p=i(16459),_=i(55062);class f{constructor(c){this.http=c}get(c){return m.YU?(0,y.of)((0,l.Vh)(r.l)):this.http.get(`video-galleries/${c}`).pipe((0,g.U)(h=>(0,s.deserialize)(h,r.l)))}checkAccess(c){return m.YU?(0,y.of)((0,l.Vh)(v.N)):this.http.get(`video-galleries/${c}/check-access`).pipe((0,g.U)(h=>(0,s.deserialize)(h,v.N)))}}(t=f).\u0275fac=function(c){return new(c||t)(_.LFG(p.OE))},t.\u0275prov=_.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.