@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.
- package/SysButtonComponent/SysButtonComponent.js +1 -1
- package/SysCalendarComponent/SysCalendarComponent.js +1 -1
- package/SysCheckboxListComponent/SysCheckboxListComponent.js +1 -1
- package/SysChoiceButtonsComponent/SysChoiceButtonsComponent.js +1 -1
- package/SysConsentComponent/SysConsentComponent.js +1 -1
- package/SysDateComponent/SysDateComponent.js +1 -1
- package/SysDropdownInputComponent/SysDropdownInputComponent.js +1 -1
- package/SysInputComponent/SysInputComponent.js +1 -1
- package/SysPhoneInputComponent/SysPhoneInputComponent.js +1 -1
- package/SysPromoCodeComponent/SysPromoCodeComponent.js +1 -1
- package/SysRadioGroupComponent/SysRadioGroupComponent.js +1 -1
- package/SysTextAreaComponent/SysTextAreaComponent.js +1 -1
- package/package.json +3 -3
|
@@ -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 r=Array.prototype.concat,i=Array.prototype.slice,s=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var l=t[n];o(l)?e=r.call(e,i.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 u in a)c.call(a,u)&&(d[a[u]]=u);var p={to:{},get:{}};function h(t,e,n){return Math.min(Math.max(e,t),n)}p.get=function(t){var e,n;return"hsl"===t.substring(0,3).toLowerCase()?(e=p.get.hsl(t),n="hsl"):(e=p.get.rgb(t),n="rgb"),e?{model:n,value:e}:null},p.get.rgb=function(t){if(!t)return null;var e,n,o,r=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var i=2*n;r[n]=parseInt(e.slice(i,i+2),16)}o&&(r[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)r[n]=parseInt(e[n]+e[n],16);o&&(r[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)r[n]=parseInt(e[n+1],0);e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:c.call(a,e[1])?((r=a[e[1]])[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}for(n=0;n<3;n++)r[n]=h(r[n],0,255);return r[3]=h(r[3],0,1),r},p.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},p.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]+")"},p.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=p,g={},b={};for(const t of Object.keys(g))b[g[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,r=Math.min(e,n,o),i=Math.max(e,n,o),s=i-r;let l,a;i===r?l=0:e===i?l=(n-o)/s:n===i?l=2+(o-e)/s:o===i&&(l=4+(e-n)/s),l=Math.min(60*l,360),l<0&&(l+=360);const c=(r+i)/2;return a=i===r?0:c<=.5?s/(i+r):s/(2-i-r),[l,100*a,100*c]},f.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let r,i,s;if(0===n)return s=255*o,[s,s,s];r=o<.5?o*(1+n):o+n-o*n;const l=2*o-r,a=[0,0,0];for(let t=0;t<3;t++)i=e+1/3*-(t-1),i<0&&i++,i>1&&i--,s=6*i<1?l+6*(r-l)*i:2*i<1?r:3*i<2?l+(r-l)*(2/3-i)*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],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),o=y(v[e[r].parent][r],o),r=e[r].parent;return o.conversion=n,o}const S={};Object.keys(v).forEach(t=>{S[t]={},Object.defineProperty(S[t],"channels",{value:v[t].channels}),Object.defineProperty(S[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 r=o.length,i=0;i<r;i++){const r=o[i],s=e[r];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(r))}}return e}(t),n={},o=Object.keys(e);for(let t=o.length,r=0;r<t;r++){const t=o[r];null!==e[t].parent&&(n[t]=E(t,e))}return n}(t);Object.keys(e).forEach(n=>{const o=e[n];S[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),S[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 O=S,T=["keyword","gray","hex"],C={};for(const t of Object.keys(O))C[[...O[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 O))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=O[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=O[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:r}=O[this.model],i=[];for(n=0;n<r.length;n++)i.push(t[r[n]]);this.color=P(i)}if(A[this.model])for(o=O[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(x(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(O)){if(T.includes(t))continue;const{channels:e}=O[t];R.prototype[t]=function(...e){return this.model===t?new R(this):e.length>0?new R(e,t):new R([..._(O[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 x(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function _(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 w=R;function I(t){const{element:e,html:n,appendHtml:o}=t,r=function(t){if(null==t)return"";if("string"!=typeof t)return String(t);if(""===t)return"";if(!/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.test(t))return t;const e=(new DOMParser).parseFromString(t,"text/html");return e.querySelectorAll('script, style, link[rel="stylesheet"], meta[http-equiv]').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+=r:e.innerHTML=r}function k(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function N(t,e){const n=window.getComputedStyle(t);return e.reduce((t,e)=>(t[e]=n.getPropertyValue(e),t),{})}function L(t,e){var n,o;let r;return t.styles&&(r=null===(n=t.styles.find(t=>"label"===t.element))||void 0===n?void 0:n.params),t.adaptiveStyles&&!r&&(r=null===(o=t.adaptiveStyles[e].find(t=>"label"===t.element))||void 0===o?void 0:o.params),r}function M(t,e,n,o){var r;const i=n.querySelector(o),s=n.querySelector(".label"),l=L(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 r=(o.getAttribute("aria-labelledby")||"").split(" ").filter(Boolean);r.includes(t.id)||(r.push(t.id),o.setAttribute("aria-labelledby",r.join(" ")))}(s,i),l&&s&&(I({element:s,html:(null===(r=t.content)||void 0===r?void 0:r.label)||""}),"TOP"===l.position?(i.style.flexDirection="column",i.style.alignItems="unset",k(s,{marginRight:"0",marginBottom:`${l.margin}px`})):(i.style.flexDirection="row",i.style.alignItems="center",k(s,{marginRight:`${l.margin}px`,marginBottom:"0"})),l.enabled?s.style.display="":s.style.display="none")}function j(t,e,n,o,r){const i=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),r=null==n?void 0:n.styleAttributes;(null==r?void 0:r.width)&&(o=r)}return o}(t,e);if(!i)return;const s=L(t,e),l=r&&s&&s.enabled&&"TOP"===s.position?r.getBoundingClientRect().height+(s.margin||0):0;i.width&&(i.width.includes("100%")?(o.style.width="100%",n.style.width=i.width):n.style.width="auto"),i.height&&(i.height.includes("100%")?(o.style.height="100%",n.style.height=i.height):n.style.height=`${parseFloat(i.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=w(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:r,marginLeft:i,marginRight:s}=window.getComputedStyle(t);return{width:e+parseInt(i,10)+parseInt(s,10),height:n+parseInt(r,10)+parseInt(o,10)}}function B(t,e,n,o,r){switch(t.position){case"top":return{left:`${W(e,n,o,r)}px`,top:t.availableSpaceAboveTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"bottom":return{left:`${W(e,n,o,r)}px`,bottom:t.availableSpaceBelowTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"left":return{left:t.availableSpaceToTheLeftSideOfTheTrigger-e.width-t.contentWidth-t.horizontalOffset+"px",top:`${V(0,t)}px`};case"right":return{right:t.availableSpaceToTheRightSideOfTheTrigger-t.contentWidth-t.horizontalOffset+"px",top:`${V(0,t)}px`}}}function W(t,e,o,r){let i=o?t.x+t.width/2-e.width/2:t.x;return i<0&&(i=0),i+e.width>n.width(r)&&(i-=i+e.width-n.width(r)),i}function V(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 G(t,e,o,r){r=r||document;let i=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),I({element:e,html:H}),t.head.appendChild(e)})(r),i=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),r.body.append(i),i.style.visibility="visible",function(t){const{triggerElement:e,tooltipElement:o,offset:r=10,htmlDocumentObject:i}=t,s=function(t,e,o,r,i,s){const l=function(t,e,o,r,i){const s=function(t,e,o,r){const i=n.width(r),{right:s}=t.getBoundingClientRect(),l=i-o-s-n.scrollbarWidth(r);return{horizontalOffset:o,contentWidth:D(e).width,availableSpaceToTheLeftSideOfTheTrigger:s-o,availableSpaceToTheRightSideOfTheTrigger:l}}(t,e,o,i),l=function(t,e,o,r){const i=n.height(r),{top:s,bottom:l}=t.getBoundingClientRect();return{verticalOffset:o,contentHeight:D(e).height,availableSpaceAboveTriggerElem:s-o,availableSpaceBelowTriggerElem:i-l-o}}(t,e,o,i);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"),r&&c[r]&&(a=r),"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,r,s=s||document);return function(t,e){const{marginBottom:n,marginTop:o}=window.getComputedStyle(e);if("top"===t.position)k(e,{"margin-top":`${parseInt(o,10)+parseInt(n,10)}px`}),k(e,{"margin-bottom":"0px"});else if("bottom"===t.position)k(e,{"margin-bottom":`${parseInt(n,10)+parseInt(o,10)}px`}),k(e,{"margin-top":"0px"});else{const t=(parseInt(n,10)+parseInt(o,10))/2+"px";k(e,{"margin-top":t,"margin-bottom":t})}}(l,e),{coordinates:B(l,t.getBoundingClientRect(),e.getBoundingClientRect(),i,s),position:l.position}}(e,o,r,"top",!0,i);o.setAttribute("cl-tooltip-position",s.position),k(o,s.coordinates)}({triggerElement:e,tooltipElement:i,htmlDocumentObject:r})},e.onmouseleave=()=>{i&&(i.remove(),function(t){const e=(t=t||document).head.querySelector(`#${F}`);e&&e.remove()}(r))})}function $(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 q(t){return Q+t}function K(t){return"cl-"+t}const Y="VIEW",J="CONTAINER",Z="INPUT",X="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 rt=nt;var it,st;class lt{static sortActions(t){const e={[rt.CLOSE_WIDGET]:-1,[rt.OPEN_LINK]:-2,[rt.SHOW_WIDGET]:1,[rt.SUBSCRIBE_CONTACT]:2,[rt.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(),r=o.getAttribute(K("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,r)}),this.listener=t=>{const e=t.composedPath().filter(t=>t instanceof HTMLElement&&t.getAttribute(K("type")));let n=0;for(;e[n]&&e[n].getAttribute(K("id"))!==r;){let t=e[n].getAttribute(K("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 r,i=!0,s=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise(function(o,r){!function(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}(o,r,(e=t[n](e)).done,e.value)})}}}(this.eventsQueue);!(t=(r=await s.next()).done);i=!0){o=r.value,i=!1;const{event:t}=o;for(const e of this.actions)if(!await e.execute(this.state.getState(),t))break}}catch(t){e={error:t}}finally{try{i||t||!(n=s.return)||await n.call(s)}finally{if(e)throw e.error}}this.eventsQueue=[]}postpone(){this.postponed=!0}release(){this.postponed=!1,this.execute()}destroy(){this.listener&&this.targetElements.length&&(this.targetElements.forEach(t=>{t.removeEventListener("click",this.listener)}),this.targetElements=[])}}lt.IGNORING_VIEW_ENTRY_TYPES=[X,tt,Z],(st=it||(it={})).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 r=null===(o=n())||void 0===o?void 0:o.getAttribute(K("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,r)}),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 it.CLICK:return new lt(t,e);case it.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 ut{constructor(){this.listeners=ut.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=ut.createDefaultListenersState()}}ut.createDefaultListenersState=()=>({"*":{}});const pt=ut,ht=(t,e,n,o)=>{const r=EventTarget.prototype,{addEventListenerBase:i,addEventListener:s}=r;(i||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 gt extends pt{constructor(t,e){super(),this.config=e,this.handleMobileBreakpoint(t.getShared().mobileBreakpointWidth),t.on("ENVIRONMENT_UPDATE",({isMobileEnv:t})=>{this._isMobile=t,this.emit(gt.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(gt.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(t){this._isMobile=t.matches,this.emit(gt.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}gt.changeEventName="CHANGE";const bt=gt;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 St{static applyHostStyles(t,e,n=null,o){var r,i,s;const l=null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.handlers)||void 0===i?void 0:i.find(t=>"CLICK"===t.type);l&&(null===(s=l.actions)||void 0===s?void 0:s.length)&&(e.style.cursor="pointer"),t!==Y&&t!==J&&t!==et||(e.style.display=o===yt.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 Ot{static log(t){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(t)):console.error(t)}}class Tt{constructor(t,e,n,o,r,i){this.hostElement=e,this.documentModel=t,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=r,this.httpClient=i,this.schemaSubscription=null,this.themeSubscription=null,this.envUrlMaps={desktop:new Map,mobile:new Map}}parseBackground(t){const e=String(t||"");if(e.includes("url")){const[t,n]=e.split("(")[1].split(")");return{url:t.replace(/['"]+/g,""),positionOptions:n.replace(";","")}}return{url:null,positionOptions:null}}apply(t){const e=this.getPropsCb();return e.backgroundDynamicInlineSVGElements[t].forEach(n=>{var o,r,i,s,l;const a=null===(r=null===(o=e.adaptiveStyles)||void 0===o?void 0:o[t])||void 0===r?void 0:r.find(t=>t.element===n),c=(null===(i=e.styles)||void 0===i?void 0:i.find(t=>t.element===n))||{},d=(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.background)||(null===(l=null==a?void 0:a.styleAttributes)||void 0===l?void 0:l.background),u=this.parseBackground(d);u.url&&this.envUrlMaps[t].set(n,{originalSVGResourceURL:u.url,inlineSvgString:null,positionOptions:u.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),Ot.log(`Failed to load/apply backgroundDynamicInlineSVGElements[${this.getPropsCb().backgroundDynamicInlineSVGElements}] ${t}`)})}on(){return this.schemaSubscription=this.documentModel.on("COLOR_SCHEMA_UPDATE",t=>{this._applyHostElementBackgroundFromCssVars(this.envUrlMaps[this.getEnvCb()].get("host"),t)}),this.themeSubscription=this.documentModel.on("THEME_UPDATE",t=>{this._applyHostElementBackgroundFromTheme(this.envUrlMaps[this.getEnvCb()].get("host"),t.schema)}),this}_applyHostElementBackgroundFromCssVars(t,e){t&&e&&(this.hostElement.style.background=this._buildBackgroundUrlFromCssVars(t,e))}_applyHostElementBackgroundFromTheme(t,e){t&&e&&(this.hostElement.style.background=this._buildBackgroundUrlFromTheme(t,e))}_buildBackgroundUrlFromCssVars(t,e){const n=t.inlineSvgString.trim().replace("var(--cl-schema-accent)",e["cl-schema-accent"]);return`url('data:image/svg+xml,${encodeURIComponent(n)}')${t.positionOptions}`}_buildBackgroundUrlFromTheme(t,e){const n=t.inlineSvgString.trim();let o=n;return[...n.matchAll(/var\(--cl-schema-([^)]+)\)/g)].forEach(t=>{const n=function(t=""){return t.replace(/var\(\s*(--[^,\s)]+).*\)/,"$1").replace("--cl-schema-","")}(t[1]);var r;o=o.replace(`var(--${r=n,`cl-schema-${r}`})`,e[n])}),`url('data:image/svg+xml,${encodeURIComponent(o)}')${t.positionOptions}`}off(){var t,e;null===(t=this.schemaSubscription)||void 0===t||t.off(),null===(e=this.themeSubscription)||void 0===e||e.off()}}const Ct=new class{execute({url:t,method:e="GET",body:n=null,headers:o,abortSignal:r}){const i={method:e,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:r};return n&&(i.body="string"==typeof n?n:JSON.stringify(n)),fetch(t,i)}};function 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 xt{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 _t;!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"}(_t||(_t={}));const Pt=_t;class wt{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 xt(this.onCounterStateUpdate)}}}const It=(...t)=>{let e=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[]}),{});return{get:t=>e[t],clear:()=>It(...t)}},kt=It,Nt="props",Lt="shared",Mt="environment";function jt(t,e,n,o){const r=t=>{let i=function(t){return t instanceof DocumentFragment||(null==t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?t.host||null:t}(t);return i&&(o&&"function"==typeof o?o(i.getAttribute(e)):(null===(s=null==i?void 0:i.getAttribute)||void 0===s?void 0:s.call(i,e))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var s};return r(t)}const 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 Wt(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 Vt(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 Gt,$t,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"}(Gt||(Gt={})),(zt=$t||($t={})).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 qt{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")===Gt.UPDATING)return;const n=function(t,e,n,o){if(!e)return;if(e===$t.STATIC)return Qt(null==n?void 0:n.value);const r=t.getSource(e);if(!r)return;const i=r.getValue(o);return Qt("function"==typeof(null==i?void 0:i.processor)?i.processor(r,Object.assign({id:o},n)):null==i?void 0:i.value)}(this.registry,t.sourceType,t.config,e);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class Kt extends HTMLElement{constructor(){var t;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let t;const e=this.getAttribute(K("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${K("widget-id")}]`);let r;o&&(r=o.getAttribute(K("widget-id")));let i=new Ht("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(K("path")),id:e,widgetId:r},{bubbles:!0,composed:!0});this.dispatchEvent(i),t=i.detail.props,Object.assign(this,t),this.observers=kt(Nt,Lt,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 pt,this.componentResourceManager=new wt(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(Nt).forEach(e=>e(this.prevProps,t)),this.prevProps=t;const e=this.getHostElement(),n=K("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(Lt).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(bt.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")===Gt.STATIC,this.isUpdatingRenderMode=()=>this.services.config.getConfig("renderMode")===Gt.UPDATING,this.getRootElement=()=>this.shadowRoot?this.shadowRoot:this,this.getHostElement=()=>this,this.observeProps=t=>{this.observers.get(Nt).push(t),t(null,this.prevProps)},this.observeShared=t=>{this.observers.get(Lt).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(`[${K("element")}]`)).filter(t=>!t.hasAttribute(K("component")))],this.getElement=(t,e)=>this.getElements().find(n=>e?n.getAttribute(K("element"))===t&&n.id===e:n.getAttribute(K("element"))===t),this.applyAutoAdaptiveStyles=(t,e)=>{if(!t&&!e)return;const n=this.getElements();if(!n.length)return;const o=function(t,e){if(!e)return t||{desktop:[],mobile:[]};const n=JSON.parse(JSON.stringify(t||{desktop:[],mobile:[]}));return e.forEach(t=>{const e=t.element;let o=!1,r=!1;n.desktop&&n.desktop.forEach(n=>{n.element===e&&(Dt(n,t),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===e&&(Dt(n,t),r=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(t))),!r&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(t)))}),n}(t,e),r=K("type"),i="element-styles";let s=this.getRootElement().querySelector(`style[${r}="${i}"]`);s||(s=document.createElement("style"),s.setAttribute(r,i),this.getRootElement().appendChild(s)),I({element:s,html:""}),n.forEach(t=>{let e=t.getAttribute(K("element"));const n=this.getEnvironment();let r=Wt(o,n,e);if(r){if(this.resizeListener.isMobile()){const t=Wt(o,"desktop",e);t&&(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),r.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(r),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,r;const i=[];"host"===(e=Kt._resolveTogglableStylesForElementModel(e)).element&&(St.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===(r=this.model.props.backgroundDynamicInlineSVGElements)||void 0===r?void 0:r.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),i.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,i)});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(),r=`flip-up-animation-${e.element}`;let i=this.getRootElement().querySelector(`#${r}`);i||(i=document.createElement("style"),i.id=r,t.appendChild(i)),I({element:i,html:`\n ${n}::before {\n content: '';\n background: ${o.background};\n position: absolute;\n left: 0;\n top: ${t.getBoundingClientRect().height}px;\n height: ${t.getBoundingClientRect().height}px;\n width: 100%;\n z-index: -10;\n }\n ${n}:hover::before {\n top: 0;\n transition: 0.3s;\n }\n `}),o=Object.assign(Object.assign({},e.hoverStyleAttributes),{background:"transparent",position:"relative"})}o.borderTopWidth&&"0px"!==o.borderTopWidth||delete o.borderTopColor,o.borderBottomWidth&&"0px"!==o.borderBottomWidth||delete o.borderBottomColor,o.borderLeftWidth&&"0px"!==o.borderLeftWidth||delete o.borderLeftColor,o.borderRightWidth&&"0px"!==o.borderRightWidth||delete o.borderRightColor,this._addStylesToStyleElement(n,e.element,o,`:not(.${K("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 r;const i=null===(r=e.textClasses)||void 0===r?void 0:r[t];if(!i)return;let s=function(t,e){return{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),e?t.mobileStyleAttributes:{}),placeholderStyleAttributes:Object.assign(Object.assign({},t.placeholderStyleAttributes),e?t.mobilePlaceholderStyleAttributes:{})}}(i,n);s.styleAttributes.fontFamily||(i.isHeader&&e.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.headerFontFamily})})),!i.isHeader&&e.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.textFontFamily})}))),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="",r)=>{const i=Object.keys(n).reduce((t,e)=>t+` ${Rt.camelCaseToDashCase(e)}: ${n[e]}${r?" !important;":";"}`,"");I({element:t,html:`[${K("element")}="${e}"]${o} { ${i} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(t,e)=>{I({element:t,html:`[cl-type] {font-family:${e.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(t,e)=>{var n,o,r,i;e.linkColor&&I({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)&&I({element:t,html:`a {color: ${null===(o=e.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(r=e.linkParams)||void 0===r?void 0:r.color}}`,appendHtml:!0}),(null===(i=e.linkParams)||void 0===i?void 0:i.removeUnderline)&&I({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!==q("hovered")&&t!==q("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,K("element"),"host"),this.getWidgetContainerNode=()=>{const t=null==this?void 0:this.getAttribute(K("path"));return 1===(null==t?void 0:t.split(",").length)?this.parentNode:jt(this.parentNode,K("path"),void 0,t=>1===(null==t?void 0:t.split(",").length))},this.getWidgetLanguages=()=>$(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 qt(this.services.config,this.services.context.getRegistry()).resolveValue(null===(t=e.props.control)||void 0===t?void 0:t.autofill,e.id)},this.getValidatedAutofillValue=()=>this.isAutofillValidated?this.validatedAutofillValue:void 0,this.syncAutofillContextRecord=(t,e)=>{this.isAutofillValidated=!0,this.validatedAutofillValue=t?e:void 0,t&&this.services.context.updateRecord(this.getModel().id,{value:e})},this.addContextRecord=()=>{var t,e;const n=this.getModel();this.services.context.addRecord(n.id,{recordKey:n.id,id:n.props.control.name,label:this.getContextRecordLabel(n.props),value:null!==(t=this.getValidatedAutofillValue())&&void 0!==t?t:n.props.control.defaultValue||"",viewIndex:null===(e=n.path)||void 0===e?void 0:e[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(n.props)}})},this.getContextRecordLabel=t=>{var e,n,o,r,i,s;const 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===(r=null===(o=null===(n=t.adaptiveStyles)||void 0===n?void 0:n.desktop.find(t=>"label"===t.element))||void 0===o?void 0:o.params)||void 0===r?void 0:r.enabled)){const e=(new DOMParser).parseFromString(t.content.label,"text/html");return this.capitalizeFirstLetter(e.body.textContent||"")}return(null===(i=t.content)||void 0===i?void 0:i.placeholder)?this.capitalizeFirstLetter(t.content.placeholder):(null===(s=t.control)||void 0===s?void 0:s.integrationName)?this.capitalizeFirstLetter(t.control.integrationName).replace(new RegExp("_","g")," "):void 0},this.capitalizeFirstLetter=t=>t.charAt(0).toUpperCase()+t.slice(1),this.getContextRecordExampleValue=t=>{var e;switch(null===(e=t.control)||void 0===e?void 0:e.name){case"email":return"myemail@example.com";case"first_name":return"Maria";case"last_name":return"Taylor";default:return this.getContextRecordLabel(t)}},this.completeSubmitAction=t=>{const e=t||{},n=this.services.actionRegister.getRegisteredActions().find(t=>t.category===Ut);n?null==n||n.execute(void 0,void 0,!0,e):this.services.actionFactory.get({type:rt.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()}}Kt._resolveTogglableStylesForElementModel=t=>{const e=Object.assign({},t);return Object.keys(e).forEach(t=>{t.toLowerCase().includes("styleattributes")&&(e[t]=Kt._resolveTogglableStyles(e[t]))}),e},Kt._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=Kt,Jt=Symbol("required");var Zt=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};function Xt(){}const te="pending",ee="valid",ne="invalid";class oe extends Yt{constructor(){super(...arguments),this._createControl=(t={},...e)=>{const{element:n}=t,o=Zt(t,["element"]),r=this.getProps(),i=this.getModel(),s=Object.assign(Object.assign(Object.assign({},r.control),{componentId:i.id,viewIdx:i.path[0]}),o),l=this.getAutofillValue();void 0!==l&&(s.defaultValue=l);const a=this.services.form,c=[s,n,...e],d=a.hasControl(r.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:r=Xt,invalidCallback:i=Xt,pendingCallback:s=Xt,elementToListen:l=n,validationMap:a={},listenStatusChange:c=!0}=e,d=Zt(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 u=this.getProps().control.validation,p=(null==u?void 0:u.validator)?a[u.validator]:void 0,h=t.some(t=>t[Jt]),m=!!(null==u?void 0:u.required),g=m||h,b=[...t];m&&!h&&b.unshift(function(t="REQUIRED"){const e=e=>{let n;switch(typeof e){case"string":n=e&&e.length>0;break;case"boolean":n=e;break;case"number":n=!isNaN(e);break;default:n=!!e}return{isValid:n,errorKey:n?null:t}};return e[Jt]=!0,e}()),p&&b.push(p);const f=this._prepareAsyncValidators(b),v=this._createControl({element:n,validation:{validator:"custom",required:g}},void 0,f);return c&&this._handleControlStatusChange(Object.assign({control:v,element:l,tooltipElement:o,configService:this.services.config,i18n:this.manifest.i18n,validCallback:r,invalidCallback:i,pendingCallback:s},d)),v},this._prepareAsyncValidators=(t=[])=>t.reduce((t,e,n)=>"function"!=typeof e?(console.warn(`Validator ${n} should be a function, so it will be skipped`),t):(t[`custom_${n}`]=async(...t)=>{const n=await Promise.resolve(e(...t));return"object"==typeof n&&"isValid"in n?Object.assign(Object.assign({},n),{errorKey:n.isValid?null:n.errorKey}):{isValid:!1,errorKey:"INVALID_VALIDATOR_RESPONSE"}},t),{}),this._handleControlStatusChange=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:r,validCallback:i,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,r),i&&i();break;case ne:if(n.touched){const t=n.getErrorKeys();if(!t)break;const e=t[0];let i=function(t,e,n){const o=z(e,$(t));if(!o)return n;const r=o.translations,i=Object.keys(r).find(t=>t.includes(n));return i?r[i]:n}(c,d,e);l&&(i=l(e,i)),G(o,r,i,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,r),a&&a())}}}}function re(t){return Object.values(Bt).map(e=>({type:"GROUP",propPath:["adaptiveStyles",e],children:t}))}const ie={name:"SysRadioGroupComponent",componentType:"MULTIPLE_INPUT",version:"1.0.0",mappingTypes:["SELECT"],contextMenuModel:re([{type:"CONTROL",name:"COMPONENT_OPERATIONS"},{type:"CONTROL",name:"BRING_BACK_FORWARD",element:"host",elementProp:"styleAttributes",elementSubProp:"zIndex"},{type:"CONTROL",name:"FOCUS_PARENT_COMPONENT"}]),floatingControlsModel:re([{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:re([{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:"RADIO"}},{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:"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}}]},autoContrast:[{slave:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","selectedColor"]},master:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","background"]},enabledPropPath:["content","selectedColorContrastEnabled"]}],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"]}}]},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":"שדה נדרש","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:"radioGroup",integrationName:"radioGroup",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))",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"1px",borderTopColor:"var(--cl-schema-accent, rgb(68, 68, 68))",borderBottomWidth:"1px",borderBottomColor:"var(--cl-schema-accent, rgb(68, 68, 68))",borderLeftWidth:"1px",borderLeftColor:"var(--cl-schema-accent, rgb(68, 68, 68))",borderRightWidth:"1px",borderRightColor:"var(--cl-schema-accent, rgb(68, 68, 68))",boxShadow:"none",background:"rgba(255, 255, 255, 1)"}},{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-accent, 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]:Vt(se)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysRadioGroupComponent/assets/img/component-icon.svg",label:{en:"Radio",ru:"Радио",uk:"Радіо",es:"Radio",fr:"Radio",de:"Radio",it:"Radio",pt:"Rádio",ro:"Radio",bg:"Радио",cs:"Rádio",el:"Ραδιόφωνο",nl:"Radio",pl:"Radio",sv:"Radio",tr:"Radyo",ar:"الراديو",zh:"电台",da:"Radio",he:"רדיו",fi:"Radio",hi:"रेडियो",hr:"Radio",hu:"Választógomb",id:"Radio",ja:"ラジオ",ko:"라디오",no:"Radio",sk:"Rádio",sl:"Radio",sr:"Radio"}},syncEnabled:!0,stylesImitationEnabled:!0,showComponentOptionsPropertyPaneOnInsert:!0,showIntegrationFieldMappingPropertyPaneOnInsert:!0};var se;const le={inputSize:"22px",inputToTextGapSize:"13px",selectedColor:"rgba(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)",boxShadow:"none",textShadow:"none",outline:"none",border:"1px solid",background:"rgb(255, 255, 255)",backdropFilter:"none"};function ae(t){return ae="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},ae(t)}function ce(t){return function(t){if(Array.isArray(t))return ue(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||de(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(t,e){if(t){if("string"==typeof t)return ue(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)?ue(t,e):void 0}}function ue(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 pe(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?pe(Object(n),!0).forEach(function(e){ye(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pe(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 ge(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ge=function(){return!!t})()}function be(){return be="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 r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},be.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"!=ae(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ae(e)?e:e+""}var Se=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"==ae(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,ge()?Reflect.construct(e,n||[],fe(t).constructor):e.apply(t,n))}(this,t),"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 r=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;r&&(e.markerStyleAttributes=he(he({},e.markerStyleAttributes),r))}else e.markerStyleAttributes=t.defaultMarkerStyleAttributes}),ye(e,"setStylesVariables",function(t){Object.keys(e.markerStyleAttributes).forEach(function(n){return t.style.setProperty("--".concat(n),e.markerStyleAttributes[n])})}),ye(e,"getOptions",function(){var t,n=e.getProps().control.options,o={};Object.keys(n).forEach(function(t){var e=n[t];o[t]={id:t,label:e.label,exportId:e.exportId,sort:e.sort}});var r=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],[r,i])=>function(t,e,n,o=!1){let r=t[n],i=e[n];return isNaN(r)||isNaN(i)?"string"!=typeof r||"string"!=typeof i?0:(r=r.toLowerCase(),i=i.toLowerCase(),o?i.localeCompare(r):r.localeCompare(i)):r<i?o?1:-1:r>i?o?-1:1:0}(o,i,e,n)))}(o,r)}),ye(e,"applyStylesToOptionWrapper",function(){var t=e.getElement("listContainer"),n=Wt(e.getProps().adaptiveStyles,e.getEnvironment(),"optionWrapper"),o=t.querySelectorAll(".option-wrapper");if(n){var r=Object.keys(n);o.forEach(function(t){r.forEach(function(e){t.style[e]=n[e]})})}else o.forEach(function(t){t.style.margin="10px 3px"}),t.style.gap="0px"}),ye(e,"createRadioGroupItemComponent",function(t,n,o){var r=e.getHostElement(),i=document.createElement("div");i.classList.add("option-wrapper"),i.setAttribute("cl-element","optionWrapper");var s="cl-radio-".concat(e.controlExportId,"-").concat(t.id),l=document.createElement("label");l.classList.add("radio-mark-container"),l.setAttribute("for",s);var a=document.createElement("div");a.classList.add("radio-mark-shadow"),a.setAttribute("aria-hidden","true"),l.appendChild(a);var c=document.createElement("input");c.setAttribute("type","radio"),c.setAttribute("name","".concat(e.controlExportId,"-").concat(t.id)),c.id=s,e.syncRadioState(c,n),l.appendChild(c);var d=document.createElement("span");d.classList.add("radio-mark"),d.setAttribute("aria-hidden","true"),l.appendChild(d);var u=document.createElement("span");if(u.classList.add("radio-box-label"),u.textContent=t.label,e.setStylesVariables(r),k(u,o),l.appendChild(u),n){var p=e.markerStyleAttributes.selectedColor;d.classList.add("radio-mark-checked"),d.style.borderColor=p,d.style.outlineColor=p,e.getHostElement().style.setProperty("--selectedColor","".concat(p)),d.style.setProperty("--borderColor","".concat(p))}else d.style.borderColor=null,d.style.outlineColor=null,e.getHostElement().style.setProperty("--borderColor","rgba(0,0,0, 0.7)");return i.appendChild(l),i}),ye(e,"syncRadioState",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,"updateGap",function(){var t=e.getElement("listContainer");t&&[].concat(ce(t.querySelectorAll(".radio-mark-container")),ce(t.querySelectorAll(".radio-mark-shadow")),ce(t.querySelectorAll(".radio-mark"))).forEach(function(t){e.updateElementSizeStyles(t,e.markerStyleAttributes)})}),ye(e,"updateElementSizeStyles",function(t,e){t.style.setProperty("--inputSize",e.inputSize),t.style.setProperty("--inputToTextGapSize",e.inputToTextGapSize)}),ye(e,"applyStyleToOptionLabels",function(){var n=e.getElement("input"),o=N(n,t.radioGroupButtonMenuStyles);n.querySelectorAll(".radio-box-label").forEach(function(t){k(t,o)})}),ye(e,"applyStylesToMarkers",function(){e.getElement("input").querySelectorAll(".radio-mark").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,"applyStylesToMarkersShadows",function(){e.getElement("input").querySelectorAll(".radio-mark-shadow").forEach(function(t){e.setStylesVariables(t)})}),ye(e,"unselectButtons",function(t,n){t.querySelectorAll(".radioGroupItem").forEach(function(t){if(t.getAttribute("name")!==n){var o=t.querySelector(".radio-mark");o.classList.remove("radio-mark-checked"),o.style.borderColor=null,o.style.outlineColor=null;var r=t.querySelector('input[type="radio"]');e.syncRadioState(r,!1)}})}),ye(e,"setSelectedBorderColor",function(t){var n=e.markerStyleAttributes.selectedColor;t.style.borderColor="".concat(n),t.style.outlineColor="".concat(n),t.style.setProperty("--borderColor","".concat(n))}),ye(e,"setBorderTopWidth",function(t){var n=e.markerStyleAttributes.borderTopWidth;t.style.setProperty("--borderTopWidth","".concat(n))}),ye(e,"createContent",function(){var n,o=e.getElement("input"),r=N(o,t.radioGroupButtonMenuStyles),i=(null===(n=e.registeredControl)||void 0===n?void 0:n.getValue())||null,s=e.getOptions(),l=document.createElement("div");l.classList.add("radio-buttons-list"),l.setAttribute("cl-element","listContainer"),Object.entries(s).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,r,i,s,l=[],a=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return l}}(t,e)||de(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],o=s[n],a=(null==i?void 0:i.id)===n,c=e.createRadioGroupItemComponent(o,a,r);c.classList.add("radioGroupItem"),c.setAttribute("name",o.id),e.setBorderTopWidth(c),e.isStaticRenderMode()&&c.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault();var o=c.querySelector(".radio-mark");o.classList.add("radio-mark-checked"),e.setSelectedBorderColor(o),e.registeredControl.setValue({id:n,exportId:s[n].exportId}),e.unselectButtons(l,n)}),l.appendChild(c)}),I({element:o,html:""}),o.append(l)}),ye(e,"registerControl",function(t){var n=t.querySelector(".radio-group-tooltip");e.registeredControl=e.createControlWithValidation([],{tooltipElement:n})}),ye(e,"handleSafariHeightIssue",function(){var t=e.getHostElement();t.style.height&&"auto"!==t.style.height||(t.style.height="fit-content")}),ye(e,"manifest",ie),ye(e,"registeredControl",void 0),ye(e,"controlExportId",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=be(fe(t.prototype),"connectedCallback",n);return"function"==typeof o?function(t){return o.apply(n,t)}:o}(t,0,this)([]);var n=this.getRootElement(),o=this.getProps();this.controlExportId=o.control.integrationName,this.registerControl(n),this.observeProps(function(t,o){var r=e.getEnvironment();M(o,r,n,".label-with-radio-group-container"),j(o,r,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.setMarkerStyleAttributes(),e.createContent(),e.applyAutoAdaptiveStyles(o.adaptiveStyles,o.styles),e.handleSafariHeightIssue(),e.applyStylesToMarkers(),e.applyStylesToMarkersShadows(),e.applyStylesToOptionWrapper(),e.updateGap();var i=n.querySelector(".label-with-radio-group-container");if(i){var s,l=!(null===(s=o.control)||void 0===s||null===(s=s.validation)||void 0===s||!s.required);i.setAttribute("aria-required",String(l))}}),this.observeShared(function(t,n){e.applyStyleToOptionLabels(e.getProps(),e.getEnvironment())}),this.observeEnvironment(function(t,o){var r=e.getProps();e.setMarkerStyleAttributes(),e.applyStylesToMarkers(),e.applyStylesToMarkersShadows(),M(r,o,n,".label-with-radio-group-container"),j(r,o,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.handleSafariHeightIssue(),e.applyStyleToOptionLabels(r,o),e.updateGap()})}}])}();ye(Se,"define",{name:"sys-radio-group",model:ie.name,manifest:ie}),ye(Se,"componentStyle",'\n .main-container {\n height: 100%;\n }\n \n .label-with-radio-group-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 .radio-buttons-list {\n width: 100%;\n height: auto;\n text-align: inherit;\n }\n \n .radio-group-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 .radio-group-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 .radio-group-content {\n display: flex;\n /*align-items: center;*/\n /*position: absolute;*/\n height: 100%;\n width: 100%;\n /*padding: 0 35px 0 20px;*/\n cursor: pointer;\n border: 1px solid transparent;\n /*TODO*/\n /*padding: 10px;\n margin: -10px;*/\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 .radio-mark-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 .radio-mark-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0px;\n height: 0px;\n }\n \n .radio-mark-container .radio-box-label {\n display: block;\n }\n \n /* Create a custom radio */\n .radio-mark {\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: 2px;\n border-radius: 50px;\n box-shadow: 0 0 0 var(--borderTopWidth) var(--borderTopColor);\n outline: none;\n /*border-style: var(--borderStyle);\n border-color: var(--borderTopColor);\n border-width: var(--borderTopWidth);*/\n /*outline-width: var(--borderTopWidth);\n outline-color: var(--borderTopColor);\n outline-style: var(--borderStyle);*/\n z-index: 2;\n background: var(--background, rgb(256, 256, 256));\n backdrop-filter: var(--backdropFilter);\n }\n \n .radio-mark-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 border-radius: 50px;\n z-index: 1;\n }\n \n .radio-mark:after {\n content: "";\n position: absolute;\n display: none;\n }\n \n .radio-mark-checked {\n box-shadow: 0 0 0 var(--borderTopWidth) var(--selectedColor);\n }\n \n .radio-mark-checked:after {\n display: block;\n }\n \n .radio-mark-container .radio-mark:after {\n width: var(--inputSize, 22px);\n height: var(--inputSize, 22px);\n border-radius: 50px;\n border-width: 1px;\n border-style: solid;\n background: var(--borderColor);\n border-color: var(--borderColor);\n scale: 0.8;\n }\n \n .radio-box-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 ~ .radio-mark.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 ~ .radio-mark.radio-mark-checked.focus-outline-defined {\n outline-color: var(--selectedColor);\n }\n'),ye(Se,"componentTemplate",'\n<div class="main-container">\n <div class="label-with-radio-group-container" role="radiogroup" aria-labelledby="cl-radio-group-label">\n <div cl-element="label"\n cl-inline-edit="content, label"\n class="label"\n id="cl-radio-group-label">\n </div>\n <div class="radio-group-with-tooltip">\n <div cl-element="input" class="radio-group-content">\n </div>\n <div class="radio-group-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(Se,"radioGroupButtonMenuStyles",["color","font-family","font-size","letter-spacing","text-shadow","font-weight","line-height","text-align"]),ye(Se,"defaultMarkerStyleAttributes",le);export{Se as default};window.clComponentClass_SysRadioGroupComponent=Se;
|
|
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 r=Array.prototype.concat,i=Array.prototype.slice,s=function(t){for(var e=[],n=0,s=t.length;n<s;n++){var l=t[n];o(l)?e=r.call(e,i.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 u in a)c.call(a,u)&&(d[a[u]]=u);var p={to:{},get:{}};function h(t,e,n){return Math.min(Math.max(e,t),n)}p.get=function(t){var e,n;return"hsl"===t.substring(0,3).toLowerCase()?(e=p.get.hsl(t),n="hsl"):(e=p.get.rgb(t),n="rgb"),e?{model:n,value:e}:null},p.get.rgb=function(t){if(!t)return null;var e,n,o,r=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],n=0;n<3;n++){var i=2*n;r[n]=parseInt(e.slice(i,i+2),16)}o&&(r[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],n=0;n<3;n++)r[n]=parseInt(e[n]+e[n],16);o&&(r[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)r[n]=parseInt(e[n+1],0);e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:c.call(a,e[1])?((r=a[e[1]])[3]=1,r):null:null;for(n=0;n<3;n++)r[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?r[3]=.01*parseFloat(e[4]):r[3]=parseFloat(e[4]))}for(n=0;n<3;n++)r[n]=h(r[n],0,255);return r[3]=h(r[3],0,1),r},p.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},p.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]+")"},p.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=p,g={},b={};for(const t of Object.keys(g))b[g[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,r=Math.min(e,n,o),i=Math.max(e,n,o),s=i-r;let l,a;i===r?l=0:e===i?l=(n-o)/s:n===i?l=2+(o-e)/s:o===i&&(l=4+(e-n)/s),l=Math.min(60*l,360),l<0&&(l+=360);const c=(r+i)/2;return a=i===r?0:c<=.5?s/(i+r):s/(2-i-r),[l,100*a,100*c]},f.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,o=t[2]/100;let r,i,s;if(0===n)return s=255*o,[s,s,s];r=o<.5?o*(1+n):o+n-o*n;const l=2*o-r,a=[0,0,0];for(let t=0;t<3;t++)i=e+1/3*-(t-1),i<0&&i++,i>1&&i--,s=6*i<1?l+6*(r-l)*i:2*i<1?r:3*i<2?l+(r-l)*(2/3-i)*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],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),o=y(v[e[r].parent][r],o),r=e[r].parent;return o.conversion=n,o}const S={};Object.keys(v).forEach(t=>{S[t]={},Object.defineProperty(S[t],"channels",{value:v[t].channels}),Object.defineProperty(S[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 r=o.length,i=0;i<r;i++){const r=o[i],s=e[r];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,n.unshift(r))}}return e}(t),n={},o=Object.keys(e);for(let t=o.length,r=0;r<t;r++){const t=o[r];null!==e[t].parent&&(n[t]=E(t,e))}return n}(t);Object.keys(e).forEach(n=>{const o=e[n];S[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),S[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 O=S,T=["keyword","gray","hex"],C={};for(const t of Object.keys(O))C[[...O[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 O))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=O[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=O[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:r}=O[this.model],i=[];for(n=0;n<r.length;n++)i.push(t[r[n]]);this.color=P(i)}if(A[this.model])for(o=O[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(x(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(O)){if(T.includes(t))continue;const{channels:e}=O[t];R.prototype[t]=function(...e){return this.model===t?new R(this):e.length>0?new R(e,t):new R([..._(O[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 x(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function _(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 w=R;function I(t){const{element:e,html:n,appendHtml:o}=t,r=function(t){if(null==t)return"";if("string"!=typeof t)return String(t);if(""===t)return"";if(!/<\/?([a-zA-Z][a-zA-Z0-9]*)\b[^>]*>/.test(t))return t;const e=(new DOMParser).parseFromString(t,"text/html");return e.querySelectorAll('script, style, link[rel="stylesheet"], meta[http-equiv]').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+=r:e.innerHTML=r}function k(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function N(t,e){const n=window.getComputedStyle(t);return e.reduce((t,e)=>(t[e]=n.getPropertyValue(e),t),{})}function L(t,e){var n,o;let r;return t.styles&&(r=null===(n=t.styles.find(t=>"label"===t.element))||void 0===n?void 0:n.params),t.adaptiveStyles&&!r&&(r=null===(o=t.adaptiveStyles[e].find(t=>"label"===t.element))||void 0===o?void 0:o.params),r}function M(t,e,n,o){var r;const i=n.querySelector(o),s=n.querySelector(".label"),l=L(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 r=(o.getAttribute("aria-labelledby")||"").split(" ").filter(Boolean);r.includes(t.id)||(r.push(t.id),o.setAttribute("aria-labelledby",r.join(" ")))}(s,i),l&&s&&(I({element:s,html:(null===(r=t.content)||void 0===r?void 0:r.label)||""}),"TOP"===l.position?(i.style.flexDirection="column",i.style.alignItems="unset",k(s,{marginRight:"0",marginBottom:`${l.margin}px`})):(i.style.flexDirection="row",i.style.alignItems="center",k(s,{marginRight:`${l.margin}px`,marginBottom:"0"})),l.enabled?s.style.display="":s.style.display="none")}function j(t,e,n,o,r){const i=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),r=null==n?void 0:n.styleAttributes;(null==r?void 0:r.width)&&(o=r)}return o}(t,e);if(!i)return;const s=L(t,e),l=r&&s&&s.enabled&&"TOP"===s.position?r.getBoundingClientRect().height+(s.margin||0):0;i.width&&(i.width.includes("100%")?(o.style.width="100%",n.style.width=i.width):n.style.width="auto"),i.height&&(i.height.includes("100%")?(o.style.height="100%",n.style.height=i.height):n.style.height=`${parseFloat(i.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=w(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:r,marginLeft:i,marginRight:s}=window.getComputedStyle(t);return{width:e+parseInt(i,10)+parseInt(s,10),height:n+parseInt(r,10)+parseInt(o,10)}}function B(t,e,n,o,r){switch(t.position){case"top":return{left:`${W(e,n,o,r)}px`,top:t.availableSpaceAboveTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"bottom":return{left:`${W(e,n,o,r)}px`,bottom:t.availableSpaceBelowTriggerElem-t.contentHeight-t.verticalOffset+"px"};case"left":return{left:t.availableSpaceToTheLeftSideOfTheTrigger-e.width-t.contentWidth-t.horizontalOffset+"px",top:`${V(0,t)}px`};case"right":return{right:t.availableSpaceToTheRightSideOfTheTrigger-t.contentWidth-t.horizontalOffset+"px",top:`${V(0,t)}px`}}}function W(t,e,o,r){let i=o?t.x+t.width/2-e.width/2:t.x;return i<0&&(i=0),i+e.width>n.width(r)&&(i-=i+e.width-n.width(r)),i}function V(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",G=Symbol.for("cl-tooltip-text-owner"),$=`\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),I({element:e,html:$}),t.head.appendChild(e)}(o=o||document);const r=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(r),r.style.visibility="visible",r[G]=t,function(t){const{triggerElement:e,tooltipElement:o,offset:r=10,htmlDocumentObject:i}=t,s=function(t,e,o,r,i,s){const l=function(t,e,o,r,i){const s=function(t,e,o,r){const i=n.width(r),{right:s}=t.getBoundingClientRect(),l=i-o-s-n.scrollbarWidth(r);return{horizontalOffset:o,contentWidth:U(e).width,availableSpaceToTheLeftSideOfTheTrigger:s-o,availableSpaceToTheRightSideOfTheTrigger:l}}(t,e,o,i),l=function(t,e,o,r){const i=n.height(r),{top:s,bottom:l}=t.getBoundingClientRect();return{verticalOffset:o,contentHeight:U(e).height,availableSpaceAboveTriggerElem:s-o,availableSpaceBelowTriggerElem:i-l-o}}(t,e,o,i);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"),r&&c[r]&&(a=r),"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,r,s=s||document);return function(t,e){const{marginBottom:n,marginTop:o}=window.getComputedStyle(e);if("top"===t.position)k(e,{"margin-top":`${parseInt(o,10)+parseInt(n,10)}px`}),k(e,{"margin-bottom":"0px"});else if("bottom"===t.position)k(e,{"margin-bottom":`${parseInt(n,10)+parseInt(o,10)}px`}),k(e,{"margin-top":"0px"});else{const t=(parseInt(n,10)+parseInt(o,10))/2+"px";k(e,{"margin-top":t,"margin-bottom":t})}}(l,e),{coordinates:B(l,t.getBoundingClientRect(),e.getBoundingClientRect(),i,s),position:l.position}}(e,o,r,"top",!0,i);o.setAttribute("cl-tooltip-position",s.position),k(o,s.coordinates)}({triggerElement:t,tooltipElement:r,htmlDocumentObject:o})}function Q(t,e){const n=(e=e||document).getElementById(H),o=n&&n[G];!n||!o||o!==t&&o.isConnected||(n.remove(),function(t){const e=(t=t||document).head.querySelector(`#${F}`);e&&e.remove()}(e))}function q(t){return[t.getConfig("appearanceLanguage"),t.getConfig("browserLanguage"),"en"].filter(t=>!!t)}function K(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 Y="cl-";function J(t){return Y+t}function Z(t){return"cl-"+t}const X="VIEW",tt="CONTAINER",et="INPUT",nt="BUTTON",ot="CONSENT",rt="COLUMN";var it,st;(st=it||(it={})).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=it;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(),r=o.getAttribute(Z("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,r)}),this.listener=t=>{const e=t.composedPath().filter(t=>t instanceof HTMLElement&&t.getAttribute(Z("type")));let n=0;for(;e[n]&&e[n].getAttribute(Z("id"))!==r;){let t=e[n].getAttribute(Z("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 r,i=!0,s=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(n){e[n]=t[n]&&function(e){return new Promise(function(o,r){!function(t,e,n,o){Promise.resolve(o).then(function(e){t({value:e,done:n})},e)}(o,r,(e=t[n](e)).done,e.value)})}}}(this.eventsQueue);!(t=(r=await s.next()).done);i=!0){o=r.value,i=!1;const{event:t}=o;for(const e of this.actions)if(!await e.execute(this.state.getState(),t))break}}catch(t){e={error:t}}finally{try{i||t||!(n=s.return)||await n.call(s)}finally{if(e)throw e.error}}this.eventsQueue=[]}postpone(){this.postponed=!0}release(){this.postponed=!1,this.execute()}destroy(){this.listener&&this.targetElements.length&&(this.targetElements.forEach(t=>{t.removeEventListener("click",this.listener)}),this.targetElements=[])}}dt.IGNORING_VIEW_ENTRY_TYPES=[nt,ot,et],(ct=at||(at={})).CLICK="CLICK",ct.COMPONENT_EVENT="COMPONENT_EVENT";class ut{constructor(t,e){this.config=t,this.actions=e,this.componentEmitterListener=null}activate(t,e,n){var o;const r=null===(o=n())||void 0===o?void 0:o.getAttribute(Z("id"));this.actions.forEach(t=>{var e;return null===(e=t.setInitiatorComponentId)||void 0===e?void 0:e.call(t,r)}),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 pt{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 ut(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 gt=mt,bt=(t,e,n,o)=>{const r=EventTarget.prototype,{addEventListenerBase:i,addEventListener:s}=r;(i||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 vt extends gt{constructor(t,e){super(),this.config=e,this.handleMobileBreakpoint(t.getShared().mobileBreakpointWidth),t.on("ENVIRONMENT_UPDATE",({isMobileEnv:t})=>{this._isMobile=t,this.emit(vt.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(vt.changeEventName,this._isMobile)}isMobile(){return this.config.forceMobileEnv||this._isMobile}listener(t){this._isMobile=t.matches,this.emit(vt.changeEventName,this._isMobile)}destroy(){super.destroy(),this.mediaQueryList.removeListener(this.listener.bind(this))}}vt.changeEventName="CHANGE";const yt=vt;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 St=Et;var Ot,Tt;(Tt=Ot||(Ot={})).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 r,i,s;const l=null===(i=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.handlers)||void 0===i?void 0:i.find(t=>"CLICK"===t.type);l&&(null===(s=l.actions)||void 0===s?void 0:s.length)&&(e.style.cursor="pointer"),t!==X&&t!==tt&&t!==rt||(e.style.display=o===Ot.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 At{static log(t){window.scriptLog09u8y9?scriptLog09u8y9("ERROR","RUNTIME_ERROR",new Error(t)):console.error(t)}}class Rt{constructor(t,e,n,o,r,i){this.hostElement=e,this.documentModel=t,this.getSharedCb=n,this.getPropsCb=o,this.getEnvCb=r,this.httpClient=i,this.schemaSubscription=null,this.themeSubscription=null,this.envUrlMaps={desktop:new Map,mobile:new Map}}parseBackground(t){const e=String(t||"");if(e.includes("url")){const[t,n]=e.split("(")[1].split(")");return{url:t.replace(/['"]+/g,""),positionOptions:n.replace(";","")}}return{url:null,positionOptions:null}}apply(t){const e=this.getPropsCb();return e.backgroundDynamicInlineSVGElements[t].forEach(n=>{var o,r,i,s,l;const a=null===(r=null===(o=e.adaptiveStyles)||void 0===o?void 0:o[t])||void 0===r?void 0:r.find(t=>t.element===n),c=(null===(i=e.styles)||void 0===i?void 0:i.find(t=>t.element===n))||{},d=(null===(s=null==c?void 0:c.styleAttributes)||void 0===s?void 0:s.background)||(null===(l=null==a?void 0:a.styleAttributes)||void 0===l?void 0:l.background),u=this.parseBackground(d);u.url&&this.envUrlMaps[t].set(n,{originalSVGResourceURL:u.url,inlineSvgString:null,positionOptions:u.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 r;o=o.replace(`var(--${r=n,`cl-schema-${r}`})`,e[n])}),`url('data:image/svg+xml,${encodeURIComponent(o)}')${t.positionOptions}`}off(){var t,e;null===(t=this.schemaSubscription)||void 0===t||t.off(),null===(e=this.themeSubscription)||void 0===e||e.off()}}const xt=new class{execute({url:t,method:e="GET",body:n=null,headers:o,abortSignal:r}){const i={method:e,headers:Object.assign({"Content-Type":"text/plain"},o||{}),credentials:"same-origin",body:null,signal:r};return n&&(i.body="string"==typeof n?n:JSON.stringify(n)),fetch(t,i)}};function _t(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 wt{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 It;!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"}(It||(It={}));const kt=It;class Nt{constructor(t,e,n){this.getPending=()=>this.counters.pending,this.onCounterStateUpdate=t=>{0===t&&this.systemEventEmitter.emit(kt.COMPONENT_RESOURCES_LOADED,this.componentId)},this.onResourceLoadFailure=t=>{this.isStaticEntryModule?this.systemEventEmitter.emit(kt.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 wt(this.onCounterStateUpdate)}}}const Lt=(...t)=>{let e=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[]}),{});return{get:t=>e[t],clear:()=>Lt(...t)}},Mt=Lt,jt="props",Dt="shared",Ut="environment";function Bt(t,e,n,o){const r=t=>{let i=function(t){return t instanceof DocumentFragment||(null==t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE?t.host||null:t}(t);return i&&(o&&"function"==typeof o?o(i.getAttribute(e)):(null===(s=null==i?void 0:i.getAttribute)||void 0===s?void 0:s.call(i,e))===n)?i:i&&i.parentNode&&r(i.parentNode)||null;var s};return r(t)}const Wt="SUBMIT";function Vt(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 Gt(t=[]){return t.map(t=>Object.assign(Object.assign({},t),{styleAttributes:Object.assign({},t.styleAttributes)}))}const $t=Object.getPrototypeOf(document.createEvent("CustomEvent")).constructor;class zt extends $t{constructor(t,e={},n){super(t,Object.assign(Object.assign({},n),{detail:e}))}}var Qt,qt,Kt;function Yt(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={})),(Kt=qt||(qt={})).STATIC="STATIC",Kt.DATA_LAYER="DATA_LAYER",Kt.URL_QUERY_PARAMS="URL_QUERY_PARAMS",Kt.JS_API_VARIABLE="JS_API_VARIABLE",Kt.COOKIE="COOKIE",Kt.LOCAL_STORAGE="LOCAL_STORAGE";class Jt{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===qt.STATIC)return Yt(null==n?void 0:n.value);const r=t.getSource(e);if(!r)return;const i=r.getValue(o);return Yt("function"==typeof(null==i?void 0:i.processor)?i.processor(r,Object.assign({id:o},n)):null==i?void 0:i.value)}(this.registry,t.sourceType,t.config,e);if(void 0===n)return;const o=n.trim();return""===o?void 0:o}}class Zt extends HTMLElement{constructor(){var t;super(),this.skipGameBlur=!0,this.isAutofillValidated=!1,this.validatedAutofillValue=void 0,this.construct=()=>{let t;const e=this.getAttribute(Z("id")),n=this.getWidgetContainerNode();if(!n)throw new Error("Widget container not found in construct");const o=n.closest(`[${Z("widget-id")}]`);let r;o&&(r=o.getAttribute(Z("widget-id")));let i=new zt("cl-props-request",{nodeName:this.nodeName,path:this.getAttribute(Z("path")),id:e,widgetId:r},{bubbles:!0,composed:!0});this.dispatchEvent(i),t=i.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 gt,this.componentResourceManager=new Nt(this.model.id,this.services.eventEmitter,this.isStaticRenderMode()),this.mergeTagsProcessor=this.services.mergeTagsProcessorFactory.create(),this._actionFactory=this.services.actionFactory,this._handlerFactory=new pt(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=Z("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(),xt),this.colorSchemaListener.apply(this.getEnvironment()).then(()=>{this.subscriptions.push(this.colorSchemaListener.on())})),this.prevProps.adaptiveStyles&&this.subscriptions.push(this.resizeListener.on(yt.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(`[${Z("element")}]`)).filter(t=>!t.hasAttribute(Z("component")))],this.getElement=(t,e)=>this.getElements().find(n=>e?n.getAttribute(Z("element"))===t&&n.id===e:n.getAttribute(Z("element"))===t),this.applyAutoAdaptiveStyles=(t,e)=>{if(!t&&!e)return;const n=this.getElements();if(!n.length)return;const o=function(t,e){if(!e)return t||{desktop:[],mobile:[]};const n=JSON.parse(JSON.stringify(t||{desktop:[],mobile:[]}));return e.forEach(t=>{const e=t.element;let o=!1,r=!1;n.desktop&&n.desktop.forEach(n=>{n.element===e&&(Vt(n,t),o=!0)}),n.mobile&&n.mobile.forEach(n=>{n.element===e&&(Vt(n,t),r=!0)}),!o&&n.desktop&&n.desktop.push(JSON.parse(JSON.stringify(t))),!r&&n.mobile&&n.mobile.push(JSON.parse(JSON.stringify(t)))}),n}(t,e),r=Z("type"),i="element-styles";let s=this.getRootElement().querySelector(`style[${r}="${i}"]`);s||(s=document.createElement("style"),s.setAttribute(r,i),this.getRootElement().appendChild(s)),I({element:s,html:""}),n.forEach(t=>{let e=t.getAttribute(Z("element"));const n=this.getEnvironment();let r=Ht(o,n,e);if(r){if(this.resizeListener.isMobile()){const t=Ht(o,"desktop",e);t&&(r=Object.assign(Object.assign({},r),{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),r.styleAttributes)}))}this.applyStylesToElement(t,this.applySharedClassesToElementModel(r),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,r;const i=[];"host"===(e=Zt._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===(r=this.model.props.backgroundDynamicInlineSVGElements)||void 0===r?void 0:r.mobile))&&(this.colorSchemaListener.apply(this.getEnvironment()),i.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],bt(t,"load",()=>{this.componentResourceManager.getPending().decrement()}),bt(t,"error",()=>{this.componentResourceManager.onResourceLoadFailure(t.src),this.isUpdatingRenderMode&&this.componentResourceManager.getPending().decrement()})}const a=Object.assign(Object.assign({},e),{styleAttributes:_t(e.styleAttributes,i)});if(St.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(),r=`flip-up-animation-${e.element}`;let i=this.getRootElement().querySelector(`#${r}`);i||(i=document.createElement("style"),i.id=r,t.appendChild(i)),I({element:i,html:`\n ${n}::before {\n content: '';\n background: ${o.background};\n position: absolute;\n left: 0;\n top: ${t.getBoundingClientRect().height}px;\n height: ${t.getBoundingClientRect().height}px;\n width: 100%;\n z-index: -10;\n }\n ${n}:hover::before {\n top: 0;\n transition: 0.3s;\n }\n `}),o=Object.assign(Object.assign({},e.hoverStyleAttributes),{background:"transparent",position:"relative"})}o.borderTopWidth&&"0px"!==o.borderTopWidth||delete o.borderTopColor,o.borderBottomWidth&&"0px"!==o.borderBottomWidth||delete o.borderBottomColor,o.borderLeftWidth&&"0px"!==o.borderLeftWidth||delete o.borderLeftColor,o.borderRightWidth&&"0px"!==o.borderRightWidth||delete o.borderRightColor,this._addStylesToStyleElement(n,e.element,o,`:not(.${Z("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(Y)).forEach(t=>{var r;const i=null===(r=e.textClasses)||void 0===r?void 0:r[t];if(!i)return;let s=function(t,e){return{styleAttributes:Object.assign(Object.assign({},t.styleAttributes),e?t.mobileStyleAttributes:{}),placeholderStyleAttributes:Object.assign(Object.assign({},t.placeholderStyleAttributes),e?t.mobilePlaceholderStyleAttributes:{})}}(i,n);s.styleAttributes.fontFamily||(i.isHeader&&e.headerFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.headerFontFamily})})),!i.isHeader&&e.textFontFamily&&(s=Object.assign(Object.assign({},s),{styleAttributes:Object.assign(Object.assign({},s.styleAttributes),{fontFamily:e.textFontFamily})}))),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="",r)=>{const i=Object.keys(n).reduce((t,e)=>t+` ${Pt.camelCaseToDashCase(e)}: ${n[e]}${r?" !important;":";"}`,"");I({element:t,html:`[${Z("element")}="${e}"]${o} { ${i} }`,appendHtml:!0})},this._addFontStylesToStyleElement=(t,e)=>{I({element:t,html:`[cl-type] {font-family:${e.textFontFamily||"inherit"}}`,appendHtml:!0})},this._addLinkColor=(t,e)=>{var n,o,r,i;e.linkColor&&I({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)&&I({element:t,html:`a {color: ${null===(o=e.linkParams)||void 0===o?void 0:o.color}}, a:visited {color: ${null===(r=e.linkParams)||void 0===r?void 0:r.color}}`,appendHtml:!0}),(null===(i=e.linkParams)||void 0===i?void 0:i.removeUnderline)&&I({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!==J("hovered")&&t!==J("focused")).forEach(e=>{e.startsWith(Y)&&t.classList.remove(e)});const n=((t.getAttribute("class")||"")+" "+e.classes).trim();t.setAttribute("class",n)},this.getParentComponent=()=>Bt(this.parentNode,Z("element"),"host"),this.getWidgetContainerNode=()=>{const t=null==this?void 0:this.getAttribute(Z("path"));return 1===(null==t?void 0:t.split(",").length)?this.parentNode:Bt(this.parentNode,Z("path"),void 0,t=>1===(null==t?void 0:t.split(",").length))},this.getWidgetLanguages=()=>q(this.services.config),this.getPreferredWidgetLanguage=()=>this.getWidgetLanguages()[0],this.getTranslationsMap=t=>K(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 Jt(this.services.config,this.services.context.getRegistry()).resolveValue(null===(t=e.props.control)||void 0===t?void 0:t.autofill,e.id)},this.getValidatedAutofillValue=()=>this.isAutofillValidated?this.validatedAutofillValue:void 0,this.syncAutofillContextRecord=(t,e)=>{this.isAutofillValidated=!0,this.validatedAutofillValue=t?e:void 0,t&&this.services.context.updateRecord(this.getModel().id,{value:e})},this.addContextRecord=()=>{var t,e;const n=this.getModel();this.services.context.addRecord(n.id,{recordKey:n.id,id:n.props.control.name,label:this.getContextRecordLabel(n.props),value:null!==(t=this.getValidatedAutofillValue())&&void 0!==t?t:n.props.control.defaultValue||"",viewIndex:null===(e=n.path)||void 0===e?void 0:e[0],sourceId:"FORM",initialData:{fallbackValue:"",exampleValue:this.getContextRecordExampleValue(n.props)}})},this.getContextRecordLabel=t=>{var e,n,o,r,i,s;const 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===(r=null===(o=null===(n=t.adaptiveStyles)||void 0===n?void 0:n.desktop.find(t=>"label"===t.element))||void 0===o?void 0:o.params)||void 0===r?void 0:r.enabled)){const e=(new DOMParser).parseFromString(t.content.label,"text/html");return this.capitalizeFirstLetter(e.body.textContent||"")}return(null===(i=t.content)||void 0===i?void 0:i.placeholder)?this.capitalizeFirstLetter(t.content.placeholder):(null===(s=t.control)||void 0===s?void 0:s.integrationName)?this.capitalizeFirstLetter(t.control.integrationName).replace(new RegExp("_","g")," "):void 0},this.capitalizeFirstLetter=t=>t.charAt(0).toUpperCase()+t.slice(1),this.getContextRecordExampleValue=t=>{var e;switch(null===(e=t.control)||void 0===e?void 0:e.name){case"email":return"myemail@example.com";case"first_name":return"Maria";case"last_name":return"Taylor";default:return this.getContextRecordLabel(t)}},this.completeSubmitAction=t=>{const e=t||{},n=this.services.actionRegister.getRegisteredActions().find(t=>t.category===Wt);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()}}Zt._resolveTogglableStylesForElementModel=t=>{const e=Object.assign({},t);return Object.keys(e).forEach(t=>{t.toLowerCase().includes("styleattributes")&&(e[t]=Zt._resolveTogglableStyles(e[t]))}),e},Zt._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=Zt,te=Symbol("required");var ee=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};function ne(){}const oe="pending",re="valid",ie="invalid";class se extends Xt{constructor(){super(...arguments),this._createControl=(t={},...e)=>{const{element:n}=t,o=ee(t,["element"]),r=this.getProps(),i=this.getModel(),s=Object.assign(Object.assign(Object.assign({},r.control),{componentId:i.id,viewIdx:i.path[0]}),o),l=this.getAutofillValue();void 0!==l&&(s.defaultValue=l);const a=this.services.form,c=[s,n,...e],d=a.hasControl(r.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:r=ne,invalidCallback:i=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 u=this.getProps().control.validation,p=(null==u?void 0:u.validator)?a[u.validator]:void 0,h=t.some(t=>t[te]),m=!!(null==u?void 0:u.required),g=m||h,b=[...t];m&&!h&&b.unshift(function(t="REQUIRED"){const e=e=>{let n;switch(typeof e){case"string":n=e&&e.length>0;break;case"boolean":n=e;break;case"number":n=!isNaN(e);break;default:n=!!e}return{isValid:n,errorKey:n?null:t}};return e[te]=!0,e}()),p&&b.push(p);const f=this._prepareAsyncValidators(b),v=this._createControl({element:n,validation:{validator:"custom",required:g}},void 0,f);return c&&this._handleControlStatusChange(Object.assign({control:v,element:l,tooltipElement:o,configService:this.services.config,i18n:this.manifest.i18n,validCallback:r,invalidCallback:i,pendingCallback:s},d)),v},this._prepareAsyncValidators=(t=[])=>t.reduce((t,e,n)=>"function"!=typeof e?(console.warn(`Validator ${n} should be a function, so it will be skipped`),t):(t[`custom_${n}`]=async(...t)=>{const n=await Promise.resolve(e(...t));return"object"==typeof n&&"isValid"in n?Object.assign(Object.assign({},n),{errorKey:n.isValid?null:n.errorKey}):{isValid:!1,errorKey:"INVALID_VALIDATOR_RESPONSE"}},t),{}),this._handleControlStatusChange=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=re;break;default:t=ie}this._handleValidationStatus(n,t)})},this._handleValidationStatus=(t,e)=>{const{control:n,element:o,tooltipElement:r,validCallback:i,invalidCallback:s,errorMessageMapper:l,pendingCallback:a}=t,c=this.services.config,d=this.manifest.i18n;switch(e){case re:(function(t,e,n){t&&(t.classList.remove("invalid"),t.setAttribute("aria-invalid","false")),e&&(e.style.visibility="hidden",Q(e,n))})(o,r,this.htmlDocumentObject),i&&i();break;case ie:if(n.touched){const t=n.getErrorKeys();if(!t)break;const e=t[0];let i=function(t,e,n){const o=K(e,q(t));if(!o)return n;const r=o.translations,i=Object.keys(r).find(t=>t.includes(n));return i?r[i]:n}(c,d,e);l&&(i=l(e,i)),function(t,e,n,o){o=o||document,t&&(t.classList.add("invalid"),t.setAttribute("aria-invalid","true")),e&&(e.style.visibility="visible",e.onmouseenter=()=>z(e,n,o),e.onmouseleave=()=>Q(e,o))}(o,r,i,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,r,this.htmlDocumentObject),a&&a())}}}}function le(t){return Object.values(Ft).map(e=>({type:"GROUP",propPath:["adaptiveStyles",e],children:t}))}const ae={name:"SysRadioGroupComponent",componentType:"MULTIPLE_INPUT",version:"1.0.0",mappingTypes:["SELECT"],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:le([{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:"RADIO"}},{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:"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}}]},autoContrast:[{slave:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","selectedColor"]},master:{element:"input",propPath:["styles","[element=input]","markerStyleAttributes","background"]},enabledPropPath:["content","selectedColorContrastEnabled"]}],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"]}}]},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":"שדה נדרש","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:"radioGroup",integrationName:"radioGroup",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))",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderTopWidth:"1px",borderTopColor:"var(--cl-schema-accent, rgb(68, 68, 68))",borderBottomWidth:"1px",borderBottomColor:"var(--cl-schema-accent, rgb(68, 68, 68))",borderLeftWidth:"1px",borderLeftColor:"var(--cl-schema-accent, rgb(68, 68, 68))",borderRightWidth:"1px",borderRightColor:"var(--cl-schema-accent, rgb(68, 68, 68))",boxShadow:"none",background:"rgba(255, 255, 255, 1)"}},{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-accent, 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]:Gt(ce)}),{desktop:[],mobile:[]}))},metaDescription:{icon:"/SysRadioGroupComponent/assets/img/component-icon.svg",label:{en:"Radio",ru:"Радио",uk:"Радіо",es:"Radio",fr:"Radio",de:"Radio",it:"Radio",pt:"Rádio",ro:"Radio",bg:"Радио",cs:"Rádio",el:"Ραδιόφωνο",nl:"Radio",pl:"Radio",sv:"Radio",tr:"Radyo",ar:"الراديو",zh:"电台",da:"Radio",he:"רדיו",fi:"Radio",hi:"रेडियो",hr:"Radio",hu:"Választógomb",id:"Radio",ja:"ラジオ",ko:"라디오",no:"Radio",sk:"Rádio",sl:"Radio",sr:"Radio"}},syncEnabled:!0,stylesImitationEnabled:!0,showComponentOptionsPropertyPaneOnInsert:!0,showIntegrationFieldMappingPropertyPaneOnInsert:!0};var ce;const de={inputSize:"22px",inputToTextGapSize:"13px",selectedColor:"rgba(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)",boxShadow:"none",textShadow:"none",outline:"none",border:"1px solid",background:"rgb(255, 255, 255)",backdropFilter:"none"};function ue(t){return ue="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},ue(t)}function pe(t){return function(t){if(Array.isArray(t))return me(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||he(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(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}}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 ge(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 be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ge(Object(n),!0).forEach(function(e){Oe(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(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 ve(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ve=function(){return!!t})()}function ye(){return ye="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 r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},ye.apply(null,arguments)}function Ee(t){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ee(t)}function Se(t,e){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Se(t,e)}function Oe(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"!=ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(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),Oe(e=function(t,e,n){return e=Ee(e),function(t,e){if(e&&("object"==ue(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,ve()?Reflect.construct(e,n||[],Ee(t).constructor):e.apply(t,n))}(this,t),"getInputAdaptiveStyles",function(){var t=e.getProps(),n=e.getEnvironment();return t.adaptiveStyles[n].filter(function(t){return"input"===t.element})}),Oe(e,"setMarkerStyleAttributes",function(){var n=e.getInputAdaptiveStyles();if(n.length&&n[0].markerStyleAttributes){var o;e.markerStyleAttributes=be(be({},de),n[0].markerStyleAttributes);var r=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;r&&(e.markerStyleAttributes=be(be({},e.markerStyleAttributes),r))}else e.markerStyleAttributes=t.defaultMarkerStyleAttributes}),Oe(e,"setStylesVariables",function(t){Object.keys(e.markerStyleAttributes).forEach(function(n){return t.style.setProperty("--".concat(n),e.markerStyleAttributes[n])})}),Oe(e,"getOptions",function(){var t,n=e.getProps().control.options,o={};Object.keys(n).forEach(function(t){var e=n[t];o[t]={id:t,label:e.label,exportId:e.exportId,sort:e.sort}});var r=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],[r,i])=>function(t,e,n,o=!1){let r=t[n],i=e[n];return isNaN(r)||isNaN(i)?"string"!=typeof r||"string"!=typeof i?0:(r=r.toLowerCase(),i=i.toLowerCase(),o?i.localeCompare(r):r.localeCompare(i)):r<i?o?1:-1:r>i?o?-1:1:0}(o,i,e,n)))}(o,r)}),Oe(e,"applyStylesToOptionWrapper",function(){var t=e.getElement("listContainer"),n=Ht(e.getProps().adaptiveStyles,e.getEnvironment(),"optionWrapper"),o=t.querySelectorAll(".option-wrapper");if(n){var r=Object.keys(n);o.forEach(function(t){r.forEach(function(e){t.style[e]=n[e]})})}else o.forEach(function(t){t.style.margin="10px 3px"}),t.style.gap="0px"}),Oe(e,"createRadioGroupItemComponent",function(t,n,o){var r=e.getHostElement(),i=document.createElement("div");i.classList.add("option-wrapper"),i.setAttribute("cl-element","optionWrapper");var s="cl-radio-".concat(e.controlExportId,"-").concat(t.id),l=document.createElement("label");l.classList.add("radio-mark-container"),l.setAttribute("for",s);var a=document.createElement("div");a.classList.add("radio-mark-shadow"),a.setAttribute("aria-hidden","true"),l.appendChild(a);var c=document.createElement("input");c.setAttribute("type","radio"),c.setAttribute("name","".concat(e.controlExportId,"-").concat(t.id)),c.id=s,e.syncRadioState(c,n),l.appendChild(c);var d=document.createElement("span");d.classList.add("radio-mark"),d.setAttribute("aria-hidden","true"),l.appendChild(d);var u=document.createElement("span");if(u.classList.add("radio-box-label"),u.textContent=t.label,e.setStylesVariables(r),k(u,o),l.appendChild(u),n){var p=e.markerStyleAttributes.selectedColor;d.classList.add("radio-mark-checked"),d.style.borderColor=p,d.style.outlineColor=p,e.getHostElement().style.setProperty("--selectedColor","".concat(p)),d.style.setProperty("--borderColor","".concat(p))}else d.style.borderColor=null,d.style.outlineColor=null,e.getHostElement().style.setProperty("--borderColor","rgba(0,0,0, 0.7)");return i.appendChild(l),i}),Oe(e,"syncRadioState",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")}}),Oe(e,"updateGap",function(){var t=e.getElement("listContainer");t&&[].concat(pe(t.querySelectorAll(".radio-mark-container")),pe(t.querySelectorAll(".radio-mark-shadow")),pe(t.querySelectorAll(".radio-mark"))).forEach(function(t){e.updateElementSizeStyles(t,e.markerStyleAttributes)})}),Oe(e,"updateElementSizeStyles",function(t,e){t.style.setProperty("--inputSize",e.inputSize),t.style.setProperty("--inputToTextGapSize",e.inputToTextGapSize)}),Oe(e,"applyStyleToOptionLabels",function(){var n=e.getElement("input"),o=N(n,t.radioGroupButtonMenuStyles);n.querySelectorAll(".radio-box-label").forEach(function(t){k(t,o)})}),Oe(e,"applyStylesToMarkers",function(){e.getElement("input").querySelectorAll(".radio-mark").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)})}),Oe(e,"applyStylesToMarkersShadows",function(){e.getElement("input").querySelectorAll(".radio-mark-shadow").forEach(function(t){e.setStylesVariables(t)})}),Oe(e,"unselectButtons",function(t,n){t.querySelectorAll(".radioGroupItem").forEach(function(t){if(t.getAttribute("name")!==n){var o=t.querySelector(".radio-mark");o.classList.remove("radio-mark-checked"),o.style.borderColor=null,o.style.outlineColor=null;var r=t.querySelector('input[type="radio"]');e.syncRadioState(r,!1)}})}),Oe(e,"setSelectedBorderColor",function(t){var n=e.markerStyleAttributes.selectedColor;t.style.borderColor="".concat(n),t.style.outlineColor="".concat(n),t.style.setProperty("--borderColor","".concat(n))}),Oe(e,"setBorderTopWidth",function(t){var n=e.markerStyleAttributes.borderTopWidth;t.style.setProperty("--borderTopWidth","".concat(n))}),Oe(e,"createContent",function(){var n,o=e.getElement("input"),r=N(o,t.radioGroupButtonMenuStyles),i=(null===(n=e.registeredControl)||void 0===n?void 0:n.getValue())||null,s=e.getOptions(),l=document.createElement("div");l.classList.add("radio-buttons-list"),l.setAttribute("cl-element","listContainer"),Object.entries(s).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,r,i,s,l=[],a=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{if(!a&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return l}}(t,e)||he(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],o=s[n],a=(null==i?void 0:i.id)===n,c=e.createRadioGroupItemComponent(o,a,r);c.classList.add("radioGroupItem"),c.setAttribute("name",o.id),e.setBorderTopWidth(c),e.isStaticRenderMode()&&c.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault();var o=c.querySelector(".radio-mark");o.classList.add("radio-mark-checked"),e.setSelectedBorderColor(o),e.registeredControl.setValue({id:n,exportId:s[n].exportId}),e.unselectButtons(l,n)}),l.appendChild(c)}),I({element:o,html:""}),o.append(l)}),Oe(e,"registerControl",function(t){var n=t.querySelector(".radio-group-tooltip");e.registeredControl=e.createControlWithValidation([],{tooltipElement:n})}),Oe(e,"handleSafariHeightIssue",function(){var t=e.getHostElement();t.style.height&&"auto"!==t.style.height||(t.style.height="fit-content")}),Oe(e,"manifest",ae),Oe(e,"registeredControl",void 0),Oe(e,"controlExportId",void 0),Oe(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&&Se(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=ye(Ee(t.prototype),"connectedCallback",n);return"function"==typeof o?function(t){return o.apply(n,t)}:o}(t,0,this)([]);var n=this.getRootElement(),o=this.getProps();this.controlExportId=o.control.integrationName,this.registerControl(n),this.observeProps(function(t,o){var r=e.getEnvironment();M(o,r,n,".label-with-radio-group-container"),j(o,r,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.setMarkerStyleAttributes(),e.createContent(),e.applyAutoAdaptiveStyles(o.adaptiveStyles,o.styles),e.handleSafariHeightIssue(),e.applyStylesToMarkers(),e.applyStylesToMarkersShadows(),e.applyStylesToOptionWrapper(),e.updateGap();var i=n.querySelector(".label-with-radio-group-container");if(i){var s,l=!(null===(s=o.control)||void 0===s||null===(s=s.validation)||void 0===s||!s.required);i.setAttribute("aria-required",String(l))}}),this.observeShared(function(t,n){e.applyStyleToOptionLabels(e.getProps(),e.getEnvironment())}),this.observeEnvironment(function(t,o){var r=e.getProps();e.setMarkerStyleAttributes(),e.applyStylesToMarkers(),e.applyStylesToMarkersShadows(),M(r,o,n,".label-with-radio-group-container"),j(r,o,e.getHostElement(),e.getElement("input"),e.getElement("label")),e.handleSafariHeightIssue(),e.applyStyleToOptionLabels(r,o),e.updateGap()})}}])}();Oe(Ce,"define",{name:"sys-radio-group",model:ae.name,manifest:ae}),Oe(Ce,"componentStyle",'\n .main-container {\n height: 100%;\n }\n \n .label-with-radio-group-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 .radio-buttons-list {\n width: 100%;\n height: auto;\n text-align: inherit;\n }\n \n .radio-group-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 .radio-group-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 .radio-group-content {\n display: flex;\n /*align-items: center;*/\n /*position: absolute;*/\n height: 100%;\n width: 100%;\n /*padding: 0 35px 0 20px;*/\n cursor: pointer;\n border: 1px solid transparent;\n /*TODO*/\n /*padding: 10px;\n margin: -10px;*/\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 .radio-mark-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 .radio-mark-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0px;\n height: 0px;\n }\n \n .radio-mark-container .radio-box-label {\n display: block;\n }\n \n /* Create a custom radio */\n .radio-mark {\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: 2px;\n border-radius: 50px;\n box-shadow: 0 0 0 var(--borderTopWidth) var(--borderTopColor);\n outline: none;\n /*border-style: var(--borderStyle);\n border-color: var(--borderTopColor);\n border-width: var(--borderTopWidth);*/\n /*outline-width: var(--borderTopWidth);\n outline-color: var(--borderTopColor);\n outline-style: var(--borderStyle);*/\n z-index: 2;\n background: var(--background, rgb(256, 256, 256));\n backdrop-filter: var(--backdropFilter);\n }\n \n .radio-mark-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 border-radius: 50px;\n z-index: 1;\n }\n \n .radio-mark:after {\n content: "";\n position: absolute;\n display: none;\n }\n \n .radio-mark-checked {\n box-shadow: 0 0 0 var(--borderTopWidth) var(--selectedColor);\n }\n \n .radio-mark-checked:after {\n display: block;\n }\n \n .radio-mark-container .radio-mark:after {\n width: var(--inputSize, 22px);\n height: var(--inputSize, 22px);\n border-radius: 50px;\n border-width: 1px;\n border-style: solid;\n background: var(--borderColor);\n border-color: var(--borderColor);\n scale: 0.8;\n }\n \n .radio-box-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 ~ .radio-mark.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 ~ .radio-mark.radio-mark-checked.focus-outline-defined {\n outline-color: var(--selectedColor);\n }\n'),Oe(Ce,"componentTemplate",'\n<div class="main-container">\n <div class="label-with-radio-group-container" role="radiogroup" aria-labelledby="cl-radio-group-label">\n <div cl-element="label"\n cl-inline-edit="content, label"\n class="label"\n id="cl-radio-group-label">\n </div>\n <div class="radio-group-with-tooltip">\n <div cl-element="input" class="radio-group-content">\n </div>\n <div class="radio-group-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'),Oe(Ce,"radioGroupButtonMenuStyles",["color","font-family","font-size","letter-spacing","text-shadow","font-weight","line-height","text-align"]),Oe(Ce,"defaultMarkerStyleAttributes",de);export{Ce as default};window.clComponentClass_SysRadioGroupComponent=Ce;
|