PageSourceSearch

https://www.pontsuryonne.fr/component---theme-gatsby-theme-blank-s…rmulairepaiement-js-35083464107797256815.js

js pontsuryonne.fr collected 2026-10-02 22:36:48 UTC 5,403 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([[941],{8200:function(e,t,n){n.r(t),n.d(t,{default:function(){return _}});var l=n(27378),r=n(59374),a=n(20030),i=n(42971),d=n(38272),o=n(22305),u=n(69467),c=n(11785);const m=e=>t=>{var n,l,r,a;let i,d;t.preventDefault();const o=document.getElementById("MEL").value,u=o.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i);if(!o||!u)return void alert("Veuillez entrer une adresse mail valide.");const c=document.getElementById("REFDET").value,m=document.getElementById("TYPEFORM").value,f=document.getElementById("MODESAISIE").value,s=null===(n=document.getElementById("ROLREC"))||void 0===n?void 0:n.value,E=null===(l=document.getElementById("ROLDEB"))||void 0===l?void 0:l.value,p=null===(r=document.getElementById("IDLIGNE"))||void 0===r?void 0:r.value,_=null===(a=document.getElementById("NUMORDRE"))||void 0===a?void 0:a.value;if(!c)return void alert("Veuillez entrer une référence de facture.");if(!/^\d+$/.test(c))return void alert("Veuillez entrer une référence de facture valide. La référence doit être un nombre");if("INDIGO"===m||"PESV2"===m){if(!(c.length<=8))return void alert("Veuillez entrer une référence de facture valide. 8 chiffres maximum");i=c.padStart(8,"0")}else if("ROLMRE"===m){if(!(c.length<=13))return void alert("Veuillez entrer une référence de facture valide. 13 chiffres maximum");i=c.padStart(13,"0")}
1const v=document.getElementById("EXER").value;if(!v||4!==v.length||"T"!==f&&Number(v)>(new Date).getFullYear())return void alert("Veuillez entrer une année valide.");let y=document.getElementById("MONTANT").value;if(!y||function(e){if(Math.floor(e)===e)return 0;const t=e.toString();return-1!==t.indexOf(".")&&-1!==t.indexOf("-")?t.split("-")[1]||0:-1!==t.indexOf(".")?t.split(".")[1].length||0:t.split("-")[1]||0}(y)>2||0==y)return void alert("Veuillez entrer un montant valide. Le montant doit être en euros et avec deux décimales maximum.");y=Math.round(100*parseFloat(y));const h=document.getElementById("NUMCLI").value.padStart(6,"0");"ROLMRE"===m?d=v+s+E+i:"PESV2"===m?d=v+i+p:"INDIGO"===m&&(d=v+i+_);const g="https://www.payfip.gouv.fr/tpa/paiement.web?exer="+v+"&refdet="+d+"&montant="+y+"&mel="+o+"&saisie="+f+"&numcli="+h+"&urlcl="+e.href+"-retour",O={host:window.location.origin,email:o,montant:y,ref:i,numcli:h,exer:v},I={method:"POST",cache:"no-cache",credentials:"omit",headers:{"Content-Type":"application/json"},body:JSON.stringify(O)};fetch("https://espacecitoyen.arnia-bfc.fr/payfip_submit_form",I).then((e=>(e.text().then((()=>(window.location.href=g,null))),e)))},f=e=>{let{formulairePaiement:t,colors:n}=e;return l.createElement("article",{className:d.eq},l.createElement(c.Dx,{textColor:n.a_color_gradients.a_dark,className:d.wX},t.title),t.body&&l.createElement(i.Z,{content:t.body.processed}))},s=e=>{let{formulairePaiement:t,location:n}=e;return l.createElement(l.Fragment,null,l.createElement("input",{type:"text",id:"MEL",title:"Mail",autoComplete:"email",placeholder:"Mail","aria-label":"Mail"}),l.createElement("input",{type:"text",maxLength:30,id:"REFDET",title:"Référence dette "+(t.field_description_de_la_referenc?"*":""),placeholder:"Référence dette "+(t.field_description_de_la_referenc?"*":""),"aria-label":"Référence dette "+(t.field_description_de_la_referenc?"*":"")}),t.field_description_de_la_referenc&&l.createElement("div",{className:d.NZ},l.createElement(i.Z,{content:t.field_description_de_la_referenc.processed})),l.createElement("input",{type:"number",maxLength:4,id:"EXER",title:"Année",placeholder:"Année","aria-label":"Année"}),l.createElement("input",{type:"number",step:"0.01",min:"0.01",max:"99999.99",id:"MONTANT",title:"Montant en euros",placeholder:"Montant en euros","aria-label":"Montant en euros"}),l.createElement("input",{type:"hidden",id:"NUMCLI",value:t.field_code_exercice,readOnly:!0}),"ROLMRE"===t.field_type_de_formulaire?l.createElement(l.Fragment,null,l.createElement("input",{type:"hidden",id:"ROLREC",value:t.field_rolrec,readOnly:!0}),l.createElement("input",{type:"hidden",id:"ROLDEB",value:t.field_roldeb,readOnly:!0})):"PESV2"===t.field_type_de_formulaire?l.createElement("input",{type:"hidden",id:"IDLIGNE",value:t.field_id_ligne,readOnly:!0}):"INDIGO"===t.field_type_de_formulaire?l.createElement("input",{type:"hidden",id:"NUMORDRE",value:t.field_num_ordre,readOnly:!0}):null,l.createElement("input",{type:"hidden",id:"MODESAISIE",value:t.field_mode_de_saisie,readOnly:!0}),l.createElement("input",{type:"hidden",id:"TYPEFORM",value:t.field_type_de_formulaire,readOnly:!0}),l.createElement("input",{type:"submit",value:"Valider","aria-label":"Valider",onClick:m(n)}))};var E=e=>{let{formulairePaiement:t,location:n}=e;const r=(0,o.H)().theme_settings.palette;return l.createElement("section",{className:d._z},l.createElement(u.Z,{delay:150},l.createElement(f,{colors:r,formulairePaiement:t}),l.createElement("p",null,"Tous les champs sont obligatoires"),l.createElement(s,{location:n,formulairePaiement:t})))},p=n(31014);var _=e=>{let{data:t,location:n}=e;const i=t.nodeFormulairePaiement;return l.createElement(r.Z,{isDetail:!0},l.createElement(a.Z,{title:i.title}),l.createElement(p.Z,{isListing:!0,pageName:i.title}),l.createElement(E,{location:n,formulairePaiement:i}))}}}]);
2//# sourceMappingURL=component---theme-gatsby-theme-blank-src-templates-details-formulairepaiement-js-35083464107797256815.js.map

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.