@cas-smartdesign/lit-input 7.4.1 → 7.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -399,7 +399,7 @@ setupValidation("suggestion", ValidationLevel.Suggest);
399
399
  \f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qn=/-->/g,Yn=/>/g,Ce=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
400
400
  \f\r"'\`<>=]|("|')|))|$)`,"g"),ei=/'/g,ti=/"/g,Di=/^(?:script|style|textarea|title)$/i,$r=i=>(e,...n)=>({_$litType$:i,strings:e,values:n}),Ee=$r(1),Be=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),ni=new WeakMap,Re=Ne.createTreeWalker(Ne,129);function zi(i,e){if(!wn(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xn!==void 0?Xn.createHTML(e):e}const Or=(i,e)=>{const n=i.length-1,r=[];let t,u=e===2?"<svg>":e===3?"<math>":"",a=Ge;for(let f=0;f<n;f++){const b=i[f];let d,s,c=-1,o=0;for(;o<b.length&&(a.lastIndex=o,s=a.exec(b),s!==null);)o=a.lastIndex,a===Ge?s[1]==="!--"?a=Qn:s[1]!==void 0?a=Yn:s[2]!==void 0?(Di.test(s[2])&&(t=RegExp("</"+s[2],"g")),a=Ce):s[3]!==void 0&&(a=Ce):a===Ce?s[0]===">"?(a=t??Ge,c=-1):s[1]===void 0?c=-2:(c=a.lastIndex-s[2].length,d=s[1],a=s[3]===void 0?Ce:s[3]==='"'?ti:ei):a===ti||a===ei?a=Ce:a===Qn||a===Yn?a=Ge:(a=Ce,t=void 0);const l=a===Ce&&i[f+1].startsWith("/>")?" ":"";u+=a===Ge?b+Ar:c>=0?(r.push(d),b.slice(0,c)+Ti+b.slice(c)+Se+l):b+Se+(c===-2?f:l)}return[zi(i,u+(i[n]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ye{constructor({strings:e,_$litType$:n},r){let t;this.parts=[];let u=0,a=0;const f=e.length-1,b=this.parts,[d,s]=Or(e,n);if(this.el=Ye.createElement(d,r),Re.currentNode=this.el.content,n===2||n===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=Re.nextNode())!==null&&b.length<f;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Ti)){const o=s[a++],l=t.getAttribute(c).split(Se),p=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:p[2],strings:l,ctor:p[1]==="."?Rr:p[1]==="?"?Mr:p[1]==="@"?Nr:vt}),t.removeAttribute(c)}else c.startsWith(Se)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Di.test(t.tagName)){const c=t.textContent.split(Se),o=c.length-1;if(o>0){t.textContent=mt?mt.emptyScript:"";for(let l=0;l<o;l++)t.append(c[l],Xe()),Re.nextNode(),b.push({type:2,index:++u});t.append(c[o],Xe())}}}else if(t.nodeType===8)if(t.data===ji)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(Se,c+1))!==-1;)b.push({type:7,index:u}),c+=Se.length-1}u++}}static createElement(e,n){const r=Ne.createElement("template");return r.innerHTML=e,r}}function qe(i,e,n=i,r){if(e===Be)return e;let t=r!==void 0?n._$Co?.[r]:n._$Cl;const u=Qe(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(i),t._$AT(i,n,r)),r!==void 0?(n._$Co??=[])[r]=t:n._$Cl=t),t!==void 0&&(e=qe(i,t._$AS(i,e.values),t,r)),e}class Cr{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:n},parts:r}=this._$AD,t=(e?.creationScope??Ne).importNode(n,!0);Re.currentNode=t;let u=Re.nextNode(),a=0,f=0,b=r[0];for(;b!==void 0;){if(a===b.index){let d;b.type===2?d=new tt(u,u.nextSibling,this,e):b.type===1?d=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(d=new Pr(u,this,e)),this._$AV.push(d),b=r[++f]}a!==b?.index&&(u=Re.nextNode(),a++)}return Re.currentNode=Ne,t}p(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,n,r,t){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&e?.nodeType===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=qe(this,e,n),Qe(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):kr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ie&&Qe(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ne.createTextNode(e)),this._$AH=e}$(e){const{values:n,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Ye.createElement(zi(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(n);else{const u=new Cr(t,this),a=u.u(this.options);u.p(n),this.T(a),this._$AH=u}}_$AC(e){let n=ni.get(e.strings);return n===void 0&&ni.set(e.strings,n=new Ye(e)),n}k(e){wn(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,t=0;for(const u of e)t===n.length?n.push(r=new tt(this.O(Xe()),this.O(Xe()),this,this.options)):r=n[t],r._$AI(u),t++;t<n.length&&(this._$AR(r&&r._$AB.nextSibling,t),n.length=t)}_$AR(e=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class vt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,n,r,t,u){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=n,this._$AM=t,this.options=u,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,n=this,r,t){const u=this.strings;let a=!1;if(u===void 0)e=qe(this,e,n,0),a=!Qe(e)||e!==this._$AH&&e!==Be,a&&(this._$AH=e);else{const f=e;let b,d;for(e=u[0],b=0;b<u.length-1;b++)d=qe(this,f[r+b],n,b),d===Be&&(d=this._$AH[b]),a||=!Qe(d)||d!==this._$AH[b],d===ie?e=ie:e!==ie&&(e+=(d??"")+u[b+1]),this._$AH[b]=d}a&&!t&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Rr extends vt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class Mr extends vt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class Nr extends vt{constructor(e,n,r,t,u){super(e,n,r,t,u),this.type=5}_$AI(e,n=this){if((e=qe(this,e,n,0)??ie)===Be)return;const r=this._$AH,t=e===ie&&r!==ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,u=e!==ie&&(r===ie||t);t&&this.element.removeEventListener(this.name,this,r),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}let Pr=class{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){qe(this,e)}};const Lr=vn.litHtmlPolyfillSupport;Lr?.(Ye,tt),(vn.litHtmlVersions??=[]).push("3.3.1");const Ir=(i,e,n)=>{const r=n?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const u=n?.renderBefore??null;r._$litPart$=t=new tt(e.insertBefore(Xe(),u),u,void 0,n??{})}return t._$AI(i),t};const xn=globalThis;class Me extends Ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ir(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Be}}Me._$litElement$=!0,Me.finalized=!0,xn.litElementHydrateSupport?.({LitElement:Me});const Tr=xn.litElementPolyfillSupport;Tr?.({LitElement:Me});(xn.litElementVersions??=[]).push("4.2.1");const jr={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:yn},Dr=(i=jr,e,n)=>{const{kind:r,metadata:t}=n;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),r==="setter"&&((i=Object.create(i)).wrapped=!0),u.set(n.name,i),r==="accessor"){const{name:a}=n;return{set(f){const b=e.get.call(this);e.set.call(this,f),this.requestUpdate(a,b,i)},init(f){return f!==void 0&&this.C(a,void 0,i,f),f}}}if(r==="setter"){const{name:a}=n;return function(f){const b=this[a];e.call(this,f),this.requestUpdate(a,b,i)}}throw Error("Unsupported decorator location: "+r)};function Z(i){return(e,n)=>typeof n=="object"?Dr(i,e,n):((r,t,u)=>{const a=t.hasOwnProperty(u);return t.constructor.createProperty(u,r),a?Object.getOwnPropertyDescriptor(t,u):void 0})(i,e,n)}const pe=i=>i??ie,zr=":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}",Ur="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",Br="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",qr="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";var Fr=Object.defineProperty,_n=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&Fr(e,n,t),t},ze;const et=(ze=class extends Me{static parseLevel(i){if(i){const e=Object.keys(gt).find(n=>n.toLowerCase()===i.toLowerCase());return e&&gt[e]}}static get styles(){return[Ii`
