@claspo/components 1.10.34-mss1 → 1.10.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const t={DESKTOP:"desktop",MOBILE:"mobile"};function e(e){return Object.values(t).map(t=>({type:"GROUP",propPath:["adaptiveStyles",t],children:e}))}const n="cl-";function o(t){return n+t}function r(t){return"cl-"+t}function i(t,e,n){var o;return null===(o=null==t?void 0:t[e])||void 0===o?void 0:o.find(t=>t.element===n)}function s(t=[]){return t.map(t=>Object.assign(Object.assign({},t),{styleAttributes:Object.assign({},t.styleAttributes)}))}const a={name:"SysConsentComponent",componentType:"CONSENT",version:"1.0.0",contextMenuModel:e([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:e([{type:"CONTROL",name:"SIZE",elementProp:"styleAttributes",element:"host",params:{height:{hide:!0}}},{type:"CONTROL",name:"MARGIN",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"CONTAINER_PADDING",elementProp:"styleAttributes",element:"host"}]),propertyPaneModel:{content:e([{type:"CONTROL",name:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill","hug"]},height:{options:["fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"label"}]},{type:"CONTROL",name:"INSERT_BLOCK",params:[{element:"label",label:"DOCUMENT_TEXT",isLinkAvailable:!0,origin:!0}]},{type:"CONTROL",name:"MULTIPLE_INPUT_SIZE",element:"input",params:{inputType:"CHECKBOX"}},{type:"CONTROL",name:"BACKGROUND",element:"input",elementProp:"markerStyleAttributes",params:{label:"DOCUMENT_CHECKBOX_BACKGROUND_DEFAULT_TITLE",property:"defaultBackground"}},{type:"CONTROL",name:"BACKGROUND",element:"input",elementProp:"markerStyleAttributes",params:{label:"DOCUMENT_CHECKBOX_BACKGROUND_SELECTED_TITLE",property:"selectedBackground"}},{type:"CONTROL",name:"BORDERS",elementProp:"styleAttributes",element:"input"},{type:"CONTROL",name:"BOX_SHADOW",elementProp:"styleAttributes",element:"input"},{type:"CONTROL",name:"BORDER_RADIUS",elementProp:"styleAttributes",element:"input"},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}])},events:{dispatch:[],listen:[]},i18nPropPaths:["content,label"],i18nPropertyPaneModel:{content:[{type:"CONTROL",name:"INSERT_BLOCK",params:[{element:"text",label:"DOCUMENT_TEXT",isLinkAvailable:!0,origin:!1}]}]},i18n:{en:{"control,validation,validationErrors,REQUIRED":"Accept consent to subscribe","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ru:{"control,validation,validationErrors,REQUIRED":"Примите соглашение для подписки","content,label":'Я даю согласие на обработку своих персональных данных и ознакомлен с <a href="https://example.com/termsofuse" target="_blank">условиями использования сервиса</a>'},uk:{"control,validation,validationErrors,REQUIRED":"Прийміть угоду для підписки","content,label":'Я даю згоду на обробку своїх персональних даних та ознайомлений з <a href="https://example.com/termsofuse" target="_blank">умовами використання сервісу</a>'},es:{"control,validation,validationErrors,REQUIRED":"Aceptar el consentimiento para suscribirse","content,label":'Doy mi consentimiento para el procesamiento de mis datos personales y he leído y acepto los <a href="https://example.com/termsofuse" target="_blank">Términos de uso</a>'},de:{"control,validation,validationErrors,REQUIRED":"Zustimmung zum Abonnement akzeptieren","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},fr:{"control,validation,validationErrors,REQUIRED":"Accepter le consentement pour s'abonner","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},it:{"control,validation,validationErrors,REQUIRED":"Accetti il consenso per iscriversi","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},pt:{"control,validation,validationErrors,REQUIRED":"Aceitar consentimento para subscrever","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ro:{"control,validation,validationErrors,REQUIRED":"Acceptați consimțământul pentru abonare","content,label":'Sunt de acord cu prelucrarea datelor mele personale și am citit și accept <a href="https://example.com/termsofuse" target="_blank">Termenii de utilizare</a>'},bg:{"control,validation,validationErrors,REQUIRED":"Приемете съгласието, за да се абонирате","content,label":'Съгласен съм с обработката на личните ми данни и прочетох и приемам <a href="https://example.com/termsofuse" target="_blank">Условията за ползване</a>'},cs:{"control,validation,validationErrors,REQUIRED":"Pro odběr přijměte souhlas","content,label":'Souhlasím se zpracováním mých osobních údajů a přečetl jsem si a přijímám <a href="https://example.com/termsofuse" target="_blank">Podmínky použití</a>'},el:{"control,validation,validationErrors,REQUIRED":"Αποδέχεστε τη συναίνεση στην εγγραφή","content,label":'Συναινώ στην επεξεργασία των προσωπικών μου δεδομένων και έχω διαβάσει και αποδέχομαι τους <a href="https://example.com/termsofuse" target="_blank">Όρους Χρήσης</a>'},nl:{"control,validation,validationErrors,REQUIRED":"Accepteer toestemming om u te abonneren","content,label":'Jeg giver samtykke til behandlingen af mine personlige data, og jeg har læst og accepterer <a href="https://example.com/termsofuse" target="_blank">Brugervilkår</a>'},pl:{"control,validation,validationErrors,REQUIRED":"Wyraź zgodę, aby zasubskrybować","content,label":'Wyrażam zgodę na przetwarzanie moich danych osobowych oraz zapoznałem się i akceptuję <a href="https://example.com/termsofuse" target="_blank">Warunki użytkowania</a>'},sv:{"control,validation,validationErrors,REQUIRED":"Acceptera samtycke för att prenumerera","content,label":'Jag samtycker till behandlingen av mina personuppgifter och jag har läst och accepterar <a href="https://example.com/termsofuse" target="_blank">Användarvillkor</a>'},tr:{"control,validation,validationErrors,REQUIRED":"Abone olmak için onayı kabul edin","content,label":'Kişisel verilerimin işlenmesine izin veriyorum ve <a href="https://example.com/termsofuse" target="_blank">Kullanım Koşulları</a>\'nı okudum ve kabul ediyorum.'},ar:{"control,validation,validationErrors,REQUIRED":"قبول الموافقة على الاشتراك","content,label":'أوافق على معالجة بياناتي الشخصية وقد قرأت وأوافق على <a href="https://example.com/termsofuse" target="_blank"> شروط الاستخدام </a>'},zh:{"control,validation,validationErrors,REQUIRED":"接受同意订阅","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},da:{"control,validation,validationErrors,REQUIRED":"Accepter samtykke til at abonnere","content,label":'Jeg giver samtykke til behandlingen af ​​mine personoplysninger, og jeg har læst og accepterer <a href="https://example.com/termsofuse" target="_blank">Vilkår for brug</a>'},he:{"control,validation,validationErrors,REQUIRED":"קבלו הסכמה להירשם","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},fi:{"control,validation,validationErrors,REQUIRED":"Anna suostumus tilaukseen","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},hi:{"control,validation,validationErrors,REQUIRED":"सदस्यता लेने के लिए सहमति स्वीकार करें","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},hr:{"control,validation,validationErrors,REQUIRED":"Prihvatite privolu za pretplatu","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},hu:{"control,validation,validationErrors,REQUIRED":"Az előfizetéshez való hozzájárulás elfogadása","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},id:{"control,validation,validationErrors,REQUIRED":"Terima persetujuan untuk berlangganan","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ja:{"control,validation,validationErrors,REQUIRED":"サブスクリプションへの同意を承諾","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ko:{"control,validation,validationErrors,REQUIRED":"구독하려면 동의 수락","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},no:{"control,validation,validationErrors,REQUIRED":"Godta samtykke for å abonnere","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},sk:{"control,validation,validationErrors,REQUIRED":"Udeľte súhlas s odberom","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},sl:{"control,validation,validationErrors,REQUIRED":"Sprejmite soglasje za naročnino","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},sr:{"control,validation,validationErrors,REQUIRED":"Prihvatite saglasnost za pretplatu","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'}},props:{content:{label:'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},control:{name:"consentId",defaultValue:!1,validation:{required:!0,validationErrors:{REQUIRED:"Accept consent to subscribe"}}},adaptiveStyles:(l=[{element:"host",styleAttributes:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",_paddingEnabled:!1,width:"100%",minWidth:null,height:"auto",marginTop:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",_marginEnabled:!1},classes:""},{element:"input",styleAttributes:{borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"1px",borderTopColor:"rgb(68, 68, 68)",borderBottomWidth:"1px",borderBottomColor:"rgb(68, 68, 68)",borderLeftWidth:"1px",borderLeftColor:"rgb(68, 68, 68)",borderRightWidth:"1px",borderRightColor:"rgb(68, 68, 68)",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",boxShadow:"none"},markerStyleAttributes:{inputSize:"22px",inputToTextGapSize:"13px",defaultBackground:"rgb(255, 255, 255)",selectedBackground:"var(--cl-schema-accent, rgb(255, 255, 255))"},classes:""},{element:"label",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))",textAlign:"start",lineHeight:"120%",fontWeight:"400",fontSize:"14px",textShadow:"none"},classes:""}],Object.values(t).reduce((t,e)=>Object.assign(t,{[e]:s(l)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysConsentComponent/assets/img/component-icon.svg",label:{en:"Data processing and terms of use",ru:"Обработка данных и условия использования",uk:"Обробка даних та умови використання",es:"Tratamiento de datos y condiciones de uso",fr:"Traitement des données et conditions d'utilisation",de:"Datenverarbeitung und Nutzungsbedingungen",it:"Trattamento dei dati e condizioni d'uso",pt:"Processamento de dados e termos de utilização",ro:"Prelucrarea datelor și condițiile de utilizare",bg:"Обработка на данни и условия за ползване",cs:"Zpracování dat a podmínky použití",el:"Επεξεργασία δεδομένων και όροι χρήσης",nl:"Gegevensverwerking en gebruiksvoorwaarden",pl:"Przetwarzanie danych i warunki użytkowania",sv:"Databehandling och användarvillkor",tr:"Veri işleme ve kullanım koşulları",ar:"معالجة البيانات وشروط الاستخدام",zh:"数据处理和使用条款",da:"Databehandling og brugsbetingelser",he:"עיבוד נתונים ותנאי השימוש"}},syncEnabled:!0,stylesImitationEnabled:!0};var l;const c="validationStatusChanged",d="touchedStatusChanged";class h{static size(t){return{width:this.width(t),height:this.height(t)}}static width(t){var e;const n=t||document;return Math.max(n.documentElement.clientWidth,(null===(e=n.defaultView)||void 0===e?void 0:e.innerWidth)||0)}static height(t){var e;const n=t||document;return Math.max(n.documentElement.clientHeight,(null===(e=n.defaultView)||void 0===e?void 0:e.innerHeight)||0)}static scrollbarWidth(t){var e;const n=t||document;return((null===(e=n.defaultView)||void 0===e?void 0:e.innerWidth)||0)-n.documentElement.clientWidth}}function u(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}var p=Array.prototype.concat,m=Array.prototype.slice,g=function(t){for(var e=[],n=0,o=t.length;n<o;n++){var r=t[n];u(r)?e=p.call(e,m.call(r)):e.push(r)}return e};g.wrap=function(t){return function(){return t(g(arguments))}};const b=g;var f={},v=Object.hasOwnProperty,y=Object.create(null);for(var E in f)v.call(f,E)&&(y[f[E]]=E);var O={to:{},get:{}};function S(t,e,n){return Math.min(Math.max(e,t),n)}O.get=function(t){var e,n;return"hsl"===t.substring(0,3).toLowerCase()?(e=O.get.hsl(t),n="hsl"):(e=O.get.rgb(t),n="rgb"),e?{model:n,value:e}:null},O.get.rgb=function(t){if(!t)return null;var e,n,o,r=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var i=2*n;r[n]=parseInt(e.slice(i,i+2),16)}o&&(r[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)r[n]=parseInt(e[n]+e[n],16);o&&(r[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)r[n]=parseInt(e[n+1],0);e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:v.call(f,e[1])?((r=f[e[1]])[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}for(n=0;n<3;n++)r[n]=S(r[n],0,255);return r[3]=S(r[3],0,1),r},O.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,S(parseFloat(e[2]),0,100),S(parseFloat(e[3]),0,100),S(isNaN(n)?1:n,0,1)]}return null},O.to.rgb=function(){var t=b(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},O.to.hsl=function(){var t=b(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};const T=O,k={},A={};for(const t of Object.keys(k))A[k[t]]=t;const C={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"}};Math.pow(6/29,3);for(const t of Object.keys(C)){if(!("channels"in C[t]))throw new Error("missing channels property: "+t);if(!("labels"in C[t]))throw new Error("missing channel labels property: "+t);if(C[t].labels.length!==C[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=C[t];delete C[t].channels,delete C[t].labels,Object.defineProperty(C[t],"channels",{value:e}),Object.defineProperty(C[t],"labels",{value:n})}C.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,r=Math.min(e,n,o),i=Math.max(e,n,o),s=i-r;let a,l;i===r?a=0:e===i?a=(n-o)/s:n===i?a=2+(o-e)/s:o===i&&(a=4+(e-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(r+i)/2;return l=i===r?0:c<=.5?s/(i+r):s/(2-i-r),[a,100*l,100*c]},C.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let r,i,s;if(0===n)return s=255*o,[s,s,s];r=o<.5?o*(1+n):o+n-o*n;const a=2*o-r,l=[0,0,0];for(let t=0;t<3;t++)i=e+1/3*-(t-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(r-a)*i:2*i<1?r:3*i<2?a+(r-a)*(2/3-i)*6:a,l[t]=255*s;return l};const R=C;function x(t,e){return function(n){return e(t(n))}}function _(t,e){const n=[e[t].parent,t];let o=R[e[t].parent][t],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),o=x(R[e[r].parent][r],o),r=e[r].parent;return o.conversion=n,o}const I={};Object.keys(R).forEach(t=>{I[t]={},Object.defineProperty(I[t],"channels",{value:R[t].channels}),Object.defineProperty(I[t],"labels",{value:R[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(R);for(let n=e.length,o=0;o<n;o++)t[e[o]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),o=Object.keys(R[t]);for(let r=o.length,i=0;i<r;i++){const r=o[i],s=e[r];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(r))}}return e}(t),n={},o=Object.keys(e);for(let t=o.length,r=0;r<t;r++){const t=o[r];null!==e[t].parent&&(n[t]=_(t,e))}return n}(t);Object.keys(e).forEach(n=>{const o=e[n];I[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const o=t(e);if("object"==typeof o)for(let t=o.length,e=0;e<t;e++)o[e]=Math.round(o[e]);return o};return"conversion"in t&&(e.conversion=t.conversion),e}(o),I[t][n].raw=function(t){const e=function(...e){const n=e[0];return null==n?n:(n.length>1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)})});const w=I,L=["keyword","gray","hex"],N={};for(const t of Object.keys(w))N[[...w[t].labels].sort().join("")]=t;const P={};function M(t,e){if(!(this instanceof M))return new M(t,e);if(e&&e in L&&(e=null),e&&!(e in w))throw new Error("Unknown model: "+e);let n,o;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof M)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=T.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,o=w[this.model].channels,this.color=e.value.slice(0,o),this.valpha="number"==typeof e.value[o]?e.value[o]:1}else if(t.length>0){this.model=e||"rgb",o=w[this.model].channels;const n=Array.prototype.slice.call(t,0,o);this.color=D(n,o),this.valpha="number"==typeof t[o]?t[o]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const o=e.sort().join("");if(!(o in N))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=N[o];const{labels:r}=w[this.model],i=[];for(n=0;n<r.length;n++)i.push(t[r[n]]);this.color=D(i)}if(P[this.model])for(o=w[this.model].channels,n=0;n<o;n++){const t=P[this.model][n];t&&(this.color[n]=t(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}M.prototype={toString(){return this.string()},string(t){let e=this.model in T.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const n=1===e.valpha?e.color:[...e.color,this.valpha];return T.to[e.model](n)},round(t){return t=Math.max(t||0,0),new M([...this.color.map(j(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new M([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e}};for(const t of Object.keys(w)){if(L.includes(t))continue;const{channels:e}=w[t];M.prototype[t]=function(...e){return this.model===t?new M(this):e.length>0?new M(e,t):new M([...U(w[this.model][t].raw(this.color)),this.valpha],t)},M[t]=function(...n){let o=n[0];return"number"==typeof o&&(o=D(n,e)),new M(o,t)}}function j(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function U(t){return Array.isArray(t)?t:[t]}function D(t,e){for(let n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}const B=M;function F(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function V(t,e,n){const o=function(t,e){let n=getComputedStyle(t)[e]||t.style.getPropertyValue(e);if(n&&n.includes("var(")&&(n=function(t){const e=String(t).match(/var\([^,]+,\s*(rgb(?:a)?\([^)]+\))\)/);return e&&e[1]?e[1]:null}(n)||void 0),n&&n.includes("rgb")&&(!(n.split("rgb").length>2)||n.includes("#")))return n}(e,n);if(o){const e=B(o).alpha(.5).string();return t.classList.add("focus-outline-defined"),t.style.setProperty("--clFocusOutline",`3px solid ${e}`),e}return null}function W(t){const{width:e,height:n}=t.getBoundingClientRect(),{marginBottom:o,marginTop:r,marginLeft:i,marginRight:s}=window.getComputedStyle(t);return{width:e+parseInt(i,10)+parseInt(s,10),height:n+parseInt(r,10)+parseInt(o,10)}}function z(t,e,n,o,r){switch(t.position){case"top":return{left:`${H(e,n,o,r)}px`,top:t.availableSpaceAboveTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"bottom":return{left:`${H(e,n,o,r)}px`,bottom:t.availableSpaceBelowTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"left":return{left:t.availableSpaceToTheLeftSideOfTheTrigger-e.width-t.contentWidth-t.horizontalOffset+"px",top:`${$(0,t)}px`};case"right":return{right:t.availableSpaceToTheRightSideOfTheTrigger-t.contentWidth-t.horizontalOffset+"px",top:`${$(0,t)}px`}}}function H(t,e,n,o){let r=n?t.x+t.width/2-e.width/2:t.x;return r<0&&(r=0),r+e.width>h.width(o)&&(r-=r+e.width-h.width(o)),r}function $(t,e){let n=e.availableSpaceAboveTriggerElem;return e.contentHeight>e.availableSpaceBelowTriggerElem&&(n-=e.contentHeight-e.availableSpaceBelowTriggerElem),n}function G(t){return t.replace(/[\u0000- ]/g,"").toLowerCase()}function Q(t){const{element:e,html:n,appendHtml:o}=t,r=function(t){if(null==t)return"";if("string"!=typeof t)return String(t);if(""===t)return"";if(!/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.test(t))return t;const e=(new DOMParser).parseFromString(t,"text/html");return e.querySelectorAll('script, style, link[rel="stylesheet"], meta[http-equiv], object, embed').forEach(t=>t.remove()),e.querySelectorAll("*").forEach(t=>{["onclick","onload","onerror","onmouseover","onfocus","onblur","onkeyup","onkeydown","onchange","onsubmit","onmouseenter","onmouseleave","onmouseout","oncontextmenu","ondrag","ondrop","srcdoc"].forEach(e=>t.removeAttribute(e)),Array.from(t.attributes).forEach(e=>{e.name.startsWith("on")&&t.removeAttribute(e.name)});const e=t.tagName.toUpperCase();if("A"!==e&&"AREA"!==e||["href","xlink:href"].forEach(e=>{const n=G(t.getAttribute(e)||"");(n.startsWith("javascript:")||n.startsWith("data:"))&&t.removeAttribute(e)}),"IMG"===e||"IFRAME"===e){const e=G(t.getAttribute("src")||"");(e.startsWith("javascript:")||e.startsWith("data:text/html"))&&t.removeAttribute("src")}["action","formaction"].forEach(e=>{G(t.getAttribute(e)||"").startsWith("javascript:")&&t.removeAttribute(e)})}),e.body.innerHTML}(n);o?e.innerHTML+=r:e.innerHTML=r}const K="cl-tooltip-text-styles",q="cl-overlay-tooltip-text",J=Symbol.for("cl-tooltip-text-owner"),X=`\n .cl-tooltip-text {\n z-index: ${Number.MAX_SAFE_INTEGER};\n width: max-content;\n height: fit-content;\n visibility: hidden;\n background-color: white;\n color: #000;\n border: 1px solid rgb(194, 194, 194);\n border-radius: 5px;\n padding: 5px 10px;\n position: fixed;\n max-width: 300px;\n max-height: 100vh;\n box-shadow: 0 1px 5px rgba(0,0,0,.28);\n font-size: 14px;\n }\n\n .cl-tooltip-text[cl-tooltip-position='top']:before {\n content: "";\n position: absolute;\n top: 100%;\n left: calc(50% - 13px);\n border-width: 12px;\n border-style: solid;\n border-color: rgb(194, 194, 194) transparent transparent transparent;\n }\n\n .cl-tooltip-text[cl-tooltip-position='top']:after {\n content: "";\n position: absolute;\n top: 100%;\n left: calc(50% - 5px);\n margin-left: -8px;\n margin-top: -2px;\n border-width: 12px;\n border-style: solid;\n border-color: white transparent transparent transparent;\n }\n\n .cl-tooltip-text[cl-tooltip-position='bottom']:before {\n content: "";\n position: absolute;\n top: -24px;\n left: calc(50% - 9px);\n border-width: 12px;\n border-style: solid;\n border-color: transparent transparent rgb(194, 194, 194) transparent;\n }\n\n .cl-tooltip-text[cl-tooltip-position='bottom']:after {\n content: "";\n position: absolute;\n top: -22px;\n left: calc(50% - 4px);\n margin-left: -5px;\n margin-bottom: -2px;\n border-width: 12px;\n border-style: solid;\n border-color: transparent transparent white transparent;\n }\n`;function Y(t,e,n){!function(t){if((t=t||document).head.querySelector(`#${K}`))return;const e=document.createElement("style");e.setAttribute("id",K),Q({element:e,html:X}),t.head.appendChild(e)}(n=n||document);const o=function(t,e){const n=(e=e||document).getElementById(q)||e.createElement("div");return n.classList.add("cl-tooltip-text"),n.textContent!==t&&(n.textContent=t,n.style=null),n.id||(n.id=q),n}(e,n);n.body.append(o),o.style.visibility="visible",o[J]=t,function(t){const{triggerElement:e,tooltipElement:n,offset:o=10,htmlDocumentObject:r}=t,i=function(t,e,n,o,r,i){const s=function(t,e,n,o,r){const i=function(t,e,n,o){const r=h.width(o),{right:i}=t.getBoundingClientRect(),s=r-n-i-h.scrollbarWidth(o);return{horizontalOffset:n,contentWidth:W(e).width,availableSpaceToTheLeftSideOfTheTrigger:i-n,availableSpaceToTheRightSideOfTheTrigger:s}}(t,e,n,r),s=function(t,e,n,o){const r=h.height(o),{top:i,bottom:s}=t.getBoundingClientRect();return{verticalOffset:n,contentHeight:W(e).height,availableSpaceAboveTriggerElem:i-n,availableSpaceBelowTriggerElem:r-s-n}}(t,e,n,r);let a="undefined";const l={bottom:s.availableSpaceBelowTriggerElem>=s.contentHeight,top:s.availableSpaceAboveTriggerElem>=s.contentHeight,right:i.availableSpaceToTheRightSideOfTheTrigger>=i.contentWidth,left:i.availableSpaceToTheLeftSideOfTheTrigger>=i.contentWidth};if(l.top?a="top":l.bottom?a="bottom":l.right?a="right":l.left&&(a="left"),o&&l[o]&&(a=o),"undefined"===a){const t=Math.max(s.availableSpaceBelowTriggerElem,s.availableSpaceAboveTriggerElem,i.availableSpaceToTheRightSideOfTheTrigger,i.availableSpaceToTheLeftSideOfTheTrigger);t===s.availableSpaceBelowTriggerElem?a="bottom":t===s.availableSpaceAboveTriggerElem?a="top":t===i.availableSpaceToTheRightSideOfTheTrigger?a="right":t===i.availableSpaceToTheLeftSideOfTheTrigger&&(a="left")}return Object.assign(Object.assign(Object.assign({},s),i),{position:a})}(t,e,n,o,i=i||document);return function(t,e){const{marginBottom:n,marginTop:o}=window.getComputedStyle(e);if("top"===t.position)F(e,{"margin-top":`${parseInt(o,10)+parseInt(n,10)}px`}),F(e,{"margin-bottom":"0px"});else if("bottom"===t.position)F(e,{"margin-bottom":`${parseInt(n,10)+parseInt(o,10)}px`}),F(e,{"margin-top":"0px"});else{const t=(parseInt(n,10)+parseInt(o,10))/2+"px";F(e,{"margin-top":t,"margin-bottom":t})}}(s,e),{coordinates:z(s,t.getBoundingClientRect(),e.getBoundingClientRect(),r,i),position:s.position}}(e,n,o,"top",!0,r);n.setAttribute("cl-tooltip-position",i.position),F(n,i.coordinates)}({triggerElement:t,tooltipElement:o,htmlDocumentObject:n})}function Z(t,e){const n=(e=e||document).getElementById(q),o=n&&n[J];!n||!o||o!==t&&o.isConnected||(n.remove(),function(t){const e=(t=t||document).head.querySelector(`#${K}`);e&&e.remove()}(e))}function tt(t){return[t.getConfig("appearanceLanguage"),t.getConfig("browserLanguage"),"en"].filter(t=>!!t)}function et(t,e){return e.reduce((e,n)=>{if(e)return e;const o=function(t,e){if(!t)return null;if(e[t])return{translations:e[t],language:t};const n=function(t){return t.includes("-")?t.split("-")[0].toLowerCase():t.includes("_")?t.split("_")[0].toLowerCase():t}(t);return e[n]?{translations:e[n],language:n}:null}(n,t);return o||null},null)}const nt="VIEW",ot="CONTAINER",rt="INPUT",it="BUTTON",st="CONSENT",at="COLUMN";var lt,ct;(ct=lt||(lt={})).SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",ct.REQUEST="REQUEST",ct.DISPATCH_EVENT="DISPATCH_EVENT",ct.GO_TO_VIEW="GO_TO_VIEW",ct.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",ct.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",ct.SHOW_WIDGET="SHOW_WIDGET",ct.OPEN_LINK="OPEN_LINK",ct.CLOSE_WIDGET="CLOSE_WIDGET",ct.CLICK="CLICK";const dt=lt;var ht,ut;class pt{static sortActions(t){const e={[dt.CLOSE_WIDGET]:-1,[dt.OPEN_LINK]:-2,[dt.SHOW_WIDGET]:1,[dt.SUBSCRIBE_CONTACT]:2,[dt.REQUEST]:3},n=t=>void 0!==e[t.type]?e[t.type]:0;return[...t].sort((t,e)=>n(t)>n(e)?-1:n(t)<n(e)?1:0)}constructor(t,e){this.config=t,this.actions=pt.sortActions(e),this.listener=null,this.targetElements=[],this.eventsQueue=[],this.state=null,this.postponed=!1}activate(t,e,n){this.state=t;const o=n(),i=o.getAttribute(r("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,i)}),this.listener=t=>{const e=t.composedPath().filter(t=>t instanceof HTMLElement&&t.getAttribute(r("type")));let n=0;for(;e[n]&&e[n].getAttribute(r("id"))!==i;){let t=e[n].getAttribute(r("type"));if(pt.IGNORING_VIEW_ENTRY_TYPES.includes(t))return;n++}this.eventsQueue.push({event:t}),this.postponed||this.execute()},this.targetElements=this.config.relativeSelector?Array.from((o.shadowRoot||o).querySelectorAll(this.config.relativeSelector)):[o],this.targetElements.forEach(t=>{t.addEventListener("click",this.listener)})}async execute(){var t,e,n,o;try{for(var r,i=!0,s=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise(function(o,r){!function(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}(o,r,(e=t[n](e)).done,e.value)})}}}(this.eventsQueue);!(t=(r=await s.next()).done);i=!0){o=r.value,i=!1;const{event:t}=o;for(const e of this.actions)if(!await e.execute(this.state.getState(),t))break}}catch(t){e={error:t}}finally{try{i||t||!(n=s.return)||await n.call(s)}finally{if(e)throw e.error}}this.eventsQueue=[]}postpone(){this.postponed=!0}release(){this.postponed=!1,this.execute()}destroy(){this.listener&&this.targetElements.length&&(this.targetElements.forEach(t=>{t.removeEventListener("click",this.listener)}),this.targetElements=[])}}pt.IGNORING_VIEW_ENTRY_TYPES=[it,st,rt],(ut=ht||(ht={})).CLICK="CLICK",ut.COMPONENT_EVENT="COMPONENT_EVENT";class mt{constructor(t,e){this.config=t,this.actions=e,this.componentEmitterListener=null}activate(t,e,n){var o;const i=null===(o=n())||void 0===o?void 0:o.getAttribute(r("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,i)}),this.componentEmitterListener=e.on(this.config.eventName,()=>{this.actions.forEach(e=>e.execute(t.getState(),this.config.params))})}destroy(){this.componentEmitterListener&&this.componentEmitterListener.off()}}class gt{constructor(t,e){this.actionFactory=t,this.actionRegister=e}get(t){const e=t.actions.map(t=>this.actionFactory.get(t));switch(e.forEach(t=>this.actionRegister.register(t)),t.type){case ht.CLICK:return new pt(t,e);case ht.COMPONENT_EVENT:return new mt(t,e);default:throw new Error(`Not supported handler type ${t.type}`)}}}class bt{static generate(){let t,e="";for(let n=0;n<32;n++)8!==n&&12!==n&&16!==n&&20!==n||(e+="-"),t=Math.floor(16*Math.random()).toString(16).toUpperCase(),e+=t;return e}}class ft{constructor(){this.listeners=ft.createDefaultListenersState()}emit(t,e,n=null){const o=this.listeners[t];o&&Object.values(o).forEach(o=>o(e,t,n)),Object.values(this.listeners["*"]).forEach(o=>o(e,t,n))}on(t,e){const n=bt.generate(),o=this.listeners[t];return o?o[n]=e:this.listeners[t]={[n]:e},{off:()=>{var e,o;(null===(o=null===(e=this.listeners)||void 0===e?void 0:e[t])||void 0===o?void 0:o[n])&&delete this.listeners[t][n]}}}destroy(){this.listeners=ft.createDefaultListenersState()}}ft.createDefaultListenersState=()=>({"*":{}});const vt=ft,yt=(t,e,n,o)=>{const r=EventTarget.prototype,{addEventListenerBase:i,addEventListener:s}=r;(i||s).call(t,e,n,o)};class Et{constructor(t){this.state=t||{}}getState(){return this.state}setState(t){this.state=Object.assign(Object.assign({},this.state),t)}destroy(){}}class Ot extends vt{constructor(t,e){super(),this.config=e,this.handleMobileBreakpoint(t.getShared().mobileBreakpointWidth),t.on("ENVIRONMENT_UPDATE",({isMobileEnv:t})=>{this._isMobile=t,this.emit(Ot.changeEventName,this._isMobile)})}handleMobileBreakpoint(t){this.mobileBreakpointWidth=t;const e=Number.isInteger(this.mobileBreakpointWidth)?`${this.mobileBreakpointWidth}px`:this.mobileBreakpointWidth;this.mediaQueryList=window.matchMedia(`(max-width: ${e})`),this.mediaQueryList.addListener(this.listener.bind(this)),this._isMobile=this.mediaQueryList.matches,this.emit(Ot.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(t){this._isMobile=t.matches,this.emit(Ot.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}Ot.changeEventName="CHANGE";const St=Ot;class Tt{static set(t,e){const n=t[Tt.accumulatorPropertyName]||{};t[Tt.accumulatorPropertyName]=Object.assign(Object.assign({},n),e.styleAttributes),Object.keys(t[Tt.accumulatorPropertyName]).forEach(n=>{n.includes("--")?t.style.setProperty(n,e.styleAttributes[n]||""):t.style[n]=e.styleAttributes[n]?e.styleAttributes[n]:""})}}Tt.accumulatorPropertyName="clStyleAttributes";const kt=Tt;var At,Ct;(Ct=At||(At={})).BUILT_IN="BUILT_IN",Ct.DETACHED="DETACHED",Ct.FLOATING_BOX="FLOATING_BOX",Ct.FLOATING_BAR="FLOATING_BAR",Ct.LAUNCHER="LAUNCHER",Ct.CONTENT_LOCKER="CONTENT_LOCKER";class Rt{static applyHostStyles(t,e,n=null,o){var r,i,s;const a=null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.handlers)||void 0===i?void 0:i.find(t=>"CLICK"===t.type);a&&(null===(s=a.actions)||void 0===s?void 0:s.length)&&(e.style.cursor="pointer"),t!==nt&&t!==ot&&t!==at||(e.style.display=o===At.CONTENT_LOCKER&&t===nt?"flex":"inline-flex",e.style.position="relative"),e.style.boxSizing="border-box"}constructor(){this.styles="/* common styles */ *, *:before, *:after { box-sizing: border-box; font-family: inherit; }"}setStyles(t=""){this.styles=`${this.styles} ${t}`}getStyles(){return this.styles}}class xt{static log(t){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(t)):console.error(t)}}class _t{constructor(t,e,n,o,r,i){this.hostElement=e,this.documentModel=t,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=r,this.httpClient=i,this.schemaSubscription=null,this.themeSubscription=null,this.envUrlMaps={desktop:new Map,mobile:new Map}}parseBackground(t){const e=String(t||"");if(e.includes("url")){const[t,n]=e.split("(")[1].split(")");return{url:t.replace(/['"]+/g,""),positionOptions:n.replace(";","")}}return{url:null,positionOptions:null}}apply(t){const e=this.getPropsCb();return e.backgroundDynamicInlineSVGElements[t].forEach(n=>{var o,r,i,s,a;const l=null===(r=null===(o=e.adaptiveStyles)||void 0===o?void 0:o[t])||void 0===r?void 0:r.find(t=>t.element===n),c=(null===(i=e.styles)||void 0===i?void 0:i.find(t=>t.element===n))||{},d=(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.background)||(null===(a=null==l?void 0:l.styleAttributes)||void 0===a?void 0:a.background),h=this.parseBackground(d);h.url&&this.envUrlMaps[t].set(n,{originalSVGResourceURL:h.url,inlineSvgString:null,positionOptions:h.positionOptions})}),Promise.all([...this.envUrlMaps[t].entries()].map(([e,n])=>this.httpClient.execute({url:n.originalSVGResourceURL}).then(t=>t.text()).then(o=>{this.envUrlMaps[t].set(e,Object.assign(Object.assign({},n),{inlineSvgString:o}))}))).then(()=>{var e;const n=this.getSharedCb();return Object.keys((null===(e=n.theme)||void 0===e?void 0:e.schema)||{}).length>0?this._applyHostElementBackgroundFromTheme(this.envUrlMaps[t].get("host"),n.theme.schema):this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[t].get("host"),n.cssVars)}).catch(t=>{console.error(t),xt.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${t}`)})}on(){return this.schemaSubscription=this.documentModel.on("COLOR_SCHEMA_UPDATE",t=>{this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[this.getEnvCb()].get("host"),t)}),this.themeSubscription=this.documentModel.on("THEME_UPDATE",t=>{this._applyHostElementBackgroundFromTheme(this.envUrlMaps[this.getEnvCb()].get("host"),t.schema)}),this}_applyHostElementBackgroundFromCssVars(t,e){t&&e&&(this.hostElement.style.background=this._buildBackgroundUrlFromCssVars(t,e))}_applyHostElementBackgroundFromTheme(t,e){t&&e&&(this.hostElement.style.background=this._buildBackgroundUrlFromTheme(t,e))}_buildBackgroundUrlFromCssVars(t,e){const n=t.inlineSvgString.trim().replace("var(--cl-schema-accent)",e["cl-schema-accent"]);return`url('data:image/svg+xml,${encodeURIComponent(n)}')${t.positionOptions}`}_buildBackgroundUrlFromTheme(t,e){const n=t.inlineSvgString.trim();let o=n;return[...n.matchAll(/var\(--cl-schema-([^)]+)\)/g)].forEach(t=>{const n=function(t=""){return t.replace(/var\(\s*(--[^,\s)]+).*\)/,"$1").replace("--cl-schema-","")}(t[1]);var r;o=o.replace(`var(--${r=n,`cl-schema-${r}`})`,e[n])}),`url('data:image/svg+xml,${encodeURIComponent(o)}')${t.positionOptions}`}off(){var t,e;null===(t=this.schemaSubscription)||void 0===t||t.off(),null===(e=this.themeSubscription)||void 0===e||e.off()}}const It=new class{execute({url:t,method:e="GET",body:n=null,headers:o,abortSignal:r}){const i={method:e,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:r};return n&&(i.body="string"==typeof n?n:JSON.stringify(n)),fetch(t,i)}};function wt(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>Object.assign(Object.assign({},e),{[n]:t[n]}),{})}class Lt{static camelCaseToDashCase(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}static camelCaseToUpperSnakeCase(t){return t.replace(/[A-Z]/g,t=>"_"+t).toUpperCase()}}class Nt{constructor(t){this._count=0,this.onUpdateCb=t}increment(){this._count++,this.onUpdateCb(this.count())}decrement(){this._count>0&&this._count--,this.onUpdateCb(this.count())}count(){return this._count}}var Pt;!function(t){t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.COMPONENT_RESOURCES_LOADED="COMPONENT_RESOURCES_LOADED",t.FAILED_TO_LOAD_COMPONENT_RESOURCE="FAILED_TO_LOAD_COMPONENT_RESOURCE",t.SUBMIT_REQUEST_STARTED="SUBMIT_REQUEST_STARTED",t.SUBMIT_REQUEST_FINISHED="SUBMIT_REQUEST_FINISHED",t.SUBMIT_REQUEST_ERROR_WITHOUT_VIEW="SUBMIT_REQUEST_ERROR_WITHOUT_VIEW",t.PROMO_CODE_SHOWN="PROMO_CODE_SHOWN",t.LEAD_PROGRESS="LEAD_PROGRESS"}(Pt||(Pt={}));const Mt=Pt;class jt{constructor(t,e,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=t=>{0===t&&this.systemEventEmitter.emit(Mt.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=t=>{this.isStaticEntryModule?this.systemEventEmitter.emit(Mt.FAILED_TO_LOAD_COMPONENT_RESOURCE,`Failed to load: ${t}`):this.counters.pending.decrement()},this.componentId=t,this.systemEventEmitter=e,this.isStaticEntryModule=n,this.counters={pending:new Nt(this.onCounterStateUpdate)}}}const Ut=(...t)=>{let e=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[]}),{});return{get:t=>e[t],clear:()=>Ut(...t)}},Dt=Ut,Bt="props",Ft="shared",Vt="environment";function Wt(t,e,n,o){const r=t=>{let i=function(t){return t instanceof DocumentFragment||(null==t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?t.host||null:t}(t);return i&&(o&&"function"==typeof o?o(i.getAttribute(e)):(null===(s=null==i?void 0:i.getAttribute)||void 0===s?void 0:s.call(i,e))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var s};return r(t)}const zt="SUBMIT";function Ht(t,e){return e?(t.classes=`${t.classes||""} ${e.classes||""}`.trim(),Object.keys(e).forEach(n=>{if("element"===n||"classes"===n)return;const o=e[n];o&&"object"==typeof o&&!Array.isArray(o)?t[n]=Object.assign(Object.assign({},t[n]||{}),o):t[n]=o}),t):t}const $t=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class Gt extends $t{constructor(t,e={},n){super(t,Object.assign(Object.assign({},n),{detail:e}))}}var Qt,Kt,qt;function Jt(t){if(null!=t&&""!==t)return"string"==typeof t?t:"object"==typeof t?JSON.stringify(t):String(t)}!function(t){t.STATIC="STATIC",t.UPDATING="UPDATING"}(Qt||(Qt={})),(qt=Kt||(Kt={})).STATIC="STATIC",qt.DATA_LAYER="DATA_LAYER",qt.URL_QUERY_PARAMS="URL_QUERY_PARAMS",qt.JS_API_VARIABLE="JS_API_VARIABLE",qt.COOKIE="COOKIE",qt.LOCAL_STORAGE="LOCAL_STORAGE";class Xt{constructor(t,e){this.configService=t,this.registry=e}resolveValue(t,e){if(!(null==t?void 0:t.enabled)||!t.sourceType||this.configService.getConfig("renderMode")===Qt.UPDATING)return;const n=function(t,e,n,o){if(!e)return;if(e===Kt.STATIC)return Jt(null==n?void 0:n.value);const r=t.getSource(e);if(!r)return;const i=r.getValue(o);return Jt("function"==typeof(null==i?void 0:i.processor)?i.processor(r,Object.assign({id:o},n)):null==i?void 0:i.value)}(this.registry,t.sourceType,t.config,e);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class Yt extends HTMLElement{constructor(){var t;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let t;const e=this.getAttribute(r("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${r("widget-id")}]`);let i;o&&(i=o.getAttribute(r("widget-id")));let s=new Gt("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(r("path")),id:e,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(s),t=s.detail.props,Object.assign(this,t),this.observers=Dt(Bt,Ft,Vt),this.subscriptions=new class{constructor(){this.subscriptions=[]}push(t){this.subscriptions.push(t)}off(){this.subscriptions.forEach(t=>null==t?void 0:t.off())}},this.state=new Et({}),this.componentEventEmitter=new vt,this.componentResourceManager=new jt(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new gt(this._actionFactory,this.services.actionRegister),this.prevProps=this.model.props,this.prevEnvironment=this.getEnvironment(),this.documentModel.on(`COMPONENT_PROPS_UPDATE_${this.model.id}`,t=>{this.model.props=t,this.observers.get(Bt).forEach(e=>e(this.prevProps,t)),this.prevProps=t;const e=this.getHostElement(),n=r("floating");t.floating&&!e.getAttribute(n)?e.setAttribute(n,"true"):!t.floating&&e.getAttribute(n)&&e.removeAttribute(n)}),this.documentModel.on(`COMPONENT_UPDATE_${this.model.id}`,t=>{Object.assign(this.model,t)}),this.documentModel.on("SHARED_UPDATE_ALL",()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles),this.observers.get(Ft).forEach(t=>t(this.getShared()))}),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new _t(this.documentModel,this.getHostElement(),()=>this.getShared(),()=>this.model.props,()=>this.getEnvironment(),It),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(St.changeEventName,()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const t=this.getEnvironment();this.observers.get(Vt).forEach(e=>e(this.prevEnvironment,t)),this.prevEnvironment=t})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_READY_TO_PLAY",()=>{this.skipGameBlur||this.getHostElement().classList.add("cl-game-spotlight-component")})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_COMPLETED",()=>{this.skipGameBlur||this.getHostElement().classList.remove("cl-game-spotlight-component")}))},this.attachHandlers=()=>{this.getHandlers().map(t=>this._handlerFactory.get(t)).map(t=>()=>t.activate(this.state,this.componentEventEmitter,this.getHostElement.bind(this))).forEach(t=>t())},this.postponeHandlers=()=>{var t;null===(t=this.handlers)||void 0===t||t.forEach(t=>t.postpone())},this.releaseHandlers=()=>{var t;null===(t=this.handlers)||void 0===t||t.forEach(t=>t.release())},this.getProps=()=>{var t;return null===(t=this.getModel())||void 0===t?void 0:t.props},this.getShared=()=>this.documentModel.getShared(),this.getEnvironment=()=>this.resizeListener.isMobile()?"mobile":"desktop",this.isStaticRenderMode=()=>this.services.config.getConfig("renderMode")===Qt.STATIC,this.isUpdatingRenderMode=()=>this.services.config.getConfig("renderMode")===Qt.UPDATING,this.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=t=>{this.observers.get(Bt).push(t),t(null,this.prevProps)},this.observeShared=t=>{this.observers.get(Ft).push(t),t(this.getShared())},this.observeEnvironment=t=>{this.observers.get(Vt).push(t),t(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${r("element")}]`)).filter(t=>!t.hasAttribute(r("component")))],this.getElement=(t,e)=>this.getElements().find(n=>e?n.getAttribute(r("element"))===t&&n.id===e:n.getAttribute(r("element"))===t),this.applyAutoAdaptiveStyles=(t,e)=>{if(!t&&!e)return;const n=this.getElements();if(!n.length)return;const o=function(t,e){if(!e)return t||{desktop:[],mobile:[]};const n=JSON.parse(JSON.stringify(t||{desktop:[],mobile:[]}));return e.forEach(t=>{const e=t.element;let o=!1,r=!1;n.desktop&&n.desktop.forEach(n=>{n.element===e&&(Ht(n,t),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===e&&(Ht(n,t),r=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(t))),!r&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(t)))}),n}(t,e),s=r("type"),a="element-styles";let l=this.getRootElement().querySelector(`style[${s}="${a}"]`);l||(l=document.createElement("style"),l.setAttribute(s,a),this.getRootElement().appendChild(l)),Q({element:l,html:""}),n.forEach(t=>{let e=t.getAttribute(r("element"));const n=this.getEnvironment();let s=i(o,n,e);if(s){if(this.resizeListener.isMobile()){const t=i(o,"desktop",e);t&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),s.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(s),l)}}),this._addLinkColor(l,this.getShared())},this.registerComponentResourceManagement=()=>{this.viewResourceManager.registerComponent(this.model.id,this.componentResourceManager)},this.applyStyles=(t,e={})=>{if(!t||!t.style)return!1;for(const[n,o]of Object.entries(e))t.style[n]=o;return!0},this.applyStylesToElement=(t,e,n)=>{var o,i;const s=[];"host"===(e=Yt._resolveTogglableStylesForElementModel(e)).element&&(Rt.applyHostStyles(this.model.type,t,null,this.layoutType),("desktop"===this.getEnvironment()&&(null===(o=this.model.props.backgroundDynamicInlineSVGElements)||void 0===o?void 0:o.desktop)||"mobile"===this.getEnvironment()&&(null===(i=this.model.props.backgroundDynamicInlineSVGElements)||void 0===i?void 0:i.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),s.push("background")));let a=e.styleAttributes.background,l=a&&a.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&l){this.componentResourceManager.getPending().increment();const t=new Image;t.src=l[1],yt(t,"load",()=>{this.componentResourceManager.getPending().decrement()}),yt(t,"error",()=>{this.componentResourceManager.onResourceLoadFailure(t.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const c=Object.assign(Object.assign({},e),{styleAttributes:wt(e.styleAttributes,s)});if(kt.set(t,c),this._setClassAttributes(t,e),n){if(e.hoverStyleAttributes){let o=Object.assign({},e.hoverStyleAttributes);if("FILL_UP"===e.hoverAnimationType){t.style.boxShadow="inset 0px 0px 0px 0px rgb(0, 0, 0, 0)",t.style.overflow="hidden";const n=t.tagName.toLowerCase(),r=`flip-up-animation-${e.element}`;let i=this.getRootElement().querySelector(`#${r}`);i||(i=document.createElement("style"),i.id=r,t.appendChild(i)),Q({element:i,html:`\n ${n}::before {\n content: '';\n background: ${o.background};\n position: absolute;\n left: 0;\n top: ${t.getBoundingClientRect().height}px;\n height: ${t.getBoundingClientRect().height}px;\n width: 100%;\n z-index: -10;\n }\n ${n}:hover::before {\n top: 0;\n transition: 0.3s;\n }\n `}),o=Object.assign(Object.assign({},e.hoverStyleAttributes),{background:"transparent",position:"relative"})}o.borderTopWidth&&"0px"!==o.borderTopWidth||delete o.borderTopColor,o.borderBottomWidth&&"0px"!==o.borderBottomWidth||delete o.borderBottomColor,o.borderLeftWidth&&"0px"!==o.borderLeftWidth||delete o.borderLeftColor,o.borderRightWidth&&"0px"!==o.borderRightWidth||delete o.borderRightColor,this._addStylesToStyleElement(n,e.element,o,`:not(.${r("no-hover")}):hover`,!0)}e.placeholderStyleAttributes&&this._addStylesToStyleElement(n,e.element,e.placeholderStyleAttributes,"::placeholder"),this._addFontStylesToStyleElement(n,this.getShared()),this.stylesAppliedToElement(t,e,n)}},this.applySharedClassesToElementModel=t=>function(t,e,o=!1){let r=t;return(r.classes||"").split(" ").filter(t=>t.startsWith(n)).forEach(t=>{var n;const i=null===(n=e.textClasses)||void 0===n?void 0:n[t];if(!i)return;let s=function(t,e){return{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),e?t.mobileStyleAttributes:{}),placeholderStyleAttributes:Object.assign(Object.assign({},t.placeholderStyleAttributes),e?t.mobilePlaceholderStyleAttributes:{})}}(i,o);s.styleAttributes.fontFamily||(i.isHeader&&e.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.headerFontFamily})})),!i.isHeader&&e.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.textFontFamily})}))),r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),s.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},r.placeholderStyleAttributes),s.placeholderStyleAttributes)})}),r.styleAttributes.fontFamily||(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:e.textFontFamily})})),r}(t,this.documentModel.getShared(),this.resizeListener.isMobile()),this.getModel=()=>this.model,this._addStylesToStyleElement=(t,e,n,o="",i)=>{const s=Object.keys(n).reduce((t,e)=>t+` ${Lt.camelCaseToDashCase(e)}: ${n[e]}${i?" !important;":";"}`,"");Q({element:t,html:`[${r("element")}="${e}"]${o} { ${s} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(t,e)=>{Q({element:t,html:`[cl-type] {font-family:${e.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(t,e)=>{var n,o,r,i;e.linkColor&&Q({element:t,html:`a {color: ${e.linkColor}}, a:visited {color: ${e.linkColor}}`,appendHtml:!0}),(null===(n=e.linkParams)||void 0===n?void 0:n.color)&&Q({element:t,html:`a {color: ${null===(o=e.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(r=e.linkParams)||void 0===r?void 0:r.color}}`,appendHtml:!0}),(null===(i=e.linkParams)||void 0===i?void 0:i.removeUnderline)&&Q({element:t,html:"a {text-decoration: none}, a:visited {text-decoration: none}",appendHtml:!0})},this._setClassAttributes=(t,e)=>{Array.from(t.classList).filter(t=>t!==o("hovered")&&t!==o("focused")).forEach(e=>{e.startsWith(n)&&t.classList.remove(e)});const r=((t.getAttribute("class")||"")+" "+e.classes).trim();t.setAttribute("class",r)},this.getParentComponent=()=>Wt(this.parentNode,r("element"),"host"),this.getWidgetContainerNode=()=>{const t=null==this?void 0:this.getAttribute(r("path"));return 1===(null==t?void 0:t.split(",").length)?this.parentNode:Wt(this.parentNode,r("path"),void 0,t=>1===(null==t?void 0:t.split(",").length))},this.getWidgetLanguages=()=>tt(this.services.config),this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=t=>et(t,this.getWidgetLanguages()),this.stylesAppliedToElement=(t,e,n)=>{},this.updateContext=()=>{var t;const e=this.getModel();this.services.context.updateRecord(e.id,{label:this.getContextRecordLabel(e.props),viewIndex:null===(t=e.path)||void 0===t?void 0:t[0]})},this.getAutofillValue=()=>{var t;const e=this.getModel();return new Xt(this.services.config,this.services.context.getRegistry()).resolveValue(null===(t=e.props.control)||void 0===t?void 0:t.autofill,e.id)},this.getValidatedAutofillValue=()=>this.isAutofillValidated?this.validatedAutofillValue:void 0,this.syncAutofillContextRecord=(t,e)=>{this.isAutofillValidated=!0,this.validatedAutofillValue=t?e:void 0,t&&this.services.context.updateRecord(this.getModel().id,{value:e})},this.addContextRecord=()=>{var t,e;const n=this.getModel();this.services.context.addRecord(n.id,{recordKey:n.id,id:n.props.control.name,label:this.getContextRecordLabel(n.props),value:null!==(t=this.getValidatedAutofillValue())&&void 0!==t?t:n.props.control.defaultValue||"",viewIndex:null===(e=n.path)||void 0===e?void 0:e[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(n.props)}})},this.getContextRecordLabel=t=>{var e,n,o,r,i,s;const a=t.control.name;if(["email","first_name","last_name"].includes(a))return a.toUpperCase();if((null===(e=t.content)||void 0===e?void 0:e.label)&&(null===(r=null===(o=null===(n=t.adaptiveStyles)||void 0===n?void 0:n.desktop.find(t=>"label"===t.element))||void 0===o?void 0:o.params)||void 0===r?void 0:r.enabled)){const e=(new DOMParser).parseFromString(t.content.label,"text/html");return this.capitalizeFirstLetter(e.body.textContent||"")}return(null===(i=t.content)||void 0===i?void 0:i.placeholder)?this.capitalizeFirstLetter(t.content.placeholder):(null===(s=t.control)||void 0===s?void 0:s.integrationName)?this.capitalizeFirstLetter(t.control.integrationName).replace(new RegExp("_","g")," "):void 0},this.capitalizeFirstLetter=t=>t.charAt(0).toUpperCase()+t.slice(1),this.getContextRecordExampleValue=t=>{var e;switch(null===(e=t.control)||void 0===e?void 0:e.name){case"email":return"myemail@example.com";case"first_name":return"Maria";case"last_name":return"Taylor";default:return this.getContextRecordLabel(t)}},this.completeSubmitAction=t=>{const e=t||{},n=this.services.actionRegister.getRegisteredActions().find(t=>t.category===zt);n?null==n||n.execute(void 0,void 0,!0,e):this.services.actionFactory.get({type:dt.REQUEST}).execute(void 0,void 0,!0,e)},this.getHandlers=()=>{var t;return(null===(t=this.getProps())||void 0===t?void 0:t.handlers)&&this.getProps().handlers.length?[...this.getProps().handlers]:[]},this.assets=(t="")=>`${this.services.config.getConfig("staticResourcesUrl").replace(/\/$/,"")}/${this.manifest.name}/assets${t?`/${t}`:""}`,this.attachShadow({mode:"open"}),this.manifest=this.manifest||(null===(t=this.constructor.define)||void 0===t?void 0:t.manifest)}connectedCallback(){this.construct(),this.registerComponentResourceManagement(),Promise.resolve().then(()=>{this.attachHandlers()});const t=document.createElement("style");t.textContent='\n :host(.cl-game-spotlight-component)::after {\n content: "";\n position: absolute;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n overflow: visible;\n \n backdrop-filter: blur(4px);\n \n inset: -30px;\n mask-image: \n linear-gradient(to bottom, transparent, grey 30px, grey calc(100% - 30px), transparent),\n linear-gradient(to right, transparent, grey 30px, grey calc(100% - 30px), transparent);\n mask-composite: intersect;\n -webkit-mask-composite: source-in; /* for Chrome/Safari */\n \n transition: opacity 0.35s ease;\n pointer-events: auto;\n }\n ',this.getRootElement().prepend(t)}disconnectedCallback(){var t;this.observers.clear(),this.subscriptions.off(),this.state.destroy(),this.componentEventEmitter.destroy(),null===(t=this.mergeTagsProcessor)||void 0===t||t.destroy()}}Yt._resolveTogglableStylesForElementModel=t=>{const e=Object.assign({},t);return Object.keys(e).forEach(t=>{t.toLowerCase().includes("styleattributes")&&(e[t]=Yt._resolveTogglableStyles(e[t]))}),e},Yt._resolveTogglableStyles=t=>{const e=Object.assign({},t),n=(t,n,o)=>{n in e&&(t.forEach(t=>{t in e&&(e[t]=e[n]?e[t]:o)}),delete e[n])};return n(["marginTop","marginBottom","marginLeft","marginRight"],"_marginEnabled","0px"),n(["paddingTop","paddingBottom","paddingLeft","paddingRight"],"_paddingEnabled","0px"),e};const Zt=Yt,te=Symbol("required");var ee=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};function ne(){}const oe="pending",re="valid",ie="invalid";class se extends Zt{constructor(){super(...arguments),this._createControl=(t={},...e)=>{const{element:n}=t,o=ee(t,["element"]),r=this.getProps(),i=this.getModel(),s=Object.assign(Object.assign(Object.assign({},r.control),{componentId:i.id,viewIdx:i.path[0]}),o),a=this.getAutofillValue();void 0!==a&&(s.defaultValue=a);const l=this.services.form,c=[s,n,...e],d=l.hasControl(r.control.name)?l.updateControl(...c):l.registerControl(...c);return void 0!==a&&d.getValue()===a&&this._validateAutofilledValue(d),d},this._validateAutofilledValue=t=>{t.validate({silent:!0}).then(e=>{e||t.markAsTouched(),this.syncAutofillContextRecord(e,t.getValue())})},this.createControlWithValidation=(t=[],e={})=>{const{element:n=this.getElement("input"),tooltipElement:o=this.getRootElement().querySelector(".input-tooltip"),validCallback:r=ne,invalidCallback:i=ne,pendingCallback:s=ne,elementToListen:a=n,validationMap:l={},listenStatusChange:c=!0}=e,d=ee(e,["element","tooltipElement","validCallback","invalidCallback","pendingCallback","elementToListen","validationMap","listenStatusChange"]);if(o&&(o.style.visibility="hidden"),!t||!Array.isArray(t))throw new Error("Validators should be an array");const h=this.getProps().control.validation,u=(null==h?void 0:h.validator)?l[h.validator]:void 0,p=t.some(t=>t[te]),m=!!(null==h?void 0:h.required),g=m||p,b=[...t];m&&!p&&b.unshift(function(t="REQUIRED"){const e=e=>{let n;switch(typeof e){case"string":n=e&&e.length>0;break;case"boolean":n=e;break;case"number":n=!isNaN(e);break;default:n=!!e}return{isValid:n,errorKey:n?null:t}};return e[te]=!0,e}()),u&&b.push(u);const f=this._prepareAsyncValidators(b),v=this._createControl({element:n,validation:{validator:"custom",required:g}},void 0,f);return c&&this._handleControlStatusChange(Object.assign({control:v,element:a,tooltipElement:o,configService:this.services.config,i18n:this.manifest.i18n,validCallback:r,invalidCallback:i,pendingCallback:s},d)),v},this._prepareAsyncValidators=(t=[])=>t.reduce((t,e,n)=>"function"!=typeof e?(console.warn(`Validator ${n} should be a function, so it will be skipped`),t):(t[`custom_${n}`]=async(...t)=>{const n=await Promise.resolve(e(...t));return"object"==typeof n&&"isValid"in n?Object.assign(Object.assign({},n),{errorKey:n.isValid?null:n.errorKey}):{isValid:!1,errorKey:"INVALID_VALIDATOR_RESPONSE"}},t),{}),this._handleControlStatusChange=t=>{t.control.on(c,e=>{this._handleValidationStatus(t,e)}),t.control.on(d,()=>{let e=oe;switch(!0){case t.control.pending:e=oe;break;case t.control.valid:e=re;break;default:e=ie}this._handleValidationStatus(t,e)})},this._handleValidationStatus=(t,e)=>{const{control:n,element:o,tooltipElement:r,validCallback:i,invalidCallback:s,errorMessageMapper:a,pendingCallback:l}=t,c=this.services.config,d=this.manifest.i18n;switch(e){case re:(function(t,e,n){t&&(t.classList.remove("invalid"),t.setAttribute("aria-invalid","false")),e&&(e.style.visibility="hidden",Z(e,n))})(o,r,this.htmlDocumentObject),i&&i();break;case ie:if(n.touched){const t=n.getErrorKeys();if(!t)break;const e=t[0];let i=function(t,e,n){const o=et(e,tt(t));if(!o)return n;const r=o.translations,i=Object.keys(r).find(t=>t.includes(n));return i?r[i]:n}(c,d,e);a&&(i=a(e,i)),function(t,e,n,o){o=o||document,t&&(t.classList.add("invalid"),t.setAttribute("aria-invalid","true")),e&&(e.style.visibility="visible",e.onmouseenter=()=>Y(e,n,o),e.onmouseleave=()=>Z(e,o))}(o,r,i,this.htmlDocumentObject),s&&s()}break;case oe:n.touched&&(function(t,e,n){e&&(e.style.visibility="hidden",Z(e,n)),t&&t.classList.contains("invalid")&&(t.classList.remove("invalid"),t.removeAttribute("aria-invalid"))}(o,r,this.htmlDocumentObject),l&&l())}}}}const ae=new Map;ae.set("checkboxSize","inputSize"),ae.set("checkboxToTextGapSize","inputToTextGapSize");const le=ae;function ce(t){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(t)}function de(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach(function(e){fe(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ue(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,ve(o.key),o)}}function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(pe=function(){return!!t})()}function me(){return me="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var o=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=ge(t)););return t}(t,e);if(o){var r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},me.apply(null,arguments)}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}function be(t,e){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},be(t,e)}function fe(t,e,n){return(e=ve(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ve(t){var e=function(t){if("object"!=ce(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ce(e)?e:e+""}var ye=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return fe(e=function(t,e,n){return e=ge(e),function(t,e){if(e&&("object"==ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pe()?Reflect.construct(e,n||[],ge(t).constructor):e.apply(t,n))}(this,t,[].concat(o)),"updateCheckmark",function(t){var n,o=e.getRootElement().querySelector(".checkmark");t?(o.classList.add("checkmark-checked"),n=e.getCheckmarkStyleAttributes("selectedBackground")):(o.classList.remove("checkmark-checked"),n=e.getCheckmarkStyleAttributes("defaultBackground")),o.style.background="".concat(n),o.style["backdrop-filter"]=e.getCheckmarkStyleAttributes("backdropFilter")}),fe(e,"getInputAdaptiveStyles",function(){var t=e.getProps(),n=e.getEnvironment();return t.adaptiveStyles[n].filter(function(t){return"input"===t.element})}),fe(e,"getCheckmarkStyleAttributes",function(t){var n=e.getInputAdaptiveStyles();return n.length&&n[0].markerStyleAttributes?t?n[0].markerStyleAttributes[t]:n[0].markerStyleAttributes:n.length&&n[0].checkmarkStyleAttributes?t?n[0].checkmarkStyleAttributes[t]:n[0].checkmarkStyleAttributes.checkboxSize||n[0].checkmarkStyleAttributes.inputSize?n[0].checkmarkStyleAttributes:he({inputSize:"22px",inputToTextGapSize:"16px"},n[0].checkmarkStyleAttributes):t?e.defaultCheckmarkStyleAttributes[t]:e.defaultCheckmarkStyleAttributes}),fe(e,"registerLabelControl",function(t){var n=e.getProps(),o="".concat(n.control.name,"_label");if(!e.services.form.hasControl(o)){var r={name:o,defaultValue:t};e.services.form.registerControl(he(he({},r),{},{componentId:e.getModel().id,viewIdx:e.getModel().path[0]}),null)}}),fe(e,"setStylesVariables",function(t){var n=e.getCheckmarkStyleAttributes();Object.keys(n).forEach(function(e){var o=le.get(e)||e;t.style.setProperty("--".concat(o),n[e])})}),fe(e,"manifest",a),fe(e,"defaultCheckmarkStyleAttributes",{inputSize:"22px",inputToTextGapSize:"13px",selectedBackground:"rgb(255,255,255)",defaultBackground:"rgb(255,255,255)",backdropFilter:"none"}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(t,se),function(t,e){return e&&ue(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"connectedCallback",value:function(){var e=this;!function(t,e,n){var o=me(ge(t.prototype),"connectedCallback",n);return"function"==typeof o?function(t){return o.apply(n,t)}:o}(t,0,this)([]),this.getRootElement().innerHTML+="\n ".concat('\n<style>\n/* The host height reaches the checkbox row through flex sizing, not height:100%:\n in a quirks-mode document (the dashboard preview iframes are about:blank, some\n customer pages have no doctype) WebKit resolves that percentage past the\n auto-height host against the enclosing flex column, so in Safari the consent\n grew to the column and pushed everything below it out of the view.\n min-height:0 lets the boxes clamp to a host smaller than the label, as\n height:100% did. The chain only works while the host stays display:flex. */\n:host {\n display: flex;\n flex-direction: column;\n}\n\n/* an author :host display beats the user-agent [hidden] rule */\n:host([hidden]) {\n display: none;\n}\n\n.main-container {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.label-with-input-container {\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.input-with-tooltip {\n position: relative;\n display: flex;\n align-items: baseline;\n align-self: stretch;\n width: 100%;\n}\n\n.invalid {\n border: 1px solid #ff0000 !important;\n}\n\n.input-tooltip {\n visibility: hidden;\n position: absolute;\n right: -10px;\n top: -10px;\n z-index: 1;\n border-radius: 100%;\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\ninput {\n -moz-appearance:none;\n -webkit-appearance:none;\n -o-appearance:none;\n width: 24px;\n height: 24px;\n padding: 0 10px;\n margin: 0;\n}\n\n/* The container */\n.checkmark-container {\n display: block;\n position: relative;\n height: 25px;\n width: 25px;\n cursor: pointer;\n font-size: 22px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* Hide the browser\'s default checkbox */\n.checkmark-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n/* Create a custom checkbox */\n.checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: var(--inputSize, 22px);\n width: var(--inputSize, 22px);\n display: flex;\n align-items: center;\n justify-content: center;\n padding-bottom: 2px;\n}\n\n.checkmark:after {\n content: "";\n position: absolute;\n display: none;\n}\n\n.checkmark-checked:after {\n display: block;\n}\n\n.checkmark-container .checkmark:after {\n width: 9px;\n height: 14px;\n border: solid #000000;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n.label {\n margin: auto auto auto var(--inputToTextGapSize, 18px);\n flex: 1;\n height: auto;\n min-height: 10px;\n}\n\ninput:focus ~ .checkmark.focus-outline-defined {\n outline: var(--clFocusOutline);\n}\n\n</style>\n ','\n <div class="main-container">\n <div class="label-with-input-container">\n <div class="input-with-tooltip">\n <label class="checkmark-container">\n <input type="checkbox"\n name="fname"\n aria-labelledby="cl-consent-label">\n <span cl-element="input" class="checkmark"></span>\n </label>\n <div class="input-tooltip" aria-hidden="true">\n <svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path d="M1.5 13.0604C1.5 19.4116 6.6481 24.5605 13.0075 24.5605C19.353 24.5605 24.5 19.4107 24.5 13.0604C24.5 6.70865 19.3531 1.55909 13.0075 1.55908C6.64806 1.55908 1.5 6.7077 1.5 13.0604ZM12.9775 17.9668C12.7032 17.9668 12.4807 17.7443 12.4807 17.47C12.4807 17.1956 12.7032 16.9732 12.9775 16.9732C13.2519 16.9732 13.4743 17.1956 13.4743 17.47C13.4743 17.7443 13.2519 17.9668 12.9775 17.9668ZM12.9775 13.4764C12.7032 13.4764 12.4807 13.254 12.4807 12.9796L12.4807 8.48924C12.4807 8.21487 12.7032 7.99245 12.9775 7.99245C13.2519 7.99245 13.4743 8.21487 13.4743 8.48924L13.4743 12.9796C13.4743 13.254 13.2519 13.4764 12.9775 13.4764Z" fill="#FF0000" stroke="white" stroke-width="2"></path>\n </svg>\n </div>\n <div cl-element="label"\n cl-inline-edit="content, label"\n class="label"\n id="cl-consent-label">\n </div>\n </div>\n </div>\n </div>\n ');var n=this.getRootElement(),o=n.querySelector(".checkmark"),r=this.createControlWithValidation([],{element:n.querySelector("input"),validCallback:function(){o.classList.contains("invalid")&&o.classList.remove("invalid")},invalidCallback:function(){o.classList.contains("invalid")||o.classList.add("invalid")}});r.on("valueChanged",function(t){e.updateCheckmark(t)}),this.updateCheckmark(!!r.getValue()),this.observeProps(function(t,n){e.applyAutoAdaptiveStyles(n.adaptiveStyles),Q({element:e.getRootElement().querySelector(".label"),html:n.content.label}),e.registerLabelControl(n.content.label);var o,r=e.getRootElement().querySelector('input[type="checkbox"]');r&&r.setAttribute("aria-required",String(!(null===(o=n.control)||void 0===o||null===(o=o.validation)||void 0===o||!o.required))),e.setStylesVariables(e.getHostElement());var i=e.getRootElement().querySelector(".checkmark-container");i.style.width=e.getCheckmarkStyleAttributes("inputSize"),i.style.height=e.getCheckmarkStyleAttributes("inputSize"),function(t){let e=null;const n=t,o=["transparent","initial"];t&&(t.style.borderColor&&!o.includes(t.style.borderColor)&&(parseFloat(t.style.borderWidth)||parseFloat(t.style.borderBottomWidth))&&(e=V(n,t,"borderColor")),!e&&t.style.getPropertyValue("--borderBottomColor")&&!o.includes(t.style.getPropertyValue("--borderBottomColor"))&&parseFloat(t.style.getPropertyValue("--borderBottomWidth"))&&(e=V(n,t,"--borderBottomColor")),e||!t.style.backgroundColor||o.includes(t.style.backgroundColor)||(e=V(n,t,"backgroundColor")),e||!t.style.color||o.includes(t.style.color)||(e=V(n,t,"color")),e||n.classList.remove("focus-outline-defined"))}(e.getElement("input"))})}}])}();fe(ye,"define",{name:"sys-consent",model:a.name,manifest:a});export{ye as default};window.clComponentClass_SysConsentComponent=ye;
1
+ const t={DESKTOP:"desktop",MOBILE:"mobile"};function e(e){return Object.values(t).map(t=>({type:"GROUP",propPath:["adaptiveStyles",t],children:e}))}const n="cl-";function o(t){return n+t}function r(t){return"cl-"+t}function i(t,e,n){var o;return null===(o=null==t?void 0:t[e])||void 0===o?void 0:o.find(t=>t.element===n)}function s(t=[]){return t.map(t=>Object.assign(Object.assign({},t),{styleAttributes:Object.assign({},t.styleAttributes)}))}const a={name:"SysConsentComponent",componentType:"CONSENT",version:"1.0.0",contextMenuModel:e([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:e([{type:"CONTROL",name:"SIZE",elementProp:"styleAttributes",element:"host",params:{height:{hide:!0}}},{type:"CONTROL",name:"MARGIN",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"CONTAINER_PADDING",elementProp:"styleAttributes",element:"host"}]),propertyPaneModel:{content:e([{type:"CONTROL",name:"SIZE",element:"host",elementProp:"styleAttributes",params:{width:{options:["fixed","fill","hug"]},height:{options:["fill","hug"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"label"}]},{type:"CONTROL",name:"INSERT_BLOCK",params:[{element:"label",label:"DOCUMENT_TEXT",isLinkAvailable:!0,origin:!0}]},{type:"CONTROL",name:"MULTIPLE_INPUT_SIZE",element:"input",params:{inputType:"CHECKBOX"}},{type:"CONTROL",name:"BACKGROUND",element:"input",elementProp:"markerStyleAttributes",params:{label:"DOCUMENT_CHECKBOX_BACKGROUND_DEFAULT_TITLE",property:"defaultBackground"}},{type:"CONTROL",name:"BACKGROUND",element:"input",elementProp:"markerStyleAttributes",params:{label:"DOCUMENT_CHECKBOX_BACKGROUND_SELECTED_TITLE",property:"selectedBackground"}},{type:"CONTROL",name:"BORDERS",elementProp:"styleAttributes",element:"input"},{type:"CONTROL",name:"BOX_SHADOW",elementProp:"styleAttributes",element:"input"},{type:"CONTROL",name:"BORDER_RADIUS",elementProp:"styleAttributes",element:"input"},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}])},events:{dispatch:[],listen:[]},i18nPropPaths:["content,label"],i18nPropertyPaneModel:{content:[{type:"CONTROL",name:"INSERT_BLOCK",params:[{element:"text",label:"DOCUMENT_TEXT",isLinkAvailable:!0,origin:!1}]}]},i18n:{en:{"control,validation,validationErrors,REQUIRED":"Accept consent to subscribe","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ru:{"control,validation,validationErrors,REQUIRED":"Примите соглашение для подписки","content,label":'Я даю согласие на обработку своих персональных данных и ознакомлен с <a href="https://example.com/termsofuse" target="_blank">условиями использования сервиса</a>'},uk:{"control,validation,validationErrors,REQUIRED":"Прийміть угоду для підписки","content,label":'Я даю згоду на обробку своїх персональних даних та ознайомлений з <a href="https://example.com/termsofuse" target="_blank">умовами використання сервісу</a>'},es:{"control,validation,validationErrors,REQUIRED":"Aceptar el consentimiento para suscribirse","content,label":'Doy mi consentimiento para el procesamiento de mis datos personales y he leído y acepto los <a href="https://example.com/termsofuse" target="_blank">Términos de uso</a>'},de:{"control,validation,validationErrors,REQUIRED":"Zustimmung zum Abonnement akzeptieren","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},fr:{"control,validation,validationErrors,REQUIRED":"Accepter le consentement pour s'abonner","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},it:{"control,validation,validationErrors,REQUIRED":"Accetti il consenso per iscriversi","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},pt:{"control,validation,validationErrors,REQUIRED":"Aceitar consentimento para subscrever","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ro:{"control,validation,validationErrors,REQUIRED":"Acceptați consimțământul pentru abonare","content,label":'Sunt de acord cu prelucrarea datelor mele personale și am citit și accept <a href="https://example.com/termsofuse" target="_blank">Termenii de utilizare</a>'},bg:{"control,validation,validationErrors,REQUIRED":"Приемете съгласието, за да се абонирате","content,label":'Съгласен съм с обработката на личните ми данни и прочетох и приемам <a href="https://example.com/termsofuse" target="_blank">Условията за ползване</a>'},cs:{"control,validation,validationErrors,REQUIRED":"Pro odběr přijměte souhlas","content,label":'Souhlasím se zpracováním mých osobních údajů a přečetl jsem si a přijímám <a href="https://example.com/termsofuse" target="_blank">Podmínky použití</a>'},el:{"control,validation,validationErrors,REQUIRED":"Αποδέχεστε τη συναίνεση στην εγγραφή","content,label":'Συναινώ στην επεξεργασία των προσωπικών μου δεδομένων και έχω διαβάσει και αποδέχομαι τους <a href="https://example.com/termsofuse" target="_blank">Όρους Χρήσης</a>'},nl:{"control,validation,validationErrors,REQUIRED":"Accepteer toestemming om u te abonneren","content,label":'Jeg giver samtykke til behandlingen af mine personlige data, og jeg har læst og accepterer <a href="https://example.com/termsofuse" target="_blank">Brugervilkår</a>'},pl:{"control,validation,validationErrors,REQUIRED":"Wyraź zgodę, aby zasubskrybować","content,label":'Wyrażam zgodę na przetwarzanie moich danych osobowych oraz zapoznałem się i akceptuję <a href="https://example.com/termsofuse" target="_blank">Warunki użytkowania</a>'},sv:{"control,validation,validationErrors,REQUIRED":"Acceptera samtycke för att prenumerera","content,label":'Jag samtycker till behandlingen av mina personuppgifter och jag har läst och accepterar <a href="https://example.com/termsofuse" target="_blank">Användarvillkor</a>'},tr:{"control,validation,validationErrors,REQUIRED":"Abone olmak için onayı kabul edin","content,label":'Kişisel verilerimin işlenmesine izin veriyorum ve <a href="https://example.com/termsofuse" target="_blank">Kullanım Koşulları</a>\'nı okudum ve kabul ediyorum.'},ar:{"control,validation,validationErrors,REQUIRED":"قبول الموافقة على الاشتراك","content,label":'أوافق على معالجة بياناتي الشخصية وقد قرأت وأوافق على <a href="https://example.com/termsofuse" target="_blank"> شروط الاستخدام </a>'},zh:{"control,validation,validationErrors,REQUIRED":"接受同意订阅","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},da:{"control,validation,validationErrors,REQUIRED":"Accepter samtykke til at abonnere","content,label":'Jeg giver samtykke til behandlingen af ​​mine personoplysninger, og jeg har læst og accepterer <a href="https://example.com/termsofuse" target="_blank">Vilkår for brug</a>'},he:{"control,validation,validationErrors,REQUIRED":"קבלו הסכמה להירשם","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},fi:{"control,validation,validationErrors,REQUIRED":"Anna suostumus tilaukseen","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},hi:{"control,validation,validationErrors,REQUIRED":"सदस्यता लेने के लिए सहमति स्वीकार करें","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},hr:{"control,validation,validationErrors,REQUIRED":"Prihvatite privolu za pretplatu","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},hu:{"control,validation,validationErrors,REQUIRED":"Az előfizetéshez való hozzájárulás elfogadása","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},id:{"control,validation,validationErrors,REQUIRED":"Terima persetujuan untuk berlangganan","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ja:{"control,validation,validationErrors,REQUIRED":"サブスクリプションへの同意を承諾","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},ko:{"control,validation,validationErrors,REQUIRED":"구독하려면 동의 수락","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},no:{"control,validation,validationErrors,REQUIRED":"Godta samtykke for å abonnere","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},sk:{"control,validation,validationErrors,REQUIRED":"Udeľte súhlas s odberom","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},sl:{"control,validation,validationErrors,REQUIRED":"Sprejmite soglasje za naročnino","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},sr:{"control,validation,validationErrors,REQUIRED":"Prihvatite saglasnost za pretplatu","content,label":'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'}},props:{content:{label:'I consent to the processing of my personal data and I have read and I do accept <a href="https://example.com/termsofuse" target="_blank">Terms of Use</a>'},control:{name:"consentId",defaultValue:!1,validation:{required:!0,validationErrors:{REQUIRED:"Accept consent to subscribe"}}},adaptiveStyles:(l=[{element:"host",styleAttributes:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",_paddingEnabled:!1,width:"100%",minWidth:null,height:"auto",marginTop:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",_marginEnabled:!1},classes:""},{element:"input",styleAttributes:{borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"1px",borderTopColor:"rgb(68, 68, 68)",borderBottomWidth:"1px",borderBottomColor:"rgb(68, 68, 68)",borderLeftWidth:"1px",borderLeftColor:"rgb(68, 68, 68)",borderRightWidth:"1px",borderRightColor:"rgb(68, 68, 68)",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",boxShadow:"none"},markerStyleAttributes:{inputSize:"22px",inputToTextGapSize:"13px",defaultBackground:"rgb(255, 255, 255)",selectedBackground:"var(--cl-schema-accent, rgb(255, 255, 255))"},classes:""},{element:"label",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))",textAlign:"start",lineHeight:"120%",fontWeight:"400",fontSize:"14px",textShadow:"none"},classes:""}],Object.values(t).reduce((t,e)=>Object.assign(t,{[e]:s(l)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysConsentComponent/assets/img/component-icon.svg",label:{en:"Data processing and terms of use",ru:"Обработка данных и условия использования",uk:"Обробка даних та умови використання",es:"Tratamiento de datos y condiciones de uso",fr:"Traitement des données et conditions d'utilisation",de:"Datenverarbeitung und Nutzungsbedingungen",it:"Trattamento dei dati e condizioni d'uso",pt:"Processamento de dados e termos de utilização",ro:"Prelucrarea datelor și condițiile de utilizare",bg:"Обработка на данни и условия за ползване",cs:"Zpracování dat a podmínky použití",el:"Επεξεργασία δεδομένων και όροι χρήσης",nl:"Gegevensverwerking en gebruiksvoorwaarden",pl:"Przetwarzanie danych i warunki użytkowania",sv:"Databehandling och användarvillkor",tr:"Veri işleme ve kullanım koşulları",ar:"معالجة البيانات وشروط الاستخدام",zh:"数据处理和使用条款",da:"Databehandling og brugsbetingelser",he:"עיבוד נתונים ותנאי השימוש"}},syncEnabled:!0,stylesImitationEnabled:!0};var l;const c="validationStatusChanged",d="touchedStatusChanged";class h{static size(t){return{width:this.width(t),height:this.height(t)}}static width(t){var e;const n=t||document;return Math.max(n.documentElement.clientWidth,(null===(e=n.defaultView)||void 0===e?void 0:e.innerWidth)||0)}static height(t){var e;const n=t||document;return Math.max(n.documentElement.clientHeight,(null===(e=n.defaultView)||void 0===e?void 0:e.innerHeight)||0)}static scrollbarWidth(t){var e;const n=t||document;return((null===(e=n.defaultView)||void 0===e?void 0:e.innerWidth)||0)-n.documentElement.clientWidth}}function u(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}var p=Array.prototype.concat,m=Array.prototype.slice,g=function(t){for(var e=[],n=0,o=t.length;n<o;n++){var r=t[n];u(r)?e=p.call(e,m.call(r)):e.push(r)}return e};g.wrap=function(t){return function(){return t(g(arguments))}};const b=g;var f={},v=Object.hasOwnProperty,y=Object.create(null);for(var E in f)v.call(f,E)&&(y[f[E]]=E);var O={to:{},get:{}};function S(t,e,n){return Math.min(Math.max(e,t),n)}O.get=function(t){var e,n;return"hsl"===t.substring(0,3).toLowerCase()?(e=O.get.hsl(t),n="hsl"):(e=O.get.rgb(t),n="rgb"),e?{model:n,value:e}:null},O.get.rgb=function(t){if(!t)return null;var e,n,o,r=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var i=2*n;r[n]=parseInt(e.slice(i,i+2),16)}o&&(r[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)r[n]=parseInt(e[n]+e[n],16);o&&(r[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)r[n]=parseInt(e[n+1],0);e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:v.call(f,e[1])?((r=f[e[1]])[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}for(n=0;n<3;n++)r[n]=S(r[n],0,255);return r[3]=S(r[3],0,1),r},O.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,S(parseFloat(e[2]),0,100),S(parseFloat(e[3]),0,100),S(isNaN(n)?1:n,0,1)]}return null},O.to.rgb=function(){var t=b(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},O.to.hsl=function(){var t=b(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};const T=O,k={},A={};for(const t of Object.keys(k))A[k[t]]=t;const C={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"}};Math.pow(6/29,3);for(const t of Object.keys(C)){if(!("channels"in C[t]))throw new Error("missing channels property: "+t);if(!("labels"in C[t]))throw new Error("missing channel labels property: "+t);if(C[t].labels.length!==C[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=C[t];delete C[t].channels,delete C[t].labels,Object.defineProperty(C[t],"channels",{value:e}),Object.defineProperty(C[t],"labels",{value:n})}C.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,r=Math.min(e,n,o),i=Math.max(e,n,o),s=i-r;let a,l;i===r?a=0:e===i?a=(n-o)/s:n===i?a=2+(o-e)/s:o===i&&(a=4+(e-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(r+i)/2;return l=i===r?0:c<=.5?s/(i+r):s/(2-i-r),[a,100*l,100*c]},C.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let r,i,s;if(0===n)return s=255*o,[s,s,s];r=o<.5?o*(1+n):o+n-o*n;const a=2*o-r,l=[0,0,0];for(let t=0;t<3;t++)i=e+1/3*-(t-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(r-a)*i:2*i<1?r:3*i<2?a+(r-a)*(2/3-i)*6:a,l[t]=255*s;return l};const R=C;function x(t,e){return function(n){return e(t(n))}}function _(t,e){const n=[e[t].parent,t];let o=R[e[t].parent][t],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),o=x(R[e[r].parent][r],o),r=e[r].parent;return o.conversion=n,o}const I={};Object.keys(R).forEach(t=>{I[t]={},Object.defineProperty(I[t],"channels",{value:R[t].channels}),Object.defineProperty(I[t],"labels",{value:R[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(R);for(let n=e.length,o=0;o<n;o++)t[e[o]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),o=Object.keys(R[t]);for(let r=o.length,i=0;i<r;i++){const r=o[i],s=e[r];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(r))}}return e}(t),n={},o=Object.keys(e);for(let t=o.length,r=0;r<t;r++){const t=o[r];null!==e[t].parent&&(n[t]=_(t,e))}return n}(t);Object.keys(e).forEach(n=>{const o=e[n];I[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const o=t(e);if("object"==typeof o)for(let t=o.length,e=0;e<t;e++)o[e]=Math.round(o[e]);return o};return"conversion"in t&&(e.conversion=t.conversion),e}(o),I[t][n].raw=function(t){const e=function(...e){const n=e[0];return null==n?n:(n.length>1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)})});const w=I,L=["keyword","gray","hex"],N={};for(const t of Object.keys(w))N[[...w[t].labels].sort().join("")]=t;const P={};function M(t,e){if(!(this instanceof M))return new M(t,e);if(e&&e in L&&(e=null),e&&!(e in w))throw new Error("Unknown model: "+e);let n,o;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof M)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=T.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,o=w[this.model].channels,this.color=e.value.slice(0,o),this.valpha="number"==typeof e.value[o]?e.value[o]:1}else if(t.length>0){this.model=e||"rgb",o=w[this.model].channels;const n=Array.prototype.slice.call(t,0,o);this.color=D(n,o),this.valpha="number"==typeof t[o]?t[o]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const o=e.sort().join("");if(!(o in N))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=N[o];const{labels:r}=w[this.model],i=[];for(n=0;n<r.length;n++)i.push(t[r[n]]);this.color=D(i)}if(P[this.model])for(o=w[this.model].channels,n=0;n<o;n++){const t=P[this.model][n];t&&(this.color[n]=t(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}M.prototype={toString(){return this.string()},string(t){let e=this.model in T.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const n=1===e.valpha?e.color:[...e.color,this.valpha];return T.to[e.model](n)},round(t){return t=Math.max(t||0,0),new M([...this.color.map(j(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new M([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e}};for(const t of Object.keys(w)){if(L.includes(t))continue;const{channels:e}=w[t];M.prototype[t]=function(...e){return this.model===t?new M(this):e.length>0?new M(e,t):new M([...U(w[this.model][t].raw(this.color)),this.valpha],t)},M[t]=function(...n){let o=n[0];return"number"==typeof o&&(o=D(n,e)),new M(o,t)}}function j(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function U(t){return Array.isArray(t)?t:[t]}function D(t,e){for(let n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}const B=M;function F(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function V(t,e,n){const o=function(t,e){let n=getComputedStyle(t)[e]||t.style.getPropertyValue(e);if(n&&n.includes("var(")&&(n=function(t){const e=String(t).match(/var\([^,]+,\s*(rgb(?:a)?\([^)]+\))\)/);return e&&e[1]?e[1]:null}(n)||void 0),n&&n.includes("rgb")&&(!(n.split("rgb").length>2)||n.includes("#")))return n}(e,n);if(o){const e=B(o).alpha(.5).string();return t.classList.add("focus-outline-defined"),t.style.setProperty("--clFocusOutline",`3px solid ${e}`),e}return null}function W(t){const{width:e,height:n}=t.getBoundingClientRect(),{marginBottom:o,marginTop:r,marginLeft:i,marginRight:s}=window.getComputedStyle(t);return{width:e+parseInt(i,10)+parseInt(s,10),height:n+parseInt(r,10)+parseInt(o,10)}}function z(t,e,n,o,r){switch(t.position){case"top":return{left:`${H(e,n,o,r)}px`,top:t.availableSpaceAboveTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"bottom":return{left:`${H(e,n,o,r)}px`,bottom:t.availableSpaceBelowTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"left":return{left:t.availableSpaceToTheLeftSideOfTheTrigger-e.width-t.contentWidth-t.horizontalOffset+"px",top:`${$(0,t)}px`};case"right":return{right:t.availableSpaceToTheRightSideOfTheTrigger-t.contentWidth-t.horizontalOffset+"px",top:`${$(0,t)}px`}}}function H(t,e,n,o){let r=n?t.x+t.width/2-e.width/2:t.x;return r<0&&(r=0),r+e.width>h.width(o)&&(r-=r+e.width-h.width(o)),r}function $(t,e){let n=e.availableSpaceAboveTriggerElem;return e.contentHeight>e.availableSpaceBelowTriggerElem&&(n-=e.contentHeight-e.availableSpaceBelowTriggerElem),n}function G(t){return t.replace(/[\u0000- ]/g,"").toLowerCase()}function Q(t){const{element:e,html:n,appendHtml:o}=t,r=function(t){if(null==t)return"";if("string"!=typeof t)return String(t);if(""===t)return"";if(!/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.test(t))return t;const e=(new DOMParser).parseFromString(t,"text/html");return e.querySelectorAll('script, style, link[rel="stylesheet"], meta[http-equiv], object, embed, svg animate, svg set').forEach(t=>t.remove()),e.querySelectorAll("*").forEach(t=>{["onclick","onload","onerror","onmouseover","onfocus","onblur","onkeyup","onkeydown","onchange","onsubmit","onmouseenter","onmouseleave","onmouseout","oncontextmenu","ondrag","ondrop","srcdoc"].forEach(e=>t.removeAttribute(e)),Array.from(t.attributes).forEach(e=>{e.name.startsWith("on")&&t.removeAttribute(e.name)});const e=t.tagName.toUpperCase();if("A"!==e&&"AREA"!==e||["href","xlink:href"].forEach(e=>{const n=G(t.getAttribute(e)||"");(n.startsWith("javascript:")||n.startsWith("data:"))&&t.removeAttribute(e)}),"IMG"===e||"IFRAME"===e){const e=G(t.getAttribute("src")||"");(e.startsWith("javascript:")||e.startsWith("data:text/html"))&&t.removeAttribute("src")}["action","formaction"].forEach(e=>{G(t.getAttribute(e)||"").startsWith("javascript:")&&t.removeAttribute(e)})}),e.body.innerHTML}(n);o?e.innerHTML+=r:e.innerHTML=r}const K="cl-tooltip-text-styles",q="cl-overlay-tooltip-text",J=Symbol.for("cl-tooltip-text-owner"),X=`\n .cl-tooltip-text {\n z-index: ${Number.MAX_SAFE_INTEGER};\n width: max-content;\n height: fit-content;\n visibility: hidden;\n background-color: white;\n color: #000;\n border: 1px solid rgb(194, 194, 194);\n border-radius: 5px;\n padding: 5px 10px;\n position: fixed;\n max-width: 300px;\n max-height: 100vh;\n box-shadow: 0 1px 5px rgba(0,0,0,.28);\n font-size: 14px;\n }\n\n .cl-tooltip-text[cl-tooltip-position='top']:before {\n content: "";\n position: absolute;\n top: 100%;\n left: calc(50% - 13px);\n border-width: 12px;\n border-style: solid;\n border-color: rgb(194, 194, 194) transparent transparent transparent;\n }\n\n .cl-tooltip-text[cl-tooltip-position='top']:after {\n content: "";\n position: absolute;\n top: 100%;\n left: calc(50% - 5px);\n margin-left: -8px;\n margin-top: -2px;\n border-width: 12px;\n border-style: solid;\n border-color: white transparent transparent transparent;\n }\n\n .cl-tooltip-text[cl-tooltip-position='bottom']:before {\n content: "";\n position: absolute;\n top: -24px;\n left: calc(50% - 9px);\n border-width: 12px;\n border-style: solid;\n border-color: transparent transparent rgb(194, 194, 194) transparent;\n }\n\n .cl-tooltip-text[cl-tooltip-position='bottom']:after {\n content: "";\n position: absolute;\n top: -22px;\n left: calc(50% - 4px);\n margin-left: -5px;\n margin-bottom: -2px;\n border-width: 12px;\n border-style: solid;\n border-color: transparent transparent white transparent;\n }\n`;function Y(t,e,n){!function(t){if((t=t||document).head.querySelector(`#${K}`))return;const e=document.createElement("style");e.setAttribute("id",K),Q({element:e,html:X}),t.head.appendChild(e)}(n=n||document);const o=function(t,e){const n=(e=e||document).getElementById(q)||e.createElement("div");return n.classList.add("cl-tooltip-text"),n.textContent!==t&&(n.textContent=t,n.style=null),n.id||(n.id=q),n}(e,n);n.body.append(o),o.style.visibility="visible",o[J]=t,function(t){const{triggerElement:e,tooltipElement:n,offset:o=10,htmlDocumentObject:r}=t,i=function(t,e,n,o,r,i){const s=function(t,e,n,o,r){const i=function(t,e,n,o){const r=h.width(o),{right:i}=t.getBoundingClientRect(),s=r-n-i-h.scrollbarWidth(o);return{horizontalOffset:n,contentWidth:W(e).width,availableSpaceToTheLeftSideOfTheTrigger:i-n,availableSpaceToTheRightSideOfTheTrigger:s}}(t,e,n,r),s=function(t,e,n,o){const r=h.height(o),{top:i,bottom:s}=t.getBoundingClientRect();return{verticalOffset:n,contentHeight:W(e).height,availableSpaceAboveTriggerElem:i-n,availableSpaceBelowTriggerElem:r-s-n}}(t,e,n,r);let a="undefined";const l={bottom:s.availableSpaceBelowTriggerElem>=s.contentHeight,top:s.availableSpaceAboveTriggerElem>=s.contentHeight,right:i.availableSpaceToTheRightSideOfTheTrigger>=i.contentWidth,left:i.availableSpaceToTheLeftSideOfTheTrigger>=i.contentWidth};if(l.top?a="top":l.bottom?a="bottom":l.right?a="right":l.left&&(a="left"),o&&l[o]&&(a=o),"undefined"===a){const t=Math.max(s.availableSpaceBelowTriggerElem,s.availableSpaceAboveTriggerElem,i.availableSpaceToTheRightSideOfTheTrigger,i.availableSpaceToTheLeftSideOfTheTrigger);t===s.availableSpaceBelowTriggerElem?a="bottom":t===s.availableSpaceAboveTriggerElem?a="top":t===i.availableSpaceToTheRightSideOfTheTrigger?a="right":t===i.availableSpaceToTheLeftSideOfTheTrigger&&(a="left")}return Object.assign(Object.assign(Object.assign({},s),i),{position:a})}(t,e,n,o,i=i||document);return function(t,e){const{marginBottom:n,marginTop:o}=window.getComputedStyle(e);if("top"===t.position)F(e,{"margin-top":`${parseInt(o,10)+parseInt(n,10)}px`}),F(e,{"margin-bottom":"0px"});else if("bottom"===t.position)F(e,{"margin-bottom":`${parseInt(n,10)+parseInt(o,10)}px`}),F(e,{"margin-top":"0px"});else{const t=(parseInt(n,10)+parseInt(o,10))/2+"px";F(e,{"margin-top":t,"margin-bottom":t})}}(s,e),{coordinates:z(s,t.getBoundingClientRect(),e.getBoundingClientRect(),r,i),position:s.position}}(e,n,o,"top",!0,r);n.setAttribute("cl-tooltip-position",i.position),F(n,i.coordinates)}({triggerElement:t,tooltipElement:o,htmlDocumentObject:n})}function Z(t,e){const n=(e=e||document).getElementById(q),o=n&&n[J];!n||!o||o!==t&&o.isConnected||(n.remove(),function(t){const e=(t=t||document).head.querySelector(`#${K}`);e&&e.remove()}(e))}function tt(t){return[t.getConfig("appearanceLanguage"),t.getConfig("browserLanguage"),"en"].filter(t=>!!t)}function et(t,e){return e.reduce((e,n)=>{if(e)return e;const o=function(t,e){if(!t)return null;if(e[t])return{translations:e[t],language:t};const n=function(t){return t.includes("-")?t.split("-")[0].toLowerCase():t.includes("_")?t.split("_")[0].toLowerCase():t}(t);return e[n]?{translations:e[n],language:n}:null}(n,t);return o||null},null)}const nt="VIEW",ot="CONTAINER",rt="INPUT",it="BUTTON",st="CONSENT",at="COLUMN";var lt,ct;(ct=lt||(lt={})).SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",ct.REQUEST="REQUEST",ct.DISPATCH_EVENT="DISPATCH_EVENT",ct.GO_TO_VIEW="GO_TO_VIEW",ct.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",ct.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",ct.SHOW_WIDGET="SHOW_WIDGET",ct.OPEN_LINK="OPEN_LINK",ct.CLOSE_WIDGET="CLOSE_WIDGET",ct.CLICK="CLICK";const dt=lt;var ht,ut;class pt{static sortActions(t){const e={[dt.CLOSE_WIDGET]:-1,[dt.OPEN_LINK]:-2,[dt.SHOW_WIDGET]:1,[dt.SUBSCRIBE_CONTACT]:2,[dt.REQUEST]:3},n=t=>void 0!==e[t.type]?e[t.type]:0;return[...t].sort((t,e)=>n(t)>n(e)?-1:n(t)<n(e)?1:0)}constructor(t,e){this.config=t,this.actions=pt.sortActions(e),this.listener=null,this.targetElements=[],this.eventsQueue=[],this.state=null,this.postponed=!1}activate(t,e,n){this.state=t;const o=n(),i=o.getAttribute(r("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,i)}),this.listener=t=>{const e=t.composedPath().filter(t=>t instanceof HTMLElement&&t.getAttribute(r("type")));let n=0;for(;e[n]&&e[n].getAttribute(r("id"))!==i;){let t=e[n].getAttribute(r("type"));if(pt.IGNORING_VIEW_ENTRY_TYPES.includes(t))return;n++}this.eventsQueue.push({event:t}),this.postponed||this.execute()},this.targetElements=this.config.relativeSelector?Array.from((o.shadowRoot||o).querySelectorAll(this.config.relativeSelector)):[o],this.targetElements.forEach(t=>{t.addEventListener("click",this.listener)})}async execute(){var t,e,n,o;try{for(var r,i=!0,s=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise(function(o,r){!function(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}(o,r,(e=t[n](e)).done,e.value)})}}}(this.eventsQueue);!(t=(r=await s.next()).done);i=!0){o=r.value,i=!1;const{event:t}=o;for(const e of this.actions)if(!await e.execute(this.state.getState(),t))break}}catch(t){e={error:t}}finally{try{i||t||!(n=s.return)||await n.call(s)}finally{if(e)throw e.error}}this.eventsQueue=[]}postpone(){this.postponed=!0}release(){this.postponed=!1,this.execute()}destroy(){this.listener&&this.targetElements.length&&(this.targetElements.forEach(t=>{t.removeEventListener("click",this.listener)}),this.targetElements=[])}}pt.IGNORING_VIEW_ENTRY_TYPES=[it,st,rt],(ut=ht||(ht={})).CLICK="CLICK",ut.COMPONENT_EVENT="COMPONENT_EVENT";class mt{constructor(t,e){this.config=t,this.actions=e,this.componentEmitterListener=null}activate(t,e,n){var o;const i=null===(o=n())||void 0===o?void 0:o.getAttribute(r("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,i)}),this.componentEmitterListener=e.on(this.config.eventName,()=>{this.actions.forEach(e=>e.execute(t.getState(),this.config.params))})}destroy(){this.componentEmitterListener&&this.componentEmitterListener.off()}}class gt{constructor(t,e){this.actionFactory=t,this.actionRegister=e}get(t){const e=t.actions.map(t=>this.actionFactory.get(t));switch(e.forEach(t=>this.actionRegister.register(t)),t.type){case ht.CLICK:return new pt(t,e);case ht.COMPONENT_EVENT:return new mt(t,e);default:throw new Error(`Not supported handler type ${t.type}`)}}}class bt{static generate(){let t,e="";for(let n=0;n<32;n++)8!==n&&12!==n&&16!==n&&20!==n||(e+="-"),t=Math.floor(16*Math.random()).toString(16).toUpperCase(),e+=t;return e}}class ft{constructor(){this.listeners=ft.createDefaultListenersState()}emit(t,e,n=null){const o=this.listeners[t];o&&Object.values(o).forEach(o=>o(e,t,n)),Object.values(this.listeners["*"]).forEach(o=>o(e,t,n))}on(t,e){const n=bt.generate(),o=this.listeners[t];return o?o[n]=e:this.listeners[t]={[n]:e},{off:()=>{var e,o;(null===(o=null===(e=this.listeners)||void 0===e?void 0:e[t])||void 0===o?void 0:o[n])&&delete this.listeners[t][n]}}}destroy(){this.listeners=ft.createDefaultListenersState()}}ft.createDefaultListenersState=()=>({"*":{}});const vt=ft,yt=(t,e,n,o)=>{const r=EventTarget.prototype,{addEventListenerBase:i,addEventListener:s}=r;(i||s).call(t,e,n,o)};class Et{constructor(t){this.state=t||{}}getState(){return this.state}setState(t){this.state=Object.assign(Object.assign({},this.state),t)}destroy(){}}class Ot extends vt{constructor(t,e){super(),this.config=e,this.handleMobileBreakpoint(t.getShared().mobileBreakpointWidth),t.on("ENVIRONMENT_UPDATE",({isMobileEnv:t})=>{this._isMobile=t,this.emit(Ot.changeEventName,this._isMobile)})}handleMobileBreakpoint(t){this.mobileBreakpointWidth=t;const e=Number.isInteger(this.mobileBreakpointWidth)?`${this.mobileBreakpointWidth}px`:this.mobileBreakpointWidth;this.mediaQueryList=window.matchMedia(`(max-width: ${e})`),this.mediaQueryList.addListener(this.listener.bind(this)),this._isMobile=this.mediaQueryList.matches,this.emit(Ot.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(t){this._isMobile=t.matches,this.emit(Ot.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}Ot.changeEventName="CHANGE";const St=Ot;class Tt{static set(t,e){const n=t[Tt.accumulatorPropertyName]||{};t[Tt.accumulatorPropertyName]=Object.assign(Object.assign({},n),e.styleAttributes),Object.keys(t[Tt.accumulatorPropertyName]).forEach(n=>{n.includes("--")?t.style.setProperty(n,e.styleAttributes[n]||""):t.style[n]=e.styleAttributes[n]?e.styleAttributes[n]:""})}}Tt.accumulatorPropertyName="clStyleAttributes";const kt=Tt;var At,Ct;(Ct=At||(At={})).BUILT_IN="BUILT_IN",Ct.DETACHED="DETACHED",Ct.FLOATING_BOX="FLOATING_BOX",Ct.FLOATING_BAR="FLOATING_BAR",Ct.LAUNCHER="LAUNCHER",Ct.CONTENT_LOCKER="CONTENT_LOCKER";class Rt{static applyHostStyles(t,e,n=null,o){var r,i,s;const a=null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.handlers)||void 0===i?void 0:i.find(t=>"CLICK"===t.type);a&&(null===(s=a.actions)||void 0===s?void 0:s.length)&&(e.style.cursor="pointer"),t!==nt&&t!==ot&&t!==at||(e.style.display=o===At.CONTENT_LOCKER&&t===nt?"flex":"inline-flex",e.style.position="relative"),e.style.boxSizing="border-box"}constructor(){this.styles="/* common styles */ *, *:before, *:after { box-sizing: border-box; font-family: inherit; }"}setStyles(t=""){this.styles=`${this.styles} ${t}`}getStyles(){return this.styles}}class xt{static log(t){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(t)):console.error(t)}}class _t{constructor(t,e,n,o,r,i){this.hostElement=e,this.documentModel=t,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=r,this.httpClient=i,this.schemaSubscription=null,this.themeSubscription=null,this.envUrlMaps={desktop:new Map,mobile:new Map}}parseBackground(t){const e=String(t||"");if(e.includes("url")){const[t,n]=e.split("(")[1].split(")");return{url:t.replace(/['"]+/g,""),positionOptions:n.replace(";","")}}return{url:null,positionOptions:null}}apply(t){const e=this.getPropsCb();return e.backgroundDynamicInlineSVGElements[t].forEach(n=>{var o,r,i,s,a;const l=null===(r=null===(o=e.adaptiveStyles)||void 0===o?void 0:o[t])||void 0===r?void 0:r.find(t=>t.element===n),c=(null===(i=e.styles)||void 0===i?void 0:i.find(t=>t.element===n))||{},d=(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.background)||(null===(a=null==l?void 0:l.styleAttributes)||void 0===a?void 0:a.background),h=this.parseBackground(d);h.url&&this.envUrlMaps[t].set(n,{originalSVGResourceURL:h.url,inlineSvgString:null,positionOptions:h.positionOptions})}),Promise.all([...this.envUrlMaps[t].entries()].map(([e,n])=>this.httpClient.execute({url:n.originalSVGResourceURL}).then(t=>t.text()).then(o=>{this.envUrlMaps[t].set(e,Object.assign(Object.assign({},n),{inlineSvgString:o}))}))).then(()=>{var e;const n=this.getSharedCb();return Object.keys((null===(e=n.theme)||void 0===e?void 0:e.schema)||{}).length>0?this._applyHostElementBackgroundFromTheme(this.envUrlMaps[t].get("host"),n.theme.schema):this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[t].get("host"),n.cssVars)}).catch(t=>{console.error(t),xt.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${t}`)})}on(){return this.schemaSubscription=this.documentModel.on("COLOR_SCHEMA_UPDATE",t=>{this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[this.getEnvCb()].get("host"),t)}),this.themeSubscription=this.documentModel.on("THEME_UPDATE",t=>{this._applyHostElementBackgroundFromTheme(this.envUrlMaps[this.getEnvCb()].get("host"),t.schema)}),this}_applyHostElementBackgroundFromCssVars(t,e){t&&e&&(this.hostElement.style.background=this._buildBackgroundUrlFromCssVars(t,e))}_applyHostElementBackgroundFromTheme(t,e){t&&e&&(this.hostElement.style.background=this._buildBackgroundUrlFromTheme(t,e))}_buildBackgroundUrlFromCssVars(t,e){const n=t.inlineSvgString.trim().replace("var(--cl-schema-accent)",e["cl-schema-accent"]);return`url('data:image/svg+xml,${encodeURIComponent(n)}')${t.positionOptions}`}_buildBackgroundUrlFromTheme(t,e){const n=t.inlineSvgString.trim();let o=n;return[...n.matchAll(/var\(--cl-schema-([^)]+)\)/g)].forEach(t=>{const n=function(t=""){return t.replace(/var\(\s*(--[^,\s)]+).*\)/,"$1").replace("--cl-schema-","")}(t[1]);var r;o=o.replace(`var(--${r=n,`cl-schema-${r}`})`,e[n])}),`url('data:image/svg+xml,${encodeURIComponent(o)}')${t.positionOptions}`}off(){var t,e;null===(t=this.schemaSubscription)||void 0===t||t.off(),null===(e=this.themeSubscription)||void 0===e||e.off()}}const It=new class{execute({url:t,method:e="GET",body:n=null,headers:o,abortSignal:r}){const i={method:e,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:r};return n&&(i.body="string"==typeof n?n:JSON.stringify(n)),fetch(t,i)}};function wt(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>Object.assign(Object.assign({},e),{[n]:t[n]}),{})}class Lt{static camelCaseToDashCase(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}static camelCaseToUpperSnakeCase(t){return t.replace(/[A-Z]/g,t=>"_"+t).toUpperCase()}}class Nt{constructor(t){this._count=0,this.onUpdateCb=t}increment(){this._count++,this.onUpdateCb(this.count())}decrement(){this._count>0&&this._count--,this.onUpdateCb(this.count())}count(){return this._count}}var Pt;!function(t){t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.COMPONENT_RESOURCES_LOADED="COMPONENT_RESOURCES_LOADED",t.FAILED_TO_LOAD_COMPONENT_RESOURCE="FAILED_TO_LOAD_COMPONENT_RESOURCE",t.SUBMIT_REQUEST_STARTED="SUBMIT_REQUEST_STARTED",t.SUBMIT_REQUEST_FINISHED="SUBMIT_REQUEST_FINISHED",t.SUBMIT_REQUEST_ERROR_WITHOUT_VIEW="SUBMIT_REQUEST_ERROR_WITHOUT_VIEW",t.PROMO_CODE_SHOWN="PROMO_CODE_SHOWN",t.LEAD_PROGRESS="LEAD_PROGRESS"}(Pt||(Pt={}));const Mt=Pt;class jt{constructor(t,e,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=t=>{0===t&&this.systemEventEmitter.emit(Mt.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=t=>{this.isStaticEntryModule?this.systemEventEmitter.emit(Mt.FAILED_TO_LOAD_COMPONENT_RESOURCE,`Failed to load: ${t}`):this.counters.pending.decrement()},this.componentId=t,this.systemEventEmitter=e,this.isStaticEntryModule=n,this.counters={pending:new Nt(this.onCounterStateUpdate)}}}const Ut=(...t)=>{let e=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[]}),{});return{get:t=>e[t],clear:()=>Ut(...t)}},Dt=Ut,Bt="props",Ft="shared",Vt="environment";function Wt(t,e,n,o){const r=t=>{let i=function(t){return t instanceof DocumentFragment||(null==t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?t.host||null:t}(t);return i&&(o&&"function"==typeof o?o(i.getAttribute(e)):(null===(s=null==i?void 0:i.getAttribute)||void 0===s?void 0:s.call(i,e))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var s};return r(t)}const zt="SUBMIT";function Ht(t,e){return e?(t.classes=`${t.classes||""} ${e.classes||""}`.trim(),Object.keys(e).forEach(n=>{if("element"===n||"classes"===n)return;const o=e[n];o&&"object"==typeof o&&!Array.isArray(o)?t[n]=Object.assign(Object.assign({},t[n]||{}),o):t[n]=o}),t):t}const $t=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class Gt extends $t{constructor(t,e={},n){super(t,Object.assign(Object.assign({},n),{detail:e}))}}var Qt,Kt,qt;function Jt(t){if(null!=t&&""!==t)return"string"==typeof t?t:"object"==typeof t?JSON.stringify(t):String(t)}!function(t){t.STATIC="STATIC",t.UPDATING="UPDATING"}(Qt||(Qt={})),(qt=Kt||(Kt={})).STATIC="STATIC",qt.DATA_LAYER="DATA_LAYER",qt.URL_QUERY_PARAMS="URL_QUERY_PARAMS",qt.JS_API_VARIABLE="JS_API_VARIABLE",qt.COOKIE="COOKIE",qt.LOCAL_STORAGE="LOCAL_STORAGE";class Xt{constructor(t,e){this.configService=t,this.registry=e}resolveValue(t,e){if(!(null==t?void 0:t.enabled)||!t.sourceType||this.configService.getConfig("renderMode")===Qt.UPDATING)return;const n=function(t,e,n,o){if(!e)return;if(e===Kt.STATIC)return Jt(null==n?void 0:n.value);const r=t.getSource(e);if(!r)return;const i=r.getValue(o);return Jt("function"==typeof(null==i?void 0:i.processor)?i.processor(r,Object.assign({id:o},n)):null==i?void 0:i.value)}(this.registry,t.sourceType,t.config,e);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class Yt extends HTMLElement{constructor(){var t;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let t;const e=this.getAttribute(r("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${r("widget-id")}]`);let i;o&&(i=o.getAttribute(r("widget-id")));let s=new Gt("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(r("path")),id:e,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(s),t=s.detail.props,Object.assign(this,t),this.observers=Dt(Bt,Ft,Vt),this.subscriptions=new class{constructor(){this.subscriptions=[]}push(t){this.subscriptions.push(t)}off(){this.subscriptions.forEach(t=>null==t?void 0:t.off())}},this.state=new Et({}),this.componentEventEmitter=new vt,this.componentResourceManager=new jt(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new gt(this._actionFactory,this.services.actionRegister),this.prevProps=this.model.props,this.prevEnvironment=this.getEnvironment(),this.documentModel.on(`COMPONENT_PROPS_UPDATE_${this.model.id}`,t=>{this.model.props=t,this.observers.get(Bt).forEach(e=>e(this.prevProps,t)),this.prevProps=t;const e=this.getHostElement(),n=r("floating");t.floating&&!e.getAttribute(n)?e.setAttribute(n,"true"):!t.floating&&e.getAttribute(n)&&e.removeAttribute(n)}),this.documentModel.on(`COMPONENT_UPDATE_${this.model.id}`,t=>{Object.assign(this.model,t)}),this.documentModel.on("SHARED_UPDATE_ALL",()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles),this.observers.get(Ft).forEach(t=>t(this.getShared()))}),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new _t(this.documentModel,this.getHostElement(),()=>this.getShared(),()=>this.model.props,()=>this.getEnvironment(),It),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(St.changeEventName,()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const t=this.getEnvironment();this.observers.get(Vt).forEach(e=>e(this.prevEnvironment,t)),this.prevEnvironment=t})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_READY_TO_PLAY",()=>{this.skipGameBlur||this.getHostElement().classList.add("cl-game-spotlight-component")})),this.subscriptions.push(this.services.eventEmitter.on("GAME_PHASE_COMPLETED",()=>{this.skipGameBlur||this.getHostElement().classList.remove("cl-game-spotlight-component")}))},this.attachHandlers=()=>{this.getHandlers().map(t=>this._handlerFactory.get(t)).map(t=>()=>t.activate(this.state,this.componentEventEmitter,this.getHostElement.bind(this))).forEach(t=>t())},this.postponeHandlers=()=>{var t;null===(t=this.handlers)||void 0===t||t.forEach(t=>t.postpone())},this.releaseHandlers=()=>{var t;null===(t=this.handlers)||void 0===t||t.forEach(t=>t.release())},this.getProps=()=>{var t;return null===(t=this.getModel())||void 0===t?void 0:t.props},this.getShared=()=>this.documentModel.getShared(),this.getEnvironment=()=>this.resizeListener.isMobile()?"mobile":"desktop",this.isStaticRenderMode=()=>this.services.config.getConfig("renderMode")===Qt.STATIC,this.isUpdatingRenderMode=()=>this.services.config.getConfig("renderMode")===Qt.UPDATING,this.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=t=>{this.observers.get(Bt).push(t),t(null,this.prevProps)},this.observeShared=t=>{this.observers.get(Ft).push(t),t(this.getShared())},this.observeEnvironment=t=>{this.observers.get(Vt).push(t),t(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${r("element")}]`)).filter(t=>!t.hasAttribute(r("component")))],this.getElement=(t,e)=>this.getElements().find(n=>e?n.getAttribute(r("element"))===t&&n.id===e:n.getAttribute(r("element"))===t),this.applyAutoAdaptiveStyles=(t,e)=>{if(!t&&!e)return;const n=this.getElements();if(!n.length)return;const o=function(t,e){if(!e)return t||{desktop:[],mobile:[]};const n=JSON.parse(JSON.stringify(t||{desktop:[],mobile:[]}));return e.forEach(t=>{const e=t.element;let o=!1,r=!1;n.desktop&&n.desktop.forEach(n=>{n.element===e&&(Ht(n,t),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===e&&(Ht(n,t),r=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(t))),!r&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(t)))}),n}(t,e),s=r("type"),a="element-styles";let l=this.getRootElement().querySelector(`style[${s}="${a}"]`);l||(l=document.createElement("style"),l.setAttribute(s,a),this.getRootElement().appendChild(l)),Q({element:l,html:""}),n.forEach(t=>{let e=t.getAttribute(r("element"));const n=this.getEnvironment();let s=i(o,n,e);if(s){if(this.resizeListener.isMobile()){const t=i(o,"desktop",e);t&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),s.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(s),l)}}),this._addLinkColor(l,this.getShared())},this.registerComponentResourceManagement=()=>{this.viewResourceManager.registerComponent(this.model.id,this.componentResourceManager)},this.applyStyles=(t,e={})=>{if(!t||!t.style)return!1;for(const[n,o]of Object.entries(e))t.style[n]=o;return!0},this.applyStylesToElement=(t,e,n)=>{var o,i;const s=[];"host"===(e=Yt._resolveTogglableStylesForElementModel(e)).element&&(Rt.applyHostStyles(this.model.type,t,null,this.layoutType),("desktop"===this.getEnvironment()&&(null===(o=this.model.props.backgroundDynamicInlineSVGElements)||void 0===o?void 0:o.desktop)||"mobile"===this.getEnvironment()&&(null===(i=this.model.props.backgroundDynamicInlineSVGElements)||void 0===i?void 0:i.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),s.push("background")));let a=e.styleAttributes.background,l=a&&a.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&l){this.componentResourceManager.getPending().increment();const t=new Image;t.src=l[1],yt(t,"load",()=>{this.componentResourceManager.getPending().decrement()}),yt(t,"error",()=>{this.componentResourceManager.onResourceLoadFailure(t.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const c=Object.assign(Object.assign({},e),{styleAttributes:wt(e.styleAttributes,s)});if(kt.set(t,c),this._setClassAttributes(t,e),n){if(e.hoverStyleAttributes){let o=Object.assign({},e.hoverStyleAttributes);if("FILL_UP"===e.hoverAnimationType){t.style.boxShadow="inset 0px 0px 0px 0px rgb(0, 0, 0, 0)",t.style.overflow="hidden";const n=t.tagName.toLowerCase(),r=`flip-up-animation-${e.element}`;let i=this.getRootElement().querySelector(`#${r}`);i||(i=document.createElement("style"),i.id=r,t.appendChild(i)),Q({element:i,html:`\n ${n}::before {\n content: '';\n background: ${o.background};\n position: absolute;\n left: 0;\n top: ${t.getBoundingClientRect().height}px;\n height: ${t.getBoundingClientRect().height}px;\n width: 100%;\n z-index: -10;\n }\n ${n}:hover::before {\n top: 0;\n transition: 0.3s;\n }\n `}),o=Object.assign(Object.assign({},e.hoverStyleAttributes),{background:"transparent",position:"relative"})}o.borderTopWidth&&"0px"!==o.borderTopWidth||delete o.borderTopColor,o.borderBottomWidth&&"0px"!==o.borderBottomWidth||delete o.borderBottomColor,o.borderLeftWidth&&"0px"!==o.borderLeftWidth||delete o.borderLeftColor,o.borderRightWidth&&"0px"!==o.borderRightWidth||delete o.borderRightColor,this._addStylesToStyleElement(n,e.element,o,`:not(.${r("no-hover")}):hover`,!0)}e.placeholderStyleAttributes&&this._addStylesToStyleElement(n,e.element,e.placeholderStyleAttributes,"::placeholder"),this._addFontStylesToStyleElement(n,this.getShared()),this.stylesAppliedToElement(t,e,n)}},this.applySharedClassesToElementModel=t=>function(t,e,o=!1){let r=t;return(r.classes||"").split(" ").filter(t=>t.startsWith(n)).forEach(t=>{var n;const i=null===(n=e.textClasses)||void 0===n?void 0:n[t];if(!i)return;let s=function(t,e){return{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),e?t.mobileStyleAttributes:{}),placeholderStyleAttributes:Object.assign(Object.assign({},t.placeholderStyleAttributes),e?t.mobilePlaceholderStyleAttributes:{})}}(i,o);s.styleAttributes.fontFamily||(i.isHeader&&e.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.headerFontFamily})})),!i.isHeader&&e.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.textFontFamily})}))),r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),s.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},r.placeholderStyleAttributes),s.placeholderStyleAttributes)})}),r.styleAttributes.fontFamily||(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},r.styleAttributes),{fontFamily:e.textFontFamily})})),r}(t,this.documentModel.getShared(),this.resizeListener.isMobile()),this.getModel=()=>this.model,this._addStylesToStyleElement=(t,e,n,o="",i)=>{const s=Object.keys(n).reduce((t,e)=>t+` ${Lt.camelCaseToDashCase(e)}: ${n[e]}${i?" !important;":";"}`,"");Q({element:t,html:`[${r("element")}="${e}"]${o} { ${s} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(t,e)=>{Q({element:t,html:`[cl-type] {font-family:${e.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(t,e)=>{var n,o,r,i;e.linkColor&&Q({element:t,html:`a {color: ${e.linkColor}}, a:visited {color: ${e.linkColor}}`,appendHtml:!0}),(null===(n=e.linkParams)||void 0===n?void 0:n.color)&&Q({element:t,html:`a {color: ${null===(o=e.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(r=e.linkParams)||void 0===r?void 0:r.color}}`,appendHtml:!0}),(null===(i=e.linkParams)||void 0===i?void 0:i.removeUnderline)&&Q({element:t,html:"a {text-decoration: none}, a:visited {text-decoration: none}",appendHtml:!0})},this._setClassAttributes=(t,e)=>{Array.from(t.classList).filter(t=>t!==o("hovered")&&t!==o("focused")).forEach(e=>{e.startsWith(n)&&t.classList.remove(e)});const r=((t.getAttribute("class")||"")+" "+e.classes).trim();t.setAttribute("class",r)},this.getParentComponent=()=>Wt(this.parentNode,r("element"),"host"),this.getWidgetContainerNode=()=>{const t=null==this?void 0:this.getAttribute(r("path"));return 1===(null==t?void 0:t.split(",").length)?this.parentNode:Wt(this.parentNode,r("path"),void 0,t=>1===(null==t?void 0:t.split(",").length))},this.getWidgetLanguages=()=>tt(this.services.config),this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=t=>et(t,this.getWidgetLanguages()),this.stylesAppliedToElement=(t,e,n)=>{},this.updateContext=()=>{var t;const e=this.getModel();this.services.context.updateRecord(e.id,{label:this.getContextRecordLabel(e.props),viewIndex:null===(t=e.path)||void 0===t?void 0:t[0]})},this.getAutofillValue=()=>{var t;const e=this.getModel();return new Xt(this.services.config,this.services.context.getRegistry()).resolveValue(null===(t=e.props.control)||void 0===t?void 0:t.autofill,e.id)},this.getValidatedAutofillValue=()=>this.isAutofillValidated?this.validatedAutofillValue:void 0,this.syncAutofillContextRecord=(t,e)=>{this.isAutofillValidated=!0,this.validatedAutofillValue=t?e:void 0,t&&this.services.context.updateRecord(this.getModel().id,{value:e})},this.addContextRecord=()=>{var t,e;const n=this.getModel();this.services.context.addRecord(n.id,{recordKey:n.id,id:n.props.control.name,label:this.getContextRecordLabel(n.props),value:null!==(t=this.getValidatedAutofillValue())&&void 0!==t?t:n.props.control.defaultValue||"",viewIndex:null===(e=n.path)||void 0===e?void 0:e[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(n.props)}})},this.getContextRecordLabel=t=>{var e,n,o,r,i,s;const a=t.control.name;if(["email","first_name","last_name"].includes(a))return a.toUpperCase();if((null===(e=t.content)||void 0===e?void 0:e.label)&&(null===(r=null===(o=null===(n=t.adaptiveStyles)||void 0===n?void 0:n.desktop.find(t=>"label"===t.element))||void 0===o?void 0:o.params)||void 0===r?void 0:r.enabled)){const e=(new DOMParser).parseFromString(t.content.label,"text/html");return this.capitalizeFirstLetter(e.body.textContent||"")}return(null===(i=t.content)||void 0===i?void 0:i.placeholder)?this.capitalizeFirstLetter(t.content.placeholder):(null===(s=t.control)||void 0===s?void 0:s.integrationName)?this.capitalizeFirstLetter(t.control.integrationName).replace(new RegExp("_","g")," "):void 0},this.capitalizeFirstLetter=t=>t.charAt(0).toUpperCase()+t.slice(1),this.getContextRecordExampleValue=t=>{var e;switch(null===(e=t.control)||void 0===e?void 0:e.name){case"email":return"myemail@example.com";case"first_name":return"Maria";case"last_name":return"Taylor";default:return this.getContextRecordLabel(t)}},this.completeSubmitAction=t=>{const e=t||{},n=this.services.actionRegister.getRegisteredActions().find(t=>t.category===zt);n?null==n||n.execute(void 0,void 0,!0,e):this.services.actionFactory.get({type:dt.REQUEST}).execute(void 0,void 0,!0,e)},this.getHandlers=()=>{var t;return(null===(t=this.getProps())||void 0===t?void 0:t.handlers)&&this.getProps().handlers.length?[...this.getProps().handlers]:[]},this.assets=(t="")=>`${this.services.config.getConfig("staticResourcesUrl").replace(/\/$/,"")}/${this.manifest.name}/assets${t?`/${t}`:""}`,this.attachShadow({mode:"open"}),this.manifest=this.manifest||(null===(t=this.constructor.define)||void 0===t?void 0:t.manifest)}connectedCallback(){this.construct(),this.registerComponentResourceManagement(),Promise.resolve().then(()=>{this.attachHandlers()});const t=document.createElement("style");t.textContent='\n :host(.cl-game-spotlight-component)::after {\n content: "";\n position: absolute;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n overflow: visible;\n \n backdrop-filter: blur(4px);\n \n inset: -30px;\n mask-image: \n linear-gradient(to bottom, transparent, grey 30px, grey calc(100% - 30px), transparent),\n linear-gradient(to right, transparent, grey 30px, grey calc(100% - 30px), transparent);\n mask-composite: intersect;\n -webkit-mask-composite: source-in; /* for Chrome/Safari */\n \n transition: opacity 0.35s ease;\n pointer-events: auto;\n }\n ',this.getRootElement().prepend(t)}disconnectedCallback(){var t;this.observers.clear(),this.subscriptions.off(),this.state.destroy(),this.componentEventEmitter.destroy(),null===(t=this.mergeTagsProcessor)||void 0===t||t.destroy()}}Yt._resolveTogglableStylesForElementModel=t=>{const e=Object.assign({},t);return Object.keys(e).forEach(t=>{t.toLowerCase().includes("styleattributes")&&(e[t]=Yt._resolveTogglableStyles(e[t]))}),e},Yt._resolveTogglableStyles=t=>{const e=Object.assign({},t),n=(t,n,o)=>{n in e&&(t.forEach(t=>{t in e&&(e[t]=e[n]?e[t]:o)}),delete e[n])};return n(["marginTop","marginBottom","marginLeft","marginRight"],"_marginEnabled","0px"),n(["paddingTop","paddingBottom","paddingLeft","paddingRight"],"_paddingEnabled","0px"),e};const Zt=Yt,te=Symbol("required");var ee=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};function ne(){}const oe="pending",re="valid",ie="invalid";class se extends Zt{constructor(){super(...arguments),this._createControl=(t={},...e)=>{const{element:n}=t,o=ee(t,["element"]),r=this.getProps(),i=this.getModel(),s=Object.assign(Object.assign(Object.assign({},r.control),{componentId:i.id,viewIdx:i.path[0]}),o),a=this.getAutofillValue();void 0!==a&&(s.defaultValue=a);const l=this.services.form,c=[s,n,...e],d=l.hasControl(r.control.name)?l.updateControl(...c):l.registerControl(...c);return void 0!==a&&d.getValue()===a&&this._validateAutofilledValue(d),d},this._validateAutofilledValue=t=>{t.validate({silent:!0}).then(e=>{e||t.markAsTouched(),this.syncAutofillContextRecord(e,t.getValue())})},this.createControlWithValidation=(t=[],e={})=>{const{element:n=this.getElement("input"),tooltipElement:o=this.getRootElement().querySelector(".input-tooltip"),validCallback:r=ne,invalidCallback:i=ne,pendingCallback:s=ne,elementToListen:a=n,validationMap:l={},listenStatusChange:c=!0}=e,d=ee(e,["element","tooltipElement","validCallback","invalidCallback","pendingCallback","elementToListen","validationMap","listenStatusChange"]);if(o&&(o.style.visibility="hidden"),!t||!Array.isArray(t))throw new Error("Validators should be an array");const h=this.getProps().control.validation,u=(null==h?void 0:h.validator)?l[h.validator]:void 0,p=t.some(t=>t[te]),m=!!(null==h?void 0:h.required),g=m||p,b=[...t];m&&!p&&b.unshift(function(t="REQUIRED"){const e=e=>{let n;switch(typeof e){case"string":n=e&&e.length>0;break;case"boolean":n=e;break;case"number":n=!isNaN(e);break;default:n=!!e}return{isValid:n,errorKey:n?null:t}};return e[te]=!0,e}()),u&&b.push(u);const f=this._prepareAsyncValidators(b),v=this._createControl({element:n,validation:{validator:"custom",required:g}},void 0,f);return c&&this._handleControlStatusChange(Object.assign({control:v,element:a,tooltipElement:o,configService:this.services.config,i18n:this.manifest.i18n,validCallback:r,invalidCallback:i,pendingCallback:s},d)),v},this._prepareAsyncValidators=(t=[])=>t.reduce((t,e,n)=>"function"!=typeof e?(console.warn(`Validator ${n} should be a function, so it will be skipped`),t):(t[`custom_${n}`]=async(...t)=>{const n=await Promise.resolve(e(...t));return"object"==typeof n&&"isValid"in n?Object.assign(Object.assign({},n),{errorKey:n.isValid?null:n.errorKey}):{isValid:!1,errorKey:"INVALID_VALIDATOR_RESPONSE"}},t),{}),this._handleControlStatusChange=t=>{t.control.on(c,e=>{this._handleValidationStatus(t,e)}),t.control.on(d,()=>{let e=oe;switch(!0){case t.control.pending:e=oe;break;case t.control.valid:e=re;break;default:e=ie}this._handleValidationStatus(t,e)})},this._handleValidationStatus=(t,e)=>{const{control:n,element:o,tooltipElement:r,validCallback:i,invalidCallback:s,errorMessageMapper:a,pendingCallback:l}=t,c=this.services.config,d=this.manifest.i18n;switch(e){case re:(function(t,e,n){t&&(t.classList.remove("invalid"),t.setAttribute("aria-invalid","false")),e&&(e.style.visibility="hidden",Z(e,n))})(o,r,this.htmlDocumentObject),i&&i();break;case ie:if(n.touched){const t=n.getErrorKeys();if(!t)break;const e=t[0];let i=function(t,e,n){const o=et(e,tt(t));if(!o)return n;const r=o.translations,i=Object.keys(r).find(t=>t.includes(n));return i?r[i]:n}(c,d,e);a&&(i=a(e,i)),function(t,e,n,o){o=o||document,t&&(t.classList.add("invalid"),t.setAttribute("aria-invalid","true")),e&&(e.style.visibility="visible",e.onmouseenter=()=>Y(e,n,o),e.onmouseleave=()=>Z(e,o))}(o,r,i,this.htmlDocumentObject),s&&s()}break;case oe:n.touched&&(function(t,e,n){e&&(e.style.visibility="hidden",Z(e,n)),t&&t.classList.contains("invalid")&&(t.classList.remove("invalid"),t.removeAttribute("aria-invalid"))}(o,r,this.htmlDocumentObject),l&&l())}}}}const ae=new Map;ae.set("checkboxSize","inputSize"),ae.set("checkboxToTextGapSize","inputToTextGapSize");const le=ae;function ce(t){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(t)}function de(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach(function(e){fe(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ue(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,ve(o.key),o)}}function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(pe=function(){return!!t})()}function me(){return me="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var o=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=ge(t)););return t}(t,e);if(o){var r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},me.apply(null,arguments)}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}function be(t,e){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},be(t,e)}function fe(t,e,n){return(e=ve(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ve(t){var e=function(t){if("object"!=ce(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ce(e)?e:e+""}var ye=function(){function t(){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return fe(e=function(t,e,n){return e=ge(e),function(t,e){if(e&&("object"==ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pe()?Reflect.construct(e,n||[],ge(t).constructor):e.apply(t,n))}(this,t,[].concat(o)),"updateCheckmark",function(t){var n,o=e.getRootElement().querySelector(".checkmark");t?(o.classList.add("checkmark-checked"),n=e.getCheckmarkStyleAttributes("selectedBackground")):(o.classList.remove("checkmark-checked"),n=e.getCheckmarkStyleAttributes("defaultBackground")),o.style.background="".concat(n),o.style["backdrop-filter"]=e.getCheckmarkStyleAttributes("backdropFilter")}),fe(e,"getInputAdaptiveStyles",function(){var t=e.getProps(),n=e.getEnvironment();return t.adaptiveStyles[n].filter(function(t){return"input"===t.element})}),fe(e,"getCheckmarkStyleAttributes",function(t){var n=e.getInputAdaptiveStyles();return n.length&&n[0].markerStyleAttributes?t?n[0].markerStyleAttributes[t]:n[0].markerStyleAttributes:n.length&&n[0].checkmarkStyleAttributes?t?n[0].checkmarkStyleAttributes[t]:n[0].checkmarkStyleAttributes.checkboxSize||n[0].checkmarkStyleAttributes.inputSize?n[0].checkmarkStyleAttributes:he({inputSize:"22px",inputToTextGapSize:"16px"},n[0].checkmarkStyleAttributes):t?e.defaultCheckmarkStyleAttributes[t]:e.defaultCheckmarkStyleAttributes}),fe(e,"registerLabelControl",function(t){var n=e.getProps(),o="".concat(n.control.name,"_label");if(!e.services.form.hasControl(o)){var r={name:o,defaultValue:t};e.services.form.registerControl(he(he({},r),{},{componentId:e.getModel().id,viewIdx:e.getModel().path[0]}),null)}}),fe(e,"setStylesVariables",function(t){var n=e.getCheckmarkStyleAttributes();Object.keys(n).forEach(function(e){var o=le.get(e)||e;t.style.setProperty("--".concat(o),n[e])})}),fe(e,"manifest",a),fe(e,"defaultCheckmarkStyleAttributes",{inputSize:"22px",inputToTextGapSize:"13px",selectedBackground:"rgb(255,255,255)",defaultBackground:"rgb(255,255,255)",backdropFilter:"none"}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(t,se),function(t,e){return e&&ue(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"connectedCallback",value:function(){var e=this;!function(t,e,n){var o=me(ge(t.prototype),"connectedCallback",n);return"function"==typeof o?function(t){return o.apply(n,t)}:o}(t,0,this)([]),this.getRootElement().innerHTML+="\n ".concat('\n<style>\n/* The host height reaches the checkbox row through flex sizing, not height:100%:\n in a quirks-mode document (the dashboard preview iframes are about:blank, some\n customer pages have no doctype) WebKit resolves that percentage past the\n auto-height host against the enclosing flex column, so in Safari the consent\n grew to the column and pushed everything below it out of the view.\n min-height:0 lets the boxes clamp to a host smaller than the label, as\n height:100% did. The chain only works while the host stays display:flex. */\n:host {\n display: flex;\n flex-direction: column;\n}\n\n/* an author :host display beats the user-agent [hidden] rule */\n:host([hidden]) {\n display: none;\n}\n\n.main-container {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.label-with-input-container {\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.input-with-tooltip {\n position: relative;\n display: flex;\n align-items: baseline;\n align-self: stretch;\n width: 100%;\n}\n\n.invalid {\n border: 1px solid #ff0000 !important;\n}\n\n.input-tooltip {\n visibility: hidden;\n position: absolute;\n right: -10px;\n top: -10px;\n z-index: 1;\n border-radius: 100%;\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\ninput {\n -moz-appearance:none;\n -webkit-appearance:none;\n -o-appearance:none;\n width: 24px;\n height: 24px;\n padding: 0 10px;\n margin: 0;\n}\n\n/* The container */\n.checkmark-container {\n display: block;\n position: relative;\n height: 25px;\n width: 25px;\n cursor: pointer;\n font-size: 22px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/* Hide the browser\'s default checkbox */\n.checkmark-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n/* Create a custom checkbox */\n.checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: var(--inputSize, 22px);\n width: var(--inputSize, 22px);\n display: flex;\n align-items: center;\n justify-content: center;\n padding-bottom: 2px;\n}\n\n.checkmark:after {\n content: "";\n position: absolute;\n display: none;\n}\n\n.checkmark-checked:after {\n display: block;\n}\n\n.checkmark-container .checkmark:after {\n width: 9px;\n height: 14px;\n border: solid #000000;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n\n.label {\n margin: auto auto auto var(--inputToTextGapSize, 18px);\n flex: 1;\n height: auto;\n min-height: 10px;\n}\n\ninput:focus ~ .checkmark.focus-outline-defined {\n outline: var(--clFocusOutline);\n}\n\n</style>\n ','\n <div class="main-container">\n <div class="label-with-input-container">\n <div class="input-with-tooltip">\n <label class="checkmark-container">\n <input type="checkbox"\n name="fname"\n aria-labelledby="cl-consent-label">\n <span cl-element="input" class="checkmark"></span>\n </label>\n <div class="input-tooltip" aria-hidden="true">\n <svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">\n <path d="M1.5 13.0604C1.5 19.4116 6.6481 24.5605 13.0075 24.5605C19.353 24.5605 24.5 19.4107 24.5 13.0604C24.5 6.70865 19.3531 1.55909 13.0075 1.55908C6.64806 1.55908 1.5 6.7077 1.5 13.0604ZM12.9775 17.9668C12.7032 17.9668 12.4807 17.7443 12.4807 17.47C12.4807 17.1956 12.7032 16.9732 12.9775 16.9732C13.2519 16.9732 13.4743 17.1956 13.4743 17.47C13.4743 17.7443 13.2519 17.9668 12.9775 17.9668ZM12.9775 13.4764C12.7032 13.4764 12.4807 13.254 12.4807 12.9796L12.4807 8.48924C12.4807 8.21487 12.7032 7.99245 12.9775 7.99245C13.2519 7.99245 13.4743 8.21487 13.4743 8.48924L13.4743 12.9796C13.4743 13.254 13.2519 13.4764 12.9775 13.4764Z" fill="#FF0000" stroke="white" stroke-width="2"></path>\n </svg>\n </div>\n <div cl-element="label"\n cl-inline-edit="content, label"\n class="label"\n id="cl-consent-label">\n </div>\n </div>\n </div>\n </div>\n ');var n=this.getRootElement(),o=n.querySelector(".checkmark"),r=this.createControlWithValidation([],{element:n.querySelector("input"),validCallback:function(){o.classList.contains("invalid")&&o.classList.remove("invalid")},invalidCallback:function(){o.classList.contains("invalid")||o.classList.add("invalid")}});r.on("valueChanged",function(t){e.updateCheckmark(t)}),this.updateCheckmark(!!r.getValue()),this.observeProps(function(t,n){e.applyAutoAdaptiveStyles(n.adaptiveStyles),Q({element:e.getRootElement().querySelector(".label"),html:n.content.label}),e.registerLabelControl(n.content.label);var o,r=e.getRootElement().querySelector('input[type="checkbox"]');r&&r.setAttribute("aria-required",String(!(null===(o=n.control)||void 0===o||null===(o=o.validation)||void 0===o||!o.required))),e.setStylesVariables(e.getHostElement());var i=e.getRootElement().querySelector(".checkmark-container");i.style.width=e.getCheckmarkStyleAttributes("inputSize"),i.style.height=e.getCheckmarkStyleAttributes("inputSize"),function(t){let e=null;const n=t,o=["transparent","initial"];t&&(t.style.borderColor&&!o.includes(t.style.borderColor)&&(parseFloat(t.style.borderWidth)||parseFloat(t.style.borderBottomWidth))&&(e=V(n,t,"borderColor")),!e&&t.style.getPropertyValue("--borderBottomColor")&&!o.includes(t.style.getPropertyValue("--borderBottomColor"))&&parseFloat(t.style.getPropertyValue("--borderBottomWidth"))&&(e=V(n,t,"--borderBottomColor")),e||!t.style.backgroundColor||o.includes(t.style.backgroundColor)||(e=V(n,t,"backgroundColor")),e||!t.style.color||o.includes(t.style.color)||(e=V(n,t,"color")),e||n.classList.remove("focus-outline-defined"))}(e.getElement("input"))})}}])}();fe(ye,"define",{name:"sys-consent",model:a.name,manifest:a});export{ye as default};window.clComponentClass_SysConsentComponent=ye;