1import{a as D}from"./chunk-UU7MH6Q7.js";import{i as A,k as F,l as G,s as T,u as j}from"./chunk-33UPIBGV.js";import{Ac as L,Cb as f,Db as h,Ec as E,Gb as M,Ha as I,Hb as u,Jb as g,Ma as o,Sb as v,Tb as c,Ua as s,Ub as P,W as y,X as b,Y as x,Za as k,bb as p,bc as V,lc as O,u as C,vb as l,wb as i,wc as w,xb as n,yb as d,zc as S}from"./chunk-QEWJF7HK.js";var R=e=>["/videoFolder",e];function z(e,m){e&1&&(f(0,13),i(1,"span",14),c(2,"No Data Found"),n(),h())}function B(e,m){e&1&&(x(),i(0,"svg",26),d(1,"path",27),n())}function U(e,m){if(e&1){let t=M();f(0),i(1,"div",17)(2,"div",18)(3,"a",19)(4,"div",20),p(5,B,2,0,"svg",21),d(6,"div",22),i(7,"img",23),u("load",function(){y(t);let a=g(2);return b(a.onImageLoad())}),n()(),i(8,"div",24)(9,"h5",25),c(10),n()()()()(),h()}if(e&2){let t=m.$implicit,r=g(2);o(3),l("routerLink",V(4,R,t.Id)),o(2),l("ngIf",!r.imageLoaded),o(2),l("src","/assets/img/youtube.png",I),o(3),P(t.Name)}}function $(e,m){if(e&1&&(i(0,"div",15),p(1,U,11,6,"ng-container",16),n()),e&2){let t=g();o(),l("ngForOf",t.VideoAlbums)}}function J(e,m){e&1&&(i(0,"div",28)(1,"h5",29),d(2,"span",30),n()())}var ee=(()=>{class e{constructor(t,r,a,_,N){this.route=t,this.location=r,this.appService=a,this.router=_,this.cdr=N,this.items=["photos","videos"],this.selectedItem="videos",this.imageLoaded=!1,this.fetchinData=!0}ngOnInit(){this.FetchAlbums()}selectItem(){this.router.navigate(["/photo-gallery"])}onImageLoad(){this.imageLoaded=!0}FetchAlbums(){C([this.appService.getVideoAlbums()]).subscribe(t=>{console.log(t,"response Albums"),this.VideoAlbums=t[0].data,this.fetchinData=!1,this.cdr.markForCheck()})}TransformUrl(t){return t.includes("https://")?t:`https://${t}`}static{this.\u0275fac=function(r){return new(r||e)(s(A),s(w),s(j),s(F),s(O))}}static{this.\u0275cmp=k({type:e,selectors:[["app-video-gallery"]],decls:20,vars:7,consts:[[1,"container"],[1,"row",2,"margin-top","50px"],[1,"col-md-3",2,"border","1px solid rgba(0, 0, 0, 0.125)","border-radius","14px","max-height","500px"],["align","left"],[2,"font-size","26px"],[1,"list-group","list-group-flush"],[1,"newA","linkStyle","list-group-item","list-group-item-action",3,"click"],[1,"newA","linkStyle","list-group-item","list-group-item-action","active"],[1,"col-md-9"],[2,"min-height","800px"],["class","spinner-overlay",4,"ngIf"],["class","row",4,"ngIf"],["aria-hidden","true","class","col-lg-12 col-md-12",4,"ngIf"],[1,"spinner-overlay"],[1,"fetching-data-text"],[1,"row"],[4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","mb-3"],[1,"card","cardPhoto","h-100","shadow"],[3,"routerLink"],[1,"image-container"],["class","loading-spinner","viewBox","0 0 16 18",4,"ngIf"],[1,"image-overlay"],["alt","Card Image",1,"card-img-top","fit-image",3,"load","src"],[1,"card-body","d-flex","align-items-center","justify-content-center","mt-4"],[1,"card-title"],["viewBox","0 0 16 18",1,"loading-spinner"],["fill","none","stroke-width","2","d","M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z",1,"path"],["aria-hidden","true",1,"col-lg-12","col-md-12"],[1,"placeholder-glow"],[1,"placeholder","col-12",2,"height","200px"]],template:function(r,a){r&1&&(d(0,"app-navbar-style-main"),i(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"p",4),c(6,"Gallery"),n()(),i(7,"div",5)(8,"button",6),u("click",function(){return a.selectItem()}),c(9," Photos "),n(),i(10,"button",7),c(11," Videos "),n()()(),i(12,"div",8)(13,"div",9)(14,"div")(15,"div",0),p(16,z,3,0,"ng-container",10)(17,$,2,1,"div",11),n()()()()(),d(18,"br"),p(19,J,3,0,"div",12),n()),r&2&&(o(8),v("active",a.selectedItem==="photos"),o(2),v("active",a.selectedItem==="videos"),o(6),l("ngIf",a.VideoAlbums==null),o(),l("ngIf",a.VideoAlbums!=null),o(2),l("ngIf",a.fetchinData))},dependencies:[E,S,L,T,G,D],styles:[".bg-image[_ngcontent-%COMP%]{background:#000;background:linear-gradient(180deg,#000,#fff0)}.tab-pane.fade.show[_ngcontent-%COMP%]{opacity:0;animation:_ngcontent-%COMP%_fadeIn .5s ease forwards}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}
1to{opacity:1}}.card.custom-padding[_ngcontent-%COMP%]{padding-bottom:20px}.loading-spinner[_ngcontent-%COMP%]{z-index:2;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:32px;height:32px}.loading-spinner[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{stroke:gray;stroke-linecap:round;animation:_ngcontent-%COMP%_dash 1.1s ease-in-out infinite}@keyframes _ngcontent-%COMP%_dash{0%{stroke-dasharray:1,160;stroke-dashoffset:0}50%{stroke-dasharray:80,160;stroke-dashoffset:-32}to{stroke-dasharray:80,160;stroke-dashoffset:-124}}.cardPhoto[_ngcontent-%COMP%]{transition:transform .3s ease-in-out}.cardPhoto[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.image-container[_ngcontent-%COMP%]{position:relative;width:100%;height:150px}.image-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.spinner-overlay[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.fetching-data-text[_ngcontent-%COMP%]{display:block;margin-top:10px;font-size:14px;color:#333}.fit-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.list-group-item.active[_ngcontent-%COMP%]{background-color:#082c5c;border-color:#082c5c}"]})}}return e})();export{ee as VideoGalleryComponent};
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.