401
401
  ${bn(zr)}
402
- `]}render(){return Ee`${this.iconToUse&&Ee`<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(ze.parseLevel(this.level)){case"warn":return qr;case"suggest":return Br;case"error":return Ur;default:return null}}},ze.ID="sd-field-validation-message",ze.levelConverter={fromAttribute(i){return ze.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},ze);_n([Z({type:String,attribute:!0})],et.prototype,"message");_n([Z({type:String,attribute:!0})],et.prototype,"icon");_n([Z({converter:et.levelConverter,reflect:!0})],et.prototype,"level");let jt=et;var gt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(gt||{});customElements.get(jt.ID)||customElements.define(jt.ID,jt);const Hr=":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{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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}";var Wr=Object.defineProperty,Q=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&Wr(e,n,t),t};const Vr="sd-lit-input",ii="delegatesFocus"in window.ShadowRoot.prototype;let Gr=0;var de;const X=(de=class extends Me{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const e=Gr++;this._validationMessageId=de.ID+"_message_"+e,this._inputId=de.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=n=>{this.autocompleted=n.inputType==="insertReplacementText"||!("data"in n),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ii||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",n=>{n.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",n=>{n.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(e){const n=r=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(r.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(r.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",n)):e.addEventListener("animationstart",n)}get activeShadyDOM(){const e=window.ShadyDOM;return e&&e.inUse?e: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(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}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(e){this.currentText=e||"",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(e,n){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,n)})}static get styles(){return[Ii`
402
+ `]}render(){return Ee`${this.iconToUse&&Ee`<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(ze.parseLevel(this.level)){case"warn":return qr;case"suggest":return Br;case"error":return Ur;default:return null}}},ze.ID="sd-field-validation-message",ze.levelConverter={fromAttribute(i){return ze.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},ze);_n([Z({type:String,attribute:!0})],et.prototype,"message");_n([Z({type:String,attribute:!0})],et.prototype,"icon");_n([Z({converter:et.levelConverter,reflect:!0})],et.prototype,"level");let jt=et;var gt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(gt||{});customElements.get(jt.ID)||customElements.define(jt.ID,jt);const Hr=":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{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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}";var Wr=Object.defineProperty,Q=(i,e,n,r)=>{for(var t=void 0,u=i.length-1,a;u>=0;u--)(a=i[u])&&(t=a(e,n,t)||t);return t&&Wr(e,n,t),t};const Vr="sd-lit-input",ii="delegatesFocus"in window.ShadowRoot.prototype;let Gr=0;var de;const X=(de=class extends Me{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const e=Gr++;this._validationMessageId=de.ID+"_message_"+e,this._inputId=de.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=n=>{this.autocompleted=n.inputType==="insertReplacementText"||!("data"in n),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ii||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",n=>{n.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",n=>{this.rows==1&&n.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(e){const n=r=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(r.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(r.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",n)):e.addEventListener("animationstart",n)}get activeShadyDOM(){const e=window.ShadyDOM;return e&&e.inUse?e: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(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}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(e){this.currentText=e||"",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(e,n){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,n)})}static get styles(){return[Ii`
403
403
  ${bn(Hr)}
404
404
  `]}render(){let e;const n=this.validationMessage||this.inputElement?.validationMessage,r=n||this.validationLevel!=null;return this.rows===1?e=Ee`
405
405
  <input
@@ -468,7 +468,7 @@ setupValidation("suggestion", ValidationLevel.Suggest);
468
468
  </sd-field-validation-message>
469
469
  `}
470
470
  </div>
471
- `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.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(e){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){this._internals?.setFormValue(e),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,n){typeof e=="string"&&(this.value=e)}},de.ID=Vr,de.DEFAULT_MAX_LENGTH=524288,de.formAssociated=!0,de.shadowRootOptions={...Me.shadowRootOptions,delegatesFocus:ii},de);Q([Z({type:String,reflect:!0})],X.prototype,"label");Q([Z({type:String,attribute:!0})],X.prototype,"validationMessage");Q([Z({type:String,attribute:!0})],X.prototype,"validationIconSrc");Q([Z({type:gt,attribute:!0,reflect:!0})],X.prototype,"validationLevel");Q([Z({type:String,hasChanged(i,e){return e!=null&&e!=i}})],X.prototype,"currentText");Q([Z({type:Boolean,attribute:!0})],X.prototype,"alwaysFloatLabel");Q([Z({type:Boolean,attribute:!0})],X.prototype,"autocompleted");Q([Z({type:Number,attribute:!0})],X.prototype,"rows");Q([Z({type:Boolean,reflect:!0,attribute:"effective-disabled"})],X.prototype,"effectiveDisabled");Q([Z({type:Boolean,reflect:!0,attribute:"extended-prefix"})],X.prototype,"extendedPrefix");Q([Z({type:String,reflect:!0})],X.prototype,"type");Q([Z({type:String,reflect:!0})],X.prototype,"placeholder");Q([Z({type:String,reflect:!0})],X.prototype,"sdAriaLabel");Q([Z({type:Number,reflect:!0})],X.prototype,"maxlength");Q([Z({type:Boolean,reflect:!0})],X.prototype,"readonly");Q([Z({type:Boolean,reflect:!0})],X.prototype,"required");Q([Z({type:String,reflect:!0})],X.prototype,"name");Q([Z({type:Boolean,reflect:!0})],X.prototype,"inactive");Q([Z({type:String,attribute:!0})],X.prototype,"autocomplete");Q([Z({type:String,attribute:!0})],X.prototype,"min");Q([Z({type:String,attribute:!0})],X.prototype,"max");Q([Z({type:String,attribute:!0})],X.prototype,"pattern");let Dt=X;customElements.get(Dt.ID)||customElements.define(Dt.ID,Dt);function Ui(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Zr(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var n=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var t=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return i[r]}})}),n}var ut={exports:{}},si;function Jr(){if(si)return ut.exports;si=1;var i=String,e=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i,blackBright:i,redBright:i,greenBright:i,yellowBright:i,blueBright:i,magentaBright:i,cyanBright:i,whiteBright:i,bgBlackBright:i,bgRedBright:i,bgGreenBright:i,bgYellowBright:i,bgBlueBright:i,bgMagentaBright:i,bgCyanBright:i,bgWhiteBright:i}};return ut.exports=e(),ut.exports.createColors=e,ut.exports}const Kr={},Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"})),fe=Zr(Xr);var zt,ri;function En(){if(ri)return zt;ri=1;let i=Jr(),e=fe;class n extends Error{constructor(t,u,a,f,b,d){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),f&&(this.source=f),d&&(this.plugin=d),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=i.isColorSupported);let a=l=>l,f=l=>l,b=l=>l;if(t){let{bold:l,gray:p,red:m}=i.createColors(!0);f=g=>l(m(g)),a=g=>p(g),e&&(b=g=>e(g))}let d=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,d.length),o=String(c).length;return d.slice(s,c).map((l,p)=>{let m=s+1+p,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,w=Math.max(0,this.column-E),v=Math.max(this.column+E,this.endColumn+E),y=l.slice(w,v),S=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return f(">")+a(g)+b(y)+`
471
+ `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((e.has("min")||e.has("max")||e.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(e){if(super.update(e),e.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const e=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",e==null?null:e.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(e){this._internals?.setFormValue(e),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,n){typeof e=="string"&&(this.value=e)}},de.ID=Vr,de.DEFAULT_MAX_LENGTH=524288,de.formAssociated=!0,de.shadowRootOptions={...Me.shadowRootOptions,delegatesFocus:ii},de);Q([Z({type:String,reflect:!0})],X.prototype,"label");Q([Z({type:String,attribute:!0})],X.prototype,"validationMessage");Q([Z({type:String,attribute:!0})],X.prototype,"validationIconSrc");Q([Z({type:gt,attribute:!0,reflect:!0})],X.prototype,"validationLevel");Q([Z({type:String,hasChanged(i,e){return e!=null&&e!=i}})],X.prototype,"currentText");Q([Z({type:Boolean,attribute:!0})],X.prototype,"alwaysFloatLabel");Q([Z({type:Boolean,attribute:!0})],X.prototype,"autocompleted");Q([Z({type:Number,attribute:!0})],X.prototype,"rows");Q([Z({type:Boolean,reflect:!0,attribute:"effective-disabled"})],X.prototype,"effectiveDisabled");Q([Z({type:Boolean,reflect:!0,attribute:"extended-prefix"})],X.prototype,"extendedPrefix");Q([Z({type:String,reflect:!0})],X.prototype,"type");Q([Z({type:String,reflect:!0})],X.prototype,"placeholder");Q([Z({type:String,reflect:!0})],X.prototype,"sdAriaLabel");Q([Z({type:Number,reflect:!0})],X.prototype,"maxlength");Q([Z({type:Boolean,reflect:!0})],X.prototype,"readonly");Q([Z({type:Boolean,reflect:!0})],X.prototype,"required");Q([Z({type:String,reflect:!0})],X.prototype,"name");Q([Z({type:Boolean,reflect:!0})],X.prototype,"inactive");Q([Z({type:String,attribute:!0})],X.prototype,"autocomplete");Q([Z({type:String,attribute:!0})],X.prototype,"min");Q([Z({type:String,attribute:!0})],X.prototype,"max");Q([Z({type:String,attribute:!0})],X.prototype,"pattern");let Dt=X;customElements.get(Dt.ID)||customElements.define(Dt.ID,Dt);function Ui(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Zr(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var n=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var t=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:function(){return i[r]}})}),n}var ut={exports:{}},si;function Jr(){if(si)return ut.exports;si=1;var i=String,e=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i,blackBright:i,redBright:i,greenBright:i,yellowBright:i,blueBright:i,magentaBright:i,cyanBright:i,whiteBright:i,bgBlackBright:i,bgRedBright:i,bgGreenBright:i,bgYellowBright:i,bgBlueBright:i,bgMagentaBright:i,bgCyanBright:i,bgWhiteBright:i}};return ut.exports=e(),ut.exports.createColors=e,ut.exports}const Kr={},Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"})),fe=Zr(Xr);var zt,ri;function En(){if(ri)return zt;ri=1;let i=Jr(),e=fe;class n extends Error{constructor(t,u,a,f,b,d){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),f&&(this.source=f),d&&(this.plugin=d),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let u=this.source;t==null&&(t=i.isColorSupported);let a=l=>l,f=l=>l,b=l=>l;if(t){let{bold:l,gray:p,red:m}=i.createColors(!0);f=g=>l(m(g)),a=g=>p(g),e&&(b=g=>e(g))}let d=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,d.length),o=String(c).length;return d.slice(s,c).map((l,p)=>{let m=s+1+p,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(l.length>160){let E=20,w=Math.max(0,this.column-E),v=Math.max(this.column+E,this.endColumn+E),y=l.slice(w,v),S=a(g.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return f(">")+a(g)+b(y)+`
472
472
  `+S+f("^")}let _=a(g.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+a(g)+b(l)+`
