@cas-smartdesign/lit-input 7.1.5 → 7.2.0

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,54 +1,57 @@
1
- var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var X=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var Ht=Object.getOwnPropertyNames;var Dt=Object.prototype.hasOwnProperty;var Rt=(i,t)=>{for(var e in t)X(i,e,{get:t[e],enumerable:!0})},It=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ht(t))!Dt.call(i,o)&&o!==e&&X(i,o,{get:()=>t[o],enumerable:!(s=Ot(t,o))||s.enumerable});return i};var Nt=i=>It(X({},"__esModule",{value:!0}),i);var oe={};Rt(oe,{default:()=>G});var j=window,F=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),vt=new WeakMap,O=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==J)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(F&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=vt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&vt.set(e,t))}return t}toString(){return this.cssText}},L=i=>new O(typeof i=="string"?i:i+"",void 0,J),H=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((s,o,r)=>s+(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)+i[r+1],i[0]);return new O(e,i,J)},Y=(i,t)=>{F?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let s=document.createElement("style"),o=j.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)})},q=F?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return L(e)})(i):i;var Z,W=window,ft=W.trustedTypes,zt=ft?ft.emptyScript:"",mt=W.reactiveElementPolyfillSupport,tt={toAttribute(i,t){switch(t){case Boolean:i=i?zt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},gt=(i,t)=>t!==i&&(t==t||i==i),Q={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:gt},et="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,s)=>{let o=this._$Ep(s,e);o!==void 0&&(this._$Ev.set(o,s),t.push(o))}),t}static createProperty(t,e=Q){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,s,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(o){let r=this[t];this[e]=o,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Q}static finalize(){if(this.hasOwnProperty(et))return!1;this[et]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of s)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(q(o))}else t!==void 0&&e.push(q(t));return e}static _$Ep(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 Y(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Q){var o;let r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){let n=(((o=s.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?s.converter:tt).toAttribute(e,s.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var s;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}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:tt;this._$El=r,this[r]=h.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,s){let o=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||gt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):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,s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(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(s)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var o;return(o=s.hostUpdated)===null||o===void 0?void 0:o.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};_[et]=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},mt?.({ReactiveElement:_}),((Z=W.reactiveElementVersions)!==null&&Z!==void 0?Z:W.reactiveElementVersions=[]).push("1.6.3");var it,K=window,M=K.trustedTypes,$t=M?M.createPolicy("lit-html",{createHTML:i=>i}):void 0,ot="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,Et="?"+x,Vt=`<${Et}>`,S=document,R=()=>S.createComment(""),I=i=>i===null||typeof i!="object"&&typeof i!="function",St=Array.isArray,Bt=i=>St(i)||typeof i?.[Symbol.iterator]=="function",st=`[
2
- \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,bt=/>/g,w=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,At=/"/g,Ct=/^(?:script|style|textarea|title)$/i,Lt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),y=Lt(1),he=Lt(2),C=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),xt=new WeakMap,E=S.createTreeWalker(S,129,null,!1);function Mt(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return $t!==void 0?$t.createHTML(t):t}var jt=(i,t)=>{let e=i.length-1,s=[],o,r=t===2?"<svg>":"",n=D;for(let h=0;h<e;h++){let l=i[h],a,u,p=-1,m=0;for(;m<l.length&&(n.lastIndex=m,u=n.exec(l),u!==null);)m=n.lastIndex,n===D?u[1]==="!--"?n=yt:u[1]!==void 0?n=bt:u[2]!==void 0?(Ct.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=o??D,p=-1):u[1]===void 0?p=-2:(p=n.lastIndex-u[2].length,a=u[1],n=u[3]===void 0?w:u[3]==='"'?At:_t):n===At||n===_t?n=w:n===yt||n===bt?n=D:(n=w,o=void 0);let $=n===w&&i[h+1].startsWith("/>")?" ":"";r+=n===D?l+Vt:p>=0?(s.push(a),l.slice(0,p)+ot+l.slice(p)+x+$):l+x+(p===-2?(s.push(void 0),h):$)}return[Mt(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),s]},N=class i{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let r=0,n=0,h=t.length-1,l=this.parts,[a,u]=jt(t,e);if(this.el=i.createElement(a,s),E.currentNode=this.el.content,e===2){let p=this.el.content,m=p.firstChild;m.remove(),p.append(...m.childNodes)}for(;(o=E.nextNode())!==null&&l.length<h;){if(o.nodeType===1){if(o.hasAttributes()){let p=[];for(let m of o.getAttributeNames())if(m.endsWith(ot)||m.startsWith(x)){let $=u[n++];if(p.push(m),$!==void 0){let kt=o.getAttribute($.toLowerCase()+ot).split(x),B=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:B[2],strings:kt,ctor:B[1]==="."?rt:B[1]==="?"?lt:B[1]==="@"?at:T})}else l.push({type:6,index:r})}for(let m of p)o.removeAttribute(m)}if(Ct.test(o.tagName)){let p=o.textContent.split(x),m=p.length-1;if(m>0){o.textContent=M?M.emptyScript:"";for(let $=0;$<m;$++)o.append(p[$],R()),E.nextNode(),l.push({type:2,index:++r});o.append(p[m],R())}}}else if(o.nodeType===8)if(o.data===Et)l.push({type:2,index:r});else{let p=-1;for(;(p=o.data.indexOf(x,p+1))!==-1;)l.push({type:7,index:r}),p+=x.length-1}r++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function U(i,t,e=i,s){var o,r,n,h;if(t===C)return t;let l=s!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[s]:e._$Cl,a=I(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(i),l._$AT(i,e,s)),s!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=U(i,l._$AS(i,t.values),l,s)),t}var nt=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:s},parts:o}=this._$AD,r=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(s,!0);E.currentNode=r;let n=E.nextNode(),h=0,l=0,a=o[0];for(;a!==void 0;){if(h===a.index){let u;a.type===2?u=new z(n,n.nextSibling,this,t):a.type===1?u=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(u=new dt(n,this,t)),this._$AV.push(u),a=o[++l]}h!==a?.index&&(n=E.nextNode(),h++)}return E.currentNode=S,r}v(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},z=class i{constructor(t,e,s,o){var r;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,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),I(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Bt(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!==c&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;let{values:s,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=N.createElement(Mt(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{let n=new nt(r,this),h=n.u(this.options);n.v(s),this.$(h),this._$AH=n}}_$AC(t){let e=xt.get(t.strings);return e===void 0&&xt.set(t.strings,e=new N(t)),e}T(t){St(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let r of t)o===e.length?e.push(s=new i(this.k(R()),this.k(R()),this,this.options)):s=e[o],s._$AI(r),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.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))}},T=class{constructor(t,e,s,o,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,o){let r=this.strings,n=!1;if(r===void 0)t=U(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==C,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[s+l],e,l),a===C&&(a=this._$AH[l]),n||(n=!I(a)||a!==this._$AH[l]),a===c?t=c:t!==c&&(t+=(a??"")+r[l+1]),this._$AH[l]=a}n&&!o&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Ft=M?M.emptyScript:"",lt=class extends T{constructor(){super(...arguments),this.type=4}j(t){t&&t!==c?this.element.setAttribute(this.name,Ft):this.element.removeAttribute(this.name)}},at=class extends T{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=U(this,t,e,0))!==null&&s!==void 0?s:c)===C)return;let o=this._$AH,r=t===c&&o!==c||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==c&&(o===c||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},dt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}};var wt=K.litHtmlPolyfillSupport;wt?.(N,z),((it=K.litHtmlVersions)!==null&&it!==void 0?it:K.litHtmlVersions=[]).push("2.8.0");var Ut=(i,t,e)=>{var s,o;let r=(s=e?.renderBefore)!==null&&s!==void 0?s:t,n=r._$litPart$;if(n===void 0){let h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;r._$litPart$=n=new z(t.insertBefore(R(),h),h,void 0,e??{})}return n._$AI(i),n};var ht,ct;var g=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}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 C}};g.finalized=!0,g._$litElement$=!0,(ht=globalThis.litElementHydrateSupport)===null||ht===void 0||ht.call(globalThis,{LitElement:g});var Tt=globalThis.litElementPolyfillSupport;Tt?.({LitElement:g});((ct=globalThis.litElementVersions)!==null&&ct!==void 0?ct:globalThis.litElementVersions=[]).push("3.3.3");var qt=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,i)}}:{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,i)}},Wt=(i,t,e)=>{t.constructor.createProperty(e,i)};function d(i){return(t,e)=>e!==void 0?Wt(i,t,e):qt(i,t)}var A=i=>i??c;var Kt=":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}",Gt="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",Jt="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",Yt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,pt=(i,t,e,s)=>{for(var o=s>1?void 0:s?Zt(t,e):t,r=i.length-1,n;r>=0;r--)(n=i[r])&&(o=(s?n(t,e,o):n(o))||o);return s&&o&&Yt(t,e,o),o},P,V=(P=class extends g{static parseLevel(i){if(i){let t=Object.keys(k).find(e=>e.toLowerCase()===i.toLowerCase());return t&&k[t]}}static get styles(){return[H`
1
+ var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var X=Object.defineProperty;var Ot=Object.getOwnPropertyDescriptor;var Ht=Object.getOwnPropertyNames;var Dt=Object.prototype.hasOwnProperty;var Rt=(i,t)=>{for(var e in t)X(i,e,{get:t[e],enumerable:!0})},It=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ht(t))!Dt.call(i,o)&&o!==e&&X(i,o,{get:()=>t[o],enumerable:!(s=Ot(t,o))||s.enumerable});return i};var Nt=i=>It(X({},"__esModule",{value:!0}),i);var oe={};Rt(oe,{default:()=>G});var F=window,j=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),vt=new WeakMap,O=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==J)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(j&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=vt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&vt.set(e,t))}return t}toString(){return this.cssText}},L=i=>new O(typeof i=="string"?i:i+"",void 0,J),H=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((s,o,r)=>s+(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)+i[r+1],i[0]);return new O(e,i,J)},Y=(i,t)=>{j?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let s=document.createElement("style"),o=F.litNonce;o!==void 0&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)})},q=j?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return L(e)})(i):i;var Z,W=window,ft=W.trustedTypes,Vt=ft?ft.emptyScript:"",mt=W.reactiveElementPolyfillSupport,tt={toAttribute(i,t){switch(t){case Boolean:i=i?Vt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},gt=(i,t)=>t!==i&&(t==t||i==i),Q={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:gt},et="finalized",A=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,s)=>{let o=this._$Ep(s,e);o!==void 0&&(this._$Ev.set(o,s),t.push(o))}),t}static createProperty(t,e=Q){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,s,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(o){let r=this[t];this[e]=o,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Q}static finalize(){if(this.hasOwnProperty(et))return!1;this[et]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of s)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let o of s)e.unshift(q(o))}else t!==void 0&&e.push(q(t));return e}static _$Ep(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 Y(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Q){var o;let r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){let n=(((o=s.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?s.converter:tt).toAttribute(e,s.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var s;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}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:tt;this._$El=r,this[r]=h.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,s){let o=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||gt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):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,s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(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(s)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var o;return(o=s.hostUpdated)===null||o===void 0?void 0:o.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};A[et]=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},mt?.({ReactiveElement:A}),((Z=W.reactiveElementVersions)!==null&&Z!==void 0?Z:W.reactiveElementVersions=[]).push("1.6.3");var it,K=window,M=K.trustedTypes,yt=M?M.createPolicy("lit-html",{createHTML:i=>i}):void 0,ot="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,Et="?"+x,zt=`<${Et}>`,S=document,R=()=>S.createComment(""),I=i=>i===null||typeof i!="object"&&typeof i!="function",St=Array.isArray,Bt=i=>St(i)||typeof i?.[Symbol.iterator]=="function",st=`[
2
+ \f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$t=/-->/g,bt=/>/g,w=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,At=/"/g,Ct=/^(?:script|style|textarea|title)$/i,Lt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),b=Lt(1),he=Lt(2),C=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),xt=new WeakMap,E=S.createTreeWalker(S,129,null,!1);function Mt(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return yt!==void 0?yt.createHTML(t):t}var Ft=(i,t)=>{let e=i.length-1,s=[],o,r=t===2?"<svg>":"",n=D;for(let h=0;h<e;h++){let a=i[h],l,v,f=-1,m=0;for(;m<a.length&&(n.lastIndex=m,v=n.exec(a),v!==null);)m=n.lastIndex,n===D?v[1]==="!--"?n=$t:v[1]!==void 0?n=bt:v[2]!==void 0?(Ct.test(v[2])&&(o=RegExp("</"+v[2],"g")),n=w):v[3]!==void 0&&(n=w):n===w?v[0]===">"?(n=o??D,f=-1):v[1]===void 0?f=-2:(f=n.lastIndex-v[2].length,l=v[1],n=v[3]===void 0?w:v[3]==='"'?At:_t):n===At||n===_t?n=w:n===$t||n===bt?n=D:(n=w,o=void 0);let $=n===w&&i[h+1].startsWith("/>")?" ":"";r+=n===D?a+zt:f>=0?(s.push(l),a.slice(0,f)+ot+a.slice(f)+x+$):a+x+(f===-2?(s.push(void 0),h):$)}return[Mt(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),s]},N=class i{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let r=0,n=0,h=t.length-1,a=this.parts,[l,v]=Ft(t,e);if(this.el=i.createElement(l,s),E.currentNode=this.el.content,e===2){let f=this.el.content,m=f.firstChild;m.remove(),f.append(...m.childNodes)}for(;(o=E.nextNode())!==null&&a.length<h;){if(o.nodeType===1){if(o.hasAttributes()){let f=[];for(let m of o.getAttributeNames())if(m.endsWith(ot)||m.startsWith(x)){let $=v[n++];if(f.push(m),$!==void 0){let Pt=o.getAttribute($.toLowerCase()+ot).split(x),B=/([.?@])?(.*)/.exec($);a.push({type:1,index:r,name:B[2],strings:Pt,ctor:B[1]==="."?rt:B[1]==="?"?at:B[1]==="@"?lt:T})}else a.push({type:6,index:r})}for(let m of f)o.removeAttribute(m)}if(Ct.test(o.tagName)){let f=o.textContent.split(x),m=f.length-1;if(m>0){o.textContent=M?M.emptyScript:"";for(let $=0;$<m;$++)o.append(f[$],R()),E.nextNode(),a.push({type:2,index:++r});o.append(f[m],R())}}}else if(o.nodeType===8)if(o.data===Et)a.push({type:2,index:r});else{let f=-1;for(;(f=o.data.indexOf(x,f+1))!==-1;)a.push({type:7,index:r}),f+=x.length-1}r++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function U(i,t,e=i,s){var o,r,n,h;if(t===C)return t;let a=s!==void 0?(o=e._$Co)===null||o===void 0?void 0:o[s]:e._$Cl,l=I(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((r=a?._$AO)===null||r===void 0||r.call(a,!1),l===void 0?a=void 0:(a=new l(i),a._$AT(i,e,s)),s!==void 0?((n=(h=e)._$Co)!==null&&n!==void 0?n:h._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=U(i,a._$AS(i,t.values),a,s)),t}var nt=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:s},parts:o}=this._$AD,r=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(s,!0);E.currentNode=r;let n=E.nextNode(),h=0,a=0,l=o[0];for(;l!==void 0;){if(h===l.index){let v;l.type===2?v=new V(n,n.nextSibling,this,t):l.type===1?v=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(v=new dt(n,this,t)),this._$AV.push(v),l=o[++a]}h!==l?.index&&(n=E.nextNode(),h++)}return E.currentNode=S,r}v(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},V=class i{constructor(t,e,s,o){var r;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,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),I(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Bt(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!==p&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;let{values:s,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=N.createElement(Mt(o.h,o.h[0]),this.options)),o);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{let n=new nt(r,this),h=n.u(this.options);n.v(s),this.$(h),this._$AH=n}}_$AC(t){let e=xt.get(t.strings);return e===void 0&&xt.set(t.strings,e=new N(t)),e}T(t){St(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let r of t)o===e.length?e.push(s=new i(this.k(R()),this.k(R()),this,this.options)):s=e[o],s._$AI(r),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.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))}},T=class{constructor(t,e,s,o,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,o){let r=this.strings,n=!1;if(r===void 0)t=U(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==C,n&&(this._$AH=t);else{let h=t,a,l;for(t=r[0],a=0;a<r.length-1;a++)l=U(this,h[s+a],e,a),l===C&&(l=this._$AH[a]),n||(n=!I(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+r[a+1]),this._$AH[a]=l}n&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},jt=M?M.emptyScript:"",at=class extends T{constructor(){super(...arguments),this.type=4}j(t){t&&t!==p?this.element.setAttribute(this.name,jt):this.element.removeAttribute(this.name)}},lt=class extends T{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=U(this,t,e,0))!==null&&s!==void 0?s:p)===C)return;let o=this._$AH,r=t===p&&o!==p||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==p&&(o===p||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},dt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}};var wt=K.litHtmlPolyfillSupport;wt?.(N,V),((it=K.litHtmlVersions)!==null&&it!==void 0?it:K.litHtmlVersions=[]).push("2.8.0");var Ut=(i,t,e)=>{var s,o;let r=(s=e?.renderBefore)!==null&&s!==void 0?s:t,n=r._$litPart$;if(n===void 0){let h=(o=e?.renderBefore)!==null&&o!==void 0?o:null;r._$litPart$=n=new V(t.insertBefore(R(),h),h,void 0,e??{})}return n._$AI(i),n};var ht,ct;var y=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}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 C}};y.finalized=!0,y._$litElement$=!0,(ht=globalThis.litElementHydrateSupport)===null||ht===void 0||ht.call(globalThis,{LitElement:y});var Tt=globalThis.litElementPolyfillSupport;Tt?.({LitElement:y});((ct=globalThis.litElementVersions)!==null&&ct!==void 0?ct:globalThis.litElementVersions=[]).push("3.3.3");var qt=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,i)}}:{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,i)}},Wt=(i,t,e)=>{t.constructor.createProperty(e,i)};function d(i){return(t,e)=>e!==void 0?Wt(i,t,e):qt(i,t)}var g=i=>i??p;var Kt=":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}",Gt="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",Jt="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",Yt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,ut=(i,t,e,s)=>{for(var o=s>1?void 0:s?Zt(t,e):t,r=i.length-1,n;r>=0;r--)(n=i[r])&&(o=(s?n(t,e,o):n(o))||o);return s&&o&&Yt(t,e,o),o},k,z=(k=class extends y{static parseLevel(i){if(i){let t=Object.keys(P).find(e=>e.toLowerCase()===i.toLowerCase());return t&&P[t]}}static get styles(){return[H`
4
4
  ${L(Kt)}
5
- `]}render(){return y`${this.iconToUse&&y`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(P.parseLevel(this.level)){case"warn":return Jt;case"suggest":return Xt;case"error":return Gt;default:return null}}},P.ID="sd-field-validation-message",P.levelConverter={fromAttribute(i){return P.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},P);pt([d({type:String,attribute:!0})],V.prototype,"message",2);pt([d({type:String,attribute:!0})],V.prototype,"icon",2);pt([d({converter:V.levelConverter,reflect:!0})],V.prototype,"level",2);var ut=V,k=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(k||{});customElements.get(ut.ID)||customElements.define(ut.ID,ut);var Qt=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}:host([validationlevel=warn]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn]) .label,:host([validationlevel=warn]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest]) .label,:host([validationlevel=suggest]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error]) .label,:host([validationlevel=error]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::-ms-clear{display:none}.input::placeholder{color:var(--sd-input-color, #767676)}.input:-ms-input-placeholder{color:var(--sd-input-color, #767676)}.input::-ms-input-placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,f=(i,t,e,s)=>{for(var o=s>1?void 0:s?ee(t,e):t,r=i.length-1,n;r>=0;r--)(n=i[r])&&(o=(s?n(t,e,o):n(o))||o);return s&&o&&te(t,e,o),o},ie="sd-lit-input",Pt="delegatesFocus"in window.ShadowRoot.prototype,se=0,b,v=(b=class extends g{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let i=se++;this._validationMessageId=b.ID+"_message_"+i,this._inputId=b.ID+"_input_"+i,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(i){super.firstUpdated(i),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),Pt||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.addEventListener("keydown",t=>{var e,s;t.key=="Enter"&&((s=(e=this._internals)==null?void 0:e.form)==null||s.requestSubmit())}),this._initialized=!0}initAutocompleted(i){let t=e=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(e.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(e.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(i,"animationstart",t)):i.addEventListener("animationstart",t)}get activeShadyDOM(){let i=window.ShadyDOM;return i&&i.inUse?i:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(i){i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=i)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(i){this.currentText=i||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(i,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(i,t)})}static get styles(){return[H`
5
+ `]}render(){return b`${this.iconToUse&&b`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(k.parseLevel(this.level)){case"warn":return Jt;case"suggest":return Xt;case"error":return Gt;default:return null}}},k.ID="sd-field-validation-message",k.levelConverter={fromAttribute(i){return k.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},k);ut([d({type:String,attribute:!0})],z.prototype,"message",2);ut([d({type:String,attribute:!0})],z.prototype,"icon",2);ut([d({converter:z.levelConverter,reflect:!0})],z.prototype,"level",2);var pt=z,P=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(P||{});customElements.get(pt.ID)||customElements.define(pt.ID,pt);var Qt=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,u=(i,t,e,s)=>{for(var o=s>1?void 0:s?ee(t,e):t,r=i.length-1,n;r>=0;r--)(n=i[r])&&(o=(s?n(t,e,o):n(o))||o);return s&&o&&te(t,e,o),o},ie="sd-lit-input",kt="delegatesFocus"in window.ShadowRoot.prototype,se=0,_,c=(_=class extends y{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let i=se++;this._validationMessageId=_.ID+"_message_"+i,this._inputId=_.ID+"_input_"+i,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(i){super.firstUpdated(i),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),kt||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",t=>{var e,s;t.key=="Enter"&&((s=(e=this._internals)==null?void 0:e.form)==null||s.requestSubmit())}),this._initialized=!0}initAutocompleted(i){let t=e=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(e.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(e.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(i,"animationstart",t)):i.addEventListener("animationstart",t)}get activeShadyDOM(){let i=window.ShadyDOM;return i&&i.inUse?i:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(i){i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=i)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(i){this.currentText=i||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(i,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(i,t)})}static get styles(){return[H`
6
6
  ${L(Qt)}
7
- `]}render(){let i;return this.rows===1?i=y`
7
+ `]}render(){var i;let t,e=this.validationMessage||((i=this._internals)==null?void 0:i.validationMessage);return this.rows===1?t=b`
8
8
  <input
9
9
  id=${this._inputId}
10
10
  class="input"
11
11
  .type=${this.type}
12
- placeholder=${A(this.placeholder||void 0)}
13
- name=${A(this.name||void 0)}
12
+ placeholder=${g(this.placeholder||void 0)}
13
+ name=${g(this.name||void 0)}
14
14
  aria-disabled=${this.effectiveDisabled}
15
15
  autocomplete=${this.autocomplete}
16
16
  ?disabled=${this.inactive}
17
17
  ?readonly=${this.readonly||this.effectiveDisabled}
18
18
  ?required=${this.required}
19
- maxlength=${this.maxlength>0?this.maxlength:b.DEFAULT_MAX_LENGTH}
19
+ maxlength=${this.maxlength>0?this.maxlength:_.DEFAULT_MAX_LENGTH}
20
20
  aria-describedby=${this._validationMessageId}
21
- aria-invalid=${A(!!this.validationMessage||void 0)}
22
- aria-label=${A(this.sdAriaLabel||void 0)}
21
+ aria-invalid=${g(!!e||void 0)}
22
+ aria-label=${g(this.sdAriaLabel||void 0)}
23
+ min=${g(this.min||void 0)}
24
+ max=${g(this.max||void 0)}
25
+ pattern=${g(this.pattern||void 0)}
23
26
  />
24
- `:i=y`
27
+ `:t=b`
25
28
  <textarea
26
29
  id=${this._inputId}
27
30
  class="input"
28
- placeholder=${A(this.placeholder||void 0)}
29
- name=${A(this.name||void 0)}
31
+ placeholder=${g(this.placeholder||void 0)}
32
+ name=${g(this.name||void 0)}
30
33
  aria-disabled=${this.effectiveDisabled}
31
34
  autocomplete=${this.autocomplete}
32
35
  ?disabled=${this.inactive}
33
36
  ?readonly=${this.readonly||this.effectiveDisabled}
34
37
  ?required=${this.required}
35
- maxlength=${this.maxlength>0?this.maxlength:b.DEFAULT_MAX_LENGTH}
38
+ maxlength=${this.maxlength>0?this.maxlength:_.DEFAULT_MAX_LENGTH}
36
39
  rows=${this.rows}
37
40
  aria-describedby=${this._validationMessageId}
38
- aria-invalid=${A(!!this.validationMessage||void 0)}
39
- aria-label=${A(this.sdAriaLabel||void 0)}
41
+ aria-invalid=${g(!!e||void 0)}
42
+ aria-label=${g(this.sdAriaLabel||void 0)}
40
43
  ></textarea>
41
- `,y`
42
- ${this.label?y` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:c}
44
+ `,b`
45
+ ${this.label?b` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:p}
43
46
  <div class="input-wrapper">
44
47
  <span class="prefix"><slot name="prefix"></slot></span>
45
48
  <div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
46
- ${this.label&&y`
49
+ ${this.label&&b`
47
50
  <label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
48
51
  >${this.label}</label
49
52
  >
50
53
  `}
51
- ${i}
54
+ ${t}
52
55
  </div>
53
56
  <span class="suffix"><slot name="suffix"></slot></span>
54
57
  </div>
@@ -57,18 +60,18 @@ var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var X=Object.define
57
60
  <div class="focused-line"></div>
58
61
  </div>
59
62
  <div class="validation-message-wrapper" aria-hidden="true">
60
- ${this.validationMessage&&y`
63
+ ${e&&b`
61
64
  <sd-field-validation-message
62
65
  id=${this._validationMessageId}
63
66
  class="validation-message"
64
- .message=${this.validationMessage}
67
+ .message=${e}
65
68
  .icon=${this.validationIconSrc}
66
69
  .level=${this.validationLevel}
67
70
  >
68
71
  </sd-field-validation-message>
69
72
  `}
70
73
  </div>
71
- `}updated(i){super.updated(i),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0)}update(i){var t,e;if(super.update(i),i.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=k.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(e=this._internals)==null||e.setValidity({}))),this._initialized&&i.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(i){this.dispatchEvent(new CustomEvent(`${i?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted}setFormValue(i){var t;(t=this._internals)==null||t.setFormValue(i)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(i){this.effectiveDisabled=i||this.hasAttribute("disabled")}formAssociatedCallback(i){this._needsAutocompletedCheck=!0}formStateRestoreCallback(i,t){typeof i=="string"&&(this.value=i)}},b.ID=ie,b.DEFAULT_MAX_LENGTH=524288,b.formAssociated=!0,b.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:Pt},b);f([d({type:String,reflect:!0})],v.prototype,"label",2);f([d({type:String,attribute:!0})],v.prototype,"validationMessage",2);f([d({type:String,attribute:!0})],v.prototype,"validationIconSrc",2);f([d({type:k,attribute:!0,reflect:!0})],v.prototype,"validationLevel",2);f([d({type:String,hasChanged(i,t){return t!=null&&t!=i}})],v.prototype,"currentText",2);f([d({type:Boolean,attribute:!0})],v.prototype,"alwaysFloatLabel",2);f([d({type:Boolean,attribute:!0})],v.prototype,"autocompleted",2);f([d({type:Number,attribute:!0})],v.prototype,"rows",2);f([d({type:Boolean,reflect:!0,attribute:"effective-disabled"})],v.prototype,"effectiveDisabled",2);f([d({type:Boolean,reflect:!0,attribute:"extended-prefix"})],v.prototype,"extendedPrefix",2);f([d({type:String,reflect:!0})],v.prototype,"type",2);f([d({type:String,reflect:!0})],v.prototype,"placeholder",2);f([d({type:String,reflect:!0})],v.prototype,"sdAriaLabel",2);f([d({type:Number,reflect:!0})],v.prototype,"maxlength",2);f([d({type:Boolean,reflect:!0})],v.prototype,"readonly",2);f([d({type:Boolean,reflect:!0})],v.prototype,"required",2);f([d({type:String,reflect:!0})],v.prototype,"name",2);f([d({type:Boolean,reflect:!0})],v.prototype,"inactive",2);f([d({type:String,attribute:!0})],v.prototype,"autocomplete",2);var G=v;customElements.get(G.ID)||customElements.define(G.ID,G);return Nt(oe);})();
74
+ `}updated(i){super.updated(i),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((i.has("min")||i.has("max")||i.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(i){var t,e;if(super.update(i),i.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=P.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(e=this._internals)==null||e.setValidity(this.inputElement.validity,this.inputElement.validationMessage))),this._initialized&&i.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(i){this.dispatchEvent(new CustomEvent(`${i?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);let i=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",i==null?null:i.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(i){var t;(t=this._internals)==null||t.setFormValue(i)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(i){this.effectiveDisabled=i||this.hasAttribute("disabled")}formAssociatedCallback(i){this._needsAutocompletedCheck=!0}formStateRestoreCallback(i,t){typeof i=="string"&&(this.value=i)}},_.ID=ie,_.DEFAULT_MAX_LENGTH=524288,_.formAssociated=!0,_.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:kt},_);u([d({type:String,reflect:!0})],c.prototype,"label",2);u([d({type:String,attribute:!0})],c.prototype,"validationMessage",2);u([d({type:String,attribute:!0})],c.prototype,"validationIconSrc",2);u([d({type:P,attribute:!0,reflect:!0})],c.prototype,"validationLevel",2);u([d({type:String,hasChanged(i,t){return t!=null&&t!=i}})],c.prototype,"currentText",2);u([d({type:Boolean,attribute:!0})],c.prototype,"alwaysFloatLabel",2);u([d({type:Boolean,attribute:!0})],c.prototype,"autocompleted",2);u([d({type:Number,attribute:!0})],c.prototype,"rows",2);u([d({type:Boolean,reflect:!0,attribute:"effective-disabled"})],c.prototype,"effectiveDisabled",2);u([d({type:Boolean,reflect:!0,attribute:"extended-prefix"})],c.prototype,"extendedPrefix",2);u([d({type:String,reflect:!0})],c.prototype,"type",2);u([d({type:String,reflect:!0})],c.prototype,"placeholder",2);u([d({type:String,reflect:!0})],c.prototype,"sdAriaLabel",2);u([d({type:Number,reflect:!0})],c.prototype,"maxlength",2);u([d({type:Boolean,reflect:!0})],c.prototype,"readonly",2);u([d({type:Boolean,reflect:!0})],c.prototype,"required",2);u([d({type:String,reflect:!0})],c.prototype,"name",2);u([d({type:Boolean,reflect:!0})],c.prototype,"inactive",2);u([d({type:String,attribute:!0})],c.prototype,"autocomplete",2);u([d({type:String,attribute:!0})],c.prototype,"min",2);u([d({type:String,attribute:!0})],c.prototype,"max",2);u([d({type:String,attribute:!0})],c.prototype,"pattern",2);var G=c;customElements.get(G.ID)||customElements.define(G.ID,G);return Nt(oe);})();
72
75
  /*! Bundled license information:
73
76
 
74
77
  @lit/reactive-element/css-tag.js: