@cas-smartdesign/combo-box 7.2.5 → 7.2.7

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.
@@ -2,7 +2,7 @@ var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ne=Object.defin
2
2
  \f\r]`,te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ti=/-->/g,Ri=/>/g,$t=RegExp(`>|${Ke}(?:([^\\s"'>=/]+)(${Ke}*=${Ke}*(?:[^
3
3
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Vi=/'/g,ki=/"/g,zi=/^(?:script|style|textarea|title)$/i,qi=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),L=qi(1),Ys=qi(2),lt=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),Mi=new WeakMap,Et=It.createTreeWalker(It,129,null,!1);function Fi(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Li!==void 0?Li.createHTML(t):t}var Vo=(e,t)=>{let i=e.length-1,o=[],s,r=t===2?"<svg>":"",n=te;for(let l=0;l<i;l++){let a=e[l],c,d,p=-1,f=0;for(;f<a.length&&(n.lastIndex=f,d=n.exec(a),d!==null);)f=n.lastIndex,n===te?d[1]==="!--"?n=Ti:d[1]!==void 0?n=Ri:d[2]!==void 0?(zi.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=$t):d[3]!==void 0&&(n=$t):n===$t?d[0]===">"?(n=s??te,p=-1):d[1]===void 0?p=-2:(p=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?$t:d[3]==='"'?ki:Vi):n===ki||n===Vi?n=$t:n===Ti||n===Ri?n=te:(n=$t,s=void 0);let u=n===$t&&e[l+1].startsWith("/>")?" ":"";r+=n===te?a+To:p>=0?(o.push(c),a.slice(0,p)+Ge+a.slice(p)+mt+u):a+mt+(p===-2?(o.push(void 0),l):u)}return[Fi(e,r+(e[i]||"<?>")+(t===2?"</svg>":"")),o]},oe=class e{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let r=0,n=0,l=t.length-1,a=this.parts,[c,d]=Vo(t,i);if(this.el=e.createElement(c,o),Et.currentNode=this.el.content,i===2){let p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(s=Et.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){let p=[];for(let f of s.getAttributeNames())if(f.endsWith(Ge)||f.startsWith(mt)){let u=d[n++];if(p.push(f),u!==void 0){let w=s.getAttribute(u.toLowerCase()+Ge).split(mt),m=/([.?@])?(.*)/.exec(u);a.push({type:1,index:r,name:m[2],strings:w,ctor:m[1]==="."?Ye:m[1]==="?"?Je:m[1]==="@"?Qe:qt})}else a.push({type:6,index:r})}for(let f of p)s.removeAttribute(f)}if(zi.test(s.tagName)){let p=s.textContent.split(mt),f=p.length-1;if(f>0){s.textContent=Ht?Ht.emptyScript:"";for(let u=0;u<f;u++)s.append(p[u],ee()),Et.nextNode(),a.push({type:2,index:++r});s.append(p[f],ee())}}}else if(s.nodeType===8)if(s.data===Ni)a.push({type:2,index:r});else{let p=-1;for(;(p=s.data.indexOf(mt,p+1))!==-1;)a.push({type:7,index:r}),p+=mt.length-1}r++}}static createElement(t,i){let o=It.createElement("template");return o.innerHTML=t,o}};function zt(e,t,i=e,o){var s,r,n,l;if(t===lt)return t;let a=o!==void 0?(s=i._$Co)===null||s===void 0?void 0:s[o]:i._$Cl,c=ie(t)?void 0:t._$litDirective$;return a?.constructor!==c&&((r=a?._$AO)===null||r===void 0||r.call(a,!1),c===void 0?a=void 0:(a=new c(e),a._$AT(e,i,o)),o!==void 0?((n=(l=i)._$Co)!==null&&n!==void 0?n:l._$Co=[])[o]=a:i._$Cl=a),a!==void 0&&(t=zt(e,a._$AS(e,t.values),a,o)),t}var Xe=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:o},parts:s}=this._$AD,r=((i=t?.creationScope)!==null&&i!==void 0?i:It).importNode(o,!0);Et.currentNode=r;let n=Et.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let d;c.type===2?d=new se(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Ze(n,this,t)),this._$AV.push(d),c=s[++a]}l!==c?.index&&(n=Et.nextNode(),l++)}return Et.currentNode=It,r}v(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},se=class e{constructor(t,i,o,s){var r;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=s,this._$Cp=(r=s?.isConnected)===null||r===void 0||r}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=zt(this,t,i),ie(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==lt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ro(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!==y&&ie(this._$AH)?this._$AA.nextSibling.data=t:this.$(It.createTextNode(t)),this._$AH=t}g(t){var i;let{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=oe.createElement(Fi(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===r)this._$AH.v(o);else{let n=new Xe(r,this),l=n.u(this.options);n.v(o),this.$(l),this._$AH=n}}_$AC(t){let i=Mi.get(t.strings);return i===void 0&&Mi.set(t.strings,i=new oe(t)),i}T(t){Hi(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,s=0;for(let r of t)s===i.length?i.push(o=new e(this.k(ee()),this.k(ee()),this,this.options)):o=i[s],o._$AI(r),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},qt=class{constructor(t,i,o,s,r){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,s){let r=this.strings,n=!1;if(r===void 0)t=zt(this,t,i,0),n=!ie(t)||t!==this._$AH&&t!==lt,n&&(this._$AH=t);else{let l=t,a,c;for(t=r[0],a=0;a<r.length-1;a++)c=zt(this,l[o+a],i,a),c===lt&&(c=this._$AH[a]),n||(n=!ie(c)||c!==this._$AH[a]),c===y?t=y:t!==y&&(t+=(c??"")+r[a+1]),this._$AH[a]=c}n&&!s&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ye=class extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}},ko=Ht?Ht.emptyScript:"",Je=class extends qt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==y?this.element.setAttribute(this.name,ko):this.element.removeAttribute(this.name)}},Qe=class extends qt{constructor(t,i,o,s,r){super(t,i,o,s,r),this.type=5}_$AI(t,i=this){var o;if((t=(o=zt(this,t,i,0))!==null&&o!==void 0?o:y)===lt)return;let s=this._$AH,r=t===y&&s!==y||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==y&&(s===y||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}},Ze=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){zt(this,t)}};var Bi=Ae.litHtmlPolyfillSupport;Bi?.(oe,se),((je=Ae.litHtmlVersions)!==null&&je!==void 0?je:Ae.litHtmlVersions=[]).push("2.8.0");var Ui=(e,t,i)=>{var o,s;let r=(o=i?.renderBefore)!==null&&o!==void 0?o:t,n=r._$litPart$;if(n===void 0){let l=(s=i?.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new se(t.insertBefore(ee(),l),l,void 0,i??{})}return n._$AI(e),n};var ti,ei;var U=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let o=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=o.firstChild),o}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ui(i,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 lt}};U.finalized=!0,U._$litElement$=!0,(ti=globalThis.litElementHydrateSupport)===null||ti===void 0||ti.call(globalThis,{LitElement:U});var Wi=globalThis.litElementPolyfillSupport;Wi?.({LitElement:U});((ei=globalThis.litElementVersions)!==null&&ei!==void 0?ei:globalThis.litElementVersions=[]).push("3.3.3");var Mo=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}},Bo=(e,t,i)=>{t.constructor.createProperty(i,e)};function h(e){return(t,i)=>i!==void 0?Bo(e,t,i):Mo(e,t)}var C="top",T="bottom",O="right",I="left",Se="auto",vt=[C,T,O,I],dt="start",Ot="end",ji="clippingParents",Ce="viewport",Ft="popper",Ki="reference",ii=vt.reduce(function(e,t){return e.concat([t+"-"+dt,t+"-"+Ot])},[]),$e=[].concat(vt,[Se]).reduce(function(e,t){return e.concat([t,t+"-"+dt,t+"-"+Ot])},[]),No="beforeRead",Ho="read",zo="afterRead",qo="beforeMain",Fo="main",Uo="afterMain",Wo="beforeWrite",jo="write",Ko="afterWrite",Gi=[No,Ho,zo,qo,Fo,Uo,Wo,jo,Ko];function M(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Y(e){var t=A(e).Element;return e instanceof t||e instanceof Element}function R(e){var t=A(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ut(e){if(typeof ShadowRoot>"u")return!1;var t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Go(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var o=t.styles[i]||{},s=t.attributes[i]||{},r=t.elements[i];!R(r)||!M(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(n){var l=s[n];l===!1?r.removeAttribute(n):r.setAttribute(n,l===!0?"":l)}))})}function Xo(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],r=t.attributes[o]||{},n=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:i[o]),l=n.reduce(function(a,c){return a[c]="",a},{});!R(s)||!M(s)||(Object.assign(s.style,l),Object.keys(r).forEach(function(a){s.removeAttribute(a)}))})}}var Xi={name:"applyStyles",enabled:!0,phase:"write",fn:Go,effect:Xo,requires:["computeStyles"]};function B(e){return e.split("-")[0]}var ot=Math.max,Pt=Math.min,ct=Math.round;function Wt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function re(){return!/^((?!chrome|android).)*safari/i.test(Wt())}function J(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var o=e.getBoundingClientRect(),s=1,r=1;t&&R(e)&&(s=e.offsetWidth>0&&ct(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&ct(o.height)/e.offsetHeight||1);var n=Y(e)?A(e):window,l=n.visualViewport,a=!re()&&i,c=(o.left+(a&&l?l.offsetLeft:0))/s,d=(o.top+(a&&l?l.offsetTop:0))/r,p=o.width/s,f=o.height/r;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function Dt(e){var t=J(e),i=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:o}}function ne(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ut(i)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function W(e){return A(e).getComputedStyle(e)}function oi(e){return["table","td","th"].indexOf(M(e))>=0}function H(e){return((Y(e)?e.ownerDocument:e.document)||window.document).documentElement}function ht(e){return M(e)==="html"?e:e.assignedSlot||e.parentNode||(Ut(e)?e.host:null)||H(e)}function Yi(e){return!R(e)||W(e).position==="fixed"?null:e.offsetParent}function Yo(e){var t=/firefox/i.test(Wt()),i=/Trident/i.test(Wt());if(i&&R(e)){var o=W(e);if(o.position==="fixed")return null}var s=ht(e);for(Ut(s)&&(s=s.host);R(s)&&["html","body"].indexOf(M(s))<0;){var r=W(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function st(e){for(var t=A(e),i=Yi(e);i&&oi(i)&&W(i).position==="static";)i=Yi(i);return i&&(M(i)==="html"||M(i)==="body"&&W(i).position==="static")?t:i||Yo(e)||t}function Lt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tt(e,t,i){return ot(e,Pt(t,i))}function Ji(e,t,i){var o=Tt(e,t,i);return o>i?i:o}function ae(){return{top:0,right:0,bottom:0,left:0}}function le(e){return Object.assign({},ae(),e)}function de(e,t){return t.reduce(function(i,o){return i[o]=e,i},{})}var Jo=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,le(typeof t!="number"?t:de(t,vt))};function Qo(e){var t,i=e.state,o=e.name,s=e.options,r=i.elements.arrow,n=i.modifiersData.popperOffsets,l=B(i.placement),a=Lt(l),c=[I,O].indexOf(l)>=0,d=c?"height":"width";if(!(!r||!n)){var p=Jo(s.padding,i),f=Dt(r),u=a==="y"?C:I,w=a==="y"?T:O,m=i.rects.reference[d]+i.rects.reference[a]-n[a]-i.rects.popper[d],g=n[a]-i.rects.reference[a],_=st(r),$=_?a==="y"?_.clientHeight||0:_.clientWidth||0:0,E=m/2-g/2,v=p[u],b=$-f[d]-p[w],x=$/2-f[d]/2+E,S=Tt(v,x,b),N=a;i.modifiersData[o]=(t={},t[N]=S,t.centerOffset=S-x,t)}}function Zo(e){var t=e.state,i=e.options,o=i.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ne(t.elements.popper,s)&&(t.elements.arrow=s))}var Qi={name:"arrow",enabled:!0,phase:"main",fn:Qo,effect:Zo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Q(e){return e.split("-")[1]}var ts={top:"auto",right:"auto",bottom:"auto",left:"auto"};function es(e,t){var i=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:ct(i*s)/s||0,y:ct(o*s)/s||0}}function Zi(e){var t,i=e.popper,o=e.popperRect,s=e.placement,r=e.variation,n=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=n.x,u=f===void 0?0:f,w=n.y,m=w===void 0?0:w,g=typeof d=="function"?d({x:u,y:m}):{x:u,y:m};u=g.x,m=g.y;var _=n.hasOwnProperty("x"),$=n.hasOwnProperty("y"),E=I,v=C,b=window;if(c){var x=st(i),S="clientHeight",N="clientWidth";if(x===A(i)&&(x=H(i),W(x).position!=="static"&&l==="absolute"&&(S="scrollHeight",N="scrollWidth")),x=x,s===C||(s===I||s===O)&&r===Ot){v=T;var k=p&&x===b&&b.visualViewport?b.visualViewport.height:x[S];m-=k-o.height,m*=a?1:-1}if(s===I||(s===C||s===T)&&r===Ot){E=O;var D=p&&x===b&&b.visualViewport?b.visualViewport.width:x[N];u-=D-o.width,u*=a?1:-1}}var z=Object.assign({position:l},c&&ts),tt=d===!0?es({x:u,y:m},A(i)):{x:u,y:m};if(u=tt.x,m=tt.y,a){var F;return Object.assign({},z,(F={},F[v]=$?"0":"",F[E]=_?"0":"",F.transform=(b.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",F))}return Object.assign({},z,(t={},t[v]=$?m+"px":"",t[E]=_?u+"px":"",t.transform="",t))}function is(e){var t=e.state,i=e.options,o=i.gpuAcceleration,s=o===void 0?!0:o,r=i.adaptive,n=r===void 0?!0:r,l=i.roundOffsets,a=l===void 0?!0:l,c={placement:B(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:is,data:{}};var Ee={passive:!0};function os(e){var t=e.state,i=e.instance,o=e.options,s=o.scroll,r=s===void 0?!0:s,n=o.resize,l=n===void 0?!0:n,a=A(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",i.update,Ee)}),l&&a.addEventListener("resize",i.update,Ee),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",i.update,Ee)}),l&&a.removeEventListener("resize",i.update,Ee)}}var eo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:os,data:{}};var ss={left:"right",right:"left",bottom:"top",top:"bottom"};function jt(e){return e.replace(/left|right|bottom|top/g,function(t){return ss[t]})}var rs={start:"end",end:"start"};function Ie(e){return e.replace(/start|end/g,function(t){return rs[t]})}function Rt(e){var t=A(e),i=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:i,scrollTop:o}}function Vt(e){return J(H(e)).left+Rt(e).scrollLeft}function si(e,t){var i=A(e),o=H(e),s=i.visualViewport,r=o.clientWidth,n=o.clientHeight,l=0,a=0;if(s){r=s.width,n=s.height;var c=re();(c||!c&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:r,height:n,x:l+Vt(e),y:a}}function ri(e){var t,i=H(e),o=Rt(e),s=(t=e.ownerDocument)==null?void 0:t.body,r=ot(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),n=ot(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+Vt(e),a=-o.scrollTop;return W(s||i).direction==="rtl"&&(l+=ot(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:n,x:l,y:a}}function kt(e){var t=W(e),i=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+o)}function Oe(e){return["html","body","#document"].indexOf(M(e))>=0?e.ownerDocument.body:R(e)&&kt(e)?e:Oe(ht(e))}function gt(e,t){var i;t===void 0&&(t=[]);var o=Oe(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),r=A(o),n=s?[r].concat(r.visualViewport||[],kt(o)?o:[]):o,l=t.concat(n);return s?l:l.concat(gt(ht(n)))}function Kt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ns(e,t){var i=J(e,!1,t==="fixed");return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function io(e,t,i){return t===Ce?Kt(si(e,i)):Y(t)?ns(t,i):Kt(ri(H(e)))}function as(e){var t=gt(ht(e)),i=["absolute","fixed"].indexOf(W(e).position)>=0,o=i&&R(e)?st(e):e;return Y(o)?t.filter(function(s){return Y(s)&&ne(s,o)&&M(s)!=="body"}):[]}function ni(e,t,i,o){var s=t==="clippingParents"?as(e):[].concat(t),r=[].concat(s,[i]),n=r[0],l=r.reduce(function(a,c){var d=io(e,c,o);return a.top=ot(d.top,a.top),a.right=Pt(d.right,a.right),a.bottom=Pt(d.bottom,a.bottom),a.left=ot(d.left,a.left),a},io(e,n,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ce(e){var t=e.reference,i=e.element,o=e.placement,s=o?B(o):null,r=o?Q(o):null,n=t.x+t.width/2-i.width/2,l=t.y+t.height/2-i.height/2,a;switch(s){case C:a={x:n,y:t.y-i.height};break;case T:a={x:n,y:t.y+t.height};break;case O:a={x:t.x+t.width,y:l};break;case I:a={x:t.x-i.width,y:l};break;default:a={x:t.x,y:t.y}}var c=s?Lt(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case dt:a[c]=a[c]-(t[d]/2-i[d]/2);break;case Ot:a[c]=a[c]+(t[d]/2-i[d]/2);break;default:}}return a}function rt(e,t){t===void 0&&(t={});var i=t,o=i.placement,s=o===void 0?e.placement:o,r=i.strategy,n=r===void 0?e.strategy:r,l=i.boundary,a=l===void 0?ji:l,c=i.rootBoundary,d=c===void 0?Ce:c,p=i.elementContext,f=p===void 0?Ft:p,u=i.altBoundary,w=u===void 0?!1:u,m=i.padding,g=m===void 0?0:m,_=le(typeof g!="number"?g:de(g,vt)),$=f===Ft?Ki:Ft,E=e.rects.popper,v=e.elements[w?$:f],b=ni(Y(v)?v:v.contextElement||H(e.elements.popper),a,d,n),x=J(e.elements.reference),S=ce({reference:x,element:E,strategy:"absolute",placement:s}),N=Kt(Object.assign({},E,S)),k=f===Ft?N:x,D={top:b.top-k.top+_.top,bottom:k.bottom-b.bottom+_.bottom,left:b.left-k.left+_.left,right:k.right-b.right+_.right},z=e.modifiersData.offset;if(f===Ft&&z){var tt=z[s];Object.keys(D).forEach(function(F){var wt=[O,T].indexOf(F)>=0?1:-1,_t=[C,T].indexOf(F)>=0?"y":"x";D[F]+=tt[_t]*wt})}return D}function ai(e,t){t===void 0&&(t={});var i=t,o=i.placement,s=i.boundary,r=i.rootBoundary,n=i.padding,l=i.flipVariations,a=i.allowedAutoPlacements,c=a===void 0?$e:a,d=Q(o),p=d?l?ii:ii.filter(function(w){return Q(w)===d}):vt,f=p.filter(function(w){return c.indexOf(w)>=0});f.length===0&&(f=p);var u=f.reduce(function(w,m){return w[m]=rt(e,{placement:m,boundary:s,rootBoundary:r,padding:n})[B(m)],w},{});return Object.keys(u).sort(function(w,m){return u[w]-u[m]})}function ls(e){if(B(e)===Se)return[];var t=jt(e);return[Ie(e),t,Ie(t)]}function ds(e){var t=e.state,i=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=i.mainAxis,r=s===void 0?!0:s,n=i.altAxis,l=n===void 0?!0:n,a=i.fallbackPlacements,c=i.padding,d=i.boundary,p=i.rootBoundary,f=i.altBoundary,u=i.flipVariations,w=u===void 0?!0:u,m=i.allowedAutoPlacements,g=t.options.placement,_=B(g),$=_===g,E=a||($||!w?[jt(g)]:ls(g)),v=[g].concat(E).reduce(function(Nt,ft){return Nt.concat(B(ft)===Se?ai(t,{placement:ft,boundary:d,rootBoundary:p,padding:c,flipVariations:w,allowedAutoPlacements:m}):ft)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,N=!0,k=v[0],D=0;D<v.length;D++){var z=v[D],tt=B(z),F=Q(z)===dt,wt=[C,T].indexOf(tt)>=0,_t=wt?"width":"height",G=rt(t,{placement:z,boundary:d,rootBoundary:p,altBoundary:f,padding:c}),et=wt?F?O:I:F?T:C;b[_t]>x[_t]&&(et=jt(et));var fe=jt(et),At=[];if(r&&At.push(G[tt]<=0),l&&At.push(G[et]<=0,G[fe]<=0),At.every(function(Nt){return Nt})){k=z,N=!1;break}S.set(z,At)}if(N)for(var me=w?3:1,Ve=function(ft){var Qt=v.find(function(ge){var St=S.get(ge);if(St)return St.slice(0,ft).every(function(ke){return ke})});if(Qt)return k=Qt,"break"},Jt=me;Jt>0;Jt--){var ve=Ve(Jt);if(ve==="break")break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}}var oo={name:"flip",enabled:!0,phase:"main",fn:ds,requiresIfExists:["offset"],data:{_skip:!1}};function so(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ro(e){return[C,O,T,I].some(function(t){return e[t]>=0})}function cs(e){var t=e.state,i=e.name,o=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,n=rt(t,{elementContext:"reference"}),l=rt(t,{altBoundary:!0}),a=so(n,o),c=so(l,s,r),d=ro(a),p=ro(c);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var no={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cs};function hs(e,t,i){var o=B(e),s=[I,C].indexOf(o)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,n=r[0],l=r[1];return n=n||0,l=(l||0)*s,[I,O].indexOf(o)>=0?{x:l,y:n}:{x:n,y:l}}function ps(e){var t=e.state,i=e.options,o=e.name,s=i.offset,r=s===void 0?[0,0]:s,n=$e.reduce(function(d,p){return d[p]=hs(p,t.rects,r),d},{}),l=n[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=n}var ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ps};function us(e){var t=e.state,i=e.name;t.modifiersData[i]=ce({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var lo={name:"popperOffsets",enabled:!0,phase:"read",fn:us,data:{}};function li(e){return e==="x"?"y":"x"}function fs(e){var t=e.state,i=e.options,o=e.name,s=i.mainAxis,r=s===void 0?!0:s,n=i.altAxis,l=n===void 0?!1:n,a=i.boundary,c=i.rootBoundary,d=i.altBoundary,p=i.padding,f=i.tether,u=f===void 0?!0:f,w=i.tetherOffset,m=w===void 0?0:w,g=rt(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:d}),_=B(t.placement),$=Q(t.placement),E=!$,v=Lt(_),b=li(v),x=t.modifiersData.popperOffsets,S=t.rects.reference,N=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,tt={x:0,y:0};if(x){if(r){var F,wt=v==="y"?C:I,_t=v==="y"?T:O,G=v==="y"?"height":"width",et=x[v],fe=et+g[wt],At=et-g[_t],me=u?-N[G]/2:0,Ve=$===dt?S[G]:N[G],Jt=$===dt?-N[G]:-S[G],ve=t.elements.arrow,Nt=u&&ve?Dt(ve):{width:0,height:0},ft=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ae(),Qt=ft[wt],ge=ft[_t],St=Tt(0,S[G],Nt[G]),ke=E?S[G]/2-me-St-Qt-D.mainAxis:Ve-St-Qt-D.mainAxis,yo=E?-S[G]/2+me+St+ge+D.mainAxis:Jt+St+ge+D.mainAxis,Me=t.elements.arrow&&st(t.elements.arrow),wo=Me?v==="y"?Me.clientTop||0:Me.clientLeft||0:0,xi=(F=z?.[v])!=null?F:0,_o=et+ke-xi-wo,Ao=et+yo-xi,yi=Tt(u?Pt(fe,_o):fe,et,u?ot(At,Ao):At);x[v]=yi,tt[v]=yi-et}if(l){var wi,So=v==="x"?C:I,Co=v==="x"?T:O,Ct=x[b],be=b==="y"?"height":"width",_i=Ct+g[So],Ai=Ct-g[Co],Be=[C,I].indexOf(_)!==-1,Si=(wi=z?.[b])!=null?wi:0,Ci=Be?_i:Ct-S[be]-N[be]-Si+D.altAxis,$i=Be?Ct+S[be]+N[be]-Si-D.altAxis:Ai,Ei=u&&Be?Ji(Ci,Ct,$i):Tt(u?Ci:_i,Ct,u?$i:Ai);x[b]=Ei,tt[b]=Ei-Ct}t.modifiersData[o]=tt}}var co={name:"preventOverflow",enabled:!0,phase:"main",fn:fs,requiresIfExists:["offset"]};function di(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ci(e){return e===A(e)||!R(e)?Rt(e):di(e)}function ms(e){var t=e.getBoundingClientRect(),i=ct(t.width)/e.offsetWidth||1,o=ct(t.height)/e.offsetHeight||1;return i!==1||o!==1}function hi(e,t,i){i===void 0&&(i=!1);var o=R(t),s=R(t)&&ms(t),r=H(t),n=J(e,s,i),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!i)&&((M(t)!=="body"||kt(r))&&(l=ci(t)),R(t)?(a=J(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):r&&(a.x=Vt(r))),{x:n.left+l.scrollLeft-a.x,y:n.top+l.scrollTop-a.y,width:n.width,height:n.height}}function vs(e){var t=new Map,i=new Set,o=[];e.forEach(function(r){t.set(r.name,r)});function s(r){i.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(l){if(!i.has(l)){var a=t.get(l);a&&s(a)}}),o.push(r)}return e.forEach(function(r){i.has(r.name)||s(r)}),o}function pi(e){var t=vs(e);return Gi.reduce(function(i,o){return i.concat(t.filter(function(s){return s.phase===o}))},[])}function ui(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function fi(e){var t=e.reduce(function(i,o){var s=i[o.name];return i[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,i},{});return Object.keys(t).map(function(i){return t[i]})}var ho={placement:"bottom",modifiers:[],strategy:"absolute"};function po(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function uo(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,o=i===void 0?[]:i,s=t.defaultOptions,r=s===void 0?ho:s;return function(l,a,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ho,r),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],f=!1,u={state:d,setOptions:function(_){var $=typeof _=="function"?_(d.options):_;m(),d.options=Object.assign({},r,d.options,$),d.scrollParents={reference:Y(l)?gt(l):l.contextElement?gt(l.contextElement):[],popper:gt(a)};var E=pi(fi([].concat(o,d.options.modifiers)));return d.orderedModifiers=E.filter(function(v){return v.enabled}),w(),u.update()},forceUpdate:function(){if(!f){var _=d.elements,$=_.reference,E=_.popper;if(po($,E)){d.rects={reference:hi($,st(E),d.options.strategy==="fixed"),popper:Dt(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(D){return d.modifiersData[D.name]=Object.assign({},D.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var b=d.orderedModifiers[v],x=b.fn,S=b.options,N=S===void 0?{}:S,k=b.name;typeof x=="function"&&(d=x({state:d,options:N,name:k,instance:u})||d)}}}},update:ui(function(){return new Promise(function(g){u.forceUpdate(),g(d)})}),destroy:function(){m(),f=!0}};if(!po(l,a))return u;u.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function w(){d.orderedModifiers.forEach(function(g){var _=g.name,$=g.options,E=$===void 0?{}:$,v=g.effect;if(typeof v=="function"){var b=v({state:d,name:_,instance:u,options:E}),x=function(){};p.push(b||x)}})}function m(){p.forEach(function(g){return g()}),p=[]}return u}}var gs=[eo,lo,to,Xi,ao,oo,co,Qi,no],mi=uo({defaultModifiers:gs});var K=e=>e??y;var bs=":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}",xs="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",ys="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",ws="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",_s=Object.defineProperty,As=Object.getOwnPropertyDescriptor,gi=(e,t,i,o)=>{for(var s=o>1?void 0:o?As(t,i):t,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=(o?n(t,i,s):n(s))||s);return o&&s&&_s(t,i,s),s},Gt,he=(Gt=class extends U{static parseLevel(e){if(e){let t=Object.keys(Xt).find(i=>i.toLowerCase()===e.toLowerCase());return t&&Xt[t]}}static get styles(){return[it`
4
4
  ${X(bs)}
5
- `]}render(){return L`${this.iconToUse&&L`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(Gt.parseLevel(this.level)){case"warn":return ws;case"suggest":return ys;case"error":return xs;default:return null}}},Gt.ID="sd-field-validation-message",Gt.levelConverter={fromAttribute(e){return Gt.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},Gt);gi([h({type:String,attribute:!0})],he.prototype,"message",2);gi([h({type:String,attribute:!0})],he.prototype,"icon",2);gi([h({converter:he.levelConverter,reflect:!0})],he.prototype,"level",2);var vi=he,Xt=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(Xt||{});customElements.get(vi.ID)||customElements.define(vi.ID,vi);var Ss=":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}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}",Cs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,V=(e,t,i,o)=>{for(var s=o>1?void 0:o?$s(t,i):t,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=(o?n(t,i,s):n(s))||s);return o&&s&&Cs(t,i,s),s},Es="sd-lit-input",fo="delegatesFocus"in window.ShadowRoot.prototype,Is=0,nt,P=(nt=class extends U{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Is++;this._validationMessageId=nt.ID+"_message_"+e,this._inputId=nt.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.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(),fo||(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 i,o;t.key=="Enter"&&((o=(i=this._internals)==null?void 0:i.form)==null||o.requestSubmit())}),this._initialized=!0}initAutocompleted(e){let t=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",t)):e.addEventListener("animationstart",t)}get activeShadyDOM(){let 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,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,t)})}static get styles(){return[it`
5
+ `]}render(){return L`${this.iconToUse&&L`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(Gt.parseLevel(this.level)){case"warn":return ws;case"suggest":return ys;case"error":return xs;default:return null}}},Gt.ID="sd-field-validation-message",Gt.levelConverter={fromAttribute(e){return Gt.parseLevel(e)},toAttribute(e){return e&&e.toLowerCase()}},Gt);gi([h({type:String,attribute:!0})],he.prototype,"message",2);gi([h({type:String,attribute:!0})],he.prototype,"icon",2);gi([h({converter:he.levelConverter,reflect:!0})],he.prototype,"level",2);var vi=he,Xt=(e=>(e.Warn="warn",e.Suggest="suggest",e.Error="error",e))(Xt||{});customElements.get(vi.ID)||customElements.define(vi.ID,vi);var Ss=":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}",Cs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,V=(e,t,i,o)=>{for(var s=o>1?void 0:o?$s(t,i):t,r=e.length-1,n;r>=0;r--)(n=e[r])&&(s=(o?n(t,i,s):n(s))||s);return o&&s&&Cs(t,i,s),s},Es="sd-lit-input",fo="delegatesFocus"in window.ShadowRoot.prototype,Is=0,nt,P=(nt=class extends U{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";let e=Is++;this._validationMessageId=nt.ID+"_message_"+e,this._inputId=nt.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.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(),fo||(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 i,o;t.key=="Enter"&&((o=(i=this._internals)==null?void 0:i.form)==null||o.requestSubmit())}),this._initialized=!0}initAutocompleted(e){let t=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",t)):e.addEventListener("animationstart",t)}get activeShadyDOM(){let 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,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,t)})}static get styles(){return[it`
6
6
  ${X(Ss)}
7
7
  `]}render(){let e;return this.rows===1?e=L`
8
8
  <input
@@ -106,7 +106,7 @@ var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ne=Object.defin
106
106
  <div class="container" style="height: ${this.itemCount*this.itemHeight}px">
107
107
  <slot name="items"></slot>
108
108
  </div>
109
- `}updated(e){if(super.updated(e),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{let t=new MutationObserver(()=>{this.adjustWidthIfNeeded(),t.disconnect()});t.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{let e=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(e==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;let t=[...this.querySelectorAll("[item-index]")].map(o=>{if(o instanceof Bt){o.enableLineClamp=!1;let s=o.missingWidthForTexts;return s>e&&(o.enableLineClamp=!0),s}}),i=Math.max(...t);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(e=>{e instanceof Bt&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){let e=[...this.querySelectorAll("[item-index]")],t=new Map,i=document.createDocumentFragment();for(let o of this._itemsRenderData){let s=this.renderItem(o);s.parentElement||i.appendChild(s),t.set(o.dataHash,s);let r=e.indexOf(s);r!==-1&&e.splice(r,1)}this.appendChild(i);for(let o of e)o instanceof Bt&&(o.enableLineClamp=!1),this.removeChild(o);t.forEach((o,s)=>{this._elementCache.set(s,o)})}renderItem({index:e,top:t,dataHash:i,data:o}){let s;return o?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(o,e),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${t}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",e.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(e+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+e),this.itemCount-1==e?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(e,s),this.updateFocusedAttribute(e,s),s}updateFocusedAttribute(e,t){this.focusIndex==e&&(this.focusTarget||document.activeElement==this)?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):t.removeAttribute("focused")}updateSelectedAttribute(e,t){let i=this.selectedIndices.indexOf(e)!==-1;i?t.setAttribute("selected",""):t.removeAttribute("selected"),t.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);let e=this.normalizeIndex(this._firstVisibleIndex-2),t=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(e,t);for(let i=e;i<=t;i++){let o=i-e,s=this.items[o],r;s?r=JSON.stringify(s):r=`placeholder-${o}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:o,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(e){return Math.max(0,Math.min(e,this.itemCount-1))}get height(){return this.offsetHeight}requestData(e,t){!Number.isNaN(e)&&!Number.isNaN(t)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:e,stopIndex:t}}))}handleSelection(e,t){if(e<0||this.itemCount<=e)return;let i=e%this._visibleItemsNum,o=this.items[i];if(!o||o.disabled)return;let s=!0;if(this.selectionType!=="trigger-only"){let r=this.selectedIndices.indexOf(e);s=r==-1,s?this.selectionType==="single"?this.selectedIndices=[e]:this.selectedIndices.push(e):this.selectedIndices.splice(r,1),this.requestUpdate("selectedIndices")}this.focusIndex=e,this.dispatchSelectionEvent(e,s,t)}dispatchSelectionEvent(e,t,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:t,hasModifier:i}}))}handleClick(e){let t=e.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(t){let i=parseInt(t.getAttribute("item-index"));if(Number.isInteger(i)){if(e.button==0||e.button==1){let o=e.type=="auxclick"&&e.button==1||e.metaKey||e.ctrlKey;this.handleSelection(i,o)}this.focusIndex=i}}}},bt.ID="sd-virtual-list",bt.ensureDefined=()=>{Bt.ensureDefined(),customElements.get(bt.ID)||customElements.define(bt.ID,bt)},bt);xt([h({type:Number,attribute:"item-height",reflect:!0})],pt.prototype,"itemHeight",2);xt([h({type:Number})],pt.prototype,"itemCount",2);xt([h({type:Array,attribute:!1})],pt.prototype,"items",2);xt([h({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],pt.prototype,"selectionType",2);xt([h({type:String,attribute:!0,reflect:!0})],pt.prototype,"id",2);xt([h({type:String,reflect:!0})],pt.prototype,"role",2);xt([h({type:Number,attribute:"focus-index",reflect:!0})],pt.prototype,"focusIndex",1);xt([h({type:Array,attribute:!1})],pt.prototype,"selectedIndices",1);var Re=pt;Re.ensureDefined();var Ms=":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}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Bs=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
109
+ `}updated(e){if(super.updated(e),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{let t=new MutationObserver(()=>{this.adjustWidthIfNeeded(),t.disconnect()});t.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{let e=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(e==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;let t=[...this.querySelectorAll("[item-index]")].map(o=>{if(o instanceof Bt){o.enableLineClamp=!1;let s=o.missingWidthForTexts;return s>e&&(o.enableLineClamp=!0),s}}),i=Math.max(...t);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(e=>{e instanceof Bt&&(e.enableLineClamp=e.enableLineClamp||e.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){let e=[...this.querySelectorAll("[item-index]")],t=new Map,i=document.createDocumentFragment();for(let o of this._itemsRenderData){let s=this.renderItem(o);s.parentElement||i.appendChild(s),t.set(o.dataHash,s);let r=e.indexOf(s);r!==-1&&e.splice(r,1)}this.appendChild(i);for(let o of e)o instanceof Bt&&(o.enableLineClamp=!1),this.removeChild(o);t.forEach((o,s)=>{this._elementCache.set(s,o)})}renderItem({index:e,top:t,dataHash:i,data:o}){let s;return o?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(o,e),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${t}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",e.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(e+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+e),this.itemCount-1==e?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(e,s),this.updateFocusedAttribute(e,s),s}updateFocusedAttribute(e,t){this.focusIndex==e&&(this.focusTarget||document.activeElement==this)?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):t.removeAttribute("focused")}updateSelectedAttribute(e,t){let i=this.selectedIndices.indexOf(e)!==-1;i?t.setAttribute("selected",""):t.removeAttribute("selected"),t.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);let e=this.normalizeIndex(this._firstVisibleIndex-2),t=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(e,t);for(let i=e;i<=t;i++){let o=i-e,s=this.items[o],r;s?r=JSON.stringify(s):r=`placeholder-${o}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:o,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(e){return Math.max(0,Math.min(e,this.itemCount-1))}get height(){return this.offsetHeight}requestData(e,t){!Number.isNaN(e)&&!Number.isNaN(t)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:e,stopIndex:t}}))}handleSelection(e,t){if(e<0||this.itemCount<=e)return;let i=e%this._visibleItemsNum,o=this.items[i];if(!o||o.disabled)return;let s=!0;if(this.selectionType!=="trigger-only"){let r=this.selectedIndices.indexOf(e);s=r==-1,s?this.selectionType==="single"?this.selectedIndices=[e]:this.selectedIndices.push(e):this.selectedIndices.splice(r,1),this.requestUpdate("selectedIndices")}this.focusIndex=e,this.dispatchSelectionEvent(e,s,t)}dispatchSelectionEvent(e,t,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:e,selected:t,hasModifier:i}}))}handleClick(e){let t=e.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(t){let i=parseInt(t.getAttribute("item-index"));if(Number.isInteger(i)){if(e.button==0||e.button==1){let o=e.type=="auxclick"&&e.button==1||e.metaKey||e.ctrlKey;this.handleSelection(i,o)}this.focusIndex=i}}}},bt.ID="sd-virtual-list",bt.ensureDefined=()=>{Bt.ensureDefined(),customElements.get(bt.ID)||customElements.define(bt.ID,bt)},bt);xt([h({type:Number,attribute:"item-height",reflect:!0})],pt.prototype,"itemHeight",2);xt([h({type:Number})],pt.prototype,"itemCount",2);xt([h({type:Array,attribute:!1})],pt.prototype,"items",2);xt([h({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],pt.prototype,"selectionType",2);xt([h({type:String,attribute:!0,reflect:!0})],pt.prototype,"id",2);xt([h({type:String,reflect:!0})],pt.prototype,"role",2);xt([h({type:Number,attribute:"focus-index",reflect:!0})],pt.prototype,"focusIndex",1);xt([h({type:Array,attribute:!1})],pt.prototype,"selectedIndices",1);var Re=pt;Re.ensureDefined();var Ms=":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}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Bs=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
110
110
  <path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
111
111
  </svg>\r
112
112
  `,Ns=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
@@ -119,7 +119,7 @@ var window;(window||={})["@cas-smartdesign/combo-box"]=(()=>{var Ne=Object.defin
119
119
  <slot @slotchange=${this.onDefaultSlotChange} id="default-slot"></slot>
120
120
  `}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!==i)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",t=>{this.disabled||this.handleKeyDown(t)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){let e=this._itemCache.findIndex(t=>t[this.displayValuePath]===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null}}updated(e){super.updated(e),e.has("currentText")?this.currentText?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value"):e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?Yt.TriggerOnly:Yt.Single)}initClearButtton(){let e=document.createElement("template");e.innerHTML=Ns,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){let e=document.createElement("template");e.innerHTML=Bs,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(t=>t[this.filterProperty]&&String(t[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(t=>this.inMemoryFilter(this.filterText,t)),e=!0)),e?this._list.focusIndex=null:this._dataProvider.items=this._itemCache,this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(Re.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?Yt.TriggerOnly:Yt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
121
121
  rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
122
- rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){let e=this;this._popper=mi(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:t}){t.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:t})=>t.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:t.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:t}){t.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){let e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){let e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened?(this.disabled||(this.ensureListAndPopperInitialized(),this.isLazyLoadConfigured&&(this.items.length==0||this._lastRequestedFilterText!=this.filterText)&&this.requestData(0,this._lastRequestedFilterText!=this.filterText),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()),this._openedByFilterTextChange=!1):(await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null))}updateValueOnClose(){let e=this.comboBoxValue||"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==this.convertToDisplayValue(null)){let t=this._dataProvider.items[this._list.focusIndex];if(t&&t[this.displayValuePath]===this.value){if(t.disabled)return;this.comboBoxValue={index:this._itemCache.indexOf(t),item:t}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{let i=this._itemCache.findIndex(o=>o[this.displayValuePath]===this.value&&!o.disabled);i>-1?this.comboBoxValue={index:i,item:this._itemCache[i]}:this.restorePreviousSelection()}}e!==(this.comboBoxValue||"")&&this.dispatchSelectionChangeEvent()}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){let t=this.comboBoxValue.item.id;t!=null&&(e=this.items.findIndex(i=>i.id==t))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){let e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e)})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){e&&this.filterText!==this.value&&(this.filterText=this.value,this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()))}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent())}updateDropdownSizes(){let e=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${e}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{var e;if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{let t=this.comboBoxValue;typeof t=="string"?this.setFormValue(t):this.setFormValue((e=t?.item)==null?void 0:e.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0,!0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,t){if(this.isLazyLoadConfigured){if(!this.opened){t&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&this._lastRequestedFilterText==this.filterText)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(Z.DATA_REQUEST_CANCELLED);let i=new Promise((o,s)=>{this._pendingDataRequest={cancel:s}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([i,this._onDataRequest(this._lastRequestedFilterText,e)]).then(o=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=o.finalSizeIsKnown,t?(this._dataProvider.items=o.items,this._itemCache=o.items):(this._dataProvider.addItems(o.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let s=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=s){let r=this.items.indexOf(s);if(r==-1){let n=s.id;n!=null&&(r=this.items.findIndex(l=>l.id==n))}this.comboBoxValue.index=r,this._list.selectedIndices=r==-1?[]:[r]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(o=>{o!==Z.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
122
+ rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){let e=this;this._popper=mi(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:t}){t.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:t})=>t.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:t.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:t}){t.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){let e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){let e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();let e=(this.filterText||"")!==(this._lastRequestedFilterText||"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){let e=this.comboBoxValue||"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==this.convertToDisplayValue(null)){let t=this._dataProvider.items[this._list.focusIndex];if(t&&t[this.displayValuePath]===this.value){if(t.disabled)return;this.comboBoxValue={index:this._itemCache.indexOf(t),item:t}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{let i=this._itemCache.findIndex(o=>o[this.displayValuePath]===this.value&&!o.disabled);i>-1?this.comboBoxValue={index:i,item:this._itemCache[i]}:this.restorePreviousSelection()}}e!==(this.comboBoxValue||"")&&this.dispatchSelectionChangeEvent()}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){let t=this.comboBoxValue.item.id;t!=null&&(e=this.items.findIndex(i=>i.id==t))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){let e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e)})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){let t=(this.filterText||"")!==this.value;this.filterText=this.value,this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),t&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()))}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent())}updateDropdownSizes(){let e=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${e}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{var e;if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{let t=this.comboBoxValue;typeof t=="string"?this.setFormValue(t):this.setFormValue((e=t?.item)==null?void 0:e.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,t){if(t==null&&(t=(this.filterText||"")!==(this._lastRequestedFilterText||"")),this.isLazyLoadConfigured){if(!this.opened){t&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!t)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(Z.DATA_REQUEST_CANCELLED);let i=new Promise((o,s)=>{this._pendingDataRequest={cancel:s}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([i,this._onDataRequest(this._lastRequestedFilterText,e)]).then(o=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=o.finalSizeIsKnown,t?(this._dataProvider.items=o.items,this._itemCache=o.items):(this._dataProvider.addItems(o.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let s=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=s){let r=this.items.indexOf(s);if(r==-1){let n=s.id;n!=null&&(r=this.items.findIndex(l=>l.id==n))}this.comboBoxValue.index=r,this._list.selectedIndices=r==-1?[]:[r]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(o=>{o!==Z.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
123
123
  ${o}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,t)=>this._declarativeItems[t].cloneNode(!0),this.items=this._declarativeItems.map(e=>{let t={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(t[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),t}))}},Z.ID=qs,Z.ensureDefined=()=>{Re.ensureDefined(),customElements.get(Z.ID)||customElements.define(Z.ID,Z)},Z.formAssociated=!0,Z.DATA_REQUEST_CANCELLED="cancel_data_request",Z);yt([h({type:Boolean,reflect:!0})],ut.prototype,"opened",2);yt([h({type:Number,attribute:"item-height"})],ut.prototype,"itemHeight",2);yt([h({type:Boolean,attribute:"allow-custom-value",reflect:!0})],ut.prototype,"allowCustomValue",2);yt([h({type:Boolean,attribute:"trigger-only",reflect:!0})],ut.prototype,"triggerOnly",2);yt([h({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],ut.prototype,"nullSettingDisallowed",2);yt([h({type:String,attribute:"display-value-path",noAccessor:!0})],ut.prototype,"displayValuePath",2);yt([h({type:String,attribute:"filter-property",noAccessor:!0})],ut.prototype,"filterProperty",2);yt([h({type:String,attribute:!0,reflect:!0})],ut.prototype,"id",2);var xo=ut;xo.ensureDefined();return Do(Us);})();
124
124
  /*! Bundled license information:
125
125