PageSourceSearch

https://connect.femmeactuelle.fr/assets/scripts/containers_auth_Signup_js.6c80a415.0ef15b04.js

js femmeactuelle.fr collected 2026-10-01 10:40:32 UTC 10,518 bytes, 53 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["containers_auth_Signup_js"],{9751:(e,t,r)=>{r.d(t,{R:()=>i});var n=r(6391);function i(e){return{type:n.SAVE_EMAIL_VALUE,email:e}}},7582:(e,t,r)=>{r.d(t,{C6:()=>s,VM:()=>c,YO:()=>o,dz:()=>l});r(9823);var n=r(1316),i=r(6391),a=r(9835);function s(){return e=>(e({type:i.CALL_ROUTE_GET_SUBSCRIPTIONS_LOADING}),(0,n.IT)({route:"/service/newsletter/subscriptions?expand=true",method:"GET"}).then((t=>{const r={};return t.data.forEach((e=>{r[e.consent]=e})),e(function(e,t){return{type:i.CALL_ROUTE_GET_SUBSCRIPTIONS_SUCCESS,subscriptions:e,userSubscriptions:t}}(r,t.data))})).catch((t=>{return e((r=(0,a.H)(t),{type:i.CALL_ROUTE_GET_SUBSCRIPTIONS_ERROR,error:r}));var r})))}function o(e){return{type:i.SET_PREVIOUS_JOURNEY,journey:e}}function l(){return{type:i.VISITED_LEGALS}}function c(){return{type:i.SET_PASSWORD_NOTIFICATION}}},9823:(e,t,r)=>{r.r(t),r.d(t,{defineRoles:()=>g,disconnectUser:()=>x,getProfileError:()=>y,isLoaded:()=>h,loadProfile:()=>p,loading:()=>f,setProfileSuccess:()=>b,updateProfile:()=>m,updateProfileError:()=>E,updateProfileSuccess:()=>v});var n=r(1316),i=r(2583),a=r(9208),s=r(1693),o=r(6391),l=r(5648),c=(e,t,r)=>new Promise(((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}));function u(){return e=>c(this,null,(function*(){e({type:o.API_PMC_ERROR_SHOW})}))}var d=r(9835);function p(){return e=>(e(f()),i.Ay.query({query:a.x6}).then((t=>{if(t.data.me){const r=(0,s.R5)("x-pmc-ping");if(r){const t=JSON.parse(r)._roles;if(e(g(t)),!t||!["ADMIN","ALIVE"].some((e=>t.includes(e))))return e(x(!0))}return t.data.me.passPrisma&&!0===t.data.me.passPrisma.isActive&&t.data.me.passPrisma.endAt&&t.data.me.passPrisma.endAt>Date.now()?(0,s.kA)({endsAt:t.data.me.passPrisma.endAt,paymentStatus:t.data.me.passPrisma.paymentStatus,status:t.data.me.passPrisma.isActive}):(0,s.xK)(),e(b(t.data.me))}return e(x())})).catch((t=>t.message&&["NetworkError when attempting to fetch resource.","Failed to fetch"].includes(t.message)?e(u()):e(y((0,d.H)(t))))).then((()=>e(h()))))}function m(e){return t=>(0,n.IT)({route:"/update-profile",body:e,method:"POST"}).then((({data:r})=>"ok"===r.message?(t(p()),t((0,l.P0)({text:"Vos modifications ont bien été enregistrées"})),t(v(e))):(t((0,l.P0)({text:r.message,type:"error"}
1)),t(E((0,d.H)(r.message)))))).catch((e=>(t((0,l.P0)({text:e.data.error.msg||"Une erreur est survenue",type:"error"})),t(E((0,d.H)(e))))))}function h(){return{type:o.APP_LOAD_SUCCESS}}function g(e){return{type:o.DEFINE_USER_ROLES,roles:e}}function x(e=!1){return{type:o.DISCONNECT_USER,isLogin:e}}function f(){return{type:o.LOADING_USER_PROFILE}}function b(e){return{type:o.SET_USER_PROFILE,profile:e}}function y(e){return{type:o.GET_PROFILE_ERROR,error:e}}function v(e){return{type:o.UPDATE_USER_PROFILE,profile:e}}function E(e){return{type:o.UPDATE_PROFILE_ERROR,error:e}}},5302:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(2540),i=(r(3696),r(8710));const a=r(9503).Ay.div`
2	margin-top: ${({mTop:e})=>e};
3	font-size: 12px;
4	text-align: ${({align:e})=>e||"center"};
5	line-height: 15px;
6	a {
7		color: inherit;
8	}
9`,s=({buttonText:e,cguTextVersion:t="cgu.acceptLabel",align:r="center",mTop:s="20px"})=>{const o=(0,i.A)(),{formatMessage:l}=o;return(0,n.jsx)(a,{align:r,children:o.formatMessage({id:t},{link1:(0,n.jsx)("a",{target:"_blank",href:l({id:"cgu.cguUrl"}),title:l({id:"common.newWindow"}),rel:"noreferrer",children:o.formatMessage({id:"cgu.cguLinkText"})}),link2:(0,n.jsx)("a",{target:"_blank",href:l({id:"cgu.charterUrl"}),title:l({id:"common.newWindow"}),rel:"noreferrer",children:o.formatMessage({id:"cgu.charterLinkText"})}),button:e?l({id:e}):null})})}},6168:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(2540),i=r(3696),a=r(9503);const s=a.Ay.div`
10	text-align: center;
11	width: 100%;
12	margin-bottom: 10px;
13
14	button {
15		cursor: pointer;
16		text-decoration: underline;
17	}
18`,o=a.Ay.div`
19	position: relative;
20	padding: 40px 0 0 0;
21	svg {
22		position: absolute;
23		top: ${e=>e.top||"15px"};
24		right: 15px;
25	}
26`;class l extends i.Component{constructor(e){super(e),this.state={enabled:!1},this.handleChange=this.handleChange.bind(this)}handleChange(){this.setState({enabled:!this.state.enabled})}content(){return this.state.enabled?(0,n.jsxs)(o,{top:this.props.top,children:[(0,n.jsx)("svg",{onClick:this.handleChange,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31.112 31.112",width:"12",height:"12",children:(0,n.jsx)("polygon",{points:"31.112,1.414 29.698,0 15.556,14.142 1.414,0 0,1.414 14.142,15.556 0,29.698 1.414,31.112 15.556,16.97 29.698,31.112 31.112,29.698 16.97,15.556"})}),this.props.children]}):(0,n.jsx)(s,{children:(0,n.jsx)("button",{onClick:this.handleChange,style:{fontSize:this.props.toggleTextSize||"16px"},children:this.props.toggleText})})}render(){return this.content()}}},724:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var n=r(2540),i=(r(3696),r(5022)),a=r(9348),s=r(4953),o=r(8710),l=r(9263),c=r(6168),u=r(5276),d=r(2494),p=r(5229),m=r(8098),h=r(7582),g=r(76),x=r(9751),f=r(7435),b=r(3198),y=r(9835),v=(e,t,r)=>new Promise(((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}));const E=({bigLabel:e})=>{const t=(0,f.Zp)(),r=(0,o.A)(),a=(0,i.wA)(),{initialValues:l}=(0,i.d4)((e=>({initialValues:e.prefill.email}))),c=e=>v(void 0,null,(function*(){return new Promise(((t,r)=>{a((0,x.R)(e.checkEmail)),a((0,g.Ro)({email:e.checkEmail})).then((e=>{e?e.error?r(e):t(e):r(new Error("no response from checkEmail"))})).catch((e=>{e.message?(0,b.D)("checkEmailForm[checkEmail]",e.message):(0,b.D)("checkEmailForm[checkEmail]",e),(0,y.H)(e),r(e)}))}))}));return(0,n.jsx)(u.lV,{initialValues:l,onSubmit:e=>v(void 0,null,(function*(){const r=yield(e=>c(e).then((e=>{e.response.available||(a((0,h.YO)("/signup")),t(s.iD()))})).catch((e=>((0,y.H)(e),e))))(e);if(r&&r.error)return{checkEmail:r.error}})),children:({handleSubmit:t,invalid:i,submitting:a,validating:s,dirtySinceLastSubmit:o})=>(0,n.jsx)("form",{onSubmit:t,id:"signupForm",children:(0,n.jsxs)("div",{children:[(0,n.jsx)(u.D0,{name:"checkEmail",component:p.P,type:"email",parse:e=>e.toLowerCase().trim(),bigLabel:e,validate:(0,d.sg)(d.gx,d.B9)}),(0,n.jsx)(m.j,{"data-sp":"signup-btn",margin:"10px auto",disabled:i&&!o||a||s,type:"submit",children:r.formatMessage({id:"signup.next"})})]})})})};var S=r(528),P=r(5302),_=r(4432),w=r(9503);w.Ay.div`
27	color: var(--color-grey-4);
28	margin-top: calc(var(--spacing-unit) * 2);
29	margin-bottom: calc(var(--spacing-unit) * 2);
30	font-size: 12px;
31	text-align: center;
32	line-height: 15px;
33	a {
34		color: inherit;
35	}
36	input[type='checkbox'] {
37		float: left;
38	}
39`;const A=w.Ay.div`
40	color: var(--color-grey-4);
41	margin-top: calc(var(--spacing-unit) * 2);
42	margin-bottom: calc(var(--spacing-unit) * 2);
43	font-size: 12px;
44	text-align: center;
45	line-height: 15px;
46	a {
47		color: inherit;
48	}
49	input[type='checkbox'] {
50		float: left;
51	}
52`;var j=Object.defineProperty,O=Object.defineProperties,T=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,C=(e,t,r)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))k.call(t,r)&&C(e,r,t[r]);if(R)for(var r of R(t))L.call(t,r)&&C(e,r,t[r]);return e};const U=({bigLabel:e})=>{const t=(0,o.A)(),r=(0,i.wA)(),{checkEmail:a,queryVars:s}=(0,i.d4)((e=>({queryVars:e.queryVars,checkEmail:e.caller.checkEmail.success.email})),i.bN);return(0,n.jsx)(u.lV,{onSubmit:e=>{return t=void 0,n=null,i=function*(){const t={};e.pixelConsent&&e.pixelConsent.length>0&&"string"==typeof e.pixelConsent[0]&&e.pixelConsent[0].length>
520?(t.analyticsPixelEnabled=!0,t.profilingPixelEnabled=!0):(t.analyticsPixelEnabled=!1,t.profilingPixelEnabled=!1);const n=yield r((0,g.$5)(I({email:a,password:e.password,queryVars:s},t)));if(n&&n.error)return(0,b.D)("signup[passwordSetter]",n.error),{[S.Ym]:{password:[{label:n.error,checked:!1}]}}},new Promise(((e,r)=>{var a=e=>{try{o(i.next(e))}catch(e){r(e)}},s=e=>{try{o(i.throw(e))}catch(e){r(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,s);o((i=i.apply(t,n)).next())}));var t,n,i},validate:e=>{return e.password?(0,d.MC)((t=I({},e),O(t,T({checkEmail:a}))),!1):{[S.Ym]:{password:[{label:"no password",checked:!1}]}};var t},initialValues:{pixelConsent:[]},id:"passwordSetter",children:({handleSubmit:r,pristine:i,invalid:a,submitting:s,submitSucceeded:o})=>(0,n.jsxs)("form",{onSubmit:r,id:"passwordSetter",children:[(0,n.jsx)(_.A,{bigLabel:e}),!i&&!a&&(0,n.jsx)(P.A,{buttonText:"signup.formSubmit"}),(0,n.jsxs)(A,{children:[(0,n.jsx)(u.D0,{component:"input",type:"checkbox",name:"pixelConsent",id:"pixelConsent",value:"accepted"})," ",(0,n.jsx)("label",{htmlFor:"pixelConsent",dangerouslySetInnerHTML:{__html:'Je consens à ce que Prisma Media analyse le taux d’ouverture des courriels pour mesurer et optimiser les performances des campagnes et me cibler dans d’autres contextes. Nous pourrons savoir si vous ouvrez les courriels, l’heure à laquelle vous le faites ainsi que des informations sur le terminal que vous utiliser. Pour en savoir plus sur ces traceurs, voir notre <a href="https://www.prismamedia.com/espace-confidentialite/" target="_blank" rel="nofollow">politique de confidentialité</a>.'}})]}),(0,n.jsx)(m.j,{margin:"10px auto",disabled:i||a||s||o,type:"submit",children:t.formatMessage({id:"signup.formSubmit"})})]})})};var M=r(9933);const D=()=>{const e=(0,o.A)(),{currentMail:t}=(0,i.d4)((e=>({currentMail:e.caller.checkEmail.success})),i.bN);return(0,n.jsxs)(l.Nj,{children:[(0,n.jsxs)(M.mO,{maxWidth:"335px",margin:"0 auto",children:[(0,n.jsxs)(M.EY,{as:"h3",align:"center",children:[e.formatMessage({id:"signup.welcomeSignup"})," "]}),t?(0,n.jsx)(U,{bigLabel:!0}):(0,n.jsx)(E,{bigLabel:!0}),(0,n.jsx)(M.EY,{fontSize:"12px",margin:"0",padding:"20px 0 0 0",lineHeight:"2.4",align:"center",children:(0,n.jsx)(a.N_,{to:s.JL(),target:"_blank",style:{color:"inherit"},children:e.formatMessage({id:"common.faq"})})})]}),(0,n.jsx)(M.mO,{padding:"0",children:(0,n.jsx)(c.A,{toggleText:e.formatMessage({id:"legals.infoAboutDataTreatment"}),toggleTextSize:"12px",children:(0,n.jsx)(M.TI,{margin:"0",dangerouslySetInnerHTML:{__html:e.formatMessage({id:"legals.datatreatment"})}})})})]})}}}]);
53//# sourceMappingURL=containers_auth_Signup_js.6c80a415.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.