@claspo/components 1.10.32 → 1.10.33

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="validationStatusChanged",e="touchedStatusChanged";class n{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 o(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 i=Array.prototype.concat,r=Array.prototype.slice,s=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var l=t[n];o(l)?e=i.call(e,r.call(l)):e.push(l)}return e};s.wrap=function(t){return function(){return t(s(arguments))}};const l=s;var a={},c=Object.hasOwnProperty,d=Object.create(null);for(var p in a)c.call(a,p)&&(d[a[p]]=p);var u={to:{},get:{}};function h(t,e,n){return Math.min(Math.max(e,t),n)}u.get=function(t){var e,n;return"hsl"===t.substring(0,3).toLowerCase()?(e=u.get.hsl(t),n="hsl"):(e=u.get.rgb(t),n="rgb"),e?{model:n,value:e}:null},u.get.rgb=function(t){if(!t)return null;var e,n,o,i=[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 r=2*n;i[n]=parseInt(e.slice(r,r+2),16)}o&&(i[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++)i[n]=parseInt(e[n]+e[n],16);o&&(i[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++)i[n]=parseInt(e[n+1],0);e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[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]:c.call(a,e[1])?((i=a[e[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=h(i[n],0,255);return i[3]=h(i[3],0,1),i},u.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,h(parseFloat(e[2]),0,100),h(parseFloat(e[3]),0,100),h(isNaN(n)?1:n,0,1)]}return null},u.to.rgb=function(){var t=l(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]+")"},u.to.hsl=function(){var t=l(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 m=u,b={},g={};for(const t of Object.keys(b))g[b[t]]=t;const f={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"}};Math.pow(6/29,3);for(const t of Object.keys(f)){if(!("channels"in f[t]))throw new Error("missing channels property: "+t);if(!("labels"in f[t]))throw new Error("missing channel labels property: "+t);if(f[t].labels.length!==f[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=f[t];delete f[t].channels,delete f[t].labels,Object.defineProperty(f[t],"channels",{value:e}),Object.defineProperty(f[t],"labels",{value:n})}f.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.min(e,n,o),r=Math.max(e,n,o),s=r-i;let l,a;r===i?l=0:e===r?l=(n-o)/s:n===r?l=2+(o-e)/s:o===r&&(l=4+(e-n)/s),l=Math.min(60*l,360),l<0&&(l+=360);const c=(i+r)/2;return a=r===i?0:c<=.5?s/(r+i):s/(2-r-i),[l,100*a,100*c]},f.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let i,r,s;if(0===n)return s=255*o,[s,s,s];i=o<.5?o*(1+n):o+n-o*n;const l=2*o-i,a=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,s=6*r<1?l+6*(i-l)*r:2*r<1?i:3*r<2?l+(i-l)*(2/3-r)*6:l,a[t]=255*s;return a};const v=f;function y(t,e){return function(n){return e(t(n))}}function E(t,e){const n=[e[t].parent,t];let o=v[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),o=y(v[e[i].parent][i],o),i=e[i].parent;return o.conversion=n,o}const O={};Object.keys(v).forEach(t=>{O[t]={},Object.defineProperty(O[t],"channels",{value:v[t].channels}),Object.defineProperty(O[t],"labels",{value:v[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(v);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(v[t]);for(let i=o.length,r=0;r<i;r++){const i=o[r],s=e[i];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(i))}}return e}(t),n={},o=Object.keys(e);for(let t=o.length,i=0;i<t;i++){const t=o[i];null!==e[t].parent&&(n[t]=E(t,e))}return n}(t);Object.keys(e).forEach(n=>{const o=e[n];O[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),O[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 S=O,T=["keyword","gray","hex"],C={};for(const t of Object.keys(S))C[[...S[t].labels].sort().join("")]=t;const A={};function R(t,e){if(!(this instanceof R))return new R(t,e);if(e&&e in T&&(e=null),e&&!(e in S))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 R)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=m.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,o=S[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=S[this.model].channels;const n=Array.prototype.slice.call(t,0,o);this.color=P(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 C))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=C[o];const{labels:i}=S[this.model],r=[];for(n=0;n<i.length;n++)r.push(t[i[n]]);this.color=P(r)}if(A[this.model])for(o=S[this.model].channels,n=0;n<o;n++){const t=A[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)}R.prototype={toString(){return this.string()},string(t){let e=this.model in m.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const n=1===e.valpha?e.color:[...e.color,this.valpha];return m.to[e.model](n)},round(t){return t=Math.max(t||0,0),new R([...this.color.map(k(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new R([...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(S)){if(T.includes(t))continue;const{channels:e}=S[t];R.prototype[t]=function(...e){return this.model===t?new R(this):e.length>0?new R(e,t):new R([...x(S[this.model][t].raw(this.color)),this.valpha],t)},R[t]=function(...n){let o=n[0];return"number"==typeof o&&(o=P(n,e)),new R(o,t)}}function k(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function x(t){return Array.isArray(t)?t:[t]}function P(t,e){for(let n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}const _=R;function w(t){const{element:e,html:n,appendHtml:o}=t,i=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]').forEach(t=>t.remove()),e.querySelectorAll("*").forEach(t=>{if(["onclick","onload","onerror","onmouseover","onfocus","onblur","onkeyup","onkeydown","onchange","onsubmit","onmouseenter","onmouseleave","onmouseout","oncontextmenu","ondrag","ondrop"].forEach(e=>t.removeAttribute(e)),Array.from(t.attributes).forEach(e=>{e.name.startsWith("on")&&t.removeAttribute(e.name)}),"A"===t.tagName||"AREA"===t.tagName){const e=t.getAttribute("href");e&&(e.startsWith("javascript:")||e.startsWith("data:"))&&t.removeAttribute("href")}if("IMG"===t.tagName||"IFRAME"===t.tagName){const e=t.getAttribute("src");e&&(e.startsWith("javascript:")||e.startsWith("data:text/html"))&&t.removeAttribute("src")}if("FORM"===t.tagName){const e=t.getAttribute("action");e&&e.startsWith("javascript:")&&t.removeAttribute("action")}}),e.body.innerHTML}(n);o?e.innerHTML+=i:e.innerHTML=i}function I(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function L(t,e){const n=window.getComputedStyle(t);return e.reduce((t,e)=>(t[e]=n.getPropertyValue(e),t),{})}function N(t,e){var n,o;let i;return t.styles&&(i=null===(n=t.styles.find(t=>"label"===t.element))||void 0===n?void 0:n.params),t.adaptiveStyles&&!i&&(i=null===(o=t.adaptiveStyles[e].find(t=>"label"===t.element))||void 0===o?void 0:o.params),i}function M(t,e,n,o){var i;const r=n.querySelector(o),s=n.querySelector(".label"),l=N(t,e);s&&function(t,e){if(!e)return;t.id||(t.id=((t="cl-a11y")=>`${t}-${Math.random().toString(36).slice(2,10)}`)("cl-label"));const n=e.getAttribute("role"),o="group"===n||"radiogroup"===n?e:e.querySelector('[cl-element="input"]');if(!o)return;const i=(o.getAttribute("aria-labelledby")||"").split(" ").filter(Boolean);i.includes(t.id)||(i.push(t.id),o.setAttribute("aria-labelledby",i.join(" ")))}(s,r),l&&s&&(w({element:s,html:(null===(i=t.content)||void 0===i?void 0:i.label)||""}),"TOP"===l.position?(r.style.flexDirection="column",r.style.alignItems="unset",I(s,{marginRight:"0",marginBottom:`${l.margin}px`})):(r.style.flexDirection="row",r.style.alignItems="center",I(s,{marginRight:`${l.margin}px`,marginBottom:"0"})),l.enabled?s.style.display="":s.style.display="none")}function j(t,e,n,o,i){const r=function(t,e){var n;let o;if(t.styles){const e=null===(n=t.styles.find(t=>"input"===t.element))||void 0===n?void 0:n.styleAttributes;(null==e?void 0:e.width)&&(o=e)}if(t.adaptiveStyles&&!o){const n=t.adaptiveStyles[e].find(t=>"input"===t.element),i=null==n?void 0:n.styleAttributes;(null==i?void 0:i.width)&&(o=i)}return o}(t,e);if(!r)return;const s=N(t,e),l=i&&s&&s.enabled&&"TOP"===s.position?i.getBoundingClientRect().height+(s.margin||0):0;r.width&&(r.width.includes("100%")?(o.style.width="100%",n.style.width=r.width):n.style.width="auto"),r.height&&(r.height.includes("100%")?(o.style.height="100%",n.style.height=r.height):n.style.height=`${parseFloat(r.height)+l}px`)}function U(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=_(o).alpha(.5).string();return t.classList.add("focus-outline-defined"),t.style.setProperty("--clFocusOutline",`3px solid ${e}`),e}return null}function D(t){const{width:e,height:n}=t.getBoundingClientRect(),{marginBottom:o,marginTop:i,marginLeft:r,marginRight:s}=window.getComputedStyle(t);return{width:e+parseInt(r,10)+parseInt(s,10),height:n+parseInt(i,10)+parseInt(o,10)}}function B(t,e,n,o,i){switch(t.position){case"top":return{left:`${V(e,n,o,i)}px`,top:t.availableSpaceAboveTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"bottom":return{left:`${V(e,n,o,i)}px`,bottom:t.availableSpaceBelowTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"left":return{left:t.availableSpaceToTheLeftSideOfTheTrigger-e.width-t.contentWidth-t.horizontalOffset+"px",top:`${W(0,t)}px`};case"right":return{right:t.availableSpaceToTheRightSideOfTheTrigger-t.contentWidth-t.horizontalOffset+"px",top:`${W(0,t)}px`}}}function V(t,e,o,i){let r=o?t.x+t.width/2-e.width/2:t.x;return r<0&&(r=0),r+e.width>n.width(i)&&(r-=r+e.width-n.width(i)),r}function W(t,e){let n=e.availableSpaceAboveTriggerElem;return e.contentHeight>e.availableSpaceBelowTriggerElem&&(n-=e.contentHeight-e.availableSpaceBelowTriggerElem),n}const F="cl-tooltip-text-styles",H=`\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 $(t,e,o,i){i=i||document;let r=null;t&&(t.classList.add("invalid"),t.setAttribute("aria-invalid","true")),e&&(e.style.visibility="visible"),e&&(e.onmouseenter=()=>{(function(t){if((t=t||document).head.querySelector(`#${F}`))return;const e=document.createElement("style");e.setAttribute("id",F),w({element:e,html:H}),t.head.appendChild(e)})(i),r=function(t){const e="cl-overlay-tooltip-text",n=document.getElementById(e)||document.createElement("div");return n.classList.add("cl-tooltip-text"),n.textContent!==t&&(n.textContent=t,n.style=null),n.id||(n.id=e),n}(o),i.body.append(r),r.style.visibility="visible",function(t){const{triggerElement:e,tooltipElement:o,offset:i=10,htmlDocumentObject:r}=t,s=function(t,e,o,i,r,s){const l=function(t,e,o,i,r){const s=function(t,e,o,i){const r=n.width(i),{right:s}=t.getBoundingClientRect(),l=r-o-s-n.scrollbarWidth(i);return{horizontalOffset:o,contentWidth:D(e).width,availableSpaceToTheLeftSideOfTheTrigger:s-o,availableSpaceToTheRightSideOfTheTrigger:l}}(t,e,o,r),l=function(t,e,o,i){const r=n.height(i),{top:s,bottom:l}=t.getBoundingClientRect();return{verticalOffset:o,contentHeight:D(e).height,availableSpaceAboveTriggerElem:s-o,availableSpaceBelowTriggerElem:r-l-o}}(t,e,o,r);let a="undefined";const c={bottom:l.availableSpaceBelowTriggerElem>=l.contentHeight,top:l.availableSpaceAboveTriggerElem>=l.contentHeight,right:s.availableSpaceToTheRightSideOfTheTrigger>=s.contentWidth,left:s.availableSpaceToTheLeftSideOfTheTrigger>=s.contentWidth};if(c.top?a="top":c.bottom?a="bottom":c.right?a="right":c.left&&(a="left"),i&&c[i]&&(a=i),"undefined"===a){const t=Math.max(l.availableSpaceBelowTriggerElem,l.availableSpaceAboveTriggerElem,s.availableSpaceToTheRightSideOfTheTrigger,s.availableSpaceToTheLeftSideOfTheTrigger);t===l.availableSpaceBelowTriggerElem?a="bottom":t===l.availableSpaceAboveTriggerElem?a="top":t===s.availableSpaceToTheRightSideOfTheTrigger?a="right":t===s.availableSpaceToTheLeftSideOfTheTrigger&&(a="left")}return Object.assign(Object.assign(Object.assign({},l),s),{position:a})}(t,e,o,i,s=s||document);return function(t,e){const{marginBottom:n,marginTop:o}=window.getComputedStyle(e);if("top"===t.position)I(e,{"margin-top":`${parseInt(o,10)+parseInt(n,10)}px`}),I(e,{"margin-bottom":"0px"});else if("bottom"===t.position)I(e,{"margin-bottom":`${parseInt(n,10)+parseInt(o,10)}px`}),I(e,{"margin-top":"0px"});else{const t=(parseInt(n,10)+parseInt(o,10))/2+"px";I(e,{"margin-top":t,"margin-bottom":t})}}(l,e),{coordinates:B(l,t.getBoundingClientRect(),e.getBoundingClientRect(),r,s),position:l.position}}(e,o,i,"top",!0,r);o.setAttribute("cl-tooltip-position",s.position),I(o,s.coordinates)}({triggerElement:e,tooltipElement:r,htmlDocumentObject:i})},e.onmouseleave=()=>{r&&(r.remove(),function(t){const e=(t=t||document).head.querySelector(`#${F}`);e&&e.remove()}(i))})}function G(t){return[t.getConfig("appearanceLanguage"),t.getConfig("browserLanguage"),"en"].filter(t=>!!t)}function z(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 Q="cl-";function K(t){return Q+t}function q(t){return"cl-"+t}const X="VIEW",Z="CONTAINER",J="INPUT",Y="BUTTON",tt="CONSENT",et="COLUMN";var nt,ot;(ot=nt||(nt={})).SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",ot.REQUEST="REQUEST",ot.DISPATCH_EVENT="DISPATCH_EVENT",ot.GO_TO_VIEW="GO_TO_VIEW",ot.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",ot.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",ot.SHOW_WIDGET="SHOW_WIDGET",ot.OPEN_LINK="OPEN_LINK",ot.CLOSE_WIDGET="CLOSE_WIDGET",ot.CLICK="CLICK";const it=nt;var rt,st;class lt{static sortActions(t){const e={[it.CLOSE_WIDGET]:-1,[it.OPEN_LINK]:-2,[it.SHOW_WIDGET]:1,[it.SUBSCRIBE_CONTACT]:2,[it.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=lt.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(q("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(q("type")));let n=0;for(;e[n]&&e[n].getAttribute(q("id"))!==i;){let t=e[n].getAttribute(q("type"));if(lt.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 i,r=!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,i){!function(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}(o,i,(e=t[n](e)).done,e.value)})}}}(this.eventsQueue);!(t=(i=await s.next()).done);r=!0){o=i.value,r=!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{r||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=[])}}lt.IGNORING_VIEW_ENTRY_TYPES=[Y,tt,J],(st=rt||(rt={})).CLICK="CLICK",st.COMPONENT_EVENT="COMPONENT_EVENT";class at{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(q("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 ct{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 rt.CLICK:return new lt(t,e);case rt.COMPONENT_EVENT:return new at(t,e);default:throw new Error(`Not supported handler type ${t.type}`)}}}class dt{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 pt{constructor(){this.listeners=pt.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=dt.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=pt.createDefaultListenersState()}}pt.createDefaultListenersState=()=>({"*":{}});const ut=pt,ht=(t,e,n,o)=>{const i=EventTarget.prototype,{addEventListenerBase:r,addEventListener:s}=i;(r||s).call(t,e,n,o)};class mt{constructor(t){this.state=t||{}}getState(){return this.state}setState(t){this.state=Object.assign(Object.assign({},this.state),t)}destroy(){}}class bt extends ut{constructor(t,e){super(),this.config=e,this.handleMobileBreakpoint(t.getShared().mobileBreakpointWidth),t.on("ENVIRONMENT_UPDATE",({isMobileEnv:t})=>{this._isMobile=t,this.emit(bt.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(bt.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(t){this._isMobile=t.matches,this.emit(bt.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}bt.changeEventName="CHANGE";const gt=bt;class ft{static set(t,e){const n=t[ft.accumulatorPropertyName]||{};t[ft.accumulatorPropertyName]=Object.assign(Object.assign({},n),e.styleAttributes),Object.keys(t[ft.accumulatorPropertyName]).forEach(n=>{n.includes("--")?t.style.setProperty(n,e.styleAttributes[n]||""):t.style[n]=e.styleAttributes[n]?e.styleAttributes[n]:""})}}ft.accumulatorPropertyName="clStyleAttributes";const vt=ft;var yt,Et;(Et=yt||(yt={})).BUILT_IN="BUILT_IN",Et.DETACHED="DETACHED",Et.FLOATING_BOX="FLOATING_BOX",Et.FLOATING_BAR="FLOATING_BAR",Et.LAUNCHER="LAUNCHER",Et.CONTENT_LOCKER="CONTENT_LOCKER";class Ot{static applyHostStyles(t,e,n=null,o){var i,r,s;const l=null===(r=null===(i=null==n?void 0:n.props)||void 0===i?void 0:i.handlers)||void 0===r?void 0:r.find(t=>"CLICK"===t.type);l&&(null===(s=l.actions)||void 0===s?void 0:s.length)&&(e.style.cursor="pointer"),t!==X&&t!==Z&&t!==et||(e.style.display=o===yt.CONTENT_LOCKER&&t===X?"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 St{static log(t){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(t)):console.error(t)}}class Tt{constructor(t,e,n,o,i,r){this.hostElement=e,this.documentModel=t,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=i,this.httpClient=r,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,i,r,s,l;const a=null===(i=null===(o=e.adaptiveStyles)||void 0===o?void 0:o[t])||void 0===i?void 0:i.find(t=>t.element===n),c=(null===(r=e.styles)||void 0===r?void 0:r.find(t=>t.element===n))||{},d=(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.background)||(null===(l=null==a?void 0:a.styleAttributes)||void 0===l?void 0:l.background),p=this.parseBackground(d);p.url&&this.envUrlMaps[t].set(n,{originalSVGResourceURL:p.url,inlineSvgString:null,positionOptions:p.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),St.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 i;o=o.replace(`var(--${i=n,`cl-schema-${i}`})`,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 Ct=new class{execute({url:t,method:e="GET",body:n=null,headers:o,abortSignal:i}){const r={method:e,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:i};return n&&(r.body="string"==typeof n?n:JSON.stringify(n)),fetch(t,r)}};function At(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>Object.assign(Object.assign({},e),{[n]:t[n]}),{})}class Rt{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 kt{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 xt;!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"}(xt||(xt={}));const Pt=xt;class _t{constructor(t,e,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=t=>{0===t&&this.systemEventEmitter.emit(Pt.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=t=>{this.isStaticEntryModule?this.systemEventEmitter.emit(Pt.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 kt(this.onCounterStateUpdate)}}}const wt=(...t)=>{let e=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[]}),{});return{get:t=>e[t],clear:()=>wt(...t)}},It=wt,Lt="props",Nt="shared",Mt="environment";function jt(t,e,n,o){const i=t=>{let r=function(t){return t instanceof DocumentFragment||(null==t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?t.host||null:t}(t);return r&&(o&&"function"==typeof o?o(r.getAttribute(e)):(null===(s=null==r?void 0:r.getAttribute)||void 0===s?void 0:s.call(r,e))===n)?r:r&&r.parentNode&&i(r.parentNode)||null;var s};return i(t)}const Ut="SUBMIT";function Dt(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 Bt={DESKTOP:"desktop",MOBILE:"mobile"};function Vt(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 Wt(t=[]){return t.map(t=>Object.assign(Object.assign({},t),{styleAttributes:Object.assign({},t.styleAttributes)}))}const Ft=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class Ht extends Ft{constructor(t,e={},n){super(t,Object.assign(Object.assign({},n),{detail:e}))}}var $t,Gt,zt;function Qt(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"}($t||($t={})),(zt=Gt||(Gt={})).STATIC="STATIC",zt.DATA_LAYER="DATA_LAYER",zt.URL_QUERY_PARAMS="URL_QUERY_PARAMS",zt.JS_API_VARIABLE="JS_API_VARIABLE",zt.COOKIE="COOKIE",zt.LOCAL_STORAGE="LOCAL_STORAGE";class Kt{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")===$t.UPDATING)return;const n=function(t,e,n,o){if(!e)return;if(e===Gt.STATIC)return Qt(null==n?void 0:n.value);const i=t.getSource(e);if(!i)return;const r=i.getValue(o);return Qt("function"==typeof(null==r?void 0:r.processor)?r.processor(i,Object.assign({id:o},n)):null==r?void 0:r.value)}(this.registry,t.sourceType,t.config,e);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class qt extends HTMLElement{constructor(){var t;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let t;const e=this.getAttribute(q("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${q("widget-id")}]`);let i;o&&(i=o.getAttribute(q("widget-id")));let r=new Ht("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(q("path")),id:e,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(r),t=r.detail.props,Object.assign(this,t),this.observers=It(Lt,Nt,Mt),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 mt({}),this.componentEventEmitter=new ut,this.componentResourceManager=new _t(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new ct(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(Lt).forEach(e=>e(this.prevProps,t)),this.prevProps=t;const e=this.getHostElement(),n=q("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(Nt).forEach(t=>t(this.getShared()))}),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new Tt(this.documentModel,this.getHostElement(),()=>this.getShared(),()=>this.model.props,()=>this.getEnvironment(),Ct),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(gt.changeEventName,()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const t=this.getEnvironment();this.observers.get(Mt).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")===$t.STATIC,this.isUpdatingRenderMode=()=>this.services.config.getConfig("renderMode")===$t.UPDATING,this.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=t=>{this.observers.get(Lt).push(t),t(null,this.prevProps)},this.observeShared=t=>{this.observers.get(Nt).push(t),t(this.getShared())},this.observeEnvironment=t=>{this.observers.get(Mt).push(t),t(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${q("element")}]`)).filter(t=>!t.hasAttribute(q("component")))],this.getElement=(t,e)=>this.getElements().find(n=>e?n.getAttribute(q("element"))===t&&n.id===e:n.getAttribute(q("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,i=!1;n.desktop&&n.desktop.forEach(n=>{n.element===e&&(Dt(n,t),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===e&&(Dt(n,t),i=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(t))),!i&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(t)))}),n}(t,e),i=q("type"),r="element-styles";let s=this.getRootElement().querySelector(`style[${i}="${r}"]`);s||(s=document.createElement("style"),s.setAttribute(i,r),this.getRootElement().appendChild(s)),w({element:s,html:""}),n.forEach(t=>{let e=t.getAttribute(q("element"));const n=this.getEnvironment();let i=Vt(o,n,e);if(i){if(this.resizeListener.isMobile()){const t=Vt(o,"desktop",e);t&&(i=Object.assign(Object.assign({},i),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),i.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(i),s)}}),this._addLinkColor(s,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 r=[];"host"===(e=qt._resolveTogglableStylesForElementModel(e)).element&&(Ot.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()),r.push("background")));let s=e.styleAttributes.background,l=s&&s.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&l){this.componentResourceManager.getPending().increment();const t=new Image;t.src=l[1],ht(t,"load",()=>{this.componentResourceManager.getPending().decrement()}),ht(t,"error",()=>{this.componentResourceManager.onResourceLoadFailure(t.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const a=Object.assign(Object.assign({},e),{styleAttributes:At(e.styleAttributes,r)});if(vt.set(t,a),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(),i=`flip-up-animation-${e.element}`;let r=this.getRootElement().querySelector(`#${i}`);r||(r=document.createElement("style"),r.id=i,t.appendChild(r)),w({element:r,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(.${q("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,n=!1){let o=t;return(o.classes||"").split(" ").filter(t=>t.startsWith(Q)).forEach(t=>{var i;const r=null===(i=e.textClasses)||void 0===i?void 0:i[t];if(!r)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:{})}}(r,n);s.styleAttributes.fontFamily||(r.isHeader&&e.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.headerFontFamily})})),!r.isHeader&&e.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.textFontFamily})}))),o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),s.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},o.placeholderStyleAttributes),s.placeholderStyleAttributes)})}),o.styleAttributes.fontFamily||(o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),{fontFamily:e.textFontFamily})})),o}(t,this.documentModel.getShared(),this.resizeListener.isMobile()),this.getModel=()=>this.model,this._addStylesToStyleElement=(t,e,n,o="",i)=>{const r=Object.keys(n).reduce((t,e)=>t+` ${Rt.camelCaseToDashCase(e)}: ${n[e]}${i?" !important;":";"}`,"");w({element:t,html:`[${q("element")}="${e}"]${o} { ${r} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(t,e)=>{w({element:t,html:`[cl-type] {font-family:${e.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(t,e)=>{var n,o,i,r;e.linkColor&&w({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)&&w({element:t,html:`a {color: ${null===(o=e.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(i=e.linkParams)||void 0===i?void 0:i.color}}`,appendHtml:!0}),(null===(r=e.linkParams)||void 0===r?void 0:r.removeUnderline)&&w({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!==K("hovered")&&t!==K("focused")).forEach(e=>{e.startsWith(Q)&&t.classList.remove(e)});const n=((t.getAttribute("class")||"")+" "+e.classes).trim();t.setAttribute("class",n)},this.getParentComponent=()=>jt(this.parentNode,q("element"),"host"),this.getWidgetContainerNode=()=>{const t=null==this?void 0:this.getAttribute(q("path"));return 1===(null==t?void 0:t.split(",").length)?this.parentNode:jt(this.parentNode,q("path"),void 0,t=>1===(null==t?void 0:t.split(",").length))},this.getWidgetLanguages=()=>G(this.services.config),this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=t=>z(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 Kt(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,i,r,s;const l=t.control.name;if(["email","first_name","last_name"].includes(l))return l.toUpperCase();if((null===(e=t.content)||void 0===e?void 0:e.label)&&(null===(i=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===i?void 0:i.enabled)){const e=(new DOMParser).parseFromString(t.content.label,"text/html");return this.capitalizeFirstLetter(e.body.textContent||"")}return(null===(r=t.content)||void 0===r?void 0:r.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===Ut);n?null==n||n.execute(void 0,void 0,!0,e):this.services.actionFactory.get({type:it.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()}}qt._resolveTogglableStylesForElementModel=t=>{const e=Object.assign({},t);return Object.keys(e).forEach(t=>{t.toLowerCase().includes("styleattributes")&&(e[t]=qt._resolveTogglableStyles(e[t]))}),e},qt._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 Xt=qt,Zt=Symbol("required");var Jt=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 i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n};function Yt(){}const te="pending",ee="valid",ne="invalid";class oe extends Xt{constructor(){super(...arguments),this._createControl=(t={},...e)=>{const{element:n}=t,o=Jt(t,["element"]),i=this.getProps(),r=this.getModel(),s=Object.assign(Object.assign(Object.assign({},i.control),{componentId:r.id,viewIdx:r.path[0]}),o),l=this.getAutofillValue();void 0!==l&&(s.defaultValue=l);const a=this.services.form,c=[s,n,...e],d=a.hasControl(i.control.name)?a.updateControl(...c):a.registerControl(...c);return void 0!==l&&d.getValue()===l&&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:i=Yt,invalidCallback:r=Yt,pendingCallback:s=Yt,elementToListen:l=n,validationMap:a={},listenStatusChange:c=!0}=e,d=Jt(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 p=this.getProps().control.validation,u=(null==p?void 0:p.validator)?a[p.validator]:void 0,h=t.some(t=>t[Zt]),m=!!(null==p?void 0:p.required),b=m||h,g=[...t];m&&!h&&g.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[Zt]=!0,e}()),u&&g.push(u);const f=this._prepareAsyncValidators(g),v=this._createControl({element:n,validation:{validator:"custom",required:b}},void 0,f);return c&&this._handleControlStatusChange(Object.assign({control:v,element:l,tooltipElement:o,configService:this.services.config,i18n:this.manifest.i18n,validCallback:i,invalidCallback:r,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=n=>{n.control.on(t,t=>{this._handleValidationStatus(n,t)}),n.control.on(e,()=>{let t=te;switch(!0){case n.control.pending:t=te;break;case n.control.valid:t=ee;break;default:t=ne}this._handleValidationStatus(n,t)})},this._handleValidationStatus=(t,e)=>{const{control:n,element:o,tooltipElement:i,validCallback:r,invalidCallback:s,errorMessageMapper:l,pendingCallback:a}=t,c=this.services.config,d=this.manifest.i18n;switch(e){case ee:(function(t,e){t&&(t.classList.remove("invalid"),t.setAttribute("aria-invalid","false")),e&&(e.style.visibility="hidden")})(o,i),r&&r();break;case ne:if(n.touched){const t=n.getErrorKeys();if(!t)break;const e=t[0];let r=function(t,e,n){const o=z(e,G(t));if(!o)return n;const i=o.translations,r=Object.keys(i).find(t=>t.includes(n));return r?i[r]:n}(c,d,e);l&&(r=l(e,r)),$(o,i,r,this.htmlDocumentObject),s&&s()}break;case te:n.touched&&(function(t,e){e&&(e.style.visibility="hidden"),t&&t.classList.contains("invalid")&&(t.classList.remove("invalid"),t.removeAttribute("aria-invalid"))}(o,i),a&&a())}}}}function ie(t){return Object.values(Bt).map(e=>({type:"GROUP",propPath:["adaptiveStyles",e],children:t}))}const re={name:"SysCheckboxListComponent",componentType:"MULTIPLE_INPUT",version:"1.0.0",mappingTypes:["CHECKBOX_LIST"],contextMenuModel:ie([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:ie([{type:"CONTROL",name:"SIZE",elementProp:"styleAttributes",element:"input",params:{height:{hide:!0}}},{type:"CONTROL",name:"MARGIN",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"CONTAINER_PADDING",elementProp:"styleAttributes",element:"host"}]),propertyPaneModel:{content:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{type:"CONTROL",name:"SIZE",element:"input",elementProp:"styleAttributes",params:{width:{options:["fixed","hug","fill"]},height:{options:["hug","fill"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"input"},{element:"label"}]},{type:"CONTROL",name:"LIST_POSITION",elementProp:"styleAttributes",element:"listContainer"},{type:"CONTROL",name:"MULTIPLE_INPUT_SIZE",element:"input",params:{inputType:"CHECKBOX"}},{type:"CONTROL",name:"BACKGROUND_MARKER_SELECTED",propPath:["styles","[element=input]","markerStyleAttributes"],params:{label:"DOCUMENT_CHOSEN_ITEM_COLOR_TITLE",property:"selectedColor",onlyColorSelection:!0,disableGradientSelection:!0,hideSwitch:!0}},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=input]","markerStyleAttributes"],params:{onlyColorSelection:!0}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=input]","markerStyleAttributes"],params:{minValue:1,maxValue:5,hideAdditionalParams:!0}},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"INPUT_LABEL",propPath:["styles","[element=label]","params"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{type:"CONTROL",name:"SIZE",element:"input",elementProp:"styleAttributes",params:{width:{options:["fixed","hug","fill"]},height:{options:["hug","fill"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"input"},{element:"label"}]},{type:"CONTROL",name:"LIST_POSITION",elementProp:"styleAttributes",element:"listContainer"},{type:"CONTROL",name:"MULTIPLE_INPUT_SIZE",element:"input",params:{inputType:"CHECKBOX"}},{type:"CONTROL",name:"BACKGROUND_MARKER_SELECTED",propPath:["styles","[element=input]","markerStyleAttributes"],params:{label:"DOCUMENT_CHOSEN_ITEM_COLOR_TITLE",property:"selectedColor",onlyColorSelection:!0,disableGradientSelection:!0,hideSwitch:!0}},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=input]","markerStyleAttributes"],params:{onlyColorSelection:!0}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=input]","markerStyleAttributes"],params:{minValue:1,maxValue:4,hideAdditionalParams:!0}},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"INPUT_LABEL",propPath:["styles","[element=label]","params"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]}],general:[{type:"CONTROL",name:"INTEGRATION_FIELD_MAPPING",params:{integrationNamePropPath:["control","integrationName"],groupNamePropPath:["control","groupName"],fieldNamePropPath:["control","fieldName"],fieldTypePropPath:["control","fieldType"],validationPropPath:["control","validation"],placeholderPropPath:["content","placeholder"],labelPropPath:["content","label"],optionsPropPath:["control","options"],optionsAlphabeticSortPropPath:["control","optionsAlphabeticSort"]}},{type:"CONTROL",name:"COMPONENT_OPTIONS",params:{label:"DOCUMENT_EXPORT_ID",header:"DOCUMENT_OPTIONS_HEADER",tooltip:"DOCUMENT_OPTIONS_TOOLTIP_PART1,DOCUMENT_OPTIONS_TOOLTIP_PART2",origin:!0,optionsPropPath:["control","options"],optionsAlphabeticSortPropPath:["control","optionsAlphabeticSort"],integrationNamePropPath:["control","integrationName"]}},{type:"CONTROL",name:"INPUT_VALIDATION",params:{validationPropPath:["control","validation"],fieldTypePropPath:["control","fieldType"],required:!0}}]},i18nPropertyPaneModel:{content:[{type:"CONTROL",name:"COMPONENT_OPTIONS",params:{label:"DOCUMENT_EXPORT_ID",header:"DOCUMENT_OPTIONS_HEADER",tooltip:"DOCUMENT_OPTIONS_TOOLTIP_PART1,DOCUMENT_OPTIONS_TOOLTIP_PART2",origin:!1,optionsPropPath:["control","options"],optionsAlphabeticSortPropPath:["control","optionsAlphabeticSort"],integrationNamePropPath:["control","integrationName"]}}]},autoContrast:[{slave:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","selectedColor"]},master:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","background"]},enabledPropPath:["content","selectedColorContrastEnabled"]}],focusableElements:["input","label"],events:{dispatch:[],listen:[]},i18nPropPaths:["content,label","control,options,[id],label"],i18n:{en:{"control,validation,validationErrors,REQUIRED":"Required field","content,label":"Title"},ru:{"control,validation,validationErrors,REQUIRED":"Обязательное поле","content,label":"Заголовок"},uk:{"control,validation,validationErrors,REQUIRED":"Обов'язкове поле","content,label":"Заголовок"},es:{"control,validation,validationErrors,REQUIRED":"Campo obligatorio","content,label":"Título"},de:{"control,validation,validationErrors,REQUIRED":"Pflichtfeld","content,label":"Titel"},fr:{"control,validation,validationErrors,REQUIRED":"Champs requis","content,label":"Titre"},it:{"control,validation,validationErrors,REQUIRED":"Campo obbligatorio","content,label":"Titolo"},pt:{"control,validation,validationErrors,REQUIRED":"Campo obrigatório","content,label":"Título"},ro:{"control,validation,validationErrors,REQUIRED":"Câmp obligatoriu","content,label":"Titlu"},bg:{"control,validation,validationErrors,REQUIRED":"Изисквано поле","content,label":"Заглавие"},cs:{"control,validation,validationErrors,REQUIRED":"Vyžadované pole","content,label":"Titul"},el:{"control,validation,validationErrors,REQUIRED":"Απαιτητό πεδίο","content,label":"Τίτλος"},nl:{"control,validation,validationErrors,REQUIRED":"Verplicht veld","content,label":"Titel"},pl:{"control,validation,validationErrors,REQUIRED":"Wymagane pole","content,label":"Tytuł"},sv:{"control,validation,validationErrors,REQUIRED":"Obligatoriskt fält","content,label":"Tytuł"},tr:{"control,validation,validationErrors,REQUIRED":"Gerekli alan","content,label":"Başlık"},ar:{"control,validation,validationErrors,REQUIRED":"الحقل المطلوب","content,label":"عنوان"},zh:{"control,validation,validationErrors,REQUIRED":"必填字段","content,label":"Title"},da:{"control,validation,validationErrors,REQUIRED":"Påkrævet felt","content,label":"Titel"},he:{"control,validation,validationErrors,REQUIRED":"Required field","content,label":"Title"},fi:{"control,validation,validationErrors,REQUIRED":"Vaadittu kenttä","content,label":"Title"},hi:{"control,validation,validationErrors,REQUIRED":"आवश्यक फील्ड","content,label":"Title"},hr:{"control,validation,validationErrors,REQUIRED":"Obavezno polje","content,label":"Title"},hu:{"control,validation,validationErrors,REQUIRED":"Kötelező mező","content,label":"Title"},id:{"control,validation,validationErrors,REQUIRED":"Bidang yang wajib diisi","content,label":"Title"},ja:{"control,validation,validationErrors,REQUIRED":"必須フィールド","content,label":"Title"},ko:{"control,validation,validationErrors,REQUIRED":"필수 칸","content,label":"Title"},no:{"control,validation,validationErrors,REQUIRED":"Obligatorisk felt","content,label":"Title"},sk:{"control,validation,validationErrors,REQUIRED":"Povinné pole","content,label":"Title"},sl:{"control,validation,validationErrors,REQUIRED":"Obvezno polje","content,label":"Title"},sr:{"control,validation,validationErrors,REQUIRED":"Obavezno polje","content,label":"Title"}},props:{content:{label:"Title",selectedColorContrastEnabled:!0},control:{name:"checkboxList",integrationName:"checkboxList",defaultValue:null,options:{option_1:{exportId:"option_1",label:"Option 1",id:"option_1",sort:0},option_2:{exportId:"option_2",label:"Option 2",id:"option_2",sort:1},option_3:{exportId:"other",label:"Other",id:"option_3",sort:2}},optionsAlphabeticSort:{enabled:!1},validation:{required:!0}},styles:[{element:"input",markerStyleAttributes:{selectedColor:"var(--cl-schema-accent, rgb(0, 0, 0))",background:"rgba(255, 255, 255, 1)",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"}},{element:"label",params:{enabled:!0,position:"TOP",margin:5}}],adaptiveStyles:(se=[{element:"host",styleAttributes:{marginTop:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",_marginEnabled:!1},classes:""},{element:"listContainer",styleAttributes:{display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"start",gap:"20px"},classes:""},{element:"input",styleAttributes:{width:"100%",minWidth:null,height:"auto",minHeight:null,background:"rgba(0, 0, 0, 0)",color:"var(--cl-schema-text, rgb(68, 68, 68))",paddingBottom:"0",paddingLeft:"0",paddingRight:"0",paddingTop:"0",_paddingEnabled:!1,textAlign:"start",lineHeight:"120%",fontWeight:"400",fontSize:"14px",textShadow:"none"},markerStyleAttributes:{inputSize:"22px",inputToTextGapSize:"13px",textShadow:"none"},classes:""},{element:"label",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))",textAlign:"start",lineHeight:"120%",fontWeight:"400",fontSize:"14px",textShadow:"none"},classes:""},{element:"optionWrapper",styleAttributes:{margin:"0 3px"}}],Object.values(Bt).reduce((t,e)=>Object.assign(t,{[e]:Wt(se)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysCheckboxListComponent/assets/img/component-icon.svg",label:{en:"Checkbox",ru:"Чекбокс",uk:"Чекбокс",es:"Casilla de verificación",fr:"Case à cocher",de:"Kontrollkästchen",it:"Checkbox",pt:"Caixa de seleção",ro:"Casetă de control",bg:"Поле за маркиране",cs:"Zaškrtávací pole",el:"Πλαίσιο ελέγχου",nl:"Selectievakje",pl:"Pole wyboru",sv:"Kryssruta",tr:"Onay kutusu",ar:"خانة اختيار",zh:"复选框",da:"Afkrydsningsfelt",he:"תיבת סימון",fi:"Valintaruutu",hi:"चेकबॉक्स",hr:"Potvrdni okvir",hu:"Jelölőnégyzet",id:"Kotak Centang",ja:"チェックボックス",ko:"체크 박스",no:"Avmerkingsboks",sk:"Začiarkavacie políčko",sl:"Potrditveno polje",sr:"Polje za potvrdu"}},syncEnabled:!0,stylesImitationEnabled:!0,showComponentOptionsPropertyPaneOnInsert:!0,showIntegrationFieldMappingPropertyPaneOnInsert:!0};var se;const le={inputSize:"22px",inputToTextGapSize:"13px",selectedColor:"rgb(0,0,0,1)",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"1px",borderTopColor:"rgba(0, 0, 0, 1)",borderBottomWidth:"1px",borderBottomColor:"rgba(0, 0, 0, 1)",borderLeftWidth:"1px",borderLeftColor:"rgba(0, 0, 0, 1)",borderRightWidth:"1px",borderRightColor:"rgba(0, 0, 0, 1)",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",boxShadow:"none",textShadow:"none",background:"rgb(255, 255, 255)",backdropFilter:"none"},ae=new Map;ae.set("checkboxSize","inputSize"),ae.set("checkboxToTextGapSize","inputToTextGapSize");const ce=ae;function de(t){return de="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},de(t)}function pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ue(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?ue(Object(n),!0).forEach(function(e){ye(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function me(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,Ee(o.key),o)}}function be(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(be=function(){return!!t})()}function ge(){return ge="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var o=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=fe(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},ge.apply(null,arguments)}function fe(t){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fe(t)}function ve(t,e){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ve(t,e)}function ye(t,e,n){return(e=Ee(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ee(t){var e=function(t){if("object"!=de(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=de(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==de(e)?e:e+""}var Oe=function(){function t(){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ye(e=function(t,e,n){return e=fe(e),function(t,e){if(e&&("object"==de(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,be()?Reflect.construct(e,n||[],fe(t).constructor):e.apply(t,n))}(this,t),"updateElementSizeStyles",function(){var t=e.getElement("listContainer");t&&(e.applyStylesToMarkersShadows(),e.applyStylesToMarkers(),t.querySelectorAll(".checkmark-container").forEach(function(t){e.setStylesVariables(t)}))}),ye(e,"getInputAdaptiveStyles",function(){var t=e.getProps(),n=e.getEnvironment();return t.adaptiveStyles[n].filter(function(t){return"input"===t.element})}),ye(e,"setMarkerStyleAttributes",function(){var n=e.getInputAdaptiveStyles();if(n.length&&n[0].markerStyleAttributes){var o;e.markerStyleAttributes=he(he({},le),n[0].markerStyleAttributes);var i=null===(o=e.getProps().styles)||void 0===o||null===(o=o.find(function(t){return"input"===t.element}))||void 0===o?void 0:o.markerStyleAttributes;i&&(e.markerStyleAttributes=he(he({},e.markerStyleAttributes),i))}else e.markerStyleAttributes=t.defaultMarkerStyleAttributes}),ye(e,"setStylesVariables",function(t){Object.keys(e.markerStyleAttributes).forEach(function(n){var o=ce.get(n)||n;t.style.setProperty("--".concat(o),e.markerStyleAttributes[n])})}),ye(e,"getOptions",function(){var t,n=null!==(t=e.getProps().control.optionsAlphabeticSort)&&void 0!==t&&t.enabled?"label":"sort";return function(t,e,n=!1){return function(t){return[...t].reduce((t,[e,n])=>(t[e]=n,t),{})}(Object.entries(t).sort(([t,o],[i,r])=>function(t,e,n,o=!1){let i=t[n],r=e[n];return isNaN(i)||isNaN(r)?"string"!=typeof i||"string"!=typeof r?0:(i=i.toLowerCase(),r=r.toLowerCase(),o?r.localeCompare(i):i.localeCompare(r)):i<r?o?1:-1:i>r?o?-1:1:0}(o,r,e,n)))}(e.getProps().control.options,n)}),ye(e,"applyStylesToOptionWrapper",function(){var t=e.getElement("listContainer"),n=Vt(e.getProps().adaptiveStyles,e.getEnvironment(),"optionWrapper"),o=t.querySelectorAll(".option-wrapper");if(n){var i=Object.keys(n);o.forEach(function(t){i.forEach(function(e){t.style[e]=n[e]})})}else o.forEach(function(t){t.style.margin="10px 3px"}),t.style.gap="0px"}),ye(e,"createCheckboxListItemComponent",function(t,n,o){var i=e.getHostElement(),r=document.createElement("div");r.classList.add("option-wrapper"),r.setAttribute("cl-element","optionWrapper");var s="cl-checkbox-".concat(t.id),l=document.createElement("label");l.classList.add("checkmark-container"),l.setAttribute("for",s);var a=document.createElement("div");a.classList.add("checkmark-shadow"),a.setAttribute("aria-hidden","true"),l.appendChild(a);var c=document.createElement("input");c.setAttribute("type","checkbox"),c.id=s,e.syncCheckboxState(c,n),l.appendChild(c);var d=document.createElement("span");d.classList.add("checkmark"),d.setAttribute("aria-hidden","true"),l.appendChild(d);var p=document.createElement("span");if(p.classList.add("checkbox-label"),p.textContent=t.label,e.setStylesVariables(i),I(p,o),l.appendChild(p),n){var u=e.markerStyleAttributes.selectedColor;d.classList.add("checkmark-checked"),d.style.borderColor=u,d.style.outlineColor=u,i.style.setProperty("--selectedColor",u),i.style.setProperty("--borderColor",u)}else d.style.borderColor=null,d.style.outlineColor=null,i.style.setProperty("--borderColor","rgba(0,0,0, 0.7)");return r.appendChild(l),r}),ye(e,"syncCheckboxState",function(t,e){if(t){var n=null!=e&&!1!==e;t.checked=n,t.setAttribute("aria-checked",String(n)),n?t.setAttribute("checked",""):t.removeAttribute("checked")}}),ye(e,"getCurrentValue",function(){var t;return(null===(t=e.registeredControl)||void 0===t?void 0:t.getValue())||null}),ye(e,"applyStylesToMarkersShadows",function(){e.getElement("input").querySelectorAll(".checkmark-shadow").forEach(function(t){e.setStylesVariables(t)})}),ye(e,"applyStyleToOptionLabels",function(){var n=e.getElement("input"),o=L(n,t.checkboxListButtonMenuStyles);n.querySelectorAll(".checkbox-label").forEach(function(t){I(t,o)})}),ye(e,"applyStylesToMarkers",function(){e.getElement("input").querySelectorAll(".checkmark").forEach(function(t){e.setStylesVariables(t),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=U(n,t,"borderColor")),!e&&t.style.getPropertyValue("--borderBottomColor")&&!o.includes(t.style.getPropertyValue("--borderBottomColor"))&&parseFloat(t.style.getPropertyValue("--borderBottomWidth"))&&(e=U(n,t,"--borderBottomColor")),e||!t.style.backgroundColor||o.includes(t.style.backgroundColor)||(e=U(n,t,"backgroundColor")),e||!t.style.color||o.includes(t.style.color)||(e=U(n,t,"color")),e||n.classList.remove("focus-outline-defined"))}(t)})}),ye(e,"createContent",function(){var n=e.getElement("input"),o=L(n,t.checkboxListButtonMenuStyles),i=e.getCurrentValue(),r=e.getOptions(),s=document.createElement("div");s.classList.add("buttons-list"),s.setAttribute("cl-element","listContainer"),Object.entries(r).forEach(function(t){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,s,l=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=r.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return pe(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0],l=r[n],a=!!i&&i.hasOwnProperty(n),c=e.createCheckboxListItemComponent(l,a,o);c.classList.add("checkboxListItem"),e.isStaticRenderMode()&&c.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault();var o=c.querySelector(".checkmark"),i=e.getCurrentValue();if(i&&i[n])delete i[n],o.classList.remove("checkmark-checked"),o.style.borderColor=null,o.style.outlineColor=null,e.getHostElement().style.setProperty("--borderColor","rgba(0,0,0, 0.7)");else{i=he(he({},i),{},ye({},n,r[n].exportId)),o.classList.add("checkmark-checked");var s=e.markerStyleAttributes.selectedColor;o.style.borderColor="".concat(s),o.style.outlineColor="".concat(s),e.getHostElement().style.setProperty("--selectedColor","".concat(s)),e.getHostElement().style.setProperty("--borderColor","".concat(s))}var l=Object.keys(i).length?i:null;e.registeredControl.setValue(l)}),s.appendChild(c)}),w({element:n,html:""}),n.append(s)}),ye(e,"registerControl",function(t){var n=t.querySelector(".list-tooltip");e.registeredControl=e.createControlWithValidation([],{tooltipElement:n})}),ye(e,"handleSafariHeightIssue",function(){var t=e.getHostElement();"auto"===t.style.height&&(t.style.height="fit-content")}),ye(e,"manifest",re),ye(e,"registeredControl",void 0),ye(e,"markerStyleAttributes",void 0),e.getRootElement().innerHTML="\n <style>".concat(t.componentStyle,"</style>\n ").concat(t.componentTemplate,"\n "),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&&ve(t,e)}(t,oe),function(t,e){return e&&me(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"connectedCallback",value:function(){var e=this;!function(t,e,n){var o=ge(fe(t.prototype),"connectedCallback",n);return"function"==typeof o?function(t){return o.apply(n,t)}:o}(t,0,this)([]);var n=this.getRootElement();this.registerControl(n),this.observeProps(function(t,o){var i=e.getEnvironment();M(o,i,n,".label-with-checkbox-list-container"),j(o,i,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.setMarkerStyleAttributes(),e.createContent(),e.applyAutoAdaptiveStyles(o.adaptiveStyles,o.styles),e.handleSafariHeightIssue(),e.applyStylesToOptionWrapper()}),this.observeShared(function(t,n){e.applyStyleToOptionLabels(e.getProps(),e.getEnvironment())}),this.observeEnvironment(function(t,o){e.setMarkerStyleAttributes(),e.applyStylesToMarkers(),e.applyStylesToMarkersShadows();var i=e.getProps();M(i,o,n,".label-with-checkbox-list-container"),j(i,o,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.handleSafariHeightIssue(),e.applyStyleToOptionLabels(i,o),e.updateElementSizeStyles()})}}])}();ye(Oe,"define",{name:"sys-checkbox-list",model:re.name,manifest:re}),ye(Oe,"componentStyle","\n .main-container {\n height: 100%;\n }\n \n .label-with-checkbox-list-container {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .label {\n min-height: 10px;\n }\n \n .label.cl-focused {\n min-height: auto;\n }\n \n .buttons-list {\n width: 100%;\n height: auto;\n text-align: inherit;\n }\n \n .checkbox-list-with-tooltip {\n position: relative;\n display: flex;\n height: 100%;\n width: 100%;\n cursor: pointer;\n }\n \n .invalid {\n border: 1px solid #ff0000 !important;\n }\n \n .list-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 \n .checkbox-list-content {\n display: flex;\n /*align-items: center;*/\n /*position: absolute;*/\n height: 100%;\n width: 100%;\n padding: 0;\n /*padding: 0 35px 0 20px;*/\n cursor: pointer;\n border: 1px solid transparent;\n }\n \n .option-wrapper {\n border: 0;\n align-items: center;\n outline: 0;\n text-align: inherit;\n padding: var(--borderTopWidth);\n }\n \n input {\n -moz-appearance: none;\n -webkit-appearance: none;\n -o-appearance: none;\n width: 24px;\n height: auto;\n padding: 0 10px;\n margin: 0;\n }\n \n /* The container */\n .checkmark-container {\n cursor: pointer;\n display: flex;\n position: relative;\n padding-left: calc(var(--inputSize, 22px) + var(--inputToTextGapSize, 18px) + var(--borderTopWidth, 1));\n height: var(--inputSize, 22px);\n width: 100%;\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 osition: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n \n .checkmark-container .checkbox-label {\n display: block;\n }\n \n /* Create a custom checkbox */\n .checkmark {\n cursor: pointer;\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 /*border-style: var(--borderStyle);\n border-color: var(--borderTopColor);\n border-width: var(--borderTopWidth);*/\n border-top-left-radius: var(--borderTopLeftRadius);\n border-top-right-radius: var(--borderTopRightRadius);\n border-bottom-left-radius: var(--borderBottomLeftRadius);\n border-bottom-right-radius: var(--borderBottomRightRadius);\n box-shadow: 0 0 0 var(--borderTopWidth) var(--borderTopColor);\n background: var(--background, rgb(256, 256, 256));\n backdrop-filter: var(--backdropFilter);\n }\n \n .checkmark-shadow {\n box-shadow: var(--boxShadow);\n position: absolute;\n top: 0;\n left: 0;\n height: var(--inputSize, 22px);\n width: var(--inputSize, 22px);\n padding-bottom: 2px;\n z-index: 1;\n border-top-left-radius: var(--borderTopLeftRadius);\n border-top-right-radius: var(--borderTopRightRadius);\n border-bottom-left-radius: var(--borderBottomLeftRadius);\n border-bottom-right-radius: var(--borderBottomRightRadius);\n }\n \n .checkmark:after {\n content: \"L\";\n position: absolute;\n display: none;\n transform: rotate(45deg) scaleX(-1);\n font-family: 'Arial';\n }\n \n .checkmark-checked {\n box-shadow: 0 0 0 var(--borderTopWidth) var(--selectedColor);\n }\n \n .checkmark-checked:after {\n display: block;\n }\n \n .checkmark-container .checkmark:after {\n width: var(--inputSize, 22px);\n height: var(--inputSize, 22px);\n font-size: var(--inputSize, 22px);\n line-height: var(--inputSize, 22px);\n text-align: center;\n color: var(--borderColor);\n margin-left: 10%;\n margin-bottom: 10%;\n }\n \n .checkbox-label {\n margin: 0;\n height: auto;\n min-height: 10px;\n width: auto;\n align-self: center;\n text-shadow: var(--textShadow);\n }\n \n input:focus ~ .checkmark.focus-outline-defined {\n /*outline: var(--clFocusOutline);*/\n z-index: 3;\n outline-width: calc(var(--borderTopWidth) + 3px);\n outline-color: var(--borderTopColor);\n outline-style: solid;\n opacity: 0.7;\n }\n \n input:focus ~ .checkmark.checkmark-checked.focus-outline-defined {\n outline-color: var(--selectedColor);\n }\n"),ye(Oe,"componentTemplate",'\n <div class="main-container">\n <div class="label-with-checkbox-list-container" role="group" aria-labelledby="cl-checkbox-list-label">\n <div cl-element="label"\n cl-inline-edit="content, label"\n class="label"\n id="cl-checkbox-list-label">\n </div>\n <div class="checkbox-list-with-tooltip">\n <div cl-element="input" class="checkbox-list-content">\n </div>\n <div class="list-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>\n </div>\n</div>\n'),ye(Oe,"checkboxListButtonMenuStyles",["color","font-family","font-size","letter-spacing","text-shadow","font-weight","text-align"]),ye(Oe,"defaultMarkerStyleAttributes",le);export{Oe as default};window.clComponentClass_SysCheckboxListComponent=Oe;
1
+ const t="validationStatusChanged",e="touchedStatusChanged";class n{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 o(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 i=Array.prototype.concat,r=Array.prototype.slice,s=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var l=t[n];o(l)?e=i.call(e,r.call(l)):e.push(l)}return e};s.wrap=function(t){return function(){return t(s(arguments))}};const l=s;var a={},c=Object.hasOwnProperty,d=Object.create(null);for(var p in a)c.call(a,p)&&(d[a[p]]=p);var u={to:{},get:{}};function h(t,e,n){return Math.min(Math.max(e,t),n)}u.get=function(t){var e,n;return"hsl"===t.substring(0,3).toLowerCase()?(e=u.get.hsl(t),n="hsl"):(e=u.get.rgb(t),n="rgb"),e?{model:n,value:e}:null},u.get.rgb=function(t){if(!t)return null;var e,n,o,i=[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 r=2*n;i[n]=parseInt(e.slice(r,r+2),16)}o&&(i[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++)i[n]=parseInt(e[n]+e[n],16);o&&(i[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++)i[n]=parseInt(e[n+1],0);e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[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]:c.call(a,e[1])?((i=a[e[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=h(i[n],0,255);return i[3]=h(i[3],0,1),i},u.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,h(parseFloat(e[2]),0,100),h(parseFloat(e[3]),0,100),h(isNaN(n)?1:n,0,1)]}return null},u.to.rgb=function(){var t=l(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]+")"},u.to.hsl=function(){var t=l(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 m=u,b={},g={};for(const t of Object.keys(b))g[b[t]]=t;const f={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"}};Math.pow(6/29,3);for(const t of Object.keys(f)){if(!("channels"in f[t]))throw new Error("missing channels property: "+t);if(!("labels"in f[t]))throw new Error("missing channel labels property: "+t);if(f[t].labels.length!==f[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=f[t];delete f[t].channels,delete f[t].labels,Object.defineProperty(f[t],"channels",{value:e}),Object.defineProperty(f[t],"labels",{value:n})}f.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.min(e,n,o),r=Math.max(e,n,o),s=r-i;let l,a;r===i?l=0:e===r?l=(n-o)/s:n===r?l=2+(o-e)/s:o===r&&(l=4+(e-n)/s),l=Math.min(60*l,360),l<0&&(l+=360);const c=(i+r)/2;return a=r===i?0:c<=.5?s/(r+i):s/(2-r-i),[l,100*a,100*c]},f.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let i,r,s;if(0===n)return s=255*o,[s,s,s];i=o<.5?o*(1+n):o+n-o*n;const l=2*o-i,a=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,s=6*r<1?l+6*(i-l)*r:2*r<1?i:3*r<2?l+(i-l)*(2/3-r)*6:l,a[t]=255*s;return a};const y=f;function v(t,e){return function(n){return e(t(n))}}function E(t,e){const n=[e[t].parent,t];let o=y[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),o=v(y[e[i].parent][i],o),i=e[i].parent;return o.conversion=n,o}const O={};Object.keys(y).forEach(t=>{O[t]={},Object.defineProperty(O[t],"channels",{value:y[t].channels}),Object.defineProperty(O[t],"labels",{value:y[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(y);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(y[t]);for(let i=o.length,r=0;r<i;r++){const i=o[r],s=e[i];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(i))}}return e}(t),n={},o=Object.keys(e);for(let t=o.length,i=0;i<t;i++){const t=o[i];null!==e[t].parent&&(n[t]=E(t,e))}return n}(t);Object.keys(e).forEach(n=>{const o=e[n];O[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),O[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 S=O,T=["keyword","gray","hex"],C={};for(const t of Object.keys(S))C[[...S[t].labels].sort().join("")]=t;const A={};function R(t,e){if(!(this instanceof R))return new R(t,e);if(e&&e in T&&(e=null),e&&!(e in S))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 R)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=m.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,o=S[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=S[this.model].channels;const n=Array.prototype.slice.call(t,0,o);this.color=P(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 C))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=C[o];const{labels:i}=S[this.model],r=[];for(n=0;n<i.length;n++)r.push(t[i[n]]);this.color=P(r)}if(A[this.model])for(o=S[this.model].channels,n=0;n<o;n++){const t=A[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)}R.prototype={toString(){return this.string()},string(t){let e=this.model in m.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const n=1===e.valpha?e.color:[...e.color,this.valpha];return m.to[e.model](n)},round(t){return t=Math.max(t||0,0),new R([...this.color.map(k(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new R([...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(S)){if(T.includes(t))continue;const{channels:e}=S[t];R.prototype[t]=function(...e){return this.model===t?new R(this):e.length>0?new R(e,t):new R([...x(S[this.model][t].raw(this.color)),this.valpha],t)},R[t]=function(...n){let o=n[0];return"number"==typeof o&&(o=P(n,e)),new R(o,t)}}function k(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function x(t){return Array.isArray(t)?t:[t]}function P(t,e){for(let n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}const _=R;function w(t){const{element:e,html:n,appendHtml:o}=t,i=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]').forEach(t=>t.remove()),e.querySelectorAll("*").forEach(t=>{if(["onclick","onload","onerror","onmouseover","onfocus","onblur","onkeyup","onkeydown","onchange","onsubmit","onmouseenter","onmouseleave","onmouseout","oncontextmenu","ondrag","ondrop"].forEach(e=>t.removeAttribute(e)),Array.from(t.attributes).forEach(e=>{e.name.startsWith("on")&&t.removeAttribute(e.name)}),"A"===t.tagName||"AREA"===t.tagName){const e=t.getAttribute("href");e&&(e.startsWith("javascript:")||e.startsWith("data:"))&&t.removeAttribute("href")}if("IMG"===t.tagName||"IFRAME"===t.tagName){const e=t.getAttribute("src");e&&(e.startsWith("javascript:")||e.startsWith("data:text/html"))&&t.removeAttribute("src")}if("FORM"===t.tagName){const e=t.getAttribute("action");e&&e.startsWith("javascript:")&&t.removeAttribute("action")}}),e.body.innerHTML}(n);o?e.innerHTML+=i:e.innerHTML=i}function I(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function L(t,e){const n=window.getComputedStyle(t);return e.reduce((t,e)=>(t[e]=n.getPropertyValue(e),t),{})}function N(t,e){var n,o;let i;return t.styles&&(i=null===(n=t.styles.find(t=>"label"===t.element))||void 0===n?void 0:n.params),t.adaptiveStyles&&!i&&(i=null===(o=t.adaptiveStyles[e].find(t=>"label"===t.element))||void 0===o?void 0:o.params),i}function M(t,e,n,o){var i;const r=n.querySelector(o),s=n.querySelector(".label"),l=N(t,e);s&&function(t,e){if(!e)return;t.id||(t.id=((t="cl-a11y")=>`${t}-${Math.random().toString(36).slice(2,10)}`)("cl-label"));const n=e.getAttribute("role"),o="group"===n||"radiogroup"===n?e:e.querySelector('[cl-element="input"]');if(!o)return;const i=(o.getAttribute("aria-labelledby")||"").split(" ").filter(Boolean);i.includes(t.id)||(i.push(t.id),o.setAttribute("aria-labelledby",i.join(" ")))}(s,r),l&&s&&(w({element:s,html:(null===(i=t.content)||void 0===i?void 0:i.label)||""}),"TOP"===l.position?(r.style.flexDirection="column",r.style.alignItems="unset",I(s,{marginRight:"0",marginBottom:`${l.margin}px`})):(r.style.flexDirection="row",r.style.alignItems="center",I(s,{marginRight:`${l.margin}px`,marginBottom:"0"})),l.enabled?s.style.display="":s.style.display="none")}function j(t,e,n,o,i){const r=function(t,e){var n;let o;if(t.styles){const e=null===(n=t.styles.find(t=>"input"===t.element))||void 0===n?void 0:n.styleAttributes;(null==e?void 0:e.width)&&(o=e)}if(t.adaptiveStyles&&!o){const n=t.adaptiveStyles[e].find(t=>"input"===t.element),i=null==n?void 0:n.styleAttributes;(null==i?void 0:i.width)&&(o=i)}return o}(t,e);if(!r)return;const s=N(t,e),l=i&&s&&s.enabled&&"TOP"===s.position?i.getBoundingClientRect().height+(s.margin||0):0;r.width&&(r.width.includes("100%")?(o.style.width="100%",n.style.width=r.width):n.style.width="auto"),r.height&&(r.height.includes("100%")?(o.style.height="100%",n.style.height=r.height):n.style.height=`${parseFloat(r.height)+l}px`)}function D(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=_(o).alpha(.5).string();return t.classList.add("focus-outline-defined"),t.style.setProperty("--clFocusOutline",`3px solid ${e}`),e}return null}function U(t){const{width:e,height:n}=t.getBoundingClientRect(),{marginBottom:o,marginTop:i,marginLeft:r,marginRight:s}=window.getComputedStyle(t);return{width:e+parseInt(r,10)+parseInt(s,10),height:n+parseInt(i,10)+parseInt(o,10)}}function B(t,e,n,o,i){switch(t.position){case"top":return{left:`${V(e,n,o,i)}px`,top:t.availableSpaceAboveTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"bottom":return{left:`${V(e,n,o,i)}px`,bottom:t.availableSpaceBelowTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"left":return{left:t.availableSpaceToTheLeftSideOfTheTrigger-e.width-t.contentWidth-t.horizontalOffset+"px",top:`${W(0,t)}px`};case"right":return{right:t.availableSpaceToTheRightSideOfTheTrigger-t.contentWidth-t.horizontalOffset+"px",top:`${W(0,t)}px`}}}function V(t,e,o,i){let r=o?t.x+t.width/2-e.width/2:t.x;return r<0&&(r=0),r+e.width>n.width(i)&&(r-=r+e.width-n.width(i)),r}function W(t,e){let n=e.availableSpaceAboveTriggerElem;return e.contentHeight>e.availableSpaceBelowTriggerElem&&(n-=e.contentHeight-e.availableSpaceBelowTriggerElem),n}const F="cl-tooltip-text-styles",H="cl-overlay-tooltip-text",$=Symbol.for("cl-tooltip-text-owner"),G=`\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 z(t,e,o){!function(t){if((t=t||document).head.querySelector(`#${F}`))return;const e=document.createElement("style");e.setAttribute("id",F),w({element:e,html:G}),t.head.appendChild(e)}(o=o||document);const i=function(t,e){const n=(e=e||document).getElementById(H)||e.createElement("div");return n.classList.add("cl-tooltip-text"),n.textContent!==t&&(n.textContent=t,n.style=null),n.id||(n.id=H),n}(e,o);o.body.append(i),i.style.visibility="visible",i[$]=t,function(t){const{triggerElement:e,tooltipElement:o,offset:i=10,htmlDocumentObject:r}=t,s=function(t,e,o,i,r,s){const l=function(t,e,o,i,r){const s=function(t,e,o,i){const r=n.width(i),{right:s}=t.getBoundingClientRect(),l=r-o-s-n.scrollbarWidth(i);return{horizontalOffset:o,contentWidth:U(e).width,availableSpaceToTheLeftSideOfTheTrigger:s-o,availableSpaceToTheRightSideOfTheTrigger:l}}(t,e,o,r),l=function(t,e,o,i){const r=n.height(i),{top:s,bottom:l}=t.getBoundingClientRect();return{verticalOffset:o,contentHeight:U(e).height,availableSpaceAboveTriggerElem:s-o,availableSpaceBelowTriggerElem:r-l-o}}(t,e,o,r);let a="undefined";const c={bottom:l.availableSpaceBelowTriggerElem>=l.contentHeight,top:l.availableSpaceAboveTriggerElem>=l.contentHeight,right:s.availableSpaceToTheRightSideOfTheTrigger>=s.contentWidth,left:s.availableSpaceToTheLeftSideOfTheTrigger>=s.contentWidth};if(c.top?a="top":c.bottom?a="bottom":c.right?a="right":c.left&&(a="left"),i&&c[i]&&(a=i),"undefined"===a){const t=Math.max(l.availableSpaceBelowTriggerElem,l.availableSpaceAboveTriggerElem,s.availableSpaceToTheRightSideOfTheTrigger,s.availableSpaceToTheLeftSideOfTheTrigger);t===l.availableSpaceBelowTriggerElem?a="bottom":t===l.availableSpaceAboveTriggerElem?a="top":t===s.availableSpaceToTheRightSideOfTheTrigger?a="right":t===s.availableSpaceToTheLeftSideOfTheTrigger&&(a="left")}return Object.assign(Object.assign(Object.assign({},l),s),{position:a})}(t,e,o,i,s=s||document);return function(t,e){const{marginBottom:n,marginTop:o}=window.getComputedStyle(e);if("top"===t.position)I(e,{"margin-top":`${parseInt(o,10)+parseInt(n,10)}px`}),I(e,{"margin-bottom":"0px"});else if("bottom"===t.position)I(e,{"margin-bottom":`${parseInt(n,10)+parseInt(o,10)}px`}),I(e,{"margin-top":"0px"});else{const t=(parseInt(n,10)+parseInt(o,10))/2+"px";I(e,{"margin-top":t,"margin-bottom":t})}}(l,e),{coordinates:B(l,t.getBoundingClientRect(),e.getBoundingClientRect(),r,s),position:l.position}}(e,o,i,"top",!0,r);o.setAttribute("cl-tooltip-position",s.position),I(o,s.coordinates)}({triggerElement:t,tooltipElement:i,htmlDocumentObject:o})}function Q(t,e){const n=(e=e||document).getElementById(H),o=n&&n[$];!n||!o||o!==t&&o.isConnected||(n.remove(),function(t){const e=(t=t||document).head.querySelector(`#${F}`);e&&e.remove()}(e))}function K(t){return[t.getConfig("appearanceLanguage"),t.getConfig("browserLanguage"),"en"].filter(t=>!!t)}function q(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 X="cl-";function Z(t){return X+t}function J(t){return"cl-"+t}const Y="VIEW",tt="CONTAINER",et="INPUT",nt="BUTTON",ot="CONSENT",it="COLUMN";var rt,st;(st=rt||(rt={})).SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",st.REQUEST="REQUEST",st.DISPATCH_EVENT="DISPATCH_EVENT",st.GO_TO_VIEW="GO_TO_VIEW",st.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",st.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",st.SHOW_WIDGET="SHOW_WIDGET",st.OPEN_LINK="OPEN_LINK",st.CLOSE_WIDGET="CLOSE_WIDGET",st.CLICK="CLICK";const lt=rt;var at,ct;class dt{static sortActions(t){const e={[lt.CLOSE_WIDGET]:-1,[lt.OPEN_LINK]:-2,[lt.SHOW_WIDGET]:1,[lt.SUBSCRIBE_CONTACT]:2,[lt.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=dt.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(J("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(J("type")));let n=0;for(;e[n]&&e[n].getAttribute(J("id"))!==i;){let t=e[n].getAttribute(J("type"));if(dt.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 i,r=!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,i){!function(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}(o,i,(e=t[n](e)).done,e.value)})}}}(this.eventsQueue);!(t=(i=await s.next()).done);r=!0){o=i.value,r=!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{r||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=[])}}dt.IGNORING_VIEW_ENTRY_TYPES=[nt,ot,et],(ct=at||(at={})).CLICK="CLICK",ct.COMPONENT_EVENT="COMPONENT_EVENT";class pt{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(J("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 ut{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 at.CLICK:return new dt(t,e);case at.COMPONENT_EVENT:return new pt(t,e);default:throw new Error(`Not supported handler type ${t.type}`)}}}class ht{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 mt{constructor(){this.listeners=mt.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=ht.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=mt.createDefaultListenersState()}}mt.createDefaultListenersState=()=>({"*":{}});const bt=mt,gt=(t,e,n,o)=>{const i=EventTarget.prototype,{addEventListenerBase:r,addEventListener:s}=i;(r||s).call(t,e,n,o)};class ft{constructor(t){this.state=t||{}}getState(){return this.state}setState(t){this.state=Object.assign(Object.assign({},this.state),t)}destroy(){}}class yt extends bt{constructor(t,e){super(),this.config=e,this.handleMobileBreakpoint(t.getShared().mobileBreakpointWidth),t.on("ENVIRONMENT_UPDATE",({isMobileEnv:t})=>{this._isMobile=t,this.emit(yt.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(yt.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(t){this._isMobile=t.matches,this.emit(yt.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}yt.changeEventName="CHANGE";const vt=yt;class Et{static set(t,e){const n=t[Et.accumulatorPropertyName]||{};t[Et.accumulatorPropertyName]=Object.assign(Object.assign({},n),e.styleAttributes),Object.keys(t[Et.accumulatorPropertyName]).forEach(n=>{n.includes("--")?t.style.setProperty(n,e.styleAttributes[n]||""):t.style[n]=e.styleAttributes[n]?e.styleAttributes[n]:""})}}Et.accumulatorPropertyName="clStyleAttributes";const Ot=Et;var St,Tt;(Tt=St||(St={})).BUILT_IN="BUILT_IN",Tt.DETACHED="DETACHED",Tt.FLOATING_BOX="FLOATING_BOX",Tt.FLOATING_BAR="FLOATING_BAR",Tt.LAUNCHER="LAUNCHER",Tt.CONTENT_LOCKER="CONTENT_LOCKER";class Ct{static applyHostStyles(t,e,n=null,o){var i,r,s;const l=null===(r=null===(i=null==n?void 0:n.props)||void 0===i?void 0:i.handlers)||void 0===r?void 0:r.find(t=>"CLICK"===t.type);l&&(null===(s=l.actions)||void 0===s?void 0:s.length)&&(e.style.cursor="pointer"),t!==Y&&t!==tt&&t!==it||(e.style.display=o===St.CONTENT_LOCKER&&t===Y?"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 At{static log(t){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(t)):console.error(t)}}class Rt{constructor(t,e,n,o,i,r){this.hostElement=e,this.documentModel=t,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=i,this.httpClient=r,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,i,r,s,l;const a=null===(i=null===(o=e.adaptiveStyles)||void 0===o?void 0:o[t])||void 0===i?void 0:i.find(t=>t.element===n),c=(null===(r=e.styles)||void 0===r?void 0:r.find(t=>t.element===n))||{},d=(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.background)||(null===(l=null==a?void 0:a.styleAttributes)||void 0===l?void 0:l.background),p=this.parseBackground(d);p.url&&this.envUrlMaps[t].set(n,{originalSVGResourceURL:p.url,inlineSvgString:null,positionOptions:p.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),At.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 i;o=o.replace(`var(--${i=n,`cl-schema-${i}`})`,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 kt=new class{execute({url:t,method:e="GET",body:n=null,headers:o,abortSignal:i}){const r={method:e,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:i};return n&&(r.body="string"==typeof n?n:JSON.stringify(n)),fetch(t,r)}};function xt(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>Object.assign(Object.assign({},e),{[n]:t[n]}),{})}class Pt{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 _t{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 wt;!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"}(wt||(wt={}));const It=wt;class Lt{constructor(t,e,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=t=>{0===t&&this.systemEventEmitter.emit(It.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=t=>{this.isStaticEntryModule?this.systemEventEmitter.emit(It.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 _t(this.onCounterStateUpdate)}}}const Nt=(...t)=>{let e=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[]}),{});return{get:t=>e[t],clear:()=>Nt(...t)}},Mt=Nt,jt="props",Dt="shared",Ut="environment";function Bt(t,e,n,o){const i=t=>{let r=function(t){return t instanceof DocumentFragment||(null==t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?t.host||null:t}(t);return r&&(o&&"function"==typeof o?o(r.getAttribute(e)):(null===(s=null==r?void 0:r.getAttribute)||void 0===s?void 0:s.call(r,e))===n)?r:r&&r.parentNode&&i(r.parentNode)||null;var s};return i(t)}const Vt="SUBMIT";function Wt(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 Ft={DESKTOP:"desktop",MOBILE:"mobile"};function Ht(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 $t(t=[]){return t.map(t=>Object.assign(Object.assign({},t),{styleAttributes:Object.assign({},t.styleAttributes)}))}const Gt=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class zt extends Gt{constructor(t,e={},n){super(t,Object.assign(Object.assign({},n),{detail:e}))}}var Qt,Kt,qt;function Xt(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 Zt{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 Xt(null==n?void 0:n.value);const i=t.getSource(e);if(!i)return;const r=i.getValue(o);return Xt("function"==typeof(null==r?void 0:r.processor)?r.processor(i,Object.assign({id:o},n)):null==r?void 0:r.value)}(this.registry,t.sourceType,t.config,e);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class Jt extends HTMLElement{constructor(){var t;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let t;const e=this.getAttribute(J("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${J("widget-id")}]`);let i;o&&(i=o.getAttribute(J("widget-id")));let r=new zt("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(J("path")),id:e,widgetId:i},{bubbles:!0,composed:!0});this.dispatchEvent(r),t=r.detail.props,Object.assign(this,t),this.observers=Mt(jt,Dt,Ut),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 ft({}),this.componentEventEmitter=new bt,this.componentResourceManager=new Lt(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new ut(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(jt).forEach(e=>e(this.prevProps,t)),this.prevProps=t;const e=this.getHostElement(),n=J("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(Dt).forEach(t=>t(this.getShared()))}),this.model.props.backgroundDynamicInlineSVGElements&&(this.colorSchemaListener=new Rt(this.documentModel,this.getHostElement(),()=>this.getShared(),()=>this.model.props,()=>this.getEnvironment(),kt),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(vt.changeEventName,()=>{this.applyAutoAdaptiveStyles(this.prevProps.adaptiveStyles,this.prevProps.styles);const t=this.getEnvironment();this.observers.get(Ut).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(jt).push(t),t(null,this.prevProps)},this.observeShared=t=>{this.observers.get(Dt).push(t),t(this.getShared())},this.observeEnvironment=t=>{this.observers.get(Ut).push(t),t(null,this.getEnvironment())},this.getElements=()=>[this.getHostElement(),...Array.from(this.getRootElement().querySelectorAll(`[${J("element")}]`)).filter(t=>!t.hasAttribute(J("component")))],this.getElement=(t,e)=>this.getElements().find(n=>e?n.getAttribute(J("element"))===t&&n.id===e:n.getAttribute(J("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,i=!1;n.desktop&&n.desktop.forEach(n=>{n.element===e&&(Wt(n,t),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===e&&(Wt(n,t),i=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(t))),!i&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(t)))}),n}(t,e),i=J("type"),r="element-styles";let s=this.getRootElement().querySelector(`style[${i}="${r}"]`);s||(s=document.createElement("style"),s.setAttribute(i,r),this.getRootElement().appendChild(s)),w({element:s,html:""}),n.forEach(t=>{let e=t.getAttribute(J("element"));const n=this.getEnvironment();let i=Ht(o,n,e);if(i){if(this.resizeListener.isMobile()){const t=Ht(o,"desktop",e);t&&(i=Object.assign(Object.assign({},i),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),i.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(i),s)}}),this._addLinkColor(s,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 r=[];"host"===(e=Jt._resolveTogglableStylesForElementModel(e)).element&&(Ct.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()),r.push("background")));let s=e.styleAttributes.background,l=s&&s.match(/url\("([^"]*)"\)/);if(this.manifest.waitForResourcesLoad&&l){this.componentResourceManager.getPending().increment();const t=new Image;t.src=l[1],gt(t,"load",()=>{this.componentResourceManager.getPending().decrement()}),gt(t,"error",()=>{this.componentResourceManager.onResourceLoadFailure(t.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const a=Object.assign(Object.assign({},e),{styleAttributes:xt(e.styleAttributes,r)});if(Ot.set(t,a),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(),i=`flip-up-animation-${e.element}`;let r=this.getRootElement().querySelector(`#${i}`);r||(r=document.createElement("style"),r.id=i,t.appendChild(r)),w({element:r,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(.${J("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,n=!1){let o=t;return(o.classes||"").split(" ").filter(t=>t.startsWith(X)).forEach(t=>{var i;const r=null===(i=e.textClasses)||void 0===i?void 0:i[t];if(!r)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:{})}}(r,n);s.styleAttributes.fontFamily||(r.isHeader&&e.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.headerFontFamily})})),!r.isHeader&&e.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.textFontFamily})}))),o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),s.styleAttributes),placeholderStyleAttributes:Object.assign(Object.assign({},o.placeholderStyleAttributes),s.placeholderStyleAttributes)})}),o.styleAttributes.fontFamily||(o=Object.assign(Object.assign({},o),{styleAttributes:Object.assign(Object.assign({},o.styleAttributes),{fontFamily:e.textFontFamily})})),o}(t,this.documentModel.getShared(),this.resizeListener.isMobile()),this.getModel=()=>this.model,this._addStylesToStyleElement=(t,e,n,o="",i)=>{const r=Object.keys(n).reduce((t,e)=>t+` ${Pt.camelCaseToDashCase(e)}: ${n[e]}${i?" !important;":";"}`,"");w({element:t,html:`[${J("element")}="${e}"]${o} { ${r} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(t,e)=>{w({element:t,html:`[cl-type] {font-family:${e.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(t,e)=>{var n,o,i,r;e.linkColor&&w({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)&&w({element:t,html:`a {color: ${null===(o=e.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(i=e.linkParams)||void 0===i?void 0:i.color}}`,appendHtml:!0}),(null===(r=e.linkParams)||void 0===r?void 0:r.removeUnderline)&&w({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!==Z("hovered")&&t!==Z("focused")).forEach(e=>{e.startsWith(X)&&t.classList.remove(e)});const n=((t.getAttribute("class")||"")+" "+e.classes).trim();t.setAttribute("class",n)},this.getParentComponent=()=>Bt(this.parentNode,J("element"),"host"),this.getWidgetContainerNode=()=>{const t=null==this?void 0:this.getAttribute(J("path"));return 1===(null==t?void 0:t.split(",").length)?this.parentNode:Bt(this.parentNode,J("path"),void 0,t=>1===(null==t?void 0:t.split(",").length))},this.getWidgetLanguages=()=>K(this.services.config),this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=t=>q(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 Zt(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,i,r,s;const l=t.control.name;if(["email","first_name","last_name"].includes(l))return l.toUpperCase();if((null===(e=t.content)||void 0===e?void 0:e.label)&&(null===(i=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===i?void 0:i.enabled)){const e=(new DOMParser).parseFromString(t.content.label,"text/html");return this.capitalizeFirstLetter(e.body.textContent||"")}return(null===(r=t.content)||void 0===r?void 0:r.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===Vt);n?null==n||n.execute(void 0,void 0,!0,e):this.services.actionFactory.get({type:lt.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()}}Jt._resolveTogglableStylesForElementModel=t=>{const e=Object.assign({},t);return Object.keys(e).forEach(t=>{t.toLowerCase().includes("styleattributes")&&(e[t]=Jt._resolveTogglableStyles(e[t]))}),e},Jt._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 Yt=Jt,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 i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n};function ne(){}const oe="pending",ie="valid",re="invalid";class se extends Yt{constructor(){super(...arguments),this._createControl=(t={},...e)=>{const{element:n}=t,o=ee(t,["element"]),i=this.getProps(),r=this.getModel(),s=Object.assign(Object.assign(Object.assign({},i.control),{componentId:r.id,viewIdx:r.path[0]}),o),l=this.getAutofillValue();void 0!==l&&(s.defaultValue=l);const a=this.services.form,c=[s,n,...e],d=a.hasControl(i.control.name)?a.updateControl(...c):a.registerControl(...c);return void 0!==l&&d.getValue()===l&&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:i=ne,invalidCallback:r=ne,pendingCallback:s=ne,elementToListen:l=n,validationMap:a={},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 p=this.getProps().control.validation,u=(null==p?void 0:p.validator)?a[p.validator]:void 0,h=t.some(t=>t[te]),m=!!(null==p?void 0:p.required),b=m||h,g=[...t];m&&!h&&g.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&&g.push(u);const f=this._prepareAsyncValidators(g),y=this._createControl({element:n,validation:{validator:"custom",required:b}},void 0,f);return c&&this._handleControlStatusChange(Object.assign({control:y,element:l,tooltipElement:o,configService:this.services.config,i18n:this.manifest.i18n,validCallback:i,invalidCallback:r,pendingCallback:s},d)),y},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=n=>{n.control.on(t,t=>{this._handleValidationStatus(n,t)}),n.control.on(e,()=>{let t=oe;switch(!0){case n.control.pending:t=oe;break;case n.control.valid:t=ie;break;default:t=re}this._handleValidationStatus(n,t)})},this._handleValidationStatus=(t,e)=>{const{control:n,element:o,tooltipElement:i,validCallback:r,invalidCallback:s,errorMessageMapper:l,pendingCallback:a}=t,c=this.services.config,d=this.manifest.i18n;switch(e){case ie:(function(t,e,n){t&&(t.classList.remove("invalid"),t.setAttribute("aria-invalid","false")),e&&(e.style.visibility="hidden",Q(e,n))})(o,i,this.htmlDocumentObject),r&&r();break;case re:if(n.touched){const t=n.getErrorKeys();if(!t)break;const e=t[0];let r=function(t,e,n){const o=q(e,K(t));if(!o)return n;const i=o.translations,r=Object.keys(i).find(t=>t.includes(n));return r?i[r]:n}(c,d,e);l&&(r=l(e,r)),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=()=>z(e,n,o),e.onmouseleave=()=>Q(e,o))}(o,i,r,this.htmlDocumentObject),s&&s()}break;case oe:n.touched&&(function(t,e,n){e&&(e.style.visibility="hidden",Q(e,n)),t&&t.classList.contains("invalid")&&(t.classList.remove("invalid"),t.removeAttribute("aria-invalid"))}(o,i,this.htmlDocumentObject),a&&a())}}}}function le(t){return Object.values(Ft).map(e=>({type:"GROUP",propPath:["adaptiveStyles",e],children:t}))}const ae={name:"SysCheckboxListComponent",componentType:"MULTIPLE_INPUT",version:"1.0.0",mappingTypes:["CHECKBOX_LIST"],contextMenuModel:le([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:le([{type:"CONTROL",name:"SIZE",elementProp:"styleAttributes",element:"input",params:{height:{hide:!0}}},{type:"CONTROL",name:"MARGIN",elementProp:"styleAttributes",element:"host"},{type:"CONTROL",name:"CONTAINER_PADDING",elementProp:"styleAttributes",element:"host"}]),propertyPaneModel:{content:[{type:"GROUP",propPath:["adaptiveStyles","desktop"],children:[{type:"CONTROL",name:"SIZE",element:"input",elementProp:"styleAttributes",params:{width:{options:["fixed","hug","fill"]},height:{options:["hug","fill"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"input"},{element:"label"}]},{type:"CONTROL",name:"LIST_POSITION",elementProp:"styleAttributes",element:"listContainer"},{type:"CONTROL",name:"MULTIPLE_INPUT_SIZE",element:"input",params:{inputType:"CHECKBOX"}},{type:"CONTROL",name:"BACKGROUND_MARKER_SELECTED",propPath:["styles","[element=input]","markerStyleAttributes"],params:{label:"DOCUMENT_CHOSEN_ITEM_COLOR_TITLE",property:"selectedColor",onlyColorSelection:!0,disableGradientSelection:!0,hideSwitch:!0}},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=input]","markerStyleAttributes"],params:{onlyColorSelection:!0}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=input]","markerStyleAttributes"],params:{minValue:1,maxValue:5,hideAdditionalParams:!0}},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"INPUT_LABEL",propPath:["styles","[element=label]","params"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]},{type:"GROUP",propPath:["adaptiveStyles","mobile"],children:[{type:"CONTROL",name:"SIZE",element:"input",elementProp:"styleAttributes",params:{width:{options:["fixed","hug","fill"]},height:{options:["hug","fill"]}}},{type:"CONTROL",name:"TEXT_PARAMS",params:[{element:"input"},{element:"label"}]},{type:"CONTROL",name:"LIST_POSITION",elementProp:"styleAttributes",element:"listContainer"},{type:"CONTROL",name:"MULTIPLE_INPUT_SIZE",element:"input",params:{inputType:"CHECKBOX"}},{type:"CONTROL",name:"BACKGROUND_MARKER_SELECTED",propPath:["styles","[element=input]","markerStyleAttributes"],params:{label:"DOCUMENT_CHOSEN_ITEM_COLOR_TITLE",property:"selectedColor",onlyColorSelection:!0,disableGradientSelection:!0,hideSwitch:!0}},{type:"CONTROL",name:"BACKGROUND",propPath:["styles","[element=input]","markerStyleAttributes"],params:{onlyColorSelection:!0}},{type:"CONTROL",name:"BORDERS",propPath:["styles","[element=input]","markerStyleAttributes"],params:{minValue:1,maxValue:4,hideAdditionalParams:!0}},{type:"CONTROL",name:"BOX_SHADOW",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"BORDER_RADIUS",propPath:["styles","[element=input]","markerStyleAttributes"]},{type:"CONTROL",name:"INPUT_LABEL",propPath:["styles","[element=label]","params"]},{type:"CONTROL",name:"INDENTATION",elementProp:"styleAttributes",element:"host",params:{indentationType:"MARGIN"}}]}],general:[{type:"CONTROL",name:"INTEGRATION_FIELD_MAPPING",params:{integrationNamePropPath:["control","integrationName"],groupNamePropPath:["control","groupName"],fieldNamePropPath:["control","fieldName"],fieldTypePropPath:["control","fieldType"],validationPropPath:["control","validation"],placeholderPropPath:["content","placeholder"],labelPropPath:["content","label"],optionsPropPath:["control","options"],optionsAlphabeticSortPropPath:["control","optionsAlphabeticSort"]}},{type:"CONTROL",name:"COMPONENT_OPTIONS",params:{label:"DOCUMENT_EXPORT_ID",header:"DOCUMENT_OPTIONS_HEADER",tooltip:"DOCUMENT_OPTIONS_TOOLTIP_PART1,DOCUMENT_OPTIONS_TOOLTIP_PART2",origin:!0,optionsPropPath:["control","options"],optionsAlphabeticSortPropPath:["control","optionsAlphabeticSort"],integrationNamePropPath:["control","integrationName"]}},{type:"CONTROL",name:"INPUT_VALIDATION",params:{validationPropPath:["control","validation"],fieldTypePropPath:["control","fieldType"],required:!0}}]},i18nPropertyPaneModel:{content:[{type:"CONTROL",name:"COMPONENT_OPTIONS",params:{label:"DOCUMENT_EXPORT_ID",header:"DOCUMENT_OPTIONS_HEADER",tooltip:"DOCUMENT_OPTIONS_TOOLTIP_PART1,DOCUMENT_OPTIONS_TOOLTIP_PART2",origin:!1,optionsPropPath:["control","options"],optionsAlphabeticSortPropPath:["control","optionsAlphabeticSort"],integrationNamePropPath:["control","integrationName"]}}]},autoContrast:[{slave:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","selectedColor"]},master:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","background"]},enabledPropPath:["content","selectedColorContrastEnabled"]}],focusableElements:["input","label"],events:{dispatch:[],listen:[]},i18nPropPaths:["content,label","control,options,[id],label"],i18n:{en:{"control,validation,validationErrors,REQUIRED":"Required field","content,label":"Title"},ru:{"control,validation,validationErrors,REQUIRED":"Обязательное поле","content,label":"Заголовок"},uk:{"control,validation,validationErrors,REQUIRED":"Обов'язкове поле","content,label":"Заголовок"},es:{"control,validation,validationErrors,REQUIRED":"Campo obligatorio","content,label":"Título"},de:{"control,validation,validationErrors,REQUIRED":"Pflichtfeld","content,label":"Titel"},fr:{"control,validation,validationErrors,REQUIRED":"Champs requis","content,label":"Titre"},it:{"control,validation,validationErrors,REQUIRED":"Campo obbligatorio","content,label":"Titolo"},pt:{"control,validation,validationErrors,REQUIRED":"Campo obrigatório","content,label":"Título"},ro:{"control,validation,validationErrors,REQUIRED":"Câmp obligatoriu","content,label":"Titlu"},bg:{"control,validation,validationErrors,REQUIRED":"Изисквано поле","content,label":"Заглавие"},cs:{"control,validation,validationErrors,REQUIRED":"Vyžadované pole","content,label":"Titul"},el:{"control,validation,validationErrors,REQUIRED":"Απαιτητό πεδίο","content,label":"Τίτλος"},nl:{"control,validation,validationErrors,REQUIRED":"Verplicht veld","content,label":"Titel"},pl:{"control,validation,validationErrors,REQUIRED":"Wymagane pole","content,label":"Tytuł"},sv:{"control,validation,validationErrors,REQUIRED":"Obligatoriskt fält","content,label":"Tytuł"},tr:{"control,validation,validationErrors,REQUIRED":"Gerekli alan","content,label":"Başlık"},ar:{"control,validation,validationErrors,REQUIRED":"الحقل المطلوب","content,label":"عنوان"},zh:{"control,validation,validationErrors,REQUIRED":"必填字段","content,label":"Title"},da:{"control,validation,validationErrors,REQUIRED":"Påkrævet felt","content,label":"Titel"},he:{"control,validation,validationErrors,REQUIRED":"Required field","content,label":"Title"},fi:{"control,validation,validationErrors,REQUIRED":"Vaadittu kenttä","content,label":"Title"},hi:{"control,validation,validationErrors,REQUIRED":"आवश्यक फील्ड","content,label":"Title"},hr:{"control,validation,validationErrors,REQUIRED":"Obavezno polje","content,label":"Title"},hu:{"control,validation,validationErrors,REQUIRED":"Kötelező mező","content,label":"Title"},id:{"control,validation,validationErrors,REQUIRED":"Bidang yang wajib diisi","content,label":"Title"},ja:{"control,validation,validationErrors,REQUIRED":"必須フィールド","content,label":"Title"},ko:{"control,validation,validationErrors,REQUIRED":"필수 칸","content,label":"Title"},no:{"control,validation,validationErrors,REQUIRED":"Obligatorisk felt","content,label":"Title"},sk:{"control,validation,validationErrors,REQUIRED":"Povinné pole","content,label":"Title"},sl:{"control,validation,validationErrors,REQUIRED":"Obvezno polje","content,label":"Title"},sr:{"control,validation,validationErrors,REQUIRED":"Obavezno polje","content,label":"Title"}},props:{content:{label:"Title",selectedColorContrastEnabled:!0},control:{name:"checkboxList",integrationName:"checkboxList",defaultValue:null,options:{option_1:{exportId:"option_1",label:"Option 1",id:"option_1",sort:0},option_2:{exportId:"option_2",label:"Option 2",id:"option_2",sort:1},option_3:{exportId:"other",label:"Other",id:"option_3",sort:2}},optionsAlphabeticSort:{enabled:!1},validation:{required:!0}},styles:[{element:"input",markerStyleAttributes:{selectedColor:"var(--cl-schema-accent, rgb(0, 0, 0))",background:"rgba(255, 255, 255, 1)",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"}},{element:"label",params:{enabled:!0,position:"TOP",margin:5}}],adaptiveStyles:(ce=[{element:"host",styleAttributes:{marginTop:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",_marginEnabled:!1},classes:""},{element:"listContainer",styleAttributes:{display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"start",gap:"20px"},classes:""},{element:"input",styleAttributes:{width:"100%",minWidth:null,height:"auto",minHeight:null,background:"rgba(0, 0, 0, 0)",color:"var(--cl-schema-text, rgb(68, 68, 68))",paddingBottom:"0",paddingLeft:"0",paddingRight:"0",paddingTop:"0",_paddingEnabled:!1,textAlign:"start",lineHeight:"120%",fontWeight:"400",fontSize:"14px",textShadow:"none"},markerStyleAttributes:{inputSize:"22px",inputToTextGapSize:"13px",textShadow:"none"},classes:""},{element:"label",styleAttributes:{color:"var(--cl-schema-text, rgb(68, 68, 68))",textAlign:"start",lineHeight:"120%",fontWeight:"400",fontSize:"14px",textShadow:"none"},classes:""},{element:"optionWrapper",styleAttributes:{margin:"0 3px"}}],Object.values(Ft).reduce((t,e)=>Object.assign(t,{[e]:$t(ce)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysCheckboxListComponent/assets/img/component-icon.svg",label:{en:"Checkbox",ru:"Чекбокс",uk:"Чекбокс",es:"Casilla de verificación",fr:"Case à cocher",de:"Kontrollkästchen",it:"Checkbox",pt:"Caixa de seleção",ro:"Casetă de control",bg:"Поле за маркиране",cs:"Zaškrtávací pole",el:"Πλαίσιο ελέγχου",nl:"Selectievakje",pl:"Pole wyboru",sv:"Kryssruta",tr:"Onay kutusu",ar:"خانة اختيار",zh:"复选框",da:"Afkrydsningsfelt",he:"תיבת סימון",fi:"Valintaruutu",hi:"चेकबॉक्स",hr:"Potvrdni okvir",hu:"Jelölőnégyzet",id:"Kotak Centang",ja:"チェックボックス",ko:"체크 박스",no:"Avmerkingsboks",sk:"Začiarkavacie políčko",sl:"Potrditveno polje",sr:"Polje za potvrdu"}},syncEnabled:!0,stylesImitationEnabled:!0,showComponentOptionsPropertyPaneOnInsert:!0,showIntegrationFieldMappingPropertyPaneOnInsert:!0};var ce;const de={inputSize:"22px",inputToTextGapSize:"13px",selectedColor:"rgb(0,0,0,1)",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"1px",borderTopColor:"rgba(0, 0, 0, 1)",borderBottomWidth:"1px",borderBottomColor:"rgba(0, 0, 0, 1)",borderLeftWidth:"1px",borderLeftColor:"rgba(0, 0, 0, 1)",borderRightWidth:"1px",borderRightColor:"rgba(0, 0, 0, 1)",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",boxShadow:"none",textShadow:"none",background:"rgb(255, 255, 255)",backdropFilter:"none"},pe=new Map;pe.set("checkboxSize","inputSize"),pe.set("checkboxToTextGapSize","inputToTextGapSize");const ue=pe;function he(t){return he="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},he(t)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function be(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 ge(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach(function(e){Se(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function fe(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,Te(o.key),o)}}function ye(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ye=function(){return!!t})()}function ve(){return ve="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var o=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Ee(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},ve.apply(null,arguments)}function Ee(t){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ee(t)}function Oe(t,e){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Oe(t,e)}function Se(t,e,n){return(e=Te(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Te(t){var e=function(t){if("object"!=he(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==he(e)?e:e+""}var Ce=function(){function t(){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Se(e=function(t,e,n){return e=Ee(e),function(t,e){if(e&&("object"==he(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,ye()?Reflect.construct(e,n||[],Ee(t).constructor):e.apply(t,n))}(this,t),"updateElementSizeStyles",function(){var t=e.getElement("listContainer");t&&(e.applyStylesToMarkersShadows(),e.applyStylesToMarkers(),t.querySelectorAll(".checkmark-container").forEach(function(t){e.setStylesVariables(t)}))}),Se(e,"getInputAdaptiveStyles",function(){var t=e.getProps(),n=e.getEnvironment();return t.adaptiveStyles[n].filter(function(t){return"input"===t.element})}),Se(e,"setMarkerStyleAttributes",function(){var n=e.getInputAdaptiveStyles();if(n.length&&n[0].markerStyleAttributes){var o;e.markerStyleAttributes=ge(ge({},de),n[0].markerStyleAttributes);var i=null===(o=e.getProps().styles)||void 0===o||null===(o=o.find(function(t){return"input"===t.element}))||void 0===o?void 0:o.markerStyleAttributes;i&&(e.markerStyleAttributes=ge(ge({},e.markerStyleAttributes),i))}else e.markerStyleAttributes=t.defaultMarkerStyleAttributes}),Se(e,"setStylesVariables",function(t){Object.keys(e.markerStyleAttributes).forEach(function(n){var o=ue.get(n)||n;t.style.setProperty("--".concat(o),e.markerStyleAttributes[n])})}),Se(e,"getOptions",function(){var t,n=null!==(t=e.getProps().control.optionsAlphabeticSort)&&void 0!==t&&t.enabled?"label":"sort";return function(t,e,n=!1){return function(t){return[...t].reduce((t,[e,n])=>(t[e]=n,t),{})}(Object.entries(t).sort(([t,o],[i,r])=>function(t,e,n,o=!1){let i=t[n],r=e[n];return isNaN(i)||isNaN(r)?"string"!=typeof i||"string"!=typeof r?0:(i=i.toLowerCase(),r=r.toLowerCase(),o?r.localeCompare(i):i.localeCompare(r)):i<r?o?1:-1:i>r?o?-1:1:0}(o,r,e,n)))}(e.getProps().control.options,n)}),Se(e,"applyStylesToOptionWrapper",function(){var t=e.getElement("listContainer"),n=Ht(e.getProps().adaptiveStyles,e.getEnvironment(),"optionWrapper"),o=t.querySelectorAll(".option-wrapper");if(n){var i=Object.keys(n);o.forEach(function(t){i.forEach(function(e){t.style[e]=n[e]})})}else o.forEach(function(t){t.style.margin="10px 3px"}),t.style.gap="0px"}),Se(e,"createCheckboxListItemComponent",function(t,n,o){var i=e.getHostElement(),r=document.createElement("div");r.classList.add("option-wrapper"),r.setAttribute("cl-element","optionWrapper");var s="cl-checkbox-".concat(t.id),l=document.createElement("label");l.classList.add("checkmark-container"),l.setAttribute("for",s);var a=document.createElement("div");a.classList.add("checkmark-shadow"),a.setAttribute("aria-hidden","true"),l.appendChild(a);var c=document.createElement("input");c.setAttribute("type","checkbox"),c.id=s,e.syncCheckboxState(c,n),l.appendChild(c);var d=document.createElement("span");d.classList.add("checkmark"),d.setAttribute("aria-hidden","true"),l.appendChild(d);var p=document.createElement("span");if(p.classList.add("checkbox-label"),p.textContent=t.label,e.setStylesVariables(i),I(p,o),l.appendChild(p),n){var u=e.markerStyleAttributes.selectedColor;d.classList.add("checkmark-checked"),d.style.borderColor=u,d.style.outlineColor=u,i.style.setProperty("--selectedColor",u),i.style.setProperty("--borderColor",u)}else d.style.borderColor=null,d.style.outlineColor=null,i.style.setProperty("--borderColor","rgba(0,0,0, 0.7)");return r.appendChild(l),r}),Se(e,"syncCheckboxState",function(t,e){if(t){var n=null!=e&&!1!==e;t.checked=n,t.setAttribute("aria-checked",String(n)),n?t.setAttribute("checked",""):t.removeAttribute("checked")}}),Se(e,"getCurrentValue",function(){var t;return(null===(t=e.registeredControl)||void 0===t?void 0:t.getValue())||null}),Se(e,"applyStylesToMarkersShadows",function(){e.getElement("input").querySelectorAll(".checkmark-shadow").forEach(function(t){e.setStylesVariables(t)})}),Se(e,"applyStyleToOptionLabels",function(){var n=e.getElement("input"),o=L(n,t.checkboxListButtonMenuStyles);n.querySelectorAll(".checkbox-label").forEach(function(t){I(t,o)})}),Se(e,"applyStylesToMarkers",function(){e.getElement("input").querySelectorAll(".checkmark").forEach(function(t){e.setStylesVariables(t),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=D(n,t,"borderColor")),!e&&t.style.getPropertyValue("--borderBottomColor")&&!o.includes(t.style.getPropertyValue("--borderBottomColor"))&&parseFloat(t.style.getPropertyValue("--borderBottomWidth"))&&(e=D(n,t,"--borderBottomColor")),e||!t.style.backgroundColor||o.includes(t.style.backgroundColor)||(e=D(n,t,"backgroundColor")),e||!t.style.color||o.includes(t.style.color)||(e=D(n,t,"color")),e||n.classList.remove("focus-outline-defined"))}(t)})}),Se(e,"createContent",function(){var n=e.getElement("input"),o=L(n,t.checkboxListButtonMenuStyles),i=e.getCurrentValue(),r=e.getOptions(),s=document.createElement("div");s.classList.add("buttons-list"),s.setAttribute("cl-element","listContainer"),Object.entries(r).forEach(function(t){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,s,l=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=r.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0],l=r[n],a=!!i&&i.hasOwnProperty(n),c=e.createCheckboxListItemComponent(l,a,o);c.classList.add("checkboxListItem"),e.isStaticRenderMode()&&c.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault();var o=c.querySelector(".checkmark"),i=e.getCurrentValue();if(i&&i[n])delete i[n],o.classList.remove("checkmark-checked"),o.style.borderColor=null,o.style.outlineColor=null,e.getHostElement().style.setProperty("--borderColor","rgba(0,0,0, 0.7)");else{i=ge(ge({},i),{},Se({},n,r[n].exportId)),o.classList.add("checkmark-checked");var s=e.markerStyleAttributes.selectedColor;o.style.borderColor="".concat(s),o.style.outlineColor="".concat(s),e.getHostElement().style.setProperty("--selectedColor","".concat(s)),e.getHostElement().style.setProperty("--borderColor","".concat(s))}var l=Object.keys(i).length?i:null;e.registeredControl.setValue(l)}),s.appendChild(c)}),w({element:n,html:""}),n.append(s)}),Se(e,"registerControl",function(t){var n=t.querySelector(".list-tooltip");e.registeredControl=e.createControlWithValidation([],{tooltipElement:n})}),Se(e,"handleSafariHeightIssue",function(){var t=e.getHostElement();"auto"===t.style.height&&(t.style.height="fit-content")}),Se(e,"manifest",ae),Se(e,"registeredControl",void 0),Se(e,"markerStyleAttributes",void 0),e.getRootElement().innerHTML="\n <style>".concat(t.componentStyle,"</style>\n ").concat(t.componentTemplate,"\n "),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&&Oe(t,e)}(t,se),function(t,e){return e&&fe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"connectedCallback",value:function(){var e=this;!function(t,e,n){var o=ve(Ee(t.prototype),"connectedCallback",n);return"function"==typeof o?function(t){return o.apply(n,t)}:o}(t,0,this)([]);var n=this.getRootElement();this.registerControl(n),this.observeProps(function(t,o){var i=e.getEnvironment();M(o,i,n,".label-with-checkbox-list-container"),j(o,i,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.setMarkerStyleAttributes(),e.createContent(),e.applyAutoAdaptiveStyles(o.adaptiveStyles,o.styles),e.handleSafariHeightIssue(),e.applyStylesToOptionWrapper()}),this.observeShared(function(t,n){e.applyStyleToOptionLabels(e.getProps(),e.getEnvironment())}),this.observeEnvironment(function(t,o){e.setMarkerStyleAttributes(),e.applyStylesToMarkers(),e.applyStylesToMarkersShadows();var i=e.getProps();M(i,o,n,".label-with-checkbox-list-container"),j(i,o,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.handleSafariHeightIssue(),e.applyStyleToOptionLabels(i,o),e.updateElementSizeStyles()})}}])}();Se(Ce,"define",{name:"sys-checkbox-list",model:ae.name,manifest:ae}),Se(Ce,"componentStyle","\n .main-container {\n height: 100%;\n }\n \n .label-with-checkbox-list-container {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .label {\n min-height: 10px;\n }\n \n .label.cl-focused {\n min-height: auto;\n }\n \n .buttons-list {\n width: 100%;\n height: auto;\n text-align: inherit;\n }\n \n .checkbox-list-with-tooltip {\n position: relative;\n display: flex;\n height: 100%;\n width: 100%;\n cursor: pointer;\n }\n \n .invalid {\n border: 1px solid #ff0000 !important;\n }\n \n .list-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 \n .checkbox-list-content {\n display: flex;\n /*align-items: center;*/\n /*position: absolute;*/\n height: 100%;\n width: 100%;\n padding: 0;\n /*padding: 0 35px 0 20px;*/\n cursor: pointer;\n border: 1px solid transparent;\n }\n \n .option-wrapper {\n border: 0;\n align-items: center;\n outline: 0;\n text-align: inherit;\n padding: var(--borderTopWidth);\n }\n \n input {\n -moz-appearance: none;\n -webkit-appearance: none;\n -o-appearance: none;\n width: 24px;\n height: auto;\n padding: 0 10px;\n margin: 0;\n }\n \n /* The container */\n .checkmark-container {\n cursor: pointer;\n display: flex;\n position: relative;\n padding-left: calc(var(--inputSize, 22px) + var(--inputToTextGapSize, 18px) + var(--borderTopWidth, 1));\n height: var(--inputSize, 22px);\n width: 100%;\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 osition: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n \n .checkmark-container .checkbox-label {\n display: block;\n }\n \n /* Create a custom checkbox */\n .checkmark {\n cursor: pointer;\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 /*border-style: var(--borderStyle);\n border-color: var(--borderTopColor);\n border-width: var(--borderTopWidth);*/\n border-top-left-radius: var(--borderTopLeftRadius);\n border-top-right-radius: var(--borderTopRightRadius);\n border-bottom-left-radius: var(--borderBottomLeftRadius);\n border-bottom-right-radius: var(--borderBottomRightRadius);\n box-shadow: 0 0 0 var(--borderTopWidth) var(--borderTopColor);\n background: var(--background, rgb(256, 256, 256));\n backdrop-filter: var(--backdropFilter);\n }\n \n .checkmark-shadow {\n box-shadow: var(--boxShadow);\n position: absolute;\n top: 0;\n left: 0;\n height: var(--inputSize, 22px);\n width: var(--inputSize, 22px);\n padding-bottom: 2px;\n z-index: 1;\n border-top-left-radius: var(--borderTopLeftRadius);\n border-top-right-radius: var(--borderTopRightRadius);\n border-bottom-left-radius: var(--borderBottomLeftRadius);\n border-bottom-right-radius: var(--borderBottomRightRadius);\n }\n \n .checkmark:after {\n content: \"L\";\n position: absolute;\n display: none;\n transform: rotate(45deg) scaleX(-1);\n font-family: 'Arial';\n }\n \n .checkmark-checked {\n box-shadow: 0 0 0 var(--borderTopWidth) var(--selectedColor);\n }\n \n .checkmark-checked:after {\n display: block;\n }\n \n .checkmark-container .checkmark:after {\n width: var(--inputSize, 22px);\n height: var(--inputSize, 22px);\n font-size: var(--inputSize, 22px);\n line-height: var(--inputSize, 22px);\n text-align: center;\n color: var(--borderColor);\n margin-left: 10%;\n margin-bottom: 10%;\n }\n \n .checkbox-label {\n margin: 0;\n height: auto;\n min-height: 10px;\n width: auto;\n align-self: center;\n text-shadow: var(--textShadow);\n }\n \n input:focus ~ .checkmark.focus-outline-defined {\n /*outline: var(--clFocusOutline);*/\n z-index: 3;\n outline-width: calc(var(--borderTopWidth) + 3px);\n outline-color: var(--borderTopColor);\n outline-style: solid;\n opacity: 0.7;\n }\n \n input:focus ~ .checkmark.checkmark-checked.focus-outline-defined {\n outline-color: var(--selectedColor);\n }\n"),Se(Ce,"componentTemplate",'\n <div class="main-container">\n <div class="label-with-checkbox-list-container" role="group" aria-labelledby="cl-checkbox-list-label">\n <div cl-element="label"\n cl-inline-edit="content, label"\n class="label"\n id="cl-checkbox-list-label">\n </div>\n <div class="checkbox-list-with-tooltip">\n <div cl-element="input" class="checkbox-list-content">\n </div>\n <div class="list-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>\n </div>\n</div>\n'),Se(Ce,"checkboxListButtonMenuStyles",["color","font-family","font-size","letter-spacing","text-shadow","font-weight","text-align"]),Se(Ce,"defaultMarkerStyleAttributes",de);export{Ce as default};window.clComponentClass_SysCheckboxListComponent=Ce;