1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["containers_welcome_index_js"],{1052:(e,t,i)=>{i.d(t,{vM:()=>b});var s=i(2540),n=(i(3696),i(8710)),r=i(3049),l=i(202),a=i(5508),o=i(9503),c=i(9933);const d=(0,o.Ay)(c.Ai)` 2 min-height: 69px; 3 margin: 0 0 30px 0; 4`,g=(0,o.Ay)(c.EY)` 5 text-align: center; 6 font-weight: ${({bold:e,isPassPrismaTitle:t,theme:i})=>e||t?i.boldWeight?i.boldWeight:"bold":i.normalWeight?i.normalWeight:"normal"}; 7`,m=(0,o.Ay)(c.EY)` 8 min-height: 69px; 9 font-size: ${({small:e,isPassPrismaTitle:t})=>e&&!t?"13px":"15px"}; 10`,p=o.Ay.div` 11 min-width: 280px; 12 max-height: 132px; 13 background-color: #f7f9ff; 14 margin: 0 auto; 15 padding: 15px 15px 5px 15px; 16 overflow-y: scroll; 17 18 & ul { 19 list-style: none; 20 text-align: center; 21 padding: 0; 22 margin: 0; 23 24 & li { 25 color: #000; 26 font-size: 12px; 27 font-weight: ${e=>e.theme.boldWeight?e.theme.boldWeight:"600"}; 28 line-height: 18px; 29 margin-bottom: 11px; 30 } 31 } 32`;var u=Object.defineProperty,x=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,y=(e,t,i)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,v=(e,t)=>{for(var i in t||(t={}))h.call(t,i)&&y(e,i,t[i]);if(x)for(var i of x(t))f.call(t,i)&&y(e,i,t[i]);return e};function b(e){return(0,s.jsxs)(d,{children:[(0,s.jsx)(j,v({},e)),(0,s.jsx)(A,v({},e))]})}function j(e){return e.title?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T,v({},e)),(0,s.jsx)(_,v({},e)),(0,s.jsx)(O,v({},e))]}):null}const w=()=>{const e=new l.A,t=new a.A;return e.splitService(t.getSignupService())[4].match(/^RECIPE/gi)?"recipe":"article"};function _({title:e,isLoading:t,valuesTitle:i,alertName:l,removeDesc:a,isBmkTitle:o,isUrvTitle:c,isPassPrismaTitle:d,urvSaveTitle:m}){const p=(0,n.A)();if(t)return(0,s.jsx)("p",{children:(0,s.jsx)(r.A,{height:30})});if(o){const t="recipe"===w()?"Sauvegarder la recette":"Sauvegarder lâarticle";return(0,s.jsxs)(g,{as:"div",children:[(0,s.jsx)("p",{children:t}),(0,s.jsx)("strong",{children:p.formatMessage({id:e},i)})]})}return c?(0,s.jsxs)(g,{as:"div",children:[(0,s.jsx)("p",{children:m||"Donner mon avis"}),(0,s.jsx)("strong",{children:p.formatMessage({id:e},i)})]}):(0,s.jsx)(g,{bold:!!l||a,isPassPrismaTitle:d,dangerouslySetInnerHTML:{__html:`${p.formatMessage({id:e},i)}${l||""}`}})}function T({icon:e,isLoading:t}){return e?t?(0,s.jsx)("div",{style:{textAlign:"center"},children:(0,s.jsx)(r.A,{circle:!0,height:100,width:100})}):e:null}function A({removeDesc:e,description:t,smallDesc:i,values:l,isLoading:a,weakRole:o}){const c=(0,n.A)();return e||!t?null:a?(0,s.jsx)(r.A,{height:65,className:"welcome-description-loading"}):(o&&t&&t.indexOf(".login.strong")&&(t=t.replace(".login.strong",".login.weak")),(0,s.jsx)(m,{small:i,dangerouslySetInnerHTML:{__html:c.formatMessage({id:t},l)}}))}function O({list:e,isLoading:t}){return e?t?(0,s.jsx)("p",{children:(0,s.jsx)(r.A,{height:200})}):(0,s.jsx)(p,{children:(0,s.jsx)("ul",{children:e.map(((e,t)=>(0,s.jsx)("li",{children:e},t)))})}):null}},1579:(e,t,i)=>{i.r(t),i.d(t,{default:()=>_});var s=i(2540),n=i(3696),r=i(5022),l=i(2697),a=i(9208),o=i(9933),c=i(9053),d=i(7375),g=i(1052),m=i(8710),p=i(7435),u=i(5508),x=i(8612),h=i(9503);const f=(0,h.Ay)(o.Ai)` 33 min-height: 69px; 34 margin: 0 0 0 0; 35`,y=(0,h.Ay)(o.EY)` 36 margin-top: 24px; 37 text-align: center; 38 font-weight: ${e=>e.theme.boldWeight?e.theme.boldWeight:"600"}; 39`,v=(0,h.Ay)(o.EY)` 40 font-size: ${({small:e,isPassPrismaTitle:t})=>e&&!t?"13px":"15px"}; 41`,b=h.Ay.div` 42 min-width: 280px; 43 max-height: 227px; 44 background-color: #f7f9ff; 45 margin: 0 auto; 46 padding: ${({count:e})=>e>=5?"15px 10px 15px 15px":"15px 10px 4px 15px"}; 47 border: 1px solid #f1f2f2; 48 border-radius: 8px; 49 50 & ul { 51 list-style: none; 52 text-align: center; 53 padding: 0; 54 margin: 0; 55 text-align: left; 56 min-width: 280px; 57 max-height: 190px; 58 overflow-y: ${({count:e})=>e>5?"auto":"hidden"}; 59 60 & li { 61 color: #000; 62 font-size: 12px; 63 font-weight: ${({theme:e})=>e.boldWeight?e.boldWeight:"600"}; 64 line-height: 18px; 65 margin-bottom: 11px; 66 display: grid; 67 grid-template-columns: 76px 1fr; 68 grid-template-areas: 'image text'; 69 align-items: center; 70 71 & img { 72 width: 100%; 73 max-width: 64px; 74 height: auto; 75 margin: 0; 76 display: inline-block; 77 grid-area: image; 78 ${({theme:e})=>e.overridesRootVars&&e.overridesRootVars["--radius-clickable-card"]?"border-radius: 4px;":""} 79 } 80 81 & span { 82 grid-area: text; 83 } 84 } 85 } 86`,j=h.Ay.div` 87 text-align: center; 88 font-weight: ${({theme:e})=>e.boldWeight?e.boldWeight:"600"}; 89 90 & img { 91 border-radius: 4px; 92 width: 100%; 93 max-width: 100%; 94 height: auto; 95 margin: 0 auto 8px auto; 96 } 97`;new u.A;const w=({nls:e})=>{const t=(0,m.A)(),i=(0,p.zy)(),{loading:n,brandConsents:r}=(0,x.W)(),l=[];
97if(!n&&r){1===e.length&&"all"===e[0]&&(e=Object.keys(r).filter((e=>"nl"===r[e].type))),e.forEach((e=>{const t={key:e,title:r[e]?r[e].label:null,img:r[e].logo};r[e]&&l.push(t)}));const n=l.length,a="/success"===i.pathname,o=a?".success":"",c=n>1?t.formatMessage({id:`welcome.newsletters${o}.intro.multiple`}):t.formatMessage({id:`welcome.newsletters${o}.intro.single`}),d=n>1?t.formatMessage({id:`welcome.newsletters${o}.description.multiple`}):t.formatMessage({id:`welcome.newsletters${o}.description.single`});return(0,s.jsxs)(f,{children:[(0,s.jsxs)(y,{children:[c,"Â :"]}),l.length>1?(0,s.jsx)(b,{count:n,children:(0,s.jsx)("ul",{children:l.map((e=>(0,s.jsxs)("li",{children:[e.img?(0,s.jsx)("img",{src:e.img,alt:e.title}):null,(0,s.jsx)("span",{children:e.title})]},e.key)))})}):(0,s.jsxs)(j,{children:[l[0].img?(0,s.jsx)("img",{src:l[0].img,alt:l[0].title}):null,l[0].title]},l[0].key),(0,s.jsx)(v,{children:d}),a&&(0,s.jsx)(v,{children:t.formatMessage({id:"success.continueNavigation"})})]})}return null},_=({errorMessage:e,removeDesc:t,smallDesc:i})=>{const x=(0,m.A)(),h=(0,p.zy)(),f=(0,r.wA)(),{consents:y,welcome:v,queryVars:b,magazine:j,caller:_,user:T,lang:A}=(0,r.d4)((e=>({welcome:e.welcome,queryVars:e.queryVars,magazine:e.magazine.magazineCampaign,caller:e.caller,user:e.user,lang:e.intl.locale,consents:e.brand.consents.success})),r.bN),{data:{config:O}}=(0,l.IT)(a.uD),{journey:k,profile:S,roles:M}=T,{config:P,svg:$,serviceWelcome:W}=O;(0,n.useEffect)((()=>{if(!_.getProduct.error&&!_.getProduct.success&&!j.error){const e={};P.alert&&P.alert.welcomeTitleKeys.forEach((t=>{e[t]=`alerts.welcomeTitle.${t}`}));const t=P.alert?{welcomeTitleKeys:e,mailSentType:x.formatMessage({id:"alerts.mailSentType"}),type:x.formatMessage({id:`alerts.type.${P.alert.typeKeys[0]}`})}:null;f((0,d.HS)({consents:y,journey:k,queryVars:b,caller:_,trigram:P.trigram,alertConfig:t,magazine:j.success,profile:S,icons:$,currentRoute:h.pathname,serviceWelcome:W}))}}),[_,x,P.alert,P.trigram,y,f,k,h.pathname,j,S,b,W,$]);const z=P,N=b.incentives;let C="";Object.keys(N).length&&N.alert&&(C=`<br /><strong>${N.alert.label}</strong>`);const{home:E,cgu:D,success:L,error:R,isLoading:I}=v;let{icon:K,title:B,description:H,list:U}=E;switch(h.pathname){case"/success":({icon:K,title:B,description:H,list:U}=L);break;case"/cgu":({icon:K,title:B,description:H,list:U}=D)}(e||R&&-1===R.description.indexOf("%"))&&({icon:K,title:B,description:H}=R);const Y={},q={};if(Y.brandConnect="Prisma Connect"===z.title?z.title:z.brand,B&&(B.indexOf("nlSimple")>-1||B.indexOf("nlmagSimple")>-1||B.indexOf("coaching")>-1)&&y&&y[N.nl[0]]&&(q.newsletterName=y[N.nl[0]].title),H&&H.indexOf("alert")>-1&&z){const e=new u.A;Y.alertType=z.alert.typeKeys.length>1?x.formatMessage({id:`alerts.type.${e.getBmkType({url:b.redirectTo,isEncoded:!0})}`}):x.formatMessage({id:`alerts.type.${z.alert.typeKeys[0]}`})}const J="noIcon"===K?null:(e=>{if(b.incentives.mag&&"Campagne inexistante"!==j.error&&e)return(0,s.jsx)(o.mO,{txtAlign:"center",margin:"30px 0 20px 0",children:(0,s.jsx)(o.Yy,{children:(0,s.jsx)("img",{style:{maxHeight:"121px"},src:e})})});const t=e||$.errorIcon,i=t.includes(".scds.pmdstatic.net")?{maxHeight:"250px",marginBottom:"0px"}:{maxHeight:"80px",marginBottom:"0px",marginTop:"15px",maxWidth:"250px"};return(0,s.jsx)("img",{style:i,src:t})})(K);return B&&(B.indexOf("nlSimple")>-1||B.indexOf("nlMultiple")>-1)?(0,s.jsx)(w,{nls:N.nl,consents:y,config:P}):(0,s.jsx)(g.vM,{title:B,urvSaveTitle:z.hasUrv?x.formatMessage({id:"url.urv.welcomeSaveTitle"}):null,description:H,icon:J,list:U,isLoading:I,values:Y,valuesTitle:q,alertName:C,removeDesc:t,smallDesc:i,isBmkTitle:!!N.bmk,isPassPrismaTitle:N.order&&N.order.some((e=>["paywall","passprisma",c[A].production].includes(e))),isUrvTitle:!!N.urv,weakRole:M.length&&!M.includes("ADMIN")})}},8612:(e,t,i)=>{i.d(t,{W:()=>o,a:()=>a});var s=i(2697),n=i(9208);const r=(new(i(5508).A)).getTrigram(),l={cac:{includes:["cuisine_actuelle_"]},cam:{includes:["ca_minteresse_"]},cap:{includes:["capital_"]},ctm:{includes:["cote_maison_"]},ctv:{includes:["cesoirtv_"]},fac:{includes:["femme_actuelle_","serengo_"]},gen:{includes:["gentside_"]},frgsd:{includes:["gentside_"]},frgsg:{includes:["gamesider_"]},frgss:{includes:["uppercutmma_"]},geo:{includes:["geo_"]},hbr:{includes:["hbr_","harvard_business_review_"]},hbz:{includes:["harpers_bazaar"]},neo:{includes:["neon_"]}
97,omm:{includes:["ohmymag_"]},ptv:{includes:["tele_2_semaines_"]},tel:{includes:["tele_loisirs_"]},voi:{includes:["voici_"]}},a=e=>{let t=null;return t=Object.keys(e).filter((e=>l[r].includes.some((t=>e.indexOf(t)>-1)))).filter((e=>!l[r].excludes||l[r].excludes.some((t=>-1===e.indexOf(t))))).reduce(((t,i)=>Object.assign(t,{[i]:e[i]})),{}),t},o=()=>{const{data:e,loading:t}=(0,s.IT)(n.tX);let i=null;if(!t&&e){const{newsletterList:{consents:t}}=e;i=a(t,r)}return{loading:t,brandConsents:i}}},9053:e=>{e.exports=JSON.parse('{"fr":{"development":"prod_J2K77fpQ0TyN5P","recette":"prod_J2K77fpQ0TyN5P","production":"prod_J2f3Gk6x8FqqbC"},"en":{"development":"prod_OSg9R194KUNUcP","recette":"prod_OSg9R194KUNUcP","production":"prod_OSgJe55vZyJCoz"},"de":{"development":"prod_OSgMYZw0Bc0xuR","recette":"prod_OSgMYZw0Bc0xuR","production":"prod_OSgWjLHkNieeeB"}}')}}]); 98//# sourceMappingURL=containers_welcome_index_js.c9fcfa4f.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.