473
473
  `+_+f("^")}return" "+a(g)+b(l)}).join(`
474
474
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
@@ -2,7 +2,7 @@ var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var Z=Object.define
2
2
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vt=/-->/g,gt=/>/g,x=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^
3
3
  \f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,$t=/"/g,wt=/^(?:script|style|textarea|title)$/i,rt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),y=rt(1),he=rt(2),de=rt(3),C=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),bt=new WeakMap,E=S.createTreeWalker(S,129);function xt(i,t){if(!at(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(t):t}var Ft=(i,t)=>{let e=i.length-1,s=[],o,n=t===2?"<svg>":t===3?"<math>":"",a=H;for(let l=0;l<e;l++){let r=i[l],f,m,d=-1,b=0;for(;b<r.length&&(a.lastIndex=b,m=a.exec(r),m!==null);)b=a.lastIndex,a===H?m[1]==="!--"?a=vt:m[1]!==void 0?a=gt:m[2]!==void 0?(wt.test(m[2])&&(o=RegExp("</"+m[2],"g")),a=x):m[3]!==void 0&&(a=x):a===x?m[0]===">"?(a=o??H,d=-1):m[1]===void 0?d=-2:(d=a.lastIndex-m[2].length,f=m[1],a=m[3]===void 0?x:m[3]==='"'?$t:yt):a===$t||a===yt?a=x:a===vt||a===gt?a=H:(a=x,o=void 0);let A=a===x&&i[l+1].startsWith("/>")?" ":"";n+=a===H?r+Vt:d>=0?(s.push(f),r.slice(0,d)+_t+r.slice(d)+w+A):r+w+(d===-2?l:A)}return[xt(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},N=class i{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,a=0,l=t.length-1,r=this.parts,[f,m]=Ft(t,e);if(this.el=i.createElement(f,s),E.currentNode=this.el.content,e===2||e===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=E.nextNode())!==null&&r.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let d of o.getAttributeNames())if(d.endsWith(_t)){let b=m[a++],A=o.getAttribute(d).split(w),F=/([.?@])?(.*)/.exec(b);r.push({type:1,index:n,name:F[2],strings:A,ctor:F[1]==="."?et:F[1]==="?"?it:F[1]==="@"?st:U}),o.removeAttribute(d)}else d.startsWith(w)&&(r.push({type:6,index:n}),o.removeAttribute(d));if(wt.test(o.tagName)){let d=o.textContent.split(w),b=d.length-1;if(b>0){o.textContent=G?G.emptyScript:"";for(let A=0;A<b;A++)o.append(d[A],k()),E.nextNode(),r.push({type:2,index:++n});o.append(d[b],k())}}}else if(o.nodeType===8)if(o.data===At)r.push({type:2,index:n});else{let d=-1;for(;(d=o.data.indexOf(w,d+1))!==-1;)r.push({type:7,index:n}),d+=w.length-1}n++}}static createElement(t,e){let s=S.createElement("template");return s.innerHTML=t,s}};function P(i,t,e=i,s){if(t===C)return t;let o=s!==void 0?e._$Co?.[s]:e._$Cl,n=I(t)?void 0:t._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,e,s)),s!==void 0?(e._$Co??=[])[s]=o:e._$Cl=o),o!==void 0&&(t=P(i,o._$AS(i,t.values),o,s)),t}var tt=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){let{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??S).importNode(e,!0);E.currentNode=o;let n=E.nextNode(),a=0,l=0,r=s[0];for(;r!==void 0;){if(a===r.index){let f;r.type===2?f=new z(n,n.nextSibling,this,t):r.type===1?f=new r.ctor(n,r.name,r.strings,this,t):r.type===6&&(f=new ot(n,this,t)),this._$AV.push(f),r=s[++l]}a!==r?.index&&(n=E.nextNode(),a++)}return E.currentNode=S,o}p(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{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}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=P(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.$(t):t.nodeType!==void 0?this.T(t):Bt(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!==p&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N.createElement(xt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{let n=new tt(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=bt.get(t.strings);return e===void 0&&bt.set(t.strings,e=new N(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,o=0;for(let n of t)o===e.length?e.push(s=new i(this.O(k()),this.O(k()),this,this.options)):s=e[o],s._$AI(n),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}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,e,s,o,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,o){let n=this.strings,a=!1;if(n===void 0)t=P(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==C,a&&(this._$AH=t);else{let l=t,r,f;for(t=n[0],r=0;r<n.length-1;r++)f=P(this,l[s+r],e,r),f===C&&(f=this._$AH[r]),a||=!I(f)||f!==this._$AH[r],f===p?t=p:t!==p&&(t+=(f??"")+n[r+1]),this._$AH[r]=f}a&&!o&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},it=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},st=class extends U{constructor(t,e,s,o,n){super(t,e,s,o,n),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??p)===C)return;let s=this._$AH,o=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||o);o&&this.element.removeEventListener(this.name,this,s),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)}},ot=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){P(this,t)}};var jt=nt.litHtmlPolyfillSupport;jt?.(N,z),(nt.litHtmlVersions??=[]).push("3.3.1");var Et=(i,t,e)=>{let s=e?.renderBefore??t,o=s._$litPart$;if(o===void 0){let n=e?.renderBefore??null;s._$litPart$=o=new z(t.insertBefore(k(),n),n,void 0,e??{})}return o._$AI(i),o};var lt=globalThis,g=class extends _{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 e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Et(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return C}};g._$litElement$=!0,g.finalized=!0,lt.litElementHydrateSupport?.({LitElement:g});var qt=lt.litElementPolyfillSupport;qt?.({LitElement:g});(lt.litElementVersions??=[]).push("4.2.1");var Wt={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:K},Kt=(i=Wt,t,e)=>{let{kind:s,metadata:o}=e,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),s==="setter"&&((i=Object.create(i)).wrapped=!0),n.set(e.name,i),s==="accessor"){let{name:a}=e;return{set(l){let r=t.get.call(this);t.set.call(this,l),this.requestUpdate(a,r,i)},init(l){return l!==void 0&&this.C(a,void 0,i,l),l}}}if(s==="setter"){let{name:a}=e;return function(l){let r=this[a];t.call(this,l),this.requestUpdate(a,r,i)}}throw Error("Unsupported decorator location: "+s)};function h(i){return(t,e)=>typeof e=="object"?Kt(i,t,e):((s,o,n)=>{let a=o.hasOwnProperty(n);return o.constructor.createProperty(n,s),a?Object.getOwnPropertyDescriptor(o,n):void 0})(i,t,e)}var v=i=>i??p;var Gt=":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",Zt="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,dt=(i,t,e,s)=>{for(var o=void 0,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=a(t,e,o)||o);return o&&Yt(t,e,o),o},T,V=(T=class extends g{static parseLevel(i){if(i){let t=Object.keys(B).find(e=>e.toLowerCase()===i.toLowerCase());return t&&B[t]}}static get styles(){return[O`
