1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["containers_connectedHome_index_js"],{2590:(e,t,i)=>{i.r(t),i.d(t,{default:()=>M});var n=i(2540),a=i(3696),r=i(7435),s=i(9348),o=i(9263),l=i(9202);function c({title:e,hash:t,description:i,icon:a,type:s,url:o}){const c=(0,r.Zp)();return(0,n.jsx)(l.D,{href:o||`#${t}`,icon:a,title:e,description:i,handleClick:function(e){e.preventDefault(),o&&0===o.indexOf("http")?window.location.assign(o):c(o||`#${t}`)}})}var d=i(8710),u=i(2986),p=i(4953),g=i(2697),m=i(2642),f=i(9208),v=i(1815);const b=i(9503).Ay.div` 2 width: 100%; 3 display: flex; 4 flex-direction: column; 5 flex: 1 0 auto; 6 7 .menuContainer { 8 display: flex; 9 flex-direction: column; 10 flex: 0 0 auto; 11 width: 100%; 12 margin: 0 0 calc(var(--spacing-unit) * 12) 0; 13 14 @media (max-width: 680px) { 15 > a { 16 margin: 6px 12px; 17 } 18 } 19 } 20 21 .footerLink { 22 margin-top: auto; 23 text-align: center; 24 25 a { 26 display: inline-block; 27 color: var(--color-grey-4); 28 padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 6) 29 calc(var(--spacing-unit) * 3); 30 } 31 } 32 33 @media (min-width: 680px) { 34 display: flex; 35 max-width: 680px; 36 flex-direction: column; 37 align-items: center; 38 39 margin: 0 auto; 40 41 .menuContainer { 42 display: grid; 43 grid-template-columns: 1fr 1fr; 44 grid-auto-rows: auto; 45 grid-auto-flow: row; 46 margin: 0 0 calc(var(--spacing-unit) * 12) 0; 47 gap: calc(var(--spacing-unit) * 6); 48 div { 49 cursor: pointer; 50 } 51 } 52 > div > .footerLink { 53 grid-column: 1 / 3; 54 display: flex; 55 flex-direction: column-reverse; 56 } 57 } 58`;var h=Object.defineProperty,y=Object.defineProperties,w=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,j=(e,t,i)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,N=(e,t)=>{for(var i in t||(t={}))k.call(t,i)&&j(e,i,t[i]);if(x)for(var i of x(t))C.call(t,i)&&j(e,i,t[i]);return e};const L=a.lazy((()=>i.e("designSystem_cards_News_index_js").then(i.bind(i,7881)))),M=(0,u.Ay)((()=>{var e,t,i,l,u,h,x,k,C,j,M,A,S,_,P;const I=(0,d.A)(),{formatMessage:z}=I,F=(0,r.zy)(),O=F.hash.substring(1),D=new URLSearchParams(F.search).get("flag"),{data:E}=(0,g.IT)(f.uD),T=null==E?void 0:E.config,R=(null==T?void 0:T.menu)||null,W=null==(e=null==T?void 0:T.config)?void 0:e.mail_alert,Y=(null==(i=null==(t=null==T?void 0:T.config)?void 0:t.subscriptions)?void 0:i.selectedFilter)||(null==(l=null==T?void 0:T.config.subscriptions)?void 0:l.filters)||["follow","follow:tag"],{data:q}=(0,g.IT)(f.sn,{variables:{status:!0,types:Y},fetchPolicy:"network-only",errorPolicy:"all"}),B=(null==(u=null==q?void 0:q.me)?void 0:u.newsletters.filter((e=>"nl"===e.type)))||void 0,{complete:G,data:U}=(0,m.I)({fragment:f.DG,fragmentName:"FragmentConsentStatus",from:{__typename:"Newsletter",id:W}}),{enablePushMail:$,alertActivated:H}=(0,v.b)({config:T.config});let K;R&&(K=O?R.map((e=>e.hash===O?e.items:null)).filter((e=>null!==e))[0]:R,K=K||R);const Q=window.location.hostname.endsWith("prismashop.fr"),V=(null==(x=null==(h=null==q?void 0:q.me)?void 0:h.paymentSubscriptions)?void 0:x.pastDue)||!1,Z=(null==(C=null==(k=null==q?void 0:q.me)?void 0:k.paymentSubscriptions)?void 0:C.paymentMethodExpiresSoon)||!1,J=G&&U&&U.status,X=!!T.config.mail_alert,ee=(null==(M=null==(j=T.config.customSuccessOnboarding)?void 0:j.promotedConsents)?void 0:M.length)>0,te=T.config.activateNotRead,ie=null==(S=null==(A=null==q?void 0:q.me)?void 0:A.bookmarks)?void 0:S.total,ne=null==(P=null==(_=null==q?void 0:q.me)?void 0:_.bookmarkContentsNotRead)?void 0:P.total;let ae=!1;const re={};return V&&!O?(ae="paymentFailedWarning",re.isWarning=!0,re.title=z({id:"news.paymentFailedWarning.title"}),re.description=z({id:"news.paymentFailedWarning.description"}),re.ctaLabel=z({id:"news.paymentFailedWarning.ctaLabel"}),re.cta=(0,p.Yu)(),re.ctaCategory=ae):Z&&!O?(ae="paymentMethodExpiresSoon",re.isWarning=!0,re.title=z({id:"news.paymentMethodExpirationSoon.title"}),re.description=z({id:"news.paymentMethodExpirationSoon.description"}),re.ctaLabel=z({id:"news.paymentMethodExpirationSoon.ctaLabel"}),re.cta=(0,p.Yu)(),re.ctaCategory=ae):Q&&D&&"import"===D&&!O?(ae="importPrismashop",re.isInfo=!0,re.title="Vous avez des abonnements sur Prismashop.fr ?",re.de
58scription="Importez vos abonnements Prismashop sur votre compte Connect pour les gérer et lire vos magazines !",re.ctaLabel="Importer mes abonnements",re.cta=(0,p.iy)(),re.ctaCategory=ae):X&&!J&&ie>0&&!H&&!O?(ae="alerting",re.isBell=!0,re.title=z({id:"news.alerting.title"}),re.description=z({id:"news.alerting.description"}),re.ctaLabel=z({id:"news.alerting.ctaLabel"}),re.cta=$,re.ctaCategory=ae):X&&te&&0===ie&&0===ne&&!O?(ae="defineYourInterest",re.isBell=!0,re.title=z({id:"news.defineYourInterest.title"}),re.description=z({id:"news.defineYourInterest.description"}),re.ctaLabel=z({id:"news.defineYourInterest.ctaLabel"}),re.cta=(0,p.x0)(),re.ctaCategory=ae):ee&&0===(null==B?void 0:B.length)&&!O?(ae="suggestNewsletters",re.isBell=!0,re.title=z({id:"news.suggestNewsletters.title"}),re.description=z({id:"news.suggestNewsletters.description"},{brandConnect:T.config.brand}),re.ctaLabel=z({id:"news.suggestNewsletters.ctaLabel"}),re.cta=(0,p.Ge)(),re.ctaCategory=ae):X&&te&&(J&&ie>0||0===ie)&&ne>0&&!O&&(ae="notReadArticles",re.isBell=!0,re.title=z({id:"news.notReadArticles.title"}),re.description=z({id:"news.notReadArticles.description"}),re.ctaLabel=z({id:"news.notReadArticles.ctaLabel"}),re.cta=(0,p.v1)(),re.ctaCategory=ae),(0,n.jsx)(o.Wt,{children:R&&(0,n.jsxs)(b,{children:[!!ae&&(0,n.jsx)(a.Suspense,{fallback:null,children:(0,n.jsx)(L,N({},re))}),(0,n.jsx)("div",{className:"menuContainer",children:K.map((e=>{return"footerLink"!==e.type?(0,a.createElement)(c,(t=N({},e),i={key:e.title},y(t,w(i)))):null;var t,i}))}),K.map((e=>"footerLink"===e.type?(0,n.jsx)("div",{className:"footerLink",children:(0,n.jsx)(s.N_,{to:e.url,children:e.title})},e.url):null))]})})}))},9202:(e,t,i)=>{i.d(t,{D:()=>u});var n=i(2540),a=(i(3696),i(9503));const r=i.p+"assets/icons/right-arrow-f41e6bfd601e10c889a682dd0768cea6.svg",s=a.Ay.a` 59 background: var(--color-white); 60 padding: 24px 12px; 61 display: flex; 62 align-items: center; 63 justify-content: start; 64 box-shadow: var(--shadow); 65 cursor: pointer; 66 border-radius: var(--radius-clickable-card); 67 text-decoration: none; 68 69 &:hover { 70 box-shadow: var(--shadow-hover); 71 } 72 73 &.rightArrow { 74 background-image: url(${r}); 75 background-repeat: no-repeat; 76 background-position: right calc(var(--spacing-unit) * 6) center; 77 background-size: 12px 12px; 78 padding-right: calc(var(--spacing-unit) * 10); 79 } 80 81 span { 82 display: flex; 83 flex-direction: column; 84 .titleMenu { 85 font-weight: var(--heading3-weight); 86 font-size: var(--heading3-size); 87 line-height: var(--heading3-line-height); 88 color: var(--color-darkgrey); 89 display: block; 90 margin-bottom: var(--spacing-unit); 91 } 92 .descriptionMenu { 93 display: block; 94 font-weight: var(---body-text-weight); 95 font-size: var(--body-text-size); 96 line-height: var(--body-text-line-height); 97 color: var(--color-darkgrey); 98 } 99 } 100 img { 101 width: 30px; 102 height: 30px; 103 margin-right: 16px; 104 } 105 106 @media (min-width: 680px) { 107 flex-direction: column; 108 align-items: flex-start; 109 justify-content: center; 110 padding: 20px 32px; 111 margin: 0; 112 span { 113 .titleMenu { 114 margin: 8px 0px; 115 } 116 } 117 } 118`,o=i.p+"assets/icons/cog-aef6ce79c3bc8526178d63324a4caef4.svg",l=i.p+"assets/icons/letter-0f90fc344bbc3885509b7fee81904228.svg",c=i.p+"assets/icons/star-dc2e5ecd1ce5e09241f673707c1f6390.svg",d=i.p+"assets/icons/question-ad4504cea396db054a22d0aef10c026b.svg",u=({icon:e,title:t,href:i,description:a,handleClick:r})=>{switch(e){case"user":e=o;break;case"letter":e=l;break;case"star":e=c;break;case"faq":e=d}return(0,n.jsxs)(s,{href:i,onClick:r,className:e?"":"rightArrow",children:[e&&(0,n.jsx)("img",{src:e,alt:""}),(0,n.jsxs)("span",{className:"containerTextCard",children:[(0,n.jsx)("span",{className:"titleMenu",children:t}),a&&(0,n.jsx)("span",{className:"descriptionMenu",children:a})]})]})}},1815:(e,t,i)=>{i.d(t,{b:()=>d});var n=i(3696),a=i(5022),r=i(5648),s=i(8710),o=i(4658),l=i(6796),c=i(9208);const d=({config:e})=>{var t;const i=(0,s.A)(),d=(0,a.wA)(),u=((null==(t=e.subscriptions)?void 0:t.filters)||["follow","follow:tag"]).filter((e=>"follow"!==e)),p=[],g=null==e?void 0:e.mail_alert;u.forEach((t=>{p.push({bookmarkType:t,brand:{key:{eq:e.trigram.toUpperCase()}},enable:!0,notificationType:"email"})}));const[m,{data:f,error:v}]=(0,o.n)(l.uj,{update:(e,{data:t})=>{var i;if("success"===(null==(i=null==t?void 0:t.newsletterSub)?void 0:i.status)){const t=g;e.writeFragment({id:e.identify({__typename:"Newsletter",id:t}),fragment:c.DG,fragmentName:"FragmentConsentStatus",data:{__typename:"Newsletter",id:t,status:!0,consent:g}})}},refetchQueries:[{query:c.sn,variables:{consents:[g]}}]}),[b,{data:h,error:y}]=(0,o.n)(l.z8);return(0,n.useEffect)((()=>{f&&h&&d((0,r.P0)({text:i.formatMessage({id:"sessions.edited"})})),(v||y)&&d((0,r.P0)({text:i.formatMessage({id:"common.errors.genericError"}),type:"error"}))}),[f,h,v,y,i,d]),{enablePushMail:()=>{m({variables:{subscribe:[g]}}),b({variables:{data:p,where:{brand:{key:{eq:e.trigram.toUpperCase()}}}},context:{apiName:"BMK"}})},alertSubscribed:f,errorAlertSubscribed:v,alertActivated:h,errorAlertActivated:y}}},2642:(e,t,i)=>{i.d(t,{I:()=>d});var n=i(4629),a=i(9295),r=i(1828),s=i(9093),o=i(1628),l=i(3495),c=i(4063);function d(e){return(0,l.Y)("useFragment",u,(0,s.m)(e.client))(e)}function u(e){var t,i,r,l=(0,s.m)(e.client).cache,d=e.from,u=(0,n.Tt)(e,["from"]),g=a.useMemo((function(){return"string"==typeof d?d:l.identify(d)}),[l,d]),m=(t=function(){return(0,n.Cl)((0,n.Cl)({},u),{from:g})},i=[u,g],(r=a.useRef()).current&&(0,c.L)(r.current.deps,i)||(r.current={value:t(),deps:i}),r.current.value),f=a.useMemo((function(){var e=m.fragment,t=m.fragmentName,i=m.from,a=m.optimistic,r=void 0===a||a;return{result:p(l.diff((0,n.Cl)((0,n.Cl)({},m),{returnPartialData:!0,id:i,query:l.getFragmentDoc(e,t),optimistic:r})))}}),[m,l]),v=a.useCallback((function(){return f.result}),[f]);return(0,o.r)(a.useCallback((function(e){var t=0,i=l.watchFragment(m).subscribe({next:function(i){(0,c.A)(i,f.result)||(f.result=i,clearTimeout(t),t=setTimeout(e))}});return function(){i.unsubscribe(),clearTimeout(t)}}),[l,m,f]),v,v)}function p(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,r.IM)(e.missing.map((function(e){return e.missing})))),t}}}]); 119//# sourceMappingURL=containers_connectedHome_index_js.f4ec97d1.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.