1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1591],{51591:(P,u,n)=>{n.r(u),n.d(u,{CompetitionManagerCapturesListModule:()=>X});var h=n(61479),m=n(38132),C=n(26532),g=n(39652),f=n(59960),v=n(50433),_=n(25615),d=n(96354),t=n(73664),s=n(2615),p=n(72200),b=n(69415),M=n(72357),x=n(64927),y=n(5498);const T=a=>({"fix-navbar":a}),$=()=>["module.specie.start_capturing"];function L(a,r){if(1&a){const i=t.RV6();t.j41(0,"app-empty-space",4),t.bIt("buttonAction",function(){s.eBV(i);const o=t.XpG(3);return s.Njj(o.capture())}),t.k0s()}2&a&&t.Y8G("textArray",t.lJ4(2,$))("noButton",!1)}function V(a,r){if(1&a){const i=t.RV6();t.j41(0,"app-clupik-capture-card",6),t.bIt("click",function(){const o=s.eBV(i).$implicit,l=t.XpG(4);return s.Njj(l.goToCapture(o.id))}),t.k0s()}if(2&a){const i=r.$implicit;t.Y8G("image",i.fish)("mainTitle",i.name)("description",i.size)}}function G(a,r){if(1&a&&(t.j41(0,"div",3),t.DNE(1,V,1,3,"app-clupik-capture-card",5),t.k0s()),2&a){const i=t.XpG();t.R7$(),t.Y8G("ngForOf",i)}}function S(a,r){if(1&a&&(t.j41(0,"div",0)(1,"app-block-column")(2,"app-block-item",1),t.nVh(3,L,1,3,"app-empty-space",2)(4,G,2,1,"div",3),t.k0s()()()),2&a){const i=t.XpG(2);t.Y8G("ngClass",t.eq3(7,T,i.hasNavbar)),t.R7$(2),t.Y8G("hasHead",!0)("loading",i.loading)("whiteBorder",!1)("transparent",!0)("showTitle",!1),t.R7$(),t.vxM(r.length?4:3)}}function j(a,r){if(1&a&&(t.nVh(0,S,5,9,"div",0),t.nI1(1,"async")),2&a){let i;const e=t.XpG();t.vxM((i=t.bMT(1,1,e.captures$))?0:-1,i)}}const k=[{path:"",component:(()=>{class a{globalVars;_cmService;_history;_clubMenu;_apiCM;loading=!1;get hasNavbar(){return this._history.showAppFooter&&this.globalVars.responsive&&this._clubMenu.appLinks?.length>0}mainProfile$=null;captures$;value=null;constructor(i,e,o,l,I){this.globalVars=i,this._cmService=e,this._history=o,this._clubMenu=l,this._apiCM=I,this.mainProfile$=this._cmService._mainProfile$.pipe((0,d.T)(c=>(c&&this.getCaptures(),c))),this.captures$=this._cmService._captures$.pipe((0,d.T)(c=>c?(this.value=c,this.loading=!1,this.value):null))}getCaptures(){this._apiCM.getScreenShots().subscribe({next:i=>{i.sort((e,o)=>this.globalVars.getMoment()(o.updatedAt)-this.globalVars.getMoment()(e.updatedAt)),this._cmService.captures=i.map(e=>({id:e.id,name:this._cmService.fishName(e.code),code:e.code,size:e.size,coordinates:e.metadata?.coordinates,speciesState:e.speciesLabel,sizeState:e.sizeLabel,fish:e.fish}))}})}ngAfterViewInit(){this.globalVars.navbarTop.title="module.specie.captures"}goToCapture(i){this._history.setCurrent(),this._history.showAppFooter=!1,this.globalVars.clupikNavigate(`/user/captures/fish/${i}/info`)}capture(){this._cmService.broadcast("capture",{})}static \u0275fac=function(e){return new(e||a)(t.rXU(_.Y),t.rXU(v.y),t.rXU(f.C),t.rXU(g.$),t.rXU(C.y))};static \u0275cmp=t.VBU({type:a,selectors:[["app-competition-manager-captures-list"]],standalone:!1,decls:2,vars:3,consts:[[1,"competition-manager-captures-list",3,"ngClass"],[3,"hasHead","loading","whiteBorder","transparent","showTitle"],["size","sm","svgImage","fishing","buttonText","module.specie.take_capture","buttonType","button","buttonConfig","main","icon","fa-solid fa-camera",3,"textArray","noButton"],[1,"capture-list"],["size","sm","svgImage","fishing","buttonText","module.specie.take_capture","buttonType","button","buttonConfig","main","icon","fa-solid fa-camera",3,"buttonAction","textArray","noButton"],[3,"image","mainTitle","description","click",4,"ngFor","ngForOf"],[3,"click","image","mainTitle","description"]],template:function(e,o){1&e&&(t.nVh(0,j,2,3),t.nI1(1,"async")),2&e&&t.vxM(t.bMT(1,1,o.mainProfile$)?0:-1)},dependencies:[p.YU,p.Sq,b.p,M.W,x.h,y.g,p.Jj],styles:[".capture-list[_ngcontent-%COMP%]{display:flex;gap:0px 12px;flex-wrap:wrap}.capture-list[_ngcontent-%COMP%] app-clupik-capture-card[_ngcontent-%COMP%]{max-width:calc(50% - 6px);min-width:calc(50% - 6px);flex-grow:1;box-sizing:border-box}.competition-manager-captures-list[_ngcontent-%COMP%]{min-height:calc(100dvh - var(--main-nav-top) - var(--ion-safe-area-top));max-height:calc(100dvh - var(--main-nav-top) - var(--ion-safe-area-top))}.competition-manager-captures-list.fix-navbar[_ngcontent-%COMP%]{min-height:calc(100dvh - var(--main-nav-top) - var(--ion-safe-area-top) - var(--bottom-height));max-height:calc(100dvh - var(--main-nav-top) - var(--ion-safe-area-top) - var(--bottom-height))}"]})}return a})()}];let A=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275mod=t.$C({type:a});static \u0275inj=s.G2t({imports:[m.iI.forChild(k),m.iI]})}return a})(),X=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275mod=t.$C({type:a});static \u0275inj=s.G2t({imports:[h.O,A]})}return a})()}}]);
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.