1(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{685:function(e,t,n){"use strict";n.r(t);var i=n(154),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isOpen?n("div",{staticClass:"cookie-consent-banner",attrs:{role:"dialog","aria-labelledby":"uc-heading-title","aria-modal":"true",tabindex:"0"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.preventDefault()}}},[n("div",{ref:"panel",staticClass:"cc-panel"},[n("div",{staticClass:"container"},[e.imageSrc?n("div",{staticClass:"cc-media"},[n("div",{staticClass:"cc-media__circle"},[n("img",{attrs:{src:e.imageSrc,alt:e.$t("global.consent_banner.img.alt")}})])]):e._e(),e._v(" "),n("div",{staticClass:"cc-content"},[n("h2",{staticClass:"cc-title",attrs:{id:"uc-heading-title"}},[e._v("\n "+e._s(e.$t("global.consent_banner.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"cc-text",domProps:{innerHTML:e._s(e.$t("global.consent_banner.description"))}}),e._v(" "),e.links&&e.links.length?n("div",{staticClass:"cc-links"},e._l(e.links,(function(t,i){return n("a",{directives:[{name:"wnt",rawName:"v-wnt",value:t.label,expression:"l.label"}],key:i,ref:0===i?"firstFocusable":"",refInFor:!0,staticClass:"cc-link",attrs:{tabindex:0,href:e.checkHref(t.href),target:"_blank",rel:"noopener"}})})),0):e._e()]),e._v(" "),n("div",{staticClass:"actions"},[n("div",{staticClass:"actions__row"},[n(i.a,{class:e.$global.themes.isDominicus?"button--primary-light":"cta-primary",attrs:{tabindex:0},on:{click:e.onReject}},[e._v("\n "+e._s(e.$t("global.consent_banner.button.reject"))+"\n ")]),e._v(" "),n(i.a,{class:e.$global.themes.isDominicus?"button--primary-light":"cta-primary",attrs:{tabindex:0},on:{click:e.onConfigure}},[e._v("\n "+e._s(e.$t("global.consent_banner.button.configure"))+"\n ")])],1),e._v(" "),n(i.a,{ref:"lastFocusable",staticClass:"cta-secondary",attrs:{tabindex:0},on:{click:e.onAccept,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.preventDefault(),e.trapFocus(t))}}},[e._v("\n "+e._s(e.$t("global.consent_banner.button.accept"))+"\n ")])],1)])])]):e._e()};s._withStripped=!0;var a=n(4),o={name:"CookieConsentBanner",props:{links:{type:Array,default:function(){return[{label:"global.consent_banner.link.privacy_policy",href:"global.privacy.url"},{label:"global.consent_banner.link.imprint",href:"global.imprint.url"}]}}},mixins:[a.a],data:function(){return{isOpen:!1}},computed:{imageSrc:function(){return this.baseAssetsUrl+"/staticImages/grube_consentBanner.png"}},mounted:function(){localStorage.getItem("uc.firstLayerDone")||this.open();var e=this;window.addEventListener("ucEvent",(function(t){var n=t.detail;n&&("onAcceptAllServices"!==n.action&&"onDenyAllServices"!==n.action&&"onUpdateServices"!==n.action||(e.persistDecision(),e.close()))})),window.addEventListener("UC_UI_VIEW_CHANGED",(function(t){var n,i;"NONE"!==(null===(n=t.detail)||void 0===n?void 0:n.view)||"SECOND_LAYER"!==(null===(i=t.detail)||void 0===i?void 0:i.previousView)||localStorage.getItem("uc.firstLayerDone")||e.open()}))},methods:{open:function(){var e=this;this.isOpen=!0,this.$nextTick((function(){var t=e.$refs.firstFocusable||e.$refs.lastFocusable;t&&t.focus&&t.focus()}))},close:function(){this.isOpen=!1},trapFocus:function(e){if(e.shiftKey){var t,n=document.activeElement;if(null!=n&&null!==(t=n.previousElementSibling)&&void 0!==t&&null!==(t=t.lastElementChild)&&void 0!==t&&t.focus)return void n.previousElementSibling.lastElementChild.focus()}var i=this.$refs.firstFocusable;i.length&&i[0].focus&&i[0].focus()},printLibraryError:function(e){this.console.error(e)},persistDecision:function(){try{localStorage.setItem("uc.firstLayerDone","1")}catch(e){this.printLibraryError("Consent persist failed",e)}},onAccept:function(){var e;if(this.$emit("accept"),null!==(e=window.UC_UI)&&void 0!==e&&e.acceptAllConsents)try{window.UC_UI.acceptAllConsents()}catch(e){this.printLibraryError("UC acceptAllConsents failed",e)}this.persistDecision(),this.close()},onReject:function(){var e;if(this.$emit("reject"),null!==(e=window.UC_UI)&&void 0!==e&&e.denyAllConsents)try{window.UC_UI.denyAllConsents()}catch(e){this.printLibraryError("UC denyAllConsents failed",e)}this.persistDecision(),this.close()},onConfigure:function(){var e;if(this.$emit("configure"),null!==(e=window.UC_UI)&&void 0!==e&&e.showSecondLayer)try{window.UC_UI.showSecondLayer(),this.close()}catch(e){this.printLibraryError("UC showSecondLayer failed",e)}},checkHref:function(e){return e.startsWith("global.")?this.$tc(e):e}}},r=n(1),c=Object(r.a)(o,s,[],!1,null,null,null);c.options.__file="src/grube/components/usercentrics/CookieConsentBanner.vue";t.default=c.exports}}]);
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.