4
4
  ${M(Gt)}
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(T.parseLevel(this.level)){case"warn":return Jt;case"suggest":return Zt;case"error":return Xt;default:return null}}},T.ID="sd-field-validation-message",T.levelConverter={fromAttribute(i){return T.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},T);dt([h({type:String,attribute:!0})],V.prototype,"message");dt([h({type:String,attribute:!0})],V.prototype,"icon");dt([h({converter:V.levelConverter,reflect:!0})],V.prototype,"level");var ht=V,B=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(B||{});customElements.get(ht.ID)||customElements.define(ht.ID,ht);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{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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,u=(i,t,e,s)=>{for(var o=void 0,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=a(t,e,o)||o);return o&&te(t,e,o),o},ee="sd-lit-input",St="delegatesFocus"in window.ShadowRoot.prototype,ie=0,$,c=($=class extends g{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let i=ie++;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(),St||(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=>{t.key=="Enter"&&this._internals?.form?.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[O`
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(T.parseLevel(this.level)){case"warn":return Jt;case"suggest":return Zt;case"error":return Xt;default:return null}}},T.ID="sd-field-validation-message",T.levelConverter={fromAttribute(i){return T.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},T);dt([h({type:String,attribute:!0})],V.prototype,"message");dt([h({type:String,attribute:!0})],V.prototype,"icon");dt([h({converter:V.levelConverter,reflect:!0})],V.prototype,"level");var ht=V,B=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(B||{});customElements.get(ht.ID)||customElements.define(ht.ID,ht);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{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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,u=(i,t,e,s)=>{for(var o=void 0,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=a(t,e,o)||o);return o&&te(t,e,o),o},ee="sd-lit-input",St="delegatesFocus"in window.ShadowRoot.prototype,ie=0,$,c=($=class extends g{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let i=ie++;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(),St||(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=>{this.rows==1&&t.key=="Enter"&&this._internals?.form?.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[O`
6
6
  ${M(Qt)}
7
7
  `]}render(){let i,t=this.validationMessage||this.inputElement?.validationMessage,e=t||this.validationLevel!=null;return this.rows===1?i=y`
8
8
  <input
@@ -71,7 +71,7 @@ var window;(window||={})["@cas-smartdesign/lit-input"]=(()=>{var Z=Object.define
71
71
  </sd-field-validation-message>
72
72
  `}
73
73
  </div>
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){if(super.update(i),i.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.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)}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){this._internals?.setFormValue(i),this.updateFormValidity()}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=ee,$.DEFAULT_MAX_LENGTH=524288,$.formAssociated=!0,$.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:St},$);u([h({type:String,reflect:!0})],c.prototype,"label");u([h({type:String,attribute:!0})],c.prototype,"validationMessage");u([h({type:String,attribute:!0})],c.prototype,"validationIconSrc");u([h({type:B,attribute:!0,reflect:!0})],c.prototype,"validationLevel");u([h({type:String,hasChanged(i,t){return t!=null&&t!=i}})],c.prototype,"currentText");u([h({type:Boolean,attribute:!0})],c.prototype,"alwaysFloatLabel");u([h({type:Boolean,attribute:!0})],c.prototype,"autocompleted");u([h({type:Number,attribute:!0})],c.prototype,"rows");u([h({type:Boolean,reflect:!0,attribute:"effective-disabled"})],c.prototype,"effectiveDisabled");u([h({type:Boolean,reflect:!0,attribute:"extended-prefix"})],c.prototype,"extendedPrefix");u([h({type:String,reflect:!0})],c.prototype,"type");u([h({type:String,reflect:!0})],c.prototype,"placeholder");u([h({type:String,reflect:!0})],c.prototype,"sdAriaLabel");u([h({type:Number,reflect:!0})],c.prototype,"maxlength");u([h({type:Boolean,reflect:!0})],c.prototype,"readonly");u([h({type:Boolean,reflect:!0})],c.prototype,"required");u([h({type:String,reflect:!0})],c.prototype,"name");u([h({type:Boolean,reflect:!0})],c.prototype,"inactive");u([h({type:String,attribute:!0})],c.prototype,"autocomplete");u([h({type:String,attribute:!0})],c.prototype,"min");u([h({type:String,attribute:!0})],c.prototype,"max");u([h({type:String,attribute:!0})],c.prototype,"pattern");var X=c;customElements.get(X.ID)||customElements.define(X.ID,X);return Lt(se);})();
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){if(super.update(i),i.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.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)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=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){this._internals?.setFormValue(i),this.updateFormValidity()}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=ee,$.DEFAULT_MAX_LENGTH=524288,$.formAssociated=!0,$.shadowRootOptions={...g.shadowRootOptions,delegatesFocus:St},$);u([h({type:String,reflect:!0})],c.prototype,"label");u([h({type:String,attribute:!0})],c.prototype,"validationMessage");u([h({type:String,attribute:!0})],c.prototype,"validationIconSrc");u([h({type:B,attribute:!0,reflect:!0})],c.prototype,"validationLevel");u([h({type:String,hasChanged(i,t){return t!=null&&t!=i}})],c.prototype,"currentText");u([h({type:Boolean,attribute:!0})],c.prototype,"alwaysFloatLabel");u([h({type:Boolean,attribute:!0})],c.prototype,"autocompleted");u([h({type:Number,attribute:!0})],c.prototype,"rows");u([h({type:Boolean,reflect:!0,attribute:"effective-disabled"})],c.prototype,"effectiveDisabled");u([h({type:Boolean,reflect:!0,attribute:"extended-prefix"})],c.prototype,"extendedPrefix");u([h({type:String,reflect:!0})],c.prototype,"type");u([h({type:String,reflect:!0})],c.prototype,"placeholder");u([h({type:String,reflect:!0})],c.prototype,"sdAriaLabel");u([h({type:Number,reflect:!0})],c.prototype,"maxlength");u([h({type:Boolean,reflect:!0})],c.prototype,"readonly");u([h({type:Boolean,reflect:!0})],c.prototype,"required");u([h({type:String,reflect:!0})],c.prototype,"name");u([h({type:Boolean,reflect:!0})],c.prototype,"inactive");u([h({type:String,attribute:!0})],c.prototype,"autocomplete");u([h({type:String,attribute:!0})],c.prototype,"min");u([h({type:String,attribute:!0})],c.prototype,"max");u([h({type:String,attribute:!0})],c.prototype,"pattern");var X=c;customElements.get(X.ID)||customElements.define(X.ID,X);return Lt(se);})();
75
75
  /*! Bundled license information:
76
76
 
77
77
  @lit/reactive-element/css-tag.js: