!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).MitgoConsentBar={})}(this,function(t){"use strict";var e,n,o,i,s=Object.defineProperty,r=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,c=(t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d=(t,e)=>{for(var n in e||(e={}))l.call(e,n)&&c(t,n,e[n]);if(r)for(var n of r(e))a.call(e,n)&&c(t,n,e[n]);return t},h=(t,e,n)=>c(t,"symbol"!=typeof e?e+"":e,n),u=(t,e,n)=>new Promise((o,i)=>{var s=t=>{try{l(n.next(t))}catch(j){i(j)}},r=t=>{try{l(n.throw(t))}catch(j){i(j)}},l=t=>t.done?o(t.value):Promise.resolve(t.value).then(s,r);l((n=n.apply(t,e)).next())});const p={language:"ru",business:"undefined",cookieKey:"CONSENT_MITGO",privacyPolicyUrl:"https://www.admitad.ru/privacy/",styles:{backgroundColor:"#1D1C1F",textColor:"#FFFFFF",borderRadius:"20px",padding:"20px",boxShadow:"0 4px 24px rgba(0, 0, 0, 0.15)",buttonBackgroundColor:"#007AFF",buttonHoverBackgroundColor:"#0056CC",buttonTextColor:"#FFFFFF",buttonHoverTextColor:"#FFFFFF",buttonBorderRadius:"12px",buttonPadding:"12px 24px",buttonFontSize:"16px",buttonFontWeight:"600",linkColor:"#FFFFFF",linkHoverColor:"#FFFFFF"}},v="MitgoConsentBar",y="mitgo-consent-bar-root",b="mitgo-consent-bar",f="close-consent-bar";var g=(t=>(t.INIT_INPROGRESS="INIT_INPROGRESS",t.INIT_SUCCESS="INIT_SUCCESS",t.INIT_FAILED="INIT_FAILED",t.DESTROYED="DESTROYED",t))(g||{});
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const _=globalThis,$=_.ShadowRoot&&(void 0===_.ShadyCSS||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),A=new WeakMap;let x=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=A.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&A.set(e,t))}return t}toString(){return this.cssText}};const w=$?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new x("string"==typeof t?t:t+"",void 0,m))(e)})(t):t,{is:E,defineProperty:S,getOwnPropertyDescriptor:C,getOwnPropertyNames:P,getOwnPropertySymbols:k,getPrototypeOf:T}=Object,F=globalThis,O=F.trustedTypes,U=O?O.emptyScript:"",N=F.reactiveElementPolyfillSupport,R=(t,e)=>t,H={toAttribute(t,e){switch(e){case Boolean:t=t?U:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(o){n=null}}return n}},I=(t,e)=>!E(t,e),z={attribute:!0,type:String,converter:H,reflect:!1,useDefault:!1,hasChanged:I};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=F.litPropertyMetadata||(F.litPropertyMetadata=new WeakMap);let M=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=z){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,e);void 0!==o&&S(this.prototype,t,o)}}static getPropertyDescriptor(t,e,n){var o;const{get:i,set:s}=null!=(o=C(this.prototype,t))?o:{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=null==i?void 0:i.call(this);null==s||s.call(this,e),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:z}static _$Ei(){if(this.hasOwnProperty(R("elementProperties")))return;const t=T(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(R("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(R("properties"))){const t=this.properties,e=[...P(t),...k(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const t=this._$Eu(e,n);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(w(t))}else void 0!==t&&e.push(w(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach(t=>t(this))}addController(t){var e,n;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(n=t.hostConnected)||n.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if($)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of e){const e=document.createElement("style"),o=_.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=n.cssText,t.appendChild(e)}})(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach(t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach(t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){var n;const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const s=(void 0!==(null==(n=o.converter)?void 0:n.toAttribute)?o.converter:H).toAttribute(e,o.type);this._$Em=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){var n,o,i;const s=this.constructor,r=s._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=s.getPropertyOptions(r),l="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(n=t.converter)?void 0:n.fromAttribute)?t.converter:H;this._$Em=r;const a=l.fromAttribute(e,t.type);this[r]=null!=(i=null!=a?a:null==(o=this._$Ej)?void 0:o.get(r))?i:a,this._$Em=null}}requestUpdate(t,e,n){var o,i;if(void 0!==t){const s=this.constructor,r=this[t];if(null!=n||(n=s.getPropertyOptions(t)),!((null!=(o=n.hasChanged)?o:I)(r,e)||n.useDefault&&n.reflect&&r===(null==(i=this._$Ej)?void 0:i.get(t))&&!this.hasAttribute(s._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:o,wrapped:i},s){var r,l,a;n&&!(null!=(r=this._$Ej)?r:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(l=null!=s?s:e)?l:this[t]),!0!==i||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(null!=(a=this._$Eq)?a:this._$Eq=new Set).add(t))}_$EP(){return u(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,n,o)}}let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null==(t=this._$EO)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(n)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach(t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[R("elementProperties")]=new Map,M[R("finalized")]=new Map,null==N||N({ReactiveElement:M}),(null!=(e=F.reactiveElementVersions)?e:F.reactiveElementVersions=[]).push("2.1.1");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const L=globalThis,B=L.trustedTypes,D=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+W,V=`<${q}>`,K=document,Y=()=>K.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,J="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,tt=/>/g,et=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),nt=/'/g,ot=/"/g,it=/^(?:script|style|textarea|title)$/i,st=(dt=1,(t,...e)=>({_$litType$:dt,strings:t,values:e})),rt=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),at=new WeakMap,ct=K.createTreeWalker(K,129);var dt;function ht(t,e){if(!Z(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==D?D.createHTML(e):e}class ut{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let i=0,s=0;const r=t.length-1,l=this.parts,[a,c]=((t,e)=>{const n=t.length-1,o=[];let i,s=2===e?"":3===e?"":"")),o]})(t,e);if(this.el=ut.createElement(a,n),ct.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ct.nextNode())&&l.length0){o.textContent=B?B.emptyScript:"";for(let n=0;nZ(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==lt&&G(this._$AH)?this._$AA.nextSibling.data=t:this.T(K.createTextNode(t)),this._$AH=t}$(t){var e;const{values:n,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ut.createElement(ht(o.h,o.h[0]),this.options)),o);if((null==(e=this._$AH)?void 0:e._$AD)===i)this._$AH.p(n);else{const t=new vt(i,this),e=t.u(this.options);t.p(n),this.T(e),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new ut(t)),e}k(t){Z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const i of t)o===e.length?e.push(n=new yt(this.O(Y()),this.O(Y()),this,this.options)):n=e[o],n._$AI(i),o++;o2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=lt}_$AI(t,e=this,n,o){const i=this.strings;let s=!1;if(void 0===i)t=pt(this,t,e,0),s=!G(t)||t!==this._$AH&&t!==rt,s&&(this._$AH=t);else{const o=t;let r,l;for(t=i[0],r=0;r{var o,i;const s=null!=(o=null==n?void 0:n.renderBefore)?o:e;let r=s._$litPart$;if(void 0===r){const t=null!=(i=null==n?void 0:n.renderBefore)?i:null;s._$litPart$=r=new yt(e.insertBefore(Y(),t),t,void 0,null!=n?n:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return rt}}xt._$litElement$=!0,xt.finalized=!0,null==(o=At.litElementHydrateSupport)||o.call(At,{LitElement:xt});const wt=At.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!=(i=At.litElementVersions)?i:At.litElementVersions=[]).push("4.2.1");const Et=new class{constructor(){h(this,"listeners",{})}addEventListener(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}removeEventListener(t,e){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter(t=>t!==e))}dispatchEvent(t,e){this.listeners[t]&&this.listeners[t].forEach(t=>t(e))}removeAllEventListeners(){this.listeners={}}},St={en:{content:"We use cookies to improve the operation of the site. By continuing to use the site, you agree to our {privacyPolicyLink}",privacyPolicyText:"Privacy Policy",buttonText:"I agree"},ru:{content:"Мы используем файлы cookie для улучшения работы сайта. Продолжая пользоваться сайтом, вы соглашаетесь с нашей {privacyPolicyLink}",privacyPolicyText:"Политикой конфиденциальности",buttonText:"Согласен"},de:{content:"Wir verwenden Cookies, um den Betrieb der Website zu verbessern. Durch die weitere Nutzung der Website stimmen Sie unserer {privacyPolicyLink} zu",privacyPolicyText:"Datenschutzrichtlinie",buttonText:"Ich stimme zu"},es:{content:"Utilizamos cookies para mejorar el funcionamiento del sitio. Al continuar usando el sitio, usted acepta nuestra {privacyPolicyLink}",privacyPolicyText:"Política de Privacidad",buttonText:"Estoy de acuerdo"},fr:{content:"Nous utilisons des cookies pour améliorer le fonctionnement du site. En continuant à utiliser le site, vous acceptez notre {privacyPolicyLink}",privacyPolicyText:"Politique de Confidentialité",buttonText:"Je suis d'accord"},ar:{content:"نستخدم ملفات تعريف الارتباط لتحسين عمل الموقع. من خلال الاستمرار في استخدام الموقع، فإنك توافق على {privacyPolicyLink} الخاصة بنا",privacyPolicyText:"سياسة الخصوصية",buttonText:"أوافق"},cs:{content:"Používáme soubory cookie ke zlepšení fungování webu. Pokračováním v používání webu souhlasíte s našimi {privacyPolicyLink}",privacyPolicyText:"Zásady ochrany osobních údajů",buttonText:"Souhlasím"},pl:{content:"Używamy plików cookie, aby poprawić działanie strony. Kontynuując korzystanie ze strony, wyrażasz zgodę na naszą {privacyPolicyLink}",privacyPolicyText:"Politykę prywatności",buttonText:"Zgadzam się"},pt:{content:"Utilizamos cookies para aprimorar o funcionamento do site. Ao continuar a usar o site, você concorda com a nossa {privacyPolicyLink}",privacyPolicyText:"Política de Privacidade",buttonText:"Concordo"},uk:{content:"Ми використовуємо файли cookie для покращення роботи сайту. Продовжуючи користуватися сайтом, ви погоджуєтесь з нашою {privacyPolicyLink}",privacyPolicyText:"Політикою конфіденційності",buttonText:"Погоджуюсь"}},Ct=Object.keys(St),Pt=t=>{var e,n,o;const i=null!=(o=null==(n=null==(e=window[v])?void 0:e.config)?void 0:n.language)?o:"en",s=t.split("."),r=(t,e)=>{if(0===e.length)return"string"==typeof t?t:"";const n=e[0],o=e.slice(1);return t&&"object"==typeof t&&n in t?r(t[n],o):""},l=r(St[i],s);return l||("en"!==i?r(St.en,s):"")};var kt=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,Ft=(t,e,n)=>((t,e,n)=>e in t?kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);let Ot=class extends xt{constructor(){super(...arguments),h(this,"visible",!0)}connectedCallback(){super.connectedCallback(),this.applyCustomStyles(),Et.addEventListener(f,()=>this.hide())}disconnectedCallback(){super.disconnectedCallback()}applyCustomStyles(){var t,e;const n=null==(t=window[v])?void 0:t.config;if(!(null==n?void 0:n.styles))return;const o=n.styles,i=null==(e=this.shadowRoot)?void 0:e.host;i&&(o.backgroundColor&&i.style.setProperty("--consent-bar-bg",o.backgroundColor),o.textColor&&i.style.setProperty("--consent-bar-text-color",o.textColor),o.borderRadius&&i.style.setProperty("--consent-bar-border-radius",o.borderRadius),o.padding&&i.style.setProperty("--consent-bar-padding",o.padding),o.boxShadow&&i.style.setProperty("--consent-bar-box-shadow",o.boxShadow),o.buttonBackgroundColor&&i.style.setProperty("--consent-bar-button-bg",o.buttonBackgroundColor),o.buttonHoverBackgroundColor&&i.style.setProperty("--consent-bar-button-hover-bg",o.buttonHoverBackgroundColor),o.buttonTextColor&&i.style.setProperty("--consent-bar-button-text-color",o.buttonTextColor),o.buttonHoverTextColor&&i.style.setProperty("--consent-bar-button-hover-text-color",o.buttonHoverTextColor),o.buttonBorderRadius&&i.style.setProperty("--consent-bar-button-border-radius",o.buttonBorderRadius),o.buttonPadding&&i.style.setProperty("--consent-bar-button-padding",o.buttonPadding),o.buttonFontSize&&i.style.setProperty("--consent-bar-button-font-size",o.buttonFontSize),o.buttonFontWeight&&i.style.setProperty("--consent-bar-button-font-weight",o.buttonFontWeight),o.linkColor&&i.style.setProperty("--consent-bar-link-color",o.linkColor),o.linkHoverColor&&i.style.setProperty("--consent-bar-link-hover-color",o.linkHoverColor))}handleAccept(){Et.dispatchEvent(f)}hide(){this.visible=!1}renderContent(){var t,e;const n=Pt("content"),o=Pt("privacyPolicyText"),i=(null==(e=null==(t=window[v])?void 0:t.config)?void 0:e.privacyPolicyUrl)||"#",s=n.replace("{privacyPolicyLink}",`${o}`);return st``}render(){return this.visible?st`
${this.renderContent()}
`:st``}};function Ut(t){return null!==function(t){const e=t+"=",n=document.cookie.split(";");for(let o=0;o{const n=1===t.length?t[0]:e.reduce((e,n,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[o+1],t[0]);return new x(n,t,m)})`
:host {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
max-width: 1200px;
width: calc(100% - 40px);
z-index: 999999;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.consent-bar {
display: flex;
align-items: center;
gap: 20px;
padding: var(--consent-bar-padding, 20px);
border-radius: var(--consent-bar-border-radius, 20px);
background: var(--consent-bar-bg, #1D1C1F);
box-shadow: var(--consent-bar-box-shadow, 0 4px 24px rgba(0, 0, 0, 0.15));
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.consent-bar__content {
flex: 1;
color: var(--consent-bar-text-color, #FFFFFF);
font-size: var(--consent-bar-font-size, 16px);
line-height: var(--consent-bar-line-height, 24px);
margin: 0;
}
.consent-bar__content a {
color: var(--consent-bar-link-color, #FFFFFF);
text-decoration: underline;
transition: opacity 0.2s ease;
}
.consent-bar__content a:hover {
text-decoration: none;
opacity: 0.8;
color: var(--consent-bar-link-hover-color, #FFFFFF);
}
.consent-bar__button {
background: var(--consent-bar-button-bg, #007AFF);
color: var(--consent-bar-button-text-color, #FFFFFF);
border: none;
border-radius: var(--consent-bar-button-border-radius, 12px);
padding: var(--consent-bar-button-padding, 12px 24px);
font-size: var(--consent-bar-button-font-size, 16px);
font-weight: var(--consent-bar-button-font-weight, 600);
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
min-width: 120px;
}
.consent-bar__button:hover {
background: var(--consent-bar-button-hover-bg, #0056CC);
color: var(--consent-bar-button-hover-text-color, #FFFFFF);
transform: translateY(-1px);
}
.consent-bar__button:active {
transform: translateY(0);
}
@media (max-width: ${768}px) {
:host {
bottom: 0;
left: 0;
transform: none;
width: 100%;
max-width: none;
}
.consent-bar {
flex-direction: column;
border-radius: 20px 20px 0 0;
padding: 24px 20px;
gap: 16px;
}
.consent-bar__content {
text-align: center;
font-size: 14px;
line-height: 20px;
}
.consent-bar__button {
width: 100%;
padding: 16px 24px;
font-size: 16px;
}
}
@media (prefers-reduced-motion: reduce) {
.consent-bar {
animation: none;
}
}
`),Ot=((t,e,n,o)=>{for(var i,s=o>1?void 0:o?Tt(e,n):e,r=t.length-1;r>=0;r--)(i=t[r])&&(s=i(s)||s);return s})([(t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})(b)],Ot);class Nt{constructor(t={}){h(this,"consentBarElement",null),window[v]=window[v]||{},window[v].config=d(d({},p),t),window[v].status=g.INIT_INPROGRESS,window[v].alreadyInitialized=!1}init(){return u(this,null,function*(){return new Promise((t,e)=>{try{if(Ut(window[v].config.cookieKey))return window[v].status=g.INIT_SUCCESS,t();this.destroy();const e=`<${b}>${b}>`,n=document.createElement("div");n.id=y,n.innerHTML=e,document.body.appendChild(n),this.consentBarElement=document.querySelector(b),Et.addEventListener(f,this.handleConsentAccepted.bind(this)),window[v].status=g.INIT_SUCCESS,window[v].alreadyInitialized=!0,t()}catch(n){console.error("ConsentBar initialization failed:",n),window[v].status=g.INIT_FAILED,e(n)}})})}destroy(){var t;Et.removeAllEventListeners(),null==(t=document.getElementById(y))||t.remove(),this.consentBarElement=null,window[v].status=g.DESTROYED}setLanguage(t){const e=this.getSupportedLanguages();t?e.includes(t)?(window[v].config.language=t,Ut(window[v].config.cookieKey)||(this.destroy(),this.init())):console.error("The language you selected is not supported!"):console.error('The language you selected is not defined! Please check available languages with "getSupportedLanguages" method.')}getCurrentLanguage(){return window[v].config.language}getSupportedLanguages(){return Ct}handleConsentAccepted(){!function(t,e,n=365){const o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),document.cookie=`${t}=${e}; expires=${o.toUTCString()}; path=/`}(window[v].config.cookieKey,"1"),this.destroy()}}window.MitgoConsentBar=Nt,t.MitgoConsentBar=Nt,t.default=Nt,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
//# sourceMappingURL=index.js.map