PageSourceSearch

https://www.fiche-paie.net/chunk-TJPAXLPY.js

js fiche-paie.net collected 2026-10-07 02:08:22 UTC 10,525 bytes, 1 lines download raw bytes

1import{a as F,b as P}from"./chunk-PAN4BBUU.js";import{a as me}from"./chunk-IJ24QISP.js";import{a as le}from"./chunk-K6BFBUNH.js";import{a as re}from"./chunk-NFPAME5D.js";import{e as oe,f as D,g as ne}from"./chunk-WCJNHVFL.js";import{h as J}from"./chunk-PAYNTEQW.js";import{a as H}from"./chunk-ET6QAI36.js";import{b as ae}from"./chunk-DJYL2LJD.js";import{a as w}from"./chunk-TZZNG7TU.js";import{d as se}from"./chunk-E4RZ2FNK.js";import{B as ie,C as te,d as E,f as K,g as Q,i as W,l as $,n as X,t as Y,u as Z,z as ee}from"./chunk-MD6XR5F4.js";import{c as O}from"./chunk-3LUNOIVT.js";import{o as B}from"./chunk-YFE3K7ZC.js";import{ga as x}from"./chunk-QDPKAZDO.js";import{Ic as R,Jb as c,Lb as d,Nb as I,Ob as T,Pb as j,Qb as u,Rb as a,Sb as l,T as _,Tb as b,_b as L,ab as s,ac as h,ad as y,cc as p,d as S,ja as k,ka as V,kb as m,oc as z,pb as M,ra as A,rc as f,sc as N,tc as G,va as U,xa as q}from"./chunk-5RRVQWKL.js";function he(t,n){if(t&1&&(a(0,"small",15),f(1),l()),t&2){let r=n.$implicit;s(),N(r)}}function ge(t,n){if(t&1&&T(0,he,2,1,"small",15,I),t&2){let r=p();j(r.errors.motifResiliation)}}function Ce(t,n){if(t&1&&(a(0,"small",15),f(1),l()),t&2){let r=n.$implicit;s(),N(r)}}function ve(t,n){if(t&1&&T(0,Ce,2,1,"small",15,I),t&2){let r=p();j(r.errors.commentaire)}}var ce=(()=>{let n=class n{get motifResiliation(){return this.formResiliation.get("motifResiliation")}get commentaire(){return this.formResiliation.get("commentaire")}constructor(e,i,o,g,C){this.motifs=[],this.motifsFiltered=[],this.motifsLabel="Motif de la r\xE9siliation",this.optionLabel="name",this.optionValue="name",this.errors={commentaire:[],motifResiliation:[]},this.imageEvent=new A,this.sending=!1,this.img=[],this.objectURL=[],this.destroy$=new S,this.maxLength=500,this.labelCommentaire=y(()=>"Commentaire "+(this.isCommentaireObligatoire()?"(obligatoire)":"(optionnel)")),this.motifChoisi=U({name:"",commentaire_obligatoire:!1}),this.isCommentaireObligatoire=y(()=>this.motifChoisi()?.commentaire_obligatoire??!1),this.commentaireDefaultValidators=y(()=>{let v=[];return v.push(E.maxLength(this.maxLength)),this.isCommentaireObligatoire()&&v.push(E.required),v}),this.formResiliation=new W({motifResiliation:new $("",[E.required]),commentaire:new $("",this.commentaireDefaultValidators())}),this.demandeResiliationMotifService=o,this.demandeResiliationService=g,this.toastService=e,this.ref=C,this.domSanitizer=i,this.motifResiliation.valueChanges.pipe(_(this.destroy$)).subscribe({next:v=>{this.motifChoisi.set(this.motifs.find(de=>de.name===v)??{name:"",commentaire_obligatoire:!1})}}),q(()=>{this.commentaire.setValidators(this.commentaireDefaultValidators()),this.commentaire.updateValueAndValidity()})}ngOnInit(){this.ajoutMotifs()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}ajoutMotifs(){this.demandeResiliationMotifService.getAll().subscribe({next:e=>{for(var i=0;i<e.length;i++)this.motifs.push({name:e[i].libelle,commentaire_obligatoire:e[i].commentaire_obligatoire});this.motifsFiltered=this.motifs},error:e=>{console.error(e)}})}submitForm(){this.formResiliation.updateValueAndValidity(),this.formResiliation.valid?this.sending||(this.sending=!0,this.formResiliation.disable(),this.demandeResiliationService.create(this.commentaire.value,this.motifResiliation.value).pipe(_(this.destroy$)).subscribe({next:e=>{this.sending=!1,this.formResiliation.enable(),this.creerImage(e["demande-resiliation"],0)},error:e=>{console.error(e),this.sending=!1,this.formResiliation.enable()}})):(this.commentaire.errors&&(this.errors={commentaire:[],motifResiliation:[]},Object.keys(this.commentaire.errors).forEach(e=>{switch(e){case"maxlength":this.errors.commentaire.push("Le commentaire est limit\xE9 \xE0 "+this.maxLength+" caract\xE8res");break;case"required":this.errors.commentaire.push("Le champ est obligatoire");break}})),this.motifResiliation.errors&&Object.keys(this.motifResiliation.errors).forEach(e=>{e==="required"&&this.errors.motifResiliation.push("Le champ est obligatoire")}))}annuler(){this.ref.close("annuler")}creerImage(e,i){this.demandeResiliationService.setPicture(e,this.img[i]).subscribe({next:()=>{i<this.img.length-1?this.creerImage(e,i+1):this.ref.close("ok")},error:o=>{console.error(o)}})}onSelect(e){e!==null&&(Array.isArray(e)&&(this.img=e),this.imageEvent.emit(e))}};n.\u0275fac=function(i){return new(i||n)(m(w),m(B),m(F),m(P),m(oe))},n.\u0275cmp=M({type:n,selectors:[["fp-modal-form-resiliation"]],outputs:{imageEvent:"imageEvent"},features:[R([P,F])],decls:23,vars:17,consts:[["imagePath","/assets/images/icons/resilier.png","title","Demande de r\xE9siliation"],[1,"form-container",3,"ngSubmit","formGroup"],[1,"form-input"],[1,"p-inputgroup","group"],[1,"field","col","dropdown-field"],["formControlName","motifResiliation",1,"p-0",3,"label","optionLabel","optionValue","selectArray","appendTo"],[1,"informations"],[1,"errors-container"],[1,"input-group-content"],["formControlName","commentaire","maxlength","500","type","textarea",3,"label"],[1,"characterCount"],[1,"field","text-center",2,"display","flex","justify-content","center","flex-direction","column"],["accept","image/*, .pdf",3,"fileSelected","maxsize","maxFile","multiple","showPreview","fileMultiple"],["label","Annuler","type","button","color","blue",3,"click"],["label","Valider","type","submit"],[1,"p-error"]],template:function(i,o){i&1&&(b(0,"fp-modal-header",0),a(1,"form",1),h("ngSubmit",function(){return o.submitForm(
1)}),a(2,"div",2)(3,"div",3)(4,"div",4),b(5,"fp-select",5),a(6,"div",6)(7,"div",7),c(8,ge,2,0),l()()(),a(9,"div",8),b(10,"fp-input",9),a(11,"div",6)(12,"div",7),c(13,ve,2,0),l(),a(14,"div",10),f(15),l()()(),a(16,"div",11)(17,"small"),f(18,"Pi\xE8ce jointe (optionnel)"),l(),a(19,"fp-upload",12),h("fileSelected",function(C){return o.onSelect(C)}),l()()()(),a(20,"fp-modal-footer")(21,"fp-button",13),h("click",function(){return o.annuler()}),l(),b(22,"fp-button",14),l()()),i&2&&(s(),u("formGroup",o.formResiliation),s(4),u("label",o.motifsLabel)("optionLabel",o.optionLabel)("optionValue",o.optionValue)("selectArray",o.motifsFiltered)("appendTo","self"),s(3),d(o.motifResiliation.invalid?8:-1),s(2),u("label",o.labelCommentaire()),s(3),d(o.commentaire.invalid?13:-1),s(),z("invalid",o.commentaire.value.length>o.maxLength||o.isCommentaireObligatoire()&&o.commentaire.value.length===0),s(),G(" ",o.commentaire.value.length," "),s(4),u("maxsize",1048576)("maxFile",8)("multiple",!0)("showPreview",!0)("fileMultiple",o.img))},dependencies:[ne,ie,X,K,Q,ee,te,Z,Y,ae,se,le,re,O],styles:[".p-inputgroup[_ngcontent-%COMP%]{flex-direction:column}.field[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{height:150px}[_nghost-%COMP%]   .informations[_ngcontent-%COMP%]{display:flex;align-items:start;justify-content:space-between}[_nghost-%COMP%]   .informations[_ngcontent-%COMP%]   .errors-container[_ngcontent-%COMP%]{flex:1}
1[_nghost-%COMP%]   .informations[_ngcontent-%COMP%]   .invalid[_ngcontent-%COMP%]{color:var(--fp-danger-500)}[_nghost-%COMP%]   .informations[_ngcontent-%COMP%]   .characterCount[_ngcontent-%COMP%]:not(.invalid){color:var(--fp-success-500)}@media only screen and (max-width:1200px){  .affichageImage{grid-template-columns:repeat(3,1fr)!important}}@media only screen and (max-width:879px){  .affichageImage{grid-template-columns:repeat(2,1fr)!important}}"]});let t=n;return t})();function _e(t,n){if(t&1){let r=L();a(0,"fp-button",3),h("click",function(){k(r);let i=p(2);return V(i.demandeResiliation())}),l()}if(t&2){let r=p(2);u("uppercase",!1)("label",r.isMobile?"R\xE9silier":"R\xE9silier mon forfait")("outline",!0)}}function be(t,n){if(t&1){let r=L();a(0,"a",4),h("click",function(){k(r);let i=p(2);return V(i.demandeResiliation())}),f(1,"R\xE9silier mon forfait"),l()}}function Se(t,n){t&1&&(a(0,"span",2),f(1,"Votre demande de r\xE9siliation est en cours de traitement"),l())}function Me(t,n){if(t&1&&(c(0,_e,1,3,"fp-button",0),c(1,be,2,0,"a",1),c(2,Se,2,0,"span",2)),t&2){let r=p();d(!r.demandeEnCours&&!r.isMinimaliste?0:-1),s(),d(r.isMinimaliste?1:-1),s(),d(r.demandeEnCours?2:-1)}}var We=(()=>{let n=class n{constructor(e,i,o,g,C){this.isMobile=!1,this.isMinimaliste=!1,this.demandeEnCours=!1,this.destroy$=new S,this.dialogService=e,this.toastService=o,this.confirmationService=i,this.sessionService=g,this.utilisateurStore=C}ngOnInit(){this.checkDemandeEnCours()}ngOnDestroy(){this.destroy$.next(null),this.destroy$.complete()}demandeResiliation(){this.openEncart()}openEncart(){this.dialogService.open(me,{width:"50vw",closable:!1,modal:!0,focusOnShow:!1,data:{imageSrc:"/assets/images/icons/resilier.png",headerTitle:"R\xE9siliation de l'abonnement",codeEncart:"resiliation_modale",displayConditionalFooter:!0}})?.onClose.subscribe(i=>{i&&setTimeout(()=>this.openConfirmation(),200)})}openConfirmation(){this.dialogService.open(ce,{width:"50vw",closable:!1,modal:!0,focusOnShow:!1})?.onClose.subscribe(i=>{i==="ok"&&(this.sessionService.refreshData(),this.toastService.add({severity:"success",summary:"R\xE9siliation prise en compte",detail:"Votre abonnement ne sera pas renouvel\xE9 automatiquement"}))})}checkDemandeEnCours(){this.utilisateurStore.getObservableDemandeResiliation().pipe(_(this.destroy$)).subscribe({next:e=>{this.demandeEnCours=e!==null}})}};n.\u0275fac=function(i){return new(i||n)(m(D),m(x),m(w),m(J),m(H))},n.\u0275cmp=M({type:n,selectors:[["fp-demande-resiliation"]],inputs:{isMobile:"isMobile",isMinimaliste:"isMinimaliste"},features:[R([x,D])],decls:1,vars:1,consts:[["paddingLargeur","25","paddingHauteur","10","borderRadius","7","color","red","iconPos","right","icon","pi pi-times",3,"uppercase","label","outline"],[1,"link-resilier"],[1,"lien","lien-resiliation-utiliser"],["paddingLargeur","25","paddingHauteur","10","borderRadius","7","color","red","iconPos","right","icon","pi pi-times",3,"click","uppercase","label","outline"],[1,"link-resilier",3,"click"]],template:function(i,o){i&1&&c(0,Me,3,3),i&2&&d(o.utilisateurStore.abonnement!=null&&o.utilisateurStore.abonnement.recurrence_active&&(o.utilisateurStore.blocage===null||o.utilisateurStore.blocage.id===0)?0:-1)},dependencies:[O],styles:[".lien-resiliation[_ngcontent-%COMP%]{color:var(--fp-danger-500);transition-duration:.2s}.lien-resiliation[_ngcontent-%COMP%]:hover{color:var(--fp-danger-600)}.lien-resiliation-utiliser[_ngcontent-%COMP%]{color:var(--fp-text-muted);transition-duration:.2s}.lien[_ngcontent-%COMP%]{font-size:13px}.link-resilier[_ngcontent-%COMP%]{color:var(--fp-danger-500);transition-duration:.2s}"]});let t=n;return t})();export{We as 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.