import{r as e,h as i}from"./p-345561fe.js";const n=class{constructor(i){e(this,i),this.TRACKINGID="UA-86853400-3",this.TEXT="We use Google Analytics to improve our documentation for our customers. Do you agree to the use of Google Analytics?"}render(){return this.cookieStatus==t.UNKOWN&&0==this.inFrame?i("div",null,i("p",null,this.infoText||this.TEXT),i("span",null,i("button",{onClick:()=>this.accept()},"Accept"),i("button",{onClick:()=>this.decline()},"Decline"))):null}componentWillLoad(){let e=this.getCookie("cookieconsent_status"),i=this.getCookieStatus(e);i==t.ALLOWED&&this.loadGA(),this.cookieStatus=i,this.inFrame=window.location!==window.parent.location}decline(){document.cookie="cookieconsent_status=decline",this.cookieStatus=t.DECLINE}accept(){document.cookie="cookieconsent_status=allow",this.loadGA(),this.cookieStatus=t.ALLOWED}loadGA(){var e=this.trackingId||this.TRACKINGID,i=document.createElement("script");i.async=!0,i.src=`https://www.googletagmanager.com/gtag/js?id=${e}&anonymize_ip=true`,document.getElementsByTagName("head")[0].appendChild(i)}getCookie(e){for(var i=e+"=",n=document.cookie.split(";"),t=0;t<n.length;t++){for(var o=n[t];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(i))return o.substring(i.length,o.length)}return""}getCookieStatus(e){return"allow"===e?t.ALLOWED:"decline"===e?t.DECLINE:t.UNKOWN}};var t;!function(e){e[e.ALLOWED=0]="ALLOWED",e[e.DECLINE=1]="DECLINE",e[e.UNKOWN=2]="UNKOWN"}(t||(t={})),n.style="div.sc-google-analytics-banner{background:#cfd2d3;color:#122849;position:fixed;padding:10px;bottom:0px;left:0px;width:100%;z-index:10000000000000;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline;color:#122849;font-family:Work Sans,sans-serif;font-weight:300;line-height:1.15;margin:0}@media screen and (max-width: 450px){span.sc-google-analytics-banner{padding-right:10px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline}button.sc-google-analytics-banner{display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border:1px solid #f2f3f3;border-radius:.15rem;height:1.75rem;color:#122849;font-size:1.0rem;padding:0 .75em;cursor:pointer;margin:10px}p.sc-google-analytics-banner{line-height:1.6;font-size:1.0rem}}@media screen and (min-width: 450px){span.sc-google-analytics-banner{padding-right:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline}button.sc-google-analytics-banner{display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border:1px solid #f2f3f3;border-radius:.15rem;height:1.75rem;color:#122849;font-size:1.0rem;padding:0 .75em;cursor:pointer;margin:10px}p.sc-google-analytics-banner{line-height:1.6;font-size:1.1rem}}@media screen and (min-width: 1200px){span.sc-google-analytics-banner{padding-right:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline}button.sc-google-analytics-banner{display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border:1px solid #f2f3f3;border-radius:.15rem;height:1.75rem;color:#122849;font-size:1.0rem;padding:0 .75em;cursor:pointer;margin:10px}p.sc-google-analytics-banner{line-height:1.6;font-size:1.1rem}}";export{n as google_analytics_banner}