1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a1f01508-917e-41f9-8bfc-08eaf0f873b7",e._sentryDebugIdIdentifier="sentry-dbid-a1f01508-917e-41f9-8bfc-08eaf0f873b7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3205],{35520:(e,n,t)=>{"use strict";t.d(n,{A:()=>f});var r=t(37876),a=t(14232),i=t(66386),s=t(38860),l=t(63498),o=t.n(l),d=t(65656),c=t(71326),u=t(22993),m=t(76421);let f=()=>{let{control:e}=(0,i.xW)(),{getTermFormFieldName:n,isModuleDisabled:t,isNewsletterChecked:l,setIsNewsletterChecked:f,consentInfos:p,requiredConsentInfos:g,errorList:v,consentsChecked:h,consentToggle:x}=(0,s.q)();return t?null:((0,a.useEffect)(()=>()=>{p.forEach(e=>{h.includes(e.id)&&x(e.id)})},[p]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.K,{}),v&&(0,r.jsxs)(r.Fragment,{children:[v,(0,r.jsx)(d.K,{})]}),p.map(t=>{let a=(0,r.jsx)("div",{className:o().textWrapper,children:(0,r.jsx)(c.B,{content:t.text,format:"filtered_html"})}),s=n(t);return(0,r.jsxs)("div",{children:[t.optIn?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.xI,{name:s,control:e,render:({field:e,fieldState:{error:n,isTouched:i}})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.S,{...e,id:e.name,type:"checkbox",checked:h.includes(t.id),label:a,onClick:()=>{"NEWSLETTER"===t.type&&f(!l),x(t.id)},required:g.includes(t),error:!!n&&i,"data-test-id":"term-checkbox"}),n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.K,{}),(0,r.jsx)(m.W,{message:n.message})]}):null]})})}):a,(0,r.jsx)(d.K,{})]},t.id)})]}))}},38860:(e,n,t)=>{"use strict";t.d(n,{J:()=>C,q:()=>S});var r=t(37876),a=t(78248),i=t(64177),s=t(14232),l=t(77742),o=t(8733),d=t(62864),c=t(53248),u=t(24266),m=t.n(u),f=t(47562),p=t(10582),g=t(22924),v=t.n(g),h=t(43301),x=t.n(h),k=t(80841),y=t(35581);let b=(0,s.createContext)(null),C=({children:e})=>{let n=(0,l.A)(),{APP:t}=(0,y.WV)(),u=t.GDPR_CONSENT_FEATURE_ACTIVE,{user:g}=(0,s.useContext)(f.Rs),{locale:h}=(0,s.useContext)(p.B),{path:C}=(0,s.useContext)(p.f),[S,j]=(0,s.useState)(!u),[_,N]=(0,s.useState)({schema:{},initialValues:{}}),[E,G]=(0,s.useState)([]),[w,D]=(0,s.useState)([]),[T,I]=(0,s.use
1State)([]),[U,F]=(0,s.useState)(!1),q=null,[M,{data:P,error:A}]=(0,a._)(v(),{onCompleted:({getGdprConsentInfos:e})=>{e&&(z(e),G(e),j(!0))},fetchPolicy:"no-cache"});A&&(q=(0,r.jsx)(k.s,{alertStyle:"danger",type:"assertive",children:(0,r.jsx)(o.A,{id:"get_gdpr_consent_infos_error",defaultMessage:"Error getting GDPR consent informations."})})),P?.getGdprConsentInfos.errors?.length>0&&(q=(0,r.jsx)(c.k,{errors:P.getGdprConsentInfos.errors}));let[R,V]=(0,s.useState)([]),[W,{data:$,error:L}]=(0,a._)(x(),{fetchPolicy:"no-cache",onCompleted:({getGdprUserConsents:e})=>!e.errors?.length&&V(e)});L&&(q=(0,r.jsx)(k.s,{alertStyle:"danger",type:"assertive",children:(0,r.jsx)(o.A,{id:"get_gdpr_user_consents_error",defaultMessage:"Error getting user GDPR consents."})})),$?.getGdprUserConsents.errors?.length>0&&(q=(0,r.jsx)(c.k,{errors:$.getGdprUserConsents.errors}));let[O,{data:K,error:B}]=(0,i.n)(m());B&&(q=(0,r.jsx)(k.s,{alertStyle:"danger",type:"assertive",children:(0,r.jsx)(o.A,{id:"create_gdpr_user_consent_error",defaultMessage:"Error creating GDPR consent."})})),K?.createGdprUserConsent.errors?.length>0&&(q=(0,r.jsx)(c.k,{errors:K?.createGdprUserConsent.errors}));let z=e=>{let t={},r={};e.forEach(e=>
1{e.optIn&&("NEWSLETTER"!==e.type&&(t[J(e)]=d.bool().required(n.formatMessage({id:"terms_accept_error",defaultMessage:"Please accept the terms and conditions"})).oneOf([!0],n.formatMessage({id:"terms_accept_error",defaultMessage:"Please accept the terms and conditions"})),I(n=>[...n,e])),r[J(e)]=!1)}),N({schema:t,initialValues:r})},J=({id:e})=>`term-${e}`;return(0,r.jsx)(b.Provider,{value:{consentsValidation:_,errorList:q,consentInfos:E,requiredConsentInfos:T,gdprUserConsents:R,intl:n,isNewsletterChecked:U,consentsAvailable:S,isModuleDisabled:!u,createGdprUserConsent:e=>u&&w.forEach(n=>{O({variables:{mail:e??g?.email,infoId:n}})}),getTermFormFieldName:J,setIsNewsletterChecked:F,consentsChecked:w,consentToggle:e=>{w.includes(e)?D(w.filter(n=>n!==e)):D([...w,e])},queryGdprUserConsent:e=>u&&M({variables:{placement:e,language:h,path:C}}),queryGdprUserConsents:(e,n)=>W({variables:{mail:e,placement:n}})},children:e})},S=()=>(0,s.useContext)(b)},43301:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getGdprUserConsents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mail"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"placement"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GdprConsentPlacement"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getGdprUserConsents"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mail"},value:{kind:"Variable",name:{kind:"Name",value:"mail"}}},{kind:"Argument",name:{kind:"Name",value:"placement"},value:{kind:"Variable",name:{kind:"Name",value:"placement"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"infoId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"infoRevisionId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:191}};n.loc.source={body:"query getGdprUserConsents($mail: String!, $placement: GdprConsentPlacement!) {\n getGdprUserConsents(mail: $mail, placement: $placement) {\n id\n mail\n infoId\n infoRevisionId\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}n.definitions.forEach(function(e){if(e.name){var n=new Set;!function e(n,t){if("FragmentSpread"===n.kind)t.add(n.name.value);else if("VariableDefinition"===n.kind){var r=n.type;"NamedType"===r.kind&&t.add(r.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,t)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,t)}),n.definitions&&n.definitions.forEach(function(n){e(n,t)})}(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.getGdprUserConsents=function(e,n){var a={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var i=t[n]||new Set,s=new Set,l=new Set;for(i.forEach(function(e){l.add(e)});l.size>0;){var o=l;l=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(n){var t=r(e,n);t&&a.definitions.push(t)}),a}(n,"getGdprUserConsents")},58588:(e,n,t)=>{"use strict";t.d(n,{G:()=>s});var r=t(37876);t(14232);let a=e=>"currentColor"===e?"":`var(--color-${e})`,i=({title:e,theme:n=null,titleId:t="",...a})=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",xmlSpace:"preserve",width:"1em",height:"1em","aria-labelledby":t,...a,children:[e?(0,r.jsx)("title",{id:t,children:e}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M73 50c0-12.7-10.3-23-23-23S27 37.3 27 50m3.9 0c0-10.5 8.5-19.1 19.1-19.1S69.1 39.5 69.1 50",children:(0,r.jsx)("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indef
1inite"})})]}),s=({color:e="currentColor",title:n,fill:t,...s})=>(0,r.jsx)(i,{color:a(e),className:"currentColor"===e?"icon-current-color":"",..."currentColor"!==e?{style:{color:a(e),fill:a(e)}}:null,fill:t??a(e),title:n,...s})},63498:e=>{e.exports={textWrapper:"gdprCheckboxes_textWrapper__C9tql"}},89558:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var r=t(37876),a=t(14232),i=t(77742),s=t(38860),l=t(47562),o=t(3098),d=t(58588);let c=({consentPlacement:e,children:n})=>{let t=(0,i.A)(),{consentsAvailable:c,queryGdprUserConsent:u,queryGdprUserConsents:m}=(0,s.q)(),{user:f}=(0,a.useContext)(l.Rs);return(0,a.useEffect)(()=>{u(e),f?.email&&m(f.email,e)},[]),c?(0,r.jsx)(r.Fragment,{children:n}):(0,r.jsx)(o.q,{justifyContent:"center",children:(0,r.jsx)(d.G,{color:"primary",height:"140",width:"140",title:t.formatMessage({id:"loading_message",defaultMessage:"Loading"})})})}}}]); 2//# sourceMappingURL=3205-30ea3484569c6e00.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.