@cas-smartdesign/radio-button-group 4.0.3 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var window;(window||={})["@cas-smartdesign/radio-button-group"]=(()=>{var Z=Object.defineProperty;var Mt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var Rt=Object.prototype.hasOwnProperty;var Tt=(s,t)=>{for(var e in t)Z(s,e,{get:t[e],enumerable:!0})},zt=(s,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nt(t))!Rt.call(s,o)&&o!==e&&Z(s,o,{get:()=>t[o],enumerable:!(i=Mt(t,o))||i.enumerable});return s};var Vt=s=>zt(Z({},"__esModule",{value:!0}),s);var he={};Tt(he,{RadioButton:()=>Ot,RadioButtonGroup:()=>Dt});var F=window,K=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Q=Symbol(),ft=new WeakMap,O=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(K&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=ft.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ft.set(e,t))}return t}toString(){return this.cssText}},y=s=>new O(typeof s=="string"?s:s+"",void 0,Q),I=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new O(e,s,Q)},X=(s,t)=>{K?s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),o=F.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)})},W=K?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return y(e)})(s):s;var Y,q=window,gt=q.trustedTypes,jt=gt?gt.emptyScript:"",$t=q.reactiveElementPolyfillSupport,et={toAttribute(s,t){switch(t){case Boolean:s=s?jt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},mt=(s,t)=>t!==s&&(t==t||s==s),tt={attribute:!0,type:String,converter:et,reflect:!1,hasChanged:mt},st="finalized",$=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,i)=>{let o=this._$Ep(i,e);o!==void 0&&(this._$Ev.set(o,i),t.push(o))}),t}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let i=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){let r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tt}static finalize(){if(this.hasOwnProperty(st))return!1;this[st]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of i)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let o of i)e.unshift(W(o))}else t!==void 0&&e.push(W(t));return e}static _$Ep(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return X(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tt){var o;let r=this.constructor._$Ep(t,i);if(r!==void 0&&i.reflect===!0){let n=(((o=i.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?i.converter:et).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;let o=this.constructor,r=o._$Ev.get(t);if(r!==void 0&&this._$El!==r){let n=o.getPropertyOptions(r),h=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:et;this._$El=r,this[r]=h.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||mt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,r)=>this[r]=o),this._$Ei=void 0);let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var r;return(r=o.hostUpdate)===null||r===void 0?void 0:r.call(o)}),this.update(i)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostUpdated)===null||o===void 0?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};$[st]=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},$t?.({ReactiveElement:$}),((Y=q.reactiveElementVersions)!==null&&Y!==void 0?Y:q.reactiveElementVersions=[]).push("1.6.3");var it,J=window,P=J.trustedTypes,_t=P?P.createPolicy("lit-html",{createHTML:s=>s}):void 0,nt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,Et="?"+m,Ft=`<${Et}>`,S=document,H=()=>S.createComment(""),M=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Kt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",ot=`[
2
- \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bt=/-->/g,yt=/>/g,A=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),At=/'/g,xt=/"/g,kt=/^(?:script|style|textarea|title)$/i,It=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),E=It(1),fe=It(2),w=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),St=new WeakMap,x=S.createTreeWalker(S,129,null,!1);function Pt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var Wt=(s,t)=>{let e=s.length-1,i=[],o,r=t===2?"<svg>":"",n=D;for(let h=0;h<e;h++){let l=s[h],a,c,d=-1,p=0;for(;p<l.length&&(n.lastIndex=p,c=n.exec(l),c!==null);)p=n.lastIndex,n===D?c[1]==="!--"?n=bt:c[1]!==void 0?n=yt:c[2]!==void 0?(kt.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=A):c[3]!==void 0&&(n=A):n===A?c[0]===">"?(n=o??D,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,a=c[1],n=c[3]===void 0?A:c[3]==='"'?xt:At):n===xt||n===At?n=A:n===bt||n===yt?n=D:(n=A,o=void 0);let g=n===A&&s[h+1].startsWith("/>")?" ":"";r+=n===D?l+Ft:d>=0?(i.push(a),l.slice(0,d)+nt+l.slice(d)+m+g):l+m+(d===-2?(i.push(void 0),h):g)}return[Pt(s,r+(s[e]||"<?>")+(t===2?"</svg>":"")),i]},N=class s{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0,h=t.length-1,l=this.parts,[a,c]=Wt(t,e);if(this.el=s.createElement(a,i),x.currentNode=this.el.content,e===2){let d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;(o=x.nextNode())!==null&&l.length<h;){if(o.nodeType===1){if(o.hasAttributes()){let d=[];for(let p of o.getAttributeNames())if(p.endsWith(nt)||p.startsWith(m)){let g=c[n++];if(d.push(p),g!==void 0){let Ht=o.getAttribute(g.toLowerCase()+nt).split(m),j=/([.?@])?(.*)/.exec(g);l.push({type:1,index:r,name:j[2],strings:Ht,ctor:j[1]==="."?lt:j[1]==="?"?at:j[1]==="@"?ht:B})}else l.push({type:6,index:r})}for(let p of d)o.removeAttribute(p)}if(kt.test(o.tagName)){let d=o.textContent.split(m),p=d.length-1;if(p>0){o.textContent=P?P.emptyScript:"";for(let g=0;g<p;g++)o.append(d[g],H()),x.nextNode(),l.push({type:2,index:++r});o.append(d[p],H())}}}else if(o.nodeType===8)if(o.data===Et)l.push({type:2,index:r});else{let d=-1;for(;(d=o.data.indexOf(m,d+1))!==-1;)l.push({type:7,index:r}),d+=m.length-1}r++}}static createElement(t,e){let i=S.createElement("template");return i.innerHTML=t,i}};function U(s,t,e=s,i){var o,r,n,h;if(t===w)return t;let l=i!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[i]:e._$Cl,a=M(t)?void 0:t._$litDirective$;return l?.constructor!==a&&((r=l?._$AO)===null||r===void 0||r.call(l,!1),a===void 0?l=void 0:(l=new a(s),l._$AT(s,e,i)),i!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=U(s,l._$AS(s,t.values),l,i)),t}var rt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;let{el:{content:i},parts:o}=this._$AD,r=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(i,!0);x.currentNode=r;let n=x.nextNode(),h=0,l=0,a=o[0];for(;a!==void 0;){if(h===a.index){let c;a.type===2?c=new R(n,n.nextSibling,this,t):a.type===1?c=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(c=new ct(n,this,t)),this._$AV.push(c),a=o[++l]}h!==a?.index&&(n=x.nextNode(),h++)}return x.currentNode=S,r}v(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},R=class s{constructor(t,e,i,o){var r;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=(r=o?.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),M(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Kt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==u&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;let{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=N.createElement(Pt(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{let n=new rt(r,this),h=n.u(this.options);n.v(i),this.$(h),this._$AH=n}}_$AC(t){let e=St.get(t.strings);return e===void 0&&St.set(t.strings,e=new N(t)),e}T(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,o=0;for(let r of t)o===e.length?e.push(i=new s(this.k(H()),this.k(H()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},B=class{constructor(t,e,i,o,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){let r=this.strings,n=!1;if(r===void 0)t=U(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==w,n&&(this._$AH=t);else{let h=t,l,a;for(t=r[0],l=0;l<r.length-1;l++)a=U(this,h[i+l],e,l),a===w&&(a=this._$AH[l]),n||(n=!M(a)||a!==this._$AH[l]),a===u?t=u:t!==u&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!o&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},lt=class extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},qt=P?P.emptyScript:"",at=class extends B{constructor(){super(...arguments),this.type=4}j(t){t&&t!==u?this.element.setAttribute(this.name,qt):this.element.removeAttribute(this.name)}},ht=class extends B{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=U(this,t,e,0))!==null&&i!==void 0?i:u)===w)return;let o=this._$AH,r=t===u&&o!==u||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==u&&(o===u||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}};var wt=J.litHtmlPolyfillSupport;wt?.(N,R),((it=J.litHtmlVersions)!==null&&it!==void 0?it:J.litHtmlVersions=[]).push("2.8.0");var Ut=(s,t,e)=>{var i,o;let r=(i=e?.renderBefore)!==null&&i!==void 0?i:t,n=r._$litPart$;if(n===void 0){let h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;r._$litPart$=n=new R(t.insertBefore(H(),h),h,void 0,e??{})}return n._$AI(s),n};var dt,ut;var f=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ut(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return w}};f.finalized=!0,f._$litElement$=!0,(dt=globalThis.litElementHydrateSupport)===null||dt===void 0||dt.call(globalThis,{LitElement:f});var Bt=globalThis.litElementPolyfillSupport;Bt?.({LitElement:f});((ut=globalThis.litElementVersions)!==null&&ut!==void 0?ut:globalThis.litElementVersions=[]).push("3.3.3");var Jt=(s,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,s)}},Gt=(s,t,e)=>{t.constructor.createProperty(e,s)};function v(s){return(t,e)=>e!==void 0?Gt(s,t,e):Jt(s,t)}var Lt=s=>s??u;var Zt=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Qt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Xt="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Yt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,vt=(s,t,e,i)=>{for(var o=i>1?void 0:i?ee(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&te(t,e,o),o},L,T=(L=class extends f{static parseLevel(s){if(s){let t=Object.keys(z).find(e=>e.toLowerCase()===s.toLowerCase());return t&&z[t]}}static get styles(){return[I`
4
- ${y(Zt)}
5
- `]}render(){return E`${this.iconToUse&&E`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(s){return s.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(s)}get iconForLevel(){switch(L.parseLevel(this.level)){case"warn":return Yt;case"suggest":return Xt;case"error":return Qt;default:return null}}},L.ID="sd-field-validation-message",L.levelConverter={fromAttribute(s){return L.parseLevel(s)},toAttribute(s){return s&&s.toLowerCase()}},L);vt([v({type:String,attribute:!0})],T.prototype,"message",2);vt([v({type:String,attribute:!0})],T.prototype,"icon",2);vt([v({converter:T.levelConverter,reflect:!0})],T.prototype,"level",2);var pt=T,z=(s=>(s.Warn="warn",s.Suggest="suggest",s.Error="error",s))(z||{});customElements.get(pt.ID)||customElements.define(pt.ID,pt);var se=":host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale(100%)}:host(:not([disabled])[focused]) .highlight{display:block!important}:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color, #1467ba)!important}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root{display:inline-flex;align-items:center;vertical-align:middle;width:100%;padding-top:6px;padding-bottom:6px}.root .radio-button-container{position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box;cursor:pointer;margin-right:5px;flex-shrink:0}.root .radio-button-container input{position:absolute;top:0;left:0;opacity:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color, rgba(20, 103, 186, .3))}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color, #1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color, #767676)}.root .label{font-family:Segoe UI,Lucida Sans,Arial,sans-serif;text-overflow:ellipsis;overflow-x:hidden;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px}",ie=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,G=(s,t,e,i)=>{for(var o=i>1?void 0:i?oe(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&ie(t,e,o),o},ne=0,_,V=(_=class extends f{constructor(){super(),this.checked=!1,this.value="",this.disabled=!1,this.label="",this.handleClick=s=>{s.preventDefault()},this.a11yID=_.ID+"_"+ne++}static get styles(){return[I`
1
+ var window;(window||={})["@cas-smartdesign/radio-button-group"]=(()=>{var Q=Object.defineProperty;var It=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Bt=Object.prototype.hasOwnProperty;var Mt=(e,t)=>{for(var s in t)Q(e,s,{get:t[s],enumerable:!0})},Ot=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ut(t))!Bt.call(e,o)&&o!==s&&Q(e,o,{get:()=>t[o],enumerable:!(i=It(t,o))||i.enumerable});return e};var Lt=e=>Ot(Q({},"__esModule",{value:!0}),e);var ae={};Mt(ae,{RadioButton:()=>kt,RadioButtonGroup:()=>Pt});var q=globalThis,W=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),ut=new WeakMap,M=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o,s=this.t;if(W&&t===void 0){let i=s!==void 0&&s.length===1;i&&(t=ut.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ut.set(s,t))}return t}toString(){return this.cssText}},y=e=>new M(typeof e=="string"?e:e+"",void 0,X),P=(e,...t)=>{let s=e.length===1?e[0]:t.reduce(((i,o,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1]),e[0]);return new M(s,e,X)},pt=(e,t)=>{if(W)e.adoptedStyleSheets=t.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(let s of t){let i=document.createElement("style"),o=q.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=s.cssText,e.appendChild(i)}},Y=W?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(let i of t.cssRules)s+=i.cssText;return y(s)})(e):e;var{is:Dt,defineProperty:Ht,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:Rt,getOwnPropertySymbols:Nt,getPrototypeOf:zt}=Object,K=globalThis,ft=K.trustedTypes,jt=ft?ft.emptyScript:"",Ft=K.reactiveElementPolyfillSupport,O=(e,t)=>e,L={toAttribute(e,t){switch(t){case Boolean:e=e?jt:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},Z=(e,t)=>!Dt(e,t),gt={attribute:!0,type:String,converter:L,reflect:!1,useDefault:!1,hasChanged:Z};Symbol.metadata??=Symbol("metadata"),K.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=gt){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){let i=Symbol(),o=this.getPropertyDescriptor(t,i,s);o!==void 0&&Ht(this.prototype,t,o)}}static getPropertyDescriptor(t,s,i){let{get:o,set:n}=Tt(this.prototype,t)??{get(){return this[s]},set(r){this[s]=r}};return{get:o,set(r){let h=o?.call(this);n?.call(this,r),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??gt}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;let t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){let s=this.properties,i=[...Rt(s),...Nt(s)];for(let o of i)this.createProperty(o,s[o])}let t=this[Symbol.metadata];if(t!==null){let s=litPropertyMetadata.get(t);if(s!==void 0)for(let[i,o]of s)this.elementProperties.set(i,o)}this._$Eh=new Map;for(let[s,i]of this.elementProperties){let o=this._$Eu(s,i);o!==void 0&&this._$Eh.set(o,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let s=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let o of i)s.unshift(Y(o))}else t!==void 0&&s.push(Y(t));return s}static _$Eu(t,s){let i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,s=this.constructor.elementProperties;for(let i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return pt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){let i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){let n=(i.converter?.toAttribute!==void 0?i.converter:L).toAttribute(s,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,s){let i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let n=i.getPropertyOptions(o),r=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:L;this._$Em=o;let h=r.fromAttribute(s,n.type);this[o]=h??this._$Ej?.get(o)??h,this._$Em=null}}requestUpdate(t,s,i){if(t!==void 0){let o=this.constructor,n=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??Z)(n,s)||i.useDefault&&i.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:o,wrapped:n},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),n!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[o,n]of i){let{wrapped:r}=n,h=this[o];r!==!0||this._$AL.has(o)||h===void 0||this.C(o,void 0,n,h)}}let t=!1,s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((i=>i.hostUpdate?.())),this.update(s)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((s=>s.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((s=>this._$ET(s,this[s]))),this._$EM()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[O("elementProperties")]=new Map,v[O("finalized")]=new Map,Ft?.({ReactiveElement:v}),(K.reactiveElementVersions??=[]).push("2.1.1");var rt=globalThis,J=rt.trustedTypes,vt=J?J.createPolicy("lit-html",{createHTML:e=>e}):void 0,At="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,xt="?"+$,Vt=`<${xt}>`,S=document,H=()=>S.createComment(""),T=e=>e===null||typeof e!="object"&&typeof e!="function",at=Array.isArray,qt=e=>at(e)||typeof e?.[Symbol.iterator]=="function",tt=`[
2
+ \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mt=/-->/g,$t=/>/g,A=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,bt=/"/g,St=/^(?:script|style|textarea|title)$/i,ht=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),E=ht(1),pe=ht(2),fe=ht(3),w=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),yt=new WeakMap,x=S.createTreeWalker(S,129);function wt(e,t){if(!at(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return vt!==void 0?vt.createHTML(t):t}var Wt=(e,t)=>{let s=e.length-1,i=[],o,n=t===2?"<svg>":t===3?"<math>":"",r=D;for(let h=0;h<s;h++){let a=e[h],d,u,l=-1,g=0;for(;g<a.length&&(r.lastIndex=g,u=r.exec(a),u!==null);)g=r.lastIndex,r===D?u[1]==="!--"?r=mt:u[1]!==void 0?r=$t:u[2]!==void 0?(St.test(u[2])&&(o=RegExp("</"+u[2],"g")),r=A):u[3]!==void 0&&(r=A):r===A?u[0]===">"?(r=o??D,l=-1):u[1]===void 0?l=-2:(l=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?A:u[3]==='"'?bt:_t):r===bt||r===_t?r=A:r===mt||r===$t?r=D:(r=A,o=void 0);let m=r===A&&e[h+1].startsWith("/>")?" ":"";n+=r===D?a+Vt:l>=0?(i.push(d),a.slice(0,l)+At+a.slice(l)+$+m):a+$+(l===-2?h:m)}return[wt(e,n+(e[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},R=class e{constructor({strings:t,_$litType$:s},i){let o;this.parts=[];let n=0,r=0,h=t.length-1,a=this.parts,[d,u]=Wt(t,s);if(this.el=e.createElement(d,i),x.currentNode=this.el.content,s===2||s===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(o=x.nextNode())!==null&&a.length<h;){if(o.nodeType===1){if(o.hasAttributes())for(let l of o.getAttributeNames())if(l.endsWith(At)){let g=u[r++],m=o.getAttribute(l).split($),V=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:V[2],strings:m,ctor:V[1]==="."?st:V[1]==="?"?it:V[1]==="@"?ot:U}),o.removeAttribute(l)}else l.startsWith($)&&(a.push({type:6,index:n}),o.removeAttribute(l));if(St.test(o.tagName)){let l=o.textContent.split($),g=l.length-1;if(g>0){o.textContent=J?J.emptyScript:"";for(let m=0;m<g;m++)o.append(l[m],H()),x.nextNode(),a.push({type:2,index:++n});o.append(l[g],H())}}}else if(o.nodeType===8)if(o.data===xt)a.push({type:2,index:n});else{let l=-1;for(;(l=o.data.indexOf($,l+1))!==-1;)a.push({type:7,index:n}),l+=$.length-1}n++}}static createElement(t,s){let i=S.createElement("template");return i.innerHTML=t,i}};function I(e,t,s=e,i){if(t===w)return t;let o=i!==void 0?s._$Co?.[i]:s._$Cl,n=T(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(e),o._$AT(e,s,i)),i!==void 0?(s._$Co??=[])[i]=o:s._$Cl=o),o!==void 0&&(t=I(e,o._$AS(e,t.values),o,i)),t}var et=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:s},parts:i}=this._$AD,o=(t?.creationScope??S).importNode(s,!0);x.currentNode=o;let n=x.nextNode(),r=0,h=0,a=i[0];for(;a!==void 0;){if(r===a.index){let d;a.type===2?d=new N(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new nt(n,this,t)),this._$AV.push(d),a=i[++h]}r!==a?.index&&(n=x.nextNode(),r++)}return x.currentNode=S,o}p(t){let s=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}},N=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,i,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,s=this._$AM;return s!==void 0&&t?.nodeType===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=I(this,t,s),T(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:s,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=R.createElement(wt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(s);else{let n=new et(o,this),r=n.u(this.options);n.p(s),this.T(r),this._$AH=n}}_$AC(t){let s=yt.get(t.strings);return s===void 0&&yt.set(t.strings,s=new R(t)),s}k(t){at(this._$AH)||(this._$AH=[],this._$AR());let s=this._$AH,i,o=0;for(let n of t)o===s.length?s.push(i=new e(this.O(H()),this.O(H()),this,this.options)):i=s[o],i._$AI(n),o++;o<s.length&&(this._$AR(i&&i._$AB.nextSibling,o),s.length=o)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,o,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=s,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,s=this,i,o){let n=this.strings,r=!1;if(n===void 0)t=I(this,t,s,0),r=!T(t)||t!==this._$AH&&t!==w,r&&(this._$AH=t);else{let h=t,a,d;for(t=n[0],a=0;a<n.length-1;a++)d=I(this,h[i+a],s,a),d===w&&(d=this._$AH[a]),r||=!T(d)||d!==this._$AH[a],d===c?t=c:t!==c&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}r&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},it=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},ot=class extends U{constructor(t,s,i,o,n){super(t,s,i,o,n),this.type=5}_$AI(t,s=this){if((t=I(this,t,s,0)??c)===w)return;let i=this._$AH,o=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==c&&(i===c||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}};var Kt=rt.litHtmlPolyfillSupport;Kt?.(R,N),(rt.litHtmlVersions??=[]).push("3.3.1");var Et=(e,t,s)=>{let i=s?.renderBefore??t,o=i._$litPart$;if(o===void 0){let n=s?.renderBefore??null;i._$litPart$=o=new N(t.insertBefore(H(),n),n,void 0,s??{})}return o._$AI(e),o};var lt=globalThis,f=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Et(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return w}};f._$litElement$=!0,f.finalized=!0,lt.litElementHydrateSupport?.({LitElement:f});var Zt=lt.litElementPolyfillSupport;Zt?.({LitElement:f});(lt.litElementVersions??=[]).push("4.2.1");var Jt={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:Z},Gt=(e=Jt,t,s)=>{let{kind:i,metadata:o}=s,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),i==="setter"&&((e=Object.create(e)).wrapped=!0),n.set(s.name,e),i==="accessor"){let{name:r}=s;return{set(h){let a=t.get.call(this);t.set.call(this,h),this.requestUpdate(r,a,e)},init(h){return h!==void 0&&this.C(r,void 0,e,h),h}}}if(i==="setter"){let{name:r}=s;return function(h){let a=this[r];t.call(this,h),this.requestUpdate(r,a,e)}}throw Error("Unsupported decorator location: "+i)};function p(e){return(t,s)=>typeof s=="object"?Gt(e,t,s):((i,o,n)=>{let r=o.hasOwnProperty(n);return o.constructor.createProperty(n,i),r?Object.getOwnPropertyDescriptor(o,n):void 0})(e,t,s)}var Ct=e=>e??c;var Qt=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Xt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Yt="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",te="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",ee=Object.defineProperty,dt=(e,t,s,i)=>{for(var o=void 0,n=e.length-1,r;n>=0;n--)(r=e[n])&&(o=r(t,s,o)||o);return o&&ee(t,s,o),o},B,z=(B=class extends f{static parseLevel(e){if(e){let t=Object.keys(j).find(s=>s.toLowerCase()===e.toLowerCase());return t&&j[t]}}static get styles(){return[P`
4
+ ${y(Qt)}
5
+ `]}render(){return E`${this.iconToUse&&E`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(B.parseLevel(this.level)){case"warn":return te;case"suggest":return Yt;case"error":return Xt;default:return null}}},B.ID="sd-field-validation-message",B.levelConverter={fromAttribute(e){return B.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},B);dt([p({type:String,attribute:!0})],z.prototype,"message");dt([p({type:String,attribute:!0})],z.prototype,"icon");dt([p({converter:z.levelConverter,reflect:!0})],z.prototype,"level");var ct=z,j=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(j||{});customElements.get(ct.ID)||customElements.define(ct.ID,ct);var se=":host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale(100%)}:host(:not([disabled])[focused]) .highlight{display:block!important}:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color, #1467ba)!important}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root{display:inline-flex;align-items:center;vertical-align:middle;width:100%;padding-top:6px;padding-bottom:6px}.root .radio-button-container{position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box;cursor:pointer;margin-right:5px;flex-shrink:0}.root .radio-button-container input{position:absolute;top:0;left:0;opacity:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color, rgba(20, 103, 186, .3))}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color, #1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color, #767676)}.root .label{font-family:Segoe UI,Lucida Sans,Arial,sans-serif;text-overflow:ellipsis;overflow-x:hidden;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px}",ie=Object.defineProperty,G=(e,t,s,i)=>{for(var o=void 0,n=e.length-1,r;n>=0;n--)(r=e[n])&&(o=r(t,s,o)||o);return o&&ie(t,s,o),o},oe=0,_,F=(_=class extends f{constructor(){super(),this.checked=!1,this.value="",this.disabled=!1,this.label="",this.handleClick=e=>{e.preventDefault()},this.a11yID=_.ID+"_"+oe++}static get styles(){return[P`
6
6
  ${y(se)}
7
7
  `]}render(){return E`
8
8
  <div class="root">
@@ -29,12 +29,12 @@ var window;(window||={})["@cas-smartdesign/radio-button-group"]=(()=>{var Z=Obje
29
29
  </div>
30
30
  <label class="label" for="${this.a11yID}" @click="${this.handleClick}">${this.label}</label>
31
31
  </div>
32
- `}},_.ID="sd-radio-button",_.ensureDefined=()=>{customElements.get(_.ID)||customElements.define(_.ID,_)},_);G([v({type:Boolean,reflect:!0,attribute:!0})],V.prototype,"checked",2);G([v({type:String,reflect:!0,attribute:!0})],V.prototype,"value",2);G([v({type:Boolean,reflect:!0,attribute:!0})],V.prototype,"disabled",2);G([v({type:String,reflect:!0,attribute:!0})],V.prototype,"label",2);var Ot=V,re=":host(:focus){outline:none}.buttons-container{display:flex}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}",le=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,k=(s,t,e,i)=>{for(var o=i>1?void 0:i?ae(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(o=(i?n(t,e,o):n(o))||o);return i&&o&&le(t,e,o),o},C,b=(C=class extends f{constructor(){super(...arguments),this.layout="horizontal",this.value="",this.uncheckAllowed=!1,this.disabled=!1,this._focusIndex=-1,this._checkedButton=null,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(s=>{!s.hasAttribute("disabled")&&this.disabled&&s.setAttribute("disabled",""),s.setAttribute("tabIndex","-1"),this.updateCheckedButton(s)})},this.handleFocusIn=s=>{let t=s.target,e=this._buttons.findIndex(i=>i==t);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(e!==-1?e:0),this.updateFocused(null,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=s=>{this.focus();let t=this._buttons.find(i=>i.contains(s.target)),e=this._buttons.findIndex(i=>i==t);e>=0&&(this.focusIndex=e,this.updateChecked())},this.handleKeyDown=s=>{let t=!0;switch(s.key){case"Down":case"ArrowDown":{let e=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=e!==-1?e:this.getNextFocusIndex(0),this.uncheckAllowed||this.updateChecked();break}case"Up":case"ArrowUp":{let e=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=e!==-1?e:this.getPreviousFocusIndex(this.childElementCount-1),this.uncheckAllowed||this.updateChecked();break}case"Enter":{this.updateChecked();break}default:t=!1}t&&(s.preventDefault(),s.stopPropagation())}}get focusIndex(){return this._focusIndex}set focusIndex(s){if(s>=-1&&s<this.childElementCount){let t=this._focusIndex;if(this._focusIndex=s,t!==s){let e=this._buttons[t],i=this._buttons[this.focusIndex];this.updateFocused(e,i)}}}firstUpdated(s){super.firstUpdated(s),this.buttonsSlot.addEventListener("slotchange",this.handleSlotChange),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("keydown",this.handleKeyDown)}updated(s){super.updated(s),s.has("disabled")&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[I`
33
- ${y(re)}
32
+ `}},_.ID="sd-radio-button",_.ensureDefined=()=>{customElements.get(_.ID)||customElements.define(_.ID,_)},_);G([p({type:Boolean,reflect:!0,attribute:!0})],F.prototype,"checked");G([p({type:String,reflect:!0,attribute:!0})],F.prototype,"value");G([p({type:Boolean,reflect:!0,attribute:!0})],F.prototype,"disabled");G([p({type:String,reflect:!0,attribute:!0})],F.prototype,"label");var kt=F,ne=":host(:focus){outline:none}.buttons-container{display:flex}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}",re=Object.defineProperty,k=(e,t,s,i)=>{for(var o=void 0,n=e.length-1,r;n>=0;n--)(r=e[n])&&(o=r(t,s,o)||o);return o&&re(t,s,o),o},C,b=(C=class extends f{constructor(){super(...arguments),this.layout="horizontal",this.value="",this.uncheckAllowed=!1,this.disabled=!1,this._focusIndex=-1,this._checkedButton=null,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(e=>{!e.hasAttribute("disabled")&&this.disabled&&e.setAttribute("disabled",""),e.setAttribute("tabIndex","-1"),this.updateCheckedButton(e)})},this.handleFocusIn=e=>{let t=e.target,s=this._buttons.findIndex(i=>i==t);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(s!==-1?s:0),this.updateFocused(null,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=e=>{this.focus();let t=this._buttons.find(i=>i.contains(e.target)),s=this._buttons.findIndex(i=>i==t);s>=0&&(this.focusIndex=s,this.updateChecked())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"Down":case"ArrowDown":{let s=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=s!==-1?s:this.getNextFocusIndex(0),this.uncheckAllowed||this.updateChecked();break}case"Up":case"ArrowUp":{let s=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=s!==-1?s:this.getPreviousFocusIndex(this.childElementCount-1),this.uncheckAllowed||this.updateChecked();break}case"Enter":{this.updateChecked();break}default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.childElementCount){let t=this._focusIndex;if(this._focusIndex=e,t!==e){let s=this._buttons[t],i=this._buttons[this.focusIndex];this.updateFocused(s,i)}}}firstUpdated(e){super.firstUpdated(e),this.buttonsSlot.addEventListener("slotchange",this.handleSlotChange),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("keydown",this.handleKeyDown)}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[P`
33
+ ${y(ne)}
34
34
  `]}render(){return E`
35
35
  <div
36
36
  class="buttons-container ${this.layout==="vertical"?"vertical":"horizontal"}"
37
- @click="${Lt(this.disabled?void 0:this.handleButtonClick)}"
37
+ @click="${Ct(this.disabled?void 0:this.handleButtonClick)}"
38
38
  >
39
39
  <slot></slot>
40
40
  </div>
@@ -47,7 +47,7 @@ var window;(window||={})["@cas-smartdesign/radio-button-group"]=(()=>{var Z=Obje
47
47
  >
48
48
  </sd-field-validation-message>
49
49
  `}
50
- `}updateCheckedButton(s){if(this._checkedButton&&this._checkedButton!==s)this.uncheckButton(s);else if(s.hasAttribute("checked")){this._checkedButton=s;let t=s.getAttribute("value");this.updateValue(t)}}disableButtons(){var s;(s=this._buttons)==null||s.forEach(t=>{t.setAttribute("disabled","")})}enableButtons(){var s;(s=this._buttons)==null||s.forEach(t=>{t.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}getNextFocusIndex(s){for(let t=s;t<this.childElementCount;t++){let e=this._buttons[t];if(this.isFocusable(e))return t}return-1}getPreviousFocusIndex(s){for(let t=s;t>=0;t--){let e=this._buttons[t];if(this.isFocusable(e))return t}return-1}isFocusable(s){return!s.hasAttribute("disabled")}updateChecked(){let s=this._checkedButton,t=this._buttons[this.focusIndex];this._checkedButton=t,s&&s!==t&&this.uncheckButton(s),t&&this.toggleButton(t)}toggleButton(s){s.hasAttribute("checked")?this.uncheckAllowed&&(this.uncheckButton(s),this._checkedButton=null,this.updateValue("")):(this.checkButton(s),this.updateValue(s.getAttribute("value")))}updateValue(s){this.value=s,this.fireValueChangeEvent()}updateFocused(s,t){var e,i;(e=s?.removeAttribute)==null||e.call(s,"focused"),(i=t?.setAttribute)==null||i.call(t,"focused","")}checkButton(s){s.setAttribute("checked","")}uncheckButton(s){s.removeAttribute("checked")}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector("slot")),this._buttonsSlot}get selectedIndex(){return this._buttons.indexOf(this._checkedButton)}},C.ID="sd-radio-button-group",C.ensureDefined=()=>{Ot.ensureDefined(),customElements.get(C.ID)||customElements.define(C.ID,C)},C);k([v({type:String,reflect:!0,attribute:!0})],b.prototype,"layout",2);k([v({type:String})],b.prototype,"value",2);k([v({type:Boolean,reflect:!0,attribute:"uncheck-allowed"})],b.prototype,"uncheckAllowed",2);k([v({type:Boolean,reflect:!0,attribute:!0})],b.prototype,"disabled",2);k([v({type:String})],b.prototype,"validationMessage",2);k([v({type:String})],b.prototype,"validationIconSrc",2);k([v({type:{fromAttribute(s){return s&&z[s.toLowerCase()]},toAttribute(s){return s&&s.toLowerCase()}},reflect:!0})],b.prototype,"validationLevel",2);var Dt=b;Dt.ensureDefined();return Vt(he);})();
50
+ `}updateCheckedButton(e){if(this._checkedButton&&this._checkedButton!==e)this.uncheckButton(e);else if(e.hasAttribute("checked")){this._checkedButton=e;let t=e.getAttribute("value");this.updateValue(t)}}disableButtons(){this._buttons?.forEach(e=>{e.setAttribute("disabled","")})}enableButtons(){this._buttons?.forEach(e=>{e.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}getNextFocusIndex(e){for(let t=e;t<this.childElementCount;t++){let s=this._buttons[t];if(this.isFocusable(s))return t}return-1}getPreviousFocusIndex(e){for(let t=e;t>=0;t--){let s=this._buttons[t];if(this.isFocusable(s))return t}return-1}isFocusable(e){return!e.hasAttribute("disabled")}updateChecked(){let e=this._checkedButton,t=this._buttons[this.focusIndex];this._checkedButton=t,e&&e!==t&&this.uncheckButton(e),t&&this.toggleButton(t)}toggleButton(e){e.hasAttribute("checked")?this.uncheckAllowed&&(this.uncheckButton(e),this._checkedButton=null,this.updateValue("")):(this.checkButton(e),this.updateValue(e.getAttribute("value")))}updateValue(e){this.value=e,this.fireValueChangeEvent()}updateFocused(e,t){e?.removeAttribute?.("focused"),t?.setAttribute?.("focused","")}checkButton(e){e.setAttribute("checked","")}uncheckButton(e){e.removeAttribute("checked")}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector("slot")),this._buttonsSlot}get selectedIndex(){return this._buttons.indexOf(this._checkedButton)}},C.ID="sd-radio-button-group",C.ensureDefined=()=>{kt.ensureDefined(),customElements.get(C.ID)||customElements.define(C.ID,C)},C);k([p({type:String,reflect:!0,attribute:!0})],b.prototype,"layout");k([p({type:String})],b.prototype,"value");k([p({type:Boolean,reflect:!0,attribute:"uncheck-allowed"})],b.prototype,"uncheckAllowed");k([p({type:Boolean,reflect:!0,attribute:!0})],b.prototype,"disabled");k([p({type:String})],b.prototype,"validationMessage");k([p({type:String})],b.prototype,"validationIconSrc");k([p({type:{fromAttribute(e){return e&&j[e.toLowerCase()]},toAttribute(e){return e&&e.toLowerCase()}},reflect:!0})],b.prototype,"validationLevel");var Pt=b;Pt.ensureDefined();return Lt(ae);})();
51
51
  /*! Bundled license information:
52
52
 
53
53
  @lit/reactive-element/css-tag.js:
@@ -58,20 +58,9 @@ var window;(window||={})["@cas-smartdesign/radio-button-group"]=(()=>{var Z=Obje
58
58
  *)
59
59
 
60
60
  @lit/reactive-element/reactive-element.js:
61
- (**
62
- * @license
63
- * Copyright 2017 Google LLC
64
- * SPDX-License-Identifier: BSD-3-Clause
65
- *)
66
-
67
61
  lit-html/lit-html.js:
68
- (**
69
- * @license
70
- * Copyright 2017 Google LLC
71
- * SPDX-License-Identifier: BSD-3-Clause
72
- *)
73
-
74
62
  lit-element/lit-element.js:
63
+ @lit/reactive-element/decorators/property.js:
75
64
  (**
76
65
  * @license
77
66
  * Copyright 2017 Google LLC
@@ -85,13 +74,6 @@ lit-html/is-server.js:
85
74
  * SPDX-License-Identifier: BSD-3-Clause
86
75
  *)
87
76
 
88
- @lit/reactive-element/decorators/property.js:
89
- (**
90
- * @license
91
- * Copyright 2017 Google LLC
92
- * SPDX-License-Identifier: BSD-3-Clause
93
- *)
94
-
95
77
  lit-html/directives/if-defined.js:
96
78
  (**
97
79
  * @license