1import{_ as V,ak as v,b as N,e as o,w as n,$ as w,r as i,al as $,aN as k,o as u,m as s,x as c,g as a,c as _,d as L,t as d}from"./index-DcN32Kdt.js";import{S}from"./select-CWh3IXxs.js";import{s as P}from"./index-B0uThlB9.js";import"./event-bus-CGRXT3Tn.js";const f={components:{SeasonSelect:S},data:()=>({filters:{"licence.owningClub.id":null,"licence.identifier":null,"licence.person.familyName":null,"licence.person.givenName":null,type:null,"season.id":null}}),computed:{seasonFilter(){return this.filters["season.id"]}},methods:{getSelectChoices:v,getChoiceLabel(e,t){return $(this.listMapping,e,t)}},watch:{seasonFilter:{immediate:!0,handler(e){e&&this.filter(this.filters)}}},created(){this.setOrder({by:"dateCreated",dir:"desc"}),this.getListMapping(),this.filters["licence.owningClub.id"]=this.$route.params.clubId}};P.link(f,{namespace:k.namespace,operations:["list"],withDialogs:!0});const U=f,M={class:"md-layout md-gutter"},B={class:"md-layout-item md-layout-field"},F={class:"md-layout-item md-layout-field"},T={class:"md-layout-item md-layout-field"},D={class:"md-layout md-gutter"},K={class:"md-layout-item md-layout-field"},O={class:"md-layout-item md-layout-field"};function R(e,t,A,E,I,j){const m=i("input-row"),g=i("select-row"),y=i("season-select"),p=i("md-button"),b=i("content-block"),h=i("person"),r=i("md-table-cell"),C=i("preconfigured-list");return u(),N("div",null,[o(b,{title:"Critères de recherche",onKeyup:t[6]||(t[6]=w(l=>e.filter(e.filters),["enter"]))},{footer:n(()=>[o(p,{class:"btnPrimary",onClick:t[5]||(t[5]=c(l=>e.filter(e.filters),["prevent"]))},{default:n(()=>[...t[7]||(t[7]=[a("Rechercher",-1)])]),_:1}),o(p,{type:"submit",class:"btnPrimaryLight mts",onClick:c(e.resetFilters,["prevent"])},{default:n(()=>[...t[8]||(t[8]=[a(" Réinitialiser ",-1)])]),_:1},8,["onClick"])]),default:n(()=>[s("div",M,[s("div",B,[o(m,{modelValue:e.filters["licence.identifier"],"onUpdate:modelValue":t[0]||(t[0]=l=>e.filters["licence.identifier"]=l),label:"N° de licence"},null,8,["modelValue"])]),s("div",F,[o(m,{modelValue:e.filters["licence.person.familyName"],"onUpdate:modelValue":t[1]||(t[1]=l=>e.filters["licence.person.familyName"]=l),label:"Nom"},null,8,["modelValue"])]),s("div",T,[o(m,{modelValue:e.filters["licence.person.givenName"],"onUpdate:modelValue":t[2]||(t[2]=l=>e.filters["licence.person.givenName"]=l),label:"Prénom"},null,8,["modelValue"])])]),s("div",D,[s("div",K,[o(g,{modelValue:e.filters.type,"onUpdate:modelValue":t[3]||(t[3]=l=>e.filters.type=l),label:"Type",options:e.listMapping?e.getSelectChoices(e.listMapping,"type"):[]},null,8,["modelValue","options"])]),s("div",O,[o(y,{modelValue:e.filters["season.id"],"onUpdate:modelValue":t[4]||(t[4]=l=>e.filters["season.id"]=l),returnsProp:"id",defaultToCurrent:""},null,8,["modelValue"])])])]),_:1}),o(C,{title:"Liste des opérations",loading:e.listLoading,items:e.items,pagination:e.pagination,"on-order-change":e.changeOrder,"on-page-change":e.getPage,"on-limit-change":e.changeLimit,selectable:!1},{"md-table-row-inner":n(({item:l})=>[o(r,{"md-label":"Nom / Prénom","md-sort-by":"licence.person.familyName"},{default:n(()=>[l.licence?(u(),_(h,{key:0,value:l.licence.person},null,8,["value"])):L("",!0)]),_:2},1024),o(r,{"md-label":"N° Licence","md-sort-by":"licence.identifier"},{default:n(()=>[a(d(e.$prop(l,"licence.identifier")),1)]),_:2},1024),o(r,{"md-label":"Date","md-sort-by":"dateCreated"},{default:n(()=>[a(d(e.$datetimeFormat(l.dateCreated)),1)]),_:2},1024),o(r,{"md-label":"Type","md-sort-by":"type"},{default:n(()=>[a(d(e.getChoiceLabel(l.type,"type")),1)]),_:2},1024),o(r,{"md-label":"Utilisateur","md-sort-by":"executor"},{default:n(()=>[a(d(e.$prop(l,"creator.username")),1)]),_:2},1024),o(r,{"md-label":"Saison","md-sort-by":"season"},{default:n(()=>[a(d(e.$prop(l,"season.name")),1)]),_:2},1024)]),_:1},8,["loading","items","pagination","on-order-change","on-page-change","on-limit-change"])])}const J=V(U,[["render",R]]);export{J as default};
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.