"use strict";(self.webpackChunkrealCookieBanner_=self.webpackChunkrealCookieBanner_||[]).push([[40],{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})},9833:(e,t,n)=>{n.d(t,{WebsiteBanner:()=>Ue});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:S,headerBorderStyle:P})=>{const I=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)}}),A=e({when:p,then:{when:[D,o(O.inheritBannerMaxWidth)],then:O.bannerMaxWidth(),or:b.bannerMaxWidth()}}),Y=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(${Y} + ${u(f.padding,e,2)})`,...P,pseudos:{":has(>div:empty)":{display:"none"},":has(>div:empty)+div":P,":after":{content:"''",display:"block",position:"absolute",left:"0px",right:"0px",bottom:"0px",background:f.borderColor(),height:Y},">div":{transition:"width 500ms, max-width 500ms",maxWidth:A,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:I.width(),height:I.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()),...S,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:A,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,S=n([p,y]),P="300px",I=e(p,P,`calc(${f.dialogMaxWidth()} - ${u(C,e,1)} - ${u(C,e,3)} - (${u(w.borderWidth,e)} * 2))`),A=t(v),Y=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:Y,borderRight:Y,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:[A,m,y,t(b.inheritDialogMaxWidth)],then:"0 0 10px 10px"}),background:w.bg(),maxWidth:"100%",width:e(A,I,"auto"),float:e(A,e({when:S,then:"right"})),paddingTop:e(v,"10px",e({when:S,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=[A,p,t(d["is-history"])],[L]=o("div",{classNames:"tb-left",float:e({when:R,then:"left"}),width:e({when:R,then:`calc(100% - ${P})`}),paddingRight:e({when:[p,A],then:"20px"}),paddingTop:e(y,"10px",u(h.padding,e,0)),paddingBottom:e({when:[A,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:$}}],y=({items:e,enabled:t,sessionId:n,slotOrder:a})=>{const r=(0,o.Kr)(()=>function(e,t){let n=function(e){let t=0;for(let n=0;n>>0}(t);const i=()=>{n|=0,n=n+1831565813|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296},o=[...e];for(let e=o.length-1;e>0;e--){const t=Math.floor(i()*(e+1));[o[e],o[t]]=[o[t],o[e]]}return o}(a,n),[n,a]),s=t?[...e].sort((e,t)=>r.indexOf(e.slot)-r.indexOf(t.slot)):e;return(0,i.Y)(i.FK,{children:s.map(({slot:e,node:t})=>(0,i.Y)(o.FK,{children:t},e))})};var w=n(1563),x=n(802);function k(){const{individualPrivacyOpen:e,onSave:t,updateGroupChecked:n,updateCookieChecked:i,groups:a,activeAction:r,onClose:s,set:c}=(0,x.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 C=n(3260),O=n(5816);const D=["all","essential","save","individual"],S=()=>{const e=(0,x.Y)(),{isScreenReader:t,isConsentRecord:n,activeAction:a,recorder:r,recorderSessionId:s,bodyDesign:{acceptEssentialsUseAcceptAll:c,acceptAllOneRowLayout:l},decision:{showGroups:d,groupsFirstView:u,saveButton:h,acceptAll:p,acceptEssentials:m,buttonOrder:g},texts:{acceptAll:v,acceptEssentials:f,acceptIndividual:S},saveButton:{type:P,useAcceptAll:I},individualTexts:{save:A},individualPrivacyOpen:Y,didGroupFirstChange:B,productionNotice:N,buttonClicked:E="",fetchLazyLoadedDataForSecondView:$}=e,{a11yIds:{firstButton:T}}=(0,C.y)(),{buttonOrderClasses:R}=(0,C.y)().extend(...b),L=c&&p===m,F=I&&p===P,W=r?.getSessionId()??s??w.tq,{all:M,essential:z,individual:H,save:J}=(0,o.Kr)(()=>{const e=g.split(","),t=e.reduce((t,n)=>(t[n]=e.indexOf(n),t),{}),n=e.reduce((t,n)=>(t[e.indexOf(n)]=n,t),{});return l&&(t[n[0]]=1,t[n[1]]=0),t},[g,l]),_=!1,{buttonClickedAll:U,buttonClickedEssentials:V,buttonClickedCustom:G,acceptAll:K,acceptEssentials:j,acceptIndividual:q,openIndividualPrivacy:Q}=k(),X="change"===a&&!n,Z=!Y&&_,ee=Y||_,te=!Y,ne=(0,o.li)(),ie=[{slot:"all",node:Z?(0,i.Y)(O.$,{onClick:q,busyOnClick:X,className:R[M][1],type:"acceptAll",framed:E===G,id:T,children:A}):(0,i.Y)(O.$,{onClick:K,busyOnClick:X,className:R[M][1],type:"acceptAll",framed:E===U,id:T,children:v})},{slot:"essential",node:(0,i.Y)(O.$,{onClick:()=>j(),busyOnClick:X,className:R[z][1],type:L?"acceptAll":"acceptEssentials",framed:E===V,children:f})},...ee?[{slot:"save",node:(0,i.Y)(O.$,{onClick:q,busyOnClick:X,className:R[J][1],type:F?"acceptAll":"save",framed:E===G,children:A})}]:[],...te?[{slot:"individual",node:(0,i.Y)(O.$,{onClick:Q,onMouseEnter:()=>{$&&(ne.current=setTimeout($,500))},onMouseLeave:()=>clearTimeout(ne.current),busyOnClick:X,className:R[H][1],type:"acceptIndividual",framed:E.startsWith("ind_"),children:S})}]:[]];return(0,i.FD)(i.FK,{children:[(0,i.Y)(y,{enabled:!t,items:ie,sessionId:W,slotOrder:D}),N]})};var P=n(4294),I=n(9736),A=n(3128),Y=n(4456),B=n(4689),N=n(1509);n(1070);const E=({group:e})=>{const{name:t}=e,n=(0,x.Y)(),{decision:{groupsFirstView:a},design:{fontSize:r}}=n;return(0,N.C)(e),(0,i.Y)(o.FK,{children:(0,i.FD)("span",{children:[(0,i.Y)("i",{}),(0,i.Y)("span",{children:t})]})})},$=()=>{const{texts:{headline:e}}=(0,x.Y)(),{DottedGroupList:t,screenReaderOnlyClass:n}=(0,C.y)().extend(...B.C),{groups:o,decision:{showGroups:a}}=(0,x.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)(E,{group:e},e.id))]}):null},T=(0,c.g)(Promise.resolve(A.X),"BodyDescription"),R=(0,c.g)(Promise.all([n.e(886),n.e(4)]).then(n.bind(n,6835)).then(({BannerGroupList:e})=>e)),L=(0,c.g)(Promise.all([n.e(886),n.e(4)]).then(n.bind(n,9330)).then(({BannerHistorySelect:e})=>e)),F={margin:"20px 0 10px 0"};var W=n(991),M=n(4406),z=n(4504);const H=()=>{const{FooterLanguageSwitcherSelect:e}=(0,z.o)().extend(...M.h),{footerDesign:{languageSwitcher:t},languageSwitcher:n,onLanguageSwitch:a}=(0,x.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))})]})},J=(0,o.Rf)((e,t)=>{const{FooterContainer:n}=(0,C.y)().extend(...v),a=(0,x.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,W.D)({onClose:h?g:void 0,putPoweredByLinkInRow:"banner"===s?0:1,row1:[!1],row1End:[p?.length>0&&c&&"disabled"!==c&&(0,i.Y)(H,{},"languageSwitcher")]});return(0,i.Y)(n,{ref:t,children:(0,i.Y)("div",{children:b(f)})})});var _=n(2904);function U(e,t){const n=e.map(e=>(0,_.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 V=n(3411),G=n(4541);const K=()=>{const{headerDesign:{fontColor:e,fontSize:t},texts:{acceptEssentials:n},activeAction:o,pageRequestUuid4:a,i18n:{close:r,closeWithoutSaving:s},buttonClicked:c=""}=(0,x.Y)(),{buttonClickedCloseIcon:l,closeIcon:d}=k(),[u]=U([`(max-width: ${V.X}px)`]);return(0,i.Y)(G.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})},j=(0,o.Rf)(({className:e},t)=>{const n=(0,C.y)(),{a11yIds:o,HeaderContainer:a,hasCloseIcon:r,HeaderTitle:s}=n.extend(...v).extend(...M.h),{headerDesign:{logo:c,logoRetina:l,logoAlt:d},decision:{showCloseIcon:u},texts:{headline:h},activeAction:p,individualPrivacyOpen:m,individualTexts:g,i18n:{headerTitlePrivacyPolicyHistory:f}}=(0,x.Y)(),b=l&&!c?.endsWith(".svg")&&window.devicePixelRatio>1?l:c,y=!!u||!!p,w=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}),!!w&&(0,i.Y)(s,{id:o.headline,className:y?r:void 0,children:w}),y&&(0,i.Y)(K,{})]})})}),q=(0,c.g)(Promise.resolve(j),"BannerHeader"),Q=(0,c.g)(Promise.resolve(({leftSideContainerRef:e,rightSideContainerRef:t})=>{const{a11yIds:n,Container:a,RightSide:r,LeftSide:s,BeforeFooter:c}=(0,C.y)().extend(...b),l=(0,x.Y)(),{tcf:d,isGcm:u,individualPrivacyOpen:h,activeAction:p,individualTexts:{postamble:m},i18n:{nonStandard:g,nonStandardDesc:v},groups:y,designVersion:w}=l,k=function(){const{groups:e}=(0,P.b)();let t=e.map(({items:e})=>[...e]).flat();return t}(),O=(0,I.bM)({services:k,disableListServicesNotice:w>9&&h}),D=u&&(0,f.h)(k).length>0,A=(0,o.Kr)(()=>!1,[d,D]),B=(0,i.FD)(s,{ref:e,children:[(0,i.Y)(T,{id:n.description,...y.length>0?O:{},children:"history"===p&&(0,i.Y)(L,{})}),y.length>0&&(0,i.FD)(o.FK,{children:[h?(0,i.FD)(o.FK,{children:[A&&(0,i.Y)(Y.Y,{headline:g,style:F,borderless:!0,children:v}),(0,i.Y)(R,{}),[!1,!1].filter(Boolean).sort(()=>w<10?1:-1)]}):(0,i.Y)($,{}),!!m&&h&&(0,i.Y)(T,{teachings:[m],isPostamble:!0})]})]},"leftSide"),N="history"===p?(0,i.Y)("div",{ref:t}):(0,i.Y)(r,{ref:t,children:(0,i.Y)(S,{})},"rightSide");return(0,i.FD)(a,{children:[(0,i.Y)("div",{children:h?[N,B]:[B,N]}),(0,i.Y)(c,{})]})}),"BannerBody"),X=(0,c.g)(Promise.resolve(J),"BannerFooter");var Z=n(1612),ee=n(8195);const te='[href^="#consent-"]';function ne(){window.location.hash.startsWith("#consent-")&&(window.location.hash="")}var ie=n(592);function oe(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 ae({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 re=({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?ae({isVisible:t,animationIn:n,animationOut:a,animationInDelay:r,animationOutDelay:s,animationInDuration:c,animationOutDuration:l}):{animation:"",delay:void 0,duration:0});(0,o.vJ)(()=>{v(ae({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})},se=(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,C.y)().extend(...m.R).extend(...v),{set:p,decision:{acceptAll:g,acceptEssentials:f,showCloseIcon:b},mobile:y,individualPrivacyOpen:w,bodyDesign:{acceptEssentialsUseAcceptAll:k},activeAction:O,pageRequestUuid4:D,i18n:{skipToConsentChoices:S}}=(0,x.Y)(),P=(0,o.li)(),I=k&&g===f?g:f,A=!y.hideHeader||O||w||"hide"===I&&b?"":t,Y=(0,o.li)();Y.current=Y.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](P.current),a[0](document.querySelector(`#${D}`),e)];return()=>t.forEach(e=>e())},[]),(0,o.vJ)(()=>{h().mutate(()=>(0,d.P)().then(()=>P.current.scrollTop=0))},[w]),(0,i.FD)(e,{ref:P,children:[(0,i.Y)(l,{href:`#${u}`,onFocus:()=>p({isScreenReader:!0}),children:S}),(0,i.Y)(q,{ref:E,className:A}),(0,i.Y)(Q,{rightSideContainerRef:T}),(0,i.Y)(X,{ref:$})]})}),"BannerContent"),ce=(0,c.g)(Promise.all([n.e(886),n.e(4)]).then(n.bind(n,2854)).then(({BannerSticky:e})=>e)),le=(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},de=(0,c.g)(Promise.resolve(()=>{const e=(0,x.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:y},sticky:w,keepVariablesInTexts:k}=e,C=(0,o.li)(),O=(0,o.li)(),D=(0,o.li)(!1),S=(0,o.hb)(()=>{h().mutate(()=>{C.current.focus({preventScroll:!0})})},[]),[P,I]=function({animationIn:e,animationInOnlyMobile:t,animationOut:n,animationOutOnlyMobile:i}){const[a]=U([`(max-width: ${V.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),[A,Y]=oe(P,b),[B,N]=oe("none"===I?"fadeOut":I,"none"===I?0:y),[E,$]=(0,l.F)(["BannerContent","BannerHeader","BannerBody","BannerFooter","BodyDescription"],e=>{(0,d.P)().then(e)},()=>{C.current.style.removeProperty("display"),S()}),T=(0,z.o)(),{a11yIds:{firstButton:R},inner:L,Dialog:F,Overlay:W,individualPrivacyOpen:M,computedMobileUpdate:H}=T.extend(...p.Z);(0,o.Kr)(()=>{M.update(m),m&&g?.()},[m]),(0,o.vJ)(()=>{H()},[]),(0,o.vJ)(()=>()=>{le(!1,f)},[f]),function(){const{openBanner:e,openHistory:t,revokeConsent:n}=(0,x.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,Z.M)(n,te).concat((0,ee.B)(n,te)?[n]:[]).forEach(e=>{i(e.getAttribute("href").slice(9),e.getAttribute("data-success-message"),t)}),(0,ee.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"===P?e:b:"none"===I?e:y,o=i>0,a=e=>{o&&(t.style.transition=`background ${i}ms`),t.style.display=e?"block":"none",le(e,f),e&&S()};n?h().mutate(()=>{a(!0)}):D.current&&(setTimeout(()=>h().mutate(()=>a(!1)),i),ne())}return()=>{e?.removeEventListener("keyup",i)}},[n,f,a,v]),(0,o.vJ)(()=>{n&&S()},[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 J=[];if(r&&w.enabled&&J.push((0,i.Y)(ce,{},"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)(re,{animationIn:A,animationInDuration:Y,animationOut:B,animationOutDuration:N,isVisible:n,className:L,children:(0,i.Y)(se,{})})})},"dialog");J.push(c?e:(0,i.Y)(W,{id:u,className:T.className,ref:O,children:e},"overlay"))}return(0,i.Y)(o.FK,{children:J})}));var ue=n(4211),he=n(1146);const pe=e=>{e&&(e.preventDefault(),e.stopPropagation())},me=(e,t)=>Object.assign(e,{activeAction:t,individualPrivacyOpen:!0,refreshSiteAfterSave:"change"===t&&2e3,visible:!0});var ge=n(9884),ve=n(6407);const fe=({children:e})=>(0,i.Y)(o.FK,{children:e}),be=({promise:e,children:t,suspenseProbs:n})=>{const a=(0,o.Kr)(()=>(0,c.g)((e||Promise.resolve()).then(()=>fe),void 0,n),[e]);return(0,i.Y)(a,{children:t})};var ye=n(7270),we=n(5599),xe=n(3403),ke=n(6110),Ce=n(3618),Oe=n(3510);const De=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 Se=n(3161);const Pe=async({supportsCookiesName:e})=>!(0,Se.s)(e)&&"essentials",Ie=async({revisionHash:e,getUserDecision:t})=>{const n=t();if(!1===n)return!1;const{revision:i}=n;return e===i&&"consent"};var Ae,Ye=/bot|crawl|http|lighthouse|scan|search|spider/i;var Be=n(9799);function Ne(){const{userAgent:e}=navigator;return!!e&&!/chrome-lighthouse/i.test(e)&&!(0,Be.W)()&&function(e){return Boolean(e)&&function(){if(Ae instanceof RegExp)return Ae;try{Ae=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"},$e=(e,t=1e4,n=!0)=>async({getUserDecision:i})=>{if(Ne()||!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 Te=n(4649),Re=n(324),Le=n(2149),Fe=n(3738);const We={path:"/consent/dynamic-predecision",method:Fe.X.POST,obfuscatePath:"keep-last-part"};function Me(e){(0,o.vJ)(()=>{if((0,Le.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,Re.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 Ce.U?e.getOptions():e,d={...l,getUserDecision:()=>{const e=(0,ge.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,ke.G)(),document.dispatchEvent(new CustomEvent(Oe.Z,{detail:{}})))}((0,Te.C)(),{gateways:[async()=>(await m.tcf,!1),De,Pe,Ie,(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)&&!!Ne()&&v)),Ee(u),$e(async()=>{const{clientWidth:e,clientHeight:n}=document.documentElement;return(0,ye.h)({location:We,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&&(Ne()?"all":"consent"))],args:[e],isInvalidateImplicitUserConsent:c,onIsDoNotTrack:()=>{p(!0,"none")},onShowCookieBanner:()=>{e.set({visible:!0})}})},[])}var ze=n(4037);const He={path:"/consent",method:Fe.X.GET,obfuscatePath:"keep-last-part"},Je={path:"/revision/second-view",method:Fe.X.GET,obfuscatePath:"keep-last-part"},_e=(0,c.g)(Promise.resolve(()=>{const{pageRequestUuid4:e}=(0,x.Y)(),t=(0,ie.N)();t.specify(e);const[n,o]=(0,z.d)(t);return(0,i.Y)(n,{value:o,children:(0,i.Y)(de,{})})})),Ue=({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,Le.j)(),[]),{restNamespace:f,restRoot:b,restQuery:y,restNonce:w,restPathObfuscateOffset:k}=(0,Re.b)(),{decisionCookieName:C}=t,O=(0,Te.C)(),D=O.getUserDecision(!0),S=!1===D?void 0:D.buttonClicked,P=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"),S),I=(L=t.isTcf,F=t.tcf,W=t.tcfMetadata,O.getOptions(),M=async()=>{},z=[L,F,W,S],(0,o.Kr)(()=>(0,d.P)().then(M),z)),[A,Y]=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,ye.h)({location:Je,options:{restNamespace:f,restRoot:b,restQuery:y,restNonce:w,restPathObfuscateOffset:k},params:{revisionHash:t.revisionHash},sendRestNonce:!1})))}})}return[a,o]}(0,t.hasLazyData),B=document.getElementById(s),N=(0,o.Kr)(()=>new we.v(B),[]),E=(0,ue.u)(),$={onClose:e=>{Object.assign(e,{visible:!1,refreshSiteAfterSave:!1})},openHistory:(e,t)=>{me(e,"history"),pe(t)},openBanner:(e,t)=>{me(e,"change"),pe(t)},revokeConsent:({onPersistConsent:e,onApplyConsent:t,isTcf:n,tcf:i,isGcm:o,groups:a},r,s)=>{e({consent:(0,he.w)(a,!0),gcmConsent:o?[]:void 0,buttonClicked:"shortcode_revoke",tcfString:void 0}).then(()=>t()).then(()=>{r&&alert(r),ne(),setTimeout(()=>window.location.reload(),2e3)}),pe(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(()=>{ne(),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,x.d)({...n,...t,blocker:void 0,recorder:N,productionNotice:(0,i.Y)(xe.A,{isPro:h,isLicensed:p,isDevLicense:m,i18n:u}),pageRequestUuid4:s,iso3166OneAlpha2:c,gcmConsent:P,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,Te.C)().getDefaultDecision(!1===D)},onPersistConsent:ze.x,onApplyConsent:()=>(0,Te.C)().applyCookies({type:"consent"}),didGroupFirstChange:!1,fetchLazyLoadedDataForSecondView:Y,suspense:{tcf:I,lazyLoadedDataForSecondView:A}},{...E,...$,fetchHistory:async()=>{const e=[];try{e.push(...await(0,ye.h)({location:He,options:{restNamespace:f,restRoot:b,restQuery:y,restNonce:w,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:[I]});var L,F,W,M,z;Me(R),function(e,t){(0,o.vJ)(()=>{const n=()=>{const n=(0,ge.y)(t);n&&e.set({consent:n.consent,isConsentGiven:!0})};return document.addEventListener(ve.T,n),()=>{document.removeEventListener(ve.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})(I);return(0,i.Y)(T,{value:R,children:(0,i.Y)(be,{promise:H,children:(0,i.Y)(_e,{})})})}}}]); //# sourceMappingURL=https://sourcemap.devowl.io/real-cookie-banner/5.3.0/d83c8f64086a79eb4368468ce48959b6/banner-lite-banner-ui.lite.js.map