PageSourceSearch

https://connect.cesoirtv.com/assets/scripts/designSystem_form_Inpu…ks_useRestricte-081767.998ce31a.0ef15b04.js

js cesoirtv.com collected 2026-10-02 07:14:45 UTC 9,708 bytes, 68 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["designSystem_form_InputField_index_js-designSystem_form_TextField_index_js-hooks_useRestricte-081767"],{169:(e,r,o)=>{o.d(r,{p:()=>t});const t=o(9503).Ay.div`
2	padding: var(--spacing-unit);
3	margin-bottom: calc(var(--spacing-unit) * 4);
4`},8201:(e,r,o)=>{o.d(r,{A:()=>f});var t=o(2540),a=o(3696),n=o(9503),s=o(169);const i=(0,n.Ay)(s.p)`
5	input {
6		width: 100%;
7		border: 1px solid var(--color-grey-1);
8		border-radius: var(--radius-card);
9		color: var(--color-grey-4);
10		padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
11		font: var(--small1-sh) ${({theme:e})=>e.mainFontFamily};
12
13		${({error:e})=>e&&n.AH`
14				border-color: var(--color-error);
15				color: var(--color-error);
16			`}
17	}
18
19	input:focus {
20		outline: none;
21		box-shadow: var(--shadow);
22	}
23
24	input::placeholder {
25		color: var(--color-grey-3);
26	}
27
28	.labelRow {
29		display: flex;
30		justify-content: space-between;
31		align-items: center;
32	}
33
34	.helperText {
35		margin-top: 0;
36		font: var(--small1-sh) ${({theme:e})=>e.mainFontFamily};
37		color: var(--color-grey-4);
38	}
39`;var l=o(2068),c=Object.defineProperty,m=Object.defineProperties,d=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,r,o)=>r in e?c(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,v=(e,r)=>{for(var o in r||(r={}))p.call(r,o)&&g(e,o,r[o]);if(u)for(var o of u(r))h.call(r,o)&&g(e,o,r[o]);return e};const b=a.lazy((()=>o.e("designSystem_form_FieldError_index_js").then(o.bind(o,7211)))),f=({input:e={},meta:r={},label:o,labelHelper:n,placeHolder:s,helperText:c})=>{const{error:u,submitError:p,dirty:h}=r;return(0,t.jsxs)(i,{error:!(!u&&!p||!h),children:[o&&(n?(0,t.jsxs)("div",{className:"labelRow",children:[(0,t.jsx)(l.P,{as:"label",htmlFor:e.name,children:o}),n]}):(0,t.jsx)(l.P,{as:"label",htmlFor:e.name,children:o})),(0,t.jsx)("input",(g=v({id:e.name},e),f={placeholder:s},m(g,d(f)))),c&&(0,t.jsx)("span",{className:"helperText",children:c}),(u&&h||p)&&(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(b,{msg:u||p})})]});var g,f}},8806:(e,r,o)=>{o.d(r,{A:()=>f});var t=o(2540),a=o(3696),n=o(9503),s=o(169);const i=(0,n.Ay)(s.p)`
40	textarea {
41		width: 100%;
42		border: 1px solid var(--color-grey-1);
43		border-radius: var(--radius-card);
44		color: var(--color-grey-4);
45		padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
46		font: var(--small1-sh) ${({theme:e})=>e.mainFontFamily};
47
48		${({error:e})=>e&&n.AH`
49				border-color: var(--color-error);
50				color: var(--color-error);
51			`}
52	}
53
54	input:focus {
55		outline: none;
56		box-shadow: var(--shadow);
57	}
58
59	input::placeholder {
60		color: var(--color-grey-3);
61	}
62`;var l=o(2068),c=Object.defineProperty,m=Object.defineProperties,d=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,r,o)=>r in e?c(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,v=(e,r)=>{for(var o in r||(r={}))p.call(r,o)&&g(e,o,r[o]);if(u)for(var o of u(r))h.call(r,o)&&g(e,o,r[o]);return e};const b=a.lazy((()=>o.e("designSystem_form_FieldError_index_js").then(o.bind(o,7211)))),f=({input:e={},type:r,meta:o={},label:n,placeHolder:s,helperText:c,rows:u,maxlength:p})=>{const{error:h,submitError:g,dirty:f,dirtySinceLastSubmit:y}=o;return(0,t.jsxs)(i,{error:!(!h&&!g||!f),children:[n&&(0,t.jsx)(l.P,{as:"label",htmlFor:e.name,children:n}),(0,t.jsx)("textarea",(_=v({id:e.name},e),w={type:r,placeholder:s,rows:u||3,maxLength:p},m(_,d(w)))),c&&(0,t.jsx)("span",{className:"helperText",children:c}),(h||g)&&f&&!y&&(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(b,{msg:h||g})})]});var _,w}},2068:(e,r,o)=>{o.d(r,{P:()=>t});const t=o(9503).Ay.div`
63	color: var(--color-grey-4);
64	display: block;
65	font: var(--body2-sh) ${({theme:e})=>e.mainFontFamily};
66	margin-bottom: var(--spacing-unit);
67`},5107:(e,r,o)=>{o.d(r,{p:()=>i});var t=o(3696),a=o(7435),n=o(2697),s=o(9208);function i(){var e,r,o;const{pathname:i}=(0,a.zy)(),{loading:l,error:c,data:m}=(0,n.IT)(s.TH,{fetchPolicy:"network-only"});return(0,t.useEffect)((()=>{var e,r,o,t,a,n;l||(c||(null==(o=null==(r=null==(e=null==m?void 0:m.me)?void 0:e.connection)?void 0:r.roles)?void 0:o.length)&&(null==(n=null==(a=null==(t=null==m?void 0:m.me)?void 0:t.connection)?void 0:a.roles)?void 0:n.includes("ALIVE")))&&(window.location.href="/?redirectTo="+i)}),[l,c,m,i]),!l&&!c&&!(null==(o=null==(r=null==(e=null==m?void 0:m.me)?void 0:e.connection)?void 0:r.roles)?void 0:o.includes("ALIVE"))}},2494:(e,r,o)=>{o.d(r,{sg:()=>x,_5:()=>u,gx:()=>l,$m:()=>g,B9:()=>c,uV:()=>h,Nt:()=>d,MC:()=>i});var t=o(9047),a=o(654);const n=JSON.parse('{"G":["charonne.cassidy","(|.*[-_.])abuse(|[-_.].*)","(|.*[-_.])admins?(|[-_.].*)","(|.*[-_.])contacts?(|[-_.].*)","(|.*[-_.])host(s|master?)?(|[-_.].*)","(|.*[-_.])infos?(|[-_.].*)","(|.*[-_.])ipadmin(|[-_.].*)","(|.*[-_.])noc(|[-_.].*)","(|.*[-_.])postmaster(|[-_.].*)","(|.*[-_.])pourriel(|[-_.].*)","(|.*[-_.])roots?(|[-_.].*)","(|.*[-_.])security(|[-_.].*)","(|.*[-_.])spam(|[-_.].*)","(|.*[-_.])tech(|[-_.].*)","(|.*[-_.])webmasters?(|[-_.].*)","(|.*[-_.])maddox(|[-_.].*)","(|.*[-_.])nexus(|[-_.].*)","(|.*[-_.])test(|[-_.].*)"],"C":["agora\\\\.bungi\\\\.com","amen\\\\.fr","bungi\\\\.com","emailvision\\\\.com","france-strategies\\\\.com","gandi\\\\.net","illiad\\\\.fr","justice\\\\.fr","koszmail\\\\.pl","node\\\\.com","operamail\\\\.com","ovh\\\\.net","proxad\\\\.net","s
67dgsd\\\\.com","tim\\\\.it","tiscali\\\\.fr","totalcommunications\\\\.com","wrwer\\\\.com","anacode\\\\.com","ambassade-\\\\+","caramail\\\\..+","fre\\\\..+","freee\\\\..+","gmai\\\\..+","gmaill\\\\..+","hotmai\\\\..+","hotmaill\\\\..+","lycos.+","spamgourmet\\\\.+","tele2\\\\.+","test\\\\.+","voila\\\\..+","yaho\\\\..+","yahooo\\\\..+","yopmail.+",".+\\\\.bg",".+\\\\.cn",".+\\\\.coom",".+\\\\.f",".+\\\\.ffr",".+\\\\.frr",".+\\\\.r",".+\\\\.ru",".+\\\\.th",".+otherinbox.com","dgccrf","signal-spam"]}');new a.A;class s{constructor(){this.patterns={isEmail:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/,isDate:/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/},this.errMan=new t.A,this.minAge=18}isValid(e,r){const o=this.patterns[r]?this.patterns[r]:r;return new RegExp(o).test(e)}isRealDate(e){if("string"!=typeof e)return this.errMan.cast("TypeError","Not a string"),!1;const r=e.match(this.patterns.isDate);if(!r)return this.errMan.cast("TypeError","Not a valid date pattern"),!1;const o=new Date(parseInt(r[3],10),parseInt(r[2],10)-1,parseInt(r[1],10));return e===o.getDate().toString().padStart(2,"0")+"/"+(o.getMonth()+1).toString().padStart(2,"0")+"/"+o.getFullYear()}isOldEnough(e){if(!this.isRealDate(e))return!1;const r=e.match(this.patterns.isDate),o=new Date(parseInt(r[3],10),parseInt(r[2],10)-1,parseInt(r[1],10));let t=new Date;return t=t.setFullYear(t.getFullYear()-this.minAge),o<=t}}const i=(e,r=!0,o=!0)=>{const t=new s,a={};o&&!t.isValid(e.checkEmail,"isEmail")&&(a.checkEmail="common.errors.notValidEmail"),o&&!e.checkEmail&&(a.checkEmail="common.errors.required");const n=e.password?p({password:e.password,passwordConfirm:e.passwordCheck,minChar:10}):[];return e.passwordCheck!==e.password&&(a.passwordCheck="common.errors.password"),n.some((e=>!e.checked))&&(a.password=n),!e.cgu&&r&&(a.cgu="common.errors.required"),a},l=e=>{if(!e)return"common.errors.required"},c=e=>{const r=new RegExp("(?!.*\\b("+n.G.join("|")+")\\b.*)^([a-zA-Z0-9.!#$%&'*+=?^_`{|}~-]+)"),o=new RegExp("@(?!.*\\b("+n.C.join("|")+")\\b.*)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))?(?:\\.([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*$");if(!e)return;const[t,a]=e.split("@");return/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/.test(e)?r.test(t)&&o.test("@"+a)?void 0:"common.errors.unauthorizedEmail":"common.errors.notValidEmail"},m=e=>{const r="common.errors.invalidDate";if(!e||e===e.getTime)return;const o=e.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);if(!o)return r;const t=new Date(o[3],o[2]-1,o[1]);return e!==[`${t.getDate()}`.padStart(2,"0"),`${t.getMonth()+1}`.padStart(2,"0"),t.getFullYear()].join("/")?r:void 0},d=e=>e&&-1!==e.indexOf("@")?"common.errors.notValidPseudo":e?void 0:"common.errors.required",u=e=>{if(!e||m(e))return m(e);const r=e.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/),o=new Date(r[3],r[2]-1,r[1]);return((new Date).getTime()-o.getTime())/31536e6<18?"common.errors.mustBeEighteen":void 0},p=e=>{const{password:r,minChar:o}=e;return[{label:"common.errors.minChar",checked:v(o)(r)},{label:"common.errors.minNumber",checked:b(r)},{label:"common.errors.minLowerCase",checked:f(r)},{label:"common.errors.minMaj",checked:y(r)},{label:"common.errors.minSpecial",checked:_(r)}]},h=e=>{if(!e)return;return/^[A-Za-zÀ-ÖØ-öø-ÿ\u00c0-\u024f\u1e00-\u1eff\-'’\s]+$/g.test(e)?void 0:"common.errors.notValidName"},g=e=>{if(!e)return;return/^[0-9A-Za-zÀ-ÖØ-öø-ÿ\u00c0-\u024f\u1e00-\u1eff\-'’\s]+$/g.test(e)?void 0:"common.errors.notValidAddress"},v=e=>r=>r.length>=e,b=e=>Boolean(e.match(/\d+/)),f=e=>Boolean(e.match(/[a-z]+/)),y=e=>Boolean(e.match(/[A-Z]+/)),_=e=>Boolean(e.match(/[^a-zA-Z0-9 ]+/g));let w;const x=(...e)=>r=>{return o=void 0,t=null,a=function*(){return new Promise((o=>{w&&w();const t=setTimeout((()=>{const t=((...e)=>r=>e.reduce(((e,o)=>e||o(r)),void 0))(...e)(r);o(t)}),1e3);w=()=>{clearTimeout(t),o()}}))},new Promise(((e,r)=>{var n=e=>{try{i(a.next(e))}catch(e){r(e)}},s=e=>{try{i(a.throw(e))}catch(e){r(e)}},i=r=>r.done?e(r.value):Promise.resolve(r.value).then(n,s);i((a=a.apply(o,t)).next())}));var o,t,a}}}]);
68//# sourceMappingURL=designSystem_form_InputField_index_js-designSystem_form_TextField_index_js-hooks_useRestricte-081767.998ce31a.0ef15b04.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.