1import{c as w}from"./chunk-2LBB7BON.js";import{a as I}from"./chunk-BNBVOIR7.js";import"./chunk-YHLJ7W4E.js";import"./chunk-S7R72VF3.js";import"./chunk-5XTDH3WY.js";import"./chunk-5SPZT6IT.js";import"./chunk-NSFQMYQP.js";import"./chunk-6NSXFTNW.js";import"./chunk-JDHWHSAQ.js";import{a as M}from"./chunk-PRCD6WJW.js";import{a as j}from"./chunk-SERMVCZG.js";import"./chunk-GDOYC56D.js";import{Rb as N,Xa as x,Xc as F,fb as S,tb as $}from"./chunk-WXERIPWV.js";import"./chunk-U2Q44J3T.js";import{V as b}from"./chunk-DF5WETR3.js";import"./chunk-PI3467Q3.js";import"./chunk-UJGNC2SB.js";import"./chunk-YRGL6KQK.js";import{Cc as v,Mb as l,Qc as P,Sc as y,cc as f,e as d,ec as u,jc as p,kc as g,kd as c,lc as s,ld as h,mc as a,sb as r,sd as D,va as i,xd as C}from"./chunk-GZQ3R63N.js";import"./chunk-43LQFSHA.js";var m=class t{fullNamePipe=i(S);photo=C.required();title=D(()=>[this.photo().authorPersonNames?.map(e=>this.fullNamePipe.transform(e))?.join(", "),this.photo().title].filter(Boolean).join(": "));static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["app-photo-detail-ui"]],inputs:{photo:[1,"photo"]},decls:8,vars:3,consts:[[1,"flex","flex-col","gap-4","max-lg:py-6","lg:flex-row","lg:items-start","lg:gap-12"],[1,"max-h-main-height-available","lg:sticky","lg:bottom-0","lg:flex","lg:max-h-screen","lg:grow","lg:flex-col","lg:items-start","lg:py-6","xl:py-8"],[1,"shrink-0"],[1,"fch-title","mb-4"],[1,"min-h-0","flex-1","object-contain",3,"appPhoto"],[1,"lg:w-1/3","lg:shrink-0","lg:py-6","xl:py-8",3,"photo"]],template:function(e,n){e&1&&(g(0,"app-container")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h1",3),P(5),s()(),a(6,"img",4),s(),a(7,"app-photo-information-list-ui",5),s()()),e&2&&(r(5),y(" ",n.title()," "),r(),p("appPhoto",n.photo()),r(),p("photo",n.photo()))},dependencies:[M,I,w],encapsulation:2,changeDetection:0})};function T(t,o){if(t&1&&(a(0,"app-photo-detail-ui",0),c(1,"selectorPush")),t&2){let e=v();p("photo",h(1,1,e.photo$))}}var O=class t{storeFacadeService=i(F);route=i(b);errorPageService=i(x);metaService=i($);
1photo$=this.storeFacadeService.photoDetails.getPhoto$;isLoading$=this.storeFacadeService.photoDetails.getIsPhotoLoading$;destroyed$=new d;id=0;ngOnInit(){let o=this.route.snapshot.params.id;if(!N(o)){this.errorPageService.notFound();return}this.id=+o,this.storeFacadeService.photoDetails.fetchPhoto(this.id),this.metaService.subscribeToEntity({entity$:this.photo$,destroyed$:this.destroyed$})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["app-photo-detail"]],decls:2,vars:3,consts:[[3,"photo"]],template:function(e,n){e&1&&(f(0,T,2,3,"app-photo-detail-ui",0),c(1,"selectorPush")),e&2&&u(h(1,1,n.photo$)?0:-1)},dependencies:[m,j],encapsulation:2,changeDetection:0})};export{O as PhotoDetailContainerComponent};
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.