(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30143],{36808:function(e,t,n){var o,i;!function(c){if(void 0===(i="function"===typeof(o=c)?o.call(t,n,t,e):o)||(e.exports=i),!0,e.exports=c(),!!0){var r=window.Cookies,s=window.Cookies=c();s.noConflict=function(){return window.Cookies=r,s}}}((function(){function e(){for(var e=0,t={};e=0||(i[n]=e[n]);return i}(e,v);return c.createElement("button",Object.assign({},n),t)},overlay:!1,overlayClasses:"",onOverlayClick:function(){},acceptOnOverlayClick:!1,ariaAcceptLabel:"Accept cookies",ariaDeclineLabel:"Decline cookies",acceptOnScroll:!1,acceptOnScrollPercentage:25,customContentAttributes:{},customContainerAttributes:{},customButtonProps:{},customDeclineButtonProps:{},customButtonWrapperAttributes:{},style:{},buttonStyle:{},declineButtonStyle:{},contentStyle:{},overlayStyle:{}},y={visible:!1,style:{alignItems:"baseline",background:"#353535",color:"white",display:"flex",flexWrap:"wrap",justifyContent:"space-between",left:"0",position:"fixed",width:"100%",zIndex:"999"},buttonStyle:{background:"#ffd42d",border:"0",borderRadius:"0px",boxShadow:"none",color:"black",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},declineButtonStyle:{background:"#c12a2a",border:"0",borderRadius:"0px",boxShadow:"none",color:"#e5e5e5",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},contentStyle:{flex:"1 0 300px",margin:"15px"},overlayStyle:{position:"fixed",left:0,top:0,width:"100%",height:"100%",zIndex:"999",backgroundColor:"rgba(0,0,0,0.3)"}},m=function(e){return e+"-legacy"},C=function(e){var t,n;function o(){var t;return(t=e.apply(this,arguments)||this).state=y,t.handleScroll=function(){var e=t.props.acceptOnScrollPercentage,n=document.documentElement,o=document.body,i="scrollTop",c="scrollHeight";(n[i]||o[i])/((n[c]||o[c])-n.clientHeight)*100>e&&t.accept(!0)},t.removeScrollListener=function(){t.props.acceptOnScroll&&window.removeEventListener("scroll",t.handleScroll)},t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var v=o.prototype;return v.componentDidMount=function(){var e=this.props.debug;(void 0===this.getCookieValue()||e)&&(this.setState({visible:!0}),this.props.acceptOnScroll&&window.addEventListener("scroll",this.handleScroll,{passive:!0}))},v.componentWillUnmount=function(){this.removeScrollListener()},v.accept=function(e){var t;void 0===e&&(e=!1);var n=this.props,o=n.cookieName,i=n.cookieValue,c=n.hideOnAccept,r=n.onAccept;this.setCookie(o,i),r(null!=(t=e)&&t),c&&(this.setState({visible:!1}),this.removeScrollListener())},v.overlayClick=function(){var e=this.props,t=e.acceptOnOverlayClick,n=e.onOverlayClick;t&&this.accept(),n()},v.decline=function(){var e=this.props,t=e.cookieName,n=e.declineCookieValue,o=e.hideOnDecline,i=e.onDecline;e.setDeclineCookie&&this.setCookie(t,n),i(),o&&this.setState({visible:!1})},v.setCookie=function(e,t){var n=this.props,o=n.extraCookieOptions,c=n.expires,r=n.sameSite,a=this.props.cookieSecurity;void 0===a&&(a=!window.location||"https:"===window.location.protocol);var u=s({expires:c},o,{sameSite:r,secure:a});r===l.NONE&&i().set(m(e),t,u),i().set(e,t,u)},v.getCookieValue=function(){return function(e){void 0===e&&(e=f);var t=i().get(e);return void 0===t?i().get(m(e)):t}(this.props.cookieName)},v.render=function(){var e=this;switch(this.props.visible){case d:return null;case b:if(!this.state.visible)return null}var t=this.props,n=t.location,o=t.style,i=t.buttonStyle,a=t.declineButtonStyle,l=t.contentStyle,f=t.disableStyles,v=t.buttonText,h=t.declineButtonText,y=t.containerClasses,m=t.contentClasses,C=t.buttonClasses,g=t.buttonWrapperClasses,k=t.declineButtonClasses,O=t.buttonId,S=t.declineButtonId,x=t.disableButtonStyles,w=t.enableDeclineButton,B=t.flipButtons,j=t.ButtonComponent,D=t.overlay,N=t.overlayClasses,A=t.overlayStyle,E=t.ariaAcceptLabel,I=t.ariaDeclineLabel,L=t.customContainerAttributes,P=t.customContentAttributes,R=t.customButtonProps,T=t.customDeclineButtonProps,_=t.customButtonWrapperAttributes,U={},V={},W={},J={},z={};switch(f?(U=Object.assign({},o),V=Object.assign({},i),W=Object.assign({},a),J=Object.assign({},l),z=Object.assign({},A)):(U=Object.assign({},s({},this.state.style,o)),J=Object.assign({},s({},this.state.contentStyle,l)),z=Object.assign({},s({},this.state.overlayStyle,A)),x?(V=Object.assign({},i),W=Object.assign({},a)):(V=Object.assign({},s({},this.state.buttonStyle,i)),W=Object.assign({},s({},this.state.declineButtonStyle,a)))),n){case u:U.top="0";break;case p:U.bottom="0"}var F=[];return w&&F.push(c.createElement(j,Object.assign({key:"declineButton",style:W,className:k,id:S,"aria-label":I,onClick:function(){e.decline()}},T),h)),F.push(c.createElement(j,Object.assign({key:"acceptButton",style:V,className:C,id:O,"aria-label":E,onClick:function(){e.accept()}},R),v)),B&&F.reverse(),c.createElement(r,{condition:D,wrapper:function(t){return c.createElement("div",{style:z,className:N,onClick:function(){e.overlayClick()}},t)}},c.createElement("div",Object.assign({className:""+y,style:U},L),c.createElement("div",Object.assign({style:J,className:m},P),this.props.children),c.createElement("div",Object.assign({className:""+g},_),F.map((function(e){return e})))))},o}(c.Component);C.defaultProps=h,t.ZP=C}}]);