1"use strict";(("undefined"!=typeof self?self:this).webpackChunkthundr=("undefined"!=typeof self?self:this).webpackChunkthundr||[]).push([[278],{8829:(e,t,i)=>{i.r(t),i.d(t,{default:()=>y});var r=i(4897),o=i(5703),n=i(2652),s=i(1163);i(4085);const a={container:"cookies__container__tjb6A",top:"cookies__top__rrVG1",bottom:"cookies__bottom__IgtCK",fixedTop:"cookies__fixedTop__jvtEH",float:"cookies__float__iUfKj",text:"cookies__text__Pso0z",hidden:"cookies__hidden__dYEIU",cookiesContainer:"cookies__cookiesContainer__aSBt5",buttonWrapper:"cookies__buttonWrapper__nzpTu",lockout:"cookies__lockout__euX1X",spacer:"cookies__spacer__JjdIz",button:"cookies__button__xcRy6",accept:"cookies__accept__k17f1",settings:"cookies__settings__IKCdL"};var c=i(7867),l=i(8145);function d(){d=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(i){t.forEach((function(t){t.kind===i&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var i=e.prototype;["method","field"].forEach((function(r){t.forEach((function(t){var o=t.placement;if(t.kind===r&&("static"===o||"prototype"===o)){var n="static"===o?e:i;this.defineClassElement(n,t)}}),this)}),this)},defineClassElement:function(e,t){var i=t.descriptor;if("field"===t.kind){var r=t.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:void 0===r?void 0:r.call(e)}}Object.defineProperty(e,t.key,i)},decorateClass:function(e,t){var i=[],r=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!h(e))return i.push(e);var t=this.decorateElement(e,o);i.push(t.element),i.push.apply(i,t.extras),r.push.apply(r,t.finishers)}),this),!t)return{elements:i,finishers:r};var n=this.decorateConstructor(i,t);return r.push.apply(r,n.finishers),n.finishers=r,n},addElementPlacement:function(e,t,i){var r=t[e.placement];if(!i&&-1!==r.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");r.push(e.key)},decorateElement:function(e,t){for(var i=[],r=[],o=e.decorators,n=o.length-1;n>=0;n--){var s=t[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,o[n])(a)||a);e=c.element,this.addElementPlacement(e,t),c.finisher&&r.push(c.finisher);var l=c.extras;if(l){for(var d=0;d<l.length;d++)this.addElementPlacement(l[d],t);i.push.apply(i,l)}}return{element:e,finishers:r,extras:i}},decorateConstructor:function(e,t){for(var i=[],r=t.length-1;r>=0;r--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,t[r])(o)||o);if(void 0!==n.finisher&&i.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:i}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return(0,r.Z)(e).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+t+'"');var i=k(e.key),r=String(e.placement);if("static"!==r&&"prototype"!==r&&"own"!==r)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+r+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:t,key:i,placement:r,descriptor:Object.assign({},o)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:m(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var i=m(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:i}},runClassFinishers:function(e,t){for(var i=0;i<t.length;i++){var r=(0,t[i])(e);if(void 0!==r){if("function"!=typeof r)throw new TypeError("Finishers must return a constructor.");e=r}}return e},disallowProperty:function(e,t,i){if(void 0!==e[t])throw new TypeError(i+" can't have a ."+t+" property.")}};return e}function p(e){var t,i=k(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var r={kind:"field"===e.kind?"field":"method",key:i,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(r.decorators=e.decorators),"field"===e.kind&&(r.initializer=e.value),r}function f(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function h(e){return e.decorators&&e.decorators.length}function u(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function m(e,t){var i=e[t];if(void 0!==i&&"function"!=typeof i)throw new TypeError("Expected '"+t+"' to be a function");return i}function k(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}let y=function(e,t,i,r){var o=d();if(r)for(var n=0;n<r.length;n++)o=r[n](o);var s=t((function(e){o.initializeInstanceElements(e,a.elements)}),i),a=o.decorateClass(function(e){for(var t=[],i=function(e){return"method"===e.kind&&e.key===n.key&&e.placement===n.placement},r=0;r<e.length;r++){var o,n=e[r];if("method"===n.kind&&(o=t.find(i)))if(u(n.descriptor)||u(o.descriptor)){if(h(n)||h(o))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");o.descriptor=n.descriptor}else{if(h(n)){if(h(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");o.decorators=n.decorators}f(n,o)}else t.push(n)}return t}(s.d.map(p)),e);return o.initializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}([n.Z],(function(e,t){return{F:class extends t{constructor(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];super(t,...r),e(this),this.state={locked:(0,c.RK)(t,"appData.options.cookiesModal.lockout",!1)},this.acceptAll=this.acceptAll.bind(this),this.displaySettings=this.displaySettings.bind(this),this.stickyHeader=this.stickyHeader.bind(this)}},d:[{kind:"method",key:"componentDidMount",value:function(){if("undefined"==typeof document)return;this.state.locked&&(0,c.cn)(document.body,"cookieScrollLock"),window.history&&"scrollRestoration"in history&&(history.scrollRestoration="manual");if("fixedTop"===(0,c.RK)(this.props,"appData.options.cookiesModal.position","")&&(this.header=document.getElementById("header")||{},this.headerOffset=this.header.offsetTop,window.addEventListener("scroll",this.stickyHeader)),window.ResizeObserver){let e;this.resizeObserver=new ResizeObserver((t=>
1{e=t[0].contentRect.height,s.Z.emit("SET_COOKIE_BAR_HEIGHT",e)})),this.resizeObserver.observe(this.$cookie)}else s.Z.emit("SET_COOKIE_BAR_HEIGHT",this.$cookie.offsetHeight)}},{kind:"method",key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.stickyHeader),this.resizeObserver&&this.resizeObserver.disconnect()}},{kind:"method",key:"stickyHeader",value:function(){}},{kind:"method",key:"acceptAll",value:function(){this.props.onAccept&&this.props.onAccept(),"undefined"!=typeof document&&(0,c.IV)(document.body,"cookieScrollLock"),s.Z.emit("ACCEPT_COOKIES",this.props.categories)}},{kind:"method",key:"displaySettings",value:function(){s.Z.emit("COOKIE_PREFERENCES_OPEN")}},{kind:"method",key:"render",value:function(e){const{locked:t}=this.state,{options:i={},copy:r={}}=e.appData||{},{cookiesModal:n={}}=i,{legalCopy:s,position:d}=n,p="stickyTop"===d,f="stickyBottom"===d,h="fixedTop"===d,u="float"===d,m=n.link||(0,c.RK)(e,"appData.urls.cookieTextLink"),k=(0,c.RK)(e,"appData.styling.fontVariables");return(0,o.h)("div",{class:(0,c.WM)(a.cookiesContainer,e.hidden&&a.hidden),ref:e=>this.$cookie=e},t&&(0,o.h)("div",{class:a.lockout}),(0,o.h)("div",{class:(0,c.WM)({s:a,container:!0,top:p,float:u,fixedTop:h,bottom:f,display:this.state.display}),key:"cookie","data-section":"cookies"},(0,o.h)("div",{class:a.spacer},(0,o.h)("div",{class:(0,c.WM)(a.text,k.cookieBannerCopy)},s?(0,o.h)(l.Z,{tag:"p",class:a.questionText,content:s,markdown:!0}):(0,o.h)("p",null,(0,o.h)(l.Z,{tag:"span",markdown:!0},r.baseCopy.$COOKIE_TEXT_START),(0,o.h)("span",null," "),(0,o.h)("a",{href:m,target:"_blank",tabindex:"1",class:k.cookiePolicyLink},r.baseCopy.$COOKIE_LINK_COPY),r.baseCopy.$COOKIE_TEXT_END)),(0,o.h)("div",{class:a.buttonWrapper},(0,o.h)("button",{class:(0,c.WM)(a.accept,a.button,k.cookieAcceptBtn),onClick:this.acceptAll},r.baseCopy.$ACCEPT_COOKIES),(0,o.h)("button",{class:(0,c.WM)(a.settings,a.button,k.cookieManageBtn),onClick:this.displaySettings},r.baseCopy.$COOKIE_SETTINGS)))))}}]}}),o.wA)}}]); 2//# sourceMappingURL=cookies.bolt.js.map?v=310b72cdf745964d2db3
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.