PageSourceSearch

https://monclub.fftt.com/assets/index-CNJl18V1.js

js fftt.com collected 2026-09-24 09:36:33 UTC 8,157 bytes, 1 lines download raw bytes

1import{_ as R,a as w,E as I,Y as N,I as y,M as k,N as L,c as g,w as p,r as P,o,e as O,x as S,g as b,d as V,m as i,b as f,F as C,f as A,t as E}from"./index-DcN32Kdt.js";import B from"./index-OPfVEb8H.js";import{e as T}from"./event-bus-CGRXT3Tn.js";import{s as x}from"./index-B0uThlB9.js";import"./referentials-D4fc3OC_.js";import"./form-D4lg8dhd.js";import"./index-B4Khn9Sj.js";import"./form-BFRt3vdn.js";import"./finder-BN2xMdT-.js";import"./inline-MHNg9RPm.js";import"./form-base-DDL59IDw.js";import"./form-honorability-bn_orFg4.js";import"./licence-BiIutBpV.js";import"./index-kXhC5rJm.js";import"./inline-DroPGesH.js";import"./club-Bg8YiBWL.js";const $={components:{InformationsPage:B},data:()=>({clubIri:null,innerLoading:!1,clubViolations:[],accountantsViolations:[],sporthallViolations:[],establishmentsViolations:[]}),computed:{loading(){return this.updateGlobalLoading||this.showLoading||this.innerLoading},affiliateButtonDisabled(){return this.clubViolations.length>0||this.accountantsViolations.length>0||this.sporthallViolations.length>0||this.establishmentsViolations.length>0},accountantItems(){return this.$store.state[y.namespace].list.items},createdAccountant(){return this.$store.state[y.namespace].create.created},updatedAccountant(){return this.$store.state[y.namespace].update.updated},deletedAccountant(){return this.$store.state[y.namespace].del.deleted},createdRenew(){return this.$store.state[k.namespace].create.created}},methods:{getCurrentViolations(){if(!this.innerLoading&&this.clubIri)return this.innerLoading=!0,w.post(this.clubIri+"/affiliate_check").then(s=>{const n=[],c=[],u=[],h=[];let t={};s&&s.violations&&Array.isArray(s.violations)&&s.violations.forEach(e=>{t[e.propertyPath]?(typeof t[e.propertyPath]=="string"&&(t[e.propertyPath+"[0]"]=t[e.propertyPath],t[e.propertyPath]=0),t[e.propertyPath]++,t[e.propertyPath+"["+t[e.propertyPath]+"]"]=e.message):t[e.propertyPath]=e.message});for(let e in t)isNaN(t[e])&&(e.indexOf("club.clubType")!==-1?n.push(t[e]):e.indexOf("club.accountants")!==-1?c.push(t[e]):e.indexOf("club.sportHalls")!==-1?u.push(t[e]):e.indexOf("club.establishments")!==-1&&h.push(t[e]));this.clubViolations=n,this.accountantsViolations=c,this.sporthallViolations=u,this.establishmentsViolations=h}).catch(s=>{const n=[],c=[],u=[],h=[];let t={};if(s.errors)t=s.errors;else{let e=null;if(s.data?e=s.data:s.response&&s.response.data&&(e=s.response.data),e){if(e.violations&&Array.isArray(e.violations))e.violations.forEach(r=>{t[r.propertyPath]?(typeof t[r.propertyPath]=="string"&&(t[r.propertyPath+"[0]"]=t[r.propertyPath],t[r.propertyPath]=0),t[r.propertyPath]++,t[r.propertyPath+"["+t[r.propertyPath]+"]"]=r.message):t[r.propertyPath]=r.message});else if(e.detail||e["hydra:description"]){const r=e.detail||e["hydra:description"];try{const l=typeof r=="string"?JSON.parse(r):r;Array.isArray(l)&&l.forEach(a=>{t[a.propertyPath]?(typeof t[a.propertyPath]=="string"&&(t[a.propertyPath+"[0]"]=t[a.propertyPath],t[a.propertyPath]=0),t[a.propertyPath]++,t[a.propertyPath+"["+t[a.propertyPath]+"]"]=a.message):t[a.propertyPath]=a.message})}catch(l){console.error("Error parsing violations:",l)}}}}for(let e in t)isNaN(t[e])&&(e.indexOf("club.clubType")!==-1?n.push(t[e]):e.indexOf("club.accountants")!==-1?c.push(t[e]):e.indexOf("club.sportHalls")!==-1?u.push(t[e]):e.indexOf("club.establishments")!==-1&&h.push(t[e]));this.clubViolations=n,this.accountantsViolations=c,this.sporthallViolations=u,this.establishmentsViolations=h}).finally(()=>{this.innerLoading=!1})},affiliate(){return this.innerLoading=!0,L.showLoadingToast(),w.post(this.clubIri+"/affiliate").then(s=>{this.innerLoading=!1,L.showSuccessToast("Réaffiliation enregistrée"),T.emit("club::reafiliated"),this.getCurrentViolations()}).catch(s=>{this.innerLoading=!1;const n=[],c=[],u=[],h=[];let t={};if(s.errors)t=s.errors;else{let e=null;if(s.data?e=s.data:s.response&&s.response.data&&(e=s.response.data),e){if(e.violations&&Array.isArray(e.violations))e.violations.forEach(r=>{t[r.propertyPath]?(typeof t[r.propertyPath]=="string"&&(t[r.propertyPath+"[0]"]=t[r.propertyPath],t[r.propertyPath]=0),t[r.propertyPath]++,t[r.propertyPath+"["+t[r.propertyPath]+"]"]=r.message):t[r.propertyPath]=r.message});else if(e.detail||e["hydra:description"]){const r=e.detail||e["hydra:description"];try{const l=typeof r=="string"?JSON.parse(r):r;Array.isArray(l)&&l.forEach(a=>{t[a.propertyPath]?(typeof t[a.propertyPath]=="string"&&(t[a.propertyPath+"[0]"]=t[a.propertyPath],t[a.propertyPath]=0),t[a.propertyPath]++,t[a.propertyPath+"["+t[a.propertyPath]+"]"]=a.message):t[a.propertyPath]=a.message})}catch(l){console.error("Error parsing violations:",l)}}}}for(let e in t)isNaN(t[e])&&(e.indexOf("club.clubType")!==-1?n.push(t[e]):e.indexOf("club.accountants")!==-1?c.push(t[e]):e.indexOf("club.sportHalls")!==-1?u.push(t[e]):e.indexOf("club.establishments")!==-1&&h.push(t[e]));this.clubViolations=n,this.accountantsViolations=c,this.sporthallViolations=u,this.establishmentsViolations=h,c.length===0&&n.length===0&&u.length===0&&h.length===0&&L.showErrorToast("Erreur lors de l'affiliation")})}},watch:{updated(s){s&&this.getCurrentViolations()},createdAccountant(s){s&&this.getCurrentViolations()},updatedAccountant(s){s&&this.getCurrentViolations()},deletedAccountant(s){s&&this.getCurrentViolations()},accountantItems(s){s&&s.length&&this.getCurrentViolations()},createdRenew(s){s&&this.getCurrentViolations()}},beforeCreate(){N(this,y.namespace),N(this,k.namespace)},created(){this.clubIri=w.generateIri(I.entrypoint,this.$route.params.clubId),this.getUpdateMapping(),this.retrieve(this.$route.params.clubId)},mounted(){this.getCurrentViolations()}};x.links($,[{namespace:I.namespace,operations:["update","show"]},{namespace:k.namespace,operations:["create"]}]);const _=$;function q(s,n,c,u,h,t){const e=P("warning"),r=P("md-button"),l=P("informations-page"),a=P("content-block");return o(),g(a,{title:"Réaffiliation",loading:s.loading,"min-height":400},{default:p(()=>[O(l,{title:"",embedded:"",class:"pts"},{afterClubInfos:p(()=>[s.clubViolations.length?(o(),g(e,{key:0,class:"mtm"},{default:p(()=>[n[0]||(n[0]=i("strong",null,"Étapes manquantes:",-1)),i("ul",null,[(o(!0),f(C,null,A(s.clubViolations,(d,m)=>(o(),f("li",{key:m},E(d),1))),128))])]),_:1})):V("",!0)]),afterAccountants:p(()=>[s.accountantsViolations.length?(o(),g(e,{key:0,class:"mtm"},{default:p(()=>[n[1]||(n[1]=i("strong",null,"Étapes manquantes:",-1)),i("ul",null,[(o(!0),f(C,null,A(s.accountantsViolations,(d,m)=>(o(),f("li",{key:m},E(d),1))),128))]),n[2]||(n[2]=i("p",null,[b(" Dans le Cadre « PERSONNALITES DU CLUB » , pour chaque dirigeant, merci de : "),i("ul",null,[i("li",null," Compléter les informations obligatoires ( Nom de naissance, pays de naissance, ville de naissance et mail ) via l’action « modifier » ")]),b(" Puis : "),i("ul",null,[i("li",null," Procéder au renouvellement de la licence via l’action « RENOUVELER LA LICENCE » , en renseignant le type de licence, les informations médicales et prise de connaissance des conditions d’assurance ")]),b(" (Guide de réaffiliation à usage des clubs : "),i("a",{href:"https://www.fftt.com/doc/administratif/Reaffiliation.pdf",target:"_blank"},"https://www.fftt.com/doc/administratif/Reaffiliation.pdf"),b(" ) ")],-1))]),_:1})):V("",!0)]),afterSportHall:p(()=>[s.sporthallViolations.length?(o(),g(e,{key:0,class:"mtm"},{default:p(()=>[n[3]||(n[3]=i("strong",null,"Étapes manquantes:",-1)),i("ul",null,[(o(!0),f(C,null,A(s.sporthallViolations,(d,m)=>(o(),f("li",{key:m},E(d),1))),128))])]),_:1})):V("",!0)]),beforeEstablishments:p(()=>[s.establishmentsViolations.length?(o(),g(e,{key:0,class:"mbm"},{default:p(()=>[n[4]||(n[4]=i("strong",null,"Étapes manquantes:",-1)),i("ul",null,[(o(!0),f(C,null,A(s.establishmentsViolations,(d,m)=>(o(),f("li",{key:m},E(d),1))),128))])]),_:1})):V("",!0)]),footer:p(()=>[O(r,{type:"submit",class:"btnPrimaryLight mts",disabled:s.affiliateButtonDisabled,onClick:S(s.affiliate,["prevent"])},{default:p(()=>[...n[5]||(n[5]=[b("Affilier",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1},8,["loading"])}const tt=R(_,[["render",q]]);export{tt 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.