"use strict";(self.webpackChunkrealCookieBanner_=self.webpackChunkrealCookieBanner_||[]).push([[40],{407:(e,t,n)=>{n.d(t,{WebsiteBanner:()=>Je});var i=n(3386),o=n(9119),a=n(7177),r=n(833),s=n(2468),c=n(7418),l=n(1260),d=n(7643),u=n(1685),h=n.n(u),p=n(1476),m=n(1830),g=n(3929);const v=[Symbol("extendBannerContentStylesheet"),({boolIf:e,boolSwitch:t,boolOr:n,computed:i,boolNot:o,jsx:a,variable:r},{dimsOverlay:s,dimsHeader:c,dimsFooter:l,dimsRightSidebar:d,boolLargeOrMobile:u,isMobile:h,isBanner:p,design:m,bodyDesign:v,headerDesign:f,layout:b,decision:y,mobile:w,texts:x,activeAction:k,footerDesign:C,individualLayout:O,individualPrivacyOpen:D,footerBorderStyle:P,headerBorderStyle:S})=>{const A=i([f.logo,f.logoRetina,f.logoFitDim,f.logoRetinaFitDim,f.logoMaxHeight],([e,t,n,i,o])=>{const a=t&&!e?.endsWith(".svg")&&window.devicePixelRatio>1?i:n;return a?.[0]>0?{width:(0,g.dD)(a[0]),height:(0,g.dD)(a[1])}:{width:"auto",height:(0,g.dD)(o)}}),Y=e({when:p,then:{when:[D,o(O.inheritBannerMaxWidth)],then:O.bannerMaxWidth(),or:b.bannerMaxWidth()}}),I=u(f.borderWidth,e),[B]=a("div",{classNames:"header-container",position:"sticky",zIndex:9,top:0,background:e(f.inheritBg,m.bg(),f.bg()),padding:u(f.padding,e),paddingBottom:`calc(${I} + ${u(f.padding,e,2)})`,...S,pseudos:{":has(>div:empty)":{display:"none"},":has(>div:empty)+div":S,":after":{content:"''",display:"block",position:"absolute",left:"0px",right:"0px",bottom:"0px",background:f.borderColor(),height:I},">div":{transition:"width 500ms, max-width 500ms",maxWidth:Y,margin:"auto",display:"flex",alignItems:"center",position:"relative",textAlign:e(f.inheritTextAlign,m.textAlign("val"),f.textAlign("val")),justifyContent:e(f.inheritTextAlign,t([[m.textAlign("is-center"),"center"],[m.textAlign("is-right"),"flex-end"]]),t([[f.textAlign("is-center"),"center"],[f.textAlign("is-right"),"flex-end"]])),flexDirection:e({when:[f.logo("is-filled"),x.headline("is-filled")],then:t([[f.logoPosition("is-left"),"row"],[f.logoPosition("is-right"),"row-reverse"]],"column")})},">div>img":{margin:u(f.logoMargin,e),width:A.width(),height:A.height()}}}),N=t([[[k("is-filled"),y.showCloseIcon()],"51px"]],"0px"),E=s[1].height(),$=r(`calc(${E} - ${e(p,"0px","20px")} - ${N})`),T=r(`calc(100px + ${d[1].height()} + ${c[1].height()} + ${l[1].height()})`),[R]=a("div",{classNames:"content",position:"relative",overflow:"auto",maxHeight:e({when:h,then:{when:D,then:`calc(${E} - ${N})`,or:`calc(min(${E}, ${w.maxHeight()}) - ${N})`},or:{when:n([D,o(b.maxHeightEnabled)]),then:$(),or:`min(max(${b.maxHeight()}, ${T()}), ${$()})`}}),..."Win32"===navigator.platform?{overflow:CSS.supports("overflow","overlay")?"overlay":"scroll",scrollbarWidth:"thin",scrollbarColor:`${v.teachingsFontColor()} transparent`,pseudos:{"::-webkit-scrollbar":{width:"11px"},"::-webkit-scrollbar-track":{background:"transparent"},"::-webkit-scrollbar-thumb":{background:v.teachingsFontColor(),borderRadius:b.dialogBorderRadius(),border:`3px solid ${m.bg()}`}}}:{}}),L=u(C.borderWidth,e),[F]=a("div",{classNames:"footer-container",fontWeight:C.fontWeight(),color:C.fontColor(),position:"sticky",bottom:"0px",zIndex:1,padding:u(C.padding,e),paddingTop:`calc(${L} + ${u(C.padding,e,0)})`,background:e(C.inheritBg,m.bg(),C.bg()),fontSize:u(C.fontSize,e),textAlign:e(C.inheritTextAlign,m.textAlign("val"),C.textAlign()),...P,pseudos:{":after":{content:"''",display:"block",position:"absolute",left:"0px",right:"0px",top:"0px",background:C.borderColor(),height:L},">div":{transition:"width 500ms, max-width 500ms",maxWidth:Y,margin:"auto",lineHeight:"1.8"},":has(>div:empty)":{display:"none"}}});return{HeaderContainer:B,Content:R,FooterContainer:F}}];var f=n(549);const b=[Symbol("extendBannerBodyStylesheet"),({boolIf:e,boolNot:t,boolOr:n,boolSwitch:i,jsx:o,rule:a},{scaleVertical:r,dimsContent:s,dimsHeader:[,c],dimsFooter:[,l],activeAction:d,boolLargeOrMobile:u,bodyDesign:h,isBanner:p,isDialog:m,isMobile:g,isMobileWidth:v,layout:f,individualLayout:b,individualPrivacyOpen:y,design:w,footerBorderStyle:x})=>{const{fontColor:k}=w,{padding:C}=h,[,{scrollbar:O,scrolledBottom:D}]=s,P=n([p,y]),S="300px",A=e(p,S,`calc(${f.dialogMaxWidth()} - ${u(C,e,1)} - ${u(C,e,3)} - (${u(w.borderWidth,e)} * 2))`),Y=t(v),I=e(m,`${u(w.borderWidth,e)} solid ${w.borderColor()}`),[B]=o("div",{classNames:"body-container",background:w.bg(),lineHeight:1.4,paddingRight:u(h.padding,e,1),paddingLeft:u(h.padding,e,3),borderLeft:I,borderRight:I,pseudos:{":has(+div>div:empty)":x,">div":{transition:"width 500ms, max-width 500ms",margin:"auto",maxWidth:e({when:p,then:{when:[y,t(b.inheritBannerMaxWidth)],then:b.bannerMaxWidth(),or:f.bannerMaxWidth()}})},">div:after":{content:"''",display:"block",clear:"both"}}}),N=e(h.acceptAllOneRowLayout,"0 0 calc(50% - 5px)","1 1 100%"),E=e(h.acceptAllOneRowLayout,"5px"),$=new Array(4).fill(null).map((e,t)=>a({order:t})),[T]=o("div",{classNames:"tb-right",position:e(n([t(y),v]),"sticky"),margin:e({when:[Y,m,y,t(b.inheritDialogMaxWidth)],then:"0 0 10px 10px"}),background:w.bg(),maxWidth:"100%",width:e(Y,A,"auto"),float:e(Y,e({when:P,then:"right"})),paddingTop:e(v,"10px",e({when:P,then:u(C,e,0),or:"10px"})),paddingBottom:e(y,e(v,"5px","10px"),u(C,e,2)),zIndex:1,display:"flex",flexWrap:"wrap",transition:"box-shadow ease-in-out .1s",boxShadow:e({when:[O(),t(D)],then:`0 -15px 15px -15px rgba(${k("r")} ${k("g")} ${k("b")} / 30%)`}),bottom:e(t(y),l.height()),top:e(y,c.height()),pseudos:{">a":{marginBottom:e(g,`calc(10px * ${r()})`,"10px")},[`>${$[0][0]}`]:{flex:N,marginRight:E},[`>${$[1][0]}`]:{flex:N,marginLeft:E}}}),R=[Y,p,t(d["is-history"])],[L]=o("div",{classNames:"tb-left",float:e({when:R,then:"left"}),width:e({when:R,then:`calc(100% - ${S})`}),paddingRight:e({when:[p,Y],then:"20px"}),paddingTop:e(y,"10px",u(h.padding,e,0)),paddingBottom:e({when:[Y,t(y)],then:{when:n([p,y]),then:u(h.padding,e,2),or:"0px"},or:"10px"}),pseudos:{" img":{maxWidth:"100%",height:"auto"}}}),[F]=o("div",{position:"sticky",bottom:`calc(${l.height(!0,"0px")} - 1px)`,height:"0px",margin:"auto",transition:"box-shadow ease-in-out .1s",boxShadow:e({when:[O(),t(D)],then:`0 15px 15px 15px rgba(${w.fontColor("r")} ${w.fontColor("g")} ${w.fontColor("b")} / 20%)`}),display:i([[y,"block"],[[p,t(v)],"block"]],"none")});return{Container:B,RightSide:T,LeftSide:L,BeforeFooter:F,buttonOrderClasses:$}}];var y=n(802);function w(){const{individualPrivacyOpen:e,onSave:t,updateGroupChecked:n,updateCookieChecked:i,groups:a,activeAction:r,onClose:s,set:c}=(0,y.Y)(),l=e?"ind_all":"main_all",u=e?"ind_essential":"main_essential",h=e?"ind_close_icon":"main_close_icon",p=e?"ind_custom":"main_custom",m={buttonClickedAll:l,buttonClickedEssentials:u,buttonClickedCloseIcon:h,buttonClickedCustom:p,acceptAll:(0,o.hb)(async()=>{await(0,d.P)(),c(({updateGroupChecked:e})=>{a.forEach(t=>e(t.id,!0))}),await(0,d.P)(),t(!1,l)},[l]),acceptEssentials:(0,o.hb)((e=!1)=>{a.forEach(({isEssential:e,id:t,items:o})=>{if(e)n(t,!0);else for(const{legalBasis:e,id:n}of o)i(t,n,"legitimate-interest"===e)}),t(!1,!0===e?h:u)},[u]),acceptIndividual:(0,o.hb)(()=>t(!1,p),[p]),openIndividualPrivacy:(0,o.hb)(()=>c({individualPrivacyOpen:!0}),[c])};return{...m,closeIcon:(0,o.hb)(()=>{r?s():m.acceptEssentials(!0)},[r,s,m.acceptEssentials])}}var x=n(3260),k=n(5816);const C=({children:e,enabled:t})=>{if(!t)return(0,i.Y)(i.FK,{children:e});const n=[...e].sort(()=>Math.random()-.5);return(0,i.Y)(i.FK,{children:n})},O=()=>{const e=(0,y.Y)(),{isScreenReader:t,isConsentRecord:n,activeAction:a,bodyDesign:{acceptEssentialsUseAcceptAll:r,acceptAllOneRowLayout:s},decision:{showGroups:c,groupsFirstView:l,saveButton:d,acceptAll:u,acceptEssentials:h,buttonOrder:p},texts:{acceptAll:m,acceptEssentials:g,acceptIndividual:v},saveButton:{type:f,useAcceptAll:O},individualTexts:{save:D},individualPrivacyOpen:P,didGroupFirstChange:S,productionNotice:A,buttonClicked:Y="",fetchLazyLoadedDataForSecondView:I}=e,{a11yIds:{firstButton:B}}=(0,x.y)(),{buttonOrderClasses:N}=(0,x.y)().extend(...b),E=r&&u===h,$=O&&u===f,{all:T,essential:R,individual:L,save:F}=(0,o.Kr)(()=>{const e=p.split(","),t=e.reduce((t,n)=>(t[n]=e.indexOf(n),t),{}),n=e.reduce((t,n)=>(t[e.indexOf(n)]=n,t),{});return s&&(t[n[0]]=1,t[n[1]]=0),t},[p,s]),W=!1,{buttonClickedAll:M,buttonClickedEssentials:z,buttonClickedCustom:H,acceptAll:J,acceptEssentials:_,acceptIndividual:U,openIndividualPrivacy:V}=w(),G="change"===a&&!n,j=!P&&W,K=P||W,q=!P,Q=(0,o.li)();return(0,i.FD)(C,{enabled:!t,children:[j?(0,i.Y)(k.$,{onClick:U,busyOnClick:G,className:N[T][1],type:"acceptAll",framed:Y===H,id:B,children:D}):(0,i.Y)(k.$,{onClick:J,busyOnClick:G,className:N[T][1],type:"acceptAll",framed:Y===M,id:B,children:m}),(0,i.Y)(k.$,{onClick:()=>_(),busyOnClick:G,className:N[R][1],type:E?"acceptAll":"acceptEssentials",framed:Y===z,children:g}),K&&(0,i.Y)(k.$,{onClick:U,busyOnClick:G,className:N[F][1],type:$?"acceptAll":"save",framed:Y===H,children:D}),q&&(0,i.Y)(k.$,{onClick:V,onMouseEnter:()=>{I&&(Q.current=setTimeout(I,500))},onMouseLeave:()=>clearTimeout(Q.current),busyOnClick:G,className:N[L][1],type:"acceptIndividual",framed:Y.startsWith("ind_"),children:v}),A]})};var D=n(4294),P=n(9736),S=n(3128),A=n(4456),Y=n(4689),I=n(1509);n(1070);const B=({group:e})=>{const{name:t}=e,n=(0,y.Y)(),{decision:{groupsFirstView:a},design:{fontSize:r}}=n;return(0,I.C)(e),(0,i.Y)(o.FK,{children:(0,i.FD)("span",{children:[(0,i.Y)("i",{}),(0,i.Y)("span",{children:t})]})})},N=()=>{const{texts:{headline:e}}=(0,y.Y)(),{DottedGroupList:t,screenReaderOnlyClass:n}=(0,x.y)().extend(...Y.C),{groups:o,decision:{showGroups:a}}=(0,y.Y)();return a?(0,i.FD)(t,{children:[(0,i.Y)("legend",{className:n,children:e}),o.filter(({items:e})=>!!e.length).map(e=>(0,i.Y)(B,{group:e},e.id))]}):null},E=(0,c.g)(Promise.resolve(S.X),"BodyDescription"),$=(0,c.g)(Promise.all([n.e(886),n.e(4)]).then(n.bind(n,6835)).then(({BannerGroupList:e})=>e)),T=(0,c.g)(Promise.all([n.e(886),n.e(4)]).then(n.bind(n,9330)).then(({BannerHistorySelect:e})=>e)),R={margin:"20px 0 10px 0"};var L=n(991),F=n(4406),W=n(4504);const M=()=>{const{FooterLanguageSwitcherSelect:e}=(0,W.o)().extend(...F.h),{footerDesign:{languageSwitcher:t},languageSwitcher:n,onLanguageSwitch:a}=(0,y.Y)(),r=(0,o.Kr)(()=>n.find(({current:e})=>e),[n]),s="flags"===t&&!!r?.flag;return(0,i.FD)(e,{"data-flag":s,children:[s&&(0,i.Y)("span",{style:{backgroundImage:`url(${r.flag})`}}),(0,i.Y)("select",{value:r?.locale,"aria-label":r?.name,onChange:e=>{a?.(n.find(({locale:t})=>t===e.target.value))},children:n.map(({locale:e,name:t})=>(0,i.Y)("option",{value:e,children:t},e))})]})},z=(0,o.Rf)((e,t)=>{const{FooterContainer:n}=(0,x.y)().extend(...v),a=(0,y.Y)(),{isTcf:r,layout:{type:s},footerDesign:{languageSwitcher:c},individualPrivacyOpen:l,onClose:d,i18n:{tcf:u},isConsentRecord:h,languageSwitcher:p,set:m}=a,g=(0,o.hb)(e=>{d(),e.preventDefault()},[d]),{rows:f,render:b}=(0,L.D)({onClose:h?g:void 0,putPoweredByLinkInRow:"banner"===s?0:1,row1:[!1],row1End:[p?.length>0&&c&&"disabled"!==c&&(0,i.Y)(M,{},"languageSwitcher")]});return(0,i.Y)(n,{ref:t,children:(0,i.Y)("div",{children:b(f)})})});var H=n(2904);function J(e,t){const n=e.map(e=>(0,H.q)(e)),i=()=>n.map(([e])=>e.matches),[a,r]=(0,o.J0)(i);return(0,o.Nf)(()=>{if(t)return()=>{};const e=()=>r(i);return n.forEach(([,t])=>t(e)),()=>n.forEach(([,,t])=>t(e))},[t]),a}var _=n(3411),U=n(4541);const V=()=>{const{headerDesign:{fontColor:e,fontSize:t},texts:{acceptEssentials:n},activeAction:o,pageRequestUuid4:a,i18n:{close:r,closeWithoutSaving:s},buttonClicked:c=""}=(0,y.Y)(),{buttonClickedCloseIcon:l,closeIcon:d}=w(),[u]=J([`(max-width: ${_.X}px)`]);return(0,i.Y)(U.U,{width:t,color:e,tooltipText:o?"change"===o?s:r:n,tooltipAlways:u,framed:c===l,renderInContainer:document.getElementById(a)?.querySelector("dialog"),onClick:d})},G=(0,o.Rf)(({className:e},t)=>{const n=(0,x.y)(),{a11yIds:o,HeaderContainer:a,hasCloseIcon:r,HeaderTitle:s}=n.extend(...v).extend(...F.h),{headerDesign:{logo:c,logoRetina:l,logoAlt:d},decision:{showCloseIcon:u},texts:{headline:h},activeAction:p,individualPrivacyOpen:m,individualTexts:g,i18n:{headerTitlePrivacyPolicyHistory:f}}=(0,y.Y)(),b=l&&!c?.endsWith(".svg")&&window.devicePixelRatio>1?l:c,w=!!u||!!p,k=m?"history"===p?f:g.headline:h;return(0,i.Y)(a,{ref:t,className:e,children:(0,i.FD)("div",{children:[!!b&&(0,i.Y)("img",{"aria-hidden":!0,alt:d||"",src:b}),!!k&&(0,i.Y)(s,{id:o.headline,className:w?r:void 0,children:k}),w&&(0,i.Y)(V,{})]})})}),j=(0,c.g)(Promise.resolve(G),"BannerHeader"),K=(0,c.g)(Promise.resolve(({leftSideContainerRef:e,rightSideContainerRef:t})=>{const{a11yIds:n,Container:a,RightSide:r,LeftSide:s,BeforeFooter:c}=(0,x.y)().extend(...b),l=(0,y.Y)(),{tcf:d,isGcm:u,individualPrivacyOpen:h,activeAction:p,individualTexts:{postamble:m},i18n:{nonStandard:g,nonStandardDesc:v},groups:w,designVersion:k}=l,C=function(){const{groups:e}=(0,D.b)();let t=e.map(({items:e})=>[...e]).flat();return t}(),S=(0,P.bM)({services:C,disableListServicesNotice:k>9&&h}),Y=u&&(0,f.h)(C).length>0,I=(0,o.Kr)(()=>!1,[d,Y]),B=(0,i.FD)(s,{ref:e,children:[(0,i.Y)(E,{id:n.description,...w.length>0?S:{},children:"history"===p&&(0,i.Y)(T,{})}),w.length>0&&(0,i.FD)(o.FK,{children:[h?(0,i.FD)(o.FK,{children:[I&&(0,i.Y)(A.Y,{headline:g,style:R,borderless:!0,children:v}),(0,i.Y)($,{}),[!1,!1].filter(Boolean).sort(()=>k<10?1:-1)]}):(0,i.Y)(N,{}),!!m&&h&&(0,i.Y)(E,{teachings:[m],isPostamble:!0})]})]},"leftSide"),L="history"===p?(0,i.Y)("div",{ref:t}):(0,i.Y)(r,{ref:t,children:(0,i.Y)(O,{})},"rightSide");return(0,i.FD)(a,{children:[(0,i.Y)("div",{children:h?[L,B]:[B,L]}),(0,i.Y)(c,{})]})}),"BannerBody"),q=(0,c.g)(Promise.resolve(z),"BannerFooter");var Q=n(1612),X=n(8195);const Z='[href^="#consent-"]';function ee(){window.location.hash.startsWith("#consent-")&&(window.location.hash="")}var te=n(592);function ne(e,t){const n=(0,o.li)(0),i=(0,o.li)(0),[a,r]=(0,o.J0)(e),[s,c]=(0,o.J0)(void 0),[l,d]=(0,o.J0)(t),[u,h]=(0,o.J0)(void 0);return(0,o.vJ)(()=>{n.current>0&&("none"===e?r(e):(r("none"),c(e))),n.current++},[e]),(0,o.vJ)(()=>{i.current>0&&(0===t?d(t):(d(0),h(t),r("none"),c(e))),i.current++},[t]),(0,o.vJ)(()=>{void 0!==s&&(r(s),c(void 0))},[s]),(0,o.vJ)(()=>{void 0!==u&&(d(u),h(void 0))},[u]),[a,l]}function ie({isVisible:e,animationIn:t,animationOut:n,animationInDuration:i,animationOutDuration:o,animationInDelay:a,animationOutDelay:r}){return e?{animation:t,duration:i,delay:a}:{animation:n,duration:o,delay:r}}const oe=({animateOnMount:e=!0,isVisible:t=!0,animationIn:n="fadeIn",animationOut:a="fadeOut",animationInDelay:r=0,animationOutDelay:s=0,animationInDuration:c=1e3,animationOutDuration:l=1e3,className:d="",style:u={},children:h})=>{const[{animation:p,duration:m,delay:g},v]=(0,o.J0)(e?ie({isVisible:t,animationIn:n,animationOut:a,animationInDelay:r,animationOutDelay:s,animationInDuration:c,animationOutDuration:l}):{animation:"",delay:void 0,duration:0});(0,o.vJ)(()=>{v(ie({isVisible:t,animationIn:n,animationOut:a,animationInDelay:r,animationOutDelay:s,animationInDuration:c,animationOutDuration:l}))},[t,n,a,r,s,c,l]);const f=!p||"none"===p,b=f?d:`animate__animated animate__${p} ${d}`,y=f?{opacity:t?1:0,...m>0||g>0?{transition:`opacity ${m||g}ms`}:{}}:{};return(0,i.Y)("div",{className:b,style:{animationDelay:`${g}ms`,animationDuration:`${m}ms`,pointerEvents:t?"all":"none",...u,...y},children:h})},ae=(0,c.g)(Promise.resolve(()=>{const{Content:e,hideOnMobileClass:t,dimsContent:n,dimsOverlay:a,dimsHeader:r,dimsFooter:s,dimsRightSidebar:c,A11ySkipToLink:l,a11yIds:{firstButton:u}}=(0,x.y)().extend(...m.R).extend(...v),{set:p,decision:{acceptAll:g,acceptEssentials:f,showCloseIcon:b},mobile:w,individualPrivacyOpen:k,bodyDesign:{acceptEssentialsUseAcceptAll:C},activeAction:O,pageRequestUuid4:D,i18n:{skipToConsentChoices:P}}=(0,y.Y)(),S=(0,o.li)(),A=C&&g===f?g:f,Y=!w.hideHeader||O||k||"hide"===A&&b?"":t,I=(0,o.li)();I.current=I.current||{};const B=(0,o.hb)(()=>[document.querySelector(`#${D} div[class*="animate__"]`)],[D]),N=(0,o.hb)(([e,,t],n)=>{n?e(n,B()):t()},[B]),E=(0,o.hb)(e=>N(r,e),[N]),$=(0,o.hb)(e=>N(s,e),[N]),T=(0,o.hb)(e=>N(c,e),[N]);return(0,o.vJ)(()=>{const e=B(),t=[n[0](S.current),a[0](document.querySelector(`#${D}`),e)];return()=>t.forEach(e=>e())},[]),(0,o.vJ)(()=>{h().mutate(()=>(0,d.P)().then(()=>S.current.scrollTop=0))},[k]),(0,i.FD)(e,{ref:S,children:[(0,i.Y)(l,{href:`#${u}`,onFocus:()=>p({isScreenReader:!0}),children:P}),(0,i.Y)(j,{ref:E,className:Y}),(0,i.Y)(K,{rightSideContainerRef:T}),(0,i.Y)(q,{ref:$})]})}),"BannerContent"),re=(0,c.g)(Promise.all([n.e(886),n.e(4)]).then(n.bind(n,2854)).then(({BannerSticky:e})=>e)),se=(e,t)=>{const{dataset:n,style:i}=document.body;void 0===n.rcbPreviousOverflow&&(n.rcbPreviousOverflow=i.overflow),i.overflow=e&&t?"hidden":n.rcbPreviousOverflow,document.body.parentElement.style.overflow=i.overflow},ce=(0,c.g)(Promise.resolve(()=>{const e=(0,y.Y)(),{recorder:t,visible:n,activeAction:a,isConsentGiven:r,skipOverlay:c,pageRequestUuid4:u,individualPrivacyOpen:m,fetchLazyLoadedDataForSecondView:g,onClose:v,layout:{overlay:f,animationInDuration:b,animationOutDuration:w},sticky:x,keepVariablesInTexts:k}=e,C=(0,o.li)(),O=(0,o.li)(),D=(0,o.li)(!1),P=(0,o.hb)(()=>{h().mutate(()=>{C.current.focus({preventScroll:!0})})},[]),[S,A]=function({animationIn:e,animationInOnlyMobile:t,animationOut:n,animationOutOnlyMobile:i}){const[a]=J([`(max-width: ${_.X}px)`],!0);let r=t?a?e:"none":e,s=i?a?n:"none":n;return(0,o.Kr)(()=>{const e=window.navigator.userAgent.toLowerCase();return 4===["firefox","gecko","mobile","android"].map(t=>e.indexOf(t)>-1).filter(Boolean).length},[])&&(r="none",s="none"),[r,s]}(e.layout),[Y,I]=ne(S,b),[B,N]=ne("none"===A?"fadeOut":A,"none"===A?0:w),[E,$]=(0,l.F)(["BannerContent","BannerHeader","BannerBody","BannerFooter","BodyDescription"],e=>{(0,d.P)().then(e)},()=>{C.current.style.removeProperty("display"),P()}),T=(0,W.o)(),{a11yIds:{firstButton:R},inner:L,Dialog:F,Overlay:M,individualPrivacyOpen:z,computedMobileUpdate:H}=T.extend(...p.Z);(0,o.Kr)(()=>{z.update(m),m&&g?.()},[m]),(0,o.vJ)(()=>{H()},[]),(0,o.vJ)(()=>()=>{se(!1,f)},[f]),function(){const{openBanner:e,openHistory:t,revokeConsent:n}=(0,y.Y)();(0,o.vJ)(()=>{const i=(i,o,a)=>{if(e)switch(i){case"change":e(a);break;case"history":t(a);break;case"revoke":n(o,a)}},o=t=>{if(!e)return;const n=t.target;(0,Q.M)(n,Z).concat((0,X.B)(n,Z)?[n]:[]).forEach(e=>{i(e.getAttribute("href").slice(9),e.getAttribute("data-success-message"),t)}),(0,X.B)(n,".rcb-sc-link")&&i(n.getAttribute("href").slice(1),n.getAttribute("data-success-message"),t)},a=()=>{const{hash:e}=window.location;e.startsWith("#consent-")&&i(e.substring(9),void 0,void 0)};return a(),window.addEventListener("hashchange",a),document.addEventListener("click",o,!0),()=>{window.removeEventListener("hashchange",a),document.removeEventListener("click",o,!0)}},[e,t,n])}(),(0,o.vJ)(()=>{n&&t&&h().mutate(()=>{t.restart()})},[n,t]),(0,o.vJ)(()=>{const e=C.current,t=O.current||document.getElementById(u),i=function(e){a?v():(this.querySelector(`a[href="#${R}"]`).focus(),e.preventDefault())};if(n?(D.current=!0,e?.isConnected&&(e.open&&e.close?.(),h().mutate(()=>{e[f&&!k?"showModal":"show"]?.()}),e.addEventListener("cancel",i))):e&&e.close?.(),t){const e=0,i=n?"none"===S?e:b:"none"===A?e:w,o=i>0,a=e=>{o&&(t.style.transition=`background ${i}ms`),t.style.display=e?"block":"none",se(e,f),e&&P()};n?h().mutate(()=>{a(!0)}):D.current&&(setTimeout(()=>h().mutate(()=>a(!1)),i),ee())}return()=>{e?.removeEventListener("keyup",i)}},[n,f,a,v]),(0,o.vJ)(()=>{n&&P()},[n,m]),(0,o.vJ)(()=>{const e=({detail:{triggeredByOtherTab:e}})=>{e&&v()};return document.addEventListener(s.r,e),()=>{document.removeEventListener(s.r,e)}},[v]);const U=[];if(r&&x.enabled&&U.push((0,i.Y)(re,{},"sticky")),n||D.current){const e=(0,i.Y)(F,{className:"wp-exclude-emoji "+(m?"second-layer":""),ref:C,style:{display:"none"},"data-nosnippet":!0,"data-lenis-prevent":!0,children:(0,i.Y)(E,{value:$,children:(0,i.Y)(oe,{animationIn:Y,animationInDuration:I,animationOut:B,animationOutDuration:N,isVisible:n,className:L,children:(0,i.Y)(ae,{})})})},"dialog");U.push(c?e:(0,i.Y)(M,{id:u,className:T.className,ref:O,children:e},"overlay"))}return(0,i.Y)(o.FK,{children:U})}));var le=n(4211),de=n(1146);const ue=e=>{e&&(e.preventDefault(),e.stopPropagation())},he=(e,t)=>Object.assign(e,{activeAction:t,individualPrivacyOpen:!0,refreshSiteAfterSave:"change"===t&&2e3,visible:!0});var pe=n(9884),me=n(6407);const ge=({children:e})=>(0,i.Y)(o.FK,{children:e}),ve=({promise:e,children:t,suspenseProbs:n})=>{const a=(0,o.Kr)(()=>(0,c.g)((e||Promise.resolve()).then(()=>ge),void 0,n),[e]);return(0,i.Y)(a,{children:t})};var fe=n(7270),be=n(1337),ye=n(3403),we=n(6110),xe=n(3618),ke=n(3510);const Ce=async()=>{const e=[];document.dispatchEvent(new CustomEvent("RCB/PreDecision/Promises",{detail:{promises:e}}));try{const t=await Promise.all(e);for(const e of t)if(e)return e}catch(e){}return!1};var Oe=n(3161);const De=async({supportsCookiesName:e})=>!(0,Oe.s)(e)&&"essentials",Pe=async({revisionHash:e,getUserDecision:t})=>{const n=t();if(!1===n)return!1;const{revision:i}=n;return e===i&&"consent"};var Se,Ae=/bot|crawl|http|lighthouse|scan|search|spider/i;var Ye=n(9799);function Ie(){const{userAgent:e}=navigator;return!!e&&!/chrome-lighthouse/i.test(e)&&!(0,Ye.W)()&&function(e){return Boolean(e)&&function(){if(Se instanceof RegExp)return Se;try{Se=new RegExp(" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?async({getUserDecision:t,groups:n})=>{const i=n.find(({isEssential:e})=>e);if(!1!==t()||!e)return!1;for(const e of n)if(e!==i)for(const{legalBasis:t}of e.items)if("legitimate-interest"===t)return!1;return!!function(){try{const e=window;if((e.doNotTrack||e.navigator.doNotTrack||e.navigator.msDoNotTrack||"msTrackingProtectionEnabled"in e.external)&&("1"==e.doNotTrack||"yes"==e.navigator.doNotTrack||"1"==e.navigator.doNotTrack||"1"==e.navigator.msDoNotTrack||e.external.msTrackingProtectionEnabled()))return!0}catch(e){}return!1}()&&"dnt"},Ne=(e,t=1e4,n=!0)=>async({getUserDecision:i})=>{if(Ie()||!n)return!1;if(i())return"consent";try{const{predecision:n}=await(o=e(),a=t,new Promise((e,t)=>{o.then(e,t);const n=new Error("Timed out");setTimeout(t,a,n)}));return n}catch(e){return!1}var o,a};var Ee=n(4649),$e=n(324),Te=n(2149),Re=n(3738);const Le={path:"/consent/dynamic-predecision",method:Re.X.POST,obfuscatePath:"keep-last-part"};function Fe(e){(0,o.vJ)(()=>{if((0,Te.j)().customizeIdsBanner)return;const{restNamespace:t,restRoot:i,restQuery:o,restNonce:a,restPathObfuscateOffset:r,others:{isPreventPreDecision:s,isInvalidateImplicitUserConsent:c,hasDynamicPreDecisions:l,frontend:{isRespectDoNotTrack:u,isAcceptAllForBots:h}}}=(0,$e.b)(),{onSave:p,suspense:m}=e;var g,v,f;!async function(e,t){const{gateways:i,args:o,onIsDoNotTrack:a,onShowCookieBanner:r,isInvalidateImplicitUserConsent:s}=t;let c=!0;const l=e instanceof xe.U?e.getOptions():e,d={...l,getUserDecision:()=>{const e=(0,pe.y)(l.decisionCookieName);if(e){if(e.revision!==l.revisionHash)return!1;if(s&&e.buttonClicked?.startsWith("implicit_"))return!1}return e}};for(const e of i){const t=await e(d,...o);if(!1!==t){c=!1;const e=e=>Promise.all([n.e(886),n.e(4)]).then(n.bind(n,3119)).then(({apply:t})=>t({type:e,...l}));"all"===t?e("all"):"essentials"===t?e("essentials"):"dnt"===t?a(()=>e("essentials")):"consent"===t&&e("consent");break}}c&&(r(),document.dispatchEvent(new CustomEvent("RCB/Banner/Show/Interactive")),await(0,we.G)(),document.dispatchEvent(new CustomEvent(ke.Z,{detail:{}})))}((0,Ee.C)(),{gateways:[async()=>(await m.tcf,!1),Ce,De,Pe,(f=["login-action-"],async()=>{const{className:e}=document.body;return!(e&&e.indexOf("force-cookie-banner")>-1)&&f.filter(t=>e.indexOf(t)>-1).length>0&&"consent"}),(v=!!h&&"all",async({getUserDecision:e})=>(await(0,d.P)(),!(!1!==e()||!v)&&!!Ie()&&v)),Be(u),Ne(async()=>{const{clientWidth:e,clientHeight:n}=document.documentElement;return(0,fe.h)({location:Le,options:{restNamespace:t,restRoot:i,restQuery:o,restNonce:a,restPathObfuscateOffset:r},sendRestNonce:!1,sendReferer:!0,request:{viewPortWidth:e,viewPortHeight:n,referer:window.location.href,tcfStringImplicitEssentials:void 0}})},1e4,l),(g=s,async()=>!!g&&(Ie()?"all":"consent"))],args:[e],isInvalidateImplicitUserConsent:c,onIsDoNotTrack:()=>{p(!0,"none")},onShowCookieBanner:()=>{e.set({visible:!0})}})},[])}var We=n(4037);const Me={path:"/consent",method:Re.X.GET,obfuscatePath:"keep-last-part"},ze={path:"/revision/second-view",method:Re.X.GET,obfuscatePath:"keep-last-part"},He=(0,c.g)(Promise.resolve(()=>{const{pageRequestUuid4:e}=(0,y.Y)(),t=(0,te.N)();t.specify(e);const[n,o]=(0,W.d)(t);return(0,i.Y)(n,{value:o,children:(0,i.Y)(ce,{})})})),Je=({poweredLink:e})=>{const{frontend:t,customizeValuesBanner:n,pageRequestUuid4:s,iso3166OneAlpha2:c,bannerDesignVersion:l,bannerI18n:u,isPro:h,isLicensed:p,isDevLicense:m,affiliate:g,isCurrentlyInTranslationEditorPreview:v}=(0,o.Kr)(()=>(0,Te.j)(),[]),{restNamespace:f,restRoot:b,restQuery:w,restNonce:x,restPathObfuscateOffset:k}=(0,$e.b)(),{decisionCookieName:C}=t,O=(0,Ee.C)(),D=O.getUserDecision(!0),P=!1===D?void 0:D.buttonClicked,S=function(e,t){const n=localStorage.getItem(e);if(n)return JSON.parse(n);const i=a.A.get(e);return t?.startsWith("implicit")?"implicit_all"===t?Object.values(r.um):[]:JSON.parse(i||"[]")}(O.getOption("gcmCookieName"),P),A=(L=t.isTcf,F=t.tcf,W=t.tcfMetadata,O.getOptions(),M=async()=>{},z=[L,F,W,P],(0,o.Kr)(()=>(0,d.P)().then(M),z)),[Y,I]=function(e,n){const i=window.rcbLazyPromise;let o,a;if(i)[a,o]=i;else{let e=!1;a=!1===n?Promise.resolve({}):new Promise(n=>{o=async()=>{e||(e=!0,n(await(0,fe.h)({location:ze,options:{restNamespace:f,restRoot:b,restQuery:w,restNonce:x,restPathObfuscateOffset:k},params:{revisionHash:t.revisionHash},sendRestNonce:!1})))}})}return[a,o]}(0,t.hasLazyData),B=document.getElementById(s),N=(0,o.Kr)(()=>new be.v(B),[]),E=(0,le.u)(),$={onClose:e=>{Object.assign(e,{visible:!1,refreshSiteAfterSave:!1})},openHistory:(e,t)=>{he(e,"history"),ue(t)},openBanner:(e,t)=>{he(e,"change"),ue(t)},revokeConsent:({onPersistConsent:e,onApplyConsent:t,isTcf:n,tcf:i,isGcm:o,groups:a},r,s)=>{e({consent:(0,de.w)(a,!0),gcmConsent:o?[]:void 0,buttonClicked:"shortcode_revoke",tcfString:void 0}).then(()=>t()).then(()=>{r&&alert(r),ee(),setTimeout(()=>window.location.reload(),2e3)}),ue(s)},onSave:(e,t,n)=>{const{refreshSiteAfterSave:i}=e,o=(0,d.P)().then(async()=>{const{onPersistConsent:i,onApplyConsent:o,activeAction:a,consent:r,tcf:s,isTcf:c,isGcm:l,gcmConsent:d,recorder:u}=e;return i({consent:r,gcmConsent:void 0,markAsDoNotTrack:t,buttonClicked:n,tcfString:void 0,recorderJsonString:u?JSON.stringify(u.createReplay()):void 0,uiView:"change"===a?"change":"revoke"!==a?"initial":void 0}).then(()=>o())});i?o.then(()=>{ee(),setTimeout(()=>window.location.reload(),i||2e3)}):Object.assign(e,{visible:!1})},updateCookieChecked:(e,t,n,i)=>{const{consent:o,isGcm:a,groups:r,updateGcmConsentTypeChecked:s}=e;o[t]||(o[t]=[]);const c=o[t],l=c.indexOf(n);i&&-1===l?c.push(n):!i&&l>-1&&c.splice(l,1),c.length||delete o[t]},updateGroupChecked:(e,t,n)=>{const{groups:i,updateCookieChecked:o}=e;for(const e of i.find(({id:e})=>e===t).items)o(t,e.id,n)}},[T,R]=(0,y.d)({...n,...t,blocker:void 0,recorder:N,productionNotice:(0,i.Y)(ye.A,{isPro:h,isLicensed:p,isDevLicense:m,i18n:u}),pageRequestUuid4:s,iso3166OneAlpha2:c,gcmConsent:S,tcf:void 0,tcfFilterBy:"legInt",poweredLink:e,visible:!1,skipOverlay:!0,previewCheckboxActiveState:!1,individualPrivacyOpen:!1,designVersion:l,i18n:u,keepVariablesInTexts:v,affiliate:g,consent:{...!1===D?{}:D.consent,...(0,Ee.C)().getDefaultDecision(!1===D)},onPersistConsent:We.x,onApplyConsent:()=>(0,Ee.C)().applyCookies({type:"consent"}),didGroupFirstChange:!1,fetchLazyLoadedDataForSecondView:I,suspense:{tcf:A,lazyLoadedDataForSecondView:Y}},{...E,...$,fetchHistory:async()=>{const e=[];try{e.push(...await(0,fe.h)({location:Me,options:{restNamespace:f,restRoot:b,restQuery:w,restNonce:x,restPathObfuscateOffset:k},cookieValueAsParam:[C],sendRestNonce:!1}))}catch(e){}for(const{createdClientTime:t}of O.getConsentQueue())e.unshift({created:new Date(t).toISOString(),isDoNotTrack:!1,isForwarded:!1,isUnblock:!1,context:void 0,id:new Date(t).getTime(),uuid:void 0});return e},onLanguageSwitch:(e,{url:t})=>{window.location.href=t}},{deps:[A]});var L,F,W,M,z;Fe(R),function(e,t){(0,o.vJ)(()=>{const n=()=>{const n=(0,pe.y)(t);n&&e.set({consent:n.consent,isConsentGiven:!0})};return document.addEventListener(me.T,n),()=>{document.removeEventListener(me.T,n)}},[])}(R,C);const H=(e=>{const t=(0,o.li)(!1),n=(0,o.li)(null),i=(0,o.li)(new Promise(e=>{}));return(0,o.vJ)(()=>t.current?()=>{}:(n.current=e,e.then(o=>{n.current!==e||t.current||(t.current=!0,i.current=Promise.resolve(o))}).catch(()=>{}),()=>{n.current=null}),[e]),i.current})(A);return(0,i.Y)(T,{value:R,children:(0,i.Y)(ve,{promise:H,children:(0,i.Y)(He,{})})})}},1612:(e,t,n)=>{function i(e,t,n=0){const i=[];let o=e.parentElement;const a=void 0!==t;let r=0;for(;null!==o;){const s=o.nodeType===Node.ELEMENT_NODE;if(0===r&&1===n&&s&&a){const n=e.closest(t);return n?[n]:[]}if((!a||s&&o.matches(t))&&i.push(o),o=o.parentElement,0!==n&&i.length>=n)break;r++}return i}n.d(t,{M:()=>i})}}]); //# sourceMappingURL=https://sourcemap.devowl.io/real-cookie-banner/5.2.25/81cc985e8a15a595a6fa3d3f63c82c34/banner-lite-banner-ui.lite.